DoctorWho8 / microbridge

Automatically exported from code.google.com/p/microbridge
0 stars 0 forks source link

Logcat Output in Random Number format #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I use Arduino MEGA ADK rev2 to run this Microbridge
2. I Install the logcat example to my ADK
3.

What is the expected output? What do you see instead?
I expect to see the logcat of the android shell linux alike,
but the result that i get is, some numbers from 0 - 9 in random,
every time i use my phone(i.e making it do an activity) the numbers are 
streamed from on the serial box.
I already use 57600 bps baudrate

What version of the product are you using? On what operating system?
I use MEGA ADK (Original from Italy)
Android Device : CUBE U15GT 2 (2.3.1)
OS : Windows 7 Starter
Arduino 1.0
and HTerm as terminal, I already set it to Ascii display character

Please provide any additional information below.
Please help, any comments will be apreciated.

Original issue reported on code.google.com by nanda.f...@gmail.com on 18 Jan 2012 at 6:49

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hello Niels, the problem is solved!
the main cause of the random number output was the

Serial.print(data[i])

since i use the Arduino 1.0, I can't use the
Serial.print(data[i], BYTE); to make it as byte,
cause the Arduino said it's no longer supported.

so therefore i change the code to

Serial.write(data[i]);

And the logcat output is streamed beautifully..

Hope this could be your note, and i Hope this could help others.

I think we need to re-test all the example to the new Arduino 1.0
to make it uptodate, and reliable.

Best Regards!

Original comment by nanda.f...@gmail.com on 20 Jan 2012 at 8:09

Attachments: