Author Topic: Hacking the Rigol MSO5000 series oscilloscopes  (Read 930113 times)

0 Members and 7 Guests are viewing this topic.

Offline qali.pro

  • Contributor
  • Posts: 17
  • Country: qa
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2175 on: December 21, 2021, 05:19:54 am »
Does this patch also block the calling home to Rigol, or does it just enable the license.

I would suggest persons test the new FW before they patch it to see if the FW has any bugs, if we don't test the FW then it will be difficult to report a bug to Rigol. I think there is a general resistance to report issues to support and therefore a number of issues don't get resolved or included in firmware fix. I see the Siglent guys report issues to Tautech instead of calling Siglent support, so this may be related to persons fearing support will discover they have hacked the scope. The manufactures are fully aware the scopes  are hacked, if they made them un-hackable they would lose a lot of business.

Some bugs may take years to be reported as scopes have so many options that many people never use all of them and so bugs go undiscovered.

I did some testing I have confirmed it's blocking all outside requests , (Because of that the online upgrade Button does not work any more).


Hello everybody,



I apologize to everyone for the previous problems.
Here is a new patch for real fix all previous problems (finish tested it's working perfectly well for me).


FW:01_03_00_03
Build: 2021-10-18

(Attachment Link) " alt="" class="bbc_img" />
(Attachment Link) " alt="" class="bbc_img" />
(Attachment Link) " alt="" class="bbc_img" />
(Attachment Link) " alt="" class="bbc_img" />

Hi quali.pro,

thanks for all your effort and congrats  ;)

"zidot" already showed me how to patch my actual firmware.
Can you tell me if you would recommend to update my firmware to yours
(if this is possible?) and afterwards patch it or should I stay and patch it as it is?

I have following data read out of mine:
Firmware:     0A.01.03.00.01
Hardware:    01.01.000
Boot:            2018.06.27
Build:            2021-05-04 15:50:32

Thanks in advance.


Yes i  recommend to update (if you like), it is somewhat safe, to be on the safe side , (if you do crazy stuff ) you must make a backup "rigol/data". (check  #879 https://www.eevblog.com/forum/testgear/hacking-the-rigol-mso5000-series-oscilloscopes/msg2241168/#msg2241168)
You can go to the original F.W anytime you want.
« Last Edit: December 21, 2021, 05:26:42 am by qali.pro »
 
The following users thanked this post: thm_w, imoko

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 6389
  • Country: ca
  • Non-expert
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2176 on: December 21, 2021, 10:39:13 pm »
its these type of thing which Dave was complaining about in his initial review. when it first came out. i have been hoping for a re-review. like an update bug hunt with the newest firmware. but it has not happen yet?

but you would think so. given how many people have bought this scope. there are not others competing much close to it in the raw price / performance. once you figure out the per $ dollar value (per mhz / per msps / per channel). what with all the extra features like the signal gen, spectrum analyzer etc. included too

Because it just does not matter. Don't waste your time waiting for one. Most of the original bugs were related to the logic analyzer, which 99% of people never use (and should not use, unless you just need time corelation). There were never any "showstoppers".
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 

Offline Howardlong

  • Super Contributor
  • ***
  • Posts: 5319
  • Country: gb
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2177 on: December 23, 2021, 05:11:34 pm »
Most of the original bugs were related to the logic analyzer, which 99% of people never use (and should not use, unless you just need time corelation).

I use the LA at the very least half the time I switch on the scope.

 
The following users thanked this post: dreamcat4

Offline dreamcat4

  • Frequent Contributor
  • **
  • Posts: 495
  • Country: gb
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2178 on: December 23, 2021, 06:34:58 pm »
lol yeah... it's a core feature for me too. I am not at all sure what the other guy was talking about there...

So this is just a speculation. But maybe he meant that we should use the 4 scope channels instead of the LA channels connector, to avoid whatever that specific lag issue is that makes the LA problematic from a timings standpoint?

But how in the world is that not some major bug!?!?!?! For example what if you need more than only 4 digital channels

* Or he only meant 'scope scope its only a scope' features. Instead of the other additional side features?
* Or maybe the LA issues all is fixed now? Which was my original quesitron here and entirely my point

Because blindly assuming this stuff is fixed. Is a completely different thing from actually having somebody go back and prove / demonstrate that an issue really is fixed now, and in the latest firmware(s). The 2nd being far more reassuring for a new buyer. It also includes checking for things like regressions or newly introduced bugs etc. Which might not have existed in earlier versions. Or simply at least showing people that there really are none.

Or am I missing something else here?  :-BROKE
 

Offline Howardlong

  • Super Contributor
  • ***
  • Posts: 5319
  • Country: gb
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2179 on: December 23, 2021, 07:30:44 pm »
lol yeah... it's a core feature for me too. I am not at all sure what the other guy was talking about there...

So this is just a speculation. But maybe he meant that we should use the 4 scope channels instead of the LA channels connector, to avoid whatever that specific lag issue is that makes the LA problematic from a timings standpoint?

But how in the world is that not some major bug!?!?!?! For example what if you need more than only 4 digital channels

* Or he only meant 'scope scope its only a scope' features. Instead of the other additional side features?
* Or maybe the LA issues all is fixed now? Which was my original quesitron here and entirely my point

Because blindly assuming this stuff is fixed. Is a completely different thing from actually having somebody go back and prove / demonstrate that an issue really is fixed now, and in the latest firmware(s). The 2nd being far more reassuring for a new buyer. It also includes checking for things like regressions or newly introduced bugs etc. Which might not have existed in earlier versions. Or simply at least showing people that there really are none.

Or am I missing something else here?  :-BROKE

The only LA specific problem I'm aware of is the 1ns trigger delay.
 

Offline dreamcat4

  • Frequent Contributor
  • **
  • Posts: 495
  • Country: gb
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2180 on: December 23, 2021, 07:34:52 pm »
ah ok... so can this be worked around? For example by setting up the trigger on an analog channel instead? (but to be triggering for the LA capture)
 

Offline Howardlong

  • Super Contributor
  • ***
  • Posts: 5319
  • Country: gb
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2181 on: December 23, 2021, 07:53:59 pm »
ah ok... so can this be worked around? For example by setting up the trigger on an analog channel instead? (but to be triggering for the LA capture)

Well, you could do, but you'd need to deskew the channels anyway, whether there's a 1ns delay or not: on mine I need around a -2ns delay on the analogue channel to the LA with the stock probes.

In practice, it's no biggie to be honest. You get used to it, and while 1ns resolution on the LA is great, it's not all that often you're zoomed in that far that it makes a real difference. Furthermore, it's more typical you'd be using a serial trigger rather than a simple edge anyway.
« Last Edit: December 23, 2021, 07:57:06 pm by Howardlong »
 

Offline qali.pro

  • Contributor
  • Posts: 17
  • Country: qa
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2182 on: December 25, 2021, 10:01:17 pm »
Hello,
Have anyone emulate this oscilloscope with QEMU, please share with me?
 
The following users thanked this post: jonash

Offline oliv3r

  • Frequent Contributor
  • **
  • Posts: 279
  • Country: nl
    • Rigol related stuff!
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2183 on: December 28, 2021, 01:18:41 pm »
Hello,
Have anyone emulate this oscilloscope with QEMU, please share with me?

What are you trying to accomplish? Emulating the application in qemu probably isn't hard, but you still have to write the code for the peripherial. As this scope heavily relies on the zynq's FPGA, it'll be quite limited what you can emulate ...

Offline oliv3r

  • Frequent Contributor
  • **
  • Posts: 279
  • Country: nl
    • Rigol related stuff!
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2184 on: December 28, 2021, 02:04:37 pm »
Rigol MSO5000 Firmware v00.01.03.00.03 :

[Updated Contents]
--------------------

v00.01.03.00.03 2021/10/18

      - Optimized waveform display in XY mode.
      - Optimized the DC gain calibration algorithm.
      - The La channel is decoded in parallel, which solved the problem of decoding error in negative polarity.

Download:
https://www.rigolna.com/products/digital-oscilloscopes/MSO5000/
Thanks, puhsed those to https://gitlab.com/riglol/rigolee/firmware/
Sorry for the delay :)

Offline normi

  • Regular Contributor
  • *
  • Posts: 78
  • Country: 00
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2185 on: December 29, 2021, 02:20:47 am »
Most of the original bugs were related to the logic analyzer, which 99% of people never use (and should not use, unless you just need time corelation).

I use the LA at the very least half the time I switch on the scope.

Have you tested the new firmware to see if there are any improvements on the LA, I had seen the 1ns delay on an a few occasions but was not able to reproduce, I was on a beta firmware so not sure if that made a difference.

 

Offline normi

  • Regular Contributor
  • *
  • Posts: 78
  • Country: 00
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2186 on: December 29, 2021, 03:44:16 am »
Hi
I'm new here.
I recently bought an MS05074. And I applied the FW from qali.pro, message 2175. It worked ok. Thankful qali.pro.
I am new to using Digital Oscilloscope. I am learning to use my MSO5074. I don't know if it's a BUG or not, as follows:
1. I want to do the Measuring the Modulation Index of AM Signal using an FFT, using the signal generated in G1 or G2 AWG, and then FFT - Math function in MSO5074.
2. For Unmodulated Signals (Sine/Square) I got a satisfactory result using the FFT function in Math of MSO5074.
3. And then, I want to measure the Deviation Meter for FM modulated signal, using the signal generated in G1 or G2 AWG, and then FFT - Math function in MSO5074.
4. For Measuring the Modulation Index of an AM Signal using an FFT, I found an application note for the SIGLENT SDS 1204X-E, here:
https://siglentna.com/application-note/measuring-the-modulation-index-of-an-am-signal-using-an-fft/?pdf=9065

And that's exactly what I want to do, but using MSO5074. I tried it in different ways, but I couldn't get a satisfactory result. Commands on both MSOs are different.
I ask for your help to find a satisfactory solution, as in the case of SIGLENT SDS 1204X-E.

5. To generate in AWG G1 or G2, Carrier Sine Signal f = 1MHz, with Vpp = 500mV, and Audio Modulator Sine f = 10 KHz, with AM Depth = 80%. I suggest the quick commands on MSO5000:
(Enter G2 SINE WAVE Signal 1 MHz with Modulation to CH-1)
(G2)  (Wave  Sine)  (Frequency)  (Set on Touch Screen  1 MHz)  (Amplitude)  (Set on Touch Screen  500 mV) 
 (AUTO)  (G2) 
(Settings)  (Type  Modulation)  (Type  AM)  (Waveform  Sine)  (Frequency)  (Set on Touch Screen  10 KHz)  (AM Depth  80%)   (Impedance  50R)  (Menu off)
6. I ask to do the sequence of commands on the MSO5000, which it does as shown above. In order to be easily reproduced.
7. Congratulations to all who contribute to the topic.

Possible you should have raised a new post for this, however not sure what issue you are having why you say the results are different. I am getting the same ~80%. The difference you may find are related to the attenuation caused by the cabling being used and the fact that the Siglent scope is averaging the results which the Rigol does not, so the numbers will move up an down by tiny amounts. They are also using a dedicated signal generator which is likely far more accurate than one coming from an oscilloscope. if you use 50ohm output you will need a 50 ohm termination on the scope.
 

Offline normi

  • Regular Contributor
  • *
  • Posts: 78
  • Country: 00
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2187 on: December 30, 2021, 06:08:39 am »
The 80% index is correct as the difference in the sidebands and the carrier is around the 7.9dbV mark. The issue you are having is that the modulated carrier appears to be half of the unmodulated carrier, is that correct.
 

Offline normi

  • Regular Contributor
  • *
  • Posts: 78
  • Country: 00
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2188 on: December 31, 2021, 12:37:29 am »
I relooked at this with a different generator, a cheap one. I noticed that the modulated carrier dropped in amplitude only for the SG from the MSO5000, the external SG maintained its amplitude. From your screen I can see that the modulated carrier was no longer .5V P-P, not sure if anyone else had observed this as an issue. Will have to check.

The RMS voltage is a real measurement while the FFT is calculated so there will be small differences, you can turn on the Vrms units instead of the DB in the FFT and those should align with each other. The large gap you are seeing is primarily due to you comparing the RMS value  of the entire signal vs the signal of the carrier. Remember there a 3 signals with their own Vrms voltage, 106vrms is the combined wave.

The maths does imply that the carrier should go both higher and lower than its peak when modulated, so I am not sure if some generators vary the way they do AM modulation, and the document you attached does not show details of the modulated wave so I am not able to make comparison to that. May have to search for some you tube videos with examples.
 

Offline core

  • Regular Contributor
  • *
  • Posts: 139
  • Country: ro
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2189 on: December 31, 2021, 08:46:25 am »
Hi BRZ,

I have both oscilloscopes (MSO5074 and SDS 1104X-E), so I have replied your experiment.
But instead the built-in generator, I have used the Siglent SDG2042X.

So please find the pictures I have from the experiment. For me it seems that there is no problem, the oscilloscopes are very close.


« Last Edit: December 31, 2021, 08:58:15 am by core »
 

Offline core

  • Regular Contributor
  • *
  • Posts: 139
  • Country: ro
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2190 on: December 31, 2021, 08:56:06 am »
Tip, it seems that the DMV measurement is not very reliable for this experiment.
The current value is changing, the average value is more stable, but the DVM value is none of them - is very stable but way off.
See the picture below.
« Last Edit: December 31, 2021, 09:14:49 am by core »
 

Offline quakeman

  • Newbie
  • Posts: 8
  • Country: de
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2191 on: December 31, 2021, 03:16:41 pm »
Maybe we should stay a bit more at the topic in this much too long thread which is hacking the MSS5000 and not analyzing it's performance.
It's hard enough to find the related posts for the patches and co without having to scroll unrelated messages. I think another thread for discussing the MSO5000 functions would be helpful. But these are only my thoughts concerning this thread to stay a bit more at it's topic. :)
 
The following users thanked this post: thm_w, Cerebus, MegaVolt, Varz, Matsh, oldjackbob

Offline Cerebus

  • Super Contributor
  • ***
  • Posts: 10576
  • Country: gb
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2192 on: December 31, 2021, 06:04:28 pm »
Maybe we should stay a bit more at the topic in this much too long thread which is hacking the MSS5000 and not analyzing it's performance.
It's hard enough to find the related posts for the patches and co without having to scroll unrelated messages. I think another thread for discussing the MSO5000 functions would be helpful. But these are only my thoughts concerning this thread to stay a bit more at it's topic. :)

My thoughts exactly. Please, just keep the discussion in this thread to "Hacking the Rigol MSO5000 series oscilloscopes", just like it says in the thread title. This kind of thread is enormously valuable to a large number of people, thus it's one of those places where the margin of tolerance for off-topic posting should be quite small.
Anybody got a syringe I can use to squeeze the magic smoke back into this?
 
The following users thanked this post: Matsh, oldjackbob

Offline normi

  • Regular Contributor
  • *
  • Posts: 78
  • Country: 00
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2193 on: December 31, 2021, 06:34:34 pm »
If you noted in my post I stated that he should raise this as a new post, however I was wondering whether this was a bug due to firmware so I felt it was necessary to check. I am going to put my last post that I deleted below as this is an easy check that others can do in another thread and produce something conclusive.

"Thanks Core.
You have confirmed what I suggested, the issue is with the SG and the way it generates the signal, as I mentioned the math says the modulated carrier will be larger than the carrier. Your picture shows that the modulated carrier is closer to 1Vp-p vs 500mvp-p. Rigol could be asked to look at the drop in voltage when the modulation starts but the rest is part of the design. My Feeltech SG also does not produce a higher voltage when modulated so this is a form of design. If they don't follow the math in how they implement the AM modulation then the results will be different. "

« Last Edit: December 31, 2021, 07:35:14 pm by normi »
 

Offline BRZ.tech

  • Contributor
  • Posts: 45
  • Country: br
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2194 on: January 01, 2022, 12:21:12 am »
@quakeman, @Cerebus, @Megavolt, @normi.
I understood your opinions.
That way, just like @normi, I'll delete my posts relating to this subject. Not to detract from the main purpose of the discussion on this Thread: "Hacking the Rigol MSO5000 series oscilloscopes".
 

Offline Martin72

  • Super Contributor
  • ***
  • Posts: 5841
  • Country: de
  • Testfield Technician
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2195 on: January 01, 2022, 01:52:12 am »
When I see the pic with the fft....Do the rigol STILL have one colour for all math traces ??  ::) :P

Offline normi

  • Regular Contributor
  • *
  • Posts: 78
  • Country: 00
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2196 on: January 01, 2022, 02:24:47 pm »
@quakeman, @Cerebus, @Megavolt, @normi.
I understood your opinions.
That way, just like @normi, I'll delete my posts relating to this subject. Not to detract from the main purpose of the discussion on this Thread: "Hacking the Rigol MSO5000 series oscilloscopes".
I had deleted the previous post because I felt that the conclusions I made were wrong since I later got the correct results, however I realized that the results were affected by the settings related to the impedance and therefore the conclusion could still be correct. Since the issue I doubt is related to the new firmware hack, it would require its own thread. You can raise a support question to Rigol and have them confirm if this is by design, which I suspect it is.
 

Offline BRZ.tech

  • Contributor
  • Posts: 45
  • Country: br
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2197 on: January 01, 2022, 06:45:22 pm »
@normi.
1. Following your suggestion, I start a new Thread, summarizing what we talked about in this thread. Here:
https://www.eevblog.com/forum/testgear/rigol-mso5000-fft-scripts-and-bugs/
 
The following users thanked this post: MegaVolt

Offline kn4ycd

  • Newbie
  • Posts: 4
  • Country: us
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2198 on: January 04, 2022, 08:14:59 pm »
Hey there!

I have all the files on a 4gb, fat32 formated jump drive, in the root directory.  I just got my scope today, it has the 0A.01.03.00.01 build 2021-05-04 firmware.

Every time I try to install the patch, I get an error message that 'patch.txt' not found.  Are there files that are supposed to be in a sub-folder?  The zip had everything in one folder.

THanks!

Jim

UPDATE - Win 11 formatting fat32 on the jump drive is no good.  Re-formatted with Rufus, and now I am past that error.  However, getting checksum errors.  Is there a patch file for this version of firmware?
« Last Edit: January 04, 2022, 09:11:11 pm by kn4ycd »
 

Offline rgry

  • Newbie
  • Posts: 1
  • Country: dk
Re: Hacking the Rigol MSO5000 series oscilloscopes
« Reply #2199 on: January 05, 2022, 06:56:01 am »
Can I use this firmware and still get all the features turned on with the software hack? Do I need to modify anything?

[Supported Model]    All the MSO5000 Series Digital Oscilloscopes
[Latest Revision Date]  2021/10/18
v00.01.03.00.03 2021/10/18
      - Optimized waveform display in XY mode.
      - Optimized the DC gain calibration algorithm.
      - The La channel is decoded in parallel, which solved the problem of decoding
         error in negative polarity.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf