Configure PCR2 using the Command Line Interface (CLI)

Install VCP Drivers

To access PCR2 connected with a USB-Cable you need to install the STM VCP drivers first. After installation you should see a new serial device in Windows Device Manger.

Terminal Settings

You then need a Serial Terminal Emulator like Termite or RealTerm to open the serial port.

The CLI uses 57600 8N1 and CRLF (\r\n) line endings.

Here is a video showing how to setup RealTerm.

CLI Commands

Payload Type

You can choose between Default (Parametric) and Cayenne LPP payload format. (see PCR2 Payload Description)

lora get ptype 
>0
lora set ptype 1
>1

DevEUI (uniqe 64 bit end-device identifier)

lora get deveui 
>0123456789abcdef
lora set deveui 0123456789abcdf
>01234567890abcdef

AppEUI (unique 64 bit application identifier)

lora get appeui   
>deadbeefdeadbeef
lora set appeui deadbeefdeadbeef
>deadbeefdeadbeef

AppKey

lora get appkey
>3334373956377C083334373956377C08
lora set appkey 3334373956377C083334373956377C08
>3334373956377C083334373956377C08

Frequency Sub-Band (FSB)

For US and AU only, 8 sub-bands are available (set 1-8). 0 = all channels enabled.

Examples:

  • machineQ: FSB1
  • mydevices/TTN: FSB2
lora get fsb 
>1
lora set fsb2
>2

Sending Interval

Set the sending interval in minutes (1…1440 minutes). Default: 10.
During this time, alle persons will be counted and sums are transferred. After transfer counters will be reset.

lora get interval
>10
lora set interval 60
>60
restart

Uplink on demand

If this is enabled counters are sent only if persons have been counted. Uplink will be scheduled in intervals (see lora set interval)

lora get ulod
>0
lora set uload 1
>1

Confirmed Uplink Messages

Enable confirmed uplink messages. Default: 0

lora get confirmed
>0
lora set confirmed 1
>1
retart

LinkCheck Interval

We will send a LinkCheck MAC command together with an uplink regularly to make sure gateway responds properly. If there is no answer we try to re-join. lci is in range … 1440.

Default: 120

lora get lci
>120
lora set lci 60
>60
Last Updated May 05, 2019
  • On 2019-03-08