|
From: Jörn M. [A. V. <Joe...@al...> - 2024-09-19 08:50:51
|
Hi Aaron, Is it possible to communicate with the device only by using libusb library? In general, yes. But as far as I understand it, it would mean that you would have to reimplement the driver for the FTDI chip. So it probably would be easier to stick with the vendors original driver<https://ftdichip.com/drivers/d2xx-drivers/> and do the communication via the virtual COM port or to use libFTDI<https://www.intra2net.com/en/developer/libftdi/index.php> which already implements the FTDI functionality you are looking (and actually also builds on top of libusb). Kind regards, Jörn Von: Aaron Gomez | Rother Industries & Technology <aar...@ro...> Gesendet: Donnerstag, 19. September 2024 09:10 An: lib...@li... Betreff: [libusb] Help Hi, I have been looking at the libusb source code and I have seen that there are function to recognize the devices connect via USB and get a list of them, a function to open devices by vendor ID and product ID, a function to get the device descriptor and and many more. I would like to know if it is possible to obtain communication through the serial port using an FTDI device. I have been trying to open my device and perform data transfer but I have not been able to do so. The steps I have followed have been to initialize libusb, get the list of devices and get the device descriptor. I recognized my device by vendor ID and product ID. I reference the device, I open it and check the function libusb_kernel_driver_active and libusb_claim_interface but at this point I get an error. This error is LIBUSB_ERROR_PIPE. Also, I previously wrote udev rules with vendor ID and product ID of my device to resolve another error of permissions when open it. How to fix libusb_kernel_driver_active and libusb_claim_interface error? I need some idea because I couldn't find any information about it. Is it possible to communicate with the device only by using libusb library? Regards, -- Aarón Gómez Payán Dpto. I+D Tlf: + (34) 957 088 221 Rother Industries & Technology C/ Fausto García Tena Nº16-C 14014 - Córdoba (Pol.Quemadas) España / Spain https://www.rotherindustrial.es<https://www.rotherindustrial.es/> [cid:image001.png@01DB0A7D.03FA32C0] POR FAVOR: Antes de imprimir este mensaje, piense si REALMENTE lo necesita en papel. P Este mensaje y sus archivos adjuntos van dirigidos exclusivamente a su destinatario, pudiendo contener información confidencial sometida a secreto profesional. No está permitida su reproducción o distribución sin la autorización expresa de ROTHER INDUSTRIES & TECHNOLOGY, S.L. . Si usted no es el destinatario final por favor elimínelo e infórmenos por esta vía. Le informamos que tratamos sus datos personales con la finalidad de realizar la gestión administrativa, contable y fiscal, así como enviarle comunicaciones comerciales sobre nuestros productos y/o servicios. Los datos proporcionados se conservarán mientras se mantenga la relación comercial o durante los años necesarios para cumplir con las obligaciones legales. Los datos no se cederán a terceros salvo en los casos en que exista una obligación legal. Asimismo, le informamos de la posibilidad de ejercer los siguientes derechos sobre sus datos personales: derecho de acceso, rectificación, supresión u olvido, limitación, oposición, portabilidad y a retirar el consentimiento prestado. Para ello podrá enviar un email a: ro...@ro...<mailto:ro...@ro...> Además, el interesado puede dirigirse a la Autoridad de Control en materia de Protección de Datos competente para obtener información adicional o presentar una reclamación. Si usted no desea recibir nuestra información, póngase en contacto con nosotros enviando un correo electrónico a la siguiente dirección: ro...@ro...<mailto:ro...@ro...> Datos identificativos: ROTHER INDUSTRIES & TECHNOLOGY, S.L. B-56001449. CALLE FAUSTO GARCÍA TENA, Nº 16C - C.P.14014. CÓRDOBA. E-MAIL: ro...@ro...<mailto:ro...@ro...> - 957 08 82 21 [cid:image002.png@01DB0A7D.03FA32C0][cid:image003.png@01DB0A7D.03FA32C0] |