Author Topic: New Rigol 16-bit function generators DG800/900 series  (Read 194514 times)

0 Members and 1 Guest are viewing this topic.

Offline joeyjoejoe

  • Frequent Contributor
  • **
  • Posts: 267
  • Country: ca
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #600 on: September 29, 2020, 08:51:39 pm »
Thanks :) The wording suggested it was not.

Skipping that step, just got my magic USB stick, finishing Ultra Sigma download now... wish there was an easier way with linux, I tried PyVISA but it didn't seem to respond to commands.
 

Offline joeyjoejoe

  • Frequent Contributor
  • **
  • Posts: 267
  • Country: ca
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #601 on: September 29, 2020, 09:00:57 pm »
Update - thanks Luckygecko, tv84 and vtech. DG821->DG992 complete.
 

Offline TurboTom

  • Super Contributor
  • ***
  • Posts: 1389
  • Country: de
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #602 on: October 02, 2020, 12:07:05 am »
After @nctnico's review of the Tektronix AFG31022, I just had to have a more detailed observation of my "DG811+++'s" inter-channel phase accuracy behavior. So I hooked up both channels of the AWG to my 53310A modulation domain analyzer, configured as a high-speed timer. Channel 1 would start the measurement, Channel 2 would stop it.

Since I wanted to analyze a possible "phase drift" at whole-number multiples of frequencies between the two channels, I always configured channel 2 to output a whole number multiple frequency of channel 1. I experimented in "couple mode" with both frequency and phase coupling enabled or disabled with little observable effect.

The result was disappointing: depending on the frequency pairs, I can find a phase drift, regardless of the coupling parameter, at factors sometimes as low as ten between the frequencies. I didn't dial in ultra-odd combinations. 60kHz and 1.2MHz for example walks away at approx. 100ps per minute. Other combinations are drifting even faster.

Seems like Rigol didn't get the phase accumulator math exactly right. I'ld expect that the "phase coupling" has some real effect, even if the frequencies are not identical but whole number multiples. Otherwise, the "frequency copupling" should work accurately to multiples of at least 1000.

IMO, the DG811 "hacker's delight"  >:D is still a good AWG for its price, but never ever pay the price for a higher model in the range, especially not the DG900 or DG2000 series. For that kind of money, the performance will be disappointing, and there are better choices available.

I'm quite curious if we'll eventually see a firmware update that takes care of this... IMO it would be sufficient to reset (re-align) the phase automatically each time when the multiple of periods has passed. The additional phase noise in the faster channel should be neglible. It may not be necessary to modify the math routines that probably, due to rounding inaccuracies, cause the phase accumulators to drift.
« Last Edit: October 02, 2020, 11:31:05 am by TurboTom »
 

Offline sequoia

  • Supporter
  • ****
  • Posts: 154
  • Country: us
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #603 on: October 04, 2020, 03:01:26 am »
Anyone succeeded "downgrading" back to v1.08 firmware on unit that came with v2.05 firmware from factory?

I tested modified 1.08 firmware update and unit detects it and prompts for upgrade. However, if you choose "ok" it just spins in the waiting screen for a while and then the animation freezes and after a while whole upgrade window goes away (unit does not reboot). Then it will prompt again for upgrade....


UPDATE:

I was able to use the official 2.04 firmware to "downgrade" from 2.05 -> 2.04 firmware.  However, no change in behaviour if attempt to downgrade to 1.08 firmware....
« Last Edit: October 04, 2020, 03:33:11 am by sequoia »
 

Offline TK

  • Super Contributor
  • ***
  • Posts: 1722
  • Country: us
  • I am a Systems Analyst who plays with Electronics
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #604 on: October 04, 2020, 04:41:39 am »
Anyone succeeded "downgrading" back to v1.08 firmware on unit that came with v2.05 firmware from factory?

I tested modified 1.08 firmware update and unit detects it and prompts for upgrade. However, if you choose "ok" it just spins in the waiting screen for a while and then the animation freezes and after a while whole upgrade window goes away (unit does not reboot). Then it will prompt again for upgrade....


UPDATE:

I was able to use the official 2.04 firmware to "downgrade" from 2.05 -> 2.04 firmware.  However, no change in behaviour if attempt to downgrade to 1.08 firmware....
When you downgrade from 2.05 to 2.04, doesn't the model change to DG992?  What do you mean by "no change in behavior"?
 

Offline sequoia

  • Supporter
  • ****
  • Posts: 154
  • Country: us
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #605 on: October 04, 2020, 04:59:06 am »
Anyone succeeded "downgrading" back to v1.08 firmware on unit that came with v2.05 firmware from factory?

I tested modified 1.08 firmware update and unit detects it and prompts for upgrade. However, if you choose "ok" it just spins in the waiting screen for a while and then the animation freezes and after a while whole upgrade window goes away (unit does not reboot). Then it will prompt again for upgrade....


UPDATE:

I was able to use the official 2.04 firmware to "downgrade" from 2.05 -> 2.04 firmware.  However, no change in behaviour if attempt to downgrade to 1.08 firmware....
When you downgrade from 2.05 to 2.04, doesn't the model change to DG992?  What do you mean by "no change in behavior"?

No, model stayed as DG811.  No change in behaviour when trying to upgrade (downgrade) to 1.08 firmware.  "Waiting" screen shows up after clicking "OK" and the animation spins for a while before freezing...


I was finally able to run the downgrade to 1.08 firmware. Starting upgrade when unit was already running (on 2.04/2.05 firmware) didn't work. But booting up unit and pressing "Help" key rapidly during power on, seemed to trigger some kind of "firmware recovery" mode that started the firmware upgrade automatically... This way downgrade to 1.08 firmware was successful.

 
The following users thanked this post: steradian, Trader, SmartiesEmpire

Offline SMB784

  • Frequent Contributor
  • **
  • Posts: 421
  • Country: us
    • Tequity Surplus
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #606 on: October 08, 2020, 09:52:28 pm »
I verified today that the JTAG interface only works with the Xilinx Spartan6 FPGA, but I did notice something interesting on the under side of the "core board"

Does anyone have any idea what this set of 7 pads might be for (see red box in attached image)?  Maybe a JTAG interface for the TI AM335x CPU?  If so, maybe we can hook into that and download the contents of the NAND flash to get the CalibrationData.dat file specific to one of our units.

Offline rea

  • Contributor
  • Posts: 14
  • Country: af
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #607 on: October 11, 2020, 12:57:28 am »
No luck here either

Looks like we will need a custom firmware or figure another way into root shell.

Another way: http://codelabs.ru/firmware/rigol/dg8xx-9xx/2.05.00-enable-ssh/
 
The following users thanked this post: thm_w, ultranalog, TurboTom, SMB784

Offline SMB784

  • Frequent Contributor
  • **
  • Posts: 421
  • Country: us
    • Tequity Surplus
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #608 on: October 11, 2020, 02:37:50 am »
No luck here either

Looks like we will need a custom firmware or figure another way into root shell.

Another way: http://codelabs.ru/firmware/rigol/dg8xx-9xx/2.05.00-enable-ssh/

Ok this is intriguing!  The readme claims that this technique wont survive an update, but in our case that's not really a problem because all we are trying to do is get the calibration info/procedure.  My bet is that if we can update the calibration info with the correct values using this access procedure you have linked, I suspect that these calibration values will likely persist between updates back to stock firmware with the DG992 upgrade in tact.  At the very least I can try to get the contents of the firmware.

Now I just gotta figure out how to SSH into this thing via USB... do I need to get a USB->ethernet adapter for that?  If so, any recommendations?
« Last Edit: October 11, 2020, 04:30:56 am by SMB784 »
 

Offline rea

  • Contributor
  • Posts: 14
  • Country: af
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #609 on: October 11, 2020, 08:03:09 am »
G'day.

Quote
Do I need to get a USB->ethernet adapter for that?

Yes.

Quote
If so, any recommendations?

I am good with Realtek 8152-based adapter (it came with ASUS notebook).  The list of USB device identifiers can be consulted here: https://code.woboq.org/linux/linux/drivers/net/usb/r8152.c.html#rtl8152_table

ASIX-based adapters are also supported, here's the list: https://code.woboq.org/linux/linux/drivers/net/usb/asix_devices.c.html#ax8817x_info

 

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3217
  • Country: pt
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #610 on: October 11, 2020, 08:58:47 am »
I think I posted this in the past...

This should allow a dump of some internal files, including the calib ones.

And dump the NAND...

No need to mess with root shell for these.
 
The following users thanked this post: SMB784

Offline rea

  • Contributor
  • Posts: 14
  • Country: af
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #611 on: October 11, 2020, 08:11:36 pm »
No need to mess with root shell for these.

There are many ways to skin a (net)cat...
 

Offline SMB784

  • Frequent Contributor
  • **
  • Posts: 421
  • Country: us
    • Tequity Surplus
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #612 on: October 11, 2020, 08:36:13 pm »
I think I posted this in the past...

This should allow a dump of some internal files, including the calib ones.

And dump the NAND...

No need to mess with root shell for these.

Ok, how does the dump procedure work?  I assume since it doesn't require root shell access that there is some command that allows one to extract the desired files?  How does one input that command and collect the desired files?

G'day.

Quote
Do I need to get a USB->ethernet adapter for that?

Yes.

I am good with Realtek 8152-based adapter (it came with ASUS notebook).  The list of USB device identifiers can be consulted here: https://code.woboq.org/linux/linux/drivers/net/usb/r8152.c.html#rtl8152_table

ASIX-based adapters are also supported, here's the list: https://code.woboq.org/linux/linux/drivers/net/usb/asix_devices.c.html#ax8817x_info



I assume the adapter will need to plug into the USB host port with the type B connector, so I will find an adapter for my USB ethernet adapter.  :-DD
« Last Edit: October 11, 2020, 08:44:48 pm by SMB784 »
 

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3217
  • Country: pt
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #613 on: October 11, 2020, 08:43:02 pm »
How does one input that command and collect the desired files?

Execute those update .GELs.
 
The following users thanked this post: SMB784

Offline SMB784

  • Frequent Contributor
  • **
  • Posts: 421
  • Country: us
    • Tequity Surplus
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #614 on: October 11, 2020, 09:13:31 pm »
Alright, tried the reboot with help/local pressed method when the USB was plugged in and it gave me a Error: Bad script message and wouldn't boot.  Took out the USB, booted it up, put the USB back in, and executed the update.  Its currently stuck on the waiting screen, I assume that its downloading somethign to the USB but I'm not sure.  I'll give it a few more minutes before I kill it and reboot it.

*** EDIT ***

Killed it, got the cal data now (all in chinese, so this will be interesting).  Thanks for the script!
« Last Edit: October 11, 2020, 09:21:49 pm by SMB784 »
 

Offline rea

  • Contributor
  • Posts: 14
  • Country: af
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #615 on: October 11, 2020, 09:33:19 pm »
I assume the adapter will need to plug into the USB host port with the type B connector

No: it can go into Type-A slot, the same place as for the USB drive.  So if you have the adapter, just plug it in and see if the scope will turn on USB icon, show LXI icon and show dialogs about network configuration being initialized.
 
The following users thanked this post: SMB784

Offline SMB784

  • Frequent Contributor
  • **
  • Posts: 421
  • Country: us
    • Tequity Surplus
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #616 on: October 11, 2020, 10:50:54 pm »
I have attached my calibration data, I'm working on making some sense of it but I don't read chinese  very well.  I ran a "file" command on it and it tells me that its a dBase III DBT file.  So I downloaded dbview and tried to run it on the file, and it tells me that version 192 is not supported.  So it appears that its some sort of .dbf file, but I dont know how to work with it yet.  Maybe one of you will have better luck than me.

One interesting thing to note: When I entered the SCPI command :CAL:DATE 09/09/2020 as mentioned earlier in this thread, it actually updated the calibration date in the CalibrationInfo.dat file.  So, we know that at least some of those CAL SCPI commands actually do something.

Now if only I could actually decode what exactly was going on in these CalibrationInfo.dat/CalibrationData.dat files...
« Last Edit: October 13, 2020, 02:12:01 am by SMB784 »
 
The following users thanked this post: ultranalog

Offline SMB784

  • Frequent Contributor
  • **
  • Posts: 421
  • Country: us
    • Tequity Surplus
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #617 on: October 16, 2020, 07:35:24 pm »
I've tried identifying the contents of these files via few methods, some of which is somewhat illuminating, others contradictory.  I have attached the outputs in this reply.  If this looks familiar, let me know.
« Last Edit: October 16, 2020, 07:38:37 pm by SMB784 »
 

Offline TurboTom

  • Super Contributor
  • ***
  • Posts: 1389
  • Country: de
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #618 on: October 17, 2020, 01:34:08 pm »
Anybody succeeded with @rea's approach to get access to the "running" dg800?

I ran the .gel script which apparently worked and then tried to log into the instrument with a USB-network adapter via a putty client. Trying on port 5555 stalls the client, port 22 seems to work half-way, which means I get a login prompt. But the supplied password won't get me in. Could it be possible that I didn't configure the encryption settings properly? If I try to access port 22 with telnet, I only get some unreadable garbage as return which indicates to me that the encryption via putty is probably working. But I'm just not too experienced with this networking stuff. Maybe I should add: Communicating with the DG800 over this connection with SCPI commands (ID, screenshots and the like) works beautifully so the link itself seems to be operational.

It's not that I really need this but peeking around a little in the instument may be fun  ;)

Cheers,
Thomas
 

Offline rea

  • Contributor
  • Posts: 14
  • Country: af
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #619 on: October 17, 2020, 04:05:43 pm »
Thomas, good day.

I ran the .gel script which apparently worked and then tried to log into the instrument with a USB-network adapter via a putty client. Trying on port 5555 stalls the client,
... which makes sense: port 5555 isn't running SSH.

Quote
port 22 seems to work half-way, which means I get a login prompt. But the supplied password won't get me in. Could it be possible that I didn't configure the encryption settings properly?

In order for SSH access to work, you should get the provided SSH key, http://codelabs.ru/firmware/rigol/dg8xx-9xx/2.05.00-enable-ssh/id_rsa-rigol-dg, and make your SSH client to use it for logging in (as user "root").  For Putty the import of the SSH key can be done like described here: https://devops.ionos.com/tutorials/use-ssh-keys-with-putty-on-windows/#use-existing-public-and-private-keys

Quote
If I try to access port 22 with telnet, I only get some unreadable garbage as return which indicates to me that the encryption via putty is probably working.

This "garbage" isn't a complete junk.  The first line should read "SSH-2.0-dropbear_2016.74" and the second (that is much longer) should have something like "curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,kexguess2@matt.ucc.asn.au#ecdsa-sha2-nistp521,ssh-rsa,ssh-dssgaes128-ctr,aes256-ctr,aes128-cbc,aes256-cbc,twofish256-cbc,twofish-cbc,twofish128-cbc,3des-ctr,3des-cbcgaes128-ctr,aes256-ctr,aes128-cbc,aes256-cbc,twofish256-cbc,twofish-cbc,twofish128-cbc,3des-ctr,3des-cbc;hmac-sha1-96,hmac-sha1,hmac-sha2-256,hmac-sha2-512,hmac-md5;hmac-sha1-96,hmac-sha1,hmac-sha2-256,hmac-sha2-512,hmac-md5none" in it.  In fact, that's the beginning of a standard SSH server protocol exchange.

HTH.
 
The following users thanked this post: TurboTom

Offline SMB784

  • Frequent Contributor
  • **
  • Posts: 421
  • Country: us
    • Tequity Surplus
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #620 on: October 17, 2020, 05:21:46 pm »
Anybody succeeded with @rea's approach to get access to the "running" dg800?

I ran the .gel script which apparently worked and then tried to log into the instrument with a USB-network adapter via a putty client. Trying on port 5555 stalls the client, port 22 seems to work half-way, which means I get a login prompt. But the supplied password won't get me in. Could it be possible that I didn't configure the encryption settings properly? If I try to access port 22 with telnet, I only get some unreadable garbage as return which indicates to me that the encryption via putty is probably working. But I'm just not too experienced with this networking stuff. Maybe I should add: Communicating with the DG800 over this connection with SCPI commands (ID, screenshots and the like) works beautifully so the link itself seems to be operational.

It's not that I really need this but peeking around a little in the instument may be fun  ;)

I havent tried yet, it's next on my list of things to do.

On a different note, after trying and failing to make heads or tails of the CalibrationData.dat file I decided to hex dump the file and see if that helps anyone get an idea of what is going on with it.  Hex dump is attached.
« Last Edit: October 17, 2020, 05:39:40 pm by SMB784 »
 

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3217
  • Country: pt
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #621 on: October 17, 2020, 05:51:05 pm »
On a different note, after trying and failing to make heads or tails of the CalibrationData.dat file I decided to hex dump the file and see if that helps anyone get an idea of what is going on with it.  Hex dump is attached.

I think those files are unique to this instrument. They don't seem to follow any format.

The only way, besides reversing the whole thing, is trial and error. Unless someone sees any similarities with other instruments.

I think it would be important to study the impact of SCPI commands on their contents.
 

Offline SMB784

  • Frequent Contributor
  • **
  • Posts: 421
  • Country: us
    • Tequity Surplus
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #622 on: October 17, 2020, 05:58:49 pm »
On a different note, after trying and failing to make heads or tails of the CalibrationData.dat file I decided to hex dump the file and see if that helps anyone get an idea of what is going on with it.  Hex dump is attached.

I think those files are unique to this instrument. They don't seem to follow any format.

The only way, besides reversing the whole thing, is trial and error. Unless someone sees any similarities with other instruments.

I think it would be important to study the impact of SCPI commands on their contents.

I am beginning to think the same thing.  I was gonna start trying some of the SCPI commands I dug up in my earlier dumps and your script that spits out the cal files to see if I can induce any change.

Just so I feel better about this process, do you think it's possible to put together a script that would allow me to overwrite any changes to the CAL file with the original cal file I posted in this thread?  I would like to be able to restore any changes I might make in case I screw something up.
« Last Edit: October 17, 2020, 06:03:27 pm by SMB784 »
 

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3217
  • Country: pt
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #623 on: October 17, 2020, 06:04:51 pm »
I'll have a look.
 
The following users thanked this post: SMB784

Offline SMB784

  • Frequent Contributor
  • **
  • Posts: 421
  • Country: us
    • Tequity Surplus
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #624 on: October 17, 2020, 06:19:09 pm »
I'll have a look.

If not, I can probably just use the SSH script to telnet into the unit and directly replace the files via ssh.


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf