I would like to report a bug with channels selection when using
sigrok-cli and my Brymen BM869s multimeter. The meter is identified
correctly and ennumerate its functions using sigrok-cli with the sudo
command:
$ sigrok-cli --scan
The following devices were found:
brymen-bm86x - Brymen BM869 with 2 channels: P1 P2
demo - Demo device with 12 channels: D0 D1 D2 D3 D4 D5 D6 D7 A0 A1 A2 A3
$ sudo sigrok-cli -d brymen-bm86x:conn=0820.0001 --show
Driver functions:
Multimeter
Continuous sampling
Sample limit
Time limit
Scan options:
conn
brymen-bm86x - Brymen BM869 with 2 channels: P1 P2
Supported configuration options:
(null):
continuous: on, off
limit_samples: 0 (current)
limit_time: 0 (current)
However when I select a meter function that makes use of the dual
display and select just one channel, sigrok still returns data for BOTH
channels:
$ sudo sigrok-cli -d brymen-bm86x:conn=0820.0001 --samples 5 --channels P2
P1: 0.01 V AC
P2: 0 mHz
P1: 0.01 V AC
P2: 0 mHz
P1: 0.01 V AC
P2: 0 mHz
P1: 0.01 V AC
P2: 0 mHz
P1: 0.01 V AC
P2: 0 mHz
It doesn't seem to matter which channel I select. my understanding from
the man page is that only data for the selected channel should be
displayed. Out put from sigrok-cli -V as follows:
$ sigrok-cli -V
sigrok-cli 0.7.0
Libraries and features:
- libsigrok 0.5.0/4:0:0 (rt: 0.5.0/4:0:0).
- Libs:
- glib 2.48.2 (rt: 2.48.2/4802:2)
- libzip 1.0.1
- libserialport 0.1.1/1:0:1 (rt: 0.1.1/1:0:1)
- libusb-1.0 1.0.20.11004
- libftdi 0.20
- Host: x86_64-pc-linux-gnu, little-endian.
- SCPI backends: TCP, RPC, serial, USBTMC.
- libsigrokdecode 0.5.0/4:0:0 (rt: 0.5.0/4:0:0).
- Libs:
- glib 2.48.2 (rt: 2.48.2/4802:2)
- Python 3.5.2 / 0x30502f0 (API 1013, ABI 3)
- Host: x86_64-pc-linux-gnu, little-endian.
I have tried this on two different computers with the same result.
Please note also that if I omit to use sudo, then I cannot communicate
with the device but instead get:
$ sigrok-cli -d brymen-bm86x:conn=0820.0001 --show
Driver functions:
Multimeter
Continuous sampling
Sample limit
Time limit
Scan options:
conn
brymen-bm86x - Brymen BM869 with 2 channels: P1 P2
sr: usb: Failed to open device: LIBUSB_ERROR_ACCESS.
Failed to open device.
I am assuming at the moment that this is intended by design or I need to
set permissions somewhere but I'm not sure where at the moment?
Regards.
--
John
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel