ISO 1745 PROTOCOL
The transmission format is: 1 START bit, 7 DATA bits, 1 EVEN PARITY bit and 1 STOP bit.
• MESSAGE FORMAT TO BE SENT
The message format, as sent from the master device, must consist of the following sequence of characters:
SOH D d STX C C X ...... X ETX BCC
One byte S0H of start of message [ASCII 01].
Two bytes corresponding the first to the tens and the second to the units of the instrument address number.
One byte STX of start of text [ASCII 02].
Two commands bytes according to the functions table.
In case of commands that change parameters, a block of N bytes corresponding to the new value including sign and decimal point.
One byte ETX of end of text [ASCII 03].
One control byte BCC calculated in the following manner:
Perform an exclusive-OR with all bytes between the STX (not included) and the ETX (included).
- If the obtained byte (in ASCII format) is higher than 32, it can be taken as the BCC.
- If the obtained byte (in ASCII format) is lower than 32, the BCC byte will be obtained by adding 32.