Version & Status
Two endpoints to gather general information about the device.
These two endpoints are wide open and do not need any authorization data, except two comments below.
Get device version
The Authorization
header is ONLY required to get information about microSD's card CSD and CID values.
System version
GET
https://my.ence.do/api/system/version
Get hardware and firmware version information.
Response data for successful operation
Name | Type | Description |
---|---|---|
| String | Hardware version information. |
| String | Firmware version infomation. |
| String | Firmware signing public key (base64 encoded). |
| String | Firmware siganture (base64 encoded). |
| String | Bootloader version information. |
| String | Bootloader signing public key (base64 encoded). |
| String | Bootloader siganture (base64 encoded). |
| String | (optional) Embedded microSD card CSD value (on Encedo PPA only, require valid token). |
| String | (optional) Embedded microSD card CID value (on Encedo PPA only, require valid token). |
| String | (optional) Encedo Manager version hash (on Encedo PPA only). |
Get device status
The Authorization
header is ONLY required to get information about statistics of the key repository memory.
System status
GET
https://my.ence.do/api/system/status
Get the device's online status information (including FLS state info).
Response data for successful operation
Name | Type | |
---|---|---|
| Number | Context number. |
| Number | Fail state value, default 0 as 'no errors'. |
| String | (optional) Return during personalization, indicating embedded disk formatting state (on Encedo PPA only). |
| Bool | (optional) |
| Bool | (optional) |
| Bool | (optional) |
| String | (optional) Return the device hostname if the request |
| Object | Statistics of the key repository memory (next five data). |
| Number | Number of deleted slots |
| Number | Fragmentation (in %, ratio deleted to occupied) |
| Number | Total number of free slots |
| Number | Number of invalid slots |
| Number | Total used slots |
| Array of strings | Capacity and status of each embedded disks (on Encedo PPA only). |
| Number | Chip temperature in Celsius. |
| Number | optional) Current Unix timestamp, returned if RTC is set. |
| String | (optional) Current time & date in ISO8601, returned if RTC is set. |
| Bool | (optional) Return |
| Number | Number of seconds since the device boots. |
Fail state values (bitmasks)
00h - no errors
01h - KAT failure
02h - Entropy failure
04h - Temperature out of range
08h - Data integrity failure
10h - out of memory, malloc() failure detected
20h - stack overflow detected
40h - failure after checkin (locked)
80h - failure after checkin (shutdown)
Storage status (on Encedo PPA)
The storage
object is an array of two string elements, the first for Disk 0 (regular drive) and the second for Disk1 (secure drive). Those strings are a concatenation of disk size is a number of sectors (integer) and lock/unlock mode.
Example: ["8388607:rw", "112590844:-"]
means:
Disk0 size is 8388607 sectors (every 512 bytes long) and the disk is unlocked in RW mode (read & write).
Disk1 size is 112590844 sectors and in locked ('-' means unavailable/locked, 'rw' means unlocked for read&write and 'ro' means unlocked in read-only mode.
Last updated