This directory contains the Python TCP server script (wifi_server.py) that emulates the Raspberry Pi Pico microHIL firmware protocol over WiFi (TCP socket).
- Python 3 installed on your computer.
- Computer and Android device connected to the same WiFi network (or local hotspot).
- Open terminal in the project root.
- Run the server:
python3 scripts/wifi/wifi_server.py --port 5000
- The script will display its running IP addresses:
============================================================ microHIL WiFi TCP Mock Server Running ============================================================ Listening on: 0.0.0.0:5000 Use one of these IP addresses in the ABComm app: -> 192.168.1.150 (Port: 5000) ============================================================ Waiting for incoming connections...
- Launch ABComm on your Android device.
- Select WiFi mode in the connection selector.
- Enter the IP address shown by
wifi_server.py(e.g.192.168.1.150) and Port (5000). - Tap CONNECT.
- Test toggling channels 1-8 or Master ON/OFF buttons. You will see command logs and responses printed in the terminal.