
He tells me that this is working for him: (take a look at his feed)
stty -F /dev/ttyUSB0 speed 57600 raw cs8
57600
stty < /dev/ttyUSB0
speed 57600 baud; line = 0; min = 1; time = 0; -brkint -icrnl -imaxbel -opost -isig -icanon
Nice one. Update your scripts if you used mine, or your own version accordingly and enjoy.
Another command line which can be usefull to test your connection with the CC128 is
ReplyDeletepicocom -b 57600 /dev/ttyUSB0
(update) actually got an issue with the connection as the slugs gets some overflow and eventually hang up... need to understand this problem now
ReplyDeletei've seen this also after a number of days, i think the serial port is overflowing. we need to whip up a little c prog to do the reads i think , will look into it.
ReplyDeletewondering if the overflows are not related to the history data being sent every hour (cf http://www.currentcost.com/cc128/xml.htm)
ReplyDeleteStrangely enough my pachube data become frozen at every hours... keep in mind my (yours) script is configure in crontab to be trigger every minutes...
just a though that i will investigate
Interested to know if there was any follow up to this. Am hitting the same issue with the head command hanging when called by cron, in a random but definite fashion.
ReplyDeleteThanks