17
12 DATA FORMAT
When the message protocol 121 (encoded message, param 50 121) is selected, measurements are sent in encoded format having the
following structure:
Note: This is the format used to communicate with the 3G/4G modems provided as accessories of the TMA-3B3.
12.1
M
EASUREMENT MESSAGE
:
0x02
0x99
MEASUREMENT PAYLOAD
0X03
12.2
M
EASUREMENT PAYLOAD
:
Position
Description
Range (default)
Note
1
Measured speed
km/h
2
Supposed length (not measured)
decimeters
3
Hundredth of second
0x00 - 0x99
BCD
4
Second
0x00 - 0x59
BCD
5
Minute
0x00 - 0x59
BCD
6
Hour (24h format)
0x00 - 0x24
BCD
7
Day and direction
0x00 - 0x31 (| 0x80)
See “Day and direction
byte”
8
Month
0x01 - 0x12
BCD
9
Vehicle counter LSB
[0, 16M vehicles]
Counter reset at startup
10
Vehicle counter MSB
11
Vehicle counter MMSB
12
Perpendicular range LSB
[0, 4000]
centimeters
13
Perpendicular range MSB
14
Detection type
1, 2, 3 or 30
See “detection types”
15
Century
0x20
BCD
16
Year
0x00 - 0x99
BCD
Notes:
•
The given timestamp is the validation time of the laser detection if available (that is, 80 ms after the target has finished crossing
the laser beam, for the default configuration of the device).
•
BCD means “binary coded decimal.” Ex. decimal 42 is encoded
as 0x42 (= decimal 66).
•
The vehicle counter is reset at each detector reset and loops over itself in case of overflow.
•
Fields 12, 13 and 14 were previously unused.
12.3
D
AY AND DIRECTION BYTE
:
Position
Parameter
Signification if 0
Signification if 1
Bit 7 (MSb)
Direction
Incoming direction
Outgoing direction
Bit 6
Day tens 2 (in BCD)
Bit 5
Day tens 1 (in BCD)
Bit 4
Day tens 0 (in BCD)
Bit 3
Day units 3 (in BCD)
Bit 2
Day units 2 (in BCD)
Bit 1
Day units 1 (in BCD)
Bit 0 (LSb)
Day units 0 (in BCD)
12.4
ASCII
MESSAGES
(
PARAM
50
100)
When the message protocol 100 is selected, measurements are done according to a semi-colon separated CSV format:
TYP; DATETIME; SPEED; LENGTH
Where:
TYP
is the detection type as a 3 digits number (see
)
DATETIME
is the timestamp of the measurement under the format:
YYYY/mm/dd HH:MM:SS,hhh