Sigrok for Saleae Logic Analyzer and Rigol Oscilloscope - Ell-i/ELL-i-PyBot-Tests GitHub Wiki

Sigrok Device Support

Sigrok is a portable and cross-platform signal analysis software suite that support various Device Types. It also supports various Input/Output file formats, Protocol Decoders and various frontends such as PulseView and Sigrok-cli. The pulseview can be used as GUI and sigrok-cli can be used as an command line interpreter for more flexibility and configuration settings regarding the signal analysis from the supported devices.

Sigrok Build Requirements

The sigrok requires following sub-projects:

  • libsigrok
  • libsigrokdecode
  • sigrok-cli
  • PulseView

Each of the above sub-projects have its own Build Requirements

Building Sigrok for Linux

The above sub-projects can be Build and Installed on Linux.

Install the udev rules file

These steps prevent the need to run libsigrok frontends as superuser. Copy the udev rules file from libsigrok/contrib/z60_libsigrok.rules to /etc/udev/rules.d/ (or where-ever your distribution stores udev rules files). Restart udev:

$ sudo /etc/init.d/udev restart

The main frontends that are used are sigrok-cli and PulseView

  • PulseView

PulseView is a Qt based logic analyzer GUI frontend for sigrok.

alt text alt text

  • Sigrok-cli

Sigrok-cli is another frontend for sigrok as Command-line Interpreter.

Sigrok for Saleae 8-channel Logic

Saleae 8-channel Logic

Sigrok support for saleae 8-channel logic analyzer requires open-source fx2lafw firmware. It can be downloaded, built and installed or sigrok may use pre-built firmware files that can be used without having to build them from source. Just download the pre-built files and copy the files with .fw extension to /usr/local/share/sigrok-firmware/. They will be found and used automatically by the libsigrok fx2lafw driver.

alt text

Sigrok for Saleae 16-channel Logic

Saleae 16-channel Logic

alt text

Please note that sigrok support for saleae 16-channel logic analyzer requires following extra step along with building the sigrok sub-projects mentioned above:

Firmware and FPGA bitstream usage

You can use the sigrok-fwextract-saleae-logic16 tool to extract the FX2 firmware and the FPGA bitstreams required for using the Saleae Logic16. Download the Vendor Specific Software Suite for saleae 16-channel logic analyzer and extract it. Copy the executable named Logic to the folder where you copied the above mentioned tool files. Then execute,

$ sigrok-fwextract-saleae-logic16 Logic

Copy the following files to where your libsigrok installation expects them (usually /usr/local/share/sigrok-firmware) and they will be found and used automatically by the libsigrok saleae-logic16 driver.

  • saleae-logic16-fx2.fw
  • saleae-logic16-fpga-18.bitstream
  • saleae-logic16-fpga-33.bitstream

Sigrok for Rigol DS1052E Oscilloscope

Rigol DS1052E Oscilloscope

alt text