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

0 Members and 3 Guests are viewing this topic.

Offline RichardK

  • Regular Contributor
  • *
  • Posts: 157
Re: Hantek 6022BE 20MHz USB DSO
« Reply #125 on: January 02, 2014, 09:16:03 pm »
Richard, do you have executable/binary you can share?  I don't have a C++ compiler newer than Microsoft VC5.

Thanks

I'll be releasing binaries & source in conjunction with each other, and I'll make a source forge project for it when it's reached a usable stage.

It's lacking some key functionality right at the moment, like Triggering, which is at a bare minimum, auto trigger, I have not implemented start and stop acquire, xy mode.

Also, other areas like toolbar glyphs, buttons, main menu items and some display elements are incomplete, and utility features like importing and exporting, saving and restoring GUI settings at shutdown and startup of program, reference waveform channel... All are non functional or incomplete.

I'll compile a release build in a little bit and upload it here if you want to give it a whirl.
 

Offline RichardK

  • Regular Contributor
  • *
  • Posts: 157
Re: Hantek 6022BE 20MHz USB DSO
« Reply #126 on: January 02, 2014, 10:57:28 pm »
Alright, here is the latest binary for those who want to tinker with it... http://jmp.sh/b/wOS6BUC9tp3Cels8JWf3

Note: This is an unfinished pre-release build!

Limitations:
-----------------------------------------------------------
1. Trigger only works in Auto.
2. Horizontal mode limited to YT only.
3. Cannot Stop & Start Waveform (Acquire controls non-functional)
4. No Importing & Exporting waveforms or waveform images (not implemented).
5. Reference channel non functional (due to no importing)
6. Toolbar Buttons & Features incomplete.
7. Some Main Menu items incomplete or non functional.
8. GUI Control settings not saved on application close or restored on startup.
« Last Edit: January 03, 2014, 02:24:36 am by RichardK »
 

Offline Rick Law

  • Super Contributor
  • ***
  • Posts: 3423
  • Country: us
Re: Hantek 6022BE 20MHz USB DSO
« Reply #127 on: January 03, 2014, 04:12:07 am »
Alright, here is the latest binary for those who want to tinker with it... http://jmp.sh/b/wOS6BUC9tp3Cels8JWf3

Note: This is an unfinished pre-release build!
....

Thanks, Richard K.  Just grabbed the zip and as soon as I can, I will give it a go.
 

Offline Merlyn

  • Contributor
  • Posts: 35
Re: Hantek 6022BE 20MHz USB DSO
« Reply #128 on: January 03, 2014, 02:10:03 pm »
Hi,

Very informative thread and thanks to all who contributed!

I was looking for a simple (non soundcard) based scope and from link to link I got here.
I need a scope for measurements in the audio range 10Hz - 20kHz (occasionally 100Khz for SMPS) which as I understand this particular scope is fully capable of. I'm a tube amp hobbyst (but scope newbie) and I need a scope capable of measuring at least 50V AC and 500V DC. I'm OK of modding the unit so my question are:
1/ What mods would you suggest for enabling this scope to measure such voltages
2/ I didn't get if I can measure spectrum with this one
3/ How to isolate it from ground

Thanks in advance.


« Last Edit: January 03, 2014, 02:16:43 pm by Merlyn »
 

Offline RichardK

  • Regular Contributor
  • *
  • Posts: 157
Re: Hantek 6022BE 20MHz USB DSO
« Reply #129 on: January 03, 2014, 03:54:33 pm »
1/ What mods would you suggest for enabling this scope to measure such voltages

Well, using a 1x probe you are safe up to 50V, using the 10x switch on the probes that come with the 6022BE you are safe up to 500V, and with a 100x probe up to 1000V etc...

2/ I didn't get if I can measure spectrum with this one

Possibly with FFT.

3/ How to isolate it from ground

1. Use a laptop on battery (Not connected to AC adapter)
2. Use a laptop and AC adapter with isolated ground (Ground lead not connected to secondary ground)
3. Use a USB isolator (it has opto isolators for data and an isolated DC-DC for power)
4. Use a mains isolation transformer to power computer/laptop.
 

Offline Merlyn

  • Contributor
  • Posts: 35
Re: Hantek 6022BE 20MHz USB DSO
« Reply #130 on: January 03, 2014, 04:54:22 pm »
Thanks for your help.

I'll be using it on a desktop so I guess an USB isolator will do the job.
 

Offline Jon86

  • Frequent Contributor
  • **
  • Posts: 526
  • Country: gb
Re: Hantek 6022BE 20MHz USB DSO
« Reply #131 on: January 03, 2014, 05:02:19 pm »
Just a quick question on this scope,
In x1, any signals over 5v and under -5v get clipped, is that normal?

Also, that software looks great Richard, thanks  :-+
Death, taxes and diode losses.
 

Offline RichardK

  • Regular Contributor
  • *
  • Posts: 157
Re: Hantek 6022BE 20MHz USB DSO
« Reply #132 on: January 03, 2014, 05:11:41 pm »
Just a quick question on this scope,
In x1, any signals over 5v and under -5v get clipped, is that normal?

Not quite, the front end has the signal coming in through a capacitor and a 909k resistor then from there another 100k resistor and capacitor to ground (see attachment).

In this configuration, the clamping diodes D3/D2 will only see 10 percent of the input signal, so if in 1x mode it won't start clamping to +5 and -5 until the input signal goes over +- 50V.



 

Offline Jon86

  • Frequent Contributor
  • **
  • Posts: 526
  • Country: gb
Re: Hantek 6022BE 20MHz USB DSO
« Reply #133 on: January 03, 2014, 06:07:05 pm »
That's what I thought...
Is it likely that I've got a faulty unit then? Anything over 5v just becomes a perfect straight line at 5v, so maybe there's something wrong with it?
Death, taxes and diode losses.
 

Offline RichardK

  • Regular Contributor
  • *
  • Posts: 157
Re: Hantek 6022BE 20MHz USB DSO
« Reply #134 on: January 03, 2014, 06:10:48 pm »
That's what I thought...
Is it likely that I've got a faulty unit then? Anything over 5v just becomes a perfect straight line at 5v, so maybe there's something wrong with it?

Possibly, you should definitely open it up and see if you possibly have a different revision?

Edit: Actually it might be software, if you are on 5V per division (the highest it goes in software in 1x mode) then the software will clip the signal.
« Last Edit: January 03, 2014, 06:21:28 pm by RichardK »
 

Offline Jon86

  • Frequent Contributor
  • **
  • Posts: 526
  • Country: gb
Re: Hantek 6022BE 20MHz USB DSO
« Reply #135 on: January 03, 2014, 06:29:52 pm »
That's probably what it is then... Why is it clipping the signal?
Death, taxes and diode losses.
 

Offline RichardK

  • Regular Contributor
  • *
  • Posts: 157
Re: Hantek 6022BE 20MHz USB DSO
« Reply #136 on: January 03, 2014, 06:38:02 pm »
That's probably what it is then... Why is it clipping the signal?

It's the dsoReadHardData function from the HTMarch.DLL, two of the arguments passed to it are the Voltage Per Division for both channels...

Code: [Select]
HTMARCH_API short WINAPI dsoReadHardData(WORD DeviceIndex, short* pCH1Data,
short* pCH2Data, ULONG nReadLen, short* pCalLevel, int nCH1VoltDIV, int nCH2VoltDIV,
short nTrigSweep, short nTrigSrc, short nTrigLevel, short nSlope, int nTimeDIV,
short nHTrigPos, ULONG nDisLen, ULONG* nTrigPoint, short nInsertMode);

As you can see, they are both Integers and they are not voltages, but selection box indexes, I.E.

Code: [Select]
//Voltage Division
enum THantekVoltDivision
{
 HTVoltDiv20mv=0,
 HTVoltDiv50mv=1,
 HTVoltDiv100mv=2,
 HTVoltDiv200mv=3,
 HTVoltDiv500mv=4,
 HTVoltDiv1V=5,
 HTVoltDiv2V=6,
 HTVoltDiv5V=7,
}

That function needs to scale the data it gets to match the vertical divisions of the grid, and they don't accept anything other than those hard coded values, so it's scaling what it reads to -5V to +5V, even if it's higher.

Either the function has to be modified or an alternative written in order to hack in additional Voltages for 1x.

In the mean time, if you want to measure higher than 5V, put the probe in 1x 10x and set the software probe setting to 10x and then select a voltage higher, say 10V or 20V.

« Last Edit: January 03, 2014, 07:30:23 pm by RichardK »
 

Offline Jon86

  • Frequent Contributor
  • **
  • Posts: 526
  • Country: gb
Re: Hantek 6022BE 20MHz USB DSO
« Reply #137 on: January 03, 2014, 06:43:47 pm »
Understood, thanks for the help  :-+
Death, taxes and diode losses.
 

Offline RichardK

  • Regular Contributor
  • *
  • Posts: 157
Re: Hantek 6022BE 20MHz USB DSO
« Reply #138 on: January 03, 2014, 07:13:30 pm »
Actually, sorry you will still need your probe in 10x and software in 10x to measure higher than 5V.
 

Offline Jon86

  • Frequent Contributor
  • **
  • Posts: 526
  • Country: gb
Re: Hantek 6022BE 20MHz USB DSO
« Reply #139 on: January 03, 2014, 07:37:24 pm »
Seems a bit strange... Why is the max input voltage given as 35v then?  ???
Death, taxes and diode losses.
 

Offline RichardK

  • Regular Contributor
  • *
  • Posts: 157
Re: Hantek 6022BE 20MHz USB DSO
« Reply #140 on: January 03, 2014, 07:43:51 pm »
Seems a bit strange... Why is the max input voltage given as 35v then?  ???

That's the derated hardware limit, which is actually 50V.... The hardware is capable, but the software is limited.

As of now I am hacking in a 10V mode for 1x, with software 10x attenuation but it won't solve the clipping issues, anything above 5V will get clipped by Hantek's data acquisition function.
 

Offline Jon86

  • Frequent Contributor
  • **
  • Posts: 526
  • Country: gb
Re: Hantek 6022BE 20MHz USB DSO
« Reply #141 on: January 03, 2014, 08:03:22 pm »
Well that's bloody annoying, this scope is a bit of a letdown...
At least I know what it is now though, thank you :)
Death, taxes and diode losses.
 

Offline Rick Law

  • Super Contributor
  • ***
  • Posts: 3423
  • Country: us
Re: Hantek 6022BE 20MHz USB DSO
« Reply #142 on: January 03, 2014, 08:34:39 pm »
...
3/ How to isolate it from ground

1. Use a laptop on battery (Not connected to AC adapter)
2. Use a laptop and AC adapter with isolated ground (Ground lead not connected to secondary ground)
3. Use a USB isolator (it has opto isolators for data and an isolated DC-DC for power)
4. Use a mains isolation transformer to power computer/laptop.

Let me also add one that caught me off-guard.

When trying to isolate your laptop from ground, do not use a KVM or external monitor with your laptop.  KVM creates a common ground between all connected machines even if they are OFF and that could be your ground path even if your laptop is on battery.
 

Offline Rick Law

  • Super Contributor
  • ***
  • Posts: 3423
  • Country: us
Re: Hantek 6022BE 20MHz USB DSO
« Reply #143 on: January 03, 2014, 08:36:52 pm »
...
3/ How to isolate it from ground

1. Use a laptop on battery (Not connected to AC adapter)
2. Use a laptop and AC adapter with isolated ground (Ground lead not connected to secondary ground)
3. Use a USB isolator (it has opto isolators for data and an isolated DC-DC for power)
4. Use a mains isolation transformer to power computer/laptop.

Let me also add one that caught me off-guard.

When trying to isolate your laptop from ground, do not use a KVM, external monitor, or wired-network with your laptop.  KVM creates a common ground between all connected machines even if they are OFF and that could be your ground path even if your laptop is on battery.  Wired network to a hub or another machine also possibly creates ground path.
 

Offline Merlyn

  • Contributor
  • Posts: 35
Re: Hantek 6022BE 20MHz USB DSO
« Reply #144 on: January 04, 2014, 12:27:26 pm »
Quote
...do not use a KVM, external monitor, or wired-network with your laptop.

In my case it's just a desktop PC and nothing else.
How about cutting the USB power supply lines from PC to the unit and using a regulated bipolar power supply (wallwart adapter, ground isolated) to power it?
 

Offline Jon86

  • Frequent Contributor
  • **
  • Posts: 526
  • Country: gb
Re: Hantek 6022BE 20MHz USB DSO
« Reply #145 on: January 04, 2014, 12:46:01 pm »
Quote
...do not use a KVM, external monitor, or wired-network with your laptop.

In my case it's just a desktop PC and nothing else.
How about cutting the USB power supply lines from PC to the unit and using a regulated bipolar power supply (wallwart adapter, ground isolated) to power it?

You'd still need a common ground for the data, you could buy a USB isolator?
Death, taxes and diode losses.
 

Online FraserTopic starter

  • Super Contributor
  • ***
  • Posts: 13148
  • Country: gb
Re: Hantek 6022BE 20MHz USB DSO
« Reply #146 on: January 04, 2014, 01:31:34 pm »
480mbps USB2.0 Isolators can be very expensive  :(
If I have helped you please consider a donation : https://gofund.me/c86b0a2c
 

Offline Jon86

  • Frequent Contributor
  • **
  • Posts: 526
  • Country: gb
Re: Hantek 6022BE 20MHz USB DSO
« Reply #147 on: January 04, 2014, 01:34:42 pm »
480mbps USB2.0 Isolators can be very expensive  :(

Sadly I don't think there's another way around it, you might be able to build your own and bring the price down a bit?
Death, taxes and diode losses.
 


Online FraserTopic starter

  • Super Contributor
  • ***
  • Posts: 13148
  • Country: gb
Re: Hantek 6022BE 20MHz USB DSO
« Reply #149 on: January 04, 2014, 03:30:11 pm »
I believe those boards are all low and full speed USB isolators. For USB2.0 High Speed (480mbps) you would need something better. That is why I commented on price. IMHO a 480mbps USB isolator would likely cost more than the 6022BE and you would be better off looking for a different DSO.

Update...

This may be of interest.... a possible High Speed USB isolator ?

http://www.elektor-labs.com/project/high-speed-usb-20-isolator.12435.html

Also this is interesting:

http://www.bb-elec.com/Learning-Center/All-White-Papers/USB/USB-Isolation/USB-Isolation.pdf
« Last Edit: January 04, 2014, 03:37:22 pm by Aurora »
If I have helped you please consider a donation : https://gofund.me/c86b0a2c
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf