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

0 Members and 1 Guest are viewing this topic.

Offline frozenfrogz

  • Frequent Contributor
  • **
  • Posts: 936
  • Country: de
  • Having fun with Arduino and Raspberry Pi
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #250 on: July 13, 2019, 04:27:18 pm »
Nice that you could figure it out. :)
He’s like a trained ape. Without the training.
 
The following users thanked this post: drummerdimitri

Offline Ashdash

  • Contributor
  • Posts: 23
  • Country: nz
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #251 on: August 12, 2019, 09:18:54 am »
I've just bought a DG-811. Software version 00.01.09.00.00

Can anyone confirm they have upgraded a unit with this software version?  I'm wondering if the door has been closed.

After reading the instructions carefully and many attempts I have been unable to upgrade my unit.

I have tried different sized usb drives.  I have formatted a 2GB, FAT32, 512mB sector size and used HxD to write the string at sector 2,000,000. The drive is recognised when plugged into the DG811. I send the ":PROJ:MODE DG992" using Ultra Sigma connected by usb. I get return code 0 and no upgrade after power cycle.

I have also tried a 8GB drive formatted with default sector size.  All this on Windows laptop.
Any suggestions?
 

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3212
  • Country: pt
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #252 on: August 12, 2019, 09:25:10 am »
Format the USB disk in Linux to FAT32 and do the sector writing in Linux, as explained. Forget Windows, for now.

Report the results.
 

Offline Ashdash

  • Contributor
  • Posts: 23
  • Country: nz
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #253 on: August 12, 2019, 10:21:35 am »
Format the USB disk in Linux to FAT32 and do the sector writing in Linux, as explained. Forget Windows, for now.

Report the results.

Ok. Formatted the usb drive on linux as vfat type b and put a file system on it and then

dd if=/home/nick/Downloads/DG800/DG800_sardinha.bin of=/dev/sdb1 bs=512 seek=2000000
0+1 records in
0+1 records out
8 bytes copied, 0.00547345 s, 1.5 kB/s

The dg811 mounts the drive ok. When I send :PROJ:MODE DG992 via Ultra Sigma I get (Return Count:0) as a reply. And after power cycle still no upgrade.
 

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 6272
  • Country: ca
  • Non-expert
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #254 on: August 12, 2019, 11:42:02 pm »
The dg811 mounts the drive ok. When I send :PROJ:MODE DG992 via Ultra Sigma I get (Return Count:0) as a reply. And after power cycle still no upgrade.

You can see my post above where I recommend not using Ultra Sigma to send the command. I'm not certain if it works or not, but the program is quite bad IMO. Try something else and please let us know.

Otherwise we have to wait until FW 00.01.09.00.00 has been uploaded.
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 

Offline ogden

  • Super Contributor
  • ***
  • Posts: 3731
  • Country: lv
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #255 on: August 13, 2019, 07:24:45 am »
You can see my post above where I recommend not using Ultra Sigma to send the command.

I can confirm that I failed with Ultra Sigma as well. What could be that "something else" that works under Windows.
 

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 6272
  • Country: ca
  • Non-expert
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #256 on: August 13, 2019, 09:03:38 pm »
I can confirm that I failed with Ultra Sigma as well. What could be that "something else" that works under Windows.

pycharm + pyvisa
NI-Visa
R&S Visa
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 
The following users thanked this post: ogden

Offline Ashdash

  • Contributor
  • Posts: 23
  • Country: nz
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #257 on: August 13, 2019, 09:45:24 pm »
Thanks everyone for your interest and help.

I had another go last night with R&S Visa 5.8.5. for Windows.  DG-811 connect by USB.  I was able to change the display brightness ok which I did as a test that the instrument was accepting commands. But still no luck upgrading the model.

If anyone has been able to upgrade an instrument with 00.01.09.00.00 firmware it would be nice to know that.

If firmware 00.01.09.00.00 is known to work, it seems to me there must be something very pedantic about the preparation of the usb drive that I have missed.

Or does the DG-811 have to be set to a certain screen or mode before sending :PROJ:MODE DG992\n ?
 

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 6272
  • Country: ca
  • Non-expert
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #258 on: August 13, 2019, 10:03:16 pm »
Thanks everyone for your interest and help.

I had another go last night with R&S Visa 5.8.5. for Windows.  DG-811 connect by USB.  I was able to change the display brightness ok which I did as a test that the instrument was accepting commands. But still no luck upgrading the model.

If anyone has been able to upgrade an instrument with 00.01.09.00.00 firmware it would be nice to know that.

If firmware 00.01.09.00.00 is known to work, it seems to me there must be something very pedantic about the preparation of the usb drive that I have missed.

Or does the DG-811 have to be set to a certain screen or mode before sending :PROJ:MODE DG992\n ?

No it doesn't need to be in a certain screen mode. I had it in the info screen, to see the model number. Thats good that you tested commands are working. But its basically impossible to test that the "rigol key" is working as expected, without the PROJ command actually working, which is tough.

You are the first person to report 00.01.09.00.00 firmware so no, its not "known to work". You could consider trying to downgrade the firmware, 00.01.08.00.01 is available on the rigol site: https://www.rigolna.com/firmware/.
There may be some small risk to doing this, and you won't be able to go back to 09 FW until its released, but most likely if there is any problem it will be that rigol blocked ability to downgrade FW.
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 

Offline bitseeker

  • Super Contributor
  • ***
  • Posts: 9057
  • Country: us
  • Lots of engineer-tweakable parts inside!
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #259 on: August 14, 2019, 12:20:58 am »
Format the USB disk in Linux to FAT32 and do the sector writing in Linux, as explained. Forget Windows, for now.

Report the results.

Ok. Formatted the usb drive on linux as vfat type b and put a file system on it and then

dd if=/home/nick/Downloads/DG800/DG800_sardinha.bin of=/dev/sdb1 bs=512 seek=2000000
0+1 records in
0+1 records out
8 bytes copied, 0.00547345 s, 1.5 kB/s

The dg811 mounts the drive ok. When I send :PROJ:MODE DG992 via Ultra Sigma I get (Return Count:0) as a reply. And after power cycle still no upgrade.

Note the highlighted items in red, above. Might make a difference.
TEA is the way. | TEA Time channel
 

Offline Ashdash

  • Contributor
  • Posts: 23
  • Country: nz
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #260 on: August 14, 2019, 02:27:42 am »
Format the USB disk in Linux to FAT32 and do the sector writing in Linux, as explained. Forget Windows, for now.

Report the results.

Ok. Formatted the usb drive on linux as vfat type b and put a file system on it and then

dd if=/home/nick/Downloads/DG800/DG800_sardinha.bin of=/dev/sdb1 bs=512 seek=2000000
0+1 records in
0+1 records out
8 bytes copied, 0.00547345 s, 1.5 kB/s

The dg811 mounts the drive ok. When I send :PROJ:MODE DG992 via Ultra Sigma I get (Return Count:0) as a reply. And after power cycle still no upgrade.

Note the highlighted items in red, above. Might make a difference.

That was a fairly hurried reply to tv84 in response to a suggested action.

A better reply would have been that I created on the usb drive, with fdisk, a partition of type b and then created a FAT32 file system on that.  I have subsequently tried both active and non-active partitions and also a FAT filesystem. And then after those actions copied DG800_sardinha.bin to the correct sector.

This is the first time I've used VISA to control instruments, so I'm going to go back through all the instructions to see if I am overlookng something simple.
 

Offline bitseeker

  • Super Contributor
  • ***
  • Posts: 9057
  • Country: us
  • Lots of engineer-tweakable parts inside!
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #261 on: August 14, 2019, 04:34:22 am »
Ah, OK. Bummer. I was hoping that would've gotten you success.
TEA is the way. | TEA Time channel
 

Offline Ashdash

  • Contributor
  • Posts: 23
  • Country: nz
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #262 on: August 14, 2019, 05:26:09 am »
Tried everything again with no luck.  Attached are the first 2 sectors of my formatted usb stick. Maybe that could be the problem. Can someone with a good stick compare to this file.

Or better still, post you sectors and I will write to my stick.
« Last Edit: August 14, 2019, 05:28:20 am by Ashdash »
 

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3212
  • Country: pt
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #263 on: August 14, 2019, 09:14:59 am »
Ash,

Why are you showing the 1st 2 sectors of your disk?

Remember the bytes are written at (almost) the 1GB mark. BTW, are you using a +1GB capacity disk?

Have you tried a partition type 0C ?   

Have you tried with another USB disk?

As last resource, go to windows, remove the partition. Create a new partition (default values). Go to debian. Format it FAT32. Do the sector insertion.

You can easily test the sector reading, as the DG does it. I don't have here the command but I can post.

 

Offline Ashdash

  • Contributor
  • Posts: 23
  • Country: nz
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #264 on: August 14, 2019, 10:17:07 am »
Thanks for your questions.  I like your work.  I'll answer in  order.

1. Several posts in this thread and your questions are about the stick.  Old stick, another stick, how it was partitioned, FAT32 etc. Created under linux or windows.
Reading through the posts:
It didn't work, a different stick, and then it worked.  No clear explanation.  You get my thinking?  Nothing definitive.  It's a long time since I looked at boot sectors, volume labels, FAT tables etc.
But looking in the first sector is "ëX.mkfs.fat", volume label, etc. Are those fields (except the FAT table ) the same for every utility on different systems that are used to create the stick?  I don't know.

2. I've confirmed that the bytes are written at sector 2,000,000 on a 2 Gb stick.

3.  Yes.  I tried that today.

4.  Not really.  I started out with 2 x 8GB sticks that didn't work and managed to find a 2GB stick.  I can't find another old small one.  So see 1. above.

5.  Sort of the same as above.  What is that trying to achieve?  It's like we are not sure what is going on.  I'd like to help.

Is it possible that before the DG-811 even looks for the bytes at sector 2,000,000, it expects a volume label, text string from creation  utility, come what may, etc etc in first 2 sectors.  On my stick all sectors above the first 2 are 00 until 2,000,000

"You can easily test the sector reading, as the DG does it. I don't have here the command but I can post."  Yes. That could help.

I am suspicious that I seem I can't get this to work on the new firmware.  If anyone has managed to achieve this on firmware 00.01.09.00.00 I'd be really pleased to know.

But it does seem that many are struggling with the usb stick and I'd like to help get to the bottom of that.

 

Offline Ashdash

  • Contributor
  • Posts: 23
  • Country: nz
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #265 on: August 14, 2019, 10:42:37 am »
Don't use:

:PROJ:MODE DG992\n

Use just:

:PROJ:MODE DG992

I think I have done this.

Within Rigol Ultra Sigma, -> SCPI command -> Advanced (drop box) -> Options is an EOL sequence.  "\n" is one of 4 options.  So within Ulra Sigma I have sent ":PROJ:MODE DG992" which will be appended by "\n".  It's not possible to send without an EOL sequence.

I don't see similar option within RsVisa so have tried both ":PROJ:MODE DG992" and ":PROJ:MODE DG992\n".  No upgrade either way.

Within both Ultra Sigma and RsVisa I can send ":DISP:BRIG 1" and ":DISP:BRIG 100" to set the display brightness.

What I haven't done is send commands to the DG-811 outside those 2 packages.  I need to do more work before I can use pyVisa under linux.
 

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3212
  • Country: pt
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #266 on: August 14, 2019, 11:26:44 am »
I also don't like to insist on the USB thing...  :)

I've tried multiple time in this forum that people start documenting the USB disks with controller, etc info. But to no avail... There are multiple FWs that use some (direct access) sector reading functions that may or may not work in certain conditions.

From what you have said it seems the prob may be in new FW. That's easy to check once I get my hands on it.

The only thing that comes to mind about the sector writing in HxD is if you are using logical or absolute sectors... That's why I prefer to tell people to use the Linux command.
 

Offline Ashdash

  • Contributor
  • Posts: 23
  • Country: nz
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #267 on: August 14, 2019, 11:35:46 am »
Thanks for reply.

All my recent tests are using your linux command modified for my file locations.  I have only checked with HxD to see if bytes are present.

I extracted the first 2 sectors from my stick with: dd if=/dev/sdb1 of=/home/nick/Downloads/DG800/sectors.hex count=2

Can you provide first 2 sectors of known good usb stick?
 

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3212
  • Country: pt
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #268 on: August 14, 2019, 12:52:46 pm »
Not at home.

Do this and see if the first 8 bytes are the sardinha.bin:

dd if=/dev/sdb1 of=block.bin skip=2000000 count=1
 

Offline Ashdash

  • Contributor
  • Posts: 23
  • Country: nz
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #269 on: August 15, 2019, 04:51:57 am »
Not at home.

Do this and see if the first 8 bytes are the sardinha.bin:

dd if=/dev/sdb1 of=block.bin skip=2000000 count=1

Upload utility won't accept block.bin so block.hex.

Attachment is the result of your command on usb drive prepared with linux that I have been using to try to upgrade.
 

Offline tv84

  • Super Contributor
  • ***
  • Posts: 3212
  • Country: pt
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #270 on: August 15, 2019, 08:55:41 pm »
Attachment is the result of your command on usb drive prepared with linux that I have been using to try to upgrade.

As you can see, the block is correctly written. If it's not your VISA stuff, it's the FW that has changed.
 

Offline Ashdash

  • Contributor
  • Posts: 23
  • Country: nz
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #271 on: August 15, 2019, 09:27:27 pm »
Attachment is the result of your command on usb drive prepared with linux that I have been using to try to upgrade.

As you can see, the block is correctly written. If it's not your VISA stuff, it's the FW that has changed.

Yes I agree.

I am trying to locate a usb to lan adapter so I can provide the information you requested by PM. The ones that are readily available are based on Axis AX88772 chipset. Looking at your post of kernel modules earlier in the thread, there is only a Realtek rtl8152 driver so I guess the adapter must be based on that chipset.
 

Online TurboTom

  • Super Contributor
  • ***
  • Posts: 1388
  • Country: de
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #272 on: August 15, 2019, 10:12:24 pm »
There are several adapters, also the "el-cheapo"-ones that work. Some of the cheapest ones aren't equipped with isolating transformers.

The funny thing is, some only get recognized by the DG800/900 after an active LAN cable is plugged in. After that, no problem (...only found this out after having bought three different ones -- altogether still a lot cheaper than the one Rigol offers...).

Cheers,
Thomas
 
The following users thanked this post: Ashdash

Offline timber23

  • Contributor
  • Posts: 47
  • Country: de
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #273 on: August 15, 2019, 10:20:54 pm »
If it's not your VISA stuff, it's the FW that has changed.
You could use my Python script to send the SCPI command to switch mode.

Necessary files are attached.
 
The following users thanked this post: egonotto, thm_w, ultranalog, 2N3055, frozenfrogz, blubillcanada

Offline timber23

  • Contributor
  • Posts: 47
  • Country: de
Re: New Rigol 16-bit function generators DG800/900 series
« Reply #274 on: August 15, 2019, 10:43:47 pm »
I can confirm that this GoojoDoq adapter works: https://www.aliexpress.com/item/32945323919.html It is only $3.57 and was delivered within 4 weeks. It was sugested by someone here in the forum.

The el-cheapo ones I tryed so far did not work. I mean white LAN adapters with realtek chipset. Even with active LAN connected to it, it didn't work.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf