mik3y / usb-serial-for-android

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

"No Driver For Device" Error #557

Closed sharkboy777 closed 5 months ago

sharkboy777 commented 9 months ago

Getting the "No Driver for Device" error in React Native while trying to open the port.

I tried running the Java code in Android Studio, and the app shows a USB device list, but the first one has "no driver" as its name, and the click action is not working. There is one more showing in USB Devices, even though I have only connected one USB, but that was not showing any files at all when I opened it.

Both vendorId and productId are available for these, but they are unable to open the port. I couldn't find any details regarding these error codes in the code. No description or possible solutions for it are mentioned anywhere.

Please help me out.

kai-morich commented 9 months ago

are VID+PID listed in https://github.com/mik3y/usb-serial-for-android/blob/master/usbSerialForAndroid/src/main/java/com/hoho/android/usbserial/driver/UsbId.java? Else see https://github.com/mik3y/usb-serial-for-android#probing-for-unrecognized-devices