This document describes TCR Application Payload Format V2
Older versions of this document:
TCR devices send the application payload in regular intervals using port 15.
Byte | Property | Description | Uplink Values | Downlink Values |
---|---|---|---|---|
0 | VID | Vendor ID, always 0xbe for Parametric Devices | be | ignored (*) |
1 | DEV_FAM | Device Family, always 0x02 for TCR Devices | 02 | ignored (*) |
2 | PAY_VER | Payload Version, always 0x02 for V2 Payloads | 02 | ignored (*) |
3:4 | SBX_BATT | battery voltage when equiped with an SBX solar charger 0…65535mV |
0000-ffff | ignored (*) |
5:6 | SBX_PV | Solar panel power when equiped with SBX 0…65535 mW |
0000-ffff | ignored (*) |
7:8 | TEMP | Device Temperature -3276.8°C –>3276.7°C |
f000-0fff | ignored (*) |
9:10 | L0_CNT | object count from left in speed class 0 0-65535 |
0000-ffff | ignored (*) |
11 | L0_AVG | average speed from left in speed class 0 0-255 km/h |
00-ff | ignored (*) |
12:13 | R0_CNT | object count from right in speed class 0 0-65535 |
0000-ffff | ignored (*) |
14 | R0_AVG | average speed from right in speed class 0 0-255 km/h |
00-ff | ignored (*) |
15:16 | L1_CNT | object count from left in speed class 1 0-65535 objects |
0000-ffff | ignored (*) |
17 | L1_AVG | average speed from left in speed class 1 0-255 km/h |
00-ff | ignored (*) |
18:19 | R1_CNT | object count from right in speed class 1 0-65535 objects |
0000-ffff | ignored (*) |
20 | R1_AVG | average speed from right in speed class 1 0-255 km/h |
00-ff | ignored (*) |
21:22 | L2_CNT | object count from left in speed class 2 0-65535 objects |
0000-ffff | ignored (*) |
23 | L2_AVG | average speed from left in speed class 2 0-255 km/h |
00-ff | ignored (*) |
24:25 | R2_CNT | object count from right in speed class 2 0-65535 objects |
0000-ffff | ignored (*) |
26 | R2_AVG | average speed from right in speed class 2 0-255 km/h |
00-ff | ignored (*) |
27:28 | L3_CNT | object count from left in speed class 3 0-65535 objects |
0000-ffff | ignored (*) |
29 | L3_AVG | average speed from left in speed class 3 0-255 km/h |
00-ff | ignored (*) |
30:31 | R3_CNT | object count from right in speed class 3 0-65535 objects |
0000-ffff | ignored (*) |
32 | R3_AVG | average speed from right in speed class 3 0-255 km/h |
00-ff | ignored (*) |
(*) These field values are ignored by the device when downlinking this payload.
Uplink | Port 15 |
Downlink | Port 15 |
be02021cc0000000a0000108000000000000000000000000000000000000000000
if(byte[0] == 0xbe && byte[1] == 0x02 && byte[2] == 0x02)
{
if ( port == 190 )
{
// detected Parametric TCR Configuration Payload V2
}
if ( port == 15 )
{
// detected Parametric TCR Application Payload V2
}
}