-
Notifications
You must be signed in to change notification settings - Fork 1
Troubleshooting
Good luck
Working on motor pi -> ssh pi@192.168.1.4
Working on camera pi -> ssh pi@192.168.1.3
Working on surface pi -> ssh pi@192.168.1.2
Likely there is still code running on the pi. Try finding the process id with ps aux | grep "server2020" or ps aux | grep "webSocketServer". If there is a process, use the left most number or the result of pgrep -f "server2020" or pgrep -f "webSocketServer" to get the process id. Kill the process with kill -9 [process id].
If that doesn't work, then find the line PORT = 8008 at the top of server2020.py and webSocketClient.py and change the port number to something else like 8009, 8010, or 8011 in both files on both motor pi and server pi. The port number MUST be the same across all the software.
The code might not be able to connect to server2020.py. Make sure server2020.py is up and running without errors on surface pi. Else check the ip address on motor2020.py on motor pi. The last line should read webSocketClient.start('motor', process, ip="192.168.1.2"), where 192.168.1.2 is the ip address of surface pi.
For who knows why, surface2020.py must be run in a terminal window of the raspberry pi, and CANNOT be run in an ssh session.
The standard code used is for python3. Ensure that python3 someFile.py is used instead of python someFile.py, as that will run python 2.7.
