sigNIMA help

Every part of sigNIMA, step by step, with what you see on the screen. The screenshots are of a 24 MHz FX2 board on a NUCLEO-H503RB that sends a line on its UART and a PWM, of a capture file, and of sigrok-cli's demo device.

Getting started

Download sigNIMA for your computer from its page: the -setup.exe or the .msi for Windows 10 and 11, the .dmg for macOS on Apple Silicon and Intel, and the AppImage, .deb or .rpm for Linux.

Not signed yet. Windows may say "Windows protected your PC": click More info, then Run anyway. macOS may say the app is damaged or cannot be checked: move it to Applications, then run xattr -cr /Applications/sigNIMA.app in Terminal. On Linux, make the AppImage runnable with chmod +x.

An FX2 board needs, once, what PulseView needs too:

  • Windows: the WinUSB driver. Run Zadig, pick the board in its list (Options > List All Devices shows it), choose WinUSB, and click Install Driver. A board with no driver says so in sigNIMA.
  • Linux: a udev rule, to open it without root: sigrok's 60-libsigrok.rules and 61-libsigrok-uaccess.rules in /etc/udev/rules.d, then plug the board in again.
  • macOS: nothing.
sigNIMA's Welcome tab: its logo and version 1.0.0, its GitHub, help and plan addresses, the Saleae Logic clone plugged in, sigrok-cli not found and what it brings, what it opens and decodes, and the donate cards
The Welcome tab: the analyzer plugged in, sigrok-cli, files and decoders

The Welcome tab is first and always there. It names the analyzers plugged in, says whether sigrok-cli was found, and has a button for each kind of tab: Open capture file (Ctrl+O) and New capture (Ctrl+Shift+N). File > New tab and the + button open them too, and a capture file dropped on the window opens in a tab of its own.

The analyzers

sigNIMA has no firmware of its own: each analyzer works with the firmware it already uses.

AnalyzerHow sigNIMA uses it
FX2 boardsThe cheap 24 MHz 8-channel boards, the old Saleae Logic, USBee clones and FX2 boards with no EEPROM. sigrok's fx2lafw firmware comes with sigNIMA, and goes into the board each time it is plugged in, as PulseView does. Rates from 20 kHz to 24 MHz.
SUMP analyzersOn a serial port: the Open Bench Logic Sniffer, SUMP cores on FPGA boards, and microcontroller boards running SUMP firmware. Every serial port is offered, and nothing is sent to one until Run, when the analyzer must say what it is first. Rates up to 100 MHz, as many samples as its memory holds.
sigrok-cliEvery other analyzer sigrok supports, once sigrok-cli is installed: DSLogic, Saleae's Logic16 and Logic Pro, ASIX SIGMA and more, and Kingst LA and the Raspberry Pi Pico with sigrok's newer builds. Its demo device tries sigNIMA with no analyzer at all. sigNIMA finds sigrok-cli in PATH, where its installer puts it, or where the SIGROK_CLI environment variable says.
Raspberry Pi PicoA Pico or Pico 2 with gusmanb's LogicAnalyzer firmware, 6.0 or later: hold BOOTSEL while plugging it in, and copy the .uf2 in its release's zip for your board to the drive that shows. sigNIMA finds it by the USB ID that firmware gives it, sends nothing to it until Run, and ships none of its firmware. D0 to D20 are GPIO 2 to 22, and D21 to D23 GPIO 26 to 28. Up to 100 MHz, 200 MHz with its turbo firmware, into its own memory: 128 KB on a Pico, 384 KB on a Pico 2.

Capture > Look for analyzers again, or Look again in a capture tab, finds one plugged in after sigNIMA started.

A capture tab

A capture tab takes from one analyzer. Pick it in Analyzer, then:

  • Rate: samples a second, as the analyzer has them. A signal wants four samples or more for its shortest pulse.
  • Length: from 1 ms to a minute, or Until stopped. A SUMP analyzer and a Pico take a count of samples instead, as many as their memory holds; a SUMP analyzer its baud rate too, and a Pico its Channels: the first 8, 16 or 24, fewer for more samples.
  • Analog, for a sigrok-cli device that has analog channels, takes them too, beside its logic channels. Its capture then comes at the end of the run, so it needs a length.
  • Show: while it runs, all of the capture, or the newest 1 ms to 10 s as they come. Looking further back, the view stays there, and End goes back to the newest.
  • Run (F5) starts it, and Stop (Shift+F5) ends it, keeping what came.
A capture tab on a 24 MHz FX2 board: 240,000 samples with a trigger on D0 falling, D0 UART TX and D1 PWM, the UART's bytes and bits and the PWM's pulses and periods in rows under them, cursors A and B 1.451 ms apart with 29 edges between them on D1 PWM, and the pulse under the pointer: high 49.46 µs, a period of 99.42 µs, 10.06 kHz, duty 49.7 %
A capture from a board: UART and PWM decoded, the cursors, and a pulse measured

A capture from an FX2 board or through sigrok-cli, with no analog channels, is drawn as it comes, four times a second, the whole of it as it grows unless you zoomed in. The decoders read it once it is done. A SUMP analyzer's and a Pico's samples come all at the end, as their memory is read: a Pico's a couple of seconds after it starts, as its firmware looks whether it is done every second or two. The line under the tab says how a run goes, and samples the board took that never reached the computer, worked out from the time that passed.

The tab keeps its analyzer, rate, length, trigger and decoders, and opens the same way next time.

Triggers and Again

Trigger, over the waveforms, or Capture > Trigger, shows a button for each channel. Each click goes round what it waits for: rises, falls, either, is high, is low, and any. All the channels set must do so at once, so an edge with levels says the very sample: D0↓ D3=1. None takes the trigger away.

A tenth of the capture comes from before the trigger. For FX2 boards and sigrok-cli, sigNIMA finds it in the samples as they come, and lets go of what came before while it waits. A SUMP analyzer and a Pico wait in their own hardware, for levels: their buttons go round high, low and any. A Pico triggers on one channel's level, or on the levels of channels next to each other among D0 to D15; on a bare Pico, join GPIO 0 and GPIO 1 with a wire for those. A level a channel already has starts it at once.

With analog channels, each has a button too, and a Level beside them, in its unit: one analog channel rises through it, falls through it, crosses it, is above it or is below it, as A1↑5 says, with the logic channels' conditions. sigrok-cli takes no analog trigger, so sigNIMA looks for it itself: each run takes twice the length, and runs again until the level comes, as a scope waits for its trigger. What comes while sigrok-cli starts again is not seen. A twentieth of the channel's swing is its hysteresis, so noise does not set it off.

The same tab with its trigger shown, D0 falling, and Again on with '7' to stop on: Found in run 2, with the UART's line, Hello 7, decoded under D0 UART TX
Again: run after run, until the UART says '7'

Again, or Capture > Run again and again, starts each run as the last ends, until stopped. The last 20 runs are kept, and picked from the list beside Run. With a text in the box beside it, running again stops at the first run whose decoders find it, and shows it: '7' stops at the UART byte 7, and ACK at a packet that says ACK.

Waveforms and cursors

A row a channel, in the wires' resistor-code colors, from the whole capture down to single samples, quick on a billion:

  • Zoom with the wheel at the pointer, + and -, or Zoom in and Zoom out over the waveforms. Home, or Fit, shows the whole capture, and End its end.
  • Move by dragging, with Shift and the wheel, or with the arrow keys.
  • The scroll bar under the waveforms is the whole capture, and its thumb the part in view: drag the thumb, click beside it to move a page, or turn the wheel over it.
  • Scroll the rows up and down, when there are more than fit, with the scroll bar or the wheel over the names. The ruler stays on top.
  • Cursor A with a click, and B with Shift and a click: the line under the waveforms has the time between them, its frequency, and the edges between them on the channel under the pointer. Esc takes them away.
  • The pulse under the pointer is measured: high or low for how long, its period and frequency, and its duty cycle.

Channels: names, height and the view

Each channel shows its number, then its name, if it has one: D1 UART TX. A file's channels keep the names they came with, after their numbers.

  • Right-click a channel's name to name it as you wired it. Enter keeps the name, Esc leaves it as it was, and an empty name takes it away. The names are kept with the tab, written in the files it is saved to, and help Add decoder guess each pin's channel. An analog channel's right-click makes it digital instead, as Analog channels says.
  • Click a channel's name to show it double height, and again to show it as it was. View > Double-height signals does all of them.
  • Channels, over the waveforms, has a tick for each channel, digital and analog: untick one to leave it out of the view, or pick All or None. The decoders still read every channel, and the tab keeps the choice.

The names' column grows to fit the longest name. The line under the waveforms keeps room for each value, so moving the pointer moves no text.

Analog channels

A capture can hold analog channels beside the digital ones: from a .sr file, a VCD's real variables or a CSV's columns of decimals, and from a sigrok-cli device with Analog ticked in its capture tab, such as its demo device's waves.

A capture tab on sigrok-cli's demo device with Analog ticked: the trigger bar with A1 rising through 5 V, D5 to D7, and A0, A1 and A2 three rows high, a square, a sine and a triangle from -10 V to 10 V; cursors A and B 202 µs apart, A1 between them from -10 V to 10 V, mean 115.7 mV, RMS 7.085 V, 50 kHz, and 3.09 V under the pointer
Analog channels: a trigger on A1 rising through 5 V, and A1 measured between the cursors
  • Each is drawn three rows high, with its highest, lowest and zero marked: far out, the lowest to highest each pixel holds; close in, a line through its samples, and a dot a sample closer still.
  • The pointer reads its value, and between cursors A and B the line under the waveforms has its lowest, highest, mean, RMS and frequency.
  • Right-click an analog channel's name to make it digital at a level: type the level, and Enter keeps it. The new channel, A0 at 1.65 V, takes a twentieth of the swing as hysteresis, is read by decoders as any other, and is made again in every capture of the tab. An empty level takes it away.

A trigger on an analog channel's level is in Triggers and Again.

Decoders

Add decoder, over the waveforms or in the Decode menu, opens the list of protocols. It lists the protocols first, such as UART, SPI or 1-Wire, then the devices with signals of their own, such as a DHT22, then the components read on top of a protocol, such as an ADS1299 on SPI. Type to find one, by its name, what it reads or its file: the arrows choose, and Enter adds it. Then pick the channel each of its pins reads, guessed from the channels' names, and its options.

The Add decoder dialog, with a search over the protocols and UART picked: RX on D0 UART TX, and its options, 115200 baud, 8 data bits, no parity, 1 stop bit, LSB first, not inverted, shown as auto; and where your own decoders go
Add decoder: a search, and each protocol with its channels and options

What a decoder found shows in rows under the waveforms, such as a UART's Data, Bits and Errors. Each decoder on the tab is a chip over the waveforms: click it to change it, and × takes it away. A decoder with a problem is red, and says why.

A decoder can sit on top of another, as a packet on a UART does: pick the one under it in On top of. The decoders run again when the capture or the decoders change, away from the window, and one that takes longer than 30 seconds is stopped.

The decoded list and Find

Decoded list shows what the decoders found under the waveforms, one row a value with its time. Pick a decoder's row in the list's menu, type in its Find box to keep only what has the text, click a line to show it in the waveforms, and save it with CSV.

sensor-board.sr, 100,000,000 samples at 24 MHz, with UART on D1 UART TX and PWM on D2 PWM: 'H' found, 1 of 1261, the UART's text in its row, and the decoded list below with each byte and its time
A capture file: a text found, and the decoded list under the waveforms

Find decoded, over the waveforms, goes through every value with the text in it, one after another, with Enter and Shift+Enter or the arrows, showing each one close enough to read. Edit > Find in decoded (Ctrl+Shift+F) opens the list and its Find box.

Protocols from sigNIMA-addon

The protocols are not built into sigNIMA: they come from sigNIMA-addon. The installer holds a copy, which sigNIMA installs the first time it starts, in Documents/sigNIMA/addons.

There are 55: protocols such as UART, I3C, LIN, USB Power Delivery or J1939; devices with signals of their own, such as an HD44780 LCD or an HX711; and chips read on top of a protocol, such as SPI flash, an SD card, a BME280, an MPU-6050 or a GPS receiver's NMEA. Each is in sigNIMA-addon's list, with what it reads.

Decode > Protocols lists each one, in the same three groups, with the version installed and the newest on GitHub, to install, update or take out, with no new sigNIMA. Each file is checked against its SHA-256 before it is used. Each protocol says the lowest sigNIMA it works with: one too new for yours is not installed. Install all installs every protocol you do not have and every update at once. The status bar says when there are updates, and new protocols on sigNIMA-addon.

Your own decoders

Your own decoders go in Documents/sigNIMA/decoders, outside the app, so installing, updating or taking sigNIMA out never touches them. A file saved there is read again at once, and a tab decodes with it. One with the same id as a protocol comes first, and an update never touches it. Decode > Open decoders folder opens it.

A packet, in YAML

Decode > New packet description writes one to start from. A packet on a UART, SPI, I2C or CAN is a few lines: what starts it, its fields, and its CRC.

name: My sensor packet
on: uart                 # uart, spi, i2c or can
gap: 3.5 chars           # a pause this long ends a packet
frame:
  - sync: 0xAA
  - len: u8
  - cmd: { type: u8, names: { 1: READ, 2: WRITE } }
  - flags: { type: u8, bits: { 7: busy, 3-0: channel } }
  - data: { bytes: len }
  - crc: { type: crc16-modbus, over: [len, cmd, data] }

Numbers of 1 to 4 bytes in either order, signed or not, floats, bytes and text, a length from another field, names for values, bit fields, what a number is worth with scale, offset and unit, and a CRC-8, CRC-16 (Modbus, CCITT, XMODEM), CRC-32, sum or XOR. A packet ends with a pause, end bytes, a released chip select or an I2C stop. Modbus RTU is written this way.

A chip on SPI

An SPI chip's data is a packet too, read on MISO. An ADS1299's channels, signed 24-bit numbers, in µV at 4.5 V and a gain of 24:

name: ADS1299 samples
on: spi
line: miso
endian: big
frame:
  - status: { type: u24, bits: { 19-12: lead_off_p, 11-4: lead_off_n, 3-0: gpio } }
  - ch1: { type: i24, scale: 0.0223517, unit: µV }
  - ch2: { type: i24, scale: 0.0223517, unit: µV }

For its commands and registers too, a decoder in JavaScript reads both lines, as sigNIMA-addon's ADS1299 does: its commands, the registers written and read in words, and each channel in µV at the gain its CHnSET register says.

Anything else, in JavaScript

Decode > New decoder writes one to start from. A decoder waits as sigrok's do, yield { clk: "rise", cs: "low" }, and puts what it found in its rows. How to write both is in docs/DECODERS.md; a protocol everyone can use is welcome in sigNIMA-addon.

Files

sigNIMA opens and saves sigrok's .sr, as PulseView and sigrok-cli write it, VCD and CSV, with their analog channels: in .sr as PulseView writes them, in VCD as real variables, and in CSV as columns of decimals. Open one with File > Open capture file (Ctrl+O), from the Welcome tab, or by dropping it on the window: it opens in a tab of its own, which opens it again next time.

File > Save capture as (Ctrl+S) writes the capture in front as .sr, VCD or CSV, with the channels' names. PulseView opens what sigNIMA saves. A VCD says its sample rate as sigrok does, so it comes back exact; a CSV has a row a change, with a Sample column.

Settings and the keyboard

File > Settings (Ctrl+,) has the theme, the text sizes, whether the tabs and the window come back as they were, and the check for a newer sigNIMA. View > Command palette (Ctrl+Shift+P) finds any command by part of its name.

DoKeys
Open a capture file, new captureCtrl+O Ctrl+Shift+N
Save the captureCtrl+S
Run, stopF5 Shift+F5
Zoom in, out, the whole capture, its end+ - Home End
Move← →
Take the cursors awayEsc
Find in decodedCtrl+Shift+F
Close the tabCtrl+Shift+W
Next tab, the one beforeCtrl+Tab Ctrl+Shift+Tab
Bigger and smaller textCtrl+= Ctrl+- Ctrl+0
Command paletteCtrl+Shift+P

On macOS, Cmd takes the place of Ctrl, and Cmd+W and Cmd+F need no Shift.

When something goes wrong

  • No analyzer found, or "could not open the analyzer" on Windows. The FX2 board needs the WinUSB driver: install it once with Zadig, as Getting started says.
  • The FX2 board is not found on Linux. Add sigrok's udev rules, and plug it in again.
  • Samples were lost. The board took more than USB carried away: a lower rate, or a USB port of its own, helps. At 24 MHz an FX2 board needs most of a USB 2.0 bus.
  • sigrok-cli is not found. Install it from sigrok.org, or set SIGROK_CLI to where it is, and start sigNIMA again.
  • A SUMP analyzer does not answer. Check its port and baud rate: it must say what it is when asked, before a run starts.
  • A Pico does not answer, or is not found. It needs LogicAnalyzer's firmware 6.0 or later, flashed from its releases; one with any other firmware is not listed.
  • A Pico never triggers on several channels. On a bare Pico, join GPIO 0 and GPIO 1 with a wire: its pattern triggers need them.
  • A decoder is red. Its chip says why: a pin with no channel, a rate too low for the protocol, or a mistake in your own decoder.
  • Anything else: ask, or report a bug on GitHub.