
B5U027115E
GEN2 M30 UHF Serial-J1939 Manual – Rev. 1.15
Page 31 of
51
The
BLUEBOX
address is expressed with a byte (0…255 in decimal, 0x00 …
0xFF in hexadecimal) transformed into two ASCII characters: the first ASCII
character <add h> corresponds to the ASCII coding of the high nibble of the
byte, while the second ASCII character <add l> corresponds to the ASCII
coding of the low nibble of the byte. Example: 255
0xFF
‘F’ ‘F’. This rule is
also valid for coding a generic byte value.
For instance, the ‘data request’ command message for a
BLUEBOX
with
address 1 will be: SOH ‘0’ ‘1’ ENQ ENQ CR (in hexadecimal: 0x01, 0x30, 0x31,
0x05, 0x05, 0x0D).
4.1
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
Dove:
<add h> <add l>
New address to be set. ASCII encoded byte.
<bdr>
RS232/RS485 communication 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>
RS232/RS485 communication interface data bits. ASCII
character:
‘7’ -> 7 bits;
‘8’ -> 8 bits.
<stop>
RS232/RS485 communication interface stop bits. ASCII
character:
‘1’ -> 1 bit;
‘2’ -> 2 bits.