Hantek 6022be driver windows
- Overview
- Parameters
- Comparison
- Accessories
- Download
Features
- Excellent industrial design-the same anodised aluminium casing as iPad, which is not only beautiful and tasteful but also greatly enhanced the hardness of aluminum alloy surface, and has good heat resistance and strong wearability.
- Standard USBXI TM interface, easily inserts into USBXI TM housing to make up a combination instrument.
- USB2.0 interface, no external power source required, easy to use.
- Be suitable for notebook computer, product line maintenance, be used easily on business.
- Dimensions (mm):205(L) x120(W) x35(H), be carried easily.
- High performance, 250MS/s real-time sampling, 20MHz-80MHz bandwidth.
- Operating System: Windows 10, Windows 8, Windows 7, Windows NT, Windows XP, VISTA.
- 23 measurement functions, PASS/FAIL Check, be suitable for technical application.
- Waveform average, persistence, intensity, invert, addition, subtraction, multiplication, division, X-Y plot.
- Save waveform in the following: text file, jpg/bmp graphic file, MS excel/word file.
- FFT
- One computer can connect many DSO, extend channel easily.
- Labview\VB\VC Second Design instance.
Hantek 6022be driver windows
- Overview
- Parameters
- Comparison
- Accessories
- Download
Features
- Excellent industrial design-the same anodised aluminium casing as iPad, which is not only beautiful and tasteful but also greatly enhanced the hardness of aluminum alloy surface, and has good heat resistance and strong wearability.
- Standard USBXI TM interface, easily inserts into USBXI TM housing to make up a combination instrument.
- USB2.0 interface, no external power source required, easy to use.
- Be suitable for notebook computer, product line maintenance, be used easily on business.
- Dimensions (mm):205(L) x120(W) x35(H), be carried easily.
- High performance, 48MS/s real-time sampling, 20MHz bandwidth.
- 16Channels Logic Analyzer, 10MHz Bandwidth;
- Operating System: Windows 7, Windows 8, Windows 10.
- 20 measurement functions.
- intensity, invert, addition, subtraction, multiplication, division, X-Y plot.
- Save waveform in the following: text file, jpg/bmp graphic file, MS excel/word file.
- FFT
- One computer can connect many DSO, extend channel easily.
- Labview\VB\VC Second Design instance.
Hantek 6022be driver windows
For Debian (stretch and newer), Ubuntu 17.04+ and Mint 17+ and other deb based distributions install named requirements like this:
apt install g++ make cmake fakeroot qttools5-dev libfftw3-dev binutils-dev libusb-1.0-0-dev libqt5opengl5-dev mesa-common-dev libgl1-mesa-dev libgles2-mesa-dev
For distributions using dnf package manager (Fedora 21+) use this command:
dnf install make cmake fakeroot gcc-c++ qt5-qtbase-gui qt5-qttools-devel qt5-qttranslations fftw-devel binutils-devel libusb-devel mesa-libGL-devel mesa-libGLES-devel
For OpenSUSE and related distributions use this command
zypper install make cmake fakeroot gcc-c++ libqt5-qtbase libqt5-qttools libqt5-qttranslations libusb-1_0 Mesa-libGL1 Mesa-libGLESv2 fftw3
The script LinuxSetup_AsRoot installs all build requirements automatically.
After you’ve installed the requirements run the following commands inside the directory of this package:
or execute the script LinuxBuild that configures the build, builds the binary and finally creates the packages (deb, rpm and tgz) that can be installed as described in the next paragraphs. If you make small changes to the local source code, it is sufficient to call make -j4 or make -j4 package in the build directory.
After success you can test the newly built program openhantek/OpenHantek . Due to the included debug information this file is quite big (
20 MB), but the size can be reduced with strip openhantek/OpenHantek if you want to put it into a user directory. If you do not install the program, you need to copy the file utils/udev_rules/60-openhantek.rules to /etc/udev/rules.d/ yourself, and replug your device, otherwise you will not have the correct USB permissions to access the device.
You can install the program with sudo make install , but it is highly recommended to create a debian package, which allows a clear installation and removal of the package:
If you detect that icons are not displayed correctly, please check if the Qt SVG library is installed on your system. The Linux systems mentioned above include this lib when you install according to the provided lists. However, an alpine linux user reported that he had to install qt5-qtsvg separately.
The general Linux requirements from above also apply to the RPi; precompiled packages are available as release assets. Please note, it is important that the correct graphics driver is selected, the OpenGL implementation of Qt requires the Original non-GL desktop driver , e.g. on my RPi3B+:
Only the 1st setting G1 Legacy Original non-GL desktop driver worked for OpenHantek6022 , the other two resulted in an error as below:
Setting Original non-GL desktop driver was reported to work also on RPi4B+.
Install the build requirements
After you’ve installed the requirements run the following commands inside the directory of this package:
After success you can test the newly built program openhantek/OpenHantek . Due to the included debug information this file is quite big (
20 MB), but the size can be reduced with strip openhantek/OpenHantek if you want to put it into a user directory.
In order for OpenHantek to work, make sure that your USB device has permissions for your user. You can achieve this by copying utils/devd_rules_freebsd/openhantek.conf to /usr/local/etc/devd/ , or create a file with similar content for your device:
Also please note that devices like this have two vendor/product id combinations, before and after loading the firmware, hence two commands above. The action changes the device permissions for supported scope devices:
rw——- root operator becomes rw-rw—- root openhantek
Make sure to be member of the group openhantek , e.g.:
We recommend homebrew to install the required libraries.
If you want to build an OSX bundle make sure the option in openhantek/CMakeLists.txt is set accordingly:
After you’ve installed the requirements run the following commands inside the top directory of this package:
We highly recommend to use QtCreator to build this software. All reported issues regarding other IDEs will be closed as invalid!
- Open the project in QtCreator
- Compile the software
Hints for Visual Studio 2015/2017/2019 users:
- Install the right Qt package that matches your Visual Studio installation.
- Build for 64bit. 32bit builds theoretically work, but you are on your own then.
- Use the CMake GUI to setup all required Qt include and library paths.
CI Build on GitHub Actions
As I do not use Windows for development the building is done externally by GitHub Actions who provides these Windows environments. Please check also the file build_check.yml for info about the building process. Starting with the update to Visual Studio 2019 for the upcoming OpenHantek6022 version 3.2 only 64bit builds are provided.
Previously the building was done externally at the CI provider appveyor.com who provided these Windows environments. Please check also the file appveyor.yml for info about the building process.
Microsoft Windows USB driver install (with Zadig)
The device specific USB driver shipped with the vendor software is not going to work. You will need to install the WinUSB driver.
For installing the WinUSB driver you can use the Zadig executable. There are two versions, one for Windows XP (zadig_xp.exe), and another one for all other (Vista or higher) supported Windows versions (zadig.exe). Both 32 and 64 bit Windows versions are supported.
If you already installed the vendor driver previously, you need to run Zadig and switch to the WinUSB driver (see above). There’s no need to uninstall or deactivate the vendor driver manually, Zadig will handle all of this.
Note: For Hantek 6022BE and 60222BL you have to assign the WinUSB driver via Zadig twice: the first time for the initial USB VID/PID the device has when attaching it via USB, and a second time after the firmware has been uploaded to the device and the device has «renumerated» with a different VID/PID pair.
See also the Zadig wiki page for more information.
- 1st install for the newly plugged scope without firmware (VID/PID 04B4/6022 for 6022BE or VID/PID 04B4/602A for 6022BL).
- 2nd time for the scope with firmware uploaded (VID/PID 04B5/6022 for 6022BE or VID/PID 04B5/602A for 6022BL).
Some win user reports:
Signed WinUSB driver for Hantek 6022BE/BL
Hantek 6022be driver windows
OpenHantek6022 is a free software for Hantek DSO6022 USB digital signal oscilloscopes that is actively developed on github.com/OpenHantek/OpenHantek6022 — but only for Hantek 6022BE/BL and compatible scopes (Voltcraft, Darkwire, Protek, Acetech, etc.).
The program was initially developed by David Gräff and others on github.com/OpenHantek/openhantek, but David stopped maintaining the programm in December 2018.
- Hantek 6022BE and 6022BL as well as compatible scopes (e.g. Voltcraft DSO-2020).
- SainSmart DDS120 (thx msiegert) — this device has a different analog front end and uses the slightly improved sigrok firmware, which has some limitations compared to the Hantek scopes (see #69).
Demo mode is provided by the -d or —demoMode command line option.
Fully supported operating system: Linux; developed under debian stable for amd64 architecture.
Raspberry Pi packages (raspbian stable) are available on the Releases page, check this setup requirement.
Compiles under FreeBSD (packaging / installation: work in progress, thx tspspi).
Other operating systems builds: Windows (mostly untested) & macOS (completely untested). No support for non-Linux related issues unless a volunteer steps in!
Uses free open source firmware, no longer dependent on nonfree Hantek firmware.
Extensive User Manual with technical specs and schematics.
- Voltage and Spectrum view for all device supported chanels.
- CH1 and CH2 name becomes red when input is clipped (bottom left).
- Settable probe attenuation factor 1..1000 to accommodate a variety of different probes.
- Measure and display Vpp, DC (average), AC, RMS and dB (of RMS) values as well as frequency of active channels.
- Display the power dissipation for a load resistance of 1..1000 Ω (optional, can be set in Oscilloscope/Settings/Analysis).
- Display the THD of the signal (optional, can be set in Oscilloscope/Settings/Analysis).
- Math channel modes: CH1+CH2, CH1-CH2, CH2-CH1, CH1*CH2 and AC part of CH1 or CH2.
- Time base 10 ns/div .. 10 s/div.
- Sample rates 100, 200, 500 S/s, 1, 2, 5, 10, 20, 50, 100, 200, 500 kS/s, 1, 2, 5, 10, 12, 15, 24, 30 MS/s (24 & 30 MS/s in CH1-only mode).
- 48 MS/s not supported due to unstable USB data streaming.
- Downsampling (up to 200x) increases resolution and SNR.
- Calibration output square wave signal frequency can be selected between 32 Hz .. 100 kHz in small steps (poor man’s signal generator).
- Trigger modes: Normal, Auto and Single with green/red status display (top left).
- Untriggered Roll mode can be selected for slow time bases of 200 ms/div .. 10 s/div.
- Trigger filter HF (trigger also on glitches), Normal and LF (for noisy signals).
- Display interpolation modes Off, Linear, Step and Sinc.
- Calibration values loaded from eeprom or a model configuration file.
- Calibration program to create these values automatically.
- Digital phosphor effect to notice even short spikes; simple eye-diagram display with alternating trigger slope.
- Histogram function for voltage channels on right screen margin.
- A zoom view with a freely selectable range.
- Cursor measurement function for voltage, time, amplitude and frequency.
- Export of the graphs to CSV, JPG, PNG file or to the printer.
- Freely configurable colors.
- Automatic adaption of iconset for light and dark themes.
- The dock views on the main window can be customized by dragging them around and stacking them. This allows a minimum window size of 800*300 for old laptops or workstation computers.
- All settings can be saved to a configuration file and loaded again.
- French, German, Polish, Russian and Spanish localisation complete, Italian and Portuguese translation ongoing — volunteers welcome!
A little HW modification adds AC coupling. OpenHantek6022 supports this feature since v2.17-rc5 / FW0204.
Every commit triggers a workflow on GitHub Actions that builds and packages OpenHantek6022 for:
- Linux (Ubuntu-18.04)
- macOS (Catalina 10.15)
- Windows (MSVS-2019)
This status badge here (and on top of this page) show the build status.
Building OpenHantek6022 from source
The preferred way to run OpenHantek is to build it from source on your system, for this you will need the following software:
- CMake 3.5+
- Qt 5.4+
- FFTW 3+ (prebuild files will be downloaded on windows)
- libusb-1.0, version >= 1.0.16 (prebuild files will be used on windows)
- A compiler that supports C++11 — tested with gcc, clang and msvc
We have build instructions available for Linux, Raspberry Pi, FreeBSD, Apple macOS and Microsoft Windows. To make building for Linux even easier, I provide two shell scripts:
- LinuxSetup_AsRoot , which installs all build requirements. You only need to call this script once (as root) if you have cloned the project.
- LinuxBuild configures the build, builds the binary and finally creates the packages (deb, rpm and tgz) that can be installed as described in the next paragraph. If you make small changes to the local source code, it is sufficient to call make -j4 or fakeroot make -j4 package in the build directory.
Install prebuilt binary packages
- Download Linux (built on Ubuntu 1804 LTS), Raspberry Pi (Debian stable), FreeBSD (12.1), macOS (Catalina) and Windows (Visual Studio 2019) packages for your convenience from the Releases page.
- If you want to follow ongoing development, packages built from the last commit are available in the unstable release.
- For RPi4 see also issue #28.
- These binary packages are built on stable operating system versions and require an up-to-date system.
- As I develop on a Debian stable system my preferred (native) package format is *.deb . The program itself and the *.deb package is tested on my local system for completeness and correctness. The prebuilt packages are not tested, neither is the installation of the *.rpm packages.
- To install the downloaded *.deb package, open a terminal window, go to the package directory and enter the command (as root) apt install ./openhantek_. _amd64.deb . This command will automatically install all dependencies of the program as well.
- For installation of *.rpm packages follow similar rules, e.g. dnf install ./openhantek-. -1.x86_64.rpm .
- The *.tar.gz achives contain the same files as the *.deb and *.rpm packages for quick testing — do not use for a permanent intallation. Do not report any issues about the *.tar.gz !
- Get macOS packages from macports — thx ra1nb0w.
- Get Fedora rpm packages — thx Vascom.
- Download (untested) builds from last commit. Select the preferred Image and go to Artifacts .
On a Linux system start the program via the menu entry OpenHantek (Digital Storage Oscilloscope) or from a terminal window as OpenHantek .
You can explore the look and feel of OpenHantek6022 without the need for real scope hardware by running it from the command line as: OpenHantek —demoMode .
OpenHantek6022 runs also on legacy HW/SW that supports at least OpenGL 2.1+ or OpenGL ES 1.2+. OpenGL is preferred, select OpenGL ES by starting OpenHantek from the command line like this: OpenHantek —useGLES .
The Raspberry Pi build uses OpenGL ES automatically, check also the graphics driver setup.
USB access for the device is required (unless using demo mode):
- On Linux, you need to copy the file utils/udev_rules/60-openhantek.rules to /etc/udev/rules.d/ or /usr/lib/udev/rules.d/ and replug your device. If OpenHantek is installed from a *.deb or *.rpm package this file is installed automatically into /usr/lib/udev/rules.d/ .
Windows USB access
- The original Hantek driver for Windows doesn’t work! You have to assign the correct WinUSB driver with one of these two solutions:
- Use the tool Zadig and follow the good step-by-step tutorial provided by DaPa.
- Install the signed WinUSB driver provided by VictorEEV.
The scope doesn’t store the firmware permanently in flash or eeprom, it must be uploaded after each power-up and is kept in ram ’til power-down. If the scope was used with a different software (old openhantek, sigrok or the windows software) the scope must be unplugged and replugged one-time before using it with OpenHantek6022 to enable the automatic loading of the correct firmware. The top line of the program must display the correct firmware version (FW0209).
Specifications, features, limitations and developer documentation
I use this project mainly to explore how DSP software can improve and extend the limitations of this kind of low level hardware. It would have been easy to spend a few bucks more to buy a powerful scope — but it would be much less fun 🙂 Please refer also to the developer info.
We welcome any reported GitHub issue if you have a problem with this software. Send us a pull request for enhancements and fixes. Some random notes:
- Read how to properly contribute to open source projects on GitHub.
- Create a separate branch other than main for your changes. It is not possible to directly commit to main on this repository.
- Write good commit messages.
- Use the same coding style and spacing -> install clang-format and use make target: make format or execute directly: clang-format -style=file -i *.cpp *.h .
- It is mandatory that your commits are Signed-off-by:, e.g. use git’s command line option -s to append it automatically to your commit message: git commit -s -m ‘This is my good commit message’
- Open a pull request with a clear title and description.
- Read Add a new device if you want to know how to add a device.
- We recommend QtCreator as IDE on all platforms. It comes with CMake support, a decent compiler, and Qt out of the box.
Other DSO open source software
Other related software
- HScope for Android A one-channel basic version is available free of charge (with in-app purchases).
About
OpenHantek6022 is a DSO software for Hantek USB digital signal oscilloscopes 6022BE / BL. Development OS is Debian Linux, but the program also works on FreeBSD, MacOS, RaspberryPi and Windows. No support for non-Linux related issues unless a volunteer steps in!