TeslasuitDocumentation
APIs

TsDevice

teslasuit_sdk.ts_device.TsDevice

Represents a connected TESLASUIT device and provides access to all its subsystems.

Properties#

device_uuid#

type=TsDevice
UUID identifying the device.


type#

type=TsDeviceType
Product type of the device.


side#

type=TsDeviceSide
Side of the device; only meaningful for glove devices.


mocap#

type=TsMocap
Motion capture subsystem.


emg#

type=TsEmg
EMG subsystem.


ppg#

type=TsPpg
PPG subsystem.


current_feedback#

type=TsCurrentFeedback
Current feedback subsystem.


magnetic_encoder#

type=TsMagneticEncoder
Magnetic encoder subsystem.


haptic#

type=TsHapticPlayer
Haptic player subsystem.


bia#

type=TsBia
BIA subsystem.


Methods#

__init__#

def __init__(lib, device_uuid: ts_types.TsDevice):

Open a device by UUID and initialize all subsystems.

Parameters

lib

Loaded TESLASUIT C API library object (CDLL or WinDLL).

device_uuid: ts_types.TsDevice

UUID of the device to open.


get_device_ssid#

def get_device_ssid() -> List[int]:

Retrieve the device SSID as a list of bytes.

Returns: list

SSID of the device.


get_device_serial#

def get_device_serial() -> Optional[str]:

Retrieve the device serial number string.

Returns: str

Serial number of the device.


get_product_type#

def get_product_type() -> ts_types.TsDeviceType:

Retrieve the product type of the device.

Returns: TsDeviceType

Product type of the device.


get_mapping#

def get_mapping() -> Optional[int]:

Retrieve the 2D mapping for this device based on its type and version.

Returns: int

Mapping handle for the device.