|
From: Aaron G. | R. I. & T. <aar...@ro...> - 2024-09-19 07:10:37
|
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 *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... 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... _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...- 957 08 82 21 ** |