Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TypeData (example)Data
config


Code Block
{
  "d": {
    "mFilter": "LOB",
    "listenCron": "0 0/20 * * * *",
    "cmodeDurSec": "600"
  },
  "q": "config"
}

The JSON Format might be subject to change in future releases.

The config values to be updated.


fw


Code Block
{
	"d": { 
		"app": "app-firmware-1.x.x-mcuboot-slot1.hex",
	 	"boot": "app-boot-nrf9160-sec-TZ2-1.x.x-mcuboot-slot1.hex"  
	}, 
	"q": "fw"
}

The JSON Format might be subject to change in future releases.

The application + secure boot firmware files to be downloaded by the device.

  • app: Application firmware file ("device.app")
  • boot: Associated matching secure boot firmware file ("device.boot")

(info) The firmware that works for remote firmware updates is uploaded to the platform by Lobaro. This is a different version than the one used via the USB adapter!

fw


Code Block
{
	"d": { 
		"app": "app-firmware-1.x.x-mcuboot-slot1.hex" 
	}, 
	"q": "fw"
}

The JSON Format might be subject to change in future releases.

The  application firmware file to be downloaded by the device.

  • app: Application firmware file ("device.app")

(warning) This is the faster (since less data has to be downloaded by the device) alternative of the firmware update command above and can be used if the needed "device.boot" firmware is already present in the device. The appropriate boot firmware version for a particular application firmware can be obtained from Lobaro. The currently installed boot firmware can be read from the device properties in the Lobaro platform.

If in doubt use the command above that updates both firmware images.



lorawan


Code Block
{
  "data": "scmodeDurSec=15",
  "type": "ascii",
  "fPort": 128
}


to insert a lorawan downlink over the platform a json object with the fiels type, data and fPort needs to be added.

at the moment only type "ascii" is supported.

data needs to contain the contet that is send to the device over the network server.

Details about data and the right fPort can be found under: LoraWan Downlinks

ATTENTION: the downlinks will only be send if you have a default LoraWan Server defined under Integrations or the device is assigned to a loranwan server integration!

reboot


Code Block
{
  "q": "reboot"
}

The JSON Format might be subject to change in future releases.


comment


Code Block
{
  "d": "ASCII string to print to log",
  "q": "comment"
}

The JSON Format might be subject to change in future releases.

ASCII String that will be printed to device's Log.
raw


Code Block
{
	format: "ASCII",
	data: "ascii-downlink-payload"
}


Raw downlink data, currently only supported for Tektelek devices.

...