Device and discovery data
Data models
Current version · 2.0.0
DiscoveredGlove and GloveDiscoveryIssue
DiscoveredGlove
Fields
| Field | Type | Description |
|---|---|---|
port | std::string | Candidate serial port path |
transport_type | GloveTransportType | Required transport field: serial for a wired glove, receiver_usb for a Receiver USB entry, or receiver_peer for a wireless glove. |
hand | std::optional<Side> | Recognized hand |
sn | std::optional<std::string> | Device serial number |
activated | std::optional<bool> | Device-reported activation status |
error | std::optional<GloveDiscoveryIssue> | Per-port discovery error |
GloveDiscoveryIssue
Fields
| Field | Description |
|---|---|
code, message | Stable error classification and a display description; programs should test code |
GloveTransportType
| Enum value | Meaning |
|---|---|
serial | USB directly wired glove |
receiver_usb | USB entry for the Receiver. To select a wireless glove, use its receiver_peer record. |
receiver_peer | Wireless glove behind a Receiver |
Wireless gloves behind one Receiver may share port. Distinguish them by hand and device SN rather than using the port as a unique glove identifier.
GloveDeviceInfo
Fields
| Field | Type | Description |
|---|---|---|
canonical_sn | std::string | Canonical SN verified through device identity |
device_type | std::string | Device type |
model | std::string | Device model |
firmware_version | std::string | Firmware version |
hand | Side | Device left/right hand |
hand_source | std::string | Source of the left/right hand information |
transport_type | GloveTransportType | serial for a wired glove; receiver_peer for a wireless glove |