Menu

wireskein takes logic analyzer captures and turns them into automated tests
📰

wireskein takes logic analyzer captures and turns them into automated tests

Adafruit Industries – Makers, hackers, artists, designers and engineers!·Anne Barela·9 days ago
#Uj4I33SL
#adafruit#checks#wireskein#github#captures
Reading 0:00
15s threshold

WireSkein, from Open Embedded Probe on GitHub, takes logic analyzer captures and turns them into automated tests. Instead of a person squinting at a waveform, the code checks whether the wire did what it was supposed to do. It’s MIT licensed, needs Python 3.11 or newer, and numpy is the only dependency.

A test records a run, then checks it. Checks cover square waves, levels, edges, pulse counts, and the I2C, SPI and UART buses. A check that couldn’t be made, because its pins aren’t in the capture, is marked unchecked and fails the run by default. There’s a pytest plugin that records each test and runs the verification afterward.

Captures are saved as .wireskein files, a zip format that keeps channels at their own sample rate, so a decimated channel stores the samples actually taken. Analog channels are in the same file with their own rates and raw ADC values.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.