ClusterM / usb-serial-telnet-server

Android application that binds a USB serial converter to a Telnet client
GNU General Public License v3.0
57 stars 8 forks source link

USB serial device not found #2

Closed brandonros closed 1 year ago

brandonros commented 1 year ago

CDC device works when I use this app: https://play.google.com/store/apps/details?id=de.kai_morich.serial_usb_terminal&hl=en_US&gl=US

ClusterM commented 1 year ago

I'm afraid that it depends on the library that i'm using :(

brandonros commented 1 year ago

Does this repo not support if the Android Linux kernel "grabs"/attaches the serial device as a USB-CDC device?

I'd like to work with you to workaround this because I already need to do this as a WebUSB workaround.

What work would it take to achieve the same functionality as https://github.com/kai-morich/SimpleUsbTerminal?

brandonros commented 1 year ago

My idea is to be able to have a user run this app on their device, and then through the web browser (Chrome for Android), open a WebSocket that will act as a proxy read/write for WebSocket.

Now that I type it outloud, telnet won't really work here for that use case. I'd probably need to add websockify.

brandonros commented 1 year ago

Both your repo and the SimpleUSBTerminal use the https://github.com/mik3y/usb-serial-for-android library which is supposed to have CDC support.

brandonros commented 1 year ago

I bet it was just as simple as my vendor ID + device ID missing from https://github.com/ClusterM/usb-serial-telnet-server/blob/master/app/src/main/res/xml/usb_device_filter.xml since they are non-standard