UART Transport

The UART transport provides serial communication with the TROPIC01 chip via UART interface.

UART SPI Transport Implementation

class tropicsquare.transports.uart.UartTransport(port, baudrate=115200)[source]

Bases: L1Transport

L1 transport for UART

Parameters:
  • uart – UART interface object (e.g., machine.UART instance)

  • port (str)

  • baudrate (int)

__init__(port, baudrate=115200)[source]

Initialize UART transport.

Parameters:
  • port (str) – UART port name (e.g. /dev/ttyACM0)

  • baudrate (int) – Baud rate for UART communication

Platform Support

  • CPython: Full support via pyserial library

  • MicroPython Unix/Linux: Supported (direct file I/O)

  • MicroPython ESP32: NOT supported (raises RuntimeError)

Note

For ESP32, use SPI Transport or Network-SPI Transport transport instead.

See Also