radeye_comms

High-level RadEye device class to handle the serial communication and device detection.

class RadEyeComms:

High-level RadEye serial session.

Opens the port, detects the device type (G10 or SX), and exposes display reads and optional autosend streaming.

Parameters
  • port: Serial port (e.g. COM10 or /dev/ttyUSB0)
RadEyeComms(port: str = '/dev/ttyUSB0')
is_active: bool

True when the serial port is open and remote control is initialised.

def close(self) -> None:

Close the connection.

def set_autosend_mode(self, on: bool) -> None:

Set the autosend mode on or off.

Parameters
  • on: True to enable autosend, False to disable
def read_display_value_and_status(self) -> Optional[radeye_comms_sdk.devices.base.DisplayStatusData]:

Read the current display values and history status word.

Returns

radeye_comms_sdk.radeye.devices.DisplayStatusData, or None on failure