Author Topic: Hantek 6022BE 20MHz USB DSO  (Read 856149 times)

0 Members and 2 Guests are viewing this topic.

Offline isquicha

  • Newbie
  • Posts: 2
  • Country: br
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1025 on: September 15, 2017, 05:11:08 am »
Isquicha, some places say they are similar only by outside.
Will be impossible to make it to work.

And pulseview (sigrok) doesn't want to detect my 6022BE... :(

I have so many drivers lying around... :-0

 :'( :'( :'(
 

Offline vphuoc

  • Newbie
  • Posts: 2
  • Country: vn
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1026 on: October 08, 2017, 02:11:30 am »
Hi RacSantos,
Welcome to this Hantek 6022BE Users group.

My apologies, there is a typographical error in the link shown in my Reply #937 on this topic.
The correct link for the Open6022BE C/C++ Source Code for CodeGear Rad Studio is:
http://jmp.sh/sJKpC23

These links were first posted by the original contributors on this topic, as described below:

Open6022BE Pre Release version PR18 binary executable for Windows:
http://jmp.sh/k0tTgXg
Posted by RichardK on 2 April 2014 in Reply #540 at:
https://www.eevblog.com/forum/testgear/hantek-6022be-20mhz-usb-dso/msg418102/#msg418102

Open6022BE Pre Release version PR19 C/C++ Source Code & executable binary for CodeGear C++Builder (Rad Studio):
http://jmp.sh/sJKpC23
Posted by RichardK on 12 December 2014 in Reply #733 at:
https://www.eevblog.com/forum/testgear/hantek-6022be-20mhz-usb-dso/msg566881/#msg566881

Unofficial User Manual for Hantek 6022BE using Open6022BE software:
http://jmp.sh/3RFfHFz
Posted by Matchless on 22 December 2014 in Reply #747 at:
https://www.eevblog.com/forum/testgear/hantek-6022be-20mhz-usb-dso/msg572503/#msg572503

I can confirm that Open6022BE version PR19, with minor changes, successfully compiles under Idera / Embarcadero (formerly CodeGear) RAD Studio XE5.
Some minor changes changes were made to eliminate compiler warnings and errors.
It was first necessary to install ToolBar 2000 by Jordan Russell (manually patched for use with later versions of RAD Studio).
I have also been able to extend the code to allow generation of a CSV file for all selected channels, to allow convenient import of captured data into other software, e.g. MS Excel.

I regret that I have no knowledge of using this software on the MAC OS X, but suggest that you read carefully through all the messages on this topic to gather the information, as contributors have been accessing the Hantek 6022BE SDK from various other platforms.

Good luck  :-+

Hi Techoisseur

I'm successfully install toolbar 2k but I get stuck in RAD studio 10.2 (version 25).

Checking project dependencies...
Compiling Hantek_6022BE.cbproj (Debug, Win32)
bcc32 command line for "Hantek_6022BE.cpp"
  c:\program files (x86)\embarcadero\studio\19.0\bin\bcc32.exe -D_DEBUG -nDebug -I"C:\Users\Phan Van Phuoc\Downloads\tb2k-2.2.2\Lib\D12";"c:\program
  files (x86)\embarcadero\studio\19.0\include\windows\vcl";6022BE;\boost\tr1\tr1;"c:\program files (x86)\embarcadero\studio\19.0\include";"c:\program
  files (x86)\embarcadero\studio\19.0\include\vcl";"c:\program files (x86)\embarcadero\studio\19.0\include";"c:\program files
  (x86)\embarcadero\studio\19.0\include\dinkumware";"c:\program files (x86)\embarcadero\studio\19.0\include\windows\crtl";"c:\program files
  (x86)\embarcadero\studio\19.0\include\windows\sdk";"c:\program files (x86)\embarcadero\studio\19.0\include\windows\rtl";"c:\program files
  (x86)\embarcadero\studio\19.0\include\windows\vcl";"c:\program files (x86)\embarcadero\studio\19.0\include\windows\fmx";
  C:\Users\Public\Documents\Embarcadero\Studio\19.0\hpp\Win32;C:\Users\Public\Documents\Embarcadero\Studio\19.0\hpp\Win32 -y -k -r- -c -tM -tW -C8
  -oDebug\Hantek_6022BE.obj -w-par -Od -v -vi -H=Debug\Hantek_6022BE.pch -H Hantek_6022BE.cpp
[bcc32 Warning] W8123 Path '\boost\tr1\tr1' not found - path ignored in option '-I'
[bcc32 Warning] W8123 Path 'c:\program files (x86)\embarcadero\studio\19.0\include\vcl' not found - path ignored in option '-I'
[bcc32 Warning] W8123 Path '\boost\tr1\tr1' not found - path ignored in option '-I'
[bcc32 Warning] W8123 Path 'c:\program files (x86)\embarcadero\studio\19.0\include\vcl' not found - path ignored in option '-I'
bcc32 command line for "MainForm_Dlg.cpp"
  c:\program files (x86)\embarcadero\studio\19.0\bin\bcc32.exe -D_DEBUG -nDebug -I"C:\Users\Phan Van Phuoc\Downloads\tb2k-2.2.2\Lib\D12";"c:\program
  files (x86)\embarcadero\studio\19.0\include\windows\vcl";6022BE;\boost\tr1\tr1;"c:\program files (x86)\embarcadero\studio\19.0\include";"c:\program
  files (x86)\embarcadero\studio\19.0\include\vcl";"c:\program files (x86)\embarcadero\studio\19.0\include";"c:\program files
  (x86)\embarcadero\studio\19.0\include\dinkumware";"c:\program files (x86)\embarcadero\studio\19.0\include\windows\crtl";"c:\program files
  (x86)\embarcadero\studio\19.0\include\windows\sdk";"c:\program files (x86)\embarcadero\studio\19.0\include\windows\rtl";"c:\program files
  (x86)\embarcadero\studio\19.0\include\windows\vcl";"c:\program files (x86)\embarcadero\studio\19.0\include\windows\fmx";
  C:\Users\Public\Documents\Embarcadero\Studio\19.0\hpp\Win32;C:\Users\Public\Documents\Embarcadero\Studio\19.0\hpp\Win32 -y -k -r- -c -tM -tW -C8
  -oDebug\MainForm_Dlg.obj -w-par -Od -v -vi -H=Debug\Hantek_6022BE.pch -H MainForm_Dlg.cpp
[bcc32 Warning] W8123 Path '\boost\tr1\tr1' not found - path ignored in option '-I'
[bcc32 Warning] W8123 Path 'c:\program files (x86)\embarcadero\studio\19.0\include\vcl' not found - path ignored in option '-I'
[bcc32 Warning] W8123 Path '\boost\tr1\tr1' not found - path ignored in option '-I'
[bcc32 Warning] W8123 Path 'c:\program files (x86)\embarcadero\studio\19.0\include\vcl' not found - path ignored in option '-I'
[bcc32 Warning] Hantek.h(54): W8008 Condition is always false
[bcc32 Warning] Hantek.h(62): W8008 Condition is always false
[bcc32 Warning] Hantek.h(70): W8008 Condition is always false
[bcc32 Error] Constants.h(11): E2238 Multiple declaration for 'HDC'
[bcc32 Error] windef.h(81): E2344 Earlier declaration of 'HDC'
[bcc32 Warning] MainForm_Dlg.cpp(1030): W8111 Accessing deprecated entity '_fastcall TThread::Resume()'
[bcc32 Warning] MainForm_Dlg.cpp(1031): W8111 Accessing deprecated entity '_fastcall TThread::Resume()'
[bcc32 Error] MainForm_Dlg.cpp(2717): E2357 Reference initialized with 'TPoint', needs lvalue of type 'TPoint'
[bcc32 Error] MainForm_Dlg.cpp(2717): E2342 Type mismatch in parameter 'p' (wanted 'TPoint &', got 'TPoint')
[bcc32 Error] MainForm_Dlg.cpp(2775): E2357 Reference initialized with 'TPoint', needs lvalue of type 'TPoint'
[bcc32 Error] MainForm_Dlg.cpp(2775): E2342 Type mismatch in parameter 'p' (wanted 'TPoint &', got 'TPoint')
[bcc32 Error] MainForm_Dlg.cpp(3539): E2357 Reference initialized with 'TPoint', needs lvalue of type 'TPoint'
[bcc32 Error] MainForm_Dlg.cpp(3539): E2342 Type mismatch in parameter 'p' (wanted 'TPoint &', got 'TPoint')
[bcc32 Error] MainForm_Dlg.cpp(3905): E2064 Cannot initialize 'const std::string &' with 'wchar_t *'
[bcc32 Error] MainForm_Dlg.cpp(3905): E2342 Type mismatch in parameter 'Filename' (wanted 'const std::string &', got 'wchar_t *')
[bcc32 Error] MainForm_Dlg.cpp(3930): E2064 Cannot initialize 'const std::string &' with 'wchar_t *'
[bcc32 Error] MainForm_Dlg.cpp(3930): E2342 Type mismatch in parameter 'Filename' (wanted 'const std::string &', got 'wchar_t *')
Failed
Elapsed time: 00:00:07.6


I'm very appreciate if you can share your code or share to me how to make it compile.

Thanks
 

Offline vphuoc

  • Newbie
  • Posts: 2
  • Country: vn
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1027 on: October 08, 2017, 02:41:31 pm »
Hi
I've added the Lissajous figure to PCSCOPE (version 1.7)
See attached figure
Fabio

Hi

I love your PCScope. Can you share your latest version?

Thanks
 

Offline Default

  • Newbie
  • Posts: 1
  • Country: de
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1028 on: October 19, 2017, 04:50:38 am »
 

Offline user5

  • Newbie
  • Posts: 3
  • Country: by
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1029 on: November 24, 2017, 06:41:34 pm »
Can someone tell me what is the capacity of the fat capacitor near the voltage regulator (see attachement)? I was unaware about the absence of galvanic isolation when tested my power supply. Now there is a short cicuit.
Also, is it possible to analyze power lines with this type of oscope? May be separate power line can help?
 

Offline Hernexto

  • Newbie
  • Posts: 6
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1030 on: November 24, 2017, 11:46:34 pm »
I tried PulseView but it doesn't have real time function!!!

and Saleae neither! How can somebody build a good product without that...

c12 is 0.027 mF
c15 is 33.17 uF
both measured in-circuit

You could use it with apropiate probes but is a bad idea. look around, others on internet asked the same.

BTW... there is an APP to use our hantek on an android phone!!!:
https://play.google.com/store/apps/details?id=com.martinloren.hscope&hl=es

HScope from Martin Loren, full version just 8€
APPs manual: http://hscope.martinloren.com/

 

Offline user5

  • Newbie
  • Posts: 3
  • Country: by
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1031 on: November 25, 2017, 01:51:41 pm »
Thanx for your suggestions. I don't think the probe was the problem in my case. Actually, the power switch turned off right after I touched the wire of the broken device (PSU) with the probe's negative (ground) crocodile. That's why I suppose the short circuit was through the oscope power line which was fed from PC.

UPD: I repaired the scope. It was D1 which caused the short.
« Last Edit: November 25, 2017, 09:29:27 pm by user5 »
 

Offline hacki

  • Newbie
  • Posts: 1
  • Country: 00
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1032 on: December 11, 2017, 08:01:19 am »
For anyone having trouble with sigrok / pulseview it is most likely this bug: https://sigrok.org/bugzilla/show_bug.cgi?id=918

There appear to be units with different USB IDs. I added the usb ID of my unit to a local copy of the sourcecode and compiled my own version of pulseview and it is working fine, so i wrote the maintainer an email if he can add that fix to the official sourcecode.


That aside; i have a question:

Is there some software or way to get some sort of "continuous plot" with this DSO? Looking at very slow signals (single digit hertz ranges or less) with a large timebase is very annoying since it's measuring for x seconds and then plots everything all at once. I'd much rather watch the signal live?

With the way it is, i dont even get why the hantek software has the option to set the timebase to ridiculous numbers like 1000 or 5000 seconds... What, you're supposed to wait 14 hours for your plot?

 

Offline Techoisseur

  • Contributor
  • Posts: 10
  • Country: gb
  • EE (Retd)
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1033 on: January 03, 2018, 03:11:01 pm »
Hi vphuoc,
I recently came back to this forum, and found your post dated 08 October 2017.
Sorry for the delay in posting this reply.
Well done for installing the toolbar that is used by RichardK's Open6022BE application :-+
I hope that you have been able to get the software working with RAD Studio 10.

I do not yet have RAD Studio 10 installed on my system, but still do have RAD Studio XE5 with the toolbar installed.
I found it necessary to change the location of some functions used in many of the files, and other minor changes, to allow the software to be run on recent versions of RAD Studio.
I expect that RAD Studio 10 uses many of the same locations, but you may have to make some further changes to be compatible with the latest version of RAD Studio.
I have uploaded the relevant files to my Google Drive, in Project Folder Open6022BE, which I can share using the following link:
[https://drive.google.com/drive/folders/1aYO-X1H_NoxOGMABAaSiH9iJ35ARUrc6?usp=sharing]

The 141 files uploaded include the following PDF file, which has a listing of the relevant files:
Open6022BE Contents 2018-01-03.pdf

The file names listed are the ones included in the archive Open6022be_src_codegear_radstudio_cpp.zip, that was included in the file Open6022BE.rar.
A link to Open6022BE.rar was posted by murgui in Reply #1019 earlier in this thread topic.

I have included 3 new files:
ExportCSVFile.cpp
ExportCSVFile.dfm
ExportCSVFile.h

These support the only additional feature, which allows oscilloscope traces to be saved as a .CSV file.
The CSV file can then be loaded into Excel (spreadsheet) for further processing.
This was the only feature that I added, in order to confirm that I could amend the program if necessary.
However, my C++ skills and knowledge of RichardK's application are not sufficient to allow me to make more ambitious changes. Also, I do not claim that the changes I have made are good or bug-free, but I hope that they will be useful.

The files that I have changed can easily be identified, because they have modified Dates of 2016 or later.
The original files have modified dates of 2014 or earlier.
The files in the project folder have dates that are 1 hour earlier than listed in the archive Open6022BE (I assume because of a Time Zone difference).

The executable files (both named Hantek_6022BE.exe) appear in the Debug and Release subfolders.
I can confirm that the program compiles without warnings or errors in RAD Studio XE5.

I hope that you will find these files helpful if you still have difficulties getting the application working under RAD Studio 10.

Please let me know how you get on with this project.

techoisseur


 

Offline Hamza Khan

  • Newbie
  • Posts: 3
  • Country: pk
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1034 on: January 30, 2018, 09:20:37 am »

I recently bought a Hantek 6022BE scope. Its my first scope and I haven't used a digital scope before. But the strange thing with this scope is that when I increase the time based setting to anything above 2ms the scope starts to lag and only shows about 2 waveform updates per second, and at 2ms and below that like 500us etc it shows about 8 to 10 updates per second. Now while I have not used a digital scope myself I have seen several even low budget scopes like the dso138 perform better in that regards.

Is it normal for scopes to behave like this or Is there something wrong with my scope or drivers.

I checked this scope on two systems one running a windows 10 with a good graphic card, and on a laptop running windows 7. I also checked with the stock software and OpenHantek pr18 by RichardK.
 

Offline hussamaldean

  • Supporter
  • ****
  • Posts: 266
  • Country: iq
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1035 on: February 05, 2018, 07:08:47 am »
Hi all,
i have PC oscilloscope Hantek 6022BE but it has weird issue which is it reads the wrong voltage despite the input is up to 35V  :-- . However, when the input voltage is below 4.71V it works just fine but once the voltage is above 4.71V it clamp it to 4.71V
for example a 10V DC from my power supply and it is reading 10V on PSU and multimeter :-DMM but the oscilloscope shows only 4.71V :-BROKE


any solution or the input protect has some issue ? :palm: :palm:
 

Offline FankyZ

  • Newbie
  • Posts: 1
  • Country: cz
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1036 on: February 05, 2018, 11:02:14 pm »
Hi,

has anyone tried 6022BE with LabVIEW? I can use it with the Hantek provided software no problem, but NI MAX doesn't seem to see the scope.
 

Offline softfoot

  • Contributor
  • Posts: 44
  • Country: gb
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1037 on: February 08, 2018, 06:28:27 am »
Has anyone got this to build with a FREE tool-chain ??

I'd like to make some changes buy buying a license for RadStudio is a bit beyond me.

Regards
Dave
Grumpy Old Software/Hardware Engineering Git
Dave
 

Offline daybyter

  • Frequent Contributor
  • **
  • Posts: 397
  • Country: de
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1038 on: February 14, 2018, 08:17:02 pm »
You could build OpenHantek with a free toolchain? Maybe you can use this for your purposes?

 

Offline thielj

  • Newbie
  • Posts: 8
  • Country: gb
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1039 on: February 17, 2018, 01:26:24 am »
Can anyone provide a recent Windows binary, please?
 

Offline softfoot

  • Contributor
  • Posts: 44
  • Country: gb
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1040 on: February 17, 2018, 02:21:27 am »
I'd find that useful too :-)
Dave
Grumpy Old Software/Hardware Engineering Git
Dave
 

Offline daybyter

  • Frequent Contributor
  • **
  • Posts: 397
  • Country: de
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1041 on: February 17, 2018, 04:42:03 am »
A recent win binary of...?
 

Offline softfoot

  • Contributor
  • Posts: 44
  • Country: gb
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1042 on: February 17, 2018, 09:01:25 am »

OpenHantek ... 32 bit and 64 bit would be nice.
Dave.
Grumpy Old Software/Hardware Engineering Git
Dave
 

Offline thielj

  • Newbie
  • Posts: 8
  • Country: gb
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1043 on: February 17, 2018, 09:32:42 pm »
Sorry, a recent Windows binary of OpenHantek, of course.
The release [1] on their github site is missing the binary. 32- or 64-bit, shouldn't make any difference.

Cheers!

[1] https://github.com/OpenHantek/openhantek/releases
 

Offline thielj

  • Newbie
  • Posts: 8
  • Country: gb
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1044 on: February 20, 2018, 10:08:02 pm »
Here is as far as I got

(0) Windows 10 Pro x64, insider build 17101.r4_release

(1) Forked the project and created a Windows 64 and 32-bit binaries: Download and unzip to your local harddrive. It should contain all necessary support files.

(2) Installed WinUSB driver using Zadig: Download the latest build, plug in your scope, run Zadig and pick the HantekDSO6022BE (or Unknown Device, USB ID 04B5 6022), select the WinUSB driver and click install. Re-plug your scope.

(3) Start openhantek.exe. It seems to communicate with the scope:

Code: [Select]
stop CPU
... WROTE: 792 bytes, 10 segments, avg 79
reset CPU
2nd stage: write external memory
stop CPU
2nd stage: write on-chip memory
... WROTE: 5092 bytes, 68 segments, avg 74
reset CPU
libpng warning: iCCP: known incorrect sRGB profile

(4) When I OK to connect, the openhantek app closes.

 |O

Can anyone help?

« Last Edit: February 22, 2018, 01:10:58 am by thielj »
 

Offline daybyter

  • Frequent Contributor
  • **
  • Posts: 397
  • Country: de
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1045 on: February 22, 2018, 06:00:01 pm »
Since I use 99% linux, I'm no win expert by any means, but did you start the app from the commandline, so you can see any error messages?
 

Offline thielj

  • Newbie
  • Posts: 8
  • Country: gb
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1046 on: February 22, 2018, 11:47:33 pm »
The output in my post above was from the console - and there was nothing on the debug output. The app isn't even crashing, just terminating.
 

Offline Kulturnilpferd

  • Newbie
  • Posts: 2
  • Country: de
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1047 on: March 06, 2018, 08:52:13 pm »
Hey there,
have a 6022BE, too and want to measure some things with opamps. So I need negative voltages. If I want to measure a created 0V source I could maybe get in trouble if the Ground is connected over my USB on my Computer. To get rid of this problem I want to cut off the ground wire in the usb cable. I know if I measure above the 6022BE specs some current can get over the data lines but is the ground problem solved by this solution? Want to do a student project and doesn't have 200 bucks to spend on an hi-speed isolator  :-[
If this doesn't seem to work I had an eye on this USB3.0 fiber optic adapter but not shure how to cut the power lines in the cable or open the case without broke things  :-//


Since I use 99% linux, I'm no win expert by any means, but did you start the app from the commandline, so you can see any error messages?

I have the same problem with OpenHantek on Windows and dumped two days to get it run. Its definetly a driver issue because sometime it crashed when it want to init and load the firmware on the device. Beside that their driver doesn't install right get every time an error even if i disable signed drivers. Was very angry about the bad instructions on their page for mac and windows installation. Told them on github to release a compiled dist for windows and mac but they delete the post from the github repo. Nice people there... ^^
To get rid of this shitty fuck just use the only system where it seems to run: Linux.
I have installed Ubuntu 16.04 but upgraded to 17.10 and it work's on both versions great without any issues. Just follow the instructions for Linux and it will work :)
If you don't like the design you can make it look like Windows 10: install "cinnamon" as desktop and install the "Windows 10 light" theme from b00merang.weebly.com
« Last Edit: March 06, 2018, 09:07:22 pm by Kulturnilpferd »
 

Offline thielj

  • Newbie
  • Posts: 8
  • Country: gb
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1048 on: March 11, 2018, 07:50:48 am »
Kulturnilpferd: Your post is still on Github. The maintainer closed your issue. Maybe try to be less of a 'shitty fuck' next time.
 

Offline Kulturnilpferd

  • Newbie
  • Posts: 2
  • Country: de
Re: Hantek 6022BE 20MHz USB DSO
« Reply #1049 on: March 18, 2018, 04:57:13 pm »
Yeah, sorry I was a bit angry about myself that I couldn't get it to run on Windows  |O
I don't like that compiling thing, there is so much that can go wrong even on linux...
If you don't have much linux skills its very difficult, trust me ^^
« Last Edit: March 18, 2018, 05:06:47 pm by Kulturnilpferd »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf