Name Last Update
cmake Loading commit data...
doc Loading commit data...
firmware Loading commit data...
openhantek Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CMakeLists.txt Loading commit data...
COPYING Loading commit data...
Doxyfile Loading commit data...
appveyor.yml Loading commit data...
readme.md Loading commit data...

readme.md

OpenHantek Build Status Build status

OpenHantek is a free software for Hantek (Voltcraft/Darkwire/Protek/Acetech) USB digital storage oscilloscopes based on HantekDSO and has started as an alternative to the official Hantek DSO software.

Supported operating systems:

  • Linux
  • MacOSX
  • Windows¹
Image of main window on linux Image of main window on Windows

Supported hantek devices:

  • DSO2xxx Series
  • DSO52xx Series
  • 6022BE/BL

Install prebuilt binary

Navigate to the Releases page

Building OpenHantek from source

You need the following packages, to build OpenHantek from source:

  • CMake 3.5+
  • Qt 5.4+
  • FFTW 3+ (prebuild files will be downloaded on windows)
  • libusb 1.x (prebuild files will be used on windows)

You need a OpenGL 3.x capable graphics card for OpenHantek.

Linux

For debian based systems (Ubuntu, Mint) install named requirements like this:

apt install g++ cmake qttools5-dev qttools5-dev-tools libfftw3-dev binutils-dev libusb-1.0-0-dev libqt5opengl5-dev

For rpm based distributions (Fedora) use this command:

dnf install cmake gcc-c++ qt5-qtbase-gui qt5-qttools-devel qt5-qttranslations fftw-devel binutils-devel libusb-devel

After you've installed the requirements run the following commands inside the directory of this package:

mkdir build
cd build
cmake ../
make -j

Optionally install the program:

sudo make install

If you do not install the program, you need to copy the file firmware/60-hantek.rules to /lib/udev/rules.d/, and reload the udev service, otherwise you will not have the correct permissions to access usb devices.

Apple MacOSX

We recommend homebrew to install the required libraries.

brew update
brew install libusb fftw qt5;

After you've installed the requirements run the following commands inside the directory of this package:

mkdir build
cd build
cmake ../ -DCMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/5.7.0
make -j

Please adjust the path to Qt5. You can find the path with the command:

brew info qt5

Windows

Run the CMake GUI program and select the source directory, build directory and your compiler. If your compiler is for example Visual Studio, cmake will generate a Visual Studio Project and solution file (*.sln). Open the project and build it. If you use an IDE that has inbuild support for cmake projects like QtCreator, you can just open and build this project.

Microsoft Windows needs an installed driver for every usb device:

  • Make sure your original Hantek driver is uninstalled.
  • Extract cmake/winusb driver.zip and customize the libusb_device.inf file for your device. The Vendor ID and Device ID as well as a unique GUID need to be entered like in the following example for a Hantek 6022BE.
  • Physically plug (or replug) oscilloscope into PC's. From the Windows device manager update driver for your device and point to your modified libusb_device.inf.
; =====================================================
; ========= START USER CONFIGURABLE SECTION ===========
; =====================================================

DeviceName = "HantekDSO6022BE"
VendorID = "VID_04B5"
ProductID = "PID_6022"
DeviceClassGUID = "{78a1c341-4539-11d3-b88d-00c04fad5171}"
; Date MUST be in MM/DD/YYYY format
Date = "08/12/2017"

; =====================================================
; ========== END USER CONFIGURABLE SECTION ============
; =====================================================

Special case: 6022BE

You can adjust samplerate and use software triggering for 6022BE.

  • Support 48, 24, 16, 8, 4, 2, 1 M and 500, 200, 100 k Hz samplerates with modded firmware by jhoenicke
  • Support software trigger by detecting rising or falling edge of signal. Use software trigger item on the trigger menu. For trigger level, adjust left arrow on the right-side of the graph.
  • Note that the first few samples are dropped due to unstable/unusual reading.

Contribute

Please use Github Issues to report any problems or enhancements or send us pull requests. Some random notes:

Other open source software