mirror of
https://github.com/MeteoSwiss/nrbdaq.git
synced 2026-08-26 12:05:03 +00:00
Read-only mirror of https://github.com/MeteoSwiss/nrbdaq — MeteoSwiss. Issues & pull requests at the source.
- HTML 66.7%
- Jupyter Notebook 17.5%
- Python 15.6%
- Shell 0.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .vscode | ||
| docs | ||
| logs | ||
| nrbdaq | ||
| results | ||
| .dockerignore | ||
| .gitignore | ||
| 49i_get_all_lrec.py | ||
| 49i_get_lr00.py | ||
| 49i_send_cmd.py | ||
| ae31.ipynb | ||
| ae31_fix_files.ipynb | ||
| ae31_sniffer.py | ||
| analysis.ipynb | ||
| aurora3000.ipynb | ||
| avo.ipynb | ||
| buc_sftp_smoke_test.py | ||
| cron | ||
| docker-compose.debug.yml | ||
| docker-compose.yml | ||
| Dockerfile | ||
| fidas.ipynb | ||
| fidas_frames.py | ||
| fidas_sniffer.py | ||
| find_49i.py | ||
| frames.jsonl | ||
| hmp110.py | ||
| hmp110_ascii_scan.py | ||
| install_requirements.sh | ||
| LICENSE | ||
| mqtt_client.py | ||
| nrbdaq.py | ||
| nrbdaq.sh | ||
| nrbdaq.yml | ||
| pytest.ini | ||
| README.md | ||
| requirements.txt | ||
| serial_loopback.sh | ||
| serial_scanner.sh | ||
| thermo_nrb.py | ||
nrbdaq
DAQ for Nairobi GAW station. Intended for deployment on a Raspberry Pi (>=4).
RPI setup
OS
source: https://www.tomshardware.com/reviews/raspberry-pi-headless-setup-how-to,6028.html
- Download RPI imager from https://www.raspberrypi.com/software/ and install OS.
- Click Edit Settings from the pop-up.
- Fill in all the fields on the General tab: hostname, username / password, wireless LAN (if you plan to use wifi, and locale settings.
- On the Services tab, toggle enable SSH to on and select "Use password authentication." Then click Save.
- Click Yes to apply OS customization settings.
- Pop SD card into the Pi and power it up. It should connect to the LAN using wifi. To verify, we need to open an SSH connection. For ease of use, we will also use Raspberry Connect.
Raspberry Connect
- Open a terminal
- $ ssh
- $ sudo apt update
- $ sudo apt install --upgrade ...
setup crontab for automatic execution like so ...
$ crontab -e
- add the code shown in file 'cron'
- make executable $ sudo chmod +x /home/gaw/git/nrbdaq/nrbdaq.sh
Alternatively, set up a systemd service
- copy file 'nrbdaq.service' to /etc/systemd/system/nrbdaq.service
- make executable $ sudo chmod 744 /home/gaw/git/nrbdaq/nrbdaq.sh $ sudo chmod 664 /etc/systemd/system/nrbdaq.service
- enable service $ sudo systemctl daemon-reload $ sudo systemctl enable nrbdaq.service
linux goodies
read journal
$ sudo journalctl -p err --since "2024-08-27" --until "2024-08-29" show all journal entries of level ERROR in specified period
$ systemctl status cron.service show status of cron
$ ps [aux] show active processes [a: displays information about other users' processes as well as your own. u: displays the processes belonging to the specified usernames. x: includes processes that do not have a controlling terminal.]
list active instances of nrbdaq.py or bucdaq.py
$ pgrep -f -a "nrbdaq.py" $ pgrep -f -a "bucdaq.py"
kill a process by id
$ kill
list USB / serial ports
$ dmesg | grep tty $ lsusb
How-to operate Get red-y MFCs
- Install cable PPDM-U driver from /resources
- Install get red-y MFC software
- Plug in USB cable, check COM port used in device manager
- Start get red-y software, select port, search for device, stop search once found
Setup
2024-10-22/jkl
-
Aurora3000
- flow controlled by get red-y MFC set to 4 lnpm
- dark count found to be 450-500
- Wavelength 1 Shtr Count ca 1.1M
- Wavelength 2 Shtr Count ca 1.6M
- Wavelength 3 Shtr Count ca 1.7M
-
AE31 flow controlled by get red-y set to 3 lnpm
-
Fidas
- The Fidas is connected to the DAQ via LAN cable and uses UPD for data transfer. This needs to be configured in the Fidas "Expert User". Presumably due to a bug in the Fidas s/w, it is cumbersome to set the IP address persistently. Follow these exact steps, and then you should succeed:
- Open the current promo.ini file, and set the IP to the IP of the DAQ machine (!). Save the file.
- Enter the "Expert User" > Interfaces. Switch to UDP mode, then set the IP to the IP to the IP of the DAQ machine (!). Leave the entry field with and by navigating to some other field.
- Power off the Fidas using the power switch in the back (!), not using the "shutdown" button in the software.
- Switch it back on to verify in the "Expert User" > Interfaces that the IP setting haa persisted.