Author Topic: Hacking the DSO2X1X  (Read 141444 times)

0 Members and 2 Guests are viewing this topic.

Offline pcprogrammer

  • Super Contributor
  • ***
  • Posts: 3710
  • Country: nl
Re: Hacking the DSO2X1X
« Reply #450 on: August 31, 2022, 05:34:49 am »
Please lets keep this problem in your own thread you started about it.

For others it is here: https://www.eevblog.com/forum/testgear/is-my-hantek-dso2c10-badinaccurate/?topicseen

Offline phmarek

  • Contributor
  • Posts: 14
  • Country: at
Re: Hacking the DSO2X1X
« Reply #451 on: September 15, 2022, 05:48:33 pm »
Does anybody know what firmware version 2022-07-27 does differently?

I haven't seen any changelog.
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5913
  • Country: es
Re: Hacking the DSO2X1X
« Reply #452 on: September 15, 2022, 11:26:03 pm »
Hantek never makes changelogs... Go figure.
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline morgan_flint

  • Regular Contributor
  • *
  • Posts: 94
  • Country: es
Re: Hacking the DSO2X1X
« Reply #453 on: September 18, 2022, 11:01:18 am »
Found something funny while playing on the console...
I issued a poweroff command to shut down the system and, after its completion, saw that some key LEDs remained on. Nothing strange so far, the correspondent GPIO or buffer might be stuck at that state. But when I pressed the keys, the "beep" still sounded, with the system off. This must mean that the keyboard PCB generates it autonomously, or maybe (more probable) it's the FPGA that generates it (and it doesn't shut down when de MCU does)
 

Offline pcprogrammer

  • Super Contributor
  • ***
  • Posts: 3710
  • Country: nl
Re: Hacking the DSO2X1X
« Reply #454 on: September 18, 2022, 11:20:29 am »
The keys, leds and the beeper are connected to the FPGA, so it might well be the case that it does work without the MCU.

The thing I wonder is how the MCU gets the information about a key press or a rotary dial change. There are two interfaces between the FPGA and the MCU. SPI and I2C.

SPI is used for loading the bit stream into the FPGA, and the sample data will be read via this channel too, but I don't know if the user interface signals are also transferred via this channel.

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5913
  • Country: es
Re: Hacking the DSO2X1X
« Reply #455 on: September 18, 2022, 01:22:57 pm »
The keyboard scanning / beep is autonomously handled by the fpga, the cpu access it using i2c.
It doesn't beep on booting because the fpga firmware is loaded at the very end, just when the thing starts clickign and flashing.
Clearly, there's some configurable bits through i2c, on the fpga side.
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline chaicl

  • Newbie
  • Posts: 4
  • Country: sg
Re: Hacking the DSO2X1X
« Reply #456 on: October 12, 2022, 07:44:51 am »
Just received my DSO2C10 with Firmware 3205 and Software 1.0.2.0.0 (220831.00)
 
The following users thanked this post: eevbstedt, morgan_flint

Offline morgan_flint

  • Regular Contributor
  • *
  • Posts: 94
  • Country: es
Re: Hacking the DSO2X1X
« Reply #457 on: October 12, 2022, 04:26:20 pm »
Just received my DSO2C10 with Firmware 3205 and Software 1.0.2.0.0 (220831.00)

Thanks for the info!

Seems like we have a new FW version, the latest one listed in the FAQ is 3203, and a new SW version also (last one listed is dated 220517).

They don't appear yet on Hantek's website downloads, though...

Can you also report your hardware version?
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5913
  • Country: es
Re: Hacking the DSO2X1X
« Reply #458 on: October 12, 2022, 05:27:37 pm »
Just received my DSO2C10 with Firmware 3205 and Software 1.0.2.0.0 (220831.00)
Yes, I was aware of FW3205, someone at 4PDA uploaded it recently to my Drive.
Could you make and upload a backup using Backup Builder from the FAQ?
That way I could extract the software and the FW and make new update packages.
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 
The following users thanked this post: eevbstedt

Offline chaicl

  • Newbie
  • Posts: 4
  • Country: sg
Re: Hacking the DSO2X1X
« Reply #459 on: October 13, 2022, 12:23:32 am »
Just received my DSO2C10 with Firmware 3205 and Software 1.0.2.0.0 (220831.00)
Could you make and upload a backup using Backup Builder from the FAQ?

Made.  Of the two backups, do you need to full one?

BTW. I realised that that the 2C10 refuses to read big USB thumb drive.  Is there a size limit?  Couldn't find in the manual.
 

Offline chaicl

  • Newbie
  • Posts: 4
  • Country: sg
Re: Hacking the DSO2X1X
« Reply #460 on: October 13, 2022, 12:25:26 am »
Just received my DSO2C10 with Firmware 3205 and Software 1.0.2.0.0 (220831.00)

Thanks for the info!

Seems like we have a new FW version, the latest one listed in the FAQ is 3203, and a new SW version also (last one listed is dated 220517).

They don't appear yet on Hantek's website downloads, though...

Can you also report your hardware version?
Just received my DSO2C10 with Firmware 3205 and Software 1.0.2.0.0 (220831.00)
Yes, I was aware of FW3205, someone at 4PDA uploaded it recently to my Drive.
Could you make and upload a backup using Backup Builder from the FAQ?
That way I could extract the software and the FW and make new update packages.

003.002.001.000.000.000.000.000  I have not opened the back to look at the PCB yet...
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5913
  • Country: es
Re: Hacking the DSO2X1X
« Reply #461 on: October 13, 2022, 06:39:44 am »
For me it works without issue with any USB drive, just make sure it's formatted in FAT32 and not ntfs or exfat.
I need the full one!
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

Offline morgan_flint

  • Regular Contributor
  • *
  • Posts: 94
  • Country: es
Re: Hacking the DSO2X1X
« Reply #462 on: October 13, 2022, 05:18:08 pm »
003.002.001.000.000.000.000.000  I have not opened the back to look at the PCB yet...
Curious! Being much older (in theory), mine is 003.002.001.000.000.000.000.001

PCB marking is "DSO2D15_V1.7 2021.1.14"
 

Offline vzayka

  • Newbie
  • Posts: 3
  • Country: ua
Re: Hacking the DSO2X1X
« Reply #463 on: October 13, 2022, 05:22:30 pm »
003.002.001.000.000.000.000.000  I have not opened the back to look at the PCB yet...
Curious! Being much older (in theory), mine is 003.002.001.000.000.000.000.001

PCB marking is "DSO2D15_V1.7 2021.1.14"
.000 - 2C10
.001 - 2D15
 
The following users thanked this post: morgan_flint

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5913
  • Country: es
Re: Hacking the DSO2X1X
« Reply #464 on: October 13, 2022, 05:24:28 pm »
The last pcb field is another method to indicate the presence of the function generator.:
AWG not present = .000
AWG is present  = .001

Hantek uses two methods OR'ed together:
- Reading the model 2Dxx/2Cxx
- The pcb bits

Any of them will enable the generator, in fact you can leave the model as 2C10, set the pcb to .001, and the generator will work.
« Last Edit: October 13, 2022, 06:10:25 pm 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

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5913
  • Country: es
Re: Hacking the DSO2X1X
« Reply #465 on: October 13, 2022, 06:05:42 pm »
I wasn't happy with system screen closing when taking a screenshot.
So I just wasted another 20 minutes of my life in doing nothing useful but "Steps to make a very complicated screenshot"

Dump the framebuffer to the usb drive
Code: [Select]
cat /dev/fb0 >/mnt/udisk/picture.raw

Image is in raw Big endian bgr565 format (Yes, R and B are swapped)
Convert to png using ffmpeg, swapping the colours in the process.
(This was a PITA to find out and took a lot of trial and error, the outputs were better than the famous Andy Warhol drawings :-DD)
Code: [Select]
ffmpeg.exe -vcodec rawvideo -f rawvideo -pix_fmt rgb565le -s 800x480 -i picture.raw -filter:v colorchannelmixer=rr=0:rb=1:br=1:bb=0 -vcodec png image.png

And here's the proof I can have a DSO2C10 with generator enabled!

(Somehow this PNG format breaks the forum thumbnail and shows always in large mode)
« Last Edit: November 06, 2022, 04:53:01 pm 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, vzayka

Offline ZXSP3C

  • Contributor
  • Posts: 10
  • Country: gb
Re: Hacking the DSO2X1X
« Reply #466 on: October 19, 2022, 08:04:25 pm »
Just received my DSO2C10 (purchased 17/10/22) with Firmware 3204 and Software 1.0.2.0.0 (220210.00)

Not opened it up yet, but did try to save the system infomation but failed asking to insert udisk even though it was already plugged in?

Tried two different usb drives and also reformatted both using both windows and sd card formatter to make sure both were Fat32...  :o

Read that FW3204 can mess up the USB... So tried installing the PC Software instead but having an issue with visa32.dll missing...  ???

Not a great start!  |O

So went old skool = Pen & Paper!  :-+

Anyone got any ideas on the USB issue or missing visa32.dll
 

Online BillyO

  • Super Contributor
  • ***
  • Posts: 1394
  • Country: ca
Re: Hacking the DSO2X1X
« Reply #467 on: October 19, 2022, 08:09:08 pm »
I'm toying with the idea of buying one of these just so I can get in on the fun.  It seems to me that owning one of these would be kind of like ticking a polar bear.  Always wanted to do that.
Bill  (Currently a Siglent fanboy)
--------------------------------------------------
Want to see an old guy fumble around re-learning a career left 40 years ago?  Well, look no further .. https://www.youtube.com/@uni-byte
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5913
  • Country: es
Re: Hacking the DSO2X1X
« Reply #468 on: October 19, 2022, 08:49:34 pm »
Ensure there's nothing at the back USB port, then go yo Tools and push Update several times.
If that wakes the USB, it's a common issue, apply the USB fix :)

It seems to me that owning one of these would be kind of like ticking a polar bear.
It's more like taking a leprous to a roller coaster.
« Last Edit: October 19, 2022, 08:52:02 pm 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: ZXSP3C

Offline ZXSP3C

  • Contributor
  • Posts: 10
  • Country: gb
Re: Hacking the DSO2X1X
« Reply #469 on: October 19, 2022, 09:02:57 pm »
Ensure there's nothing at the back USB port, then go yo Tools and push Update several times.
If that wakes the USB, it's a common issue, apply the USB fix :)

I've been messing about and deliberately connected both back and front usbs to see if it would beep, it did... and alternated between usb lead and usb drive icons.

Turned it off, unplugged the rear usb lead... back on... and the usb drive started working!  ::)

Ah, USB fix... completely forgot about that... Thanks for the reminder @DavidAlfa.  :-+

EDIT ~

USB Fix added... Working as it should now!

Small Font Added... A little small, but looks 100 times better than before... Is the small font available in bold?

Run out of time, so will open it tomorrow... see if it has the awg components populated or not.  :-BROKE
« Last Edit: October 19, 2022, 10:41:54 pm by ZXSP3C »
 

Offline dirtmover

  • Contributor
  • Posts: 25
  • Country: ca
Re: Hacking the DSO2X1X
« Reply #470 on: October 20, 2022, 03:48:36 pm »
It seems to me that owning one of these would be kind of like ticking a polar bear.
It's more like taking a leprous to a roller coaster.

Now that's a cracking analogy :-DD
 

Offline ZXSP3C

  • Contributor
  • Posts: 10
  • Country: gb
Re: Hacking the DSO2X1X
« Reply #471 on: October 20, 2022, 07:00:54 pm »
EDIT ~

USB Fix added... Working as it should now!

Small Font Added... A little small, but looks 100 times better than before... Is the small font available in bold?

Run out of time, so will open it tomorrow... see if it has the awg components populated or not.  :-BROKE

Opened it up and...

X1, U18, U35 all present! :o

Board is V1.7 2021/01/14...

I've run the Backup Builder and have the two Files saved.  :-+

So I should just be able to run the dso3kb_2D15_conversion.upk, right?  ???

Not sure it's worth the hassle of changing the FW...  Or does that happen with the conversion anyway?:-//
« Last Edit: October 20, 2022, 08:41:42 pm by ZXSP3C »
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5913
  • Country: es
Re: Hacking the DSO2X1X
« Reply #472 on: October 20, 2022, 09:43:47 pm »
No other better fonts available.
Yeah just go straighforward.
The fw isn't related to the generator,  handles everything.
Old versions tend to crash, just follow the faq instructions, updating it isn't a hassle at all, takes 10 seconds.
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 
The following users thanked this post: ZXSP3C

Offline ZXSP3C

  • Contributor
  • Posts: 10
  • Country: gb
Re: Hacking the DSO2X1X
« Reply #473 on: October 20, 2022, 10:01:49 pm »
No other better fonts available.
Yeah just go straighforward.
The fw isn't related to the generator,  handles everything.
Old versions tend to crash, just follow the faq instructions, updating it isn't a hassle at all, takes 10 seconds.

No problem on the font...

Any idea what if anything, 3205 improves/fixes... over 3204, can't seem to find any info or peoples findings on it?

Will report back once I've done the D15 conversion!

Appreciate yours and everyone elses time and work on figuring all this stuff out! :-+
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5913
  • Country: es
Re: Hacking the DSO2X1X
« Reply #474 on: October 20, 2022, 10:15:05 pm »
3205 is just a week old. Apparently it fixes rhe decoder (UART decoding and possiblyothers didn't work on 3204).
In any case of having issues, 3202 is a safe bet.
What about sending me your backup so I can make a software update with 2022.10.02? ;-)

Still, this is the hacking thread, for support please use the main thread instead!
« Last Edit: October 20, 2022, 10:19:40 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