Background logging of /dev/ttyS0 output
Hey Guys,
Long story short I'm trying to figure out how to send minicom to the background to have it log the output from /dev/ttyS0 on boot up. Starting it in rc.local with "&" doesn't seem to work - minicom stops logging. In fact, whenever you send minicom to the backgroup, it seems to stop logging. Works great otherwise. I've looked into picocom and cu, however I can't seem to get them to correctly output the characters (the device its connected to uses 7 bit ASCII, but an 8 bit data path, I can't figure out how to configure that for cu and picocom). Any suggestions would be appreciated... detailed suggestions would be excellent. This is my first foray into serial communications... Relevant info: CentOS 5.1 Virtual Machine with /dev/ttyS1 on the host connected to a virtual serial port (/dev/ttyS0) on the guest VM. Connection specific info: Baud: 1200 Data Bits: 8 Parity: None Stop bits: 1 Flow control: Xon/Xoff 7 bit ASCII Thanks! |
I will assume what you mean by 7 bit ASCII is that the data is 0-127 decimal and does not include the extended ASCII characters i.e. 128-255. In this case it does not matter that your serial port settings are 8 bit.
You might be able to use the cat command and write the data to a file i.e. cat /dev/ttyS0 > filename |
Hey michaelk,
Thanks for the reply. Yes, that's actually what I ended up using once I got the correct settings with stty. I probably should have posted that....^_^ |
All times are GMT -5. The time now is 02:44 PM. |