Android Question felUsbSerial usage example wanted

foretek

Member
Licensed User
Trying to use felUsbSerial library for FTDI USB to serial device to connect to my Android phone, I tried to use the code snip for the project. But I got "unknown type: UsbManager" error. Could anyone show me an example of a working project with right manifest file. Many thanks.

A little update: I added USB library to the project. The "unknown type: UsbManager" error goes away. The project running shows a "Connect" button. Logs says "No connected USB devices". But I connect a FT232RL adapter to the phone USB port. Any suggestion?
 
Last edited:

foretek

Member
Licensed User
Thank you for your reply. It turned out to be the wrong cable.
I installed USB OTG Checker APP as you suggested, and tested my phone USB is OTG. I used another APP tested my my phone, it says it is not in host mode. It suggested me to change the configuration file in the phone. With a lot of effort I still can't change it because my phone is in "Production Build". Anyway, finally I tested a USB OTG cable, it recognizes the FTDI device and makes communication work.
 
Upvote 0
Top