supersleeper:
Hi Folks,
I see lots of how-to on tailing /dev/ttyUSB0 from third party Linux, but how do you tail the console log for Arduino from within Linino? I don't have a /dev/ttyUSB0 device, and I don't seem to get appropriate output from ttyS0 or ttyS1.
Currently I go about it a round about way with having the Arduino code write to log file with shell execution, but sometimes when I ssh to Linino, I want to see output from there directly.
@supersleeper,
you've got two different subject that often get confused.
#1 Many of the demos you see use UNO, Leonardo, or equivalent.
#2 Those units are connect via USB to a host computer (usually laptop)
#3 If you output via the IDE to the "terminal window", you have the basics done.
#4 then you can trap that port /deve/tty*
and commit to your storage of choice.
You can do the same with the YUN, using python. And have your USB connected laptop/computer capture the data via the TTY. Your open call in python would be:
ser = serial.Serial("/dev/ttyACM0", 9600)
HOWEVER, if you want to store that information on the YUN, then you use the Bridge Library to deliver the data to the YUN.
An alternative is to take over the port between the Atmel and the AR9311. There are a few people in this forum who have solutions for this. You have to start an new thread with the subject. "Are there any Bridge Library Alternatives?" Or use the alternative that SonnyYu suggests
Lastly, the solutions for seeing the data while it is writing to the SD might require a named pipe and a tee. The actual solution requires knowing some more details.
In the meantime,
Introduction to Named Pipes
http://www.linuxjournal.com/article/2156
Tee Command Usage Examples
Jesse