API referenceQnbot Exo PlusPython

Discovery and configuration

Core interfaces

Current version · 1.4.0

discover_exos()

Scan for discoverable exoskeleton devices.

Type

discover_exos() -> tuple[DiscoveredExo, ...]

Returns

A sequence of discovery results. Each DiscoveredExo contains:

Fields

FieldTypeDescription
portstrSerial port path
transport_typeExoTransportTypeRequired transport field; currently ExoTransportType.SERIAL (serial)
device_infoExoDeviceInfo | NoneDevice information when probing succeeds
errorExoDiscoveryIssue | NoneProbe failure; mutually exclusive with device_info

ExoDiscoveryIssue contains code: ExoDiscoveryErrorCode and message: str. Error codes are PORT_OPEN, PROTOCOL_ERROR, and INCOMPATIBLE.

ExoConfig

Configure an exoskeleton device connection, logical name, and enabled state.

Type

ExoConfig(
    connection: SerialConnection = SerialConnection(),
    name: str | None = None,
    enabled: bool = True,
)

connection selects the serial port, name defines the logical name accepted by device(name), and enabled=False disables this configuration. Exo does not support locating a device through SerialConnection.serial_number. to_dict() returns the Core device configuration.

Sdk(...).exo() returns the Exo domain entry point.