Low Cost PCB's Low Cost Components

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

0 Members and 2 Guests are viewing this topic.

Offline ddavidebor

  • Frequent Contributor
  • **
  • Posts: 997
  • Country: it
    • Fermium LABS website
Sniffing the Rigol's internal I2C bus
« Reply #325 on: July 06, 2013, 04:07:56 AM »
I suppose that should be possible to upgrade to 52mb of memory too, but it will need hardware modification
Davide Bortolami,
Fermium LABS srl
 

Offline 5V

  • Contributor
  • Posts: 17
Re: Sniffing the Rigol's internal I2C bus
« Reply #326 on: July 06, 2013, 04:17:37 AM »
(...)

Then I applied the

LLLLLLL-RLGLLDS-DSARLLL-LLLLLLL
and
LLLLLLL-RLGLLDS-DSA9LLL-LLLLLLL
codes.

Results:
- It stays on 200 Mhz, with BW limits 20M/100M, and 2ns/div, says it's a DS2202 even after power cycling
- The options are activated only for the current power session, they are gone after reboot.

Thanks for the great work on this, highly appreciated!

I did the above and it worked as described (thanks Doma :-+). My DS2072 is converted in a 200MHz/DS2202. It stays as 200MHz/DS2202 mode after reboot. 8)

It may sound a silly question but... is there a way to switch back to 70MHz/DS2072, just in case I need to send the scope back in the warranty period?

Thanks!

It is not a silly question, but is asked also several times, and answered several times...Yes it can.

Sorry Wim13, apologies if the answer has already been asked.  :-[

I did look for a code equivalent to the LLLLLLL-RLGLLDS-DSA9LLL-LLLLLLL code but that works in reverse but I couldn't find it  :-//

Perhaps, you can point me in the right direction?
 

Offline egonotto

  • Regular Contributor
  • *
  • Posts: 99
Re: Sniffing the Rigol's internal I2C bus
« Reply #327 on: July 06, 2013, 05:48:15 AM »
Hello,

if you want back the DS2072 use the ....VSA9.....  option key. Than you have still the bandwith option. Now do a self cal. Than the options are gone and you have your DS2072 back.

Best regards

egonotto
 

Offline doma

  • Contributor
  • Posts: 11
  • Country: 00
Re: Sniffing the Rigol's internal I2C bus
« Reply #328 on: July 06, 2013, 06:00:38 AM »
suggest u read the whole thread ...

Thanks, I did. Now I understand (volatility of options/type-BW across boot). You even need the first 10 pages to understand that and it is said explicitly nowhere, though it can be deduced from other facts.

Maybe a FAQ thread would be useful to keep guys like me from asking the obvious and take the thread OFF.

I'd do it happily but I'm afraid I'd just ask too much.

Doma
« Last Edit: July 06, 2013, 06:14:26 AM by doma »
 

Offline Orange

  • Frequent Contributor
  • **
  • Posts: 263
  • Country: nl
Re: Sniffing the Rigol's internal I2C bus
« Reply #329 on: July 06, 2013, 06:06:22 AM »
I tried with Python. I used Python 2.7.5, since 3.3 does not seem to be compatible with the VXI11 module.
I added a few delays, seems to be more stable when the options are installed.

I have set the scope IP address to fixed (10.0.0.80)
Works under W7  64bit....

Code: [Select]

#Make it a DS2202
LICENSE = "LLLLLLLRLGLLDSDSA9LLLLLLLLLL"
#or
#LICENSE = "LLLLLLLRLGLLDSDSAZLLLLLLLLLL"

#Make it a DS2072
#LICENSE = "LLLLLLLRLGLLDSVSA9LLLLLLLLLL"


import vxi11, sys, time
print("Connecting...")
rigol = vxi11.Instrument("10.0.0.80")
print("Model number before patch:")
print(rigol.ask("*IDN?"))
print("Getting current set-up...")
config = rigol.ask_raw(":SYSTem:SETup?")
time.sleep(3)
print("Writing license key... " + LICENSE)
rigol.write(":SYSTem:OPTion:INSTall " + LICENSE)
time.sleep(5)
print("Restoring set-up")
rigol.write_raw(":SYST:SET " + config)
print("Model number after patch:")
print(rigol.ask("*IDN?"))
time.sleep(5)
sys.exit(0)


« Last Edit: July 10, 2013, 07:36:56 PM by Orange »
 

Offline 5V

  • Contributor
  • Posts: 17
Re: Sniffing the Rigol's internal I2C bus
« Reply #330 on: July 06, 2013, 09:21:37 PM »
Hello,

if you want back the DS2072 use the ....VSA9.....  option key. Than you have still the bandwith option. Now do a self cal. Than the options are gone and you have your DS2072 back.

Best regards

egonotto

I used the LLLLLLLRLGLLDSVSA9LLLLLLLLLL code. After that, the Utility/Options/Installed showed:

   BANDWIDTH    100M BandWidth    Trial Version   2157Minutes
   BANDWIDTH    200M BandWidth    Trial Version   2157Minutes

I run a self calibration after that but it didn't work:

- I can still set the horizontal scale to 2ns/div
- Utility/System/System_Info still shows "Model: DS2202"
- I lost all trial times (*)

(*) It's not great but it's not the end of the world. Fortunately, I don't need them for what I do anyway. If I need them I can always use the ...DSAR... code.

 

Offline egonotto

  • Regular Contributor
  • *
  • Posts: 99
Re: Sniffing the Rigol's internal I2C bus
« Reply #331 on: July 06, 2013, 10:04:33 PM »
Hello 5v,

if you have FW 00.01.00.00.03 and still the option:
BANDWIDTH    100M BandWidth    Trial Version   ????Minutes
BANDWIDTH    200M BandWidth    Trial Version   ????Minutes


try a second self cal.

Sometimes it need 2 self cal's that the trial options vanishes

Best Regards,
egonotto
 
 

Offline 5V

  • Contributor
  • Posts: 17
Re: Sniffing the Rigol's internal I2C bus
« Reply #332 on: July 06, 2013, 10:25:55 PM »
Hi egonotto,

Sorry, I didn’t explain myself clearly.  :(   I should have said "I run a self calibration after that. The 100MHz and 200MHz options disappeared but the reset to DS2072 didn't work"

The 100MHz and 200MHz options disappeared after the calibration. The Utility/option/installed is greyed out as there are no options installed anymore.

However, the Utility/System/System_Info still shows "Model: DS2202" and the horizontal scale can be set to 2nsec/div (200Mhz?)

I did a second self calibration just in case but it had no effect in resetting the scope to DS2072.

In a nutshell, the code ...VSA9... + calibration managed to delete all the trial options but it didn’t do much else.

« Last Edit: July 06, 2013, 10:39:54 PM by 5V »
 

Offline egonotto

  • Regular Contributor
  • *
  • Posts: 99
Re: Sniffing the Rigol's internal I2C bus
« Reply #333 on: July 06, 2013, 11:09:12 PM »
Hello 5v,

I try it again.
I send via Ultra Sigma over LAN the command:
:SYSTem:OPTion:INSTall LLLLLLLRLGLLDSVSA9LLLLLLLLLL
Than I turn of and on and I got my DS2072 back. I need no self cal.
I got my remaining trial time back.

Best Regards
egonotto
 
 

Offline 5V

  • Contributor
  • Posts: 17
Re: Sniffing the Rigol's internal I2C bus
« Reply #334 on: July 06, 2013, 11:44:29 PM »
Hello 5v,

I try it again.
I send via Ultra Sigma over LAN the command:
:SYSTem:OPTion:INSTall LLLLLLLRLGLLDSVSA9LLLLLLLLLL
Than I turn of and on and I got my DS2072 back. I need no self cal.
I got my remaining trial time back.

Best Regards
egonotto

Unfortunately, it didn’t work.  :(

The scope answered with "Trial version installed" after I sent the command over the LAN.

I waited for a few seconds, turned off/on the scope. No changes (DS2202, no trial times).
 

Offline 5V

  • Contributor
  • Posts: 17
Re: Sniffing the Rigol's internal I2C bus
« Reply #335 on: July 06, 2013, 11:50:40 PM »
Hi,

I waited for a few seconds, turned off/on the scope. No changes (DS2202, no trial times).

So you are unable to change your scope back to a DS2072?

Thanks,

Alan

Correct - I'm unable to change the scope back to a DS2072.

I don't know if it is of any help but I'm on firmware 00.01.00.00.03

 

Offline marmad

  • Super Contributor
  • ***
  • Posts: 2986
  • Country: aq
    • DaysAlive
Re: Sniffing the Rigol's internal I2C bus
« Reply #336 on: July 06, 2013, 11:55:17 PM »
Correct - I'm unable to change the scope back to a DS2072.

I don't know if it is of any help but I'm on firmware 00.01.00.00.03
Man, it doesn't sound like you've read the correct way to do it - even after Wim pointed you to the precise page of this thread that explains how!

Seriously - read that - try it - and then come here to complain you can't do it.
 

Offline metalphreak

  • Frequent Contributor
  • **
  • Posts: 817
  • Country: au
  • http://d.av.id.au
    • D.av.id.AU
Re: Sniffing the Rigol's internal I2C bus
« Reply #337 on: July 06, 2013, 11:57:21 PM »
You don't install another code to go back to stock. You use the UNINSTALL command.

Offline 5V

  • Contributor
  • Posts: 17
Re: Sniffing the Rigol's internal I2C bus
« Reply #338 on: July 07, 2013, 12:24:14 AM »
Correct - I'm unable to change the scope back to a DS2072.

I don't know if it is of any help but I'm on firmware 00.01.00.00.03
Man, it doesn't sound like you've read the correct way to do it - even after Wim pointed you to the precise page of this thread that explains how!

Seriously - read that - try it - and then come here to complain you can't do it.

I unknow the page you are referring to and, among the other tests, I also I did what the post says.

This what I did.

1.
I used the code LLLLLLL-RLGLLDS-VSA9LLL-LLLLLLL via the scope user interface
Run a self-calibration

2.
With Ultra-Sigma (LAN and USB) I run the command:
   :SYSTem:OPTion:INSTall LLLLLLLRLGLLDSVSA9LLLLLLLLLL

3.
With Ultra-Sigma (LAN and USB) I run the command:
   :SYSTem:OPTion:INSTall LLLLLLLRLGLLDSVSA9LLLLLLLLLL
followed by
   :SYSTem:OPTion:UNINSTall

4.
With Ultra-Sigma (LAN and USB) I run the command:
   :SYSTem:OPTion:INSTall LLLLLLLRLGLLDSDSA9LLLLLLLLLL
followed by
   :SYSTem:OPTion:UNINSTall

5.
With Ultra-Sigma (LAN and USB) I run the command:
   :SYSTem:OPTion:UNINSTall

After each test, I did a power cycle. None of the above worked.

« Last Edit: July 07, 2013, 01:58:38 AM by 5V »
 

Offline marmad

  • Super Contributor
  • ***
  • Posts: 2986
  • Country: aq
    • DaysAlive
Re: Sniffing the Rigol's internal I2C bus
« Reply #339 on: July 07, 2013, 12:32:38 AM »
After each test, I did a power cycle. None of the above worked.
Can you please post a screen image of your full system info (with your serial number blacked out, if you wish)? You get it by using the technique mentioned at the bottom of this post.
 

Offline 5V

  • Contributor
  • Posts: 17
Re: Sniffing the Rigol's internal I2C bus
« Reply #340 on: July 07, 2013, 12:41:48 AM »
(...) Can you please post a screen image of your full system info (with your serial number blacked out, if you wish)? (...)

As an extra info, if I run the command *IDN? with UltraSigma, I receive the answer:
RIGOL TECHNOLOGIES,DS2202, < serial number> ,00.01.00
« Last Edit: July 07, 2013, 12:51:52 AM by 5V »
 

Offline marmad

  • Super Contributor
  • ***
  • Posts: 2986
  • Country: aq
    • DaysAlive
Re: Sniffing the Rigol's internal I2C bus
« Reply #341 on: July 07, 2013, 12:59:47 AM »
(...) Can you please post a screen image of your full system info (with your serial number blacked out, if you wish)? (...)

Ok, thanks. Well, here's the thing - you have the exact same hardware that I (and probably everyone else who has bought their DSO between at least 10/2012 - 05/2013) have. Since others with the exact same hardware and firmware as you - have not had any problems resetting their model numbers back to DS2072s, I can only think of two possible reasons why you can't do it:

1) You're doing some part of the sequence incorrectly - but what that could be is hard to say, since we can't look over your shoulder while you do it.

2) Since you're a brand new poster here - who's FIRST post was: "Is there a way to switch back to 70MHz/DS2072, just in case I need to send the scope back in the warranty period?" - and then all your subsequent posts have been how it's IMPOSSIBLE to change it back - well...... I would just have to wonder if you're being completely truthful (for the obvious reason).  ;)

Can you think of another reason I haven't thought of?
« Last Edit: July 07, 2013, 01:07:09 AM by marmad »
 

Offline marmad

  • Super Contributor
  • ***
  • Posts: 2986
  • Country: aq
    • DaysAlive
Re: Sniffing the Rigol's internal I2C bus
« Reply #342 on: July 07, 2013, 01:03:33 AM »
As an extra info, if I run the command *IDN? with UltraSigma, I receive the answer:
RIGOL TECHNOLOGIES,DS2202, < serial number> ,00.01.00

BTW, downgrading your FW to 01.00.05 should definitely reset your model number - since 01.00.05 does NOT have BW options enabled.
« Last Edit: July 07, 2013, 01:06:39 AM by marmad »
 

Offline 5V

  • Contributor
  • Posts: 17
Re: Sniffing the Rigol's internal I2C bus
« Reply #343 on: July 07, 2013, 01:30:48 AM »
Thanks Wim13,

Quote from: Wim13
1, connect Ultra Sigma,
Done with LAN.

Quote from: Wim13
2. *IDN, send and recieve , to verify you are connected.
Done. Answer: RIGOL TECHNOLOGIES,DS2202, <serial>,00.01.00

Quote from: Wim13
3. send install DSA9 code, ( NOT the VSA code, VSA connot run over DSA !! )
you will see in the bottom of the screen in few seconds, off ..installed
Sent the message:
:SYSTem:OPTion:INSTall LLLLLLL-RLGLLDS-DSA9LLL-LLLLLLL
No message on the scope.

Quote from: Wim13
4 verify on the DSO, that the options are there, ALL options if here are no off. options visible, then you can NOT continue. Also not if there are still trial options.
The Options/Utility/Installed is greyed out. (None of the options are active)
 

Offline 5V

  • Contributor
  • Posts: 17
Re: Sniffing the Rigol's internal I2C bus
« Reply #344 on: July 07, 2013, 01:54:38 AM »
Did you realy send the dashes in between...??? in the key

The key has to be send with NO dashes , just 28 char on the chain..!!

I'm officially on idiot  |O  Re-tried without the '-':

1. connect Ultra Sigma,
Ok
2. *IDN, send and recieve , to verify you are connected.
Ok
3. send install DSA9 code, ( NOT the VSA code, VSA connot run over DSA !! )
you will see in the bottom of the screen in few seconds, off ..installed

:SYSTem:OPTion:INSTall LLLLLLLRLGLLDSDSA9LLLLLLLLLL
Ok.
4 verify on the DSO, that the options are there, ALL options
Ok. All options are on.
5. send the  uninstall command, ONLY the install command NO keys behind it.
:SYSTem:OPTion:UNINSTall
Ok. All options are gone.
6. you dont have to reboot, to check, after uninstall all should be gone..
All options are gone.

Utility/System Info still shows Model: DS2202 and can set horizontal scale to 2nsec/div.
« Last Edit: July 07, 2013, 02:02:05 AM by 5V »
 

Offline 5V

  • Contributor
  • Posts: 17
Re: Sniffing the Rigol's internal I2C bus
« Reply #345 on: July 07, 2013, 01:56:28 AM »
(...) Can you please post a screen image of your full system info (with your serial number blacked out, if you wish)? (...)

Ok, thanks. Well, here's the thing - you have the exact same hardware that I (and probably everyone else who has bought their DSO between at least 10/2012 - 05/2013) have. Since others with the exact same hardware and firmware as you - have not had any problems resetting their model numbers back to DS2072s, I can only think of two possible reasons why you can't do it:

1) You're doing some part of the sequence incorrectly - but what that could be is hard to say, since we can't look over your shoulder while you do it.

2) Since you're a brand new poster here - who's FIRST post was: "Is there a way to switch back to 70MHz/DS2072, just in case I need to send the scope back in the warranty period?" - and then all your subsequent posts have been how it's IMPOSSIBLE to change it back - well...... I would just have to wonder if you're being completely truthful (for the obvious reason).  ;)

Can you think of another reason I haven't thought of?

1) This is probably the case. The only thing that might be different is the firmware. I don’t know if this has any impact though.

To answer your last question, it is also possible (although unlikely) that I did something else that put the DS2072 is a status that cannot be converted back. Something that other people didn’t do.

2) I would like to point out that I never said that it’s impossible. I can’t do it probably because of my limited experience.

Having said that, I understand where you came from. I guess there isn’t much I can do on this front to give you absolute proof that my problems are genuine.

I’ll be happy to send you a PM with a photo of my DS2072, my face and my credit card with the number deleted. This should show you (and the other people on the forum that may have doubts) that I don’t have any hidden agenda. Please let me know if you want me to do it.
 

Offline 5V

  • Contributor
  • Posts: 17
Re: Sniffing the Rigol's internal I2C bus
« Reply #346 on: July 07, 2013, 02:34:00 AM »
@5V

Just in case , i just did the same procedure by my self again, and after the uninstall it was back to the 2072
i did not have to reboot. 

So i am lost too..., that would mean that it has changed the model number also on the NOR flash...

If you are lost Wim13, you can imagine how I am :)

I agree - I must have done something that has written the model number in the NOR flash.

It looks like the
:SYSTem:OPTion:INSTall LLLLLLLRLGLLDSDSA9LLLLLLLLLL
:SYSTem:OPTion:UNINSTall
don't reset it back to DS2072

I can't remember doing anything specific that may have triggered that though.

@5V

Can you try the following key: DSA2 key, only Model change, 100 and 200 Mhz option

:system:option:install LLLLLLLRLGLLDSDSA2LLLLLLLLLL   

or the DSAS key, only 2202 key, only 200 Mhz option

:system:option:install LLLLLLLRLGLLDSDSASLLLLLLLLLL

Verify if the options for only bandwidth

and then

:system:option:uninstall

You dont have to reboot, the model change wil be visible if correct of course.


i tested it on my 2072, it changed from 2202 and back to 2072, without rebooting
several times with no problems, tested both keys.



:system:option:install LLLLLLLRLGLLDSDSA2LLLLLLLLLL   
:system:option:uninstall

didn't do anything.

:system:option:install LLLLLLLRLGLLDSDSASLLLLLLLLLL
:system:option:uninstall

created the 200Mhz option and the unstall removed it.

Utility/System Info still shows Model: DS2202 and I can set horizontal scale to 2nsec/div.

I guess the only thing I can do is try to find a Rigol sticker with DS2202 on it  :D

Do you think that upgrading to the latest firmware would help?

 

Offline 5V

  • Contributor
  • Posts: 17
Re: Sniffing the Rigol's internal I2C bus
« Reply #347 on: July 07, 2013, 02:53:52 AM »
@ 5V,

Upgrading to the new firmware is a very good thing to do, solved lost of bugs..anyway...

and you never Know..,

One thing we can try, reboot, verify there are no options loaded, and load the trail key

:system:option:install LLLLLLLRLGLLDSVSA9LLLLLLLLLL
 This will also change the model to 2072.

Upgraded to fw 01.01.00.02

:SYSTem:OPTion:INSTall LLLLLLLRLGLLDSDSA9LLLLLLLLLL
:SYSTem:OPTion:UNINSTall


:system:option:install LLLLLLLRLGLLDSVSA9LLLLLLLLLL
:SYSTem:OPTion:UNINSTall


Still DS2202  |O
 

Offline 5V

  • Contributor
  • Posts: 17
Re: Sniffing the Rigol's internal I2C bus
« Reply #348 on: July 07, 2013, 03:13:22 AM »

@5V

Well not realy a big problem as long the DSO is keep on working...
And when broken, maybe they never discover, depends on he failure..

Finger crossed, I will keep using it without any problem that requires Rigol's assistance.

BUT , nice thing to find out, what did you do,

how id you put in the code, keyboard ?
how many times did you a self-cal..?
other minor things  you remenber...?

I agree. It would be interesting to know what caused it. I'll be happy to help answering questions or doing tests if it is of any help to others.

Q: how id you put in the code, keyboard ?
A: Using the scope user interface. I applied
  LLLLLLL-RLGLLDS-DSARLLL-LLLLLLL
followed by
  LLLLLLL-RLGLLDS-DSA9LLL-LLLLLLL

Q: how many times did you a self-cal..?
A: I followed this suggestion. I did the self cal after I applied the code
  LLLLLLL-RLGLLDS-VSA9LLL-LLLLLLL
using the scope user interface.

Q: ther minor things  you remenber...?
A: Honestly, I can't remember doing anything out of the ordinary. I measured some signals and I took a screenshot or two.

« Last Edit: July 07, 2013, 03:15:43 AM by 5V »
 

Offline egonotto

  • Regular Contributor
  • *
  • Posts: 99
Re: Sniffing the Rigol's internal I2C bus
« Reply #349 on: July 07, 2013, 03:35:44 AM »
Hello,

perhaps 5V got a real DS2202 with wrong DS2072 sticker

Best Regards
egonotto
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf