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

0 Members and 1 Guest are viewing this topic.

Offline AndrewBCN

  • Frequent Contributor
  • **
  • Posts: 263
  • 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

  • Frequent Contributor
  • **
  • Posts: 263
  • 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

  • Frequent Contributor
  • **
  • Posts: 263
  • 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

  • Frequent Contributor
  • **
  • Posts: 263
  • 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

  • Frequent Contributor
  • **
  • Posts: 263
  • 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: 1522
  • 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 following any instructions described here, please read:
This information was obtanied based on my own testings and forum users feedback.
I've put my best efforts on making this information accurate and valuable, but it might not be 100% correct.
Having said that, I don't take any responsability, if you proceed, it'll be at your own risk.


Before doing anything, run Backup Builder (In Mods section) to save your important data!
Also, it's always a good idea to take a picture of Utility->System info screen.
Some updates might erase and/or break some features, and you'll need to restore the system.

Read carefully: There's a big difference between "FW version" and "SW version".
SW version refers to the software running inside the CPU(Phoenix).
FW version refers to the firmware running in the internal FPGA.

Do not change your FW version unless specifically told you to do so!
Some updates can do it, so don't update with anything you find over internet unless you have a backup!
Check the section "FW versions" for more details.



»  Quick glance  «

This section summarizes few quick references.

»  For scopes coming with FW3000, update to FW3102.
»  For scopes coming with FW3200, update to FW3202.
»  The latest software version is 2021.08.16.
»  If USB is not working properly, apply Hantek's USB fix
     »  Remember that the system only has one USB interface, shared with 2 ports. You can't plug both at the same time!
»  If your calibration fails with an error, probably your FW version is incorrect, check "FW versions".



»  What not to do  «

»  Screwing up your system because you thought you were smarter than anyone, so no reading of any kind 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 unless stated to do so.
If the wrong version is used, the calibration won't work.

Current available FW backups are:
»  B000 (Seems to be the same file as FW3000)
»  2013
»  2015
»  3000
»  3101
»  3102 (Latest update for 3000/3101)
»  3200
»  3202 (Latest update for 3200)

If your version is not listed there, it's a good idea to use FW Backup and send me the file "psram_board_test.fs.bin".



»  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:
»  2020.11.18
»  2020.11.21
»  2020.12.07
»  2021.01.05
»  2021.02.23
»  2021.03.04
»  2021.03.11
»  2021.04.16
»  2021.07.05
»  2021.07.14
»  2021.07.26
»  2021.08.16

These will update the fpga FW version:
»  2020.12.21 -> Sets FW3000
»  2021.05.10 -> Sets FW3202
»  2021.06.01 -> Sets FW3102
»  2021.06.30 -> Auto-updates 3000->3102 or 3200->3202, else leaves it unchanged

There's a Hantek solution for the USB problem:
»  USB_fix     -> Resets the system settings and deletes a small file causing the issue, FW and SW versions remain untouched.



»  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.

This will completely wipe your system, erase serial, model and signal generator calibration!
So ensure you have a backup, otherwise you'll have to restore a random calibration from other scope (Read "Mods" section).

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.

Current Platform-tools versions:
»  2020.12.21. Comes with FW3000.
»  2021.01.29. Comes with FW3101.
»  2021.05.17. Comes with FW3102.

Always apply the USB fix after recovering using this method.

Now, your scope will show "undefined" under model, hardware and serial number, also the generator calibration will be gone.
You should now apply the backup package "dso3kb_CNxxx.upk" to restore them.

If you didn't made backup, the FW version might not be correct for your model.
Check "FW Versions", "Quick glance" sections to apply the correct FW.

To manually restore the HW, Model and serial check Scripts and Script Launcher in "Mods" section.
If you have lost your Generator calibration, it's gone forever, there's no known way to calibrate it.
You can try "Generator calibration fix", which will restore a calibration taken from another scope, it will be better than nothing.


»  Mods  «


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, preserving the existing software.
     »  dso3kb_CNxxx_FULL.upk: Restores Model, Serial, HW, FW, Generator calibration and dso, overwriting the existing software.
»  2D15 conversion: Sets your model as 2D15.
»  UPK 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 me the bin file if you FW version is not there!
»  Generator calibration 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 (No longer needed with latest updates).
»  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!



»  Links  «

DSO2x1x main thread
DSO2x1x hacking thread
Everything is available in my Google Drive folder
« Last Edit: September 25, 2021, 10:45:16 pm 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: 1522
  • 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

  • Frequent Contributor
  • **
  • Posts: 263
  • 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: 1522
  • 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: 32
  • 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: 1522
  • 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: 1522
  • 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: 1522
  • 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: 1522
  • 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