Device and discovery data
Data models
DiscoveredGlove
DiscoveredGlove is a single discovery result returned by discover_gloves(), used to view a candidate device's port, left/right hand, SN and the discovery error of that port.
Fields
| Field | Type | Nullable | Description |
|---|---|---|---|
port | str | No | The discovered serial port path |
transport_type | GloveTransportType | No | Required transport field: SERIAL (serial) for a wired glove, RECEIVER_USB (receiver_usb) for a Receiver USB entry, or RECEIVER_PEER (receiver_peer) for a wireless glove. |
hand | Side | None | Yes | The successfully identified left/right hand; may be absent when identification fails |
sn | str | None | Yes | The successfully read device SN |
activated | bool | None | Yes | Device-reported activation status; absent when unavailable |
error | GloveDiscoveryIssue | None | Yes | The discovery error of this port; None on success |
GloveDiscoveryIssue
GloveDiscoveryIssue appears as DiscoveredGlove.error and explains why a candidate port did not complete identity reading. Programs should classify and handle by the stable code; message is only used for display or logging.
Fields
| Field | Type | Nullable | Description |
|---|---|---|---|
code | GloveDiscoveryErrorCode | No | A stable error classification; use it to determine the failure reason |
message | str | No | An error description for log or UI display, not used for program branching |
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.
DeviceInfo
DeviceInfo is a compatibility alias of GloveDeviceInfo.
DeviceInfo is returned by get_device_info() and is a verified device identity snapshot saved during SDK creation. It is used to display or record the device's canonical SN, model, firmware version and left/right hand information.
Fields
| Field | Type | Nullable | Description |
|---|---|---|---|
canonical_sn | str | No | The canonical SN that passed device identity verification |
device_type | str | No | Device type |
model | str | No | Device model |
firmware_version | str | No | Firmware version |
hand | Side | No | The left/right hand of the device |
hand_source | str | No | The source of the left/right hand information |
transport_type | GloveTransportType | No | serial for a wired glove; receiver_peer for a wireless glove |