API referenceVetraGlove ProPython

Device and discovery data

Data models

Current version · 2.0.0

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

FieldTypeNullableDescription
portstrNoThe discovered serial port path
transport_typeGloveTransportTypeNoRequired 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.
handSide | NoneYesThe successfully identified left/right hand; may be absent when identification fails
snstr | NoneYesThe successfully read device SN
activatedbool | NoneYesDevice-reported activation status; absent when unavailable
errorGloveDiscoveryIssue | NoneYesThe 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

FieldTypeNullableDescription
codeGloveDiscoveryErrorCodeNoA stable error classification; use it to determine the failure reason
messagestrNoAn error description for log or UI display, not used for program branching

GloveTransportType

Enum valueMeaning
SERIALUSB directly wired glove
RECEIVER_USBUSB entry for the Receiver. To select a wireless glove, use its RECEIVER_PEER record.
RECEIVER_PEERWireless 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

FieldTypeNullableDescription
canonical_snstrNoThe canonical SN that passed device identity verification
device_typestrNoDevice type
modelstrNoDevice model
firmware_versionstrNoFirmware version
handSideNoThe left/right hand of the device
hand_sourcestrNoThe source of the left/right hand information
transport_typeGloveTransportTypeNoserial for a wired glove; receiver_peer for a wireless glove