Server and client implemented for the UT boards burn in process.
-
Make sure Python 3.6+ is installed in Raspbian.
-
Configure the kernel parameters so that 1-wire protocol devices are recognized. Follow the instruction here.
-
Install the Udev rule for USB relay following the instruction here. Note that the Udev rules are available in the
rpi.burnin
repository, NOT here. -
Install
hidapi
:sudo apt update sudo apt install libhidapi-hidraw0 libhidapi-libusb0
-
Clone this project
-
Install the dependencies with:
pip3 install --user -r ./requirements.txt
All for scripts ({Ctrl,Data}{Client,Server}.py
) have identical command line
interface:
<script_name> --config-file <path_to_config_file>
A sample configuration file for each script can be found at both project root
and measurements
folder.
curl -X POST http://<ip_addr_of_pi>:<port>/relay/0001:0003:00/2/on
curl -X POST http://<ip_addr_of_pi>:<port>/relay/0001:0003:00/2/off
Install pytest
, then:
cd ./test
pytest .