Thank you for the merge. Everything works well except for the
frequency measurement. I have the following errors:

$ LD_LIBRARY_PATH=$HOME/sr/lib $HOME/sr/bin/sigrok-cli -d scpi-dmm --samples 1
sr: scpi_usbtmc: USBTMC bulk in transfer error: LIBUSB_ERROR_TIMEOUT.
sr: scpi_usbtmc: USBTMC invalid bulk in header.
P1: 1.18959832 kHz

And with a more verbose output:
$ LD_LIBRARY_PATH=$HOME/sr/lib $HOME/sr/bin/sigrok-cli -d scpi-dmm
--samples 1 -l 5
sr: [00:00.000001] log: libsigrok loglevel set to 5.
sr: [00:00.000065] backend: libsigrok 0.6.0-git-1b7d49d/4:0:0.
sr: [00:00.000128] backend: Libs: glib 2.64.6 (rt: 2.64.6/6406:6),
libzip 1.5.1, libserialport 0.1.1/1:0:1 (rt: 0.1.1/1:0:1), libusb-1.0
1.0.23.11397 API 0x01000107, bluez 5.53.
sr: [00:00.000150] backend: Host: x86_64-pc-linux-gnu, little-endian.
sr: [00:00.000174] backend: SCPI backends: TCP, RPC, serial, USBTMC.
sr: [00:00.000192] backend: Firmware search paths:
sr: [00:00.000238] backend:  - /home/sylvain/.local/share/sigrok-firmware
sr: [00:00.000255] backend:  - /home/sylvain/sr/share/sigrok-firmware
sr: [00:00.000271] backend:  - /usr/share/ubuntu/sigrok-firmware
sr: [00:00.000289] backend:  - /usr/local/share/sigrok-firmware
sr: [00:00.000305] backend:  - /usr/share/sigrok-firmware
sr: [00:00.000320] backend:  - /var/lib/snapd/desktop/sigrok-firmware
sr: [00:00.000373] backend: Sanity-checking all drivers.
sr: [00:00.000395] backend: Sanity-checking all input modules.
sr: [00:00.000411] backend: Sanity-checking all output modules.
sr: [00:00.000436] backend: Sanity-checking all transform modules.
srd: libsigrokdecode loglevel set to 5.
sr: [00:00.004191] serial: No serial device specified.
sr: [00:00.004222] scpi_usbtmc: Found USBTMC device (VID:PID =
0957:1b07, bus.address = 2.3).
sr: [00:00.004234] scpi: Opening USBTMC device usbtmc/2.3.
sr: [00:00.004305] usb: Found USB device (VID:PID = 0957:1b07,
bus.address = 2.3).
sr: [00:00.004329] usb: Trying to open USB device 2.3.
sr: [00:00.004353] usb: Opened USB device (VID:PID = 0957:1b07,
bus.address = 2.3).
sr: [00:00.004362] scpi_usbtmc: Interface 0 configuration 1.
sr: [00:00.004367] scpi_usbtmc: Bulk IN EP 1
sr: [00:00.004376] scpi_usbtmc: Bulk OUT EP 2
sr: [00:00.004383] scpi_usbtmc: Interrupt EP 3
sr: [00:00.004827] scpi_usbtmc: Device capabilities: SCPI, TermChar,
L4, T6, SR1, RL1, DT1
sr: [00:00.004845] scpi_usbtmc: Locking out local control.
sr: [00:00.005841] scpi_usbtmc: Successfully sent SCPI command: '*IDN?'.
sr: [00:00.020204] scpi: Got response: 'Agilent
Technologies,34460A,MY53101075,A.01.10-02.25-01.10-00.35-01-01',
length 70.
sr: [00:00.020290] scpi_usbtmc: Returning local control.
sr: [00:00.021722] usb: Closed USB device 2.3.
sr: [00:00.028646] hwdriver: Scan found 1 devices (scpi-dmm).
sr: [00:00.028701] device: scpi-dmm: Opening device instance.
sr: [00:00.028714] usb: Trying to open USB device 2.3.
sr: [00:00.028754] usb: Opened USB device (VID:PID = 0957:1b07,
bus.address = 2.3).
sr: [00:00.028773] scpi_usbtmc: Interface 0 configuration 1.
sr: [00:00.028782] scpi_usbtmc: Bulk IN EP 1
sr: [00:00.028791] scpi_usbtmc: Bulk OUT EP 2
sr: [00:00.028800] scpi_usbtmc: Interrupt EP 3
sr: [00:00.029410] scpi_usbtmc: Device capabilities: SCPI, TermChar,
L4, T6, SR1, RL1, DT1
sr: [00:00.029435] scpi_usbtmc: Locking out local control.
sr: [00:00.030403] hwdriver: sr_config_set(): key 50001
(limit_samples) sdi 0x55a1201c9540 cg NULL -> uint64 1
sr: [00:00.030442] session: Using thread-default main context.
sr: [00:00.030450] session: Starting.
sr: [00:00.030457] hwdriver: scpi-dmm: Starting acquisition.
sr: [00:00.030551] scpi_usbtmc: Successfully sent SCPI command: '*OPC?'.
sr: [00:00.037503] scpi: Got response: '1', length 1.
sr: [00:00.037572] scpi_usbtmc: Successfully sent SCPI command: 'CONF?'.
sr: [00:00.039469] scpi: Got response: '"FREQ
+3.00000000E+00,+3.00000000E-05"', length 38.
sr: [00:00.039533] scpi_usbtmc: Successfully sent SCPI command: '*OPC?'.
sr: [00:00.089319] scpi: Got response: '1', length 1.
sr: [00:00.089426] scpi_usbtmc: Successfully sent SCPI command: 'CONF?'.
sr: [00:00.091277] scpi: Got response: '"FREQ
+3.00000000E+00,+3.00000000E-05"', length 38.
sr: [00:00.091329] scpi-dmm: dev_acquisition_start: Precision: '"FREQ
+3.00000000E+00,+3.00000000E-05"'
sr: [00:00.091439] scpi_usbtmc: Successfully sent SCPI command: '*OPC?'.
sr: [00:00.093027] scpi: Got response: '1', length 1.
sr: [00:00.093266] scpi_usbtmc: Successfully sent SCPI command: 'INIT'.
sr: [00:00.103415] session: bus: Received SR_DF_HEADER packet.
cli: Received SR_DF_HEADER.
sr: [00:00.113774] scpi_usbtmc: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.113965] scpi_usbtmc: USBTMC bulk in transfer error:
LIBUSB_ERROR_TIMEOUT.
sr: [00:01.124265] scpi_usbtmc: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.199217] scpi_usbtmc: USBTMC invalid bulk in header.
sr: [00:01.209478] scpi_usbtmc: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.305108] scpi: Got response: '1', length 1.
sr: [00:01.305200] scpi_usbtmc: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.306370] scpi: Got response: '1', length 1.
sr: [00:01.306477] scpi_usbtmc: Successfully sent SCPI command: 'CONF?'.
sr: [00:01.308532] scpi: Got response: '"FREQ
+3.00000000E+00,+3.00000000E-05"', length 38.
sr: [00:01.308661] scpi_usbtmc: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.309830] scpi: Got response: '1', length 1.
sr: [00:01.309964] scpi_usbtmc: Successfully sent SCPI command: 'FETCH?'.
sr: [00:01.311347] scpi: Got response: '+1.21169603E+03', length 15.
sr: [00:01.311415] session: bus: Received SR_DF_ANALOG packet (1 samples).
cli: Received SR_DF_ANALOG (1 samples).
P1: 1.21169615 kHz
sr: [00:01.311520] sw_limits: Requested number of samples (1) reached.
sr: [00:01.311539] hwdriver: scpi-dmm: Stopping acquisition.
sr: [00:01.311613] scpi_usbtmc: Successfully sent SCPI command: '*OPC?'.
sr: [00:01.312627] scpi: Got response: '1', length 1.
sr: [00:01.312688] scpi_usbtmc: Successfully sent SCPI command: 'ABORT'.
sr: [00:01.312712] session: bus: Received SR_DF_END packet.
cli: Received SR_DF_END.
sr: [00:01.312748] usb: usb_source_finalize
sr: [00:01.312788] session: Stopped.
sr: [00:01.312818] hwdriver: Cleaning up all drivers.
sr: [00:01.312833] scpi-dmm: DIAG: sdi->status 3.
sr: [00:01.312845] scpi_usbtmc: Returning local control.
sr: [00:01.314466] usb: Closed USB device 2.3.

On the Device I have the following errors after the queries:
-420 Query UNTERMINATED
-410 Query INTERRUPTED
-310 System error.

Do you want me to open an issue on Github ?
Thank you.

Sylvain

On Tue, 1 Jun 2021 at 08:29, Gerhard Sittig <gerhard.sit...@gmx.net> wrote:
>
> On Mon, 2021-05-31 at 08:42 +0200, Sylvain Pelissier wrote:
> >
> > I added support for Agilent 34460A multimeter:
> > https://github.com/sigrokproject/libsigrok/pull/141. Is there
> > something missing to be merged in libsigrok repository ?
>
> Have picked up the 34460A model entry and the udev rule. Did
> rebase and squash, and specified delays that worked with the
> Keysight 34465A. Can you check recent master whether 34460A works
> for you? Thank you!
>
>
> virtually yours
> Gerhard Sittig
> --
>      If you don't understand or are scared by any of the above
>              ask your parents or an adult to help you.
>
>
> _______________________________________________
> sigrok-devel mailing list
> sigrok-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sigrok-devel


_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to