TCR LoRaWAN® Payload Description
Important Note
The information in this section is for Parametric products as at 31/12/2023 and will not be subject to any updates in the future.
This document describes LoRaWAN® payload formats of Parametric TCR Traffic Counters introduced with Firmware V1.3
Application Payload
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.
Ports used
Uplink | Port 15 |
Downlink | Port 15 |
Application Payload Example (Hexstring)
be02021cc0000000a0000108000000000000000000000000000000000000000000
Configuration Payload
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 0x02 for V2 Payload | 03 | ignored (*) |
3 | DeviceType | 00: TCR-LS 01: TCR-LSS 02: TCR-HS 03: TCR-HSS |
00-03 | ignored (*) |
4:6 | FirmwareVersion | 0x010300 = V1.3.0 | 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 | RadarAutotuning | Enable / Diable Autotunig to find the right RadarSensitivity 00 = disabledy 01 = enabled |
00-01 | 00-01 |
17 | RadarSensitivity | 10-100% | 0a-64 | 0a-64 |
18:19 | LTRLaneDist | Distance to lane with traffic from left (50-3000cm) | 0032-0BB8 | 0032-0BB8 |
20:21 | RTLLaneDist | Distance to lane with traffic from right (50-3000cm) | 0032-0BB8 | 0032-0BB8 |
22 | SC0_START | Speed class 0 window start 0-255 km/h |
00-ff | 00-ff |
23 | SC0_END | Speed class 0 window end 0-255 km/h |
00-ff | 00-ff |
24 | SC1_START | Speed class 1 window start 0-255 km/h |
00-ff | 00-ff |
25 | SC1_END | Speed class 1 window end 0-255 km/h |
00-ff | 00-ff |
26 | SC2_START (**) | Speed class 2 window start 0-255 km/h |
00-ff | 00-ff |
27 | SC2_END (**) | Speed class 2 window end 0-255 km/h |
00-ff | 00-ff |
28 | SC3_START (**) | Speed class 3 window start 0-255 km/h |
00-ff | 00-ff |
29 | SC3_END (**) | Speed class 3 window end 0-255 km/h |
00-ff | 00-ff |
30:32 | SBXFirmwareVersion | 0x040100 = V4.1.0 | 010000-ffffff | ignored (*) |
() These fields values are ignored by the device when downlinking this payload (*) Speed class 2 and 3 is not used on TCR-LS, TCR-LSS devices
Ports used
Uplink | Port 190 |
Downlink | Port 190 |
Configuration Payload Example (Hexstring)
be020300010300000001000a05a00000005a00fa00fa0107082800000000040100
Payload Decoder
Best Practice
Please check the port number and header of the payload to be backward compatible
if(bytes[0] == 0xbe && bytes[1] == 0x02)
{
// its a TCR
if(port == 15)
{
// it's an Application Payload
if(bytes[2] == 0x01) // V1
{
obj = app_payload_v1_decoder(bytes, port);
}
if(bytes[2] == 0x02) // V2
{
obj = app_payload_v2_decoder(bytes, port);
}
}
if(port == 190)
{
// it's a Configuration Payload
if(bytes[2] == 0x01) // V1
{
obj = config_payload_v1_decoder(bytes, port);
}
if(bytes[2] == 0x02) // V2
{
obj = config_payload_v2_decoder(bytes, port);
}
if(bytes[2] == 0x03) // V3
{
obj = config_payload_v3_decoder(bytes, port);
}
}
}
Disclaimer
ALL PRODUCT, PRODUCT SPECIFICATIONS AND DATA ARE SUBJECT TO CHANGE WITHOUT NOTICE TO IMPROVE RELIABILITY, FUNCTION OR DESIGN OR OTHERWISE.
PMY Systems AG, its affiliates, agents, and employees, and all persons acting on its or their behalf (collectively, "PMX"), disclaim any and all liability for any errors, inaccuracies or incompleteness contained in any datasheet or in any other disclosure relating to any product.
PMX makes no warranty, representation or guarantee regarding the suitability of the products for any particular purpose or the continuing production of any product. To the maximum extent permitted by applicable law, PMX disclaims (i) any and all liability arising out of the application or use of any product, (ii) any and all liability, including without limitation special, consequential or incidental damages, and (iii) any and all implied warranties, including warranties of fitness for particular purpose, non-infringement and merchantability.
Statements regarding the suitability of products for certain types of applications are based on PMX's knowledge of typical requirements that are often placed on Paramtric products in generic applications. Such statements are not binding statements about the suitability of products for a particular application. It is the customer's responsibility to validate that a particular product with the properties described in the product specification is suitable for use in a particular application. Parameters provided in datasheets and / or specifications may vary in different applications and performance may vary over time. All operating parameters, including typical parameters, must be validated for each customer application by the customer's technical experts. Product specifications do not expand or otherwise modify Paramtric's terms and conditions of purchase, including but not limited to the warranty expressed therein.
Hyperlinks may direct users to third-party websites. These links are provided as a convenience and for informational purposes only. Inclusion of these hyperlinks does not constitute an endorsement or an approval by PMX of any of the products, services or opinions of the corporation, organization or individual associated with the third-party website. PMX disclaims any and all liability and bears no responsibility for the accuracy, legality or content of the third-party website or for that of subsequent links.
Except as expressly indicated in writing, PMX products are not designed for use in medical, life-saving, or life-sustaining applications or for any other application in which the failure of the PMX product could result in personal injury or death. Customers using or selling PMX products not expressly indicated for use in such applications do so at their own risk. Please contact authorized PMX personnel to obtain written terms and conditions regarding products designed for such applications.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted by this document or by any conduct of PMX. Product names and markings noted herein may be trademarks of their respective owners