I'm new to android
programming and my project needs serial communication
with an arduino board
. I began with building my very first project by importing the source code
of ArduinoUSB.
In this code, I have use the android device
in OTG mode
and the arduino board
is connected as a slave
. It implements a pseudo serial device
.
I rather easily succeeded to communicate
on a wiko smartphone (android 5.1)
, but I am unable to have it run on a ezeepad 785 tablet running android 4.1.1
.
I initially thought the tablet
did not support OTG
, but actually this is not the case, for if I have connect a memory stick
on the tablet
through a OTG cable
, I can see the files in the stick.
However, whereas on my wiko phone
, when I have connect
the arduino board
for the first time, I got the dialog
"open ArduinoUSB
on connection of this usb device
?", this never happens on my tablet
.
To investigate, I added printout
statements in the code to show what methods are activated on connection of the arduino board
.
Here again, on the wiko phone
I see on the screen
my messages signalling that the broadcast message
was received
, the VID
of the arduino board
, etc.
When I run the same code
on the tablet
, nothing happens. No evidence of a broadcast message
on connection of the arduino board
.
I have installed
the USB OTG
checker application from the play store
, and again, this app shows my arduino board
connected on the wiko phone
, and nothing connected on the tablet
.
Is it possible that the tablet
implements a partial OTG
function that only supports a memory stick
, and even hide it to another application? for on my wiko phone
, if I connect a memory stick
, I can read the VID
of the stick on the screen
thanks to the extra prints I added in the code
. This does not happen on the tablet
.
I am at my wit's
end...