Author Topic: Hacking the Rigol DHO800/900 Scope  (Read 294272 times)

emi91, AceyTech and 10 Guests are viewing this topic.

Online Fungus

  • Super Contributor
  • ***
  • Posts: 16670
  • Country: 00
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2625 on: April 18, 2024, 05:46:01 pm »
We don't know if it's a bug or a curiosity yet.

Getting the answer to that question is exactly why I suggested that other DHO800 owners check whether it's a systematic issue. I was not interested in a "mine is better than yours" competition -- although I am pleased enough with the result now that you asked for it. ;)
Ok, I just hooked all four probes up to a crocodile clip coming out of my pulse generator, and... nada.

All traces line up perfectly on the rising edge.



Test setup:
« Last Edit: April 18, 2024, 05:58:04 pm by Fungus »
 

Online ebastler

  • Super Contributor
  • ***
  • Posts: 6502
  • Country: de
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2626 on: April 18, 2024, 06:24:18 pm »
Ok, I just hooked all four probes up to a crocodile clip coming out of my pulse generator, and... nada.
All traces line up perfectly on the rising edge.

Thanks for checking. But with all four channels enabled (and prior to any skew adjustments), all channels were well-aligned for Slavius too. Could you please retry with only CH1 and CH2 enabled?
 

Offline shapirus

  • Super Contributor
  • ***
  • Posts: 1350
  • Country: ua
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2627 on: April 18, 2024, 09:16:00 pm »
Could you please retry with only CH1 and CH2 enabled?
Ideally, every possible combination of more than 1 enabled channels.
 

Offline Slavius

  • Newbie
  • Posts: 8
  • Country: ru
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2628 on: April 19, 2024, 12:26:57 am »
That’s right, this is most likely a firmware bug or a flaw in the Rigol DHO800-900 series!

I carried out the same test measurements on the Rigol DS1054Z and the maximum phase deviation, regardless of whether 2, 3 or 4 channels were included, was about 1.2 degrees on the test signal - Sine 70 MHz.

Here is the phase shift of the signals when two channels are turned on:


And here is the phase shift of the signals when all four channels are turned on:
« Last Edit: April 19, 2024, 12:32:10 am by Slavius »
 

Offline mrisco

  • Contributor
  • Posts: 36
  • Country: pe
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2629 on: April 19, 2024, 05:35:00 am »
New 0.3.3 version
Added "x log" button which allows toggle the X axis between linear and logarithmic scale
Added Y value to the peak annotation
https://github.com/mriscoc/RIGOL_DHO800_DHO900_GUI/releases/latest
« Last Edit: April 19, 2024, 05:40:02 am by mrisco »
 
The following users thanked this post: skench, AndyBig, shapirus, Cees, NikNik

Offline brownbillca

  • Newbie
  • Posts: 1
  • Country: ca
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2630 on: April 19, 2024, 08:58:05 pm »
I Tried this today and this is what I got. any help would be grate.
DOH814 firmware 00.01.02 it did make a backup though.

 adb: error: remote object '/rigol/data/Key.data' does not exist

go run rgtoolMod.go
keyFile: Key.data
deviceId: DHO8
SCPI format: ':SYSTem:OPTion:INSTall'
options: [RLU BW7T10]
error open Key.data: The system cannot find the file specified.
exit status 10


Please, send generated :SYSTem:OPTion:INSTall commands to the scope via the SCPI interface, and press any key to check for the new *.lic files.
Options are installed without scope reboot.
Press any key to continue . . .
 

Offline Slavius

  • Newbie
  • Posts: 8
  • Country: ru
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2631 on: April 20, 2024, 08:32:02 am »
I Tried this today and this is what I got. any help would be grate.
DOH814 firmware 00.01.02 it did make a backup though.

 adb: error: remote object '/rigol/data/Key.data' does not exist

go run rgtoolMod.go
keyFile: Key.data
deviceId: DHO8
SCPI format: ':SYSTem:OPTion:INSTall'
options: [RLU BW7T10]
error open Key.data: The system cannot find the file specified.
exit status 10


Please, send generated :SYSTem:OPTion:INSTall commands to the scope via the SCPI interface, and press any key to check for the new *.lic files.
Options are installed without scope reboot.
Press any key to continue . . .

As far as I know, in the latest firmware they changed Key.data to RKey.data. I spent a long time fiddling around with this hack of this oscilloscope. And besides this, there was something else that needs to be remembered.
 

Offline Slavius

  • Newbie
  • Posts: 8
  • Country: ru
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2632 on: April 20, 2024, 08:55:37 am »
Who knows why the "ADC Phase" calibration does not work?


I think that this is exactly the calibration that is needed, with the help of which the phase shift of the channels is calibrated.

Does anyone know how to calibrate this element?
If this item is selected, and regardless of whether only this or other items, then calibration ends with the error "Unknown error occurred while calibrating"
 

Offline Slavius

  • Newbie
  • Posts: 8
  • Country: ru
 

Online RAPo

  • Frequent Contributor
  • **
  • Posts: 621
  • Country: nl
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2634 on: April 21, 2024, 10:26:42 am »
I've got a strange window at the webcontrol window (see below). Had to restart the scope in order to get the usual window back.
The buttons had no response.
Did anyone experienced this?

2132723-0
 

Offline mrisco

  • Contributor
  • Posts: 36
  • Country: pe
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2635 on: Yesterday at 11:22:49 pm »
I like this layout  ;)
2142775-0
 
The following users thanked this post: Fungus, AndyBig, RAPo

Offline mrisco

  • Contributor
  • Posts: 36
  • Country: pe
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2636 on: Yesterday at 11:27:20 pm »
Yes, it is real   ;D
2142787-0
 
The following users thanked this post: RAPo, AceyTech

Online AceyTech

  • Regular Contributor
  • *
  • Posts: 176
  • Country: us
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2637 on: Today at 03:14:17 am »
Yes, it is real   ;D

Nicely done.  Very sexy!  8)

BTW: @AndyBig @Shapirus and @Randy222 were all experimenting with the UI elements a short while ago.  Are you continuing with their work or doing something different?
« Last Edit: Today at 03:27:58 am by AceyTech »
 

Offline mrisco

  • Contributor
  • Posts: 36
  • Country: pe
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2638 on: Today at 03:44:56 am »
Are you continuing with their work or doing something different?

I'm making changes directly to the latest Sparrow.apk version.
 
The following users thanked this post: RAPo, AceyTech

Online AceyTech

  • Regular Contributor
  • *
  • Posts: 176
  • Country: us
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2639 on: Today at 06:02:29 am »

I'm making changes directly to the latest Sparrow.apk version.

Awesome!  Very cool.  I was away for a bit, so please forgive my naive Q's;
Is your modified app fully functioning when installed? i.e., able to save screenshots, etc... 
Is it easy enough to try your mods by doing a simple remove/install of the APK?
 
The following users thanked this post: Fungus

Offline shapirus

  • Super Contributor
  • ***
  • Posts: 1350
  • Country: ua
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2640 on: Today at 08:07:29 am »
All this separate work really needs a github repo to track. If not for direct use for the recompilation of the .apk, then at least as a source to make diffs against and patch your own decompiled .apks.
 
The following users thanked this post: AceyTech

Offline 2N3055

  • Super Contributor
  • ***
  • Posts: 6662
  • Country: hr
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2641 on: Today at 09:59:00 am »
Yes, it is real   ;D
(Attachment Link)

This screen layout is much better than original...

But  a question:

You show signal that has 10ns period, measurements measure 20ns period, and Counter measure 140 Hz (should be cca 100MHz)..
Am I confused or what?
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11648
  • Country: my
  • reassessing directives...
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2642 on: Today at 11:46:52 am »
All this separate work really needs a github repo to track. If not for direct use for the recompilation of the .apk, then at least as a source to make diffs against and patch your own decompiled .apks.
imho step by step guide how to hex-edit/patch and which part is what, is what i more need.. and then others can continue the work on other parts and produce step by step again, until majority of parts are hacked or known. or a readable script or table in file (byte position, byte value to patch)... so end users also can freely customize which part he/she prefer to change which part to stay default. ymmv.
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline shapirus

  • Super Contributor
  • ***
  • Posts: 1350
  • Country: ua
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2643 on: Today at 12:00:11 pm »
All this separate work really needs a github repo to track. If not for direct use for the recompilation of the .apk, then at least as a source to make diffs against and patch your own decompiled .apks.
imho step by step guide how to hex-edit/patch and which part is what, is what i more need.. and then others can continue the work on other parts and produce step by step again, until majority of parts are hacked or known. or a readable script or table in file (byte position, byte value to patch)... so end users also can freely customize which part he/she prefer to change which part to stay default. ymmv.
UI edits are (at least mostly) all text, no hex editing is involved.
The important part in making it possible is to disable the signature verification, and from there it's all trivial using apktool.
The valuable part, that should not be lost, and which therefore should be hosted in a git repo, is the actual changes to the decompiled text files that tweak the UI.
 
The following users thanked this post: Mechatrommer

Offline mrisco

  • Contributor
  • Posts: 36
  • Country: pe
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2644 on: Today at 12:12:42 pm »
Is your modified app fully functioning when installed? i.e., able to save screenshots, etc... 

Oh! I was on page 67 of this now 106 pages thread and saw a modification of the UI. So, I got down to work. I think that I just reinvented the wheel. I should have read some more pages, that could have made my job easier by working on what you have already done.

I had the same problems as Andybig had. My application is signed with my own development key, so it can't share the system user space. So, in the beginning if the application is installed normally and granted root access but not system access, it can't take a screenshot. For me it is not really a big problem because I use the webui to take the screenshots.
 
The following users thanked this post: AceyTech

Offline mrisco

  • Contributor
  • Posts: 36
  • Country: pe
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2645 on: Today at 12:16:12 pm »
...You show signal that has 10ns period, measurements measure 20ns period, and Counter measure 140 Hz (should be cca 100MHz)..
Am I confused or what?

Just ignore that, it was noise at my desktop and the screen shows a little piece of a larger noise. So, the counter is counting anything.
 
The following users thanked this post: 2N3055

Offline mrisco

  • Contributor
  • Posts: 36
  • Country: pe
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2646 on: Today at 12:38:27 pm »
...All this separate work really needs a github repo to track...

I post the apk for the test in the repo: https://github.com/mriscoc/RIGOL_DHO800_DHO900_GUI/releases/tag/SPGUI0.2.1
But it is in a very early stage.

Compatible only with Rigol Firmware 00.01.02.00.02

Known issues:
  • Without privileged system access the application can't take screenshots.
  • Probe ratio is not shown in the main screen
  • Currently tested only on DH804-814, it is possible that LA and WG buttons don't work properly


« Last Edit: Today at 12:57:26 pm by mrisco »
 
The following users thanked this post: skench, AndyBig, shapirus

Offline shapirus

  • Super Contributor
  • ***
  • Posts: 1350
  • Country: ua
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2647 on: Today at 02:09:10 pm »
Known issues:
  • Without privileged system access the application can't take screenshots.

I should have read some more pages

yes :)

it is possible to run self-signed apps with system permissions:

https://www.eevblog.com/forum/testgear/hacking-the-rigol-dho800900-scope/msg5408810/#msg5408810
 

Offline ebourg

  • Newbie
  • Posts: 5
  • Country: fr
Re: Hacking the Rigol DHO800/900 Scope
« Reply #2648 on: Today at 02:31:37 pm »
Is it possible to remove the RIGOL logo in the top left corner to save some space ?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf