Author Topic: Hacking the HDO1k/HDO4k Rigol 12 bit scope  (Read 200820 times)

0 Members and 1 Guest are viewing this topic.

Offline 2N3055

  • Super Contributor
  • ***
  • Posts: 7287
  • Country: hr
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #100 on: November 03, 2022, 10:27:05 pm »
It seems the new HDO software is prepared for the following devices:   :popcorn:

HDO1052  HDO2104  HDO4104  MSO8064  MSO8064A  DS70104
HDO1054  HDO2204  HDO4204  MSO8104  MSO8104A  DS70204
HDO1072           HDO4304  MSO8204  MSO8204A  DS70304
HDO1074           HDO4404           MSO8304A  DS70404
HDO1102           HDO4504                     DS70504
HDO1104           HDO4804
HDO1202
HDO1204


 MSO8304A hmm..

so MSO8000A and up to 3GHz.

And also MSO8000... does that mean that existing MSO8000 will be able to upgrade to new platform?
And MS8000A will exist in parallel with it? Is MSO8000A different package (larger screen or whatnot) or maybe also higher bit count...?

Interesting questions...
 

Offline AlphaRne

  • Newbie
  • Posts: 8
  • Country: us
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #101 on: November 03, 2022, 10:48:36 pm »
Hi,
here is my tool to dump the FRAM ... it contains the system setup, the private mem file data (license stuff like install tries and the key data once more) and the binary device config.
I also made a license key generator to pretty much enable any option .... no idea if its ok to post that code here though ...
 
The following users thanked this post: tom66, egonotto, thm_w, bob808, tv84, ebastler, dschiedsch, bulba99, eplpwr, eklein, arturmariojr, namor

Offline bob808

  • Frequent Contributor
  • **
  • Posts: 281
  • Country: 00
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #102 on: November 04, 2022, 01:22:49 am »
Looked through the dts file and found some ADC mentions. RK3399 should have one or two integrated ones. But I can't figure out which are the Rigol ones.
I noticed there's a ADC128D818 as well onboard, a 12bit 8ch ADC. Has two lines going to a connector.
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 17263
  • Country: 00
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #103 on: November 04, 2022, 02:23:43 am »
I also made a license key generator to pretty much enable any option .... no idea if its ok to post that code here though ...

Of course it is. Look at how many "hacking" threads there are here ... and how many "hacking" videos Dave's done.

 

Offline dschiedsch

  • Contributor
  • Posts: 44
  • Country: at
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #104 on: November 04, 2022, 08:35:48 am »
Hi,
here is my tool to dump the FRAM ... it contains the system setup, the private mem file data (license stuff like install tries and the key data once more) and the binary device config.
I also made a license key generator to pretty much enable any option .... no idea if its ok to post that code here though ...

Worked like a charm
Here are the commands i used to cross compile on my windows machine

Code: [Select]
go mod init .\fRAMdump.go
go mod tidy
$Env:GOOS = "linux"; $Env:GOARCH = "arm64"
go build fRAMdump.go

Then an adb push to the machine
set the execute bits and run as root
« Last Edit: November 04, 2022, 08:43:41 am by dschiedsch »
 
The following users thanked this post: egonotto, thm_w, bulba99, arturmariojr

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 17263
  • Country: 00
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #105 on: November 04, 2022, 01:12:55 pm »
Then an adb push to the machine

It works with ADB?  :clap:

How long before we see DOOM running on one?
« Last Edit: November 04, 2022, 02:21:41 pm by Fungus »
 
The following users thanked this post: arturmariojr

Offline bob808

  • Frequent Contributor
  • **
  • Posts: 281
  • Country: 00
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #106 on: November 04, 2022, 05:18:59 pm »
DOOM? More like GTA Vice City or even a flight simulator (with all those knobs on the front panel?). That RK3399 chip has (a bit) better graphics than the Raspberry Pi 4 BCM2711.
 

Offline dschiedsch

  • Contributor
  • Posts: 44
  • Country: at
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #107 on: November 04, 2022, 08:18:53 pm »
Then an adb push to the machine

It works with ADB?  :clap:

How long before we see DOOM running on one?

Yes on port 55555 via ethernet
Including root via su cmd (no password)
 
The following users thanked this post: egonotto, Fungus

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 17263
  • Country: 00
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #108 on: November 04, 2022, 08:33:36 pm »
It works with ADB?  :clap:
Yes on port 55555 via ethernet
Including root via su cmd (no password)

So these things are 100% hackable/programmable.

Market, owned.
 
The following users thanked this post: tom66

Offline bob808

  • Frequent Contributor
  • **
  • Posts: 281
  • Country: 00
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #109 on: November 04, 2022, 09:11:48 pm »
curious if adding a second ADC is possible on the 1k series. the power rails are off the shelf parts but the ADC itself...
 

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 7263
  • Country: ca
  • Non-expert
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #110 on: November 04, 2022, 10:10:55 pm »
curious if adding a second ADC is possible on the 1k series. the power rails are off the shelf parts but the ADC itself...

You can't and won't be able to buy the ADC.
The only option was as mentioned, here or another thread, buy another HDO1k for $700.
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 

Offline AlphaRne

  • Newbie
  • Posts: 8
  • Country: us
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #111 on: November 04, 2022, 10:23:10 pm »
Here is the lic gen ... just needs the key file from the device to work ....
The device id being field 0 is just a guess as the code ignores that field anyways ...


 

Offline bob808

  • Frequent Contributor
  • **
  • Posts: 281
  • Country: 00
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #112 on: November 04, 2022, 11:05:21 pm »
You can't and won't be able to buy the ADC.
The only option was as mentioned, here or another thread, buy another HDO1k for $700.

the ADC could be sourced from broken units, but apart from sourcing it what else would be an issue? apart from populating the missing rails as well.
 
The following users thanked this post: arturmariojr

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 17263
  • Country: 00
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #113 on: November 04, 2022, 11:15:00 pm »
the ADC could be sourced from broken units

And the "broken units" come from ... where?

but apart from sourcing it what else would be an issue?

Nothing, but it's a BIG issue.  :popcorn:
 

Offline bob808

  • Frequent Contributor
  • **
  • Posts: 281
  • Country: 00
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #114 on: November 04, 2022, 11:23:16 pm »
Ah clearly, no easy feat. I was just curious if it's doable as long as you can source the ADC chip. I mean if it's doable software side.
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 17263
  • Country: 00
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #115 on: November 04, 2022, 11:35:53 pm »
Ah clearly, no easy feat. I was just curious if it's doable as long as you can source the ADC chip. I mean if it's doable software side.

I don't think anybody tried it yet, but ...

If I was a betting person I'd put my money on it being possible.
 

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3323
  • Country: pt
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #116 on: November 05, 2022, 08:50:21 am »
Here is the lic gen ... just needs the key file from the device to work ....
The device id being field 0 is just a guess as the code ignores that field anyways ...

Assuming Alpha is correct (I see no reason why he's not) this is THE BIGGEST BLUNDER I've seen from Rigol ever! I'm flabbergasted!!! :palm: :palm: :palm:

OTOH, if this is a marketing scheme then, you can all be sure that the next step will be Rigol selling their ADC individually for those that want to complete the HW conversion! Mark my words.
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 17263
  • Country: 00
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #117 on: November 05, 2022, 09:32:50 am »
OTOH, if this is a marketing scheme

It is.

Android has security built-in at the flick of a switch. There's no reason not to enable it other than "marketing".

you can all be sure that the next step will be Rigol selling their ADC individually for those that want to complete the HW conversion! Mark my words.

Very unlikely.

 

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3323
  • Country: pt
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #118 on: November 05, 2022, 10:21:52 am »
Here is the lic gen ... just needs the key file from the device to work ....
The device id being field 0 is just a guess as the code ignores that field anyways ...

AlphaRne, have you successfully tested these licenses?  (I still can't believe what you're saying they have done...)

Edit: If they work, in my book, someone ought to be fired. It's absolute incompetence from the programmer and the oversight guys. And people should start licensing ASAP before the next FW update...

There's no reason not to enable it other than "marketing".

I refuse to believe that. There are plenty of other ways of doing the programming (for marketing purposes). Not like this. I wouldn't like to have this on my résumé...  :-[
« Last Edit: November 05, 2022, 10:55:57 am by tv84 »
 

Offline AlphaRne

  • Newbie
  • Posts: 8
  • Country: us
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #119 on: November 05, 2022, 12:49:24 pm »
The lics work on my device.
At least the lic code looks kind of half baked judging from
the disassembly and they didn’t even bother to strip the symbols.
No idea on how well their other products are protected but this one
was def one of the easiest…
 

Offline doppelgrau

  • Contributor
  • Posts: 37
  • Country: de
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #120 on: November 05, 2022, 03:01:43 pm »
Android has security built-in at the flick of a switch. There's no reason not to enable it other than "marketing".

Well, with security enabled it is easier to brick a device.
Maybe no one wanted to take that responsibility, or it was "this version works, no changes, we ship it".

Yes, security against hacking is clearly not high on the priority list, but in my eyes not a hint, that it was purpose.
 

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3323
  • Country: pt
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #121 on: November 05, 2022, 05:01:08 pm »
AlphaRne,

This is my parsing of the FRAM that I have access:
Code: [Select]
00000000  Block_0 CRC32: 530E7D6A  [00000008-0000008B]  CRC OK
00000004  Block_0  Size: 00000084 bytes
00000100  Block_1  Size: 000000B0 bytes  [00000100-000001AF]  CKSM OK
-------------------------------------------------------------
00000108  Option: 0000091D  CKSM OK
00000110  Option Size: 00000094 bytes  CKSM OK
00000118  Option CRC32: 06131D97  [0000011C-000001AF]  CRC OK
Key.data: brainpoolP256r1;04xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-------------------------------------------------------------
00000800  Block_2 CRC32: 7BAF99DF  [00000808-00001143]  CRC OK
00000804  Block_2  Size: 0000093C bytes
-------------------------------------------------------------
00000808  001C 0004 0109  DataSz: 003C BlockSz: 0040  [00000814-00000853]
00000854  000B 0011 002F  DataSz: 002F BlockSz: 0030  [00000860-0000088F]
00000890  0128 0001 0001  DataSz: 0001 BlockSz: 0001  [0000089C-0000089C]
0000089D  011A 00F0 001F  DataSz: 001F BlockSz: 001F  [000008A9-000008C7]
000008C8  0004 0002 004C  DataSz: 0020 BlockSz: 0020  [000008D4-000008F3]
000008F4  0003 0002 004C  DataSz: 0020 BlockSz: 0020  [00000900-0000091F]
00000920  0002 0002 004C  DataSz: 0020 BlockSz: 0020  [0000092C-0000094B]
0000094C  0001 0002 0054  DataSz: 0021 BlockSz: 0030  [00000958-00000987]
00000988  001C 0004 0109  DataSz: 0037 BlockSz: 0040  [00000994-000009D3]
000009D4  001D 0001 0029  DataSz: 001F BlockSz: 0020  [000009E0-000009FF]
00000A00  011E 0002 001F  DataSz: 001F BlockSz: 001F  [00000A0C-00000A2A]
00000A2B  0016 0001 00B2  DataSz: 0040 BlockSz: 0040  [00000A37-00000A76]
00000A77  0015 0003 0078  DataSz: 0030 BlockSz: 0030  [00000A83-00000AB2]
00000AB3  002A 0006 01B2  DataSz: 006E BlockSz: 0070  [00000ABF-00000B2E]
00000B2F  002B 0006 0192  DataSz: 006C BlockSz: 0070  [00000B3B-00000BAA]
00000BAB  002C 0006 0192  DataSz: 006C BlockSz: 0070  [00000BB7-00000C26]
00000C27  002D 0006 0192  DataSz: 006C BlockSz: 0070  [00000C33-00000CA2]
00000CA3  0011 0005 00C8  DataSz: 0066 BlockSz: 0070  [00000CAF-00000D1E]
00000D1F  0012 0005 00C8  DataSz: 0066 BlockSz: 0070  [00000D2B-00000D9A]
00000D9B  0013 0005 00C8  DataSz: 0066 BlockSz: 0070  [00000DA7-00000E16]
00000E17  0014 0005 00C8  DataSz: 0066 BlockSz: 0070  [00000E23-00000E92]
00000E93  0029 0003 0552  DataSz: 00A1 BlockSz: 00B0  [00000E9F-00000F4E]
00000F4F  002F 0011 0049  DataSz: 0037 BlockSz: 0040  [00000F5B-00000F9A]
00000F9B  010C 0001 0015  DataSz: 0015 BlockSz: 0015  [00000FA7-00000FBB]
00000FBC  0123 0003 0008  DataSz: 0008 BlockSz: 0008  [00000FC8-00000FCF]
00000FD0  002E 0010 0034  DataSz: 0020 BlockSz: 0020  [00000FDC-00000FFB]
00000FFC  000E 0010 0030  DataSz: 0023 BlockSz: 0030  [00001008-00001037]
00001038  011B 000D 0010  DataSz: 0010 BlockSz: 0010  [00001044-00001053]
00001054  0019 0005 01F6  DataSz: 0023 BlockSz: 0030  [00001060-0000108F]
00001090  001F 0003 0050  DataSz: 002E BlockSz: 0030  [0000109C-000010CB]
000010CC  003A 0003 005F  DataSz: 002A BlockSz: 0030  [000010D8-00001107]
00001108  000A 0005 005C  DataSz: 0026 BlockSz: 0030  [00001114-00001143]

Do you know what are the UInt16 fields in the Block2? Do you know if their data contents has any XXTEA encryption or other?
 

Offline bob808

  • Frequent Contributor
  • **
  • Posts: 281
  • Country: 00
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #122 on: November 05, 2022, 05:06:12 pm »
if they have good control over their ADC chips then what features exactly would a user be able to get extra from software hacking? what is their sales risk vs reward? most of this type of hacking (especially the hardware one) would be done by hobbyists which wouldn't shell the big bucks for higher end models anyway. giving them a taste for higher end options might help overall.
I see this as an interesting experiment and curious how it's going to play out. let's not blast them for making it easy for us, I don't think it's productive.
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 17263
  • Country: 00
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #123 on: November 05, 2022, 06:19:00 pm »
I see this as an interesting experiment and curious how it's going to play out. let's not blast them for making it easy for us, I don't think it's productive.

They've been doing it for a long time now.

The MSO5000 has been hackable since day one, the DS1054Z too.

Sales of both would definitely have been significantly lower if they hadn't allowed hacking.

Before that it was the DS1052E...



etc., etc.

Rigol management for sure knows all about it and obviously told the engineers not to lock anything down. Anybody who can't see that might want to make an appointment with the optician.

PS: There's a DS1000Z variant that is locked down - the one with the built-in AWG. They obviously decided not to let anybody have that for free, then repented with the MSO5000 and allowed it again.
 

Offline 2N3055

  • Super Contributor
  • ***
  • Posts: 7287
  • Country: hr
Re: Hacking the HDO1k/HDO4k Rigol 12 bit scope
« Reply #124 on: November 05, 2022, 06:22:11 pm »
if they have good control over their ADC chips then what features exactly would a user be able to get extra from software hacking? what is their sales risk vs reward? most of this type of hacking (especially the hardware one) would be done by hobbyists which wouldn't shell the big bucks for higher end models anyway. giving them a taste for higher end options might help overall.
I see this as an interesting experiment and curious how it's going to play out. let's not blast them for making it easy for us, I don't think it's productive.
Hacking of these devices would have same usefulness like it did with old Riglol: you could buy cheapest MSO1074 and unlock bandwidth to full 200MHz and all optional features that MSO1000 platform has. If a simple license generator (like Riglol) is available than it would be low (zero) risk for home users and would be done en masse..
These scopes are not exactly DS1000Z cheap though, so market will still be much smaller.

I don't see conversion from  MSO1000 to MSO4000 as something that would be done by more than few daredevils.

It also remains to be seen it this "too easy hack" was a gaffe by Rigol and will be patched ASAP.
If they don't then they might be counting on this "advantage" and are happy to sell the scope at lowest price..
 
The following users thanked this post: Martin72


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf