Raspberry Pi¶
Dracal Utilities ships ready to install packages for the Raspberry Pi: the command line tools, the device service (REST JSON API and MQTT) and DracalView. Nothing has to be compiled.
Coming from the older guide?
The guide for DracalView 3.2.0 built everything from source (make, qmake, a hand written udev rule). None of that is needed any more: the packages install the tools, the udev rule and the service by themselves.
What you need¶
- A Raspberry Pi 3 or later.
- The 64-bit Raspberry Pi OS (arm64). The 32-bit Raspberry Pi OS is not supported.
- A Dracal USB sensor.
| Raspberry Pi OS | Command line tools | Service | DracalView |
|---|---|---|---|
| trixie (Debian 13) | Yes | Yes | Yes |
| bookworm (Debian 12) | Yes | Yes | Yes |
To check what your Raspberry Pi runs:
uname -m # aarch64 means 64-bit
grep VERSION_CODENAME /etc/os-release
Choose your packages¶
Get the files from the download matrix: one row per package, one column per operating system. There is one column per Raspberry Pi OS release: Raspberry Pi OS bookworm (arm64), with file names that end with -bookworm-arm64.deb, and Raspberry Pi OS trixie (arm64), with -trixie-arm64.deb. Take the files of the release your Raspberry Pi runs: the packages of one release do not install on the other.
| You want | Package |
|---|---|
| The service, the command line tools and DracalView | DracalUtilities |
| Only the command line tools | dracal-cli |
| Only the service | dracal-device-service |
| Only DracalView | dracalview |
DracalUtilities or the separate packages, not both
DracalUtilities already holds the service, the command line tools and DracalView: it cannot be installed together with dracal-cli, dracal-device-service or dracalview.
Install¶
Open a terminal in the folder that holds the downloaded files, then install with apt, which also installs the dependencies:
sudo apt update
sudo apt install ./DracalUtilities-*-arm64.deb
sudo apt update
sudo apt install ./dracal-cli-*-arm64.deb
The install adds your user to the groups that give access to the sensors without sudo (plugdev, dialout, and dracal with the service or DracalView). Log out and back in, or reboot, for this to take effect.
Command line tools¶
Plug in a sensor, then list what is connected:
dracal-usb-get -l
Read every channel of the first sensor found:
dracal-usb-get -i a
The tools are in /usr/bin: dracal-usb-get, dracal-usb-set, dracal-usb-cal, and for the SensGate dracal-sensgate-scan, dracal-sensgate-get, dracal-sensgate-log and dracal-sensgate-logtool. Run any of them with -h for its options.
More in the dracal-usb-get quick start, and every option in dracal-usb-get in detail.
Service¶
The service starts by itself at the end of the install, and again at every boot. Check that it runs:
systemctl status dracal-device-service.service
Then ask it for the connected sensors:
curl -s http://localhost:11395/3.8.1/devices/usb
From there, the Raspberry Pi works like any other host:
- REST JSON, getting started
- MQTT, getting started
- Service management (start, stop, restart) and configuration: follow the Linux tabs, the commands and file locations are the same.
DracalView¶
DracalView needs a desktop session. Start it from the desktop menu (DracalView), or from a terminal:
DracalView
The service and the command line tools can be used while DracalView is open.
Without a screen¶
The command line tools and the service need no desktop: they work over SSH on Raspberry Pi OS Lite. To use DracalView remotely, connect to the desktop of the Raspberry Pi with a VNC client. See the Raspberry Pi remote access documentation.
Update and remove¶
To update, install the newer .deb files the same way: they replace the installed version.
To remove, use the package name:
sudo apt purge dracal-utilities
The names are dracal-utilities, dracalview, dracal-cli and dracal-device-service.
If something does not work¶
| Symptom | What to check |
|---|---|
dracal-usb-get -l lists nothing, but works with sudo | You have not logged out and back in since the install. If it still fails: sudo usermod -a -G plugdev,dialout $USER, then log out and back in. |
apt refuses the package for its architecture | The Raspberry Pi runs the 32-bit Raspberry Pi OS (uname -m does not print aarch64). Install the 64-bit one. |
apt cannot satisfy the dependencies of the package | The file is the one of the other Raspberry Pi OS release. Check grep VERSION_CODENAME /etc/os-release and take the -bookworm-arm64.deb or -trixie-arm64.deb file that matches. |
| The service does not answer | systemctl status dracal-device-service.service, then the log files in /var/log/dracal/. |
More in Troubleshooting and Getting help.