Page Page F-2 F-2 LASAIR LASAIR II II Operator’s Operator’s ManualManual
Appendix F: Multidrop Protocol (MiniLaz Emulation)Appendix F: Multidrop Protocol (MiniLaz Emulation)
Multi-Drop Command Coding OverviewMulti-Drop Command Coding Overview
Commands in the PMS protocol are formatted in the following manner. ForCommands in the PMS protocol are formatted in the following manner. For
users wishing to write their own drivers, basic communication routines areusers wishing to write their own drivers, basic communication routines are
available from Particle Measuring Systems.available from Particle Measuring Systems.
Formatting Command CodesFormatting Command Codes
To properly format a command code:To properly format a command code:
11
Add the address of the instrument to the beginning oAdd the address of the instrument to the beginning of the command string. Thef the command string. The
address is an unsigned 16 bit integer between 0 and 99.address is an unsigned 16 bit integer between 0 and 99.
22
Add a 16 bit checksum of the data and address to the end of the packet. TheAdd a 16 bit checksum of the data and address to the end of the packet. The
checksum is an unsigned sum of every address and data byte.checksum is an unsigned sum of every address and data byte.
At this point the packet should look like this:At this point the packet should look like this:
ADDR_HIGH_BYADDR_HIGH_BYTE | ADDR_LOW_TE | ADDR_LOW_BYTE | DATA_1 | BYTE | DATA_1 | DATA_2 | ... |DATA_2 | ... |
DATA_N | DATA_N | CHECKSUM_HIGHCHECKSUM_HIGH_BYTE | _BYTE | CHECKSUM_LOWCHECKSUM_LOW_BYTE_BYTE
33
ASCII characters not in the range of 0x20 to 0x7E ASCII characters not in the range of 0x20 to 0x7E must be converted to a 2-bytemust be converted to a 2-byte
sequence using the following table:sequence using the following table:
44 Pre-append an ASCII <STX> character (0x02) to Pre-append an ASCII <STX> character (0x02) to the data stream, and post-the data stream, and post-
append an ASCII <ETX> character (0x03) append an ASCII <ETX> character (0x03) to the data stream.to the data stream.
55 Data is ready to transmit.Data is ready to transmit.
Multi-Drop CommandsMulti-Drop Commands
CCALCCAL
Response:Response:
"RCAL yyyy/mm/dd""RCAL yyyy/mm/dd"
Returns the Returns the last calibration last calibration date. date. (A LASAIR (A LASAIR II should II should be calibrated be calibrated atat
least once a year).least once a year).
CCONT nCCONT n
Response: “Response: “
RCONT mRCONT m
””
OORRIIGGIINNAAL L BBYYTTEE TTRRAANNSSMMIITTTTEED D BBYYTTEESS
byte < 0x20byte < 0x20 0x7B, byte+0x200x7B, byte+0x20
0x0x7B 7B <= <= bybyte te < 0< 0x8x80 0 0x0x7C7C, b, bytyte-e-0x0x5B5B
0x80 <= byte < 0xC00x80 <= byte < 0xC0
0x7D, byte-0x600x7D, byte-0x60
0xC0 <= byte0xC0 <= byte
0x7E, byte-0xA00x7E, byte-0xA0