EasyManua.ls Logo

Ecotech Serinus 40 - Appendix C. Bavarian Protocol

Ecotech Serinus 40
148 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Bavarian Protocol
Page 141
Appendix C. Bavarian Protocol
All Bavarian Network commands follow the command format as specified in this section.
Bavarian Network Command Format
<STX><text><ETX>< bcc1><bcc2>
Where:
<STX> = ASCII start of transmission = 0x02 hex
<text> = ASCII text maximum length of 120 characters
<ETX> = ASCII end of transmission = 0x03 hex
<bcc1> = ASCII representation of block check value MSB
<bcc2> = ASCII representation of block check value LSB
The block check algorithm begins with 0 and exclusive-OR’s each ASCII character from <STX> to
<ETX> inclusive. This block check value is then converted to ASCII format and sent after the <ETX>
character.
Examples
The following is an example of a valid Bavarian data request for an instrument that has an ID of 97:
<STX>DA097<EXT>3A
The block check calculation is best shown by the following example:
Table 13 Block check calculation
Character
Hex Value
Binary
Block Check
<STX>
02
0000 0010
0000 0010
D
44
0100 0100
0100 0110
A
41
0100 0001
0000 0111
0
30
0011 0000
0011 0111
9
39
0011 1001
0000 1110
7
37
0011 0111
0011 1001
<ETX>
03
0000 0011
0011 1010

Table of Contents

Related product manuals