This is the external communications script for NUS Computer Engineering Capstone project module CG4002 taken in AY24/25 Semester 1 for Group B13.
- Open three separate terminals.
- Connect to SoC VPN via forticlient if not connected to SoC WiFi in NUS.
- On terminal 1, cd to file path of eval server and run python3 WebSocketServer.py. Then, open index.html in eval_server folder and log in. Host: 127.0.0.1, Password: [16 character AES key set by your group]
- On terminal 2, run
ssh -R 8888:127.0.0.1:[port no. shown in index.html] xilinx@makerslab-fpga-37.d2.comp.nus.edu.sgto setup reverse ssh tunneling. (Change to appropriate Ultra 96 address for your group) - On terminal 3, run
ssh xilinx@makerslab-fpga-37.d2.comp.nus.edu.sgand cd into /DO_NOT_DELETE/CG4002-External_Comms and activate the python virtual environment using the commandsource /etc/profile.d/pynq_venv.sh - If running 1-player or 2-player test with evaluation server, run
sudo -E python3 main.py - If running free play, run
sudo -E python3 free_play_main.py - Upon successful connection, evaluation server should show "successfully connected" we can turn on the hardware and wait for TCP connection from internal communications side.