I’am working with arduino and ADK und I have problems to get Information from Arduino-Sensors. At the moment I can send Information from Phone to control LED or servos…. . But it is impossible for me to send Data via acc.write(msg,3) to smarthphone. I’am using this example Dev-O-Rama and try to extend this example to get sensor data(without success). To get sensordata I’am using code from ADK example. Everytime when I try to send data from arduino with: acc.write(msg,3) it seems everything freezing. Have someone a working “little” example or a hint what can cause this behavior?
LG Marcel
I figure it’s the Android application that’s freezing?
Try using the USBControl library in my project
The arduino write code is very simple:
Make sure you’re limiting the writing frequency, and reading quickly enough on both sides. There’s a strange behaviour where the connection will appear to hang if there’s too much data being buffered.