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

0 Members and 5 Guests are viewing this topic.

Online Aldo22

  • Frequent Contributor
  • **
  • Posts: 833
  • Country: ch
Re: New Hantek DSO2X1X models?
« Reply #1800 on: February 16, 2024, 03:45:21 pm »
It's probably the RAM, happened to me too. I just leave it stock, OC only the CPU.
You'll get nothing out of that extra 5% OC else that lockups.
Thank you.
I had MEM_OC_PLL_N=15, now trying with 13
 

Online Aldo22

  • Frequent Contributor
  • **
  • Posts: 833
  • Country: ch
Re: New Hantek DSO2X1X models?
« Reply #1801 on: February 16, 2024, 05:56:07 pm »
I wrote a little script to measure frequency response with the Hantek.
It's my first Python script longer than 3 lines, so...,  but maybe someone will find it useful.  ;)

Requires pyvisa and gnuplot. I only tested it on Linux. It may also run on other systems with small adjustments.

You can choose between three (cheap) signal generators or add your own:
Hantek internal sg.
Feeltech fy3200: Two channels, phase measurement
Tinysa: Higher bandwidth.

The code is attached and there is a small README.md in the zip.
If anyone would like to try it and has any questions, please ask!
Attention, it is quite slow!
So don't choose too many points for initial tests.
But you can just let it run and don't have to worry about it.

EDIT: BUG FIXED
A new zip is attached.
I mixed up FFR (the time between the first falling edge of source 1 and the first rising edge of source 2) and FRR (the time between the first rising edge of source 1 and the first rising edge of source 2).
The bug was not immediately obvious.  :palm:

Pictures:

10db_att_internal.png
10dB Attenuator, internal SG

30M_30P_tinysa.png
30MHz LPF from RF Demo Kit with tinysa

6.5_internal.png
6.5MHz BSF from RF Demo Kit with tinysa

6.5m_40_feeltech4.png
6.5MHz BSF from RF Demo Kit with fy3200, second channel with phase. 40 points.
« Last Edit: February 18, 2024, 10:11:20 am by Aldo22 »
 
The following users thanked this post: morgan_flint, DavidAlfa

Online Aldo22

  • Frequent Contributor
  • **
  • Posts: 833
  • Country: ch
Re: New Hantek DSO2X1X models?
« Reply #1802 on: February 17, 2024, 03:42:42 pm »
It's probably the RAM, happened to me too. I just leave it stock, OC only the CPU.
You'll get nothing out of that extra 5% OC else that lockups.
Yes, avoiding to overclock the RAM prevents occasional lockups after startup.  :-+
« Last Edit: February 17, 2024, 03:46:09 pm by Aldo22 »
 
The following users thanked this post: ClubFoto

Offline phmarek

  • Contributor
  • Posts: 14
  • Country: at
Re: New Hantek DSO2X1X models?
« Reply #1803 on: February 17, 2024, 06:25:24 pm »
Hmmm, thanks, but doesn't help -- resp. the key default setup doesn't seem to work at all.

I removed the files from /data/setup (looked promising as last.pho was 0 bytes!) but that didn't help either.

Ah, thanks! /dso/etc/aslf/ is the directory with settings - moving that away and rebooting fixed the DSO!


Merci!
 

Online Aldo22

  • Frequent Contributor
  • **
  • Posts: 833
  • Country: ch
Re: New Hantek DSO2X1X models?
« Reply #1804 on: February 18, 2024, 10:04:36 am »
Ah, thanks! /dso/etc/aslf/ is the directory with settings - moving that away and rebooting fixed the DSO!

Interesting.
Can you explain what was going on?
What can go so wrong with "settings" that the keys no longer work, as you wrote?
 

Offline phmarek

  • Contributor
  • Posts: 14
  • Country: at
Re: New Hantek DSO2X1X models?
« Reply #1805 on: February 18, 2024, 10:08:12 am »
I have no idea -- DavidAlfa suggested it!

And it's not that no key worked -- a few of them did, once or twice.


My hunch would have been to look at the FPGA firmware, as that one's responsible for translating key presses to input events.
 
The following users thanked this post: Aldo22

Online Aldo22

  • Frequent Contributor
  • **
  • Posts: 833
  • Country: ch
Re: New Hantek DSO2X1X models?
« Reply #1806 on: February 18, 2024, 10:48:57 am »
When I tested the script (above), I found that the frequency response with the tinysa from 1M to 150M was not very flat or linear. (-> picture, direct connection, dummy load, no DUT).
10dB gain over the frequency range.

Now I'm wondering if it's the Hantek, the tinysa, the cable or the script.
Unfortunately, I think the Hantek is the culprit, but I would prefer it to be for other reasons.
Does anyone know anything about it?

Can someone check this with a decent signal generator?
It doesn't have to be with the script, a few measurements would be enough (e.g. 1, 10, 50, 100, 150 MHz).
Perhaps someone has already tested this?

Thank you.
« Last Edit: February 18, 2024, 11:05:25 am by Aldo22 »
 

Online Aldo22

  • Frequent Contributor
  • **
  • Posts: 833
  • Country: ch
Re: New Hantek DSO2X1X models?
« Reply #1807 on: February 26, 2024, 02:02:51 pm »
If I connect the oscilloscope to the PC via USB (SCPI), does it make sense to use an Adum3160 USB Isolator ?
Do the SCPI commands work with it?

E.g. https://www.eevblog.com/forum/reviews/chinese-usb-isolator-test/

Thank you!
 

Offline Russ3000

  • Regular Contributor
  • *
  • Posts: 57
  • Country: il
Re: New Hantek DSO2X1X models?
« Reply #1808 on: March 01, 2024, 05:41:58 pm »
 

Online Aldo22

  • Frequent Contributor
  • **
  • Posts: 833
  • Country: ch
Re: New Hantek DSO2X1X models?
« Reply #1809 on: March 01, 2024, 05:52:55 pm »
New firmware released
https://4pda.to/forum/index.php?showtopic=1018961&view=findpost&p=128715169

Thanks!
But the link there does not work for me:

Quote
Ой! Ошибка 404.
Запрашиваемая информация не существует, перемещена или удалена.

Do you have to be a member and logged in?
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6073
  • Country: es
Re: New Hantek DSO2X1X models?
« Reply #1810 on: March 01, 2024, 06:58:17 pm »
Warning: This update forces the fpga fw update to a new version: FW3208.

I modded it to only apply the software update, preserving the existing fpga FW, so it doesn't cause issues on scopes with FW3000/3102.
Also made a new FW update package.

»  3208_B208

»  2024.02.02
»  2024.02.02_fpga_3208 -> Sets FW3208
« Last Edit: March 02, 2024, 12:40:56 am by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 
The following users thanked this post: morgan_flint, Russ3000, Aldo22, Z_E_V_S, ClubFoto

Online Aldo22

  • Frequent Contributor
  • **
  • Posts: 833
  • Country: ch
Re: New Hantek DSO2X1X models?
« Reply #1811 on: March 02, 2024, 07:22:05 am »
Thank you for your efforts. :-+
Are there any obvious show-stopper bugs, like the 4k-only bug mentioned in the other thread?
Are there any obvious improvements?
Is it a slower debug version, as someone on 4dpa noted?
Would you recommend updating now or should we wait for the official release from Hantek?
« Last Edit: March 02, 2024, 08:54:01 am by Aldo22 »
 

Offline phmarek

  • Contributor
  • Posts: 14
  • Country: at
Re: New Hantek DSO2X1X models?
« Reply #1812 on: March 02, 2024, 10:15:52 am »
Any idea what the changes are?
 

Offline Aleksandr

  • Contributor
  • Posts: 48
  • Country: ru
Re: New Hantek DSO2X1X models?
« Reply #1813 on: March 02, 2024, 10:28:27 am »
Any idea what the changes are?

Fixed the mathematical division function, it didn't work before.
« Last Edit: March 02, 2024, 10:30:16 am by Aleksandr »
 
The following users thanked this post: Aldo22

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6073
  • Country: es
Re: New Hantek DSO2X1X models?
« Reply #1814 on: March 02, 2024, 10:51:53 am »
Meh, that's no sense, the binary size is almost identical to older versions, definitely not a debug build.
In fact it would be the best thing happening, if they ever make that error we could see the original function and variable names (Debug symbols), allowing much easier reverse engineering.
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 
The following users thanked this post: Aldo22, ClubFoto

Online Aldo22

  • Frequent Contributor
  • **
  • Posts: 833
  • Country: ch
Re: New Hantek DSO2X1X models?
« Reply #1815 on: March 02, 2024, 04:31:55 pm »
I have done the (full) update.
All I can say so far is that it is still running and has not crashed.

EDIT: Math Div seems to work now.
« Last Edit: March 02, 2024, 04:57:12 pm by Aldo22 »
 

Online Aldo22

  • Frequent Contributor
  • **
  • Posts: 833
  • Country: ch
Re: New Hantek DSO2X1X models?
« Reply #1816 on: March 05, 2024, 10:44:47 am »
I have attached two measurements with the above script that might be (somewhat) interesting in general.

The measurements are made with the internal signal generator from 1MHz to 25MHz sine (50cm coax with 50Ω dummy load).

The first frequency response is without bandwidth limitation.
You can see in the footer that it is approx. -0.75dB at approx. 25MHz (x,y).

The second frequency response is with the internal 20Mhz bandwidth limitation.
You can see in the footer that the -3dB point is reached at approx. 22.5Mhz (x,y).

Please note: y2 and Phase are not relevant here.
 

Offline vistorik

  • Regular Contributor
  • *
  • Posts: 103
  • Country: de
Re: New Hantek DSO2X1X models?
« Reply #1817 on: March 06, 2024, 08:12:58 pm »
Hola DavidAlfa! Used the dsoflash v0.34, made a backup, renamed the backup files as "restore.bin" and "restore.md5", then run write.bat and got an error.
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6073
  • Country: es
Re: New Hantek DSO2X1X models?
« Reply #1818 on: March 06, 2024, 09:06:01 pm »
"File doesn't match t*he Flash size" ???
What the heck?
Try running it several times to see if It always fails in the same way?
Is your system 100% working, not overclocked or anything?
Never seen this!
« Last Edit: March 06, 2024, 09:11:39 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline vistorik

  • Regular Contributor
  • *
  • Posts: 103
  • Country: de
Re: New Hantek DSO2X1X models?
« Reply #1819 on: March 06, 2024, 09:48:40 pm »
"File doesn't match t*he Flash size" ???
What the heck?
Try running it several times to see if It always fails in the same way?
Is your system 100% working, not overclocked or anything?
Never seen this!
3 times ran, the same result. "What the heck?"  This is the text from dsoflash v0.34 main.c:
Code: [Select]
else{
                printf("File doesn't match t*he flash size\r\n");
                printf(" Flash: %uBytes,   File: %uBytes\r\n", read_bytes, capacity);
                terminal_error();
         
"Is your system 100% working, not overclocked or anything?" nothing of these, windows 10, scope withour overclocking. Reading is OK. Without restore.md5 dsoflash writes the same restore.bin without problem.
« Last Edit: March 06, 2024, 10:15:57 pm by vistorik »
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6073
  • Country: es
Re: New Hantek DSO2X1X models?
« Reply #1820 on: March 06, 2024, 10:12:43 pm »
Is your system 32 or 64bit?
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline vistorik

  • Regular Contributor
  • *
  • Posts: 103
  • Country: de
Re: New Hantek DSO2X1X models?
« Reply #1821 on: March 06, 2024, 10:16:39 pm »
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6073
  • Country: es
Re: New Hantek DSO2X1X models?
« Reply #1822 on: March 06, 2024, 10:33:17 pm »
Spotted the bug. Try the lastest v0.35.
« Last Edit: March 06, 2024, 10:49:00 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline vistorik

  • Regular Contributor
  • *
  • Posts: 103
  • Country: de
Re: New Hantek DSO2X1X models?
« Reply #1823 on: March 06, 2024, 10:50:56 pm »
Spotted the bug. Try the lastest v0.35.
Now it works.
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6073
  • Country: es
Re: New Hantek DSO2X1X models?
« Reply #1824 on: March 06, 2024, 10:59:42 pm »
Great! :-+

The "F*lash" thing was a plain, giant typo, but wasn't the bug.

When I added md5 check, I loaded the files in the wrong order.
Md5 file is 33 bytes, so the last loaded file size was that.
Of course it didn't match the flash size!

Now I wonder how I missed this. After trying 300 times, maybe I missed the last one!
« Last Edit: March 06, 2024, 11:02:49 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf