Search the web
Sign In
New User? Sign Up
ts-7000 · TS-7000 ARM SBC
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Capturing serial port to text   Message List  
Reply | Forward Message #5678 of 16535 |
Does anybody have any ideas on how to easily capture serial port input (either
COM1 or
COM2) to a text file? Ideally, I would like the TS-7200 to continuously direct
serial port input
to a text file, appending to the same file (or a new file) with each restart.

The only idea I have so far is to install minicom and set up a boot script that
starts minicom
and directs it to a text file automatically.

TIA!






Fri Mar 2, 2007 5:39 am

yoobb
Offline Offline
Send Email Send Email

Forward
Message #5678 of 16535 |
Expand Messages Author Sort by Date

Does anybody have any ideas on how to easily capture serial port input (either COM1 or COM2) to a text file? Ideally, I would like the TS-7200 to continuously...
yoobb
Offline Send Email
Mar 2, 2007
12:19 pm

Use "stty" to set the serial port, and then "cat /dev/ttyAM0>log_file" ... input (either COM1 or ... continuously direct serial port input ... restart. ... ...
Gonzalo A. de la Vega
gadelavega
Offline Send Email
Mar 2, 2007
2:47 pm

... input (either COM1 or ... continuously direct serial port input ... restart. ... script that starts minicom ... Hi -- Lots of them. Check out: ttywatch -...
charliem_1216
Offline Send Email
Mar 2, 2007
3:02 pm

... input ... minicom ... Thanks to both people who've replied so far! For now, I am successfully redirecting COM2 to a log file. The device file is...
yoobb
Offline Send Email
Mar 4, 2007
12:32 am

Here is the code I use and to gather GPS data. Seems to work well. The port open code (gps.h) is in the files area. Hope that helps. David fd =...
David
davidalgeo
Offline Send Email
Mar 4, 2007
2:43 am

... input (either COM1 or ... continuously direct serial port ... each restart. ... boot script that starts ... device file is /dev/ttyAM1. I ... in the file...
Gonzalo A. de la Vega
gadelavega
Offline Send Email
Mar 4, 2007
3:32 am

I'd just set up a program to read from /dev/ttys1 (com1) and print it to the screen. Then I'd use the '>' character to redirect output to a text file. prompt>...
mbuynak
Offline Send Email
Mar 20, 2007
8:33 pm

... There is a program called ttysnoop http://linux.maruhn.com/sec/ttysnoop.html...
Jim Jackson
jimbox51
Offline Send Email
Mar 20, 2007
10:27 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help