Author Topic: Sniffing the Rigol's internal I2C bus  (Read 1840483 times)

0 Members and 3 Guests are viewing this topic.

Offline Co6aka

  • Supporter
  • ****
  • Posts: 299
  • Country: us
Re: Sniffing the Rigol's internal I2C bus
« Reply #1375 on: November 15, 2013, 11:39:25 pm »
Well, now we know where to go to get a Rigol if we want to sniff its I2C bus.

Except, it seems some have been sniffing a little too much bus, so... Maybe let's not go there.  8)

Cybernet, did you see my post re accessing the Cal menu of the DSA1000-series? I'm still swamped with nonsense-work so I haven't been able to 'hack on it. (I'm trying to wring out of my cal-lab acquaintance any other Rigol cal access info.) Was also wondering why, if the basic feature bits were mostly/all low-order, why the keys for the different series instruments would be so different (unless of course there's an ID bit/bit-combination,) and if a key for, say a DS4014 and DS4054, for the same options was the same or different.
Co6aka says, "BARK! and you have no idea how humans will respond."
 

Offline cybernet

  • Regular Contributor
  • *
  • Posts: 247
  • Country: 00
  • pm deactivated, use the search function ...
Re: Sniffing the Rigol's internal I2C bus
« Reply #1376 on: November 16, 2013, 12:13:36 am »

the bits are different per instrument series, because rigol choose so. that way they can id a license to a instrument type probably the cause for it.
no real logical other reason imho.

Cybernet, did you see my post re accessing the Cal menu of the DSA1000-series? I'm still swamped with nonsense-work so I haven't been able to 'hack on it. (I'm trying to wring out of my cal-lab acquaintance any other Rigol cal access info.) Was also wondering why, if the basic feature bits were mostly/all low-order, why the keys for the different series instruments would be so different (unless of course there's an ID bit/bit-combination,) and if a key for, say a DS4014 and DS4054, for the same options was the same or different.
___________________
"all rights reversed :-)"
R0=-0x18;
UNLINK;
RTS;
 

Offline cybernet

  • Regular Contributor
  • *
  • Posts: 247
  • Country: 00
  • pm deactivated, use the search function ...
Re: Sniffing the Rigol's internal I2C bus
« Reply #1377 on: November 16, 2013, 12:14:16 am »
back to topic on this thread:

an early xmas present for all DG4??? users ...

https://www.eevblog.com/forum/testgear/dg4000-a-firmware-investigation/msg331486/#msg331486
___________________
"all rights reversed :-)"
R0=-0x18;
UNLINK;
RTS;
 

Offline Co6aka

  • Supporter
  • ****
  • Posts: 299
  • Country: us
Re: Sniffing the Rigol's internal I2C bus
« Reply #1378 on: November 16, 2013, 12:58:52 am »
A dot-CEN file...  Fascinating! (Somebody's been busy... 8))
Co6aka says, "BARK! and you have no idea how humans will respond."
 

Offline Teneyes

  • Frequent Contributor
  • **
  • Posts: 498
  • Country: ca
Re: Sniffing the Rigol's internal I2C bus
« Reply #1379 on: November 16, 2013, 01:10:49 am »
an early xmas present for all DG4??? users ...

 :clap:          :clap:

Thanks again , Cybernet, 
another great Detective story,  well Done

  :-+ :-+     :-+ :-+
   
now to compile and build the file.
Thanks Sparky , DG , DS  @200MHz ;D


« Last Edit: November 16, 2013, 09:34:48 am by Teneyes »
IiIiIiIiIi  --  curiosity killed the cat but, satisfaction brought it back
 

Offline tan98010

  • Contributor
  • Posts: 20
Re: Sniffing the Rigol's internal I2C bus
« Reply #1380 on: November 16, 2013, 09:26:45 am »
Can anyone attached the .exe files? thanks.
 

Offline true

  • Frequent Contributor
  • **
  • Posts: 329
  • Country: us
  • INTERNET
Re: Sniffing the Rigol's internal I2C bus
« Reply #1381 on: November 17, 2013, 06:08:02 am »
cybernet, do you think something similar is in DSxxxx series?

Anyone dump DSxxxx yet? If something like this exists on DSxxxx I can write a downgrader...
 

Offline Giggy

  • Contributor
  • Posts: 11
Re: Sniffing the Rigol's internal I2C bus
« Reply #1382 on: November 18, 2013, 08:52:45 am »
Hey guys,
My ds2072A arrived today, looks good, wasn't aware i was receiving 300mhz passive probes (includes compensation adjustment)

Will have to attempt to hack the device once i learn to use it, i would like the ability to downgrade i suppose, for warranty reasons. (hopefully there isn't something set once hacked that cant be undone)

Anyone interested in some information about it?
 

Offline apelly

  • Supporter
  • ****
  • Posts: 1061
  • Country: nz
  • Probe
Re: Sniffing the Rigol's internal I2C bus
« Reply #1383 on: November 18, 2013, 09:07:00 am »
Will have to attempt to hack the device
Good luck with that matey
 

Offline AndersAnd

  • Frequent Contributor
  • **
  • Posts: 572
  • Country: dk
Re: Sniffing the Rigol's internal I2C bus
« Reply #1384 on: November 18, 2013, 10:51:42 am »
cybernet, do you think something similar is in DSxxxx series?

Anyone dump DSxxxx yet? If something like this exists on DSxxxx I can write a downgrader...
https://www.eevblog.com/forum/testgear/dg4000-a-firmware-investigation/msg331726/#msg331726
 

Offline danoxx

  • Newbie
  • Posts: 2
Re: Sniffing the Rigol's internal I2C bus
« Reply #1385 on: November 18, 2013, 12:06:45 pm »
I have one question, working this combination on DSA815 (maintanance or calibration mode) ? TRACE > TG > MARKER FCTN > MEAS SETUP > SYSTEM > PRINT SETUP > STORAGE

I waiting for early xmas present too (DSA1000)  ::)
 

Offline cybernet

  • Regular Contributor
  • *
  • Posts: 247
  • Country: 00
  • pm deactivated, use the search function ...
Re: Sniffing the Rigol's internal I2C bus
« Reply #1386 on: November 18, 2013, 12:19:15 pm »
I have one question, working this combination on DSA815 (maintanance or calibration mode) ? TRACE > TG > MARKER FCTN > MEAS SETUP > SYSTEM > PRINT SETUP > STORAGE

I waiting for early xmas present too (DSA1000)  ::)

nobody has yet posted any info about DSA1000, what key format, firmware image etc .. feel free to post it, and i'll have a look.
___________________
"all rights reversed :-)"
R0=-0x18;
UNLINK;
RTS;
 

Offline cybernet

  • Regular Contributor
  • *
  • Posts: 247
  • Country: 00
  • pm deactivated, use the search function ...
Re: Sniffing the Rigol's internal I2C bus
« Reply #1387 on: November 18, 2013, 12:23:13 pm »
cybernet, do you think something similar is in DSxxxx series?

Anyone dump DSxxxx yet? If something like this exists on DSxxxx I can write a downgrader...

something is, probably in the internal filesystem - but not via CEN files unfortunatly.
___________________
"all rights reversed :-)"
R0=-0x18;
UNLINK;
RTS;
 

Offline danoxx

  • Newbie
  • Posts: 2
Re: Sniffing the Rigol's internal I2C bus
« Reply #1388 on: November 18, 2013, 12:50:47 pm »
 

Offline cybernet

  • Regular Contributor
  • *
  • Posts: 247
  • Country: 00
  • pm deactivated, use the search function ...
Re: Sniffing the Rigol's internal I2C bus
« Reply #1389 on: November 18, 2013, 08:54:15 pm »
If I knew how to help... I have only firmware : newest https://www.dropbox.com/s/bw94x4pvcyn3m9b/DSA1000A%28DSP%29update0001160001.rar or older version https://www.dropbox.com/s/zyjhluwdk6k61mr/DSA1000A%28DSP%29update.rar

thx - looks like the same incremential update format than the DSA815 is using, so without an JTAG dump, no luck. some DSA1k users would need to do a jtag dump like it has been done for the DSA815.
___________________
"all rights reversed :-)"
R0=-0x18;
UNLINK;
RTS;
 

Offline cosmos

  • Regular Contributor
  • *
  • Posts: 110
  • Country: 00
Re: Sniffing the Rigol's internal I2C bus
« Reply #1390 on: November 18, 2013, 09:58:54 pm »
If we where to work on DS4k ... what would we do next?
We have the GEL files, are they enough or do we need JTAG dumps?

We have indications from GEL file (text strings for printing active options) that there are options for 200Mhz, 350Mhz, 500MHz, and "power analysis" that can be opened.

 

Offline cybernet

  • Regular Contributor
  • *
  • Posts: 247
  • Country: 00
  • pm deactivated, use the search function ...
Re: Sniffing the Rigol's internal I2C bus
« Reply #1391 on: November 18, 2013, 10:08:09 pm »
If we where to work on DS4k ... what would we do next?
We have the GEL files, are they enough or do we need JTAG dumps?

We have indications from GEL file (text strings for printing active options) that there are options for 200Mhz, 350Mhz, 500MHz, and "power analysis" that can be opened.

can u indicate some of those strings ?
what u would need is a jtag adapter, see the DG thread for details and plenty of time.

___________________
"all rights reversed :-)"
R0=-0x18;
UNLINK;
RTS;
 

Offline cosmos

  • Regular Contributor
  • *
  • Posts: 110
  • Country: 00
 

Offline AndersAnd

  • Frequent Contributor
  • **
  • Posts: 572
  • Country: dk
Re: Sniffing the Rigol's internal I2C bus
« Reply #1393 on: November 18, 2013, 10:51:39 pm »
 

Offline cybernet

  • Regular Contributor
  • *
  • Posts: 247
  • Country: 00
  • pm deactivated, use the search function ...
Re: Sniffing the Rigol's internal I2C bus
« Reply #1394 on: November 18, 2013, 11:00:02 pm »
this routine seems to build the model type ... DS40XY ....
___________________
"all rights reversed :-)"
R0=-0x18;
UNLINK;
RTS;
 

Offline N2tl

  • Newbie
  • Posts: 4
Hack report - DS2072
« Reply #1395 on: November 19, 2013, 12:08:49 am »
Device:  DS2072 (not the A version)
As delivered:
S/n: DS2A1537nnnnn
h/w: 1.0.2.0.0 (2.0)
S/w: 00.01.01.00.02
FPGA version:
 SPU 03.01.05
 WPU 00.06.05
 CCU 12.29.00
 MCU 00.05
model: DS2072
All options: trial versions.

Narrative:
The unit was supplied with current firmware and the 2.0 hardware board, but the model number is shown as a straight DS2072. So it is one of the few with the 2.0 hardware, but not the new private key.
After checking the above data, I acquired the license key using the web facility (http://riglolDOT3owlDOTcom/), and entered it as documented in the manual. The unit displayed that the license was accepted. Rebooted.
The list of options now has "Official Version" after each feature; the bandwidth is shown as 200 MHz, and the Model field says DS2202. The other "System Information" fields remained unchanged; the serial number remained correct.
Life is good.
 

Offline cybernet

  • Regular Contributor
  • *
  • Posts: 247
  • Country: 00
  • pm deactivated, use the search function ...
Re: Sniffing the Rigol's internal I2C bus
« Reply #1396 on: November 19, 2013, 12:17:58 am »
here is a little IDC script, that will try to convert anything that starts with "LINK" statement to a sub in IDA.
saves hours of stupid sub creation ...

Code: [Select]
///////////////////////////////////
// Blackfin LINK finder
// (c) cybernet, 2013
///////////////////////////////////

#include <idc.idc>
static main()
{
    auto addr,start,code;
   
    start=0x1;
    addr=FindBinary(start, SEARCH_DOWN, "00 E8");
    Message("checking for function header at %x\n", addr);
    while (addr > -1)
    {
    if (strlen(Name(addr))==0)  // not yet a known location ? (sub_)
      {
    if (MakeCode(addr))  // try to make code out of it
    {
      code=GetDisasm(addr);
      if (strstr(code, "LINK")>-1)   // mnemonic is a LINK ?
              { 
        MakeFunction(addr,-1);
        Message("created function at %x\n", addr);
              }
    }
    }
    addr=addr+4;
    addr=FindBinary(addr, SEARCH_DOWN, "00 E8");
    Message("checking for function header at %x\n", addr);
    }
}
___________________
"all rights reversed :-)"
R0=-0x18;
UNLINK;
RTS;
 

Offline DL5TOR

  • Contributor
  • Posts: 35
  • Country: de
Re: Sniffing the Rigol's internal I2C bus
« Reply #1397 on: November 19, 2013, 02:45:37 pm »
If we where to work on DS4k ... what would we do next?
We have the GEL files, are they enough or do we need JTAG dumps?

We have indications from GEL file (text strings for printing active options) that there are options for 200Mhz, 350Mhz, 500MHz, and "power analysis" that can be opened.

the DS4K keygen is also there if you read the thread then you will see (someware at page 30 +- 20). it is the same Pub-key as the 3k but the Option code is different but all dockumented somware in this thread)

 

Offline AndersAnd

  • Frequent Contributor
  • **
  • Posts: 572
  • Country: dk
Re: Sniffing the Rigol's internal I2C bus
« Reply #1398 on: November 19, 2013, 03:25:20 pm »
If we where to work on DS4k ... what would we do next?
We have the GEL files, are they enough or do we need JTAG dumps?

We have indications from GEL file (text strings for printing active options) that there are options for 200Mhz, 350Mhz, 500MHz, and "power analysis" that can be opened.

the DS4K keygen is also there if you read the thread then you will see (someware at page 30 +- 20). it is the same Pub-key as the 3k but the Option code is different but all dockumented somware in this thread)
Yes but you can't change the bandwidth and add "power analysis" with the keygen for DS4k, just like cosmos mentioned.
 

Offline Co6aka

  • Supporter
  • ****
  • Posts: 299
  • Country: us
Re: Sniffing the Rigol's internal I2C bus
« Reply #1399 on: November 19, 2013, 09:42:23 pm »
this routine seems to build the model type...

Sure does!  From the serial number? Or...where (originally) in NV memory? 

(Reminds me of the good 'ol days hacking Motorola radio programming software... 8)  Wish I had time to invest right now.)
Co6aka says, "BARK! and you have no idea how humans will respond."
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf