YO Power
User guide
v4.0
page 16/28
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 Power device
.
{
"info": {
"devmodel": "LNPW",
"fwver": "3.5.0",
"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": 300,
"measthreshold": 10,
"ch1cttype": "50mA-100A",
"ch2cttype": "50mA-100A",
"ch3cttype": "50mA-100A",
"ch4cttype": "50mA-100A",
"ch5cttype": "50mA-100A",
"ch6cttype": "50mA-100A"
}
}