The USB main station immediately showed up as /dev/ttyUSB0 and was able to use the perl script posted earier to get the serial data. Note that the USB station was put is Autosend mode. I also set the baud rate to 4800 using the SiConfig Win32 application, but surprisingly the speed was 38400 regardless. Make sure speed is set to 38400 in the script below.
=>perl si_reader.pl /dev/ttyUSB0
Perl version: 5.008008
OS version: linux
Loading Unix modules
opened serial port /dev/ttyUSB0 as /dev/ttyUSB0
Len: 187
023110053f561000100140a410021000100010001000100010001000100010006540a4eeeeeeee100556eeee281002e6
000eeee1000eeee1000eeee1000eeee1000eeee10001000eeee1000eeee1000eeee1000eeee1000eeee10001000eeee1
How cool is that, now this really settles the USB driver part and time to start on the web application.
No comments:
Post a Comment