Skip to content

Software Startup Checklist

hydrogen602 edited this page Apr 21, 2019 · 10 revisions

Startup

  1. start up server in new terminal window -> python ~/server.py
  2. start up client in new terminal window -> python ~/hydrogenClient_surface.py
  3. ssh into motor pi in new terminal window -> ssh pi@192.168.1.4 password: raspberry
  4. start up client in ssh session -> python ~/hydrogenClient_motor.py
  5. ssh into camera pi in new terminal window -> ssh pi@192.168.1.3 password: raspberry
  6. start up data collection in ssh session -> /var/www/scripts/dataCollection.sh start
  7. open a browser (chromium)
  8. in a new tab go to 192.168.1.3/dataSheet.html
  9. in a new tab go to 192.168.1.3/status.html
  10. if 192.168.1.3/status.html does not display Status: Running, then do step 6 again

Troubleshooting

If steps 6 and 10 are a problem (i.e. the code is not running properly), check both the log files in /var/log/MATE/ and /var/www/scripts/nohub.out for errors. Startup errors tend to show in nohub.out, while runtime errors show up in logs in /var/log/MATE/.
Note: On Camera Pi, the pin that the temperature probe used to use has been damaged so w1 has been configured to use another pin.

Shutdown

  1. ssh into camera pi in new terminal window -> ssh pi@192.168.1.3 password: raspberry
  2. stop data collection in ssh session -> /var/www/scripts/dataCollection.sh stop
  3. close the browser (chromium)
  4. press ^Z (control-Z) in the two hydrogenClient terminal windows
  5. press ^C (control-C) in the server.py window
  6. kill leftover processes -> killZombies

Clone this wiki locally