r/oscilloscope • u/anarsoul • 14h ago
Tips and tricks New app for Hantek 6022BE
Recently I shared my app for Hantek 2C72 (or rather 2xx2), now it is time for Hantek 6022BE that I also had sitting in my drawer.
Disclaimer: yes, this is also written with AI help. Yes, I still know what I am doing :) I am a software engineer.
The GUI is essentially the same (with a few omissions, because the hardware is obviously different), but now it drives 6022BE.
See the screenshots.
You may wonder why it came to life in the first place, since there is already OpenHantek6022? I am working on another project that uses esp32-c3 to play audio using PDM, and I needed a visual demonstration how PDM turns into an audio waveform - that's where I need hi-res mode with CIC filter for slower time bases. Yes, audio waveform on the screenshot above is what you see at this timebase when the probe touches the pin with PDM signal.
The other feature that OpenHantek6022 doesn't have (yet?) is persistence graded in colors, which allowed me to notice a few irregularities in the stream from the scope and address them in software, in particular:
- After a start, the samples often jump right after the first 2048 bytes. Rusty6022 always drops the first 4096 bytes, which also covers the single-channel case
- The scope has no memory of its own, and samples the host doesn't fetch in time are lost without any warning. Rusty6022 keeps many small USB transfers queued at once instead of reading one large block. In my measurements this took the gaps inside a block from a few per 100 KB to practically none
Both issues were seen as purple glimpses with graded retain enabled - they are not noticeable otherwise.
The first release can be found at https://github.com/anarsoul/rusty6022/releases/tag/v0.1.0 - there are binaries for Windows, Mac and Linux. Mac and Linux do not need any drivers, Windows needs WinUSB, just like OpenHantek6022. Can be installed using Zadig. For Mac the app is not signed, so you'll need to do `xattr -dr com.apple.quarantine Rusty6022.app` after downloading the app. Linux may need udev rules installed.
https://github.com/anarsoul/rusty6022/blob/main/README.md should answer most of the questions.
Future of the app? I intend to support it as long as I have the scope. I am willing to accept reasonable feature requests.
Any feedback is always welcome! :)
