felHR85 / UsbSerial

Usb serial controller for Android
MIT License
1.81k stars 589 forks source link

Problem with Multiple Serial ports and FT2232D #247

Closed W1il closed 5 years ago

W1il commented 5 years ago

Hi, I have been testing the example of Multiple Serial ports using a double USB-RS232 converter which internally has two FT232R and works OK, but this manufacturer also has another model of controller, the FT2232D, this is a double USB-RS232 converter all in a single circuit integrated, and it would be the ideal match for your app, but when I test with this controller it only lists a USB-RS232 port and does not double as it should be

With the double converter FT232R I have the following: UsbPort:/dev/bus/usb/001/004 DeviceId:1004 ProductId:24577 VendorID:1027

UsbPort:/dev/bus/usb/001/003 DeviceId:1003 ProductId:24577 VendorID:1027

But with the FT2232D converter I have the following: UsbPort:/dev/bus/usb/001/002 DeviceId:1002 ProductId:24592 VendorID:1027

The Android only recognizes a single USB-RS232 port and does not double as it should be

But when I use the converter with the FT2232D in my PC it works OK

Someone have any suggestions on how to correct this?

felHR85 commented 5 years ago

@W1il Both should be work but I couldn't test it with any sample of a multiple serial port inside the same chipset. Could you send me more information about the USB device? it can be done with a tool like this

W1il commented 5 years ago

@felHR85,

Here is the dump file, data obtained when I connect the converter to my PC. DescriptorDump_Debuger-2UART.txt

And here is the dump file, data obtained when I connect the converter to my device Android, to obtain this data I have used the USB_Descriptor. USBDescriptor_1027_24592.txt

felHR85 commented 5 years ago

Hi @W1il Probably still not fixed but please try to use the multiple port example of this branch with both devices

felHR85 commented 5 years ago

@W1il Could you test it with 6.1.0 release?

W1il commented 5 years ago

@felHR85, I just did the test with 6.1.0 release, just detect only a single port and not double as it should be the FT2232