HI!

I'm trying to query data from a sound level meter PCE-322A on Linux
(openSUSE Tumbleweed). Thus I was happy to find out that this device
seems supported by sigrok. I'm new to sigrok and also have no prior
experience with the device.

This command seems to work just fine:

$ sigrok-cli --driver=pce-322a:conn=/dev/ttyUSB0 --scan
The following devices were found:
pce-322a - PCE PCE-322A with 1 channel: SPL

If I disconnect the device there's no serial port available:

$ sigrok-cli --driver=pce-322a:conn=/dev/ttyUSB0 --scan
sr: serial-libsp: Attempt to open serial port with invalid parameters.

But using a command like --show and retrieving samples always fails with
"Failed to open device.".

Any hint what I'm doing wrong is highly appreciated.

Ciao, Michael.

------------------------- snip -------------------------
$ sigrok-cli --driver=pce-322a:conn=/dev/ttyUSB0 -l 5 --show
sr: [00:00.000000] log: libsigrok loglevel set to 5.
sr: [00:00.000028] backend: libsigrok 0.5.2/5:1:1.
sr: [00:00.000061] backend: Libs: glib 2.64.4 (rt: 2.64.5/6405:5),
libzip 1.7.3, libserialport 0.1.1/1:0:1 (rt: 0.1.1/1:0:1), libusb-1.0
1.0.23.11397 API 0x01000107, hidapi 0.9.0, bluez 5.54, libftdi 1.4.
sr: [00:00.000071] backend: Host: x86_64-suse-linux-gnu, little-endian.
sr: [00:00.000078] backend: SCPI backends: TCP, RPC, serial, USBTMC.
sr: [00:00.000084] backend: Firmware search paths:
sr: [00:00.000098] backend:  - /home/michael/.local/share/sigrok-firmware
sr: [00:00.000103] backend:  - /usr/share/sigrok-firmware
sr: [00:00.000108] backend:  - /usr/share/xfce/sigrok-firmware
sr: [00:00.000113] backend:  - /usr/share/sigrok-firmware
sr: [00:00.000117] backend:  - /usr/share/sigrok-firmware
sr: [00:00.000137] backend: Sanity-checking all drivers.
sr: [00:00.000147] backend: Sanity-checking all input modules.
sr: [00:00.000154] backend: Sanity-checking all output modules.
sr: [00:00.000164] backend: Sanity-checking all transform modules.
srd: libsigrokdecode loglevel set to 5.
Driver functions:
    Sound level meter
sr: [00:00.003073] hwdriver: sr_config_list(): key 2147418112 (NULL) sdi
(nil) cg NULL -> [uint32 20000]
Scan options:
    conn
sr: [00:00.003099] hwdriver: sr_config_list(): key 2147418112 (NULL) sdi
(nil) cg NULL -> [uint32 20000]
sr: [00:00.003110] serial: Opening serial port '/dev/ttyUSB0' (flags 2).
sr: [00:00.004261] serial: Parsing parameters from "115200/8n1".
sr: [00:00.004317] serial: Setting serial parameters on port /dev/ttyUSB0.
sr: [00:00.004415] serial: DBG: serial_set_params() rate 115200, 8n1
sr: [00:00.004423] serial: Closing serial port /dev/ttyUSB0.
sr: [00:00.004911] hwdriver: Scan found 1 devices (pce-322a).
pce-322a - PCE PCE-322A with 1 channel: SPL
sr: [00:00.004937] device: pce-322a: Opening device instance.
sr: [00:00.004942] serial: Opening serial port '/dev/ttyUSB0' (flags 1).
sr: [00:00.005837] serial: Parsing parameters from "115200/8n1".
sr: [00:00.005855] serial: Setting serial parameters on port /dev/ttyUSB0.
sr: [00:00.005948] serial: DBG: serial_set_params() rate 115200, 8n1
sr: [00:00.005964] serial: Wrote 2/2 bytes.
Failed to open device.


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

Reply via email to