TCR are networked traffic counters with LoRaWAN connection.  However, it is also possible to operate the devices without a LoRaWAN connection via a serial interface. In this case the internal LoRaWAN modem needs to be disabled.

This guide shows step by step how to proceed.


NOTE: This application note relates to TCR Firmware V2.0.4 and newer.



USB Interface

TCR devices are equipped with an USB interface for configuration.  You can use the interface for powering the device and receiving data at the same time.


USB VCP (Virtual COM Port) Driver

Virtual COM port (VCP) drivers cause the USB device to appear as an additional COM port available to the PC. Application software can access the USB device in the same way as it would access a standard COM port. 


Your host should have a Virtual COM Port Driver for STM32 devices installed in order to communicate with TCR.

https://www.st.com/en/development-tools/stsw-stm32102.html



Disable the LoRaWAN Modem

Use the command line interface (CLI) to communicate with TCR.  See the CLI documentation for more info: https://docs.parametric.ch/tcr/2.0/cli/


Following commands you need to send to the device to permanently switch off the LoRaWAN modem.  

lora set enabled 0
save
restart


Poll counter values

To detect countings you can send get ltr and get rtl regularerly to check for new countings. 


These commands return the sum of all categories in that particular direction. 



 See CLI documentation for more info about available commands.