BLUEBOX CX Industrial UHF
Page 67 of 126
4
Device Startup
During the startup phase, it is possible to configure through the serial line (if
available) the communication parameters of the
BLUEBOX
sending the following
message (with the default communication settings 19200, n, 8, 1):
STX ‘2’ ‘F’ <addn
h> <addn l> <bdr> <bit> <stop> <par> ETX <bcc>
CR
Where:
STX
Start of Text (0x02)
‘2’ ‘F’
Command code.
<add h> <add l>
New address to be set. ASCII encoded byte.
<bdr>
Serial interface baud rate. ASCII character:
•
‘0’
-> 1200 bps;
•
‘1’
-> 2400 bps;
•
‘2’
-> 4800 bps;
•
‘3’
-> 9600 bps;
•
‘4’
-> 19200 bps;
•
‘5’
-> 38400 bps;
•
‘6’
-> 57600 bps;
•
‘7’
-> 115200 bps.
<bit>
Serial interface data bits. ASCII character:
•
‘7’
-> 7 bits;
•
‘8’
-> 8 bits.
<stop>
Serial interface stop bits. ASCII character:
•
‘1’
-> 1 bit;
•
‘2’
-> 2 bits.
<par>
Serial interface parity. ASCII character:
•
‘0’
-> None;
•
‘1’
-> Even;
•
‘2’
-> Odd.
ETX
End of Text (0x03)
<bcc>
Block check character or checksum
calculated as ‘xor’ of
the previous characters starting from STX applying the
following rule: if <bcc> = STX or <bcc> = CR, then
<bcc> := <bcc>+1 (increment of 1).