Author Topic: Sigrok & SDS2000X  (Read 1982 times)

0 Members and 1 Guest are viewing this topic.

Offline colorado.robTopic starter

  • Frequent Contributor
  • **
  • Posts: 419
  • Country: us
Sigrok & SDS2000X
« on: June 27, 2019, 04:04:43 am »
I am trying to use Sigrok with a Siglent SDS2000X scope via LAN.

I think I am following the correct instructions for this, but the output seems to indicate it doesn't understand "vxi".

sigrok-cli --driver=siglent-sds:conn=vxi/10.0.0.203 --scan
sr: serial: Attempt to open serial port with invalid parameters.


Anyone know the proper incantation to make this work?

$ sigrok-cli --version
sigrok-cli 0.7.0

Libraries and features:
- libsigrok 0.5.0/4:0:0 (rt: 0.5.1/5:0:1).
 - Libs:
  - glib 2.58.1 (rt: 2.58.3/5803:3)
  - libzip 1.5.1
  - libserialport 0.1.1/1:0:1 (rt: 0.1.1/1:0:1)
  - libusb-1.0 1.0.22.11312 API 0x01000106
  - libftdi 1.3
  - Host: x86_64-redhat-linux-gnu, little-endian.
  - SCPI backends: TCP, serial, USBTMC.
- libsigrokdecode 0.5.0/4:0:0 (rt: 0.5.2/6:0:2).
 - Libs:
  - glib 2.58.1 (rt: 2.58.3/5803:3)
  - Python 3.7.1 / 0x30701f0 (API 1013, ABI 3)
  - Host: x86_64-redhat-linux-gnu, little-endian.

 

Online tautech

  • Super Contributor
  • ***
  • Posts: 29011
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Sigrok & SDS2000X
« Reply #1 on: June 27, 2019, 07:02:26 pm »
I am trying to use Sigrok with a Siglent SDS2000X scope via LAN.

I think I am following the correct instructions for this, but the output seems to indicate it doesn't understand "vxi".

sigrok-cli --driver=siglent-sds:conn=vxi/10.0.0.203 --scan
sr: serial: Attempt to open serial port with invalid parameters.


Anyone know the proper incantation to make this work?

$ sigrok-cli --version
sigrok-cli 0.7.0

Libraries and features:
- libsigrok 0.5.0/4:0:0 (rt: 0.5.1/5:0:1).
 - Libs:
  - glib 2.58.1 (rt: 2.58.3/5803:3)
  - libzip 1.5.1
  - libserialport 0.1.1/1:0:1 (rt: 0.1.1/1:0:1)
  - libusb-1.0 1.0.22.11312 API 0x01000106
  - libftdi 1.3
  - Host: x86_64-redhat-linux-gnu, little-endian.
  - SCPI backends: TCP, serial, USBTMC.
- libsigrokdecode 0.5.0/4:0:0 (rt: 0.5.2/6:0:2).
 - Libs:
  - glib 2.58.1 (rt: 2.58.3/5803:3)
  - Python 3.7.1 / 0x30701f0 (API 1013, ABI 3)
  - Host: x86_64-redhat-linux-gnu, little-endian.


PM sent.
Sigrok developer email supplied.
« Last Edit: June 27, 2019, 08:09:16 pm by tautech »
Avid Rabid Hobbyist.
Siglent Youtube channel: https://www.youtube.com/@SiglentVideo/videos
 

Offline colorado.robTopic starter

  • Frequent Contributor
  • **
  • Posts: 419
  • Country: us
Re: Sigrok & SDS2000X
« Reply #2 on: June 28, 2019, 01:45:18 am »
Apparently VXI support in libsigrok has been broken in Fedora since Fedora 28. VXI support is no longer included in libsigrok because of the removal of RPC support from glibc.

I filed a bug report and included a patch to the RPM spec file that fixes the issue.
https://bugzilla.redhat.com/show_bug.cgi?id=1724865

It probably should be fixed upstream as this is likely to impact other Linux distros soon.

Even with that fix, VXI support appears broken in sigrok, at least for the SDS.
 

Offline colorado.robTopic starter

  • Frequent Contributor
  • **
  • Posts: 419
  • Country: us
Re: Sigrok & SDS2000X
« Reply #3 on: June 30, 2019, 03:03:57 am »
Well, the quick and dirty test fails with the new firmware.

I updated the sigrok siglent-sds driver code to enable the 16 digital channels on the SDS2000X series.  It fails to get an expected response from the DSO.   And playing around with PyVISA,  I cannot enable a digital channel via SCPI.

What SCPI commands did Siglent actually implement here?
 

Online tautech

  • Super Contributor
  • ***
  • Posts: 29011
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Sigrok & SDS2000X
« Reply #4 on: July 01, 2019, 10:12:46 am »
Well, the quick and dirty test fails with the new firmware.

I updated the sigrok siglent-sds driver code to enable the 16 digital channels on the SDS2000X series.  It fails to get an expected response from the DSO.   And playing around with PyVISA,  I cannot enable a digital channel via SCPI.

What SCPI commands did Siglent actually implement here?
:-//
https://www.siglentamerica.com/wp-content/uploads/dlm_uploads/2017/10/ProgrammingGuide_PG01-E02B.pdf
DIGITAL Commands P72
Avid Rabid Hobbyist.
Siglent Youtube channel: https://www.youtube.com/@SiglentVideo/videos
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf