/TestBench

Test bench code to view the status of the solar car to perform diagnostics as well as dashboard interface for the driver.

Primary LanguageJavaScriptMIT LicenseMIT

TestBench

Test bench code to view the status of the solar car to perform diagnostics

Contents of this repository

Testing the test bench webapp without physical serial hardware can be done with the following steps:

  • Install the socat utility to use create_pty.sh
  • create_pty.sh creates two fake serial ports using pseudo-teletypes
  • test.py sends test JSON payloads to one of the two fake serial ports
  • app.py needs to be configured to connect to the other fake serial port

Setting up development environment

  • virtualenv -p python3 env
  • source env/bin/activate
  • pip install -r requirements.txt

Running TestBench

  • python app.py
  • Development web server will be started at localhost:5000 by default.