Skip to content

POSIX

We provide the following ports, which should be compatible with most POSIX compliant operating systems:

HALs for these ports are available in the libtropic/hal/posix/ directory.

Libtropic example usage with some of these ports is currently available in our libtropic-linux repository. Other operating systems were not tested.

TCP

We use this port with the TROPIC01 Python Model, which acts as a server, to which libtropic connects via the specified TCP port.

Disclaimer

The TCP HAL is implemented with consideration of the following:

  1. It is primarily targeted for use with the TROPIC01 Python Model.
  2. To ensure reproducibility of randomized functional tests, the rand function is used in the lt_port_random_bytes function with a known random seed instead of more cryptographically secure solutions.

Interrupt Pin Support

The TCP HAL does not support TROPIC01's interrupt pin.

Tropic Square TS1302 USB Devkit

Libtropic communicates with this devkit using the USB protocol. Refer to the TS1302 USB Devkit GitHub page for more information about it.

Raspberry Pi 4 Issues

When testing with Raspberry Pi 4, we have encountered issues with its USB, which seems to lose some of the USB packets sent to it.

Raspberry Pi 5

Fortunately, Raspberry Pi 5 fixes these issues and the TS1302 USB Devkit works without any issues.

Interrupt Pin Support

The TS1302 USB Devkit port does not support TROPIC01's interrupt pin.