mik3y / usb-serial-for-android

Android USB host serial driver library for CDC, FTDI, Arduino and other devices.
MIT License
4.82k stars 1.58k forks source link

Doesn't detect Arduino Due #463

Closed phatchman closed 1 year ago

phatchman commented 1 year ago

Arduino Due is not detected by this library. Details for the Due are below: VID: 9025 PID: 61 Driver Type: CDC

kai-morich commented 1 year ago

please use a custom prober as depicted here

phatchman commented 1 year ago

I'm asking because I want this supported in usb-serial-telnet-server, which uses your library. So I'm not able to use the workaround you suggest and the author there pointed me here.

It seems like this id just needs to be added to the UsbId.java along with all of the other Arduino flavours. It uses the same CDC USB Serial chipset.

kai-morich commented 1 year ago

the usb-serial-telnet-server only uses default prober. you should add a custom prober here, e.g. like done in sample app in this repo here

phatchman commented 1 year ago

As it's not my code. I can't do what you are asking. Can you not add the ID to the library so that all applications can support the due without having to make a custom prober?

kai-morich commented 1 year ago

CDC devices can basically have any VID/PID. Adding them all to this library is not feasible. Instead the application using the library should handle, e.g. offer a dialog to choose the driver like serial_usb_terminal does, or it could try CDC as fallback for unknown devices.