Sunday, January 30, 2005

hmm, i wonder why my experiments with


cat /dev/ttyS0


didn't show any activity, but


gpm -m /dev/ttyS0


did.


hmm.

update, feb 04/05, completely by accident found the reason
why the above didn't work. i wasn't tickling the serial
port properly. found it on the openeeg website, on the
tutorial.

here it is:


#!/bin/sh

# Configure serial port
stty -F /dev/ttyS0 sane 57600 intr undef quit undef erase undef kill undef eof undef eol undef eol2 undef start undef stop undef susp undef rprnt undef werase undef lnext undef flush undef min 1 time 0 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke

# View port traffic and write to file '/tmp/test.dat'
cat /dev/ttyS0 | tee /tmp/test.dat | od -tx1 -w17