chipKIT® Development Platform

Inspired by Arduino™

Using Ser.Terminal on Android+USB OTG with a ChipKit applic?

Created Mon, 10 Feb 2014 16:30:43 +0000 by ChristopheDupriez


ChristopheDupriez

Mon, 10 Feb 2014 16:30:43 +0000

Hi! Does anyone succeeded to take an Android smartphone, using a USB terminal (like USB Serial Monitor Lite) and a USB OTG cable to connect to a ChipKit application tracing on the USB port ??? It does not work for me even if I have in the Fairphone Android 4.2.2 the file /system/etc/permissions/android.hardware.usb.host.xml containing:

<?xml version="1.0" encoding="utf-8"?>
<permissions>
    <feature name="android.hardware.usb.host" />
</permissions>

It would be so nice in the field to connect to any ChipKit and be able to configure it or to trace its operations... Thanks for any clue!!!

Christophe


mikes

Mon, 10 Feb 2014 18:16:28 +0000

I don't know what you mean by "ChipKit application tracing" but I have several programs that use this library https://github.com/ksksue/FTDriver and can communicate over Serial with a chipkit board.


ChristopheDupriez

Mon, 10 Feb 2014 18:30:16 +0000

"tracing an application", I mean "receiving on the Android screen the messages generated by Serial.println("..."); within the Chipkit application"

I am using the USB Serial Monitor application from the same author KSKSUE (same library I suppose): https://play.google.com/store/apps/details?id=jp.ksksue.app.terminal&hl=fr

But if you succeeded with the library, I should give it a try (and report here)!

Have a nice evening,

Christophe


mikes

Wed, 12 Feb 2014 00:31:31 +0000

You may need to run USB Host Diagnostics before your tablet can host properly. Older versions of android have a bug that can prevent it from working. USB Host Diagnostics requires Root access to fix the bug,

https://play.google.com/store/apps/details?id=eu.chainfire.usbhostdiagnostics&hl=en


ChristopheDupriez

Thu, 13 Feb 2014 13:21:26 +0000

Thanks Mikes!

I followed your recommendation: the result of the USB Host Diagnostics can be seen on [url]http://usbhost.chainfire.eu/?search=285609[/url] "All Green"! I am using the standard example "ASCII Table" with 57600 bauds, delay(3000) in setup, delay(100) in the loop and no "while(1)" (I cycle the current byte to 33 when reaching 126)

With DP32, Fubarino SD and Mini, using either "Android USB Serial", "Free USB Serial Term" or "FTDI UART Terminal", nothing works.

With Digilent Cmod (FTDI chip), I have the output with:

  1. "FTDI UART Terminal" but it does not support ANSI escape sequences (FTDI AOA Hyperterm does not work at all). More info here: [url]http://www.ftdichip.com/Android.htm[/url]
  2. Free USB Serial Term" but only when it starts automatically when using USB Host Diagnostics!

I tried most applications found in Google Play, using the keywords FTDI, Serial or UART: nothing else works.

Any suggestion would be very welcome!

Beginning of March, I will be in Paris following the Microchip course about programming USB: I hope the trainer will be able to bring some light on this.

Without luck, I will go for an FTDI cable plugged on a serial interface of my Fubarino SDs. ANSI escape sequences would be nice though...

Have a nice day!

Christophe


mikes

Thu, 13 Feb 2014 16:09:40 +0000

I posted an example project to github I used a Zeepad 7.0 tablet and Pontech Quick240 to test it. I have also had success hosting ftdi breakout boards and Fubarinos. Tablets I have also had success with Trio and a Nexus 7. https://github.com/pontech/android_control_demo I hope this helps.