Android Question [SOLVED] USB Host communication with Android device

Meigionel TS

Member
Licensed User
I have an arduino which I am trying to connect with my android device using usb serial, the arduino is suppose to communicate or better to say, would send characters like "A", "B","C" etc. to the device. What I am trying to do is display the data which are sent to the device in a label of my app. For starters I was trying to connect to the usb using a sample code posted in this forum by @Erel (attached), but it always gives a Cannot parse error, attached screenshot. What I think is, the error is because of the device is not detecting the usb host, however, when I am trying it with apps like https://play.google.com/store/apps/details?id=com.oneman.freeusbtools this, I could easily send the data from the arduino and the app displays the data [attached screenshots].

I would really appreciate if someone could provide anything for reference which I can use to display data sent from arduino.
 

Attachments

  • USBSerial.zip
    7.8 KB · Views: 271
  • WhatsApp Image 2017-12-31 at 6.18.10 PM.jpeg
    WhatsApp Image 2017-12-31 at 6.18.10 PM.jpeg
    50.7 KB · Views: 248
  • WhatsApp Image 2018-01-01 at 11.50.21 PM.jpeg
    WhatsApp Image 2018-01-01 at 11.50.21 PM.jpeg
    67.2 KB · Views: 258
Top