EasyManua.ls Logo

Ecotech Serinus 51 - Appendix C - Bavarian Protocol

Ecotech Serinus 51
99 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...
Appendix Serinus 51 User manual 1.0
84
Appendix C – Bavarian Protocol
Bavarian Network Command Set Format
All Bavarian Network commands follow the command format as specified in this
section. The specific Bavarian commands and their function are described in section
Bavarian Network Command Format: <STX><TEXT><ETX><BCC1><BCC2>
Where:
<STX> = ASCII Start Of Transmission = 02 hex
<TEXT> = ASCII text maximum length of 120 characters
<ETX> = ASCII end of transmission = 03 hex
<BCC1> = ASCII representation of block check value MSB
<BCC2> = ASCII representation of block check value LSB.
The block check algorithm begins with 00 Hex and exclusive-OR 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 I.D. of 97:
<STX>DA097<EXT>3A
The block check calculation is best shown by the following table:
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
The binary value 0011 1010 corresponds to the hex value 3A. This value in ASCII
forms the last two characters of the data request message. Please note that the I.D. of
97 is sent as the sequence 097. All I.D. strings must have 3 digits and the user should
always pad with ASCII zero characters.
This is an example of a valid command to put the unit in the manual span mode if the
instrument has an I.D. of 843:
<STX>ST843 K<ETX>52
The block check operation is best shown with the following table:
Character Hex Value Binary Block Check
<STX> 02 0000 0010 0000 0010
S 53 0101 0011 0101 0001
T 54 0101 0100 0000 0101
8 38 0011 1000 0011 1101
4 34 0011 0100 0000 1001
3 33 0011 0011 0011 1010
20 0010 0000 0001 1010
K 4B 0100 1011 0101 0001
<ETX> 03 0000 0011 0101 0010
The binary block check value is 0101 0010 which is the hex value 52 as shown at the
end of the command string.

Table of Contents

Related product manuals