Bug 1884 - Hantek 6022BE keeps sampling at 24MHz when requesting 48MHz
Summary: Hantek 6022BE keeps sampling at 24MHz when requesting 48MHz
Status: CONFIRMED
Alias: None
Product: libsigrok
Classification: Unclassified
Component: Driver: hantek-6xxx (show other bugs)
Version: 0.5.2
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-17 12:23 CEST by chrysn
Modified: 2023-08-17 21:16 CEST (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chrysn 2023-08-17 12:23:21 CEST
My Hantek 6022BE misrepresents its acquired data above 24MHz: Data acquisition apparently works, but instead of sampling at 30MHz or 48MHz it silently samples at 24MHz.

Thus, the device's built-in 1kHz reference signal, when viewed in PulseView with a PWM decoder chained to it, reports periods of 999µs reliably up to 24MHz, but goes town to 802µs at 30MHz sampling and 500µs at 48MHz sampling.

I can't recall whether this has worked better in previous versions; I definitely do recall that I've had the weirdest debugging moments a year ago, so this may have been around for some time.
Comment 1 chrysn 2023-08-17 12:41:42 CEST
There may be also some weirdness going on at 24MHz sampling; reading a WS281x stream at 16MHz sampling appears to agree much more with the observed reality of the signal being usable (unlike for the >24MHz I fail to characterize it, but it may be a helpful observation if it is related).
Comment 2 Gerhard Sittig 2023-08-17 19:23:49 CEST
Does the device even support that rate? Mind you, the question is not 
whether the driver announces it (the driver is rather generic), the 
question is whether that specific acquisition device is designed to 
operate at that rate.
Comment 3 chrysn 2023-08-17 21:16:36 CEST
The box advertises the name 6022BE (by virtue of a tick mark in a grid of identically looking products) a sampling rate of 48MHz (it doesn't say precisely which model has which, but 48MHz is the lowest on there), and the vendor page agrees with that assessment. I have never used the device with any other software than sigrok.