Author Topic: Hantek DSO2x1x models: firmware updates and best use practices  (Read 4279 times)

0 Members and 2 Guests are viewing this topic.

Offline AndrewBCN

  • Regular Contributor
  • *
  • Posts: 231
  • Country: fr
Hantek DSO2C10, DSO2C15, DSO2D10, DSO2D15 (DSO2000 series): firmware updates and best use practices  :-BROKE

If you are considering buying one of these Hantek DSOs, or have just bought one, you might find the information below useful. Note that all these models are based on exactly the same mainboard. The DSO2D1x models populate the mainboard with components for an Arbitrary Waveform Generator (a rather basic 12-bit function generator with limited functionality), the DSO2C1x models don't. And the DSO2x15 are good to 150MHz, while the DSO2x10 models are software limited to 100MHz.



The DSO2000 Series User Manual can be found here: http://www.hantek.com/uploadpic/hantek/files/20210409/DSO2000%20Series%20Digital%20Storage%20Oscilloscope%20User%20Manual.pdf

This thread is a restart of the previous https://www.eevblog.com/forum/testgear/new-hantek-dso2x1x-models/ thread, which got too confusing for people searching for essential information on firmware updates and general use hints and tips for these "value" Hantek DSOs.  :-//

Note that if you are specifically interested in hacking your Hantek DSO2x1x, you should look into this thread: https://www.eevblog.com/forum/testgear/hacking-the-dso2x1x/

See the next post for firmware update recommendations, the third post for links to reviews, and the fourth post for bugs, limitations and other issues.
Also see DavidAlfa's post below for tons of relevant information which he has collected through extensive research into his DSO2D15.
« Last Edit: June 18, 2021, 01:23:57 pm by AndrewBCN »
 
The following users thanked this post: eevbstedt, pupkinv, Victor1964, Patrick Rothermel

Offline AndrewBCN

  • Regular Contributor
  • *
  • Posts: 231
  • Country: fr
Firmware updates: recommendations and links
« Reply #1 on: June 18, 2021, 08:58:28 am »
WARNING!
Before you update the firmware on your Hantek DSO2x1x, you may want to consider the following:
1. Some firmware updates have been shown to cause various annoying problems and decrease the stability of the DSO internal software.
2. The firmware update process can for various reasons fail, leaving your DSO in an unusable state (i.e. "bricked").
3. In principle, it is always possible to "unbrick" a "bricked" Hantek DSO2x1x, but it's better not to "brick" it in the first place.  ;)
4. Before you get started on any firmware update, take a picture of your DSO "system information" screen.
5. Last but not least, remember the old adage: "If it breaks, you get to keep the pieces."  ???

This is the firmware update procedure described in the Hantek DSO2000 series User Manual:

Quote
2.14.1. Update Firmware
This series of oscilloscope can upgrade the software by the USB flash disc, which needs about 5 minutes.
The firmware is upgraded by the following steps:
1. Plug the USB flash disc in which a firmware program is saved in USB Host interface on the front panel of the oscilloscope.
2. Press [Utility] button to skip to the Utility menu.
3. Press Update -> Update Firmware softkey.
4. Select the file and press Multifunctional Knob to confirm. Then press Start updating softkey to update the firmware.
5. Reboot the machine after finishing upgrading, and the software version is upgraded. The oscilloscope should be
self-corrected once after upgrading.

At present there are two repositories for Hantek DSO2000 series firmware updates:
1. The Hantek official website at hantek.com: http://hantek.com/DownLoad
2. DavidAlfa's GDrive folder: https://tinyurl.com/ytteeyj7

Which is the recommended firmware update? Unfortunately the answer is "it depends..."
As of June 2021, there is no single firmware update that will reportedly work perfectly on all Hantek DSO2000 Series models.

List here the firmware updates available and recommendations.
Explain the "fool proof" firmware update process.
Explain the "fool proof" unbricking process.
« Last Edit: June 18, 2021, 12:32:07 pm by AndrewBCN »
 
The following users thanked this post: Victor1964

Offline AndrewBCN

  • Regular Contributor
  • *
  • Posts: 231
  • Country: fr
Hantek DSO2x1x models: reviews and other information sources
« Reply #2 on: June 18, 2021, 09:02:04 am »
Links to reviews
 

Offline AndrewBCN

  • Regular Contributor
  • *
  • Posts: 231
  • Country: fr
Hantek DSO2x1x models: bugs, limitations and other issues
« Reply #3 on: June 18, 2021, 09:06:18 am »
This is a list of known bugs, limitations and other issues.

Bugs
The following is a list of verified known bugs:
  • The DSO will lock up when switching ranges too fast! Known bug and Hantek has been notified.

Limitations
Hantek have cut quite a few corners to lower the cost of the DSO2000 Series scopes. So there are some limitations, some obvious, some not.
  • The DSO2000 series are shipped by Hantek with a single probe! Yes, that's right. You have to buy a second probe separately.
  • The embedded ARM CPU does not have hardware floating point. Indeed, but that should not change much in terms of general operation of these DSO.
  • The function generator in the DSO2D1x models performs poorly. Again, that's correct, it has limited performance and functionality. If you need a function generator with better specs, use an external one.
Other issues
  • Hantek have been slow in coming up with firmware updates that fix well known problems. Patience! Hopefully as the number of units sold increases, they will accelerate the firmware updates.
« Last Edit: June 18, 2021, 01:11:45 pm by AndrewBCN »
 
The following users thanked this post: eevbstedt

Offline AndrewBCN

  • Regular Contributor
  • *
  • Posts: 231
  • Country: fr
Miscellaneous
« Reply #4 on: June 18, 2021, 09:08:55 am »
Various bits and pieces of information that don't fall in other categories

1. My DSO2x1x came with just one probe, even though it's a dual-channel DSO! Hantek is delivering all these DSO's with just a single probe, so you'll want to order an extra probe when you purchase any of the DSO2000 Series models. Note that any standard oscilloscope probe will work, but you'll probably want to buy a Hantek PP-150 probe to match the one that came with your DSO2x1x.



2. Where is the FEL button located? (refer to the hacking thread to know what the FEL button does; it is not needed in normal operation)

« Last Edit: June 21, 2021, 06:00:18 am by AndrewBCN »
 
The following users thanked this post: eevbstedt

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 1479
  • Country: es
Re: Hantek DSO2x1x models: firmware updates and best use practices
« Reply #5 on: June 18, 2021, 09:11:38 am »

Readme first!

Before doing anything, run Backup Builder to save your important data.
Check the Mods section!

Also, it's always a good idea to take a picture os utility->Sytem info screen.
Some updates can erase and/or break some features, and you'll need to restore them.

Read carefully: There's a big difference between "Firmware version" and "Software version".

Firmware version refers to the firmware running in the internal FPGA.
Some updates will change it, so don't flash anything you find over internet unless you have a backup!
Software version refers to the actual software running inside the CPU(Phoenix).
DO NOT change your FW version unless specifically told you to do so!



What not to do

- Screwing up your system because you thought you were smarter than anyone, so no reading was needed.
- Coming here to blame us for your fuck-up because of the above.



Firmware versions

It's not a good idea to change it, usually it will cause issues, like:
- Breaking calibration
- Causing weird DC offsets
- Breaking signal generator amplitude calibration.

Some known FW versions are 3000, 3101, 3102, 3200, 3202. We have backups for most of them.
If your version is not listed there, it's a good idea to make a backup just in case, and send it to us, so we can add it to the FW collection.
FW3202 seems to be an upgrade for FW3200.
FW3102 works fine in FW3000 systems, so it might be an update for them.
Installing FW3200 on a FW3000 device will break calibration, if that happens just install or restore FW3000.


Updating

There are two kind of updates: Regular system updates and low-level firmware packages.
- Regular system updates are the UPK files. These are installed from the usb drive.
- Low level firmware packages are flashed using platform-tools. They will overwrite the whole filesystem. Check "Recovering" section.



System Updates

This is a collection of the up to date known updates.

These can be applied safely:
- 20201118
- 20201121
- 20201207
- 20210105
- 20210223
- 20210304
- 20210311
- 20210416

These will overwrite you FW version:

- 20201221 -> Sets FW3000
- 20210510 -> Sets FW3202
- 20210601 -> Sets FW310



Recovering (platform tools)

In the case anything went wrong and the system cannot longer boot or run normally, you must flash it using platform tools.
Download the version that matches your FW and unzip it.
Read the readme file inside to get the USB installation steps.

There's a button under the scope, you'll see it through one of the holes in the bottom plate. It will boot it in recovery (FEL) mode.
Turn off the scope, remove anything connected from the frontal usb port, connect the rear usb to the computer, hold the button down and turn on the scope.
A new device will appear in your device manager, "USB Device(VID_1f3a_PID_efe8)". Now you must install the Zadig usb driver following the Readme instructions.

Open the platform tools folder and run "cmds.bat".
At some point the screen will appear distorted, and/or with random colors. It's normal!
After a moment the process will finish and the scope will boot normally.
Important: Connecting it to usb 3.0 ports seem to cause some issues. Use a 2.0 port when possible.

After this, your scope will have "undefined" model, hardware and serial number.
You can restore it with a script, check "Mods" section.

Current versions:

- Platform-tools 20201221. The older one. Includes FW3000 by default.
- Platform-tools 20210129. Includes FW3101 by default.
- Platform-tools 20210517. Includes FW3102 by default.
  This version might cause problems with the usb port with FW3000 models. In that case, install update 20210416.



Mods

The mods are available in the GDrive folder.
Ensure to read Info.txt before doing anything!

- Backup builder: Backups all important system data and builds two update packages, so you can quickly restore them:
   - dso3kb_CNxxx.upk: Restores Model, Serial, HW, FW, Generator calibration, but skips dso, preserving the existing dso software when restoring.
   - dso3kb_CNxxx_FULL.upk: Restores Model, Serial, HW, FW, Generator calibration and dso, overwriting the existing dso software, almost like restoring the original system.
- 2D15 conversion: Sets your model as 2D15.
- Build/extract tools: These scripts allow to easily extract and make custom UPK files.
- Doom: Needs further explanation? Yes, you can run Doom!
- FW Changer: To change any FW version. Run backupFW and send us the bin file if you FW version is not there!
- Generator fix: If you lost the calibration and didn't back it up, this package will restore it.
- Lock-up fix: A workaround that relaunches the system software when it crashes, taking only 4 seconds.
- Overclocking: Applies overclock to the system for better response, without any overheating issues.
- Patcher: At the moment, it's able to enable uart ascii decoding and change plot colors.
- Scripts: Script collection. Use Script launcher to run them.
- Script launcher: Runs any bash script in the usb drive called "do_other_update".
- Static compiled binaries: Custom cross-compiled binaries that can be run in the hantek system. For the hacker only!



Files

There's a Google Drive folder with everything available for these models here:
https://drive.google.com/drive/folders/1Tqk8YbL_M3S0vtk7h_cZ-01U2idIaqqx



Misc

Check the DSO2x1x hacking thread here: https://www.eevblog.com/forum/testgear/hacking-the-dso2x1x
« Last Edit: September 14, 2021, 12:19:50 am by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ
Stm32 Soldering FW      Forum      Github      Donate
 
The following users thanked this post: eevbstedt, AndrewBCN, Victor1964

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 1479
  • Country: es
Re: Hantek DSO2x1x models: firmware updates and best use practices
« Reply #6 on: June 18, 2021, 10:28:55 am »
I suggest a more generic title. Are  you making your grade thesis or what?
"Hantek DSO2x1x thread (Continued)"

So I'm the only doing the work while the kids post memes?
Don't take it badly, but you already filled the first page with crap!  :palm:
« Last Edit: June 18, 2021, 10:33:14 am by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ
Stm32 Soldering FW      Forum      Github      Donate
 

Offline AndrewBCN

  • Regular Contributor
  • *
  • Posts: 231
  • Country: fr
Re: Hantek DSO2x1x models: firmware updates and best use practices
« Reply #7 on: June 18, 2021, 11:14:26 am »
I suggest a more generic title. Are  you making your grade thesis or what?
"Hantek DSO2x1x thread (Continued)"

So I'm the only doing the work while the kids post memes?
Don't take it badly, but you already filled the first page with crap!  :palm:
First, thank you for contributing real, good information.  :-+

As for changing the title, well, I don't intend this thread to be a continuation of the old one, rather it's a reset that focuses on firmware upgrades and real use of these DSOs, so the title will remain what it is now.
« Last Edit: June 18, 2021, 12:37:50 pm by AndrewBCN »
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 1479
  • Country: es
Re: Hantek DSO2x1x models: firmware updates and best use practices
« Reply #8 on: June 18, 2021, 05:07:41 pm »
What don't you understand? 20201221 is there, read better! It clearly warns you to only install it on FW3000 scopes.
If your scope had other FW version, you'll probably run into problems.

These will overwrite your FW version, so don't apply unless you run the same FW version!

- 20201221 -> Sets FW3000
- 20210510 -> Sets FW3202
- 20210601 -> Sets FW3102
« Last Edit: June 18, 2021, 05:11:17 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ
Stm32 Soldering FW      Forum      Github      Donate
 

Offline vistorik

  • Contributor
  • Posts: 27
  • Country: de
Re: Hantek DSO2x1x models: firmware updates and best use practices
« Reply #9 on: July 15, 2021, 08:38:56 pm »
- FW Changer: To backup or change any FW version. Backup if you FW version is not there!
David, what does dso3kb_BACKUP_FW.upk? I'd like to get my FW backup, but after running this UPK I've got the file backup_psram_board_test.fs.bin 886KB. Is this FW backup?
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 1479
  • Country: es
Re: Hantek DSO2x1x models: firmware updates and best use practices
« Reply #10 on: July 16, 2021, 10:30:39 pm »
To backup your FW if not existing in the database, or restore one from the available packages.

To make your own restore packages use backup builder.
Hantek DSO2x1x            Drive        FAQ
Stm32 Soldering FW      Forum      Github      Donate
 

Offline Piton

  • Regular Contributor
  • *
  • Posts: 55
  • Country: ua
Re: Hantek DSO2x1x models: firmware updates and best use practices
« Reply #11 on: September 13, 2021, 05:52:16 am »
Hello. Where is the "Phoenix-20210416" file located? Thanks.
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 1479
  • Country: es
Re: Hantek DSO2x1x models: firmware updates and best use practices
« Reply #12 on: September 14, 2021, 12:14:14 am »
Sorry, that file was not needed, I forgot to update this.
Just flash official 20210416 update.
Hantek DSO2x1x            Drive        FAQ
Stm32 Soldering FW      Forum      Github      Donate
 

Offline Piton

  • Regular Contributor
  • *
  • Posts: 55
  • Country: ua
Re: Hantek DSO2x1x models: firmware updates and best use practices
« Reply #13 on: September 14, 2021, 05:16:58 am »
It's clear. I have a problem with the YUSB on the 714th firmware, which fixes the hang in the "auto-measurements" mode. I thought that maybe this file will help fix it.
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 1479
  • Country: es
Re: Hantek DSO2x1x models: firmware updates and best use practices
« Reply #14 on: September 14, 2021, 09:42:26 am »
20210416 fixes that.
Hantek DSO2x1x            Drive        FAQ
Stm32 Soldering FW      Forum      Github      Donate
 

Offline Piton

  • Regular Contributor
  • *
  • Posts: 55
  • Country: ua
Re: Hantek DSO2x1x models: firmware updates and best use practices
« Reply #15 on: September 14, 2021, 11:31:25 am »
I understand it. 416 works well, there is no problem with USB, but there is a problem with freezing in the "auto measurements" mode. 714 also works well, there is no problem with freezing, but there is a problem with USB. I still hope that Hantek will have a new firmware without these problems.
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 1479
  • Country: es
Re: Hantek DSO2x1x models: firmware updates and best use practices
« Reply #16 on: September 14, 2021, 12:53:10 pm »
In 20210714 usb only works correcty with FW3200 versions, which have a different board revision.
Try installing FW3102.
Hantek DSO2x1x            Drive        FAQ
Stm32 Soldering FW      Forum      Github      Donate
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf