Tuesday, March 4, 2008

Linux kernel support for BSM7-D-USB

Just realized yesterday, that recent kernel versions (2.6.24.x) support BSM7-D-USB main stations. It took a while to update the kernel, mainly following the instructions on this page, but it was worth waiting:

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

How cool is that, now this really settles the USB driver part and time to start on the web application.

No comments: