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

0 Members and 25 Guests are viewing this topic.

Offline AndyBig

  • Frequent Contributor
  • **
  • Posts: 394
  • Country: ru
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1850 on: February 29, 2024, 09:41:33 pm »
Today I spent many hours trying to add a color to the probe divider value on an enabled channel and have the value change color depending on whether the channel is on or off. I recompiled and reinstalled the application probably 200 times. I learned a lot of new and strange things about the DALVIK language :))
 
The following users thanked this post: ebastler, mwb1100

Offline AndyBig

  • Frequent Contributor
  • **
  • Posts: 394
  • Country: ru
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1851 on: February 29, 2024, 09:43:13 pm »
Also take a look here
Sparrow/smali/com/rigol/scope/R$color.smali

lots of color definitions in that file too.

[roott@localhost scope]# grep "7f060029" "R\$color.smali"
.field public static final bg_channel1_color:I = 0x7f060029
I don’t just watch it, I add my names and meanings of colors and interface elements to it :)
« Last Edit: February 29, 2024, 09:46:53 pm by AndyBig »
 

Offline AndyBig

  • Frequent Contributor
  • **
  • Posts: 394
  • Country: ru
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1852 on: February 29, 2024, 09:48:08 pm »
rsync can be used on other side and get files via sshd. Same as scp command.
Yes, I didn't think about that :)
 

Offline Randy222

  • Frequent Contributor
  • **
  • Posts: 643
  • Country: ca
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1853 on: February 29, 2024, 09:59:19 pm »
Today I spent many hours trying to add a color to the probe divider value on an enabled channel and have the value change color depending on whether the channel is on or off. I recompiled and reinstalled the application probably 200 times. I learned a lot of new and strange things about the DALVIK language :))
no leap year in a DHO.  :-DD
 

Offline norbert.kiszka

  • Regular Contributor
  • *
  • Posts: 230
  • Country: pl
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1854 on: February 29, 2024, 10:02:56 pm »
Today I spent many hours trying to add a color to the probe divider value on an enabled channel and have the value change color depending on whether the channel is on or off. I recompiled and reinstalled the application probably 200 times. I learned a lot of new and strange things about the DALVIK language :))
no leap year in a DHO.  :-DD

5 year later... TV news: some hackers managed to build DHO4804 oscilloscope from a DHO802.

Offline AndyBig

  • Frequent Contributor
  • **
  • Posts: 394
  • Country: ru
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1855 on: February 29, 2024, 10:05:46 pm »
no leap year in a DHO.  :-DD
Why not? Of course have :)
 

Offline norbert.kiszka

  • Regular Contributor
  • *
  • Posts: 230
  • Country: pl
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1856 on: March 01, 2024, 01:22:22 am »
I have idea to write script to automatically send created screenshots from scope to ssh or ftp. Somebody works on the scope, goes to other place with computer and all screenshots are already on local disk. I wrote this, because sometimes I have some nice ideas, which later I forget, so maybe somebody will remind me this later on this forum.

Offline flaotte

  • Contributor
  • Posts: 17
  • Country: se
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1857 on: March 01, 2024, 08:23:24 am »
at this point... just force it to spit out all the data over API and write linux based software for computer  :-//
 
The following users thanked this post: RAPo

Offline AndyBig

  • Frequent Contributor
  • **
  • Posts: 394
  • Country: ru
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1858 on: March 01, 2024, 10:49:48 am »
I re-created a project to change the application and transferred all the changes made to it to fix them in git. The project was posted on github - https://github.com/Andy-Big/DHO800_900_Sparrow_project

By the way, today I tried to decompile the application versions 00.01.01.00.00 and 00.01.02.00.02 and compare the resulting sources. Yes, there really are differences, but not so big that it would pose a problem when a new version is released. Of course, you will have to tinker for about an hour to make all the changes from the new version, checking that they will not spoil my changes, but this is not such a big problem, considering how “frequently” new versions are released :)
 
The following users thanked this post: AceyTech

Offline norbert.kiszka

  • Regular Contributor
  • *
  • Posts: 230
  • Country: pl
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1859 on: March 01, 2024, 10:52:02 am »
at this point... just force it to spit out all the data over API and write linux based software for computer  :-//

There are already bunch of different software on Linux for oscilloscopes (downloading, viewing and measurements of waveforms, remote screenshots, change settings via network and many more), so what is Your point?
« Last Edit: March 01, 2024, 11:08:15 am by norbert.kiszka »
 

Offline norbert.kiszka

  • Regular Contributor
  • *
  • Posts: 230
  • Country: pl
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1860 on: March 01, 2024, 11:12:28 am »
I re-created a project to change the application and transferred all the changes made to it to fix them in git. The project was posted on github - https://github.com/Andy-Big/DHO800_900_Sparrow_project

By the way, today I tried to decompile the application versions 00.01.01.00.00 and 00.01.02.00.02 and compare the resulting sources. Yes, there really are differences, but not so big that it would pose a problem when a new version is released. Of course, you will have to tinker for about an hour to make all the changes from the new version, checking that they will not spoil my changes, but this is not such a big problem, considering how “frequently” new versions are released :)

What are .so libs are for? Anyway, some little idiot-proof readme will be preety useful.

Offline AceyTech

  • Regular Contributor
  • *
  • Posts: 194
  • Country: us
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1861 on: March 01, 2024, 11:18:43 am »
I have idea to write script to automatically send created screenshots from scope to ssh or ftp.

There are several here already using SSH or FTP to get screenshots, video recordings, and/or setup files from their scopes. Or even using the web control interface or with SCPI commands.
And there are some saving to NAS using NFS mount via busybox; bypassing the internal SDCard.  8)

You can search the forum here for examples, if you don't want to reinvent the wheel.
 

Offline AndyBig

  • Frequent Contributor
  • **
  • Posts: 394
  • Country: ru
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1862 on: March 01, 2024, 11:32:14 am »
What are .so libs are for? Anyway, some little idiot-proof readme will be preety useful.
The largest one - libscope-auklet.so - implements all the operating functions of the oscilloscope. All work with the FPGA is done through it, saving and loading parameters, determining the model and the capabilities available to it, checking licenses and keys, and much more. Together with the FPGA, it forms the functional core of the oscilloscope.
The rest, judging by their names, are for working with .png images, for working with .pdf, for servicing the keyboard and indicators panel, general functions of C++ libraries.

Yes, I'll have to make some kind of readme :)
« Last Edit: March 01, 2024, 11:35:57 am by AndyBig »
 

Offline norbert.kiszka

  • Regular Contributor
  • *
  • Posts: 230
  • Country: pl
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1863 on: March 01, 2024, 11:34:43 am »
What are .so libs are for? Anyway, some little idiot-proof readme will be preety useful.
The largest one - libscope-auklet.so - implements all the operating functions of the oscilloscope. All work with the FPGA is done through it, saving and loading parameters, determining the model and the capabilities available to it, checking licenses and keys, and much more. Together with the FPGA, it forms the functional core of the oscilloscope.
The rest, judging by their names, are for working with .png images, for working with .pdf, for servicing the keyboard and indicators panel, general functions of C++ libraries.

So You disassembled it and made some changes?

Offline AndyBig

  • Frequent Contributor
  • **
  • Posts: 394
  • Country: ru
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1864 on: March 01, 2024, 11:40:05 am »
So You disassembled it and made some changes?
 
The following users thanked this post: AceyTech

Offline norbert.kiszka

  • Regular Contributor
  • *
  • Posts: 230
  • Country: pl
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1865 on: March 01, 2024, 11:44:19 am »
So You disassembled it and made some changes?

Heh. I was suspecting this change in xml and graphic files. Eventually in app binary instead of FPGA. Quite big surprise.

Offline AndyBig

  • Frequent Contributor
  • **
  • Posts: 394
  • Country: ru
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1866 on: March 01, 2024, 11:51:58 am »
Heh. I was suspecting this change in xml and graphic files. Eventually in app binary instead of FPGA. Quite big surprise.
Not only. Changes are also made to the application's executable files.
 
The following users thanked this post: norbert.kiszka

Offline norbert.kiszka

  • Regular Contributor
  • *
  • Posts: 230
  • Country: pl
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1867 on: March 01, 2024, 01:19:07 pm »
Heh. I was suspecting this change in xml and graphic files. Eventually in app binary instead of FPGA. Quite big surprise.
Not only. Changes are also made to the application's executable files.

Disassembling takes much more effort than play with xml files. Big thx for sharing.
 
The following users thanked this post: AndyBig

Offline AndyBig

  • Frequent Contributor
  • **
  • Posts: 394
  • Country: ru
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1868 on: March 01, 2024, 01:47:20 pm »
Disassembling takes much more effort than play with xml files. Big thx for sharing.
Changing resources alone won't get you far :)
 
The following users thanked this post: RAPo

Offline Randy222

  • Frequent Contributor
  • **
  • Posts: 643
  • Country: ca
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1869 on: March 01, 2024, 02:43:46 pm »
There is no rsync command in the oscilloscope system :)
there's also no less which is ridiculous and annoying. it should be easy, however, to install busybox there, which contains all those small utilities.
same for rsync actually.
The dho droid has toybox, but no less in there.
 

Offline Randy222

  • Frequent Contributor
  • **
  • Posts: 643
  • Country: ca
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1870 on: March 01, 2024, 02:46:24 pm »


BTW. print screen key on USB keyboard works. File path and name for example: [last file system]/media/0/Screenshots/Screenshot_20130118-090648.png
It does work, but on my 804 I had to change droid settings for screen pics, it was not set to internal storage, so prtscn was throwing err "cannot save image".
 

Offline norbert.kiszka

  • Regular Contributor
  • *
  • Posts: 230
  • Country: pl
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1871 on: March 01, 2024, 02:52:28 pm »


BTW. print screen key on USB keyboard works. File path and name for example: [last file system]/media/0/Screenshots/Screenshot_20130118-090648.png
It does work, but on my 804 I had to change droid settings for screen pics, it was not set to internal storage, so prtscn was throwing err "cannot save image".

Thats little strange. Mine 924S never had this issue. Maybe different firmware version I guess.

Offline AndyBig

  • Frequent Contributor
  • **
  • Posts: 394
  • Country: ru
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1872 on: March 01, 2024, 03:09:42 pm »
So I did it! The channel widgets in the bottom panel now display the actual probe divider value that was set for the channel.
 
The following users thanked this post: thm_w, rifkum, gabiz_ro, RAPo, shapirus, ebourg, enson72, norbert.kiszka

Offline norbert.kiszka

  • Regular Contributor
  • *
  • Posts: 230
  • Country: pl
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1873 on: March 01, 2024, 03:18:19 pm »
Speaking of it. Another useful thing will be custom probe ratio. Like 11, 12, 13 but I think that probably can be hard. But... In some earlier firmware it was different, In 02.0.02 we have x20 x50 and somewhere before it was only powers of ten - so we can make diffs.

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11699
  • Country: my
  • reassessing directives...
Re: Hacking the Rigol DHO800/900 Scope
« Reply #1874 on: March 01, 2024, 03:36:22 pm »
So I did it! The channel widgets in the bottom panel now display the actual probe divider value that was set for the channel.
do we really need the decimal place?
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
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf