Publishing Device data
Devices can publish any kind of data to Data Orchestrator via Data Orchestrator Interfaces. However, some standard interfaces are already supported by Device Manager in order to provide useful functionalities, such as device geolocation.
Hence, data that devices send via Device Manager's Data Orchestrator Interfaces are automatically understood, collected and reported by Device Manager.
Publishing info about the System
Each Device is supposed to notify Data Orchestrator, e.g. on each connection, about its System.
To do so, the Device can use the io.edgehog.devicemanager.SystemInfo Data Orchestrator Interface to specify:
- the Serial Number: a code that uniquely identifies the System
- the Part Number: a code that uniquely identifies the System Model
When exposing the Part Number, Device Manager can associate the Device to the correct System Model by matching the Device's Part Number with the ones of the registered System Model.
Publishing info about the hardware
Each Device can notify Data Orchestrator about the general capabilities of the Device. These info are hardware-related and are usually not intended to change over time.
A Device can expose this set of data via the io.edgehog.devicemanager.HardwareInfo Data Orchestrator Interface.
Publishing info about the Device status
To expose info about its current status or measured data, some additional Data Orchestrator Interfaces are already defined for Device Manager. Their adoption is optional but recommended.
- io.edgehog.devicemanager.SystemStatus: reports the current OS status.
- io.edgehog.devicemanager.StorageUsage: reports the capacity and usage of the storage units.
- io.edgehog.devicemanager.BatteryStatus: reports the current status of the battery slots.
- io.edgehog.devicemanager.Geolocation: reports the current position computed by the GPS sensors of the device.
- io.edgehog.devicemanager.WiFiScanResults: reports the list of nearby Access Points that the Device found while scanning for WiFi signals.