Pages: [1]   Go Down
Author Topic: Communicating betweeen Android device and Arduino (sketch uploading)  (Read 1193 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 1
Posts: 158
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm working over sketch uploading from Android device to Arduino board and it works for Duemilanove (FTDI-based) and Uno (ATMega-based) when testing for pc/arduino using rxtx (pure java).
But it does not work if using usb-android lib (https://code.google.com/p/usb-serial-for-android/) as setDTR/setRTS methods are not implemented yet.
FTDI android drivers (http://www.ftdichip.com/Android.htm) allow to send setDTR/setRTS signals but fail to send/read data after it.

So the problem is in USB API and i can't figure out what's wrong..

Does anybody know what happens for FTDI-based arduino boards after DTR/RTS are toggled?
I belive that device is reset and wait for bootloader commands (stk500) for ~50-250 ms. Am i right?
Logged

Offline Offline
Full Member
***
Karma: 1
Posts: 158
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Solved myself:
http://stackoverflow.com/questions/15518214/official-ftdi-android-drivers-read-is-not-working
Logged

Offline Offline
Full Member
***
Karma: 1
Posts: 158
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Check out this: http://arduinocommander.blogspot.com/2013/03/upload-sketch.html
« Last Edit: March 29, 2013, 04:44:13 am by 4ntoine » Logged

Pages: [1]   Go Up
Jump to: