Unitrunker said:
Good grief - yet another VISA II style communication protocol. If you wrote communications software for point of sale terminals in the late 1980's - you'll know what I'm talking about.
-rick
Actually, to me (at least) it looks like it could be a permutation of Hessen Network Protocol, or something similar:
GRE control:
<STX><msgCode><msgData><ETX><sum>
(where sum = sum of bytes after STX in hex)
Hessen (from
http://www.teledyne-api.com/manuals/hessen_02252c.pdf):
<STX><msgData><ETX><sum>
(where sum = XOR'd number of bytes including STX and ETX in hex)
(As an aside, Hessen Network Protocol is also used for things like controllng air pollution monitors)
Another mutation a bit closer is an official standard for an ISO14443-compliant smartcard reader (from http://www.rds.co.nz/RDTS/rdts.nsf/dx/RSSSerialProtocol.doc/$file/RSSSerialProtocol.doc):
<STX><msgToken><msgCode><msgData><ETX><sum>
(where sum = XOR'd number of bytes between STX and ETX)
The protocol used to talk to a JWS RF matrix switch
is identical, save for adding the STX statement to its checksum (per
http://www.jfwindustries.com/ExistingSamples/50MS-104 Manual.pdf):
<STX><msgCode><msgData><ETX><sum>
(where sum = XOR'd number of bytes including STX and ETX)
Apparently there is already code out there to do essentially what is needed for scanner control under Perl:
[link=http://www.tek-tips.com/viewthread.cfm?qid=1209423&page=1]Perl code[/link]
Just to give some ideas and stuff :3