This document describes TCR Payload Formats
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 0x01 for V1 Payloads | 01 | ignored (*) |
3 | SBX_BATT | battery gauge when equiped with an SBX solar charger 0…100% |
00-64 | ignored (*) |
4:5 | SBX_PV | Solar panel power when equiped with SBX 0…65535 mW |
0000-ffff | ignored (*) |
6:7 | TEMP | Device Temperature -3276.8°C –>3276.7°C |
f000-0fff | ignored (*) |
8:9 | L0_CNT | object count from left in speed class 0 0-65535 |
0000-ffff | ignored (*) |
10 | L0_AVG | average speed from left in speed class 0 0-255 km/h |
00-ff | ignored (*) |
11:12 | R0_CNT | object count from right in speed class 0 0-65535 |
0000-ffff | ignored (*) |
13 | R0_AVG | average speed from right in speed class 0 0-255 km/h |
00-ff | ignored (*) |
14:15 | L1_CNT | object count from left in speed class 1 0-65535 objects |
0000-ffff | ignored (*) |
16 | L1_AVG | average speed from left in speed class 1 0-255 km/h |
00-ff | ignored (*) |
17:18 | R1_CNT | object count from right in speed class 1 0-65535 objects |
0000-ffff | ignored (*) |
19 | R1_AVG | average speed from right in speed class 1 0-255 km/h |
00-ff | ignored (*) |
20:21 | L3_CNT | object count from left in speed class 2 0-65535 objects |
0000-ffff | ignored (*) |
22 | L3_AVG | average speed from left in speed class 2 0-255 km/h |
00-ff | ignored (*) |
23:24 | R3_CNT | object count from right in speed class 2 0-65535 objects |
0000-ffff | ignored (*) |
25 | R3_AVG | average speed from right in speed class 2 0-255 km/h |
00-ff | ignored (*) |
26:27 | L3_CNT | object count from left in speed class 3 0-65535 objects |
0000-ffff | ignored (*) |
28 | L3_AVG | average speed from left in speed class 3 0-255 km/h |
00-ff | ignored (*) |
29:30 | R3_CNT | object count from right in speed class 3 0-65535 objects |
0000-ffff | ignored (*) |
31 | 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 |
be02016412c218b800000000010600000000020b00000000011e000000000000
This payload is sent once after a successful join. It is recommended to save the information for tracking the devices settings over time.
You could use the same format for creating a configuration downlink to port 190. Once received the device will restart and re-join.
Byte | Property | Description | Uplink Values | Downlink Values |
---|---|---|---|---|
0 | Vendor ID | Always 0xbe for Parametric Devices | be | ignored (*) |
1 | DeviceFamily | Always 0x02 for TCR Devices | 02 | ignored (*) |
2 | PayloadVersion | Always 0x01 for V1 Payloads | 01 | ignored (*) |
3 | DeviceType | 00: TCR 01: TCR-S |
00-01 | ignored (*) |
4:6 | FirmwareVersion | 0x010203 = V1.2.3 | 010000-01ffff | ignored (*) |
7 | OperatingMode | 00: Timespan 01: Trigger |
00-01 | 00-01 |
8 | DeviceClass | 00: Class A 02: Class C |
00 or 02 | 00 or 02 |
9 | UplinkType | 00: Uncofirmed 01: Confirmed |
00 or 01 | 00 or 01 |
10:11 | UplinkInterval | 1-1440 Minutes | 0001-05a0 | 0001-05a0 |
12:13 | LinkCheckInterval | 1-1440 Minutes, 0 = No LinkChecks | 0000-05a0 | 0000-05a0 |
14:15 | HoldoffTime | 0-600s | 0000-0258 | 0000-0258 |
16 | RadarSensitivity | 10-100% | 0a-64 | 0a-64 |
17 | LTRLaneDist | Distance to lane with traffic from left 1-30m |
01-1e | 01-1e |
18 | RTLLaneDist | Distance to lane with traffic from right 1-30m |
01-1e | 01-1e |
19 | SC0_START | Speed class 0 window start 0-255 km/h |
00-ff | 00-ff |
20 | SC0_END | Speed class 0 window end 0-255 km/h |
00-ff | 00-ff |
21 | SC1_START | Speed class 1 window start 0-255 km/h |
00-ff | 00-ff |
22 | SC1_END | Speed class 1 window end 0-255 km/h |
00-ff | 00-ff |
23 | SC2_START | Speed class 2 window start 0-255 km/h |
00-ff | 00-ff |
24 | SC2_END | Speed class 2 window end 0-255 km/h |
00-ff | 00-ff |
25 | SC3_START | Speed class 3 window start 0-255 km/h |
00-ff | 00-ff |
26 | SC3_END | Speed class 3 window end 0-255 km/h |
00-ff | 00-ff |
(*) These fields values are ignored by the device when downlinking this payload
Uplink | Port 190 |
Downlink | Port 190 |
be020100010000000000000305a00000640000010708191a313278
if(byte[0] == 0xbe && byte[1] == 0x02 && byte[2] == 0x01)
{
if ( port == 190 )
{
// detected Parametric TCR Configuration Payload V1
}
if ( port == 15 )
{
// detected Parametric TCR Application Payload V1
}
}