Author Topic: Free DS6000/DS1000Z software  (Read 13553 times)

0 Members and 1 Guest are viewing this topic.

Offline scottie4442

  • Supporter
  • ****
  • Posts: 23
  • Country: us
Re: Free DS6000/DS1000Z software
« Reply #25 on: April 03, 2016, 04:21:58 AM »
Tried to get DSRemote working on my Linux Mint 17.3 laptop.  I followed the instructions and got the git downloaded, compiled and installed.  Ran dsremote and it starts fine but when I try to connect to the scope it says "cannot open device /dev/usbtmc0".  I have check ls -l /dev/usbtmc* and it is coming up on usbtmc0, so that is right. I also put the udev rule in so that the permissions are correct for this device, I do have rw permissions for group usbtmc and I am a member of the group.  not sure what to do after this. any help would be appreciated. Thanks

Ok I have done more searching and found this, when I run a dmesg the usbtmc seems to come up fine and recognizes the scope.  The last line though shows " usbtmc 3-1:1.0: Device sent too small first packet: 4 < 12", not sure what this means or how to fix it.
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 1074
  • Country: 00
Re: Free DS6000/DS1000Z software
« Reply #26 on: April 03, 2016, 04:33:23 AM »
Ok I have done more searching and found this, when I run a dmesg the usbtmc seems to come up fine and recognizes the scope.  The last line though shows " usbtmc 3-1:1.0: Device sent too small first packet: 4 < 12", not sure what this means or how to fix it.

What is the model of your scope?

What is the firmware version?

Start DSRemote in a console and look what messages are printed when you connect.
The difference between theory and practice is less in theory than
the difference between theory and practice in practice.
Expensive tools cannot compensate for lack of experience.
 

Offline douardda

  • Regular Contributor
  • *
  • Posts: 64
  • Country: fr
Re: Free DS6000/DS1000Z software
« Reply #27 on: April 11, 2016, 08:01:50 AM »
Hi

just to let you know I've been able to use DSRemote with my DS1054Z (unlocked) on my debian jessie laptop. Nice work.

Just a few notes:

- I had to remove the qt version checking at the beginning of the qmake file (it did not detected properly the qt4 from the debian package; I've not tried to figure out why),

- you should simplify the instructions of the "Download the source code:" with a simple "git clone https://github.com/Teuniz/DSRemote.git"

- "make -j 16" is a bit aggressive for the system, you should lower this value (4 seems quite a decent "default" value)


David
 
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 1074
  • Country: 00
Re: Free DS6000/DS1000Z software
« Reply #28 on: April 12, 2016, 03:45:34 AM »
- I had to remove the qt version checking at the beginning of the qmake file (it did not detected properly the qt4 from the debian package; I've not tried to figure out why),

I guess you should have used qmake-qt4 instead of qmake.
qmake will use qt5. This is because distro's are in the transition from Qt4 to Qt5 and the Qt5 version on Debian Jessie
is pretty old & contains too many bugs.

http://unix.stackexchange.com/questions/116254/how-do-i-change-which-version-of-qt-is-used-for-qmake


The difference between theory and practice is less in theory than
the difference between theory and practice in practice.
Expensive tools cannot compensate for lack of experience.
 

Offline Axk

  • Contributor
  • Posts: 10
  • Country: by
Re: Free DS6000/DS1000Z software
« Reply #29 on: July 04, 2016, 12:47:36 AM »
If anyone wants to speed up waveform saving from DS1054Z a bit when using DSRemote you may want to try this:

in the source folder edit save_data.cpp

change

#define SAV_MEM_BSZ    (250000)

to

#define SAV_MEM_BSZ    (1000000)

rebuild the same way as building it the first time:

qmake
make -j16
sudo make install

I've tested over LAN on saving 24M points and before the change it took 2:20 vs 1:27 after the change, not a huge improvement but still.

I've tried going even higher with the parameter value but DS1054Z crashes with an out of memory message and the requests sent by DSRemote fail, so this is about the maximum you can get with the scope I suppose.

Over USB I'm getting roughly the same result after the change, I've not tested it before the change with USB but suppose it should be similar to the LAN result because the connection is not the bottleneck in both cases.

« Last Edit: July 04, 2016, 12:50:15 AM by Axk »
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 1074
  • Country: 00
Re: Free DS6000/DS1000Z software
« Reply #30 on: July 04, 2016, 05:01:54 AM »
If anyone wants to speed up waveform saving from DS1054Z a bit when using DSRemote you may want to try this:

Don't you think there's a reason why the author choose this particular size for the buffer?

Please have a look at page 229 (2-213) of the Rigol Programming Guide July 2015:

Code: [Select]
When reading the waveform data in the internal memory, the maximum number
of waveform points can be read each time the :WAV:DATA? command is sent is
related to the return format of the waveform data currently selected, as shown
in the table below.

BYTE 250000
WORD 125000
ASCII 15625
The difference between theory and practice is less in theory than
the difference between theory and practice in practice.
Expensive tools cannot compensate for lack of experience.
 

Offline RoGeorge

  • Frequent Contributor
  • **
  • Posts: 655
  • Country: ro
Re: Free DS6000/DS1000Z software
« Reply #31 on: October 21, 2016, 04:09:32 AM »
This post is just to easily follow the subject.

Offline f1rmb

  • Regular Contributor
  • *
  • Posts: 180
  • Country: fr
Re: Free DS6000/DS1000Z software
« Reply #32 on: October 21, 2016, 04:21:48 PM »
This post is just to easily follow the subject.

Can't you just click on the "notify" button ?

---
Daniel
 

Offline Axk

  • Contributor
  • Posts: 10
  • Country: by
Re: Free DS6000/DS1000Z software
« Reply #33 on: November 09, 2016, 12:26:43 AM »
Don't you think there's a reason why the author choose this particular size for the buffer?

I'm not suggesting the author was not reading the manual, and that I've tested it in all possible circumstances, just my observation that it worked with the bigger buffer size and was a bit faster.
 

Offline RoGeorge

  • Frequent Contributor
  • **
  • Posts: 655
  • Country: ro
Re: Free DS6000/DS1000Z software
« Reply #34 on: November 09, 2016, 04:08:19 AM »
The maximum buffer size depends of:

- what the scope is doing at the moment: It can be more then 1 500 000 points for a single trace in stop mode, and it can be as low as 250 000 points for 4 ch, 6 mil samples + stats active (binary mode).
- oscilloscope firmware version
« Last Edit: December 05, 2016, 04:57:11 AM by RoGeorge »
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 1074
  • Country: 00
Re: Free DS6000/DS1000Z software
« Reply #35 on: December 05, 2016, 04:15:58 AM »
DSRemote now has partially implemented the serial decoding, at this moment only UART is supported.
Other decoding protocols can be set and controlled via DSRemote but only UART is visualized inside DSRemote.

The difference between theory and practice is less in theory than
the difference between theory and practice in practice.
Expensive tools cannot compensate for lack of experience.
 
The following users thanked this post: f1rmb

Offline Dwaine

  • Regular Contributor
  • *
  • Posts: 198
  • Country: ca
Re: Free DS6000/DS1000Z software
« Reply #36 on: December 05, 2016, 12:47:19 PM »
Thanks.   Compiling now.  I appreciate your work on this software.  I use it all the time
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 1074
  • Country: 00
Re: Free DS6000/DS1000Z software
« Reply #37 on: December 09, 2016, 03:59:15 AM »
DSRemote has implemented SPI decoding.
The difference between theory and practice is less in theory than
the difference between theory and practice in practice.
Expensive tools cannot compensate for lack of experience.
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 1074
  • Country: 00
Re: Free DS6000/DS1000Z software
« Reply #38 on: December 09, 2016, 05:12:08 AM »
Probably it's a bug in the firmware of the scope that triggers this error in combination with certain USB host controller chipsets.

The reason that this problem occurs on Linux is probably because the kernel developers are more strict with the USB standard.

To give you an example, connect your DS1000Z to a USB port and enter dmesg:

Code: [Select]
[  569.775078] usb 1-2: new high-speed USB device number 4 using ehci-pci
[  569.911485] usb 1-2: config 1 interface 0 altsetting 0 bulk endpoint 0x82 has invalid maxpacket 64
[  569.911499] usb 1-2: config 1 interface 0 altsetting 0 bulk endpoint 0x3 has invalid maxpacket 64
[  569.911976] usb 1-2: New USB device found, idVendor=1ab1, idProduct=04ce
[  569.911987] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  569.911991] usb 1-2: Product: DS1000Z Series
[  569.911994] usb 1-2: Manufacturer: Rigol Technologies.
[  569.911998] usb 1-2: SerialNumber: DS1ZA17040xxxx
[  569.934523] usbcore: registered new interface driver usbtmc

The scope presents itself as a highspeed USB device but set the maxpacket value for the bulk endpoint to 64 bytes.

The USB standard says that a highspeed USB device MUST set that value to 512 bytes!

I reported this bug to Rigol but no answer so far.

My impression is that they don't care about Linux...

« Last Edit: December 09, 2016, 05:14:38 AM by Karel »
The difference between theory and practice is less in theory than
the difference between theory and practice in practice.
Expensive tools cannot compensate for lack of experience.
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 1074
  • Country: 00
Re: Free DS6000/DS1000Z software
« Reply #39 on: December 09, 2016, 05:50:18 AM »
Perhaps you could file a bugreport as well and include that screenshot.
The more people complain, the more likely that they'll fix it...

Another thing you could try is to put a non-highspeed USB hub between the scope and your pc.
That way the scope will be forced to fall back to full-speed. Maybe that solves your problem.
The scope isn't very speedy anyway...

The difference between theory and practice is less in theory than
the difference between theory and practice in practice.
Expensive tools cannot compensate for lack of experience.
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 1074
  • Country: 00
Re: Free DS6000/DS1000Z software
« Reply #40 on: December 19, 2016, 03:06:46 AM »
DSRemote now supports extended vertical dynamic range i.e. it supports 10 vertical divisons on the display instead of 8.
How does this work?
The DS1000Z series shows only 200 lsb's over the whole vertical range of the display (25 lsb's per div.).
The 56 lsb's which are left are simply not shown. So, the scope uses only 78% of the dynamic range of the adc.

DSRemote adds two extra divisions and uses 250 lsb's for the whole vertical range, so it uses 98% of the dynamic range.
This is an improvement of 25% of the dynamic range.

Grab a copy and see for yourself.

The difference between theory and practice is less in theory than
the difference between theory and practice in practice.
Expensive tools cannot compensate for lack of experience.
 
The following users thanked this post: Dwaine

Offline Karel

  • Super Contributor
  • ***
  • Posts: 1074
  • Country: 00
Re: Free DS6000/DS1000Z software
« Reply #41 on: December 30, 2016, 01:42:23 AM »
DSRemote now has a "Wave Inspector". (click on the "Save" button)

The Wave Inspector is a separate window that shows you the whole waveform memory up to 24Mpts.
You can use the keyboard shortcuts or the slider at the bottom to navigate through the data in a quick and comfortable way
or zoom in/out.

Serial decoding for UART and SPI works also in the Wave Inspector.
Now, the old argument that the DS1054Z decodes only what is on the screen, is no longer valid when using DSRemote.

Happy New Year!
The difference between theory and practice is less in theory than
the difference between theory and practice in practice.
Expensive tools cannot compensate for lack of experience.
 
The following users thanked this post: Marcos, TheoB, Daruosha

Offline Karel

  • Super Contributor
  • ***
  • Posts: 1074
  • Country: 00
Re: Free DS6000/DS1000Z software
« Reply #42 on: May 15, 2017, 02:44:16 AM »
DSRemote now supports Record & Playback function.
It's under the "util" button.
The difference between theory and practice is less in theory than
the difference between theory and practice in practice.
Expensive tools cannot compensate for lack of experience.
 
The following users thanked this post: BravoV, denimdragon

Online BravoV

  • Super Contributor
  • ***
  • Posts: 4417
  • Country: id
  • An EEE (Eternal Electronics Enthusiast)
Re: Free DS6000/DS1000Z software
« Reply #43 on: May 15, 2017, 03:22:23 AM »
Thank you for all your hard work !  :-+

Offline DavidMassey

  • Contributor
  • Posts: 5
  • Country: us
Re: Free DS6000/DS1000Z software
« Reply #44 on: July 07, 2017, 06:35:48 AM »
I just got my DS1054Z (upgraded to the 100MHz version with patch code) and was hoping I could somehow lock channel 1 and 2 together as far as gain control adjustments so I can turn the knob and both channels would increase/decrease at the same time.  I'm using the scope to monitor audio from the left and right channels of my TEAC reel-to-reel deck for head alignment and frequency response purposed using a $100 calibration tape.   Doesn't seem to have that feature and was wondering how hard that would be to implement into your code.  I was thinking if the software detected any two or more channel select buttons pressed at the same time would lock the gain control to the channels pressed.  Turning the knob would change the vertical gain of all selected channels together.

Thanks for any consideration of this feature!
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 1074
  • Country: 00
Re: Free DS6000/DS1000Z software
« Reply #45 on: July 09, 2017, 10:51:14 PM »
Issues regarding DSRemote can be submitted here: https://github.com/Teuniz/DSRemote/issues

- or + will increase or decrease the vertical scale of the active channel.

Shift- or Shift+ will increase or decrease the vertical scale of all active channels.

Pull again from Github and recompile for the latest changes.
The difference between theory and practice is less in theory than
the difference between theory and practice in practice.
Expensive tools cannot compensate for lack of experience.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf