YO AgriBox
User guide
v1.3
page 16/30
Device configuration
Configurable parameters
A few parameters must be set before sending data to the gateway. The default firmware is configured
in OTAA mode with predefined
deveui
,
appkey (
OTAA
)
and
appskey
,
nwkskey (
ABP
)
.
Configuration of the device is stored in a JSON file divided into the following sections:
-
info
(generic, read only): information about the device,
-
lorawan
(generic): configuration data for LoRaWAN connection,
-
ble
(generic): bluetooth settings,
-
device
(dynamic): individual configuration for a specific device (this section’s structure differs
for each device),
Sample configuration file for the YO Agribox device
.
{
"info": {
"devmodel": "LNAG",
"fwver": "3.6.2 ",
"loraradio": "SX1261",
"lorawanver": "1.0.2",
"loraregion": "EU868",
"blemacaddr": "0123456789ab"
},
"lorawan": {
"subband": 1,
"nwktype": "public",
"acttype": "otaa",
"otaa": {
"deveui": "0123456789abcdef",
"appeui": "fedcba9876543210",
"appkey": "000102030405060708090a0b0c0d0e0f",
"trials": 3
},
"abp": {
"devaddr": "01234567",
"nwkskey": "0123456789abcdef0123456789abcdef",
"appskey": "000102030405060708090a0b0c0d0e0f"
}
},
"ble": {
"power": 0,
"interval": 1600
},
"device": {
"measinterval": 600,
"ch1cablelength": 2,
"ch2cablelength": 2,
"ch3cablelength": 2,
"soiltype": organic
}
}