Hantek HDG2002B AWG: 5Mhz or 100MHz? Let's see! - Page 1
Forum section: electronics / testgear

author: fremen67
author_rank: Frequent Contributor
timestamp: May 04, 2014, 01:20:00 am
content: Let's starts a new thread about the Hantek HDG2000B series and more precisely the HDG2002B.PresentationThe HDG2000 series is the new AWG series of Hantek composed of 7 models having the same waveform possibilities, but limited on maximum frequency depending on the model. It starts with the HDG2002B model limited to 5Mhz for every signal type and ends with the HDG2102C going up to 100Mhz for sinus waveforms and including a high speed frequency/counter input.You will find all the details here:http://www.hantek.com/en/ProductDetail_149.htmlIf like me you are an assiduous reader of Tinhead’s thread “Hantek - Tekway - DSO hack - get 200MHz bw for free”, you will find a lot of similarities between the HDG and the Hantek MSD/DSO series.In fact they share the same hardware platform. Would this mean that they have the same hacking possibilities? Well, you will have the answer after having read the next 154 pages of this new thread. Sorry, private joke(remind you of something??). Let make it short: as Tinhead already guessed, yes!I received mine last week and could not prevent myself from opening it... well in fact I bought it for thatWhat's inside?The inside looks like “Déjà vu” : half of the board is very similar to my MSO5062B: same layout with S3C2416, same lan upgrade possibility based on the DM9000AEP.On this model, the input for high frequency (2.7Ghz)/counter is not installed but almost all components are already soldered near the jack except one IC. (1/100 frequency divider? With the built-in low frequency counter , I was able to measure the oscillations of a 25Mhz Crystal).The user manual I received is in Chinese but luckily there is an onboard help which is in English. And anyway Google translate is always a good friend when dealing with Chinese documentation.Want to play?Just connect your USB to TTL interface to the board (the one you used for your Hantek MSO/DSO hack, and yes on the same pins), start your console (Kitty or whatever you like) and power up! Go to /etc if you have software 1.00.1 or /dso/root if you have software 1.00.2, edit system.inf and replace HDG2002B with HDG2102C, save, reboot (if you don't manually reboot after the system.inf modification, you will lose the modification after the next Power OFF/ Power ON)… and that’s it.Instead of 5Mhz, the new limits are now100MHZ for Sine40Mhz for Square100Mhz for Ramp (4Mhz on website?)30Mhz for PulseYou will also be able to select high frequency channel in the menu which you don’t have in the “B” version (provided with the “C” version).The software version of the one I got is 1.00.1(140402.0), the PCB version is 1002 and Linux is 3.2.35.The last software version I am aware of is 1.00.2(140926.0) with PCB version 1004.The GUI has more fun than the one on the MSO (shadow effects) but is still young and I already had some freezes and blue screens with white messages of apologizes on it before reboot (windows! get out of this body!)Thank you Tinhead for pointing me this new device. You are doing a great job on the Hantek DSO/MSO 5000!LAN upgradeNearly identiqual to the DSO/MSO 5000 upgrade.https://www.eevblog.com/forum/testgear/hantek-hdg2002b-awg-5mhz-or-100mhz-let's-see!/msg438153/#msg438153WARNING!!!Manual CalibrationYou can increase the voltage accuracy of both channels (about 1mv precision in DC Arb function) by calibrating the HDG butdon't do it without backing up before the htg.cal filein /etc and when following the calibration procedure, stop, save and exit the procedureafter entering the 12th value. The calibration procedure would need some update ... so be careful.If something goes wrong, just copy back your old htg.cal file.Starting setupYou can choose in the setup to start after power on with the last settings or the default settings. If you choose to start with the last settings, you will have a wonderful black screen on next power on. Should it happen, don't panic!a:Call your motherb:Call your wifec:Push the "Default" key. This will put the HDG in a default state (but this won't be saved) so that you can change this buggy option back to default in the settings.

author: tautech
author_rank: Super Contributor
timestamp: May 04, 2014, 01:40:44 am
content: WOW

author: Electro Fan
author_rank: Super Contributor
timestamp: May 04, 2014, 02:02:03 am
content: Fremen67,Have you tried the PC software to make any arbitrary waveforms? (If so, is it user friendly?)What is the purpose of the multi-pin connector toward the middle bottom of the front panel?Thanks, EF

author: miguelvp
author_rank: Super Contributor
timestamp: May 04, 2014, 03:00:51 am
content: Nice, now I guess I'll have to spend $300+ to get one

author: simonmc
author_rank: Contributor
timestamp: May 04, 2014, 06:37:26 am
content: Quote from: miguelvp on May 04, 2014, 03:00:51 amThats exactly what i was thinking. Thats why the new shelf for my DS05102B just over twice as long as it needs to be,,,

author: Dago
author_rank: Frequent Contributor
timestamp: May 04, 2014, 06:48:38 am
content: Interesting! But I guess the real question is is the HDG2002B nice to use? The specs look fine but from what I've heard about Hantek scopes then...

author: miguelvp
author_rank: Super Contributor
timestamp: May 04, 2014, 07:13:41 am
content: Quote from: Dago on May 04, 2014, 06:48:38 amPC scopes or actual scopes?I haven't heard anything good or bad with actual scopes, but pending on what the ABR frequency is seeing that ABR is the same as the Ramp frequency on the unaltered Function Gen and the Ramp is at 100MHz.Even if ABR was 30MHz as the HDG2102B states, for $300+ with AM,FM,PM,ASK,FSK,PSK and PWM modulation and 16Bit voltage resolution and digital output and 20 Vpp at 20MHz to 2 Vpp at 100MHz! it's a steal!Well I don't know if I can convince SWMBO for another bit of test gear. But she just sent a Lincoln time period dinning table from her great great great great grand mother (maybe one to many greats there but 150 year old table) to be restored and that is going to cost an order of magnitude more than this, so I might be able to get it

author: tinhead
author_rank: Super Contributor
timestamp: May 04, 2014, 09:50:16 am
content: cool .. i love these pictures- Ethernet as on DSO/MSO, add DM9000AEP, e.g. H1102NL magnetics, RJHSE-5381 RJ45 jack and 25Mhz crystal to go.- one can use as well the UART over optocoupler, on the bottom side there are two near the RJ45 jack (unused pins are then UART).- there seems to be the Audio DC and amp not populated as well, it looks like they copied that whole right part of the PCB out ofthe DSO/MSO (not populated 1kHz test signal out still there, hehe)- the Frequency Counter, you right, that will be something like LMX5080 or MB510.- the clock source looks nice already, good to see that it can be easy repalced by ovenized clock.- did you recognize that (optical?) isolation option? There is small PCB UI4 or so, soldered instead of proper isolator module.- there is not populated IC on bottom side, near FPGA. I see as well 4 resistors there, i bet this is for FPGA config memory.So it looks that they loading the FPGA design during boot out of Linux root, that's good from bug fixing point of view.one general thing - every time i see solder residue or manually soldered parts, i can be (almost) sure that Hantek didit for reason. Sure, sometimes this are latest changes or test things, but very often things that are model specific.Like the Ethernet or isolation, or prescaler. Now look into the output part of the PCB, there are filters inside before opamps.It is hard to tell if L20 to L24 has been solderen later or not, so big chance that the soft hack is all you need. In worst caseone will have to replace them, oh well, not a big deal. There are for sure two resistors soldered by hand inside the output part,one near Tp37 and one near Tp36, probably during test or so.Questions:- can you tell me what DAC they used?- can you make dump of the Linux? (nanddump is for sure already available in busybox, so simply dump each mtd,with OOB blocks will be the best). But don't post link here unless you wish to share your serial with all

author: fremen67
author_rank: Frequent Contributor
timestamp: May 04, 2014, 11:00:33 am
content: Quote from: tinhead on May 04, 2014, 09:50:16 amYou are right, you just forgot 2x22pF caps

author: fremen67
author_rank: Frequent Contributor
timestamp: May 04, 2014, 01:25:33 pm
content: Quote from: tinhead on May 04, 2014, 09:50:16 amYes they are talking of an OCXO option on the web site.Quote from: tinhead on May 04, 2014, 09:50:16 amNo i did not. I will PM you a link to all the hires pictures i took but i could open it again later on.Quote from: tinhead on May 04, 2014, 09:50:16 amYes in rcS: /dso/cfg_fpga /lib/firmware/htg1000.bitI like the /dso location for a AFGQuote from: tinhead on May 04, 2014, 09:50:16 amMy first impression when looking at a 2V sine waveform from 1Mhz to 100Mhz is that there seems to be a LPF somewhere. The response is flat till 30Mhz and just after that it starts decreasing down to 400mV at 100Mhz.Quote from: tinhead on May 04, 2014, 09:50:16 amThe reference on U33 has been erased ...Quote from: tinhead on May 04, 2014, 09:50:16 amI will PM you a link to the backup I did before starting. In fact the embedded nandump doesn't work for root_fs. It doesn't stop at the end of root_fs mtd and stops when the USB disk is full... I think some guys also had this problem with DSO (anyway dd works well when you don't need oob blocks). So I used another version of nandump that worked, one you posted in a .up file for DSO backupYou will have the choice as I made 1 backup without OOB, 1 with OOB and 1 with OOB + bad blocks ... just in caseHave fun!

author: fremen67
author_rank: Frequent Contributor
timestamp: May 05, 2014, 12:36:54 am
content: Quote from: Electro Fan on May 04, 2014, 02:02:03 amHello EF,Yes I tried TTSource, the PC Software. It is very easy to build a waveform. You choose a frequency, draw with the mouse and download to the HDG. You PC acts as a remote control.You can also edit each point and specify a valueor you can also create a file (with Excel for exemple), save to an ASCII file with specific format (.hfw), import into TTSource and send to the HDG.The format is simple ( a 6 lines header + 1 line/dot) but the way of defining the number of dots and the time each dot has to be repeated to achieve a defined frequency is not that trivial without documents. I will explain what I understood in later post.Quote from: Electro Fan on May 04, 2014, 02:02:03 amIt's not a connector but a bridge to connect the left side of the board with the right side.

author: fremen67
author_rank: Frequent Contributor
timestamp: May 05, 2014, 12:52:36 am
content: Quote from: Dago on May 04, 2014, 06:48:38 amHi Dago,The HDG 2002B is very nice to use. I find the GUI very intuitive for almost all the functionalities. What I don't like:- There are to many freezes where the only option is to reboot (until you know what you should not do...)- There is a build-in functionality for editing waveforms but I had no success to make it work (until now), even with files created on the PC. I also tried the RTFM option but it didn't work. It is too buggy or i am not smart enough... or both. But it is so easy on the PC that it's OK for me.- When remote controlling the HDG from the PC, the screen and the buttons states are not updatedEven with that, with the other functionalities the HDG is amazing !

author: Vgkid
author_rank: Super Contributor
timestamp: May 05, 2014, 02:13:05 am
content: This could be an interesting unit, I wonder what the specs on the OCXO will be.

author: Electro Fan
author_rank: Super Contributor
timestamp: May 05, 2014, 03:07:28 am
content: Quote from: fremen67 on May 05, 2014, 12:36:54 amHi fremen67,Is there any way / anywhere to get a download of the TTSource software? Likewise, anywhere to get a download of the manual?On the connector, just to confirm, the slot I was asking about is to the right of the USB port an inch or two; next over on the front panel is a BNC connector that looks like it says count trig.Also, what is the limit in terms of number of arb points that can be created and saved?Thanks again, EF

author: fremen67
author_rank: Frequent Contributor
timestamp: May 05, 2014, 09:47:40 pm
content: Quote from: Electro Fan on May 05, 2014, 03:07:28 amYou will find attached the chinese manual and a google translation of it in English.I will try to post TTSource in other messages (I will split it with 7zip).Quote from: Electro Fan on May 05, 2014, 03:07:28 amSorry I got you wrong and was looking on the PCB. The 26 pins front connector is for digital outputs. I didn't used it at the moment.Quote from: Electro Fan on May 05, 2014, 03:07:28 amTTSource allows you to work with maximum 67 108 864 points. You can save it (quiet long) but TTSource can't load it later on (1Gbyte file size).When you enter your frequency, TTsource propose a number of samples and a sample rate divider. It tries to work with a number of samples around 6000 and adjust the divider to match the frequency. The divider goes from 0 (no divider) up to 249. The divider you enter will divide the sample rate by 4 times this number (the standard sample rate beeing 250Msamples/s). In fact the easiest way is just to enter your frequency, let the software calculates the number of samples and divider you need, draw your arb., download it to the HDG and enjoyThe thing that confused me at the beginning is that the translation in the software for "Samples" is "Counter" and the translation for "Divider" is "Samole".. yes "Sample" with a typo. Anyway it is very easy to modify the language files.I tried a 0.25Hz arb (1 004 016 samples!). It worked but took several minutes to be downloaded to the HDG. If you work with less then 10000 samples, it is downloaded in some seconds.

author: fremen67
author_rank: Frequent Contributor
timestamp: May 05, 2014, 09:56:09 pm
content: TTSource Parts 1&2 out of 6

author: fremen67
author_rank: Frequent Contributor
timestamp: May 05, 2014, 09:57:48 pm
content: TTSource Parts 3&4 out of 6

author: fremen67
author_rank: Frequent Contributor
timestamp: May 05, 2014, 09:59:18 pm
content: TTSource Parts 5&6 out of 6Remove the .hex extension of each file and uncompress with 7zip

author: Electro Fan
author_rank: Super Contributor
timestamp: May 06, 2014, 01:54:54 am
content: Thanks - these should open with WinZip as well as 7Zip, right? Thx

author: Dago
author_rank: Frequent Contributor
timestamp: May 07, 2014, 08:46:19 am
content: Quote from: fremen67 on May 05, 2014, 12:52:36 amThanks for the reply! But what does this mean? Do the arbitrary waveforms work at all or not? You say it does not work with files created on the PC but that it works from PCBtw. does anyone know of an EU distributor for these? Might want one for work at least.

author: fremen67
author_rank: Frequent Contributor
timestamp: May 07, 2014, 09:18:43 am
content: Quote from: Dago on May 07, 2014, 08:46:19 amIt does work when creating arb on the PC. TTSource sends it to the HDG directly. But you can save your arb in an ASCII file (.hfw), put it on a usb stick or microSD and open it on the HDG... and this doesn't work for me. I could also create a new arb on the HDG, edit points but could not play them..I will try it again later on but editing an arb point by point on the HDG ...At least you should be able to load a file created by TTSource so that you can work without the PC.

author: Dago
author_rank: Frequent Contributor
timestamp: May 07, 2014, 12:11:27 pm
content: Quote from: fremen67 on May 07, 2014, 09:18:43 amAlright, that sounds... not super bad I guess. Can't have it all for such cheap price. But damn you guys, I just had to order one of these so I'll see for my self!

author: idpromnut
author_rank: Unknown
timestamp: May 07, 2014, 02:00:55 pm
content: Mine should be in the mail in the day or soI will of course void the "warranty" as soon as I can. If you want me to look for/at anything in particular let me know.

author: rodlaird
author_rank: Newbie
timestamp: May 07, 2014, 03:22:21 pm
content: Quote from: fremen67 on May 04, 2014, 01:20:00 amnoob question; does this mean the change is then persistant or the reason you have to type reboot is that a cold boot reloads the system.inf file and so you have to do this manually every time you turn on the system? If the latter how do you manage this on a day-to-day basis; wire in the USB link "permanently"?also - from top photo - is the UART header the one near the USB jack??... I had just ordered a HDG2002B, was regretting I had not ordered a faster model - and then found this posting after the fact. So I've some USB 2 RS232/TTL devices on way from Aliexpress and will be keen to apply your advice...

author: fremen67
author_rank: Frequent Contributor
timestamp: May 07, 2014, 09:39:18 pm
content: Quote from: rodlaird on May 07, 2014, 03:22:21 pmYou have to reboot manually just once after you have modified system.inf. Then the mode will be persistent. If you don't, you will lose your system.inf modification after switch OFF/ switch ON.In fact I lost the mod once after the lan upgrade... I modified again system.inf and now it's persistent again.Quote from: rodlaird on May 07, 2014, 03:22:21 pmYes. Four pins were already soldered on it. Starting from the USB side and not counting the first one you don't need, you have RX, TX, GND and 3.3V