-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USB Composite Device. Could not get read & write endpoints #548
Comments
#1 with 0 endpoints looks strange. Does the device work with Windows? |
driver.getPorts() return 1 port |
If you are not using usb-serial-for-android library version >= 3.6.0, you have to upgrade. |
|
the library tries to detect the related interfaces with IAD, but the first row 12 01 00 ... does not match the spec table 1-1 |
Hello!
Hello I have "composite"
My device has 5 interfaces. There is a description in the screenshot.
When I call findAllDrivers(UsbManager) and get the driver
CdcAcmSerialDriver
.Next I open the device and try to open the serialPort.
m_serialPort.open(m_connection);
I get the message "Could not get read & write endpoints".
I discovered that in your code in the file CdsAsmSerialDriver.jac there is a check on line 187.
mPortNumber= 0, when the number of dataInterfaceCount = 0, usbInterface has ID = 1 (#1 on screenshot)
This interface has no endpoints.
I need an interface with ID = 3 (#4 on screenshot).
I removed these lines from the code and I got my desired interface, but it's wrong. This will not work with any other device.
How can the library be adapted to work with a composite device?
The text was updated successfully, but these errors were encountered: