Downlinks

This page describes all LoRaWAN downlinks supported by Fencyboy. You can use them to configure and manage a Fencyboy device remotely.

Fencyboy supports several downlink commands to change config settings, manage the lifecycle (e.g. restart the device) and get debug information. Fencyboy accepts the commands on downlink port 2. Some commands require additional parameters, which are validated on the client side. The following table lists all currently supported downlink commands.

Sending Multiple Commands

Fencyboy supports multiple commands in one downlink request. You can add up to 16 bytes of commands and parameters in a single request. The request is ignored if you exceed this limit. All commands in your request are processed sequentially. Some common sequences of commands are listed below.

Updating the Transmission Interval Permanently

If you want to permanently change the transmission interval, you can make use of a combination of three commands. First, set the new transmission interval using opcode 0x80 to the desired value. Next, save the currently used settings to the EEPROM using opcode 0x90 so that they won't get lost after the device restarts. Finally use opcode 0x92 to get the currently active config to assure that all settings are correct.

// Permanently sets the transmission interval to 15 minutes
0x80149092

Save Used Battery Capacity and Reboot

// saves the currently used battery capacity to the EEPROM and reboots the device
0xA010

Last updated