rpi_server module¶
RPI External Server Script
This script runs the RPI External Server on a Raspberry Pi. It allows remote control of the hardware interface over network or USB.
- Usage:
python rpi_server.py [–type TYPE] [–host HOST] [–port PORT] [–usb-port PORT] [–usb-baud BAUD] [–interface INTERFACE]
Examples
# Network server with real hardware python rpi_server.py –type network –host 0.0.0.0 –port 8765 –interface raspberrypi
# USB server with real hardware python rpi_server.py –type usb –usb-port /dev/ttyUSB0 –interface raspberrypi
# Network server with dummy hardware (for testing) python rpi_server.py –type network –interface dummy
- rpi_server.main()¶
- rpi_server.signal_handler(signum, frame)¶
Handle shutdown signals gracefully.