Author Topic: New Hantek DSO2X1X models?  (Read 48869 times)

Victor1964, Poogo, barbar99, upsss and 2 Guests are viewing this topic.

Offline imk

  • Regular Contributor
  • *
  • Posts: 157
  • Country: gb
Re: New Hantek DSO2X1X models?
« Reply #475 on: June 17, 2021, 09:13:05 pm »
DSO2000 Firmware
2021-04-20
From Hantek site download firmware http://www.hantek.com/products/detail/17182 20210420
Or David Alpha gdrive https://drive.google.com/drive/folders/1iw9BOnvxNOd0f_2uvGwGSHmnjP4TrG4f
Has most/all the previous versions, apparently 20210304 is fairly reliable although I have crashed it and had Mem Depth 8M issues.
I think all are awaiting the next exciting chapter in the saga known as Hantek DSO02xxx firmware releases :-)  enjoy, it is marginally better that toothache!
imk
1201 Alarm
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 1083
  • Country: es
Re: New Hantek DSO2X1X models?
« Reply #476 on: June 18, 2021, 07:06:16 am »
From Hantek site download firmware http://www.hantek.com/products/detail/17182 20210420
Inmcorrect, that update doesn't change Fw version!

I have a question?
Unintentionally installing the update dso3kb_20210510. On the FW (3000) software. The oscilloscope stopped working as it should !!! How can I become a licensed owner of this device? (DSO2D15)
I will delete that version as it only changes the fpga firmware, nothing else!
Check my GDrive folder, go to Mods/FW changer, download and run FW3000 update. Done!

These important details shuld be in the first post, actually the info is spreaded all over 20 pages (and rising), making it hard to find.
However, thread starter seem to have gone long time ago (Last login: December 30, 2020), making most important post completely useless.
People willl keep flashing wrong versions because of this.

Moderators: Can we take control of the first post to use it as an index / summary?
« Last Edit: June 18, 2021, 07:26:31 am by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ
Stm32 Soldering FW      Forum      Github      Donate      I need calibration reports!
 

Offline xuraax

  • Contributor
  • Posts: 30
  • Country: mt
Re: New Hantek DSO2X1X models?
« Reply #477 on: June 18, 2021, 08:06:00 am »
@DavidAlfa,

That is the best advice to date.

As an obvious newbie on these topics I am in awe at the depth of knowledge possessed by some of you.

As a newbie it is actually confusing to draw any sort of conclusion from the 20 odd pages of comments put forward so far.

A summary of what has been learned so far from you guys will be greatly appreciated. For example the implication of the various firmwares 3000, 3100....3202 on the scope and which one to choose for a particular model!!!

Thanks for ALL your input.

Regards
 
The following users thanked this post: Victor1964

Offline Sergey_Malyshev

  • Contributor
  • Posts: 15
  • Country: ru
Re: New Hantek DSO2X1X models?
« Reply #478 on: June 18, 2021, 08:43:05 am »
The problem with the generator remained unresolved.
FW(3000).dso3kb_20210416.(DSO2D15)
 

Offline AndrewBCN

  • Regular Contributor
  • *
  • Posts: 127
  • Country: fr
Re: New Hantek DSO2X1X models?
« Reply #479 on: June 18, 2021, 08:44:11 am »
I would suggest locking this thread and creating a new one with a first post that clearly explains the firmware update process, but still references this "old thread" for those who want the complete details, and also references the "hacking" thread for those who want to explore their Hantek DSO2X1X.

And perhaps in the new thread we can move on to comments about using these DSOs instead of bitching and whining about them (including by people who don't actually own one)?

EDIT: done creating the new thread, and I have reserved and will curate the first five posts with essential information and facts. The new thread is here: https://www.eevblog.com/forum/testgear/hantek-dso2x1x-firmware-updates-and-best-use-practices/
« Last Edit: June 18, 2021, 09:16:50 am by AndrewBCN »
 
The following users thanked this post: xuraax, Victor1964

Offline tv84

  • Super Contributor
  • ***
  • Posts: 2250
  • Country: pt
Re: New Hantek DSO2X1X models?
« Reply #480 on: June 18, 2021, 08:53:07 am »
The sooner you create the thread, the sooner people move there.

Regarding the "bitching and whining", it will continue to happen on BOTH threads.  It's a feature.
 
The following users thanked this post: xuraax, AndrewBCN, Victor1964

Offline Gerasim

  • Contributor
  • Posts: 14
  • Country: ua
Re: New Hantek DSO2X1X models?
« Reply #481 on: June 18, 2021, 09:57:53 am »
I have also written here more than once about the problem with the generator.  Rollback to the previous firmware does not help.  But apparently few people are interested in this))
 

Offline Sergey_Malyshev

  • Contributor
  • Posts: 15
  • Country: ru
Re: New Hantek DSO2X1X models?
« Reply #482 on: June 18, 2021, 10:13:57 am »
Let them work! Let's not get distracted by trifles. I hope they heard us.
 

Offline Piton

  • Contributor
  • Posts: 44
  • Country: ua
Re: New Hantek DSO2X1X models?
« Reply #483 on: June 18, 2021, 11:02:54 am »
 Sergey_Malyshev, try long pressing the "Default Settings" button, there are options for a generator and maybe a calibration. I fixed this problem by soldering the memory and only then did I find this feature. But, as it turned out, it does not work for everyone.
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 1083
  • Country: es
Re: New Hantek DSO2X1X models?
« Reply #484 on: June 18, 2021, 11:07:33 am »
It seems to work after you entered Utility menu first. The older sw versions have more options.
Hantek DSO2x1x            Drive        FAQ
Stm32 Soldering FW      Forum      Github      Donate      I need calibration reports!
 

Offline Piton

  • Contributor
  • Posts: 44
  • Country: ua
Re: New Hantek DSO2X1X models?
« Reply #485 on: June 18, 2021, 11:22:39 am »
I also thought that in later versions they either removed it, or hid it somewhere. I have a very early version.
 

Offline Gerasim

  • Contributor
  • Posts: 14
  • Country: ua
Re: New Hantek DSO2X1X models?
« Reply #486 on: June 18, 2021, 11:43:56 am »
This menu also opens for me.  But unfortunately, the generator calibration does not work and gives errors
 

Offline Piton

  • Contributor
  • Posts: 44
  • Country: ua
Re: New Hantek DSO2X1X models?
« Reply #487 on: June 18, 2021, 11:56:17 am »
So you need to restore your version. I didn’t have any errors on the error generator, I only had one of those points, but this was after recovery.
 

Offline Gerasim

  • Contributor
  • Posts: 14
  • Country: ua
Re: New Hantek DSO2X1X models?
« Reply #488 on: June 18, 2021, 12:15:21 pm »
I originally had version 3000. The generator worked without errors. And there was only one calibration item in the menu. After installing versions 3101 and 3102, two calibration items appeared in the menu and a generator error appeared. When I installed my native 3000 version back, the problem did not disappear, but these two calibration items remained in the menu. Apparently the new firmware 3102 registered something in the flash and rollback to the old firmware does not completely erase the 3102 firmware data from the memory. So which version do you say I should still rollback to?
 

Offline Gerasim

  • Contributor
  • Posts: 14
  • Country: ua
Re: New Hantek DSO2X1X models?
« Reply #489 on: June 18, 2021, 01:25:55 pm »
If there is no way to format the flash via USB without unsoldering it from the board in order to write the firmware to a clean flash, then you will have to order a new flash on Ali and try to upload the image to it.
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 1083
  • Country: es
Re: New Hantek DSO2X1X models?
« Reply #490 on: June 18, 2021, 01:55:45 pm »
I found few things:
- The fpga file from platform tools fw3000  is not the same as my factory fw3000 backup.
- Generator amplitude is fixed after restoring my files "/cache/cali.dat" and "/cache/dds_calbration.dat"
- Made a custom update package that replaces all /dso and /cache files with my factory ones. Worked.

Gerasim, try the attached update and tell if it makes any difference.
« Last Edit: June 18, 2021, 02:57:48 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ
Stm32 Soldering FW      Forum      Github      Donate      I need calibration reports!
 
The following users thanked this post: AndrewBCN, Gerasim

Offline AndrewBCN

  • Regular Contributor
  • *
  • Posts: 127
  • Country: fr
Re: New Hantek DSO2X1X models?
« Reply #491 on: June 18, 2021, 02:03:39 pm »
If there is no way to format the flash via USB without unsoldering it from the board in order to write the firmware to a clean flash, then you will have to order a new flash on Ali and try to upload the image to it.

See the hacking thread. DavidAlfa and I are working on two different solutions to read/write/backup/restore/modify the SPI NAND flash. DavidAlfa is writing a low-level program that reads and writes the SPI NAND flash through FEL. I am working on a small Linux distribution that can be loaded through FEL and uses the Linux kernel SPI NAND driver.
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 1083
  • Country: es
Re: New Hantek DSO2X1X models?
« Reply #492 on: June 18, 2021, 02:15:42 pm »
David is actually waiting for the ram linux method! :popcorn:
Hantek DSO2x1x            Drive        FAQ
Stm32 Soldering FW      Forum      Github      Donate      I need calibration reports!
 

Offline tttonyyy

  • Regular Contributor
  • *
  • Posts: 54
  • Country: gb
Re: New Hantek DSO2X1X models?
« Reply #493 on: June 18, 2021, 02:21:40 pm »
Apparently the new firmware 3102 registered something in the flash and rollback to the old firmware does not completely erase the 3102 firmware data from the memory. So which version do you say I should still rollback to?

The calibration data is stored in file /dso/etc/data/cali.dat (did you back up your filesystem first?)
It is cached in /cache/cali.dat and on my system both files were binary different after recalibration.  You could try (with the older firmware) calibration, power cycle, calibration, power cycle and see if the problem remains.  I doubt that the FPGA image retains anything, it is loaded over SPI every time pheonix app starts at boot (or crashes and is restarted by David's restart script).

Calibration itself is another app /dso/app/dso3000c_calibration that is invoked by phoenix, as far as we know it generates the cali.dat files based on values determined by the current FPGA image.
« Last Edit: June 18, 2021, 02:23:20 pm by tttonyyy »
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 1083
  • Country: es
Re: New Hantek DSO2X1X models?
« Reply #494 on: June 18, 2021, 02:34:27 pm »
So, in the end the only files that matter are /cache, /data and /dso.
I will make a custom update that automatically backups and creates an UPK file for restoring your system back.
The rest, like Boot, kernel... doesn't matter because can be restored using platform tools.

Edit: Done! Check the Mods folder. It was never so simple!
- Download and run "dso3kb_BackupBuilder.upk".
- The scope will freeze ~2 minutes while compressing the data and building the package. Be patient!
- After the automatic reboot, you will have "dso3kb_CNxxxxxxxxxxxxx.bak.upk" in you usb drive.
- Put that file in a safe place. If any update breaks something, run that package to restore.

If the system no longer boots correctly or whatever, install any platform tools version, and then run the package.
« Last Edit: June 18, 2021, 05:00:41 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ
Stm32 Soldering FW      Forum      Github      Donate      I need calibration reports!
 
The following users thanked this post: eevbstedt

Offline QuitButton

  • Contributor
  • Posts: 34
  • Country: gb
Re: New Hantek DSO2X1X models?
« Reply #495 on: June 18, 2021, 02:39:18 pm »
- Generator amplitude is fixed after restoring my files "/cache/cali.dat" and "/cache/dds_calbration.dat"

Could this be the reason for Amplitude calibration option?
 

Offline Sergey_Malyshev

  • Contributor
  • Posts: 15
  • Country: ru
Re: New Hantek DSO2X1X models?
« Reply #496 on: June 18, 2021, 03:32:40 pm »
DavidAlfa Respect and esteem!!!
AWG  OK!
FW(3102) calibration Ok.
 :popcorn: :-+ :phew:
« Last Edit: June 18, 2021, 04:04:45 pm by Sergey_Malyshev »
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 1083
  • Country: es
Re: New Hantek DSO2X1X models?
« Reply #497 on: June 18, 2021, 05:31:24 pm »
Great!
I finished the backup builder. It works really, really nice!
Run the builder, it will make the update package for you, then run the new package whenever you want to restore the system  :-+


Hantek DSO2x1x            Drive        FAQ
Stm32 Soldering FW      Forum      Github      Donate      I need calibration reports!
 
The following users thanked this post: tttonyyy, Gerasim

Offline Gerasim

  • Contributor
  • Posts: 14
  • Country: ua
Re: New Hantek DSO2X1X models?
« Reply #498 on: June 18, 2021, 07:24:41 pm »
David! Thank you! Everything worked out! You are a true master! Now the generator is showing great! :-+ :-DMM
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 1083
  • Country: es
Re: New Hantek DSO2X1X models?
« Reply #499 on: June 18, 2021, 07:41:30 pm »
Apparently the new firmware 3102 registered something in the flash and rollback to the old firmware does not completely erase the 3102 firmware data from the memory. So which version do you say I should still rollback to?

The calibration data is stored in file /dso/etc/data/cali.dat (did you back up your filesystem first?)
It is cached in /cache/cali.dat and on my system both files were binary different after recalibration.  You could try (with the older firmware) calibration, power cycle, calibration, power cycle and see if the problem remains.  I doubt that the FPGA image retains anything, it is loaded over SPI every time pheonix app starts at boot (or crashes and is restarted by David's restart script).

Calibration itself is another app /dso/app/dso3000c_calibration that is invoked by phoenix, as far as we know it generates the cali.dat files based on values determined by the current FPGA image.

/dso/etc/data/ is empty in my filesystem. I think only /cache matters.
Definitely, the generator file is "dds_calbration.dat". Deleting it creates a new, empty 0-byte file and amplitude gets way higher.
Made another update package than only restores this file (For people whio didn't made a backup).
« Last Edit: June 18, 2021, 08:09:57 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ
Stm32 Soldering FW      Forum      Github      Donate      I need calibration reports!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf