Bug 1397 - DSO1000 Agilent/Keysight not working
Summary: DSO1000 Agilent/Keysight not working
Status: RESOLVED DUPLICATE of bug 1576
Alias: None
Product: libsigrok
Classification: Unclassified
Component: Driver: rigol-ds (show other bugs)
Version: unreleased development snapshot
Hardware: All Linux
: Normal blocker
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-23 04:26 CEST by nadav.mavor
Modified: 2020-10-07 20:57 CEST (History)
2 users (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nadav.mavor 2019-06-23 04:26:09 CEST
I just get my "new" DSO1000B and after I update src/hardware/rigol-ds/api.c to support the name (the A and B are the same F/W ) I'm getting issues on using it :

sigrok-cli -l 5 -d rigol-ds --show
sr: [00:00.000001] log: libsigrok loglevel set to 5.
sr: [00:00.000024] backend: libsigrok 0.6.0-git-be7c63dc/4:0:0.
sr: [00:00.000047] backend: Libs: glib 2.56.4 (rt: 2.56.4/5604:4), libzip 1.1.2, libusb-1.0 1.0.21.11156 API 0x01000105, libftdi 1.4.
sr: [00:00.000054] backend: Host: x86_64-pc-linux-gnu, little-endian.
sr: [00:00.000060] backend: SCPI backends: TCP, RPC, USBTMC.
sr: [00:00.000064] backend: Firmware search paths:
sr: [00:00.000086] backend:  - /home/nmavor/.local/share/sigrok-firmware
sr: [00:00.000093] backend:  - /usr/local/share/sigrok-firmware
sr: [00:00.000097] backend:  - /usr/share/cinnamon/sigrok-firmware
sr: [00:00.000102] backend:  - /usr/share/gnome/sigrok-firmware
sr: [00:00.000107] backend:  - /home/nmavor/.local/share/flatpak/exports/share/sigrok-firmware
sr: [00:00.000112] backend:  - /var/lib/flatpak/exports/share/sigrok-firmware
sr: [00:00.000118] backend:  - /usr/local/share/sigrok-firmware
sr: [00:00.000123] backend:  - /usr/share/sigrok-firmware
sr: [00:00.000141] backend: Sanity-checking all drivers.
sr: [00:00.000149] backend: Sanity-checking all input modules.
sr: [00:00.000154] backend: Sanity-checking all output modules.
sr: [00:00.000161] backend: Sanity-checking all transform modules.
srd: libsigrokdecode loglevel set to 5.
Driver functions:
    Oscilloscope
sr: [00:00.008292] hwdriver: sr_config_list(): key 2147418112 (NULL) sdi (nil) cg NULL -> [uint32 20000, 20001]
Scan options:
    conn
    serialcomm
sr: [00:00.008350] scpi_usbtmc: Found USBTMC device (VID:PID = 0957:0588, bus.address = 4.30).
sr: [00:00.008367] scpi: Opening USBTMC device usbtmc/4.30.
sr: [00:00.008423] usb: Found USB device (VID:PID = 0957:0588, bus.address = 4.30).
sr: [00:00.008435] usb: Trying to open USB device 4.30.
sr: [00:00.008464] usb: Opened USB device (VID:PID = 0957:0588, bus.address = 4.30).
sr: [00:00.008479] scpi_usbtmc: Interface 0 configuration 1.
sr: [00:00.008485] scpi_usbtmc: Bulk OUT EP 1
sr: [00:00.008491] scpi_usbtmc: Bulk IN EP 2
sr: [00:00.008496] scpi_usbtmc: Interrupt EP 3
sr: [00:00.027915] scpi_usbtmc: Device capabilities: SCPI, TermChar, L4, T6, SR1, RL1, DT1
sr: [00:00.028895] scpi_usbtmc: Successfully sent SCPI command: '*IDN?'.
sr: [00:00.061982] scpi: Got response: 'AGILENT TECHNOLOGIES,DSO1152B,CN52090219,01.20.00 SP4', length 53.
sr: [00:00.062102] usb: Closed USB device 4.30.
sr: [00:00.062117] hwdriver: Scan found 1 devices (rigol-ds).
rigol-ds - Agilent DSO1152B 01.20.00 SP4 with 2 channels: CH1 CH2
sr: [00:00.062138] device: rigol-ds: Opening device instance.
sr: [00:00.062143] usb: Trying to open USB device 4.30.
sr: [00:00.062182] usb: Opened USB device (VID:PID = 0957:0588, bus.address = 4.30).
sr: [00:00.062194] scpi_usbtmc: Interface 0 configuration 1.
sr: [00:00.062200] scpi_usbtmc: Bulk OUT EP 1
sr: [00:00.062205] scpi_usbtmc: Bulk IN EP 2
sr: [00:00.062211] scpi_usbtmc: Interrupt EP 3
sr: [00:00.064935] scpi_usbtmc: Device capabilities: SCPI, TermChar, L4, T6, SR1, RL1, DT1
sr: [00:00.065916] scpi_usbtmc: Successfully sent SCPI command: ':CHAN1:DISP?'.
sr: [00:00.067924] scpi: Got response: '1', length 1.
sr: [00:00.068918] scpi_usbtmc: Successfully sent SCPI command: ':CHAN2:DISP?'.
sr: [00:00.070925] scpi: Got response: '0', length 1.
sr: [00:00.070950] rigol-ds: Current analog channel state:
sr: [00:00.070959] rigol-ds: CH1 on
sr: [00:00.070967] rigol-ds: CH2 off
sr: [00:00.071914] scpi_usbtmc: Successfully sent SCPI command: ':TIM:SCAL?'.
sr: [00:00.104954] scpi: Got response: '2.000e-03', length 9.
sr: [00:00.104996] rigol-ds: Current timebase 0.002
sr: [00:00.105950] scpi_usbtmc: Successfully sent SCPI command: ':CHAN1:PROB?'.
sr: [00:00.138955] scpi: Got response: '10X', length 3.
sr: [00:00.138986] rigol-ds: Failed to get device config: generic/unspecified error.
Failed to open device.


looking at :
https://www.keysight.com/upload/cmc_upload/All/1000_series_prog_guide.pdf
the oscilloscopes send 10X and not 10 (see page 96 ) and in line 876:
src/hardware/rigol-ds/protocol.c 
its (so looking for float:
res = sr_scpi_get_float(sdi->conn, cmd, &devc->attenuation[i]);
i did test using :
res = sr_scpi_get_string(sdi->conn, cmd, &devc->attenuation[i]);
but that just trasform it to float 
looking at Agilent MSO7000A i see its send 10 and not 10X so the DSO1000 need to be "fix"
Comment 1 Gerhard Sittig 2020-10-07 20:57:31 CEST

*** This bug has been marked as a duplicate of bug 1576 ***