File Page File:ttymon v1.tgz
Click here to download - ttymon_v1.tgz
This is a perl script and associated configs. I locate it in /opt/ttymon/bin. You can read the details in the file itself. Use the companion configuration file and the commands below to get started.
Arduino Sketch is included in tar to monitor temperatures.
tar -xzvf ttymon.tar
Will create the /opt/ttymon tree
I used mkfifo /opt/ttymon/bin/ttyUSB0
Now you can use the echo command to simulate the arduino (or any other serial port ) by doing:
echo “log:SourceFeed:F:177.45” >> /opt/ttymon/bin/ttyUSB0
start the program like this :
root@mwklt8440a:/opt/ttymon/bin# ./ttymon -config ttymon.cfg -bg -clean
ttylog started with process ID 13007 detaching from foreground
root@mwklt8440a:/opt/ttymon/bin#
Watch the log like this:
root@mwklt8440a:/opt/ttymon/log# tail -f sensor_temps_a
D12232009_T123103 log:SourceFeed:F:176.45
D12232009_T123103 log:SourceFeed:F:176.45
D12232009_T123103 log:SourceFeed:F:176.45
D12232009_T123104 log:SourceFeed:F:176.45