|
|
@@ -14,12 +14,15 @@ The digitized detector signals are sent to a PC via the mini-USB which also powe
|
|
14
|
14
|

|
|
15
|
15
|
|
|
16
|
16
|
## Daemon: radangel
|
|
|
17
|
+[](https://drone.unino.de/pvivell/radangel)
|
|
|
18
|
+
|
|
17
|
19
|
|
|
18
|
20
|
The `radangel` binary communicates with the RadAngel HID device (`04d8:0100`) via USB (`hidapi-libusb`) and uses threads (`pthreads`) to read events and push them in a queue, then pop them from the queue and write them into files.
|
|
19
|
21
|
|
|
20
|
22
|
To grant permissions to the USB device, the udev system can be employed:
|
|
21
|
23
|
|
|
22
|
|
- `echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="04d8", ATTR{idProduct}=="0100", MODE="0666"' | sudo tee /etc/udev/rules.d/99-kromek-radangel.rules`
|
|
|
24
|
+ * `echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="04d8", ATTR{idProduct}=="0100", MODE="0666"' | sudo tee /etc/udev/rules.d/60-kromek-radangel.rules`
|
|
|
25
|
+ * `udevadm control --reload-rules && udevadm trigger`
|
|
23
|
26
|
|
|
24
|
27
|
Compiling the radangel binary for the linux operating system is easy:
|
|
25
|
28
|
Just run `make` in the `src` directory or
|