Input Voltages Outside The Safe Range of 35 V Can Lead To Permanent Damage!
Input Voltages Outside The Safe Range of 35 V Can Lead To Permanent Damage!
The calibration output (blue, right side) delivers a square wave 0 V / 2 V @ 1 kHz that can be
used to adjust the frequency compensation of 10X probes.
The frequency can be varied between 50 Hz and 100 kHz to deliver a versatile test signal.
Each input section contains an 8-bit ADC (analog to digital converter) that allows to sample
the input voltage at a chosen sampling rate (10 kS/s ... 30 MS/s) and to transfer the digital
value to the PC via USB where it will be processed and displayed.
The Hantek6022 uses USB 2.0 high-speed transfer. It must be connected directly to the PC
without an USB hub in between. Make sure that the device does not share its high-speed bus
with other devices, this can be checked with the Linux commands lsusb; lsusb -t.
The device is powered over USB with a typical current consumption of less than 500 mA, so a
good quality USB 2.0 cable is sufficient, no need to use the strange red/black Y-cable.
The program OpenHantek6022 allows the usage of the scope under the Linux operating
system. The development and test platform is Debian stable.
OpenHantek6022 requires a recent Linux system with libusb-1.0, libfftw3 and the Qt libraries.
It compiles also under RPi, FreeBSD, MacOSX and Windows, but these systems are untested.
This document describes program version 3.1.2, subject to change without notice.
If the upload takes more than 30 s, please close the window and restart the program.
Follow the Quick Start Guide to get a feeling for the program or start your real measuring job.
OpenHantek6022 User Manual 2/17 2020-07-29
Demo Mode
You can explore the look and feel of the program even without having the scope
hardware available, just click the Demo Mode button on the Select device window
or start the program as: OpenHantek --demoMode
This demo mode provides a sawtooth and a square voltage. You can play with gain,
timebase and trigger settings, check out the spectrum of the signals or export the
data as *.cvs, *.pdf or *.png file.
Connect the hook of the probe tip to the left calibration out connector.
Connect the alligator clamp of the probe to the right calibration out connector.
If the trace isn't stable drag the small yellow arrow on the right of the trace a
little bit up, so that it is positioned in the middle of the trace.
The trace will snap into position and the top left red TR will turn into green TR .
The program version, device type and firmware version are displayed in the top line of the
window. This information helps when reporting issues or supposing enhancements.
The scope functions can be controlled by the four sections (marked orange) on the right:
• Voltage
• Horizontal
• Trigger
• Spectrum.
The selected settings are automatically saved when you exit and restored the next time you
start the program.
Format selects T-Y (i.e. normal scope display, voltage (Y) over time (X))
or X-Y (CH1 = X, CH2 = Y), the horizontal position on the screen can be changed by dragging
the trigger marker on the top, the vertical position on the screen can be changed by
dragging channel CH2 left of the traces window.
Calibration out selects the frequency of the calibration output (a 2 Vpp square wave) on the
right of the scope, set to 1 kHz at each program start. The frequency can be selected
between 50 Hz .. 100 kHz in 1/2/5 steps. This can be used as a simple signal generator. The
output signal is created by software, so at high frequencies a phase jitter may occur (±250ns).
Two Markers (vertical lines, marked with 1 and 2) allow to measure time as well as frequency
of the traces by dragging the lines. New markers can be positioned also by click and drag
inside the trace window. <Double click> creates two markers with a distance of 10% of the
screen width, allowing a 10x zoom. <Control> decreases the distance to 1% → 100x zoom,
<Shift> centers the markers around the trigger position. Both modifiers can be combined.
<Right double click> moves the markers out of the way to the left and right screen margins.
<Scroll wheel> moves both markers left/right, <Ctrl scroll wheel> changes their distance.
- The digital Phosphor function (sine waves icon) simulates a slow fade out of
traces to detect short events (shortcut <P>).
- The Histogram (gaussian bell icon) shows the probability density function of the
signal voltage at the right to identify hidden structures of the signal. (<H>).
- The Zoom function (magnifying glass icon) displays a new window below the
main window with zoomed time range equating the markers distance (<Z>).
- The Measure function (drafting compass icon) opens an extra section and allows
measurement of time or frequency span and levels (<M>).
The play/pause icon (top left) starts and stops the display during Auto and Normal mode.
The keyboard shortcuts <Spacebar> or <Pause> or the key <S> also work as Start / Stop.
If the <Spacebar> does not work under Windows, you should use the other alternatives.
The refresh icon (key <R>) clears the screen and starts a new trace in roll mode.
Trigger Slope:
• ↗ Triggers on rising slope
• ↘ Triggers on falling slope
• ⤨ Triggers alternatively on rising and falling slope
Trigger status (TR = triggered, TR = not triggered), source, slope, voltage level and horizontal
position are displayed in the upper left corner of the trace window followed by the pulse
width of the triggered pulse and the following pulse in opposite direction and the duty cycle.
Trigger Slope ⤨:
Triggers on alternating slopes.
Can be used together with
digital phosphor to show a
kind of eye diagram, either
triggered on the signal itself
or by a stable trigger signal
on the other scope channel.
Typical window functions are Hann (raised cosine), Gauss or Flat top. The Hann window has
the best frequency selectivity (narrowest bandwidth) while the Flat top window allows
accurate amplitude measurements. Gauss window characteristic is in between.
The Flat top window is typically employed on data where frequency peaks are distinct and
well separated from each other (e.g. for harmonic distortion measurements).
If the frequency peaks are not guaranteed to be well separated, the Hann window is
preferred because it is less likely to cause individual peaks to be lost in the spectrum.
Other different window functions are available for the curious user.
The frequency range of the spectrum can be selected in the Horizontal section, minimum
frequency is always zero, the maximum frequency is limited to the Nyquist frequency, this is
half the sampling rate.
A lower sampling rate yields a narrower frequency lobe and increases the selectivity while a
higher sampling rate allows to display a wider frequency range at the cost of less selectivity.
Important: Sampling a signal with spectral components above the Nyquist frequency leads
to aliasing, i.e. the higher spectral components are mirrored into the low frequency range.
This is not a limitation of this device, but should be considered when looking at the spectrum.
The default Reference level of 0 dBV converts a 1 V rms sinusoidal signal into a displayed
0 dB amplitude frequency peak.
Professional audio measurements typically use dBu (aka. dBm @ 600 Ω load):
0 dBu = 0 dBm = 0.775 V rms which corresponds to a reference level of -2.2 dBV.
Conversely, for RF with a 50 Ω load, 0 dBm equates approximately 0.224 volts:
0 dBm = 0.224 V corresponds to a reference level of -13 dBV.
The Minimum magnitude setting hides the noise floor and calms the display;
all spectral components below this level are not displayed.
The zoom function (magnifying glass icon, shortcut key <Z>) opens a second
window below the main window with an enlarged time range corresponding to
the distance between the markers (1 & 2).
New markers can be positioned by click and drag inside the (un-zoomed) trace window.
A <double click> (left) creates two markers close to each other with a distance of 10% of the
screen width, thus defining a zoom rate of 10, <ctrl double click> defines zoom = 100.
The shift modifier centres the markers around the trigger point.
The <scroll wheel> moves both markers left / right, <ctrl scroll wheel> changes their distance.
Select the trace (e.g. SP1), set it to ON (clicking on the ON/OFF text toggles its state) and draw
a (yellow) rectangle (red circle) to measure e.g. frequency and magnitude difference.
You can also draw another (blue) rectangle (purple circle) to measure a different trace.
Horizontal
If you want to measure very slow
signals the slowest possible
timebase can be increased up to
10 s/div (this shows 100 s on the
screen).
Be patient, in AUTO or NORMAL
mode the scope will not refresh the
trace on screen unless a full block is
captured, in ROLL mode the screen
is updated permanently.
Longer hold-off time between captured frames allows to lower the CPU load, while
faster sampling improves the triggering on rare events.
Graph
Off displays only the real sampled points, difficult to detect when only a few points
are displayed, this happens with fast time base settings, e.g. at 50 ns/div.
Linear connects these points by straight lines, showing an continuous time curve.
Digital phosphor depth defines the numbers of fading previous traces on the screen.
Measurement cursors position can be either left or right of the scope's screen.
The scope's state is automatically preserved between sessions. The automatic save
can be disabled, e.g. to start always with a predefined setup.
It is also possible to discard all user settings and restart the next time with default
settings.
If you have modified the HW of the scope to support AC coupling (see detailed info in
the Help menu), tick the box here to use this function after the next restart.
The Print function sends the hardcopy screen content directly to the printer in pdf format.
OpenHantek6022 provides translations for French, German, Italian, Portuguese, Russian and
Spanish. The French, German, Russian and Spanish translations are complete, the other
languages are work in progress.
Options:
-h, --help Displays this help.
-v, --version Displays version information.
-d, --demoMode Demo mode without scope HW
-e, --useGLES Use OpenGL ES instead of OpenGL
--useGLSL120 Force OpenGL SL version 1.20
--useGLSL150 Force OpenGL SL version 1.50
-i, --international Show the international interface, do not translate
The –use… options allow to force a different OpenGL version than the automatically
detected (e.g. in case of display artifacts).
But you can also set the limits for your user only:
1. set limits in /etc/security/limits.d:
<your_user_name> - rtprio 90
These settings work best when you're using a realtime-kernel, e.g. the debian
package linux-image-rt-amd64. But also the recent standard kernels allow to set
higher priority and better scheduling if enabled for your user.
The input signal Vin is divided 1:10 by a frequency compensated resistors R27/17 and R31/21.
Clamping diode A7 limits Ve to ±5 V (equates Vin = ±50 V). U11/7 together with the analog
multiplexer amplifies Ve by 1X, 2X, 5X or 10X (Vout).
Probably due to this misdesign the first 1000..1500 samples of a measured block are
unstable, OpenHantek6022 bypasses this behavior by sampling more values and dropping
the first ~2000.
Another bad design decision by Hantek was that the oscilloscope does not support AC
coupling of input signals – but you can modify the hardware yourself.
A short AC modification howto is available via the Help menu or from github:
https://github.com/OpenHantek/OpenHantek6022/blob/master/docs/HANTEK6022_AC_Modification.pdf
The Hantek6022 (BE & BL) backend is built around the EzUSB processor CY7C68013A that
handles USB communication, ADC timing, front-end channel gain setting and also generates
the calibration output signal. Hantek 6022BE and 6022BL (in scope mode) differ slightly in the
use of the processor pins (different BL pins in green), but otherwise work identically.
EzUSB does not store the user firmware permanently in flash memory, it must be uploaded
to RAM each time the unit is turned on. The program OpenHantek6022 checks if the correct
firmware version is loaded. In case it detects no FW or a wrong FW version (e.g. because of
using the scope with sigrok or the original Hantek software before) the correct firmware will
be uploaded automatically. If no device is detected, disconnect / reconnect the USB plug.