Network-SPI Transport

The Network-SPI transport enables communication with remote TROPIC01 chips via network connection. This transport tunnels SPI communication over a network socket.

Network SPI Transport Implementation

This module provides a network-based SPI transport implementation. for https://github.com/petrkr/netbridge32 SPI bridge

class tropicsquare.transports.network.NetworkSpiTransport(host, port=12345, timeout=5.0, connect_timeout=1.0)[source]

Bases: L1Transport

L1 transport for network-based SPI bridge.

Parameters:
  • host (str) – Hostname or IP address of the SPI bridge

  • port (int) – Port number for the SPI connection (default: 12345)

  • timeout (float) – Socket timeout in seconds (default: 5.0)

  • connect_timeout (float)

COMMAND_READ = b'\x01'
COMMAND_WRITE_READINTO = b'\x08'
COMMAND_CS_LOW = b'\x10'
COMMAND_CS_HIGH = b' '
__init__(host, port=12345, timeout=5.0, connect_timeout=1.0)[source]

Initialize Network SPI transport.

Parameters:
  • host (str) – Hostname or IP address of the SPI bridge

  • port (int) – Port number for the SPI connection (default: 12345)

  • timeout (float) – Socket I/O timeout in seconds (default: 5.0)

  • connect_timeout (float) – Connect timeout per resolved address in seconds (default: 1.0)

Use Cases

  • Remote chip access over WiFi

  • Multi-device chip sharing

  • Cloud-based chip services

Platform Support

  • MicroPython ESP32: Full support with WiFi

  • CPython: Supported (requires network access)

See Also