Closed diamond-61 closed 3 months ago
How many ports are returned by driver.getPorts()
driver.getPorts() return 1 port
Add scrennshot with interface #0
If you are not using usb-serial-for-android library version >= 3.6.0, you have to upgrade. If you already use it, please send logcat output from CdcAcmSerialDriver class
dependencies {
implementation 'com.github.mik3y:usb-serial-for-android:3.7.0'
}
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?