Author Topic: Free DS1052E/DS1102E Software for Linux  (Read 39228 times)

0 Members and 1 Guest are viewing this topic.

Offline gojimmypi

  • Regular Contributor
  • *
  • Posts: 54
  • Country: us
Re: Free DS1052E/DS1102E Software for Linux
« Reply #50 on: October 26, 2015, 11:17:59 am »
perhaps the python driver might actually work.... after some RTFM of the README I found a note regarding manual specification of hardware like this:

Quote
If you cannot access your device without running your script as root, then you
may need to create a udev rule to properly set the permissions of the device.
First, connect your device and run lsusb.  Find the vendor and product IDs.
Then, create a file /etc/udev/rules.d/usbtmc.rules with the following content:

    # USBTMC instruments

    # Agilent MSO7104
    SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="0957", ATTRS{idProduct}=="1755", GROUP="usbtmc", MODE="0660"

substituting the correct idVendor and idProduct from lsusb.  You will also need
to create the usbtmc group and add yourself to it or substitute another group
of your choosing.  It seems that udev does not allow 0666 rules, usually
overriding the mode to 0664, so you will need to be a member of the associated
group to use the device.

but "substituting the correct idVendor and idProduct from lsusb" doesn't help, as lsusb does not show my device.
 

Offline wd5gnrTopic starter

  • Regular Contributor
  • *
  • Posts: 179
Re: Free DS1052E/DS1102E Software for Linux
« Reply #51 on: October 26, 2015, 12:36:33 pm »
Which scope do you have? it should be the same for all scopes of a certain type.

I think you said you have a 1054z (although note this software works with 1052E and the commands are different enough that it would take work to port).

I let my 1052E go and have done a little software development on the 1054z but not for this software. (see https://github.com/wd5gnr/scopesnap)
 

Offline smithnerd

  • Regular Contributor
  • *
  • Posts: 120
  • Country: gb
Re: Free DS1052E/DS1102E Software for Linux
« Reply #52 on: October 26, 2015, 01:11:20 pm »
I just plugged my ds1054z into an early raspberry pi:

Code: [Select]
[    0.000000] Machine model: Raspberry Pi Model B Rev 1
Even though the kernel does not have the usbtmc driver built in, the device is detected; dmesg reports:

Code: [Select]
[  153.865942] usb 1-1.3: new high-speed USB device number 4 using dwc_otg
[  153.967580] usb 1-1.3: New USB device found, idVendor=1ab1, idProduct=04ce
[  153.967620] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  153.967640] usb 1-1.3: Product: DS1000Z Series
[  153.967658] usb 1-1.3: Manufacturer: Rigol Technologies.
[  153.967675] usb 1-1.3: SerialNumber: ...

lsusb shows:
Code: [Select]
# lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 1ab1:04ce Rigol Technologies

It is the only device connected to the physical USB ports, and I am logged in via ssh. "lsusb -v" reports MaxPower as 100mA for that device. Have you tried connecting via a self-powered USB hub?
 

Offline gojimmypi

  • Regular Contributor
  • *
  • Posts: 54
  • Country: us
Re: Free DS1052E/DS1102E Software for Linux
« Reply #53 on: October 26, 2015, 02:04:18 pm »
I think you said you have a 1054z (although note this software works with 1052E and the commands are different enough that it would take work to port).
yes, I have the ds1054z... and no... I didn't know they were so different. I'm completely new to tmc, and had hoped/assumed/wished that the commands would be somewhat standard, certainly within a manufacturer. well, lessons learned.

I just plugged my ds1054z into an early raspberry pi:

Code: [Select]
[    0.000000] Machine model: Raspberry Pi Model B Rev 1
Even though the kernel does not have the usbtmc driver built in, the device is detected; dmesg reports:

It is the only device connected to the physical USB ports, and I am logged in via ssh. "lsusb -v" reports MaxPower as 100mA for that device. Have you tried connecting via a self-powered USB hub?

good suggestions, but yes - plugged into hub with keyboard and mouse. no go.
Code: [Select]
pi@raspberrypi ~ $ lsusb -v | grep idVendor
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
Couldn't open device, some information will be missing
  idVendor           0x0424 Standard Microsystems Corp.
  idVendor           0x1d6b Linux Foundation
  idVendor           0x04f2 Chicony Electronics Co., Ltd
  idVendor           0x04f2 Chicony Electronics Co., Ltd
  idVendor           0x0424 Standard Microsystems Corp.
  idVendor           0x1a40 Terminus Technology Inc.
  idVendor           0x1a40 Terminus Technology Inc.

Code: [Select]
[    0.000000] Booting Linux on physical CPU 0xf00
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.1.7-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03)
) #817 SMP PREEMPT Sat Sep 19 15:32:00 BST 2015
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Raspberry Pi 2 Model B Rev 1.1

so I'm curious how your RPi detected the Rigol?

Even my Rigol: IO settings - Remote IO - has TMC "Off" and greyed out, even thought the USB is plugged into a hub.

I also was not able to get the usb to work in a debian vm. perhaps time to fire up a real one. Any other suggestions for Rpi would be apprecaited.

thanks!

the USB port is indeed working on Windows... as I was able to get the Ultrasigma stuff to see and talk with my DS1054z. So the problem definitely seems to be with my Rpi.
 

Offline ortegahernandes

  • Newbie
  • Posts: 5
Re: Free DS1052E/DS1102E Software for Linux
« Reply #54 on: December 29, 2015, 03:50:57 pm »
Congratulations for software :-+, I use Linux , Here the software works.
But my knowledge in this area are few and can not help you  :(


Kubuntu 15.10
DS1052E
Firmware: 00.04.02.01.00
HardVersion: 58
With hack 100MHZ

Hugs, Rodrigo Hernandes
Brazil
« Last Edit: December 29, 2015, 04:02:17 pm by ortegahernandes »
 

Offline Bzzz

  • Contributor
  • Posts: 40
  • Country: de
  • shoving atoms
    • Wan Hung Lo Electronics Blog :)
Re: Free DS1052E/DS1102E Software for Linux
« Reply #55 on: January 28, 2018, 03:17:33 pm »
Project's dead? Just tried it with a DS1054Z (product ID 04ce, just duplicated the udev lines), and it's quite laggy. Furthermore, now the package management complains about not having libqt4-core and libqt4-gui installed, which isn't really shipped with Ubuntu 16.04 LTS (or newer, I guess) anymore.

Still looking for a tool to either capture waveforms directly from the device or convert wfm to something that gnuplot does understand.
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2246
  • Country: 00
Re: Free DS1052E/DS1102E Software for Linux
« Reply #56 on: January 28, 2018, 04:41:46 pm »
Project's dead? Just tried it with a DS1054Z (product ID 04ce, just duplicated the udev lines), and it's quite laggy. Furthermore, now the package management complains about not having libqt4-core and libqt4-gui installed, which isn't really shipped with Ubuntu 16.04 LTS (or newer, I guess) anymore.

Here's how you install the Qt4 libraries necessary to compile a Qt program:

Code: [Select]
sudo apt-get install git-core g++ make libqt4-dev libqt4-core
Still looking for a tool to either capture waveforms directly from the device or convert wfm to something that gnuplot does understand.

Try this one:

https://www.teuniz.net/DSRemote/
 

Offline Bzzz

  • Contributor
  • Posts: 40
  • Country: de
  • shoving atoms
    • Wan Hung Lo Electronics Blog :)
Re: Free DS1052E/DS1102E Software for Linux
« Reply #57 on: January 30, 2018, 08:20:49 pm »
Well, as I said, it's no longer included in Ubuntu 16.04 as it is replaced by other packages. Running your command yields

Code: [Select]
sudo apt-get install git-core g++ make libqt4-dev libqt4-core
E: Package 'libqt4-core' has no installation candidate

There are instructions how to provide these outdated packages, but to me it's not worth the hassle.
DSRemote does have similar requirements, but it works fine without workarounds. I captured my data with reduced memory length (120k samples) to CSV and replaced the commas with spaces so that gnuplot does see proper data columns. Thanks for the suggestion, tho :)
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2246
  • Country: 00
Re: Free DS1052E/DS1102E Software for Linux
« Reply #58 on: January 31, 2018, 07:39:45 am »
Well, as I said, it's no longer included in Ubuntu 16.04 as it is replaced by other packages.

Not true. Too many programs depend on Qt4. The instructions I wrote were for Linux Mint which is based on Ubuntu.
Apparently there are some differences. I tried with Ubuntu 17.10 and everything works fine if you omit the "libqt4-core".
No hassle at all.

Code: [Select]
~$ qmake --version
QMake version 2.01a
Using Qt version 4.8.7 in /usr/lib/x86_64-linux-gnu
~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="17.10 (Artful Aardvark)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 17.10"
VERSION_ID="17.10"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=artful
UBUNTU_CODENAME=artful
« Last Edit: January 31, 2018, 11:49:38 am by Karel »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf