Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.
/ NeoBurnIn Public archive

Server and client implemented for the UT boards burn in process

License

Notifications You must be signed in to change notification settings

umd-lhcb/NeoBurnIn

Repository files navigation

NeoBurnIn

Server and client implemented for the UT boards burn in process.

Installation on Raspbian

  1. Make sure Python 3.6+ is installed in Raspbian.

  2. Configure the kernel parameters so that 1-wire protocol devices are recognized. Follow the instruction here.

  3. 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.

  4. Install hidapi:

    sudo apt update
    sudo apt install libhidapi-hidraw0 libhidapi-libusb0
    
  5. Clone this project

  6. Install the dependencies with:

    pip3 install --user -r ./requirements.txt
    

Usage

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.

CtrlServer.py

To control USB relay

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

Running tests

Install pytest, then:

cd ./test
pytest .

About

Server and client implemented for the UT boards burn in process

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published