So I am using an Arduino attached to a computer and I need the computer to log the serial ouput to a file.
Some info:
baud=9600
serial port is /dev/ttyACM0
Ardiono Uno R3
Linux Mint 12
My problem is that the serial monitor built into the IDE gets all of the info correctly, but when I read /dev/ttyACM0 I get gibberish. I had wanted to solution to be generic to all linux boxes, not just those with the IDE installed. The output is in the format of a csv file
Here are my outputs:
The Arduino IDE
- Code: Select all
13918968,78,62,a string
13921462,72,68,a string
13924175,71,63,
13925865,67,70,a string
13928477,60,67,
13930271,63,74,
13932077,75,68,
13933760,79,67,a string
13936468,76,64,a string
13938961,60,75,a string
13941565,77,65,a string
13944271,79,74,
13945962,67,64,a string
13948574,76,75,
13950365,65,77,a string
13952968,64,62,a string
13955461,70,76,a string
13958167,74,69,a string
13960776,71,65,
13962572,72,74,
13964261,70,63,a string
13966860,72,70,a string
13969579,65,71,
13971279,77,61,
13972967,73,66,a string
13975566,66,68,a string
13978277,69,72,
13979967,65,62,a string
13982661,76,65,a string
13985172,69,70,
13986971,66,70,
13988675,74,62,
13990574,73,66,
1399227
note that this is test program, so the above output is just random numbers the Arduino generated.
And here is the attached serial file gotten from running
- Code: Select all
tail -f /dev/ttyACM0 > arduinoSerial.csv
http://dl.dropbox.com/u/5803827/arduinoSerial.csv (The file is attached. I thought it was a plaintext ascii, but clearly not--it is gibberish. I have no idea what encoding it is using, if it is even using one).
I looked this up, and the best info I found was http://forums.esri.com/Thread.asp?c=93&f=1149&t=114504, but that is both out of date (2004) and I would like to understand this and I do not know awk.
Thanks,
Nathan

