Author Topic: Hacking the DSO2X1X  (Read 216134 times)

0 Members and 3 Guests are viewing this topic.

Offline morgan_flint

  • Regular Contributor
  • *
  • Posts: 95
  • Country: es
Re: Hacking the DSO2X1X
« Reply #550 on: January 06, 2024, 09:59:07 am »
@carlonb

I had this in my archive (attached file "Date daemon.zip"), but I'm unsure if it was the last version.

Another possibility to set the clock is via serial console, which can be accessed through the serial port (hardware mod required) or through the rear USB port (with the corresponding mod from DavidAlfa's drive). Regarding the first option, as DavidAlfa, I installed a serial to Bluetooth module, so now I can access it wirelessly.

Attached are the photos of my mods for the RTC and serial to BT (it's not very easy to see it in the photo, but the BT module is separated from the metallic sheet to avoid the antenna being affected by it)
« Last Edit: January 07, 2024, 11:18:42 am by morgan_flint »
 

Offline carlonb

  • Contributor
  • Posts: 19
  • Country: it
Re: Hacking the DSO2X1X
« Reply #551 on: January 07, 2024, 03:29:29 pm »
@morgan_flint,
Thankyou very much, downloaded the "date_daemon" for usb_stick volatile method and worked fine.
I'm sorry but I did not saw the file attached in the previous post.

May be useful to have this in the FAQ of DavidAlfa helping the DSO Hantek users to have the correct date stamp also if they have not skills to do the HW mod with RTC module.

Ok, now as soon I will receive the RTC module I will do the HW mod that is the only one logic solution to the lack of date stamp updating.
Thanks again
Carlo
« Last Edit: January 07, 2024, 04:58:58 pm by carlonb »
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6278
  • Country: es
Re: Hacking the DSO2X1X
« Reply #552 on: January 07, 2024, 04:25:48 pm »
OK, I added it.
Doesn't make much sense since, as you said, the only one logic solution is to use a RTC, and the reason why it was removed when the RTC mod was done.
« Last Edit: January 07, 2024, 04:27:26 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline carlonb

  • Contributor
  • Posts: 19
  • Country: it
Re: Hacking the DSO2X1X
« Reply #553 on: January 07, 2024, 04:47:19 pm »
OK, I added it.
Doesn't make much sense since, as you said, the only one logic solution is to use a RTC, and the reason why it was removed when the RTC mod was done.
Tankyou DavidAlfa, but all you have done (in this case with the idea of morgan_flint) it's correct to be archived.
One more reason if some user can't do some HW mods.
Ciao
Carlo
 

Offline uski

  • Frequent Contributor
  • **
  • Posts: 296
  • Country: us
Re: Hacking the DSO2X1X
« Reply #554 on: January 11, 2024, 06:21:19 pm »
I have successfully installed the RTC mod.

I decided to mount the DS1307 module like this:


3D printer mount: https://www.thingiverse.com/thing:6428771
If I had to do it again I would:
- Put a hole on the base plate of the mount and screw it from behind. I used double sided adhesive tape instead but it is not as good as a good old screw.
- Mount the module horizontally instead of vertically. The module as showed in the picture barely fits. It does work, but the clearances with the oscilloscope PCB and the frame are not as big as I would like.

I join the few others who complained about Hantek cheaping out on an RTC. What are they thinking? It's another situation of people designing test equipment and not using them. If they were using them the slightest bit, they would understand that it doesn't make sense to not have an RTC...
« Last Edit: January 11, 2024, 06:29:25 pm by uski »
 

Offline komodo

  • Newbie
  • Posts: 6
  • Country: cz
Re: Hacking the DSO2X1X
« Reply #555 on: February 03, 2024, 08:19:41 pm »
Hi,
I have already read all the posts in this thread and I must admit all your work.
But what I have not found and it will be great addon it's, if it will be possible to save screenshot with specific name.
Keyboard is already there, so the question is if it's available or is only somewhere within this binary blob from Hantek.
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6278
  • Country: es
Re: Hacking the DSO2X1X
« Reply #556 on: February 03, 2024, 10:28:03 pm »
Everything, including the keyboard, is embedded in the Hantek binary.
What you're asking can be only made by Hantek.
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline komodo

  • Newbie
  • Posts: 6
  • Country: cz
Re: Hacking the DSO2X1X
« Reply #557 on: February 04, 2024, 12:15:44 am »
I am trying to open ico files from your themes but i can't. What software should I use ? I am using Gimp in Linux but there is always an error opening the file.
Thanks

 

Offline komodo

  • Newbie
  • Posts: 6
  • Country: cz
Re: Hacking the DSO2X1X
« Reply #558 on: February 04, 2024, 12:17:18 am »
Everything, including the keyboard, is embedded in the Hantek binary.
What you're asking can be only made by Hantek.
Thank you.
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6278
  • Country: es
Re: Hacking the DSO2X1X
« Reply #559 on: February 04, 2024, 01:30:26 am »
I am trying to open ico files from your themes but i can't. What software should I use ? I am using Gimp in Linux but there is always an error opening the file.
Thanks
See here.
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline komodo

  • Newbie
  • Posts: 6
  • Country: cz
Re: Hacking the DSO2X1X
« Reply #560 on: February 04, 2024, 01:40:17 am »
I am trying to open ico files from your themes but i can't. What software should I use ? I am using Gimp in Linux but there is always an error opening the file.
Thanks
See here.
I'm sorry David, I am really new to scopes and especially to Hantek, but I have seen this file, but I cannot open these files.
I am Linux user and I've tried GIMP in linux and also in windows but always get "Microsoft Windows icon plug-in could not open image".
And even when I open the file it's blured and I cannot see what's there on the image.
Do I need to install some extra plugin or something ?
I've Debian Testing and Windows 10 in virtual.
« Last Edit: February 04, 2024, 01:59:12 am by komodo »
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6278
  • Country: es
Re: Hacking the DSO2X1X
« Reply #561 on: February 04, 2024, 09:53:23 am »
Did you read the pdf file in that post?
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline Aldo22

  • Super Contributor
  • ***
  • Posts: 1115
  • Country: ch
Re: Hacking the DSO2X1X
« Reply #562 on: February 04, 2024, 03:57:06 pm »
Is there a software to measure the frequency response via SCPI with the Hantek (like bode plot)?
I've played around a bit and think it's possible. You can determine the frequency/amplitude of the AWG via SCPI and read out the measurements of the device.

For example, here is some demo data that I measured via SCPI through the 6.5MHz BSF of the RF demo kit. Looks useful, doesn't it? VPP Ch1 is "Input", Ch2 the "Output".

Code: [Select]
Freq: 5952kHz
VPP Ch1: 0.648V
VPP Ch2: 0.488V
Phase: 180°

Freq: 6173kHz
VPP Ch1: 0.636V
VPP Ch2: 0.216V
Phase: 236°

Freq: 6494kHz
VPP Ch1: 0.628V
VPP Ch2: 0.02V
Phase: 0°

Freq: 6757kHz
VPP Ch1: 0.64V
VPP Ch2: 0.22V
Phase: 326°

Freq: 7042kHz
VPP Ch1: 0.64V
VPP Ch2: 0.548V
Phase: 30°

Am I making a mistake or is it relatively easy to get the data?
Is there already a ready-made solution for Hantek-SCPI bode plot?
I actually have no idea about the matter.  :palm:
« Last Edit: February 04, 2024, 06:41:17 pm by Aldo22 »
 

Offline Aldo22

  • Super Contributor
  • ***
  • Posts: 1115
  • Country: ch
Re: Hacking the DSO2X1X
« Reply #563 on: February 05, 2024, 03:45:01 pm »
I'll answer my own question.
Yes, it works somehow.
I'm still tinkering to get more reliable measurements, but it's better than doing it "by hand".
It's slow, but at least you get some result.
 

Offline komodo

  • Newbie
  • Posts: 6
  • Country: cz
Re: Hacking the DSO2X1X
« Reply #564 on: February 16, 2024, 12:04:17 pm »
Did you read the pdf file in that post?

Hi David.
Yes I did, but somehow I missed the part where it says to open the file in HEX editor and copy width and height:-)
Now all is ok, thank you very much.
 

Offline phmarek

  • Contributor
  • Posts: 14
  • Country: at
Re: Hacking the DSO2X1X
« Reply #565 on: February 18, 2024, 10:13:21 am »
How about doing a binary recursive analysis?

Ie. measure at 1MHz, at 9MHz, at 5MHz (left, right, center);
at 3 MHz and 7 MHz (new middle points);
at 2,4,6,8 MHz (next new middle points),
at 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5 MHz (if needed, see below),

etc. -- then you get a successively finer picture, and if you detect a flat curve over 5 (numerically) consecutive measurement points you could also skip the ones inbetween.
 

Offline Aldo22

  • Super Contributor
  • ***
  • Posts: 1115
  • Country: ch
Re: Hacking the DSO2X1X
« Reply #566 on: February 18, 2024, 11:02:10 am »
How about doing a binary recursive analysis?

Ie. measure at 1MHz, at 9MHz, at 5MHz (left, right, center);
at 3 MHz and 7 MHz (new middle points);
at 2,4,6,8 MHz (next new middle points),
at 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5 MHz (if needed, see below),

etc. -- then you get a successively finer picture, and if you detect a flat curve over 5 (numerically) consecutive measurement points you could also skip the ones inbetween.

I assume this refers to my question?

The problem is rather that the measurement takes quite a long time for such methods.
It doesn't fluctuate much and with more measuring points you also get a more detailed picture.
Averaging also means that you can miss peaks, especially if you have few measuring points.

Btw. the topic is now in the other thread, actually it doesn't belong here (my mistake).
 

Offline phmarek

  • Contributor
  • Posts: 14
  • Country: at
Re: Hacking the DSO2X1X
« Reply #567 on: February 19, 2024, 04:12:04 pm »
Hi DavidAlfa,

do you still have the Linux Kernel Sources? I can't find them in your Google Drive.

Would you try building a kernel that has the perf infrastructure? I'm pretty certain I can patch the software to use less CPU, but that would be easier with good measurement tools.

Thanks!
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6278
  • Country: es
Re: Hacking the DSO2X1X
« Reply #568 on: February 19, 2024, 06:45:27 pm »
Still there! Drive / Hacking / Sources.
I have no idea, where's that option? In menuconfig?
Perf_events are enabled. Maybe only the perf binary is needed?

I can build perf in https://github.com/aodzip/buildroot-tiny200

But not in Hantek sources. It's in linux/tools/perf and can be compiled manually with make tools/perf, but my glibc version isn't matching.
Sorry, I can't spend more time in this.
« Last Edit: February 19, 2024, 07:40:45 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline jovan_kineas

  • Contributor
  • Posts: 24
  • Country: jp
Re: Hacking the DSO2X1X
« Reply #569 on: March 18, 2024, 04:25:12 pm »
Hi, I have made a new Power Supply PCB board for the oscilloscope that incorporates a 12 volt output to put the fan that Hantek should have originally placed. I will to share the gerber file with you here, i use JLCPCB, but you can use PCBWAY or any other PCB manufacturing service.

https://youtu.be/cv0wEgZCk1w
2077910-02077916-1

Fan 12v: https://www.amazon.com/-/es/dp/B07FRPF8LY?psc=1&ref=ppx_yo2ov_dt_b_product_details

Module HLK-PM12: https://www.amazon.com/-/es/dp/B0B63WP3LF?ref=ppx_yo2ov_dt_b_product_details&th=1

Heatsink 20x20x16mm Black Color: https://www.amazon.com/-/es/gp/product/B07ZC65NJL/ref=ppx_yo_dt_b_asin_title_o07_s01?ie=UTF8&th=1&language=en_US

Note: I am not responsible if you damage your own oscilloscope by attempting to make this modification without taking proper precautions, make notes, take pictures and check and double check before proceeding. Make this modification only when your warranty period has expired. Qingdao Hantek Electronic Co., Ltd. is not affected in any way by you modifying your own device since you paid for it. I provide the PCB design for free to the community and I do not profit in any way from doing this.
« Last Edit: March 20, 2024, 07:38:58 am by jovan_kineas »
 
The following users thanked this post: songtoday

Offline Aldo22

  • Super Contributor
  • ***
  • Posts: 1115
  • Country: ch
Re: Hacking the DSO2X1X
« Reply #570 on: March 18, 2024, 05:08:52 pm »
Hi

Do you have problems with overheating?
Mine hardly gets warm and I like the fact that it has no fan and is quiet.
And I haven't had a single crash since the last SW/FW update.
« Last Edit: March 18, 2024, 05:10:49 pm by Aldo22 »
 

Offline jovan_kineas

  • Contributor
  • Posts: 24
  • Country: jp
Re: Hacking the DSO2X1X
« Reply #571 on: March 18, 2024, 05:15:26 pm »
Hi, on very hot days I notice that it gets a little slow and I better wait to use it at night, I don't have air conditioning, the fan is very quiet, yesterday it was on all day and it never got hot or slow, but yes You don't need to make this modification, it's fine too.
 
The following users thanked this post: Aldo22

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6278
  • Country: es
Re: Hacking the DSO2X1X
« Reply #572 on: March 19, 2024, 09:12:48 pm »
Doesn't make any sense, there's no cpu thermal throttling, it always runs at the same speed, most probably you're running different time scales.
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline jovan_kineas

  • Contributor
  • Posts: 24
  • Country: jp
Re: Hacking the DSO2X1X
« Reply #573 on: March 20, 2024, 07:07:12 am »
Puedo preguntar para quien es dirigida esa opinión?
 

Offline jovan_kineas

  • Contributor
  • Posts: 24
  • Country: jp
Re: Hacking the DSO2X1X
« Reply #574 on: March 20, 2024, 07:32:41 am »
More photos of my upgrade.
 
The following users thanked this post: Aldo22, songtoday


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf