Overview
This quick guide details how to install and configure the PulseView logic analyzer software on Linux for use with the 1BitSquared BitMagic Basic.
This guide targets Ubuntu and Fedora, but similar concepts will apply to other distributions.
Instructions
NOTE: This guide assumes you have root access to the machine you'll use.
-
Install PulseView
To install PulseView for use with the BitMagic, install both PulseView and the Sigrok fx2lafw firmware (see this issue for more information).
- Ubuntu:
sudo apt install pulseview sigrok-firmware-fx2lafw
- Fedora:
sudo dnf install pulseview sigrok-firmware-fx2lafw
- Ubuntu:
-
Add BitMagic udev rule
This step permits you to run PulseView as a non-root user.
Place the below text into a text file in the
/etc/udev/rules.d/
directory. I recommend the name99-bitmagic.rules
, which will process near the end of all udev rules. See the end of this step for more information.# BitMagic Basic Logic Analyzer ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="0004", MODE="0666"
A quick note on udev, the name of the udev rule file matters. Udev processes rules in lexically sorted order. As all installed rules on the system (including the ones provided by your distribution) are sorted and processed together, it's essential to name the udev rule file with a name like
99-bitmagic.rule
. Doing so ensures that the BitMagic rule will not conflict with other system rules. For more information, see another post I wrote which links to udev documentation at the end and details udev rule creation (specifically targeted at USB serial devices). -
Reload and re-apply udev rules
Run the following command to load and make active your newly-created udev rule.
sudo udevadm control --reload-rules && sudo udevadm trigger
-
Connect the BitMagic device to a USB port on your machine
-
Run PulseView and select BitMagic Device
In the "Connect to Device" popup GUI in a PulseView session, choose the
fx2lafw
driver via USB. PulseView should then autodetect the BitMagic device assigrok FX2 LA (8ch) with 8 channels
or similar. -
Select your desired decoder and begin sampling!
Don't forget to set your sample rate at least four times faster than the signal you're sampling!