Hantek 6022be on linux

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

OpenHantek is a DSO software for Hantek (Voltcraft/Darkwire/Protek/Acetech) USB digital signal oscilloscopes

License

OpenHantek/openhantek

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

* update index.md for OpenHantek6022 -> openhantek.org Signed-off-by: Martin * Updated index.md regarding David's proposals. Add OpenHantek6022 to the openhantek.org project website. * Add link to releases

Git stats

Files

Failed to load latest commit information.

readme.md

OpenHantek is a free software for Hantek and compatible (Voltcraft/Darkwire/Protek/Acetech) USB digital signal oscilloscopes.

Image of main window on linux Image of main window on Windows
  • Supported operating systems: Linux, MacOSX, Windows¹, Android
  • Supported devices: DSO2xxx Series, DSO52xx Series, 6022BE/BL
  • Digital phosphor effect to notice even short spikes
  • Voltage and Spectrum view for all device supported chanels
  • Math channel with these modes: Ch1+Ch2, Ch1-Ch2
  • Freely configurable colors
  • Export to CSV, JPG, PNG or print the graphs
  • Supports hardware and software triggered devices
  • A zoom view with a freely selectable range
  • All settings can be saved to a configuration file and loaded again
  • Multiple instances with a different device each can be started
  • The dock views on the main window can be customized by dragging them around and stacking them. This allows a minimum window size of 640*480 for old workstation computers.
Читайте также:  Linux mint installation from usb

Building OpenHantek from source

You need the following software, 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)
  • A compiler that supports C++11

We have build instructions available for Linux, Apple MacOSX and Microsoft Windows.

You need an OpenGL 3.2+ or OpenGL ES 2.0+ capable graphics hardware for OpenHantek. OpenGL is prefered, if available. Overwrite this behaviour by starting OpenHantek from the command line like this: OpenHantek —useGLES .

USB access for the device is required:

  • As seen on the Microsoft Windows build instructions page, you need a special driver for Windows systems.
  • On Linux, you need to copy the file firmware/60-hantek.rules to /lib/udev/rules.d/ and replug your device.

Specifications, Features and limitations

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 master for your changes. It is not possible to directly commit to master on this repository.
  • Write good commit messages.
  • Use the same coding style and spacing (install clang-format. Use make target: make format or execute directly from the openhantek directory: clang-format -style=file src/* ).
  • 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

About

OpenHantek is a DSO software for Hantek (Voltcraft/Darkwire/Protek/Acetech) USB digital signal oscilloscopes

Источник

Captain Bodgit

I have tried both Sigrok (with pulseview) and OpenHantek, but I much prefer OpenHantek.

The Hantek 6022BE is a nice, low cost, 20MHz bandwidth scope module that runs via USB connection on a computer. I’ve seen plenty of reviews where the reviewer condemns this device as «rubbish». These are typically by people that already have proper free-standing oscilloscopes costing hundreds of pounds.

Читайте также:  Web text editor linux

The strength of the Hantek is that it is cheap, but still very useful when used as a visual diagnostic aid on low voltage electronics projects. Naturally it is not as good as a proper, free standing oscilloscope. But many hobbyists either can’t afford a full oscilloscope, or can’t justify the cost for a piece of test equipment that may only be used once or twice a year.

Since the Hantek is powered from a computers USB ports (it uses 2 sockets in order to meet the power requirements) I certainly would not try to use it on any equipment containing high voltages. The BNC input connectors are labelled «35V max». Most of my projects run well below 24Volts.

So rubbish, it is not!

Installation method

These are my notes from installing OpenHantek on Lubuntu.

Install required stuff via a terminal:-

sudo apt install g++ cmake qttools5-dev qttools5-dev-tools libfftw3-dev binutils-dev libusb-1.0-0-dev libqt5opengl5-dev mesa-common-dev libgl1-mesa-dev libgles2-mesa-dev

Download OpenHantek from Git to get the latest master copy: https://github.com/OpenHantek/openhantek

Using file manager, extract files by right-clicking on the tar.gz file, and select Extract Here

Navigate to new uncompressed folder: . /openhantek-master

Right-click to create a new folder: build

Navigate into . /build folder and hit F4, to open a terminal at this location, then type in terminal:-

cmake ../

. (note the space after cmake) and then:-

make -j2

Now connect your Hantek scope via the two USB cables to your computer and type in a terminal;

You should see the «Select Device» dialog. If the firmware does not load within a few seconds, cancel and then type:-

I had to navigate to: /lib/udev/rules.d/60-hantek.rules and change ownership from root to the current user.

I created a Hantek.desktop launcher file with the following contents:-

[Desktop Entry]
Version=1.0
Name=OpenHantek
Comment=Oscilloscope
GenericName=Oscilloscope
Exec=OpenHantek
Icon=/usr/share/pixmaps/digitalphosphor.png
Terminal=false
Type=Application
Categories=System;Utility;
StartupNotify=true

Save this file in: /usr/share/applications for access from your menu, or save to desktop to launch from there.

operation

The first problem was that the display appeared to be too high for my screen. If I grab-and-drag the window, only the width changed. After a lot of fiddling around I realised that the control panels were dockable. I dragged each one to the left hand side of the screen and they magically became tabbed.

Читайте также:  Linux количество ядер cpu

When I recently installed a newer version on another laptop, I didn’t seem to have layout problems. So maybe this has been fixed, or my second laptop has a more favourable screen size.

There was also a bug with the Timebase and Samplerate settings, but this has now been fixed.

On first use, I connected a probe to the Hantek 1kHz test point, set the Trigger Mode to Hard-/Software and then pressed the Run arrow.

To move a channel trace up or down, just click and drag on either CH1 or CH2 on the Y axis. Trigger level is set in a similar way via the coloured arrows on the right of the trace.

My main problem when running on my old ASUS laptop, is that OpenHantek seems to run the processor pretty hard, and the cpu temperature rises to a dangerously high temperature of 95’C.

However, it seems to run OK on my newer Entroware laptop, with the temperature running less than 60’C and cpu loaded to about 65%. I can hear the cpu fan throttle up after a while, so I will need to keep an eye on this.

I can’t imagine that OpenHantek runs very happily on a Raspberry Pi, but if I get time, I’ll give it a go.

Select Zoom from the View menu, then drag the vertical markers (1 & 2) to set the zoom range. You can drag the red marker (shown in the top left corner in the above illustration) to move through the sample buffer.

With Spectrum enabled, I fed the scope with a 20kHz sine wave.

scope waveform + spectrum display

The Frequencybase was set to 10kHz/div, so the 20kHz fundamental appears 2 divisions from left. The minor pulses are harmonics and other spurious signals.

Edit January 2021

The OpenHantek project is no longer maintained, but the code is stable and still works absolutely fine.

However, you may be interested in a forked version of this project called OpenHantek 6022:-

. which has a few more features as is currently an active project.

Источник

Оцените статью
Adblock
detector