2019/10/07
Operating manual/BEAROMOS 2020/Version 1.0
Page 21 of 26
1. Start character
0xA3
1Byte
2. Consecutive number
LL
2Byte
3. Time offset of round trip pulse for ADC value
TT
2Byte
4. Amplification
G
1Byte
5. Check byte
C
1Byte
6. End character
0x55
1Byte
Log Message format3 (MF3) Rotation speed
1. Start character
0xAC
1Byte
2. Consecutive number
LL
2Byte
3. Round trip time
TTT
3Byte
4. Check byte
C
1Byte
5. End character
0x55
1Byte
Message format MF1 is sent every 1.024ms. MF2 and MF3 are still sent after MF1 with each round
trip pulse that occurs:
Calculating the test byte
To keep the computing time as low as possible, the check byte is created by bytewise XOR linking of
the bytes below.
Start character
S1
1Byte
Consecutive number
LL
2Byte
24 Bit data (3 Bytes)
MMM
3Byte
Example:
A02A4E56A20C
Start character
A0
Consecutive number
2A 4E
Data
56 A2 0C
Calculation of the check byte
00 ^ A0 = A0
A0 ^ 2A = 8A
8A ^ 4E = C4
C4 ^ 56 = 82
82 ^ A2 = 30
30 ^ 0C = 3C - > Check byte = 3C
Check byte
3C
The following is transferred: A02A4E56A20C3C55
During the check on the receiver side, the received bytes are linked including the XOR check byte.
If the result = 0, it is assumed that the transfer is free of errors.
ADC value
(MF1)
Additional
info
(MF2)
1.024 ms
t
Additional
info
(MF3)
ADC value
(MF1)