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

0 Members and 1 Guest are viewing this topic.

Offline scottie4442

  • Supporter
  • ****
  • Posts: 32
  • Country: us
Re: Free DS6000/DS1000Z software
« Reply #25 on: April 02, 2016, 06:21:58 pm »
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 KarelTopic starter

  • Super Contributor
  • ***
  • Posts: 2214
  • Country: 00
Re: Free DS6000/DS1000Z software
« Reply #26 on: April 02, 2016, 06:33:23 pm »
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.
 

Offline douardda

  • Regular Contributor
  • *
  • Posts: 82
  • Country: fr
Re: Free DS6000/DS1000Z software
« Reply #27 on: April 10, 2016, 10:01:50 pm »
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 KarelTopic starter

  • Super Contributor
  • ***
  • Posts: 2214
  • Country: 00
Re: Free DS6000/DS1000Z software
« Reply #28 on: April 11, 2016, 05:45:34 pm »
- 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


 

Offline Axk

  • Regular Contributor
  • *
  • Posts: 218
  • Country: by
Re: Free DS6000/DS1000Z software
« Reply #29 on: July 03, 2016, 02:47:36 pm »
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 03, 2016, 02:50:15 pm by Axk »
 

Offline KarelTopic starter

  • Super Contributor
  • ***
  • Posts: 2214
  • Country: 00
Re: Free DS6000/DS1000Z software
« Reply #30 on: July 03, 2016, 07:01:54 pm »
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
 

Offline RoGeorge

  • Super Contributor
  • ***
  • Posts: 6145
  • Country: ro
Re: Free DS6000/DS1000Z software
« Reply #31 on: October 20, 2016, 05:09:32 pm »
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, 05:21:48 am »
This post is just to easily follow the subject.

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

---
Daniel
 

Offline Axk

  • Regular Contributor
  • *
  • Posts: 218
  • Country: by
Re: Free DS6000/DS1000Z software
« Reply #33 on: November 08, 2016, 01:26:43 pm »
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

  • Super Contributor
  • ***
  • Posts: 6145
  • Country: ro
Re: Free DS6000/DS1000Z software
« Reply #34 on: November 08, 2016, 05:08:19 pm »
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 04, 2016, 05:57:11 pm by RoGeorge »
 

Offline KarelTopic starter

  • Super Contributor
  • ***
  • Posts: 2214
  • Country: 00
Re: Free DS6000/DS1000Z software
« Reply #35 on: December 04, 2016, 05:15:58 pm »
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 following users thanked this post: f1rmb

Offline Dwaine

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

Offline KarelTopic starter

  • Super Contributor
  • ***
  • Posts: 2214
  • Country: 00
Re: Free DS6000/DS1000Z software
« Reply #37 on: December 08, 2016, 04:59:15 pm »
DSRemote has implemented SPI decoding.
 

Offline KarelTopic starter

  • Super Contributor
  • ***
  • Posts: 2214
  • Country: 00
Re: Free DS6000/DS1000Z software
« Reply #38 on: December 08, 2016, 06:12:08 pm »
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 08, 2016, 06:14:38 pm by Karel »
 

Offline KarelTopic starter

  • Super Contributor
  • ***
  • Posts: 2214
  • Country: 00
Re: Free DS6000/DS1000Z software
« Reply #39 on: December 08, 2016, 06:50:18 pm »
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...

 

Offline KarelTopic starter

  • Super Contributor
  • ***
  • Posts: 2214
  • Country: 00
Re: Free DS6000/DS1000Z software
« Reply #40 on: December 18, 2016, 04:06:46 pm »
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 following users thanked this post: Dwaine

Offline KarelTopic starter

  • Super Contributor
  • ***
  • Posts: 2214
  • Country: 00
Re: Free DS6000/DS1000Z software
« Reply #41 on: December 29, 2016, 02:42:23 pm »
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 following users thanked this post: Marcos, TheoB, Daruosha

Offline KarelTopic starter

  • Super Contributor
  • ***
  • Posts: 2214
  • Country: 00
Re: Free DS6000/DS1000Z software
« Reply #42 on: May 14, 2017, 04:44:16 pm »
DSRemote now supports Record & Playback function.
It's under the "util" button.
 
The following users thanked this post: BravoV, denimdragon

Offline BravoV

  • Super Contributor
  • ***
  • Posts: 7547
  • Country: 00
  • +++ ATH1
Re: Free DS6000/DS1000Z software
« Reply #43 on: May 14, 2017, 05:22:23 pm »
Thank you for all your hard work !  :-+

Offline DavidMassey

  • Newbie
  • Posts: 5
  • Country: us
Re: Free DS6000/DS1000Z software
« Reply #44 on: July 06, 2017, 08:35:48 pm »
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 KarelTopic starter

  • Super Contributor
  • ***
  • Posts: 2214
  • Country: 00
Re: Free DS6000/DS1000Z software
« Reply #45 on: July 09, 2017, 12: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.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf