DAQ for Nairobi GAW station. Intended for deployment on a Raspberry Pi (>=4).
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.
- Open a terminal
- $ ssh
- $ sudo apt update
- $ sudo apt install --upgrade ...
$ crontab -e
- add the code shown in file 'cron'
- make executable $ sudo chmod +x /home/gaw/git/nrbdaq/nrbdaq.sh
- 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
$ 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.]
$ pgrep -f -a "nrbdaq.py" $ pgrep -f -a "bucdaq.py"
$ kill
$ dmesg | grep tty $ lsusb
- 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
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
-
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.