Virgo
Virgo setup ops
Server setup
Baffle is connected to Vigo server. Remote connection is available through ssh virgo@172.16.17.241.
There are three important directories: - ~/bsda: git clone of bsda firmware - ~/ebi: git clone of ebi firmware - ~/cdm: git clone of cdm source code
To update one of the repositories, cd into the repository and run: git pull && git submodule update –init –recursive
To build any of the firmware, first run
. ~/tp/esp-idf-v5.1/export.sh
- EBI firmware, run:
cd ~/ebi/ebi && idf build - BSDA firmware, run
cd ~/bsda/bsda && idf build
To build the CDM, first run:
export IDF_PATH="/home/virgo/tp/esp-idf-v5.1"
Then run
cd ~/cdm/build && make -j7 && sudo make install.
There is also a systemd service called cdm.service that can be
controlled using systemctl command. To look at the CDM logs, run
sudo journalctl -f -u cdm
Configuration is stored in ~/.config/cdm/cdm.toml. It may need to be changed if one of the EBIs change.
Data is stored at ~/.local/share/cdm/data/2023.
Client setup
Install cdm-python-frontend:
- Clone git@gitlab02.pic.es:virgo-sw/cdm-python-frontend.git repository
- Clone submodules with
git submodule update --init --recursive - Install pybind11 (
emerge pybind11orapt install pybind11-dev) - Run the command in the README to build the cdmpy module
Once all is ready, you can start using python frontend. For example, look at test.py script.
To see how to read data from the 0mq API look at test_reg.py script.
I recommend opening a python shell in the cdm-python-frontend
repository and execute the commands step by step to check that each step
has been executed properly.
After configuring the baffle it’s wise to run
cdm.get_state() to see if all BSDAs has been configured
properly (number 4 means disabled, 3 dead, 2 reading, 1 ready and 0
init)
Troubleshooting
For some reason the EBI sometimes doesn’t startup properly, I think it may be due to the USB cables used. In any case if the EBI gives problems at startup disconnect and reconnect the USB cable, or try to change the USB cable.
If no answer is given when trying to use the python fronted check that the EBI has the green light on.
