Author Topic: New 2ch pocket DSO+SG - Zeeweii DSO2512G  (Read 139241 times)

0 Members and 13 Guests are viewing this topic.

Offline Dosergen

  • Newbie
  • Posts: 1
  • Country: ru
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #475 on: October 09, 2023, 09:18:46 pm »
Greetings forum members. Could you tell me , if it's possible update to version 1.3.0C for the oscilloscope revision (HW 9.15 / SW 1.2.9C)?
 

Offline ptluis

  • Frequent Contributor
  • **
  • Posts: 333
  • Country: pt
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #476 on: October 12, 2023, 01:43:00 am »
Greetings forum members. Could you tell me , if it's possible update to version 1.3.0C for the oscilloscope revision (HW 9.15 / SW 1.2.9C)?


v1.3.0C is the update version for v1.2.9C. I think new batch scopes come with the new version installed. unfortunately I don't have the v1.3.0C available. I suggest you to contact zeeweii and see if they send you the firmware.
 
The following users thanked this post: Dosergen

Offline timschuerewegen

  • Contributor
  • Posts: 40
  • Country: be
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #477 on: October 13, 2023, 07:13:41 am »
Some interesting things about the firmware:
- it contains seemingly fully functional code to read/write from/to the microsd card (but it is not used because of a "use_sdcard" global variable that gets initialised to 0)
- images are saved to spi flash as 2048 byte raw data blobs (2x300 bytes for ch1, 2x300 bytes for ch2, and some other data)
- usb image transfer mode creates a new/empty ramdisk, reads the saved blobs from spi flash, renders them and creates bmp files on the ramdisk
- usb firmware update mode also creates a new/empty ramdisk
- there are 2x15000 bytes waveform buffers per channel, so 50 screens worth of waveform data
 
The following users thanked this post: ptluis, REWEREWE, Aldo22

Offline RAPo

  • Frequent Contributor
  • **
  • Posts: 696
  • Country: nl
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #478 on: October 13, 2023, 08:03:58 am »
How did you get access to the raw data blobs?
Some interesting things about the firmware:
- it contains seemingly fully functional code to read/write from/to the microsd card (but it is not used because of a "use_sdcard" global variable that gets initialised to 0)
- images are saved to spi flash as 2048 byte raw data blobs (2x300 bytes for ch1, 2x300 bytes for ch2, and some other data)
- usb image transfer mode creates a new/empty ramdisk, reads the saved blobs from spi flash, renders them and creates bmp files on the ramdisk
- usb firmware update mode also creates a new/empty ramdisk
- there are 2x15000 bytes waveform buffers per channel, so 50 screens worth of waveform data
 

Offline timschuerewegen

  • Contributor
  • Posts: 40
  • Country: be
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #479 on: October 13, 2023, 08:57:32 am »
I did not. I am reverse engineering the 1.2.8C firmware while I wait for my DSO2512G to arrive. My ultimate goal is to create a fully compilable 100% asm version of the firmware on my DSO2512G (hopefully the latest version) so that I can make modifications to the firmware without any restrictions and loss of functionality. The parts of the code that I want to modify will be converted to C but most of it can stay in pure asm like low level usb stuff, etc. and unknown stuff.

How did you get access to the raw data blobs?
« Last Edit: October 13, 2023, 11:41:05 am by timschuerewegen »
 
The following users thanked this post: ledtester, battlecoder, REWEREWE, Aldo22

Offline RAPo

  • Frequent Contributor
  • **
  • Posts: 696
  • Country: nl
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #480 on: October 13, 2023, 10:12:02 am »
Ah so, thanks.
I did not. I am reverse engineering the 1.2.8C firmware while I wait for my DSO2512G to arrive. My ultimate goal is to create a fully compilable 100% asm version of the firmware on my DSO2512G (hopefully the latest version) so that I can make modifications to the firmware without any restrictions and loss of functionality. The parts of the code that I want to modify will be rewritten in C but most of it can stay in
pure asm like low level usb stuff, etc. and unknown stuff.
 

Offline ptluis

  • Frequent Contributor
  • **
  • Posts: 333
  • Country: pt
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #481 on: October 13, 2023, 04:26:43 pm »
I did not. I am reverse engineering the 1.2.8C firmware while I wait for my DSO2512G to arrive. My ultimate goal is to create a fully compilable 100% asm version of the firmware on my DSO2512G (hopefully the latest version) so that I can make modifications to the firmware without any restrictions and loss of functionality. The parts of the code that I want to modify will be converted to C but most of it can stay in pure asm like low level usb stuff, etc. and unknown stuff.

How did you get access to the raw data blobs?

If you bought your unit directly from zeeweii you probably get firmware 1.3.0C, from other sellers it's a kind of lottery.
 

Offline timschuerewegen

  • Contributor
  • Posts: 40
  • Country: be
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #482 on: October 20, 2023, 02:56:04 pm »
My DSO2512G arrived. It has PCB V9.15 and FW V1.3.0C.

Hacking is fun:
https://youtu.be/3M0R_1HX7KE
 
The following users thanked this post: ptluis, REWEREWE, Aldo22

Offline ptluis

  • Frequent Contributor
  • **
  • Posts: 333
  • Country: pt
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #483 on: October 20, 2023, 03:24:19 pm »
My DSO2512G arrived. It has PCB V9.15 and FW V1.3.0C.

Hacking is fun:
https://youtu.be/3M0R_1HX7KE

What are the main differences in code between 1.2.8C and 1.3.0C, did you manage to find out?
 

Offline timschuerewegen

  • Contributor
  • Posts: 40
  • Country: be
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #484 on: October 20, 2023, 03:40:15 pm »
No,  I don't know the differences between V1.2.8C+ and V1.3.0C.

I just added .wav file export to my modified firmware, what else can I add/change :)

 
The following users thanked this post: ptluis, REWEREWE, Aldo22

Online Aldo22

  • Frequent Contributor
  • **
  • Posts: 848
  • Country: ch
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #485 on: October 20, 2023, 04:11:13 pm »
I just added .wav file export to my modified firmware, what else can I add/change :)

Cool!  8)
I also wanted to export wave forms to import them into the AWG.
But since I have no idea about firmware hacking, I just tried to read the information from the bitmap. The little software is not ready yet but the wave form looks better than the original!  ;D

Will you share your firmware changes with us?
 
The following users thanked this post: ptluis

Offline timschuerewegen

  • Contributor
  • Posts: 40
  • Country: be
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #486 on: October 20, 2023, 04:49:51 pm »
Sure. But you should make a backup of your SPI flash chip first in case something goes wrong. I desoldered my SPI flash chip and used a cheap USB BIOS programmer to dump it. I am also using it to reprogram the SPI flash chip to test my firmware changes. It should also be possible to read/write the SPI flash chip via USB "FEL" mode but only if you can insert a microSD card into the microSD slot, so you can enter USB FEL mode, which is impossible to do since the battery connector is in the way  >:(

If anyone wants to discuss DSO2512G firmware hacking with me:
https://discord.gg/7UN88dhmKs

Will you share your firmware changes with us?
 
The following users thanked this post: agaelema, battlecoder, REWEREWE, luzemario

Offline timschuerewegen

  • Contributor
  • Posts: 40
  • Country: be
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #487 on: October 20, 2023, 05:35:08 pm »
The first 300 bytes in the .wav blob are 300 Y1 values, the next 300 bytes are 300 Y2 values. Draw 300 vertical lines between Y1 and Y2 and you see the waveform.



I also wanted to export wave forms to import them into the AWG.
But since I have no idea about firmware hacking, I just tried to read the information from the bitmap. The little software is not ready yet but the wave form looks better than the original!  ;D
 
The following users thanked this post: REWEREWE, Aldo22

Online Aldo22

  • Frequent Contributor
  • **
  • Posts: 848
  • Country: ch
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #488 on: October 20, 2023, 06:02:48 pm »
The first 300 bytes in the .wav blob are 300 Y1 values, the next 300 bytes are 300 Y2 values. Draw 300 vertical lines between Y1 and Y2 and you see the waveform.

Great!  :-+
But you don't get more resolution this way, right?
One can also get 300x200 px by scanning the bitmap, although it's a bit more complicated and possibly less reliable.
« Last Edit: October 20, 2023, 06:19:05 pm by Aldo22 »
 

Offline timschuerewegen

  • Contributor
  • Posts: 40
  • Country: be
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #489 on: October 20, 2023, 11:11:10 pm »
But you don't get more resolution this way, right?

I modified the firmware to save some fpga/waveform buffers to the SPI flash and one of the buffers, the one used to calculate all the measurements (pkpk, min, max, ...), contained 1200 bytes so I plotted them

 
The following users thanked this post: REWEREWE, Aldo22

Online Aldo22

  • Frequent Contributor
  • **
  • Posts: 848
  • Country: ch
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #490 on: October 21, 2023, 09:32:22 am »
But you don't get more resolution this way, right?
I modified the firmware to save some fpga/waveform buffers to the SPI flash and one of the buffers, the one used to calculate all the measurements (pkpk, min, max, ...), contained 1200

Not bad!  :-+ :clap:

But if the Y resolution remains the same, it's probably not extremely useful.
Do you manage to get to the whole buffer to see more of the timeline?
Like you can see in the zoom tool in the upper area?
That would perhaps be a real advantage
Sorry if I'm asking stupid questions. I have no idea what is possible this way.




« Last Edit: October 21, 2023, 09:33:57 am by Aldo22 »
 

Offline timschuerewegen

  • Contributor
  • Posts: 40
  • Country: be
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #491 on: October 21, 2023, 10:26:23 am »
Do you manage to get to the whole buffer to see more of the timeline?
Like you can see in the zoom tool in the upper area?
That would perhaps be a real advantage

In zoom mode the firmware requests/reads memory from the FPGA two times instead of one, using a different time base, so it can draw the upper and lower waveforms, so what you see on the LCD is probably all the data there is.
 
The following users thanked this post: REWEREWE, Aldo22

Offline timschuerewegen

  • Contributor
  • Posts: 40
  • Country: be
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #492 on: October 21, 2023, 11:33:55 am »
What are the main differences in code between 1.2.8C and 1.3.0C, did you manage to find out?

I did find a feature in V1.3.0C that does not exist in V1.2.8C+, a "real time" auto mode that can be activated by long pressing the AUTO key.

 
The following users thanked this post: REWEREWE

Offline timschuerewegen

  • Contributor
  • Posts: 40
  • Country: be
Re: New 2ch pocket DSO+SG - SigPeak DSO2512G
« Reply #493 on: October 21, 2023, 12:44:01 pm »
I made a one-page cheat sheet for myself if you're interested.

I found a "Gain calib" (V1.2.8C) and "Factory calib" (V1.2.8C+ and newer) mode, that can be actived from the "Meas" CH2 menu by long pressing DOWN.

I also found a reset option for some of the settings that can be activated from the "Set" menu by long pressing the AUTO key. All FW versions.
 
The following users thanked this post: REWEREWE

Online Aldo22

  • Frequent Contributor
  • **
  • Posts: 848
  • Country: ch
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #494 on: October 21, 2023, 12:51:34 pm »
I did find a feature in V1.3.0C that does not exist in V1.2.8C+, a "real time" auto mode that can be activated by long pressing the AUTO key.
Yes, ptluis called it "continuous auto mode"
https://www.eevblog.com/forum/testgear/new-2ch-pocket-dsosg-sigpeak-dso2512g/msg4984915/#msg4984915

I found a "Gain calib" (V1.2.8C) and "Factory calib" (V1.2.8C+ and newer) mode, that can be actived from the "Meas" CH2 menu by long pressing DOWN.
Yes, i had already updated the cheat sheet. See "DSO2512g_plus_cheat.pdf"
https://www.eevblog.com/forum/testgear/new-2ch-pocket-dsosg-sigpeak-dso2512g/msg4722281/#msg4722281




 

Offline timschuerewegen

  • Contributor
  • Posts: 40
  • Country: be
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #495 on: October 21, 2023, 12:59:29 pm »
Yes, i had already updated the cheat sheet.

The "long press down" one is not in your cheat sheet though, there are 3 calib modes:

Long press DOWN = "Factory calib" (all versions)
Long press V = "Calib:DC offset" (V1.2.8C+ and newer)
Long press mV = Calib:AC gain" (V1.2.8C+ and newer)
 
The following users thanked this post: REWEREWE

Online Aldo22

  • Frequent Contributor
  • **
  • Posts: 848
  • Country: ch
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #496 on: October 21, 2023, 01:49:20 pm »
Yes, i had already updated the cheat sheet.

The "long press down" one is not in your cheat sheet though, there are 3 calib modes:

Long press DOWN = "Factory calib" (all versions)
Long press V = "Calib:DC offset" (V1.2.8C+ and newer)
Long press mV = Calib:AC gain" (V1.2.8C+ and newer)

OK, and what is "Factory calib"?
Is this the same as can be achieved from the "Aux" menu?


 

Offline timschuerewegen

  • Contributor
  • Posts: 40
  • Country: be
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #497 on: October 21, 2023, 02:21:10 pm »
OK, and what is "Factory calib"?
Is this the same as can be achieved from the "Aux" menu?

No. I checked the code and it does exactly the same as "Calib:AC gain" (long press mV) but displays "Gain calib mode" instead of "Exit" when you leave that mode.
 
The following users thanked this post: REWEREWE

Online Aldo22

  • Frequent Contributor
  • **
  • Posts: 848
  • Country: ch
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #498 on: October 21, 2023, 03:09:54 pm »
No. I checked the code and it does exactly the same as "Calib:AC gain" (long press mV) but displays "Gain calib mode" instead of "Exit" when you leave that mode.
Thank you.
I'm not going to update the cheat sheet because of this.
The cheat sheet is not necessarily comprehensive, but it serves to
- remember shortcuts for frequently used functions
- remember functions that only work with keyboard shortcuts.

And I'd like to keep it on one A4 page for printing, so there must be a good reason to change it.  ;)

what else can I add/change :)

As I said before, I don't know what you can do, but you could fix bugs, for example.  ;)

The DSO2512G is actually quite usable, but there is a problem in negative DC range.
Maybe this is already fixed in newer firmware, but have a look.

Try e.g. -3 Volt Offset DC.
On my device the grid position and the "mean" value do not match.
When the line on the grid is at -3 volts, the "mean" value shows e.g. -3.2 volts.
This looks like a software problem to me, otherwise both readings would be wrong to the same degree.

« Last Edit: October 21, 2023, 06:16:39 pm by Aldo22 »
 
The following users thanked this post: REWEREWE

Offline timschuerewegen

  • Contributor
  • Posts: 40
  • Country: be
Re: New 2ch pocket DSO+SG - Zeeweii DSO2512G
« Reply #499 on: October 22, 2023, 09:03:36 am »
The DSO2512G is actually quite usable, but there is a problem in negative DC range.
Maybe this is already fixed in newer firmware, but have a look.

V1.3.0C has the same "bug". I have the formula that calculates the "Mean" value from the raw FPGA data so I will check if it is a bug or a feature  :-DD



« Last Edit: October 22, 2023, 09:13:18 am by timschuerewegen »
 
The following users thanked this post: REWEREWE


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf