GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Wasabules/picoscope-libusb: Open-source libusb driver + Wails GUI for the PicoScope 2204A USB oscilloscope. Reverse-engineered protocol, no proprietary PicoSDK runtime required. Linux desktop + Android (NDK/JNI).

BranchesTags
Open more actions menu

Latest commit

 

History

41 Commits
41 Commits

Folders and files

NameName
Last commit message
Last commit date
android-lib
android-lib
 
 
docs
docs
 
 
driver
driver
 
 
gui
gui
 
 
python
python
 
 
tools
tools
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.gradle.kts
build.gradle.kts
 
 
gradle.properties
gradle.properties
 
 
jitpack.yml
jitpack.yml
 
 
settings.gradle.kts
settings.gradle.kts
 
 

Repository files navigation

picoscope-libusb

Open-source libusb driver + cross-platform GUI for the PicoScope 2204A USB oscilloscope. Built from scratch by reverse-engineering the USB protocol — no proprietary PicoSDK runtime required.

Targets Linux desktop and Android (via NDK + JNI). Windows/macOS build through Wails but have not yet been validated against hardware.

⚠️ Firmware not included. The FX2 microcode, FPGA bitstream, and waveform LUTs are copyrighted by Pico Technology Ltd. You must extract them from your own PicoScope before the driver will initialise. See docs/firmware-extraction.md.

This project is not affiliated with Pico Technology Ltd.


What's in the box

Path Description
driver/ C driver (libpicoscope2204a.{so,a}) — the core, plain libusb
gui/ Wails desktop GUI (Go + Svelte), cgo-linked to the driver
android-lib/ Gradle module packaging the driver + JNI shim as an AAR (distributed via JitPack)
python/ Reference Python driver (PyUSB) — useful for quick experiments
tools/firmware-extractor/ Extract firmware from your own device
docs/ Protocol reverse-engineering notes + how-to guides

Quick start (Linux)

# 1. udev rule (once, as root)
echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="0ce9", MODE="0666"' \
  | sudo tee /etc/udev/rules.d/99-picoscope.rules
sudo udevadm control --reload && sudo udevadm trigger

# 2. Build the driver
cd driver && make

# 3. Build & run the GUI
cd ../gui && wails build -tags webkit2_41
./build/bin/picoscope-gui

On first launch, the GUI detects missing firmware and offers to extract it for you (requires the official Pico SDK installed once). CLI alternative:

./tools/firmware-extractor/extract.sh

See docs/firmware-extraction.md for the offline (pcap) extraction path if you don't have the SDK.

Hardware

  • Model: PicoScope 2204A (VID=0x0CE9, PID=0x1007)
  • ADC: 8-bit, 100 MSPS (single channel), 50 MSPS (dual)
  • Channels: 2 analog (A + B), 1 signal generator
  • Ranges: 50 mV – 20 V (9 ranges)

Should also work on closely related models (2202, 2203, 2205, 2205A) with minor tweaks — untested.

Status

Driver

Feature Status
Block capture (single / dual channel) ✅
Fast block streaming (~330 kS/s) ✅
Native streaming (~100 S/s, DC monitoring) ✅
SDK-style continuous streaming (gap-free, 500 ns..1 ms/sample, 1 MS/s default) ✅
SDK streaming: client-side auto-stop (set_sdk_stream_auto_stop) ✅
Trigger: edge / window / PWQ ✅
Trigger: ETS (equivalent-time sampling) ✅
Enhanced resolution (up to 12-bit via oversampling) ✅
Signal generator: frequency ✅
Signal generator: arbitrary waveform (AWG + LUT) ✅ code path integrated
Signal generator: amplitude / offset ⚠️ HW unresponsive on tested unit
DC offset calibration (factory table + runtime auto-fit) ✅
Per-range gain/offset override API ✅
EEPROM readout (serial, cal-date, raw pages) ✅

GUI

Feature Status
Live scope view with time/div, pan, zoom, pause ✅
Measurements (Vpp, mean, RMS, freq, duty, rise/fall…) ✅
FFT + cursors (X/Y) + persistence + XY mode + math ✅
Protocol decoders: UART, I²C, SPI, CAN ✅
Time-code decoders: DCF77, IRIG-B, AFNOR ✅
CSV + PNG export, preset save/load ✅
Firmware extraction wizard (first-launch) ✅

See docs/protocol.md for the reverse-engineered protocol reference.

License

MIT — see LICENSE. Firmware blobs are explicitly excluded.

Contributing

Pull requests welcome. Keep commits focused, please run go test ./... in gui/ and make test in driver/ before submitting. New protocol discoveries belong in docs/protocol.md.

About

Open-source libusb driver + Wails GUI for the PicoScope 2204A USB oscilloscope. Reverse-engineered protocol, no proprietary PicoSDK runtime required. Linux desktop + Android (NDK/JNI).

Topics

libusbpicoscopepicoscope-2204aprotocol-decoderreverse-engineeringwails

Resources

Readme
License
Activity

Stars

3 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.