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": "0000001F",
"kpub": "l27UKi4ehjpxxEdmRstBk5UaqSGQYnfylzUNs9EOoJfDodvr/PqNnMrz61IxzrBfFTmuhw2K2cJ4q60iFiYM8w==",
"fw_ver": "01.01.02",
"hw_ver": "00.03/00.00",
"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": "",
"wifi_fw_ver": "19.3.0/19.6.1",
"wifi_mac": "F8-F0-05-94-39-2E",
"certs_server_sha1": ["5BDA1A96DF69FEB62E2E0A61BD2672C03CAA9473"]
}
Additional content may be added to the device.json
in future firmware updates.
Fields explained
Base
id
: Device unique ID numbertype
: Device type (CANedge2 = 0000001F)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
WiFi
wifi_fw_ver
: WiFi module firmware versionwifi_mac
: WiFi module MAC address
Server
certs_server_sha1
: List of SH1 hashes of the loaded TLS certificates (see List of installed certificates)