Device file
A Device File (device.json
) is located in the root of the SD-card with info on the device. The content of the Device File is updated when the device powers on.
{
"id": "4F07A3C3",
"type": "0000001D",
"kpub": "l27UKi4ehjpxxEdmRstBk5UaqSGQYnfylzUNs9EOoJfDodvr/PqNnMrz61IxzrBfFTmuhw2K2cJ4q60iFiYM8w==",
"fw_ver": "01.01.02",
"hw_ver": "00.03",
"cfg_ver": "01.01",
"cfg_name": "config-01.01.json",
"cfg_crc32": "9ECC0C10",
"sch_name": "schema-01.01.json",
"log_meta": "Truck1",
"space_used_mb": "36/7572",
"sd_info": "000353445341303847801349A26A0153",
"sd_used_lifespan": "2",
"reset_cause": ""
}
Additional content may be added to the device.json
in future firmware updates.
Fields explained
Base
id
: Device unique ID numbertype
: Device type (CANedge1 = 0000001D)kpub
: Device public key in Base-64 formatfw_ver
: Firmware versionhw_ver
: Hardware versioncfg_ver
: Configuration File versioncfg_name
: Configuration File namecfg_crc32
: Configuration File checksumsch_name
: Configuration Rule Schema namelog_meta
: Configurable device string (e.g. application name)space_used_mb
: The SD-card used space of the total in MB ([used]/[total]
)sd_info
: Information about the SD card, including unique serial number in hexsd_used_lifespan
: The SD-card self-reported health in percent of lifetime used, or?
if unavailablereset_cause
: For debugging purposes