felHR85 / UsbSerial

Usb serial controller for Android
MIT License
1.82k stars 599 forks source link

USB/Serial device doesn't show up in UsbManager#getDeviceList() #9

Closed ghost closed 9 years ago

ghost commented 9 years ago

I need to use this (os a similar) library to interface with a device which is connected like this:

but it doesn't show up when I call usbManager.getDeviceList(). I do get multiple devices, but not the one I connected like above (I know the other devices' vendorIds, plus the list size doesn't change when I plug/unplug the device).

felHR85 commented 9 years ago

If usbManager.getDeviceList() is getting no response it is an Android issue. I would you recommend you trying with my app DroidTerm and see if it works properly

ghost commented 9 years ago

It is getting a response. The response has two devices in it, but those are known devices, and they are the only devices in that list, regardless of whether External Device is plugged in.

I don't see how I can use DroidTerm, since this is not a device with the Google Play Store. Do you have an APK or the source code, so I can install it on our Android Device?

felHR85 commented 9 years ago

Try to test with other phones or tablets too.

ghost commented 9 years ago

We don't have phones or tablets with USB-A F ports, nor a USB-A F to USB Micro-B M cable.

felHR85 commented 9 years ago

You could use my SerialPorExample app (it is in my github) (the apk is in the bin dir).

ghost commented 9 years ago

That appears to be incompatible with Android API 17. Do you have an email where we can continue this?

felHR85 commented 9 years ago

felhr85 at gmail.com

ghost commented 9 years ago

This turned out to be a cable issue. It was resolved by using a cable with a PL2303 chipset.