Config

General Config

Config Version

This is a unique integer value to indicate the version of the configuration schema. Currently, this is 4.

Send Interval

The send interval, or transmission interval, defines the amount of time between uplinks from a Fencyboy device. The default value is 10 minutes.

Smart Sleep

This boolean flag enables or disables the smart sleep functionality. See Smart Sleep for more information.

Expected Time Between Impulses

This value configures the expected time between energy impulses on the fence in milliseconds. It is used to guide the control algorithm for smart sleep, and it is also used for the timeout functionality to send an uplink once the fence is turned off. This value defaults to 1000 ms, which is a good value and usually does not need to be changed.

Periodic Restart Time

This value configures the time in minutes until the device restarts automatically. By default, this is set to 2 weeks. This is useful in case you lose the LoRaWAN session for some reason.

Voltage Divider Multiplier

The resistor voltage divider on the Fencyboy (the big resistors at the bottom) has a specific ratio that is configured by this value. If one uses resistors with 0% tolerance, this value would be 5130, which is also the default value. However, this value may be adjusted after determining the exact resistor values for maximum accuracy.

Battery Config

Maximum Battery Capacity

The maximum capacity of the battery used by the Fencyboy is hard-coded into the software. This may be 16000 mAh for a SAFT LS33600 battery.

Used Battery Capacity

This float value is stored in the EEPROM to track the total energy consumption of the sensor. This value is used to calculate the remaining battery capacity, which is transmitted in the periodic uplinks.

Last updated