Today I updated the perl client with all the features and options the Win32 client has.
I badly need an SI 6 card to see how the raw binary data coming from the serial port can be cracked.
Friday, March 28, 2008
Thursday, March 27, 2008
Win32 client released
Thanks to MSVC++ Express I was able to write a reliable Win32 client, si_reader.exe with the following features:
- Read data from serial port ( serial main station or USB station with USB-Serial bridge driver for Win32 )
- Alternatively read data from input file created by client
- Save data to file (later to be used by client to send data to FreePunch server)
- Send data to FreePunch server
- Read data from serial port ( serial main station or USB station with USB-Serial bridge driver for Win32 )
- Alternatively read data from input file created by client
- Save data to file (later to be used by client to send data to FreePunch server)
- Send data to FreePunch server
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.
How cool is that, now this really settles the USB driver part and time to start on the web application.
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.
Subscribe to:
Posts (Atom)