Author Topic: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!  (Read 246860 times)

0 Members and 5 Guests are viewing this topic.

Offline fremen67Topic starter

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: fr
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #225 on: July 05, 2014, 12:09:10 am »
@fremen67/FrankenPC:

How do I get the HDG connected to TTsource? I tried following your instructions above, and while I can load the wave data into TTsource, I can't seem to connect to the funct gen or remotely control the generator. Is there additional software that needs to be installed aside from TTsource?

I had the same problem.  I switched USB ports and the problem went away.  The USB driver is garbage.  It leaks like a sieve.  At least the Windows 7 64bit one does.  The driver actually blue screened my laptop once.
I also had a blue screen, on a USB3.0 port. I have to use a usb 2.0 port...
If you are able to load data from the HDG (Initial -> real time -> read operation) then it should work. You won't see anything on the HDG itself as the leds and the display are not updated but you will hear the relays when switching a channel on or off.
I'm a machine! And I can know much more! I can experience so much more. But I'm trapped in this absurd body!
 

Offline FrankenPC

  • Supporter
  • ****
  • Posts: 335
  • Country: us
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #226 on: July 05, 2014, 01:06:56 am »
@fremen67/FrankenPC:

How do I get the HDG connected to TTsource? I tried following your instructions above, and while I can load the wave data into TTsource, I can't seem to connect to the funct gen or remotely control the generator. Is there additional software that needs to be installed aside from TTsource?

I had the same problem.  I switched USB ports and the problem went away.  The USB driver is garbage.  It leaks like a sieve.  At least the Windows 7 64bit one does.  The driver actually blue screened my laptop once.
I also had a blue screen, on a USB3.0 port. I have to use a usb 2.0 port...
If you are able to load data from the HDG (Initial -> real time -> read operation) then it should work. You won't see anything on the HDG itself as the leds and the display are not updated but you will hear the relays when switching a channel on or off.

Mine blue screened on my USB 2.0 port.
Chinglish poetry: In the hot summer. In the car ran full steam. It tastes strange. For this worry? With this fan will bring you a cool summer. Suitable for all kinds of cars. Agricultural vehicles. Van. Tricycle.
 

Offline rdg

  • Contributor
  • Posts: 10
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #227 on: July 05, 2014, 03:53:36 am »
@fremen67
I PM you the link. My backup has my serial in it and I am too lazy to do it again   ;)

I have had a go at updating to your version of the firmware with nandwrite, turns out it segfaulted and looks like I have a bricked HDG for now. Will have to look at rewriting it with JTAG, if you could let me know your setup and procedure for doing that it would be great.

Also, I have made a full teardown of the device and compared the boards. It looks like I probably have the same board (1.00.2, 2013-06), though I am missing one bodge they have made -- the extra components near the count trig BNC. Presumably they did this for some reason but I can't make out the details from the hires pictures.

I have included pictures of all the hand-made mods below. On my unit they have crudely hacked out a piece of the chassis near the counter BNC, presumably so that it is possible to get to the mounting standoff. On both of our units it looks like the HF counter BNC was populated at one point and removed by hand.
 
 

Offline fremen67Topic starter

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: fr
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #228 on: July 05, 2014, 10:44:15 pm »
Will have to look at rewriting it with JTAG, if you could let me know your setup and procedure for doing that it would be great.
If you want to restore the whole Nand via JTAG, H-JTAG/H-Flasher is the way to go. It will work with a low cost LPT Wrigler type JTAG interface. In the last version, V3.0, there is already a template for S3C2416+K9F1G08 Nand Flash ready to use.
http://www.hjtag.com/en/xz.asp
Either you concatenate you 4 nanddump files in one (Boot+logo+kernel+rootfs) and restore the whole flash, either you flash it in 4 times. Usually you don't need to flash the bootloader (safer because you will always have access to u-boot in case of flash problem), nor the logo (empty).
The Nand flash in the HDG is a 128Mb one. It is divided in 1024 blocks of 64 pages, each page containing 2048 bytes.
If you want to flash a specific part of the Nand, you will have to tell H-Flasher which block and page number to start with. Here are the values in Hex and the corresponding values in Block/page:
                        Beginning      End          Beginning   End
Bootloader         0                 100000     0/0            7/63
Logo                 100000        300000      8/0            23/63
Kernel               300000        700000      24/0          55/63
Rootfs               700000       8000000     56/0          1023/63

You also have the choice to flash only data or data with spare blocks (spare/oob), which you will choose.
It takes 3 1/2 hours with the LPT interface to flash the whole nand with oob (132Mb). Quite long but it works ...

Usually you just need to flash the bootloader via Jtag (if you can't see u-boot when starting) and then you can use u-boot to flash the nand via SD, USB or tftp (if lan is available). With my dev board, I have a tool to prepare a SD so that it can update the nand via u-boot but I had to mod a bootloader for that because of file size problem (limited to 64Mb). I did not test that with the HDG yet...(on my todo list  :))

If you need more details on how to, just ask me.
« Last Edit: July 05, 2014, 11:36:48 pm by fremen67 »
I'm a machine! And I can know much more! I can experience so much more. But I'm trapped in this absurd body!
 

Offline fremen67Topic starter

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: fr
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #229 on: July 08, 2014, 06:57:52 pm »
I think you may have been running into a limitation of your scope for at least the sine wave past 30MHz or so.
Possible but I hope not  :(
I have a MSO5062B hacked to 200Mhz and made Tinhead's frontend hack on channel 1... and the results are the same on both channels.
@Tinhead: what do you think?

something is wrong on your pictures, and it is probably MSO. It is always good idea to hack/change both channels, with only one you running into calibration trap.
I received today a replacement board for my MSO and have exactly the same results. The amp of a 2V sine decrease above 30Mhz to 340 mV à 100MHz.
So it has to come from the HDG.
With my stock MSO board:
30 000 000.000 000 Mhz -> 1.98 V
30 000 000.000 001 Mhz -> 1.62 V !!!

Software "issue" of v1.00.1?

I'm a machine! And I can know much more! I can experience so much more. But I'm trapped in this absurd body!
 

Offline rosasharn

  • Regular Contributor
  • *
  • Posts: 114
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #230 on: July 09, 2014, 07:33:43 am »
If it has jitter problem with the input of 10MHz external reference input (BNC) of HDG2000B series?
 

Offline fremen67Topic starter

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: fr
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #231 on: July 09, 2014, 10:06:11 pm »
For those wanting to make a backup of your HDG, or having the last firmware (1.00.2) and wanting to share it, you will find attach a tools which ease the nand dump. So you will have no excuses now.  ;)

- Copy nandbackup.tar on a USB stick and plug it into you HDG
- Connect to you HDG via the serial console
- Go to /mnt/udisk directory (cd /mnt/udisk)
- Extract the attached tar file (tar -xvf nandbackup.tar)
- Launch the script (./nandbackup)
- After 15 min you will have your full nand backup compressed into the dump.tar.gz file
- Keep it in a save place (and share it?)

Enjoy!


I'm a machine! And I can know much more! I can experience so much more. But I'm trapped in this absurd body!
 

Offline rosasharn

  • Regular Contributor
  • *
  • Posts: 114
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #232 on: July 10, 2014, 07:06:04 am »
Many thank! You're really helpful, fremen67.  :-+
 

Offline rosasharn

  • Regular Contributor
  • *
  • Posts: 114
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #233 on: July 16, 2014, 01:20:54 am »
Is this HDG has frequency counter?
 

Offline idpromnut

  • Supporter
  • ****
  • Posts: 615
  • Country: ca
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #234 on: July 16, 2014, 01:29:35 am »
Is this HDG has frequency counter?

Two actually :)  A LF one and a HL one, but you need to populate the HF BNC connector.
 

Offline rosasharn

  • Regular Contributor
  • *
  • Posts: 114
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #235 on: July 17, 2014, 06:07:49 am »
Thanks idpromnut.
Could you tell me how to populate the HF BNC connector?
 

Offline idpromnut

  • Supporter
  • ****
  • Posts: 615
  • Country: ca
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #236 on: July 17, 2014, 12:45:32 pm »
I can post a couple of pictures of my board (I don't think I had the presence of mind t take photos when I had the damn thing open  :palm: ). I will look into it tonight. But it should be very very obvious where the BNC connector needs to go (it is the only unpopulated BNC footprint on the board with all the other BNCs on the front of the AWG). I think I linked in the fleabay auction that I bought my BNC from (but beware, the pins on the BNC that I bought were too think to fit the footprint on the board, so I had to file them down).

EDIT: Yup, check out my post here regarding the BNC connector auction:  https://www.eevblog.com/forum/testgear/hantek-hdg2002b-awg-5mhz-or-100mhz-let's-see!/msg465113/#msg465113
« Last Edit: July 17, 2014, 12:48:54 pm by idpromnut »
 

Offline idpromnut

  • Supporter
  • ****
  • Posts: 615
  • Country: ca
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #237 on: July 18, 2014, 04:09:01 am »
As promised, here are a few pictures showing the HF counter BNC plus the cut out in the front panel. Note the orientation of the BNC bayonet stubs (they are horizontal versus vertical for the rest).
 

Offline rosasharn

  • Regular Contributor
  • *
  • Posts: 114
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #238 on: July 18, 2014, 08:35:26 am »
Many thanks for the photos, everything is clear now.  ;D
 

Offline tridentsx

  • Regular Contributor
  • *
  • Posts: 101
  • Country: us
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #239 on: August 10, 2014, 10:48:42 am »
http://www.mouser.com/ds/2/132/VBM511-1502-194394.pdf

I just ordered one of these and the Hantek AWG, hope it will fit the HF with same orientation of the bayonet coupling.
 

Offline idpromnut

  • Supporter
  • ****
  • Posts: 615
  • Country: ca
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #240 on: August 10, 2014, 11:06:19 am »
I am not sure but i think the connector you ordered is too low to the pcb and will have trouble fitting through the front panel hole.
 

Offline rosasharn

  • Regular Contributor
  • *
  • Posts: 114
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #241 on: August 12, 2014, 08:03:07 am »
If not sure to add a HF connector on HDG2000B AWG, HDG2000C would be a better choice because it has the HF connector.  :P
 

Offline rosasharn

  • Regular Contributor
  • *
  • Posts: 114
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #242 on: August 21, 2014, 05:43:49 am »
Hello fremen67!
Do you know how to extend the frequency range of HDG2002B frequency counter?
 

Offline toli

  • Frequent Contributor
  • **
  • Posts: 313
  • Country: il
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #243 on: August 21, 2014, 09:10:27 am »
Hi Guys,

I must admit I ran across this discussion at exactly the right time. I've had my mind set (almost) on the SDG1020 (costs about 300$ shipped), and then I see I can get something with higher BW (after hack), and more importantly with much more memory (which is the main reason I didn't pull the trigger on the SDG1020 yet) for about the same price. However, after reading the entire discussion I can't find an answer to a few questions I have:
1 - I understand there's an issue with the arb "trying to have around 6000 samples [...] and choice of divider isn't always best one". What would that mean? Does this mean you can't have an arb waveform of over 6000 samples? If so what is the point of having 64Mpts of memory? Is there an easy way of uploading the arb data to the generator (as I understand it wont work with SD/USB stick) :)
2 - Are these digital channels any good? Did someone even get them working and can comment on this?
3 - Anyone has a clue if there's going to be a fix to these issues they have in the software? ATM it looks just too buggy, and I didn't see there's any update from Hantek about fixing this. I'm very much worried about things like changing the DC offset causing the amplitude to jump significantly, this is an easy way to damage a circuit under test.

The screen size and the memory depth look way better than SDG1020, but bugs in the software is a PITA too :)
« Last Edit: August 21, 2014, 09:12:30 am by toli »
My DIY blog (mostly electronics/stereo related):
http://tolisdiy.com/
 

Offline jashugan

  • Contributor
  • Posts: 48
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #244 on: September 11, 2014, 08:48:13 am »
Hello,
I've just oredered the HDG2002B, but I can't use the HDG TTSource program: I can't connect to my PC using the TTSource software, because I can't switch in the Initial menu from the Demo option to Read data or Write data. Can you help me why I can't connect to the software?
 

Offline idpromnut

  • Supporter
  • ****
  • Posts: 615
  • Country: ca
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #245 on: September 11, 2014, 12:07:25 pm »
Do you know how to extend the frequency range of HDG2002B frequency counter?

All the necessary stuff for the HF counter is on the board already, minus the BNC. There is only a single non-fitted BNC footprint on the board, and that's where the HF counter BNC needs to go. Once you solder that in, and switch the model to the HDG2102C, you will see and be able to use the HF counter option. Technically you can see the option if you switch the model (via fremen67's original hack), but you need the BNC connector to actually use it.
 

Offline rosasharn

  • Regular Contributor
  • *
  • Posts: 114
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #246 on: September 13, 2014, 08:52:14 am »
Hello,
I've just oredered the HDG2002B, but I can't use the HDG TTSource program: I can't connect to my PC using the TTSource software, because I can't switch in the Initial menu from the Demo option to Read data or Write data. Can you help me why I can't connect to the software?

Hello,
Please open the Device Manager on PC and check whether the driver has been installed successfully first.  ^-^
 

Offline ulrik

  • Newbie
  • Posts: 5
  • Country: at
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #247 on: September 13, 2014, 09:08:02 pm »
I couldn' t find informations about the dataformat of the arbitray waveforms function. Is it possible with HDG2000B series to import arbitrary waveforms from other devices? What kind of dataformat is accepted? - is it a Hantek proprietary dataformat? Would it be possible to record some data with a Rigol oscilloscope, store it on USB stick; convert it on a PC to Hantek dataformat and import with HDG2002B?
---
all circuits lead to ROM
 

Offline rosasharn

  • Regular Contributor
  • *
  • Posts: 114
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #248 on: September 15, 2014, 05:09:50 am »
Arbitray waveforms file format is .arb, and it can be opened by .txt.
 

Offline Stevie1966

  • Newbie
  • !
  • Posts: 8
Re: Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see!
« Reply #249 on: September 15, 2014, 08:04:40 am »
could the HDG2002 generate sine wave about 25 MHz? O0
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf