Giter VIP home page Giter VIP logo

knarfs / smuview Goto Github PK

View Code? Open in Web Editor NEW
122.0 14.0 23.0 8.39 MB

SmuView is a GUI for sigrok that supports power supplies, electronic loads and all sorts of measurement devices like multimeters, LCR meters and so on.

License: GNU General Public License v3.0

CMake 2.50% C 0.07% C++ 91.57% CSS 2.74% Python 3.03% Shell 0.10%
sigrok powersupply load multimeter graph dmm power-supply psu instrument-control instrumentation

smuview's Introduction

-------------------------------------------------------------------------------
README
-------------------------------------------------------------------------------

The sigrok project aims at creating a portable, cross-platform,
Free/Libre/Open-Source signal analysis software suite that supports various
device types (such as logic analyzers, oscilloscopes, multimeters, and more).

SmuView is a Qt-based source measurement unit GUI for sigrok.


Status
------

SmuView is in a development state.


Copyright and license
---------------------

SmuView is licensed under the terms of the GNU General Public License
(GPL), version 3 or later.

While some individual source code files are licensed under the GPLv2+, and
some files are licensed under the GPLv3+, this doesn't change the fact that
the program as a whole is licensed under the terms of the GPLv3+ (e.g. also
due to the fact that it links against GPLv3+ libraries).

Please see the individual source files for the full list of copyright holders.


Copyright notices
-----------------

A copyright notice indicating a range of years, must be interpreted as having
had copyrightable material added in each of those years.

Example:

 Copyright (C) 2010-2013 Contributor Name

is to be interpreted as

 Copyright (C) 2010,2011,2012,2013 Contributor Name


Icons authors and licenses
--------------------------

icons/information.svg: Bobarino
  https://en.wikipedia.org/wiki/File:Information.svg

All other icons:
  Oxygen Icon Theme, GNU LGPLv3


Fonts licenses
--------------

DejaVue Sana Mono:
  Bitstream Vera Fonts Copyright and Arev Fonts Copyright


Mailing list
------------

 https://lists.sourceforge.net/lists/listinfo/sigrok-devel


IRC
---

You can find the sigrok developers in the #sigrok IRC channel on Libera.Chat.


Website
-------

 https://github.com/knarfS/smuview

smuview's People

Contributors

cymaphore avatar danselmi avatar gsigh avatar gvegidy avatar knarfs avatar theassassin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

smuview's Issues

Does not compile

Hi

I tried to compile smuview, but I got the following error:

[ 7%] Building CXX object CMakeFiles/smuview.dir/src/devices/device.cpp.o /home/sven/devel/sigrok/smuview/src/devices/device.cpp: In member function ‘void sv::devices::Device::feed_in_meta(std::shared_ptr<sigrok::Meta>)’: /home/sven/devel/sigrok/smuview/src/devices/device.cpp:347:8: error: ‘SR_CONF_UNDER_VOLTAGE_CONDITION_THRESHOLD’ was not declared in this scope case SR_CONF_UNDER_VOLTAGE_CONDITION_THRESHOLD: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/sven/devel/sigrok/smuview/src/devices/device.cpp:347:8: note: suggested alternative: ‘SR_CONF_OVER_VOLTAGE_PROTECTION_THRESHOLD’ case SR_CONF_UNDER_VOLTAGE_CONDITION_THRESHOLD: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SR_CONF_OVER_VOLTAGE_PROTECTION_THRESHOLD CMakeFiles/smuview.dir/build.make:335: die Regel für Ziel „CMakeFiles/smuview.dir/src/devices/device.cpp.o“ scheiterte make[2]: *** [CMakeFiles/smuview.dir/src/devices/device.cpp.o] Fehler 1

I didn't find SR_CONF_UNDER_VOLTAGE_CONDITION_THRESHOLD in libsigrok.

Are you using a modified sigrok?

Error using DMM Agilent U1252A

Bug description

DMM Agilent 1252A connected with USB
driver agilent-dmm selected, correct serial port selected

After initialization, smuview seems to try to get data from a second channel that doesn't exist on this meter causing the meter to bip every second or more.

Smuview is sending the serial command 'CONF? @2' which report '*E' that means serial command not understood
same thing with 'FETC? @2'

Environment

SmuView-0.0.4-x86_64.AppImage
Debian 10

log level 5

sr: [00:00.000000] log: libsigrok loglevel set to 5.
Settings: "/home/clement/.config/sigrok/SmuView.conf" format QSettings::NativeFormat
sr: [00:00.003807] backend: libsigrok 0.6.0-git-8491cf7/4:0:0.
sr: [00:00.006556] backend: Libs: glib 2.48.2 (rt: 2.58.3/5803:3), libzip 1.0.1, libserialport 0.1.1/1:0:1 (rt: 0.1.1/1:0:1), libusb-1.0 1.0.22.11312 API 0x01000104, hidapi 0.8.0-rc1, bluez 5.37, libftdi 1.2.
sr: [00:00.006568] backend: Host: x86_64-pc-linux-gnu, little-endian.
sr: [00:00.006573] backend: SCPI backends: TCP, RPC, serial, USBTMC.
sr: [00:00.006595] backend: Firmware search paths:
sr: [00:00.006608] backend: - /home/clement/.local/share/sigrok-firmware
sr: [00:00.006612] backend: - /home/frank/smuview/build/deps/share/sigrok-firmware
sr: [00:00.006618] backend: - /usr/share/gnome/sigrok-firmware
sr: [00:00.006622] backend: - /home/clement/.local/share/flatpak/exports/share/sigrok-firmware
sr: [00:00.006627] backend: - /var/lib/flatpak/exports/share/sigrok-firmware
sr: [00:00.006651] backend: - /usr/local/share/sigrok-firmware
sr: [00:00.006656] backend: - /usr/share/sigrok-firmware
sr: [00:00.008143] backend: Sanity-checking all drivers.
sr: [00:00.008161] backend: Sanity-checking all input modules.
sr: [00:00.008166] backend: Sanity-checking all output modules.
sr: [00:00.008174] backend: Sanity-checking all transform modules.
sr: [00:00.154657] hwdriver: Scan found 0 devices (agilent-dmm).
sr: [00:00.155606] hwdriver: Scan found 0 devices (appa-55ii).
sr: [00:00.174944] hwdriver: Scan found 0 devices (arachnid-labs-re-load-pro).
sr: [00:00.175702] hwdriver: Scan found 0 devices (atten-pps3203).
sr: [00:00.176158] hwdriver: Scan found 0 devices (baylibre-acme).
sr: [00:00.184691] hwdriver: Scan found 0 devices (bbcgm-2010).
sr: [00:00.185288] hwdriver: Scan found 0 devices (brymen-bm25x).
sr: [00:00.185809] hwdriver: Scan found 0 devices (brymen-bm857).
sr: [00:00.186113] serial: Opening serial port 'hid/bu86x' (flags 1).
sr: [00:00.186986] hwdriver: Scan found 0 devices (brymen-bm86x).
sr: [00:00.187278] hwdriver: Scan found 0 devices (cem-dt-885x).
sr: [00:00.187551] hwdriver: Scan found 0 devices (center-309).
sr: [00:00.187895] hwdriver: Scan found 0 devices (colead-slm).
sr: [00:00.188404] hwdriver: Scan found 0 devices (conrad-digi-35-cpu).
sr: [00:00.196394] demo: Generating square pattern.
sr: [00:00.196453] demo: Generating sine pattern.
sr: [00:00.196628] demo: Generating triangle pattern.
sr: [00:00.196774] demo: Generating sawtooth pattern.
sr: [00:00.196847] hwdriver: Scan found 1 devices (demo).
sr: [00:00.198914] hwdriver: Scan found 0 devices (deree-de5000).
sr: [00:00.199286] hwdriver: Scan found 0 devices (digitek-dt4000zc).
sr: [00:00.199598] hwdriver: Scan found 0 devices (eevblog-121gw).
sr: [00:00.206168] hwdriver: Scan found 0 devices (fluke-45).
sr: [00:00.206546] hwdriver: Scan found 0 devices (fluke-dmm).
sr: [00:00.206888] hwdriver: Scan found 0 devices (gmc-mh-1x-2x-rs232).
sr: [00:00.207053] hwdriver: Scan found 0 devices (gmc-mh-2x-bd232).
sr: [00:00.207199] hwdriver: Scan found 0 devices (gwinstek-gpd).
sr: [00:00.212101] hwdriver: Scan found 0 devices (hp-3457a).
sr: [00:00.235398] hwdriver: Scan found 0 devices (hpib-pps).
sr: [00:00.237173] hwdriver: Scan found 0 devices (iso-tech-idm103n).
sr: [00:00.239921] hwdriver: Scan found 0 devices (kecheng-kc-330b).
sr: [00:00.240685] hwdriver: Scan found 0 devices (kern-ew-6200-2nm).
sr: [00:00.241691] hwdriver: Scan found 0 devices (korad-kaxxxxp).
sr: [00:00.246475] hwdriver: Scan found 0 devices (lascar-el-usb).
sr: [00:00.247319] hwdriver: Scan found 0 devices (manson-hcs-3xxx).
sr: [00:00.248193] hwdriver: Scan found 0 devices (mastech-mas345).
sr: [00:00.249240] hwdriver: Scan found 0 devices (mastech-ms2115b).
sr: [00:00.249793] hwdriver: Scan found 0 devices (mastech-ms5308).
sr: [00:00.250423] hwdriver: Scan found 0 devices (mastech-ms6514).
sr: [00:00.250960] hwdriver: Scan found 0 devices (mastech-ms8250b).
sr: [00:00.251629] hwdriver: Scan found 0 devices (mastech-ms8250d).
sr: [00:00.253050] hwdriver: Scan found 0 devices (maynuo-m97).
sr: [00:00.255117] hwdriver: Scan found 0 devices (metex-m3640d).
sr: [00:00.256302] hwdriver: Scan found 0 devices (metex-m3860m).
sr: [00:00.257397] hwdriver: Scan found 0 devices (metex-m4650cr).
sr: [00:00.258199] hwdriver: Scan found 0 devices (metex-me31).
sr: [00:00.259046] hwdriver: Scan found 0 devices (metrix-mx56c).
sr: [00:00.260147] hwdriver: Scan found 0 devices (mic-98581).
sr: [00:00.260925] hwdriver: Scan found 0 devices (mic-98583).
sr: [00:00.261629] hwdriver: Scan found 0 devices (mooshimeter-dmm).
sr: [00:00.262278] serial: No serial device specified.
sr: [00:00.262288] hwdriver: Scan found 0 devices (motech-lps-301).
sr: [00:00.262839] hwdriver: Scan found 0 devices (norma-dmm).
sr: [00:00.263335] hwdriver: Scan found 0 devices (pce-322a).
sr: [00:00.263915] hwdriver: Scan found 0 devices (pce-pce-dm32).
sr: [00:00.264440] hwdriver: Scan found 0 devices (peaktech-2165).
sr: [00:00.265078] hwdriver: Scan found 0 devices (peaktech-2170).
sr: [00:00.265639] hwdriver: Scan found 0 devices (peaktech-3330).
sr: [00:00.266206] hwdriver: Scan found 0 devices (peaktech-3410).
sr: [00:00.266792] hwdriver: Scan found 0 devices (peaktech-3415).
sr: [00:00.267292] hwdriver: Scan found 0 devices (peaktech-4370).
sr: [00:00.267805] hwdriver: Scan found 0 devices (peaktech-4390a).
sr: [00:00.268315] hwdriver: Scan found 0 devices (radioshack-22-168).
sr: [00:00.268811] hwdriver: Scan found 0 devices (radioshack-22-805).
sr: [00:00.269626] hwdriver: Scan found 0 devices (radioshack-22-812).
sr: [00:00.270248] hwdriver: Scan found 0 devices (rdtech-dps).
sr: [00:00.273377] hwdriver: Scan found 0 devices (scpi-dmm).
sr: [00:00.279411] hwdriver: Scan found 0 devices (scpi-pps).
sr: [00:00.282477] hwdriver: Scan found 0 devices (siemens-b102x).
sr: [00:00.283225] hwdriver: Scan found 0 devices (sparkfun-70c).
sr: [00:00.283990] hwdriver: Scan found 0 devices (tecpel-dmm-8061).
sr: [00:00.284705] hwdriver: Scan found 0 devices (tecpel-dmm-8061-ser).
sr: [00:00.287322] hwdriver: Scan found 0 devices (tekpower-tp4000ZC).
sr: [00:00.288084] hwdriver: Scan found 0 devices (teleinfo).
sr: [00:00.289473] hwdriver: Scan found 0 devices (tenma-72-7730).
sr: [00:00.290243] hwdriver: Scan found 0 devices (tenma-72-7730-ser).
sr: [00:00.290934] hwdriver: Scan found 0 devices (tenma-72-7732).
sr: [00:00.291793] hwdriver: Scan found 0 devices (tenma-72-7732-ser).
sr: [00:00.292640] hwdriver: Scan found 0 devices (tenma-72-7745).
sr: [00:00.293485] hwdriver: Scan found 0 devices (tenma-72-7745-ser).
sr: [00:00.294322] hwdriver: Scan found 0 devices (tenma-72-7750).
sr: [00:00.295142] hwdriver: Scan found 0 devices (tenma-72-7750-ser).
sr: [00:00.295958] hwdriver: Scan found 0 devices (tenma-72-9380a).
sr: [00:00.296732] hwdriver: Scan found 0 devices (tenma-72-9380a-ser).
sr: [00:00.297755] hwdriver: Scan found 0 devices (testo).
sr: [00:00.298595] hwdriver: Scan found 0 devices (tondaj-sl-814).
sr: [00:00.299732] hwdriver: Scan found 0 devices (uni-t-ut32x).
sr: [00:00.300521] hwdriver: Scan found 0 devices (uni-t-ut372).
sr: [00:00.301335] hwdriver: Scan found 0 devices (uni-t-ut60a).
sr: [00:00.302024] hwdriver: Scan found 0 devices (uni-t-ut60a-ser).
sr: [00:00.302972] hwdriver: Scan found 0 devices (uni-t-ut60e).
sr: [00:00.303538] hwdriver: Scan found 0 devices (uni-t-ut60e-ser).
sr: [00:00.304102] hwdriver: Scan found 0 devices (uni-t-ut60g).
sr: [00:00.304754] hwdriver: Scan found 0 devices (uni-t-ut60g-ser).
sr: [00:00.305448] hwdriver: Scan found 0 devices (uni-t-ut612).
sr: [00:00.305957] hwdriver: Scan found 0 devices (uni-t-ut61b).
sr: [00:00.306565] hwdriver: Scan found 0 devices (uni-t-ut61b-ser).
sr: [00:00.307112] hwdriver: Scan found 0 devices (uni-t-ut61c).
sr: [00:00.307615] hwdriver: Scan found 0 devices (uni-t-ut61c-ser).
sr: [00:00.308131] hwdriver: Scan found 0 devices (uni-t-ut61d).
sr: [00:00.308634] hwdriver: Scan found 0 devices (uni-t-ut61d-ser).
sr: [00:00.309136] hwdriver: Scan found 0 devices (uni-t-ut61e).
sr: [00:00.309654] hwdriver: Scan found 0 devices (uni-t-ut61e-ser).
sr: [00:00.310191] hwdriver: Scan found 0 devices (uni-t-ut71a).
sr: [00:00.310924] hwdriver: Scan found 0 devices (uni-t-ut71a-ser).
sr: [00:00.311761] hwdriver: Scan found 0 devices (uni-t-ut71b).
sr: [00:00.312564] hwdriver: Scan found 0 devices (uni-t-ut71b-ser).
sr: [00:00.313159] hwdriver: Scan found 0 devices (uni-t-ut71c).
sr: [00:00.314004] hwdriver: Scan found 0 devices (uni-t-ut71c-ser).
sr: [00:00.314801] hwdriver: Scan found 0 devices (uni-t-ut71d).
sr: [00:00.319715] hwdriver: Scan found 0 devices (uni-t-ut71d-ser).
sr: [00:00.320843] hwdriver: Scan found 0 devices (uni-t-ut71e).
sr: [00:00.321796] hwdriver: Scan found 0 devices (uni-t-ut71e-ser).
sr: [00:00.322674] hwdriver: Scan found 0 devices (va-va18b).
sr: [00:00.323579] hwdriver: Scan found 0 devices (va-va40b).
sr: [00:00.324365] hwdriver: Scan found 0 devices (velleman-dvm4100).
sr: [00:00.325344] serial: Opening serial port 'hid/victor' (flags 1).
sr: [00:00.325808] hwdriver: Scan found 0 devices (victor-dmm).
sr: [00:00.326724] hwdriver: Scan found 0 devices (voltcraft-4080).
sr: [00:00.327569] hwdriver: Scan found 0 devices (voltcraft-k204).
sr: [00:00.328685] hwdriver: Scan found 0 devices (voltcraft-m3650cr).
sr: [00:00.329885] hwdriver: Scan found 0 devices (voltcraft-m3650d).
sr: [00:00.333166] hwdriver: Scan found 0 devices (voltcraft-m4650cr).
sr: [00:00.334829] hwdriver: Scan found 0 devices (voltcraft-me42).
sr: [00:00.337139] hwdriver: Scan found 0 devices (voltcraft-vc820).
sr: [00:00.338542] hwdriver: Scan found 0 devices (voltcraft-vc820-ser).
sr: [00:00.339713] hwdriver: Scan found 0 devices (voltcraft-vc830).
sr: [00:00.340824] hwdriver: Scan found 0 devices (voltcraft-vc830-ser).
sr: [00:00.341958] hwdriver: Scan found 0 devices (voltcraft-vc840).
sr: [00:00.343116] hwdriver: Scan found 0 devices (voltcraft-vc840-ser).
sr: [00:00.344276] hwdriver: Scan found 0 devices (voltcraft-vc870).
sr: [00:00.345441] hwdriver: Scan found 0 devices (voltcraft-vc870-ser).
sr: [00:00.346534] hwdriver: Scan found 0 devices (voltcraft-vc920).
sr: [00:00.347703] hwdriver: Scan found 0 devices (voltcraft-vc920-ser).
sr: [00:00.348891] hwdriver: Scan found 0 devices (voltcraft-vc940).
sr: [00:00.349862] hwdriver: Scan found 0 devices (voltcraft-vc940-ser).
sr: [00:00.350895] hwdriver: Scan found 0 devices (voltcraft-vc96).
sr: [00:00.351871] hwdriver: Scan found 0 devices (voltcraft-vc960).
sr: [00:00.355425] hwdriver: Scan found 0 devices (voltcraft-vc960-ser).
sr: [00:00.357068] hwdriver: Scan found 0 devices (zketech-ebd-usb).
sr: [00:28.986286] bt-bluez: BLE scan (BT)
sr: [00:28.986304] bt-bluez: BLE open
sr: [00:28.986350] bt-bluez: devid failed
sr: [00:28.986359] bt-bluez: BLE scan (LE)
sr: [00:28.986365] bt-bluez: BLE open
sr: [00:28.986383] bt-bluez: devid failed
sr: [00:28.986392] bt-bluez: BLE close
sr: [00:31.583766] hwdriver: Scan found 0 devices (agilent-dmm).
sr: [00:35.847692] hwdriver: sr_config_list(): key 2147418112 (NULL) sdi (nil) cg NULL -> [uint32 20000, 20001]
sr: [00:35.847762] serial: Opening serial port '/dev/ttyUSB0' (flags 1).
sr: [00:35.849542] serial: Parsing parameters from "9600/8n1".
sr: [00:35.849663] serial: Setting serial parameters on port /dev/ttyUSB0.
sr: [00:35.849975] serial: DBG: serial_set_params() rate 9600, 8n1
sr: [00:35.850038] serial: Flushing serial port /dev/ttyUSB0.
sr: [00:35.850115] serial: Wrote 7/7 bytes.
sr: [00:35.917142] serial: Read 1/1 bytes.
sr: [00:35.933153] serial: Read 1/1 bytes.
sr: [00:35.933212] serial: Read 1/1 bytes.
sr: [00:35.933227] serial: Read 1/1 bytes.
sr: [00:35.933239] serial: Read 1/1 bytes.
sr: [00:35.933258] serial: Read 1/1 bytes.
sr: [00:35.933277] serial: Read 1/1 bytes.
sr: [00:35.933309] serial: Read 1/1 bytes.
sr: [00:35.933335] serial: Read 1/1 bytes.
sr: [00:35.933368] serial: Read 1/1 bytes.
sr: [00:35.933392] serial: Read 1/1 bytes.
sr: [00:35.933409] serial: Read 1/1 bytes.
sr: [00:35.933425] serial: Read 1/1 bytes.
sr: [00:35.949138] serial: Read 1/1 bytes.
sr: [00:35.949189] serial: Read 1/1 bytes.
sr: [00:35.949204] serial: Read 1/1 bytes.
sr: [00:35.949222] serial: Read 1/1 bytes.
sr: [00:35.949240] serial: Read 1/1 bytes.
sr: [00:35.949261] serial: Read 1/1 bytes.
sr: [00:35.949278] serial: Read 1/1 bytes.
sr: [00:35.965179] serial: Read 1/1 bytes.
sr: [00:35.965253] serial: Read 1/1 bytes.
sr: [00:35.965281] serial: Read 1/1 bytes.
sr: [00:35.965308] serial: Read 1/1 bytes.
sr: [00:35.965321] serial: Read 1/1 bytes.
sr: [00:35.965346] serial: Read 1/1 bytes.
sr: [00:35.965363] serial: Read 1/1 bytes.
sr: [00:35.965389] serial: Read 1/1 bytes.
sr: [00:35.965406] serial: Read 1/1 bytes.
sr: [00:35.965426] serial: Read 1/1 bytes.
sr: [00:35.965445] serial: Read 1/1 bytes.
sr: [00:35.965463] serial: Read 1/1 bytes.
sr: [00:35.965482] serial: Read 1/1 bytes.
sr: [00:35.981101] serial: Read 1/1 bytes.
sr: [00:35.981166] serial: Read 1/1 bytes.
sr: [00:35.981189] serial: Read 1/1 bytes.
sr: [00:35.981217] serial: Read 1/1 bytes.
sr: [00:35.981244] serial: Read 1/1 bytes.
sr: [00:35.981322] serial: Read 1/1 bytes.
sr: [00:35.981355] serial: Read 1/1 bytes.
sr: [00:35.981381] serial: Read 1/1 bytes.
sr: [00:35.997113] serial: Read 1/1 bytes.
sr: [00:35.997167] serial: Read 1/1 bytes.
sr: [00:35.997181] serial: Read 1/1 bytes.
sr: [00:35.997193] serial: Read 1/1 bytes.
sr: [00:35.997207] serial: Received 44: 'Agilent Technologies,U1252A,TW47450052,V0.91'.
sr: [00:35.997264] serial: Closing serial port /dev/ttyUSB0.
sr: [00:35.998272] hwdriver: Scan found 1 devices (agilent-dmm).
sr: [01:15.716254] device: agilent-dmm: Opening device instance.
sr: [01:15.716296] serial: Opening serial port '/dev/ttyUSB0' (flags 1).
sr: [01:15.717661] serial: Parsing parameters from "9600/8n1".
sr: [01:15.717741] serial: Setting serial parameters on port /dev/ttyUSB0.
sr: [01:15.717985] serial: DBG: serial_set_params() rate 9600, 8n1
Configurable::init(): Init "Agilent U1252A" - key "Data Source"
sr: [01:15.718318] hwdriver: sr_config_list(): key 40004 (data_source) sdi 0x1ba4e50 cg NULL -> ['Live', 'Log-Hand', 'Log-Trig', 'Log-Auto', 'Log-Export']
Configurable::init(): Init "Agilent U1252A" - key "Samplerate"
sr: [01:15.718482] hwdriver: sr_config_list(): key 30000 (samplerate) sdi 0x1ba4e50 cg NULL -> {'samplerate-steps': <[uint64 1, 20, 1]>}
sr: [01:15.718539] hwdriver: sr_config_get(): key 30000 (samplerate) sdi 0x1ba4e50 cg NULL -> uint64 5
Init channel "P1" , channel_start_timestamp = "2020.12.01 19:05:50.007"
Init channel "P2" , channel_start_timestamp = "2020.12.01 19:05:50.007"
Init channel "P3" , channel_start_timestamp = "2020.12.01 19:05:50.007"
sr: [01:15.719088] session: Creating our own main context.
sr: [01:15.719189] session: Starting.
sr: [01:15.719218] hwdriver: agilent-dmm: Starting acquisition.
sr: [01:15.719273] session: bus: Received SR_DF_HEADER packet.
Start aquisition for "Agilent U1252A" , aquisition_start_timestamp_ = "2020.12.01 19:05:50.007"
sr: [01:15.729590] agilent-dmm: Sending 'CONF?'.
sr: [01:15.729651] serial: Wrote 8/8 bytes.
sr: [01:15.742059] hwdriver: sr_config_get(): key 30000 (samplerate) sdi 0x1ba4e50 cg NULL -> uint64 5
sr: [01:15.742345] hwdriver: sr_config_get(): key 40004 (data_source) sdi 0x1ba4e50 cg NULL -> 'Live'
sr: [01:15.797844] serial: Read 1/1 bytes.
sr: [01:15.797948] serial: Read 1/1 bytes.
sr: [01:15.797959] serial: Read 1/1 bytes.
sr: [01:15.797970] serial: Read 1/1 bytes.
sr: [01:15.797978] serial: Read 1/1 bytes.
sr: [01:15.813864] serial: Read 1/1 bytes.
sr: [01:15.813921] serial: Read 1/1 bytes.
sr: [01:15.813926] serial: Read 1/1 bytes.
sr: [01:15.813954] serial: Read 1/1 bytes.
sr: [01:15.813958] serial: Read 1/1 bytes.
sr: [01:15.813966] serial: Read 1/1 bytes.
sr: [01:15.813974] serial: Read 1/1 bytes.
sr: [01:15.814004] serial: Read 1/1 bytes.
sr: [01:15.814011] serial: Read 1/1 bytes.
sr: [01:15.814018] serial: Read 1/1 bytes.
sr: [01:15.814024] serial: Read 1/1 bytes.
sr: [01:15.814033] serial: Read 1/1 bytes.
sr: [01:15.829825] serial: Read 1/1 bytes.
sr: [01:15.829844] serial: Read 1/1 bytes.
sr: [01:15.829866] serial: Read 1/1 bytes.
sr: [01:15.829869] serial: Read 1/1 bytes.
sr: [01:15.829872] serial: Read 1/1 bytes.
sr: [01:15.829898] serial: Read 1/1 bytes.
sr: [01:15.829901] serial: Read 1/1 bytes.
sr: [01:15.829908] serial: Read 1/1 bytes.
sr: [01:15.829915] serial: Read 1/1 bytes.
sr: [01:15.829920] serial: Read 1/1 bytes.
sr: [01:15.829927] serial: Read 1/1 bytes.
sr: [01:15.829936] serial: Read 1/1 bytes.
sr: [01:15.829945] serial: Read 1/1 bytes.
sr: [01:15.845872] serial: Read 1/1 bytes.
sr: [01:15.845937] serial: Read 1/1 bytes.
sr: [01:15.845941] serial: Read 1/1 bytes.
sr: [01:15.845947] serial: Read 1/1 bytes.
sr: [01:15.845952] serial: Read 1/1 bytes.
sr: [01:15.845959] serial: Read 1/1 bytes.
sr: [01:15.845967] agilent-dmm: Received '"VOLT +5.000000E+00,+1.000000E-04"'.
sr: [01:15.846022] agilent-dmm: CONF? response '"VOLT +5.000000E+00,+1.000000E-04"'.
sr: [01:15.846082] agilent-dmm: Sending 'CONF? @2'.
sr: [01:15.846101] serial: Wrote 11/11 bytes.
sr: [01:15.877812] serial: Read 1/1 bytes.
sr: [01:15.877851] serial: Read 1/1 bytes.
sr: [01:15.877878] serial: Read 1/1 bytes.
sr: [01:15.877882] serial: Read 1/1 bytes.
sr: [01:15.877888] agilent-dmm: Received '*E'.
sr: [01:15.877981] agilent-dmm: Unknown line '*E'.
sr: [01:16.041801] agilent-dmm: Sending 'STAT?'.
sr: [01:16.041893] serial: Wrote 8/8 bytes.
sr: [01:16.069728] serial: Read 1/1 bytes.
sr: [01:16.069793] serial: Read 1/1 bytes.
sr: [01:16.069808] serial: Read 1/1 bytes.
sr: [01:16.069818] serial: Read 1/1 bytes.
sr: [01:16.069834] serial: Read 1/1 bytes.
sr: [01:16.069850] serial: Read 1/1 bytes.
sr: [01:16.069870] serial: Read 1/1 bytes.
sr: [01:16.069885] serial: Read 1/1 bytes.
sr: [01:16.069901] serial: Read 1/1 bytes.
sr: [01:16.086109] serial: Read 1/1 bytes.
sr: [01:16.086189] serial: Read 1/1 bytes.
sr: [01:16.086207] serial: Read 1/1 bytes.
sr: [01:16.086230] serial: Read 1/1 bytes.
sr: [01:16.086258] serial: Read 1/1 bytes.
sr: [01:16.086282] serial: Read 1/1 bytes.
sr: [01:16.086301] serial: Read 1/1 bytes.
sr: [01:16.086318] serial: Read 1/1 bytes.
sr: [01:16.086342] serial: Read 1/1 bytes.
sr: [01:16.086359] serial: Read 1/1 bytes.
sr: [01:16.086379] serial: Read 1/1 bytes.
sr: [01:16.086397] serial: Read 1/1 bytes.
sr: [01:16.101754] serial: Read 1/1 bytes.
sr: [01:16.101799] serial: Read 1/1 bytes.
sr: [01:16.101809] serial: Read 1/1 bytes.
sr: [01:16.101818] serial: Read 1/1 bytes.
sr: [01:16.101825] agilent-dmm: Received '"000001I00F00L00104001"'.
sr: [01:16.101901] agilent-dmm: STAT response '000001I00F00L00104001'.
sr: [01:16.101919] agilent-dmm: Sending 'FETC?'.
sr: [01:16.101977] serial: Wrote 8/8 bytes.
sr: [01:16.133735] serial: Read 1/1 bytes.
sr: [01:16.133776] serial: Read 1/1 bytes.
sr: [01:16.133787] serial: Read 1/1 bytes.
sr: [01:16.133796] serial: Read 1/1 bytes.
sr: [01:16.133805] serial: Read 1/1 bytes.
sr: [01:16.133814] serial: Read 1/1 bytes.
sr: [01:16.133823] serial: Read 1/1 bytes.
sr: [01:16.133838] serial: Read 1/1 bytes.
sr: [01:16.133851] serial: Read 1/1 bytes.
sr: [01:16.133860] serial: Read 1/1 bytes.
sr: [01:16.133872] serial: Read 1/1 bytes.
sr: [01:16.149963] serial: Read 1/1 bytes.
sr: [01:16.181710] serial: Read 1/1 bytes.
sr: [01:16.181760] serial: Read 1/1 bytes.
sr: [01:16.181771] serial: Read 1/1 bytes.
sr: [01:16.181780] serial: Read 1/1 bytes.
sr: [01:16.181790] serial: Read 1/1 bytes.
sr: [01:16.181799] agilent-dmm: Received '+1.00000000E-04'.
sr: [01:16.181881] agilent-dmm: FETC reply '+1.00000000E-04'.
sr: [01:16.181916] session: bus: Received SR_DF_ANALOG packet (1 samples).
sr: [01:16.181997] hwdriver: sr_config_get(): key 30000 (samplerate) sdi 0x1ba4e50 cg NULL -> uint64 5
Init analog base signal "P1 [V DC]"
Init analog time signal "P1 [V DC]" , signal_start_timestamp_ = "2020.12.01 19:05:50.007"
HardwareChannel::push_sample_sr_analog(): "P1" - No signal found: "P1 [V DC]"
sr: [01:16.182369] agilent-dmm: Sending 'FETC? @2'.
sr: [01:16.182438] serial: Wrote 11/11 bytes.
sr: [01:16.213576] serial: Read 1/1 bytes.
sr: [01:16.213609] serial: Read 1/1 bytes.
sr: [01:16.213619] serial: Read 1/1 bytes.
sr: [01:16.213629] serial: Read 1/1 bytes.
sr: [01:16.213636] agilent-dmm: Received '*E'.
sr: [01:16.213788] agilent-dmm: Unknown line '*E'.
sr: [01:16.406143] agilent-dmm: Sending 'FETC? @2'.
sr: [01:16.406207] serial: Wrote 11/11 bytes.
sr: [01:16.469484] serial: Read 1/1 bytes.
sr: [01:16.469532] serial: Read 1/1 bytes.
sr: [01:16.469542] serial: Read 1/1 bytes.
sr: [01:16.469551] serial: Read 1/1 bytes.
sr: [01:16.469558] agilent-dmm: Received '*E'.
sr: [01:16.469724] agilent-dmm: Unknown line '*E'.
sr: [01:16.715935] agilent-dmm: Sending 'FETC? @2'.
sr: [01:16.716029] serial: Wrote 11/11 bytes.
sr: [01:16.741400] serial: Read 1/1 bytes.
sr: [01:16.741450] serial: Read 1/1 bytes.
sr: [01:16.741461] serial: Read 1/1 bytes.
sr: [01:16.741472] serial: Read 1/1 bytes.
sr: [01:16.741480] agilent-dmm: Received '*E'.
sr: [01:16.741679] agilent-dmm: Unknown line '*E'.
sr: [01:17.017345] agilent-dmm: Sending 'FETC? @2'.
sr: [01:17.017403] serial: Wrote 11/11 bytes.
sr: [01:17.045230] serial: Read 1/1 bytes.
sr: [01:17.045274] serial: Read 1/1 bytes.
sr: [01:17.045284] serial: Read 1/1 bytes.
sr: [01:17.045295] serial: Read 1/1 bytes.
sr: [01:17.045302] agilent-dmm: Received '*E'.
sr: [01:17.045468] agilent-dmm: Unknown line '*E'.
sr: [01:17.320340] agilent-dmm: Sending 'FETC? @2'.
sr: [01:17.320407] serial: Wrote 11/11 bytes.
sr: [01:17.380978] serial: Read 1/1 bytes.
sr: [01:17.381021] serial: Read 1/1 bytes.
sr: [01:17.381031] serial: Read 1/1 bytes.
sr: [01:17.396856] serial: Read 1/1 bytes.
sr: [01:17.396904] agilent-dmm: Received '*E'.
sr: [01:17.397111] agilent-dmm: Unknown line '*E'.
sr: [01:17.621587] agilent-dmm: Sending 'FETC? @2'.
sr: [01:17.621658] serial: Wrote 11/11 bytes.
sr: [01:17.668767] serial: Read 1/1 bytes.
sr: [01:17.668822] serial: Read 1/1 bytes.
sr: [01:17.668841] serial: Read 1/1 bytes.
sr: [01:17.668856] serial: Read 1/1 bytes.
sr: [01:17.668864] agilent-dmm: Received '*E'.
sr: [01:17.669058] agilent-dmm: Unknown line '*E'.
sr: [01:17.923037] agilent-dmm: Sending 'FETC? @2'.
sr: [01:17.923106] serial: Wrote 11/11 bytes.
sr: [01:17.956574] serial: Read 1/1 bytes.
sr: [01:17.956632] serial: Read 1/1 bytes.
sr: [01:17.956659] serial: Read 1/1 bytes.
sr: [01:17.956675] serial: Read 1/1 bytes.
sr: [01:17.956689] agilent-dmm: Received '*E'.
sr: [01:17.956893] agilent-dmm: Unknown line '*E'.
sr: [01:18.224008] agilent-dmm: Sending 'FETC? @2'.
sr: [01:18.224104] serial: Wrote 11/11 bytes.
sr: [01:18.244292] serial: Read 1/1 bytes.
sr: [01:18.244345] serial: Read 1/1 bytes.
sr: [01:18.260354] serial: Read 1/1 bytes.
sr: [01:18.260400] serial: Read 1/1 bytes.
sr: [01:18.260409] agilent-dmm: Received '*E'.
sr: [01:18.260574] agilent-dmm: Unknown line '*E'.
sr: [01:18.526338] agilent-dmm: Sending 'FETC? @2'.
sr: [01:18.526383] serial: Wrote 11/11 bytes.
...

build error Ubuntu 18.04

building trunk source via
cmake -DCMAKE_CXX_STANDARD=14
(I had to get cmake to remove -std=c++11 flag)

does not succed:
/usr/local/qwt-6.1.3/lib/libqwt.so: undefined reference to qt_version_tag@Qt_5.10' //home/jw/local/Qt/5.10.1/gcc_64/lib/libQt5OpenGL.so.5: undefined reference to QRandomGenerator::_fillRange(void*, void*)@Qt_5'
//home/jw/local/Qt/5.10.1/gcc_64/lib/libQt5PrintSupport.so.5: undefined reference to QPdfEngine::setPdfVersion(QPdfEngine::PdfVersion)@Qt_5_PRIVATE_API' /usr/local/qwt-6.1.3/lib/libqwt.so: undefined reference to operator delete(void*, unsigned long)@Qt_5'
//home/jw/local/Qt/5.10.1/gcc_64/lib/libQt5PrintSupport.so.5: undefined reference to QTime::toString(QStringView) const@Qt_5' //home/jw/local/Qt/5.10.1/gcc_64/lib/libQt5OpenGL.so.5: undefined reference to QRandomGenerator64::global()@Qt_5'

Can't add new signal

Just tried the latest github version, because I need to change my Korad driver slightly.
(Normally answering with KORADKA3005V2.0<-68>)

Finally smuview found the device but stops while trying to connect.

BaseDevice::close(): Trying to close device  "Korad KA3005P (/dev/ttyACM0)"
sr: korad-kaxxxxp: Want max 22 bytes.
Configurable::init(): Init  "Korad KA3005P"  - key  "Regulation"
Configurable::init(): Init  "Korad KA3005P"  - key  "Over Current Protection Enabled"
Configurable::init(): Init  "Korad KA3005P"  - key  "Over Voltage Protection Enabled"
Configurable::init(): Init  "Korad KA3005P"  - key  "Enabled"
Configurable::init(): Init  "Korad KA3005P"  - key  "Current Limit"
Configurable::init(): Init  "Korad KA3005P"  - key  "Current"
Configurable::init(): Init  "Korad KA3005P"  - key  "Voltage Target"
Configurable::init(): Init  "Korad KA3005P"  - key  "Voltage"
Init channel  "V" , channel_start_timestamp =  "2019.03.21 16:39:10.688"
Init channel  "I" , channel_start_timestamp =  "2019.03.21 16:39:10.688"
Init analog signal  "V [V DC]" , signal_start_timestamp_ =  "2019.03.21 16:39:10.688"
Init analog signal  "I [A DC]" , signal_start_timestamp_ =  "2019.03.21 16:39:10.688"
Init channel  "" , channel_start_timestamp =  "2019.03.21 16:39:10.688"
Init analog signal  "P [W]" , signal_start_timestamp_ =  "2019.03.21 16:39:10.688"
Init channel  "" , channel_start_timestamp =  "2019.03.21 16:39:10.688"
Init analog signal  "R [Ω]" , signal_start_timestamp_ =  "2019.03.21 16:39:10.688"
Init channel  "" , channel_start_timestamp =  "2019.03.21 16:39:10.688"
Init analog signal  "Wh [Wh]" , signal_start_timestamp_ =  "2019.03.21 16:39:10.688"
Init channel  "" , channel_start_timestamp =  "2019.03.21 16:39:10.688"
Init analog signal  "Ah [Ah]" , signal_start_timestamp_ =  "2019.03.21 16:39:10.688"
Start aquisition for  "Korad KA3005P" ,  aquisition_start_timestamp_ =  "2019.03.21 16:39:10.688"
Init analog signal  "I [A]" , signal_start_timestamp_ =  "2019.03.21 16:39:10.688"
Can't add new signal  "I [A]" to fixed channel  "I"
BaseSignal::~BaseSignal():  "I [A]"
HardwareChannel::push_sample_sr_analog():  "I"  - No signal found:  "I [A DC]"
[1]    20700 segmentation fault  sudo ./smuview

settings

Hi,

Please consider remembering the settings done in the window where you select a device.
Like ip-address, device-type, port-number, etc.

Does not support multiple --driver with the same driver

Describe the bug

When trying to start smuview with multiple devices of the same type, only the first one is instanciated.

E.g.

smuview --driver etommens_etm_xxxxp:conn=`readlink -f /dev/ttyPWR0` \
        --driver etommens_etm_xxxxp:conn=`readlink -f /dev/ttyPWR1`

will create only a window for the first device.

Seems to be caused by

it = user_drvs_name_opts.upper_bound(it->first)) {

To Reproduce
Steps to reproduce the behavior:

  1. Start smuview with multiple --driver options which specify different instances of the same device type

Expected behavior

every device should appear in smuview

Enviroment (please complete the following information):

Add support for RDTech RD6006

Hi there ... is it possible to have support for the RDTech RD6006 (W) power supply added to SV, please?
The software that comes with the PSU is awful!

How can I help?

TIA
MJ

Nightly smuview AppImage refuses to run on Ubuntu 22.04

Describe the bug
Nightly smuview AppImage refuses to run on Ubuntu 22.04 due to this error:
`(base) damian@damian-GT72VR-7RD:~/smuview$ ./SmuView-0.0.6-git-7050317-x86_64.AppImage
/tmp/.mount_SmuViexDp88T/usr/bin/smuview: symbol lookup error: /lib/x86_64-linux-gnu/libgio-2.0.so.0: undefined symbol: g_module_open_full

(base) damian@damian-GT72VR-7RD:~/smuview$
`
I can't quite make out what I need to install on my system to run the AppImage.

To Reproduce
Steps to reproduce the behavior:

  1. Download smuview specified in the previous step.
  2. chmod +x filename
  3. Try to run smuview by running ./filename
  4. Observe the error.

Expected behavior
smuview should run.

Enviroment (please complete the following information):

  • SmuView-0.0.6-git-7050317-x86_64
  • Appimage
  • Ubuntu 22.04 running on Wayland

Additional context
More OS info:
(base) damian@damian-GT72VR-7RD:~/smuview$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04 LTS Release: 22.04 Codename: jammy
(base) damian@damian-GT72VR-7RD:~/smuview$ uname -a Linux damian-GT72VR-7RD 5.15.0-50-generic #56-Ubuntu SMP Tue Sep 20 13:23:26 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Anaconda base environment is always activated due to the type of work I do on this host.

smuview doesn't recognize GW-INSTEK GDM-397

Hello Frank,

(BTW: Do you speak German? My English isn't well...)

Few days ago I bought a GW-INSTEK GDM-397 with a serial interface and compiled smuview 0.0.5 under ubuntu 20.04.
I've connected the multimeter to my PC via an USB-to-serial converter (PL2303), which is supported by linux and I use sometimes. udev rules a installed fine and work.
But smuview doesn't recognize it!.
I select the driver "GW Instek GDM-397 (gwinstek-gdm-397)", select the correct serial port "/dev/ttyUSB0", press the button "Scan for devices", few seconds long the software tries to scan and the list "Step 4" remains empty.

Do you have any idea, what can I do to check the reason?

Thanks in advance,
Michael

Missing Voltage and Ampere Graph

I tested the master branch against my KD3005P Power Supply.

  1. The Voltage & Ampere Graph are missing

  2. If I try to change the Voltage or Ampere Limit, smuview crashs with the following error:

sr: korad-kaxxxxp: Can't set measurable parameter.
Caught exception: generic/unspecified error
*** Error in ./smuview: double free or corruption (out): 0x000055e86ac47300 ***

Using the sig-cli-tool, it works without a problem:
sigrok-cli -d korad-kaxxxxp:conn=/dev/ttyACM0 --set --config voltage_target=17

kd3005p-2
kd3005p

Negative axis section is missing

I tested the master branch against my UT61D Multimeter.

I noticed that the negative axis section is missing.
As you can see in the screenshots the voltage is -13V but the graph starts with 0V.

ut61d-1
ut61d-2

Incorrect behaviour/working with EBD tester

Describe the bug
To be honest, I have EBD-Mini instead of EBD-USB but communication should work the same. In my opinion control of this tester is not correct. Load start working when I set current value, no mater if start/stop is clicked. Also measurements doesn't stop when UVC has been reached. So my opinion is that wrong commands are used.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
When current/UVC value has been changed command to update those values should be send.
Start/Stop should send start/stop command.
Measurements stop automatically after reach UVC

Screenshots or log
If applicable, add screenshots or logs to help explain your problem.

Enviroment (please complete the following information):

  • SmuView-0.0.6-git-7050317-x86_64.AppImage
  • OS: debian testing

Additional context
I will try to check code but I have to setup some env.

No luck with SmuView trial

Just downloaded the latest application image on a Ubuntu 20.04 64bit machine.

./SmuView-0.0.6-git-7050317-x86_64.AppImage 
/tmp/.mount_SmuViejtd95H/usr/bin/smuview: symbol lookup error: /tmp/.mount_SmuViejtd95H/usr/bin/smuview: undefined symbol: _ZN6sigrok4Unit11AMPERE_HOURE

Same for the release image SmuView-0.0.5-x86_64.AppImage.
Have I to install something? Thought everything is in the AppImage.

Add a new power supply

I just received a new IT6922A power supply and I'm looking at adding support for it in smuview.

My current state is that I just crash coursed myself on SCPI, I gathered the SCPI command manual of my unit and I poked my unit for the first time:

fgervais@fgervais-System-Product-Name:~$ echo "*IDN?" > /dev/usbtmc2
fgervais@fgervais-System-Product-Name:~$ cat /dev/usbtmc2
ITECH Ltd., IT6922A, ******************,  1.10-1.06

I'd like to get a better understanding of the work required to add support for it in smuview.

Resolution issue creating new device

Hi,

when open a new device, in my case the Korad, the first page looks like:
Screenshot at 2019-03-31 21-47-28

I can't scroll. Only option is to unpin the frames and put them in again as the complete page.
Screenshot at 2019-03-31 21-49-51
Screenshot at 2019-03-31 21-50-04

# xdpyinfo | grep dimensions 
  dimensions:    1366x768 pixels (361x203 millimeters)

RD6024 power supply does not get detected

Describe the bug
RD6024 power supply does not get detected when selecting driver

To Reproduce
Steps to reproduce the behavior:

  1. Conntect to device
  2. select RDTech RD series power supply (rdtech-rd) driver
  3. check Serial Port -> correct com port automatically gets detected, but no automatic baud rate detection (set 115200)
  4. Scan for devices using driver above
  5. No device found

Expected behavior
Expect to find device to connect

Screenshots or log
grafik

Enviroment (please complete the following information):

  • SmuView version 0.0.6
  • Windows installer
  • OS: Windows 11

Additional context
sigrok-cli command line is able to connect to the power supply and reads voltage, current, etc. correctly
Other devices (RD TC66C, Brymen 869s) work with SMUView as expected

app bundle for MacOS tries to use global python installation instead of bundled framework

The current nightly for MacOS (dmg file) won't start unless python 3.10 is installed globally, although python 3.10 is included in the app bundle.

% /Applications/SmuView.app/Contents/MacOS/smuview -l 5
dyld[8666]: Library not loaded: '/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.10/Python'
  Referenced from: '/Applications/SmuView.app/Contents/MacOS/smuview.real'
  Reason: tried: '/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.10/Python' (no such file), '/Library/Frameworks/Python.framework/Versions/3.10/Python' (no such file), '/System/Library/Frameworks/Python.framework/Versions/3.10/Python' (no such file)
zsh: abort      /Applications/SmuView.app/Contents/MacOS/smuview -l 5

CRC error RDTech DPS

I got a CRC Error when trying to connect a RDTech DPS Power supply:

./SmuView-0.0.3-x86_64.AppImage 
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Configurable::init(): Init  "A0"  - key  "Offset"
Configurable::init(): Init  "A0"  - key  "Measured Quantity"
Configurable::init(): Init  "A0"  - key  "Amplitude"
Configurable::init(): Init  "A0"  - key  "Pattern Mode"
Configurable::init(): Init  "A1"  - key  "Offset"
Configurable::init(): Init  "A1"  - key  "Measured Quantity"
Configurable::init(): Init  "A1"  - key  "Amplitude"
Configurable::init(): Init  "A1"  - key  "Pattern Mode"
Configurable::init(): Init  "A2"  - key  "Offset"
Configurable::init(): Init  "A2"  - key  "Measured Quantity"
Configurable::init(): Init  "A2"  - key  "Amplitude"
Configurable::init(): Init  "A2"  - key  "Pattern Mode"
Configurable::init(): Init  "A3"  - key  "Offset"
Configurable::init(): Init  "A3"  - key  "Measured Quantity"
Configurable::init(): Init  "A3"  - key  "Amplitude"
Configurable::init(): Init  "A3"  - key  "Pattern Mode"
Configurable::init(): Init  "Analog"  - key  "Offset"
Configurable::init(): Init  "Analog"  - key  "Amplitude"
Configurable::init(): Init  "Logic"  - key  "Pattern Mode"
Configurable::init(): Init  "Demo device"  - key  "Trigger Match"
Configurable::init(): Init  "Demo device"  - key  "Averaging Samples"
Configurable::init(): Init  "Demo device"  - key  "Averaging"
Configurable::init(): Init  "Demo device"  - key  "Capture Ratio"
Configurable::init(): Init  "Demo device"  - key  "Samplerate"
Configurable::init(): Init  "RDTech DPS5005"  - key  "Regulation"
Configurable::init(): Init  "RDTech DPS5005"  - key  "Over Current Protection Threshold"
Configurable::init(): Init  "RDTech DPS5005"  - key  "Over Current Protection Active"
Configurable::init(): Init  "RDTech DPS5005"  - key  "Over Voltage Protection Threshold"
Configurable::init(): Init  "RDTech DPS5005"  - key  "Over Voltage Protection Active"
Configurable::init(): Init  "RDTech DPS5005"  - key  "Enabled"
Configurable::init(): Init  "RDTech DPS5005"  - key  "Current Limit"
Configurable::init(): Init  "RDTech DPS5005"  - key  "Current"
Configurable::init(): Init  "RDTech DPS5005"  - key  "Voltage Target"
Configurable::init(): Init  "RDTech DPS5005"  - key  "Voltage"
Init channel  "V" , channel_start_timestamp =  "2019.04.05 21:51:39.753"
Init channel  "I" , channel_start_timestamp =  "2019.04.05 21:51:39.753"
Init channel  "P" , channel_start_timestamp =  "2019.04.05 21:51:39.753"
Init analog signal  "V [V DC]" , signal_start_timestamp_ =  "2019.04.05 21:51:39.753"
Init analog signal  "I [A DC]" , signal_start_timestamp_ =  "2019.04.05 21:51:39.753"
Init analog signal  "P [W]" , signal_start_timestamp_ =  "2019.04.05 21:51:39.753"
Init channel  "" , channel_start_timestamp =  "2019.04.05 21:51:39.753"
Init analog signal  "R [Ω]" , signal_start_timestamp_ =  "2019.04.05 21:51:39.753"
Init channel  "" , channel_start_timestamp =  "2019.04.05 21:51:39.753"
Init analog signal  "Wh [Wh]" , signal_start_timestamp_ =  "2019.04.05 21:51:39.753"
Init channel  "" , channel_start_timestamp =  "2019.04.05 21:51:39.753"
Init analog signal  "Ah [Ah]" , signal_start_timestamp_ =  "2019.04.05 21:51:39.753"
Start aquisition for  "RDTech DPS5005" ,  aquisition_start_timestamp_ =  "2019.04.05 21:51:39.753"
Caught exception: generic/unspecified error
BaseDevice::close(): Trying to close device  "RDTech DPS5005 v14"
Init analog signal  "P [W DC]" , signal_start_timestamp_ =  "2019.04.05 21:51:39.753"
Warning: Adding new signal  "P [W DC]" to fixed channel  "P"
HardwareChannel::push_sample_sr_analog():  "P"  - No signal found:  "P [W DC]"
sr: modbus_serial: CRC error (0x0000 vs 0xFDC3).
BaseDevice::close(): Device closed  "RDTech DPS5005 v14"
BaseDevice::~BaseDevice():  "Demo device"
BaseDevice::close(): Trying to close device  "Demo device"

Korad KA3005P 0.0.2 segfault

I have two issues with the Korad KA3005P, it segfaults with the release 0.0.2

$ ./SmuView-0.0.2-x86_64.AppImage 
Configurable::init(): Init  "A0"  - key  "Amplitude"
Configurable::init(): Init  "A0"  - key  "Pattern Mode"
Configurable::init(): Init  "A1"  - key  "Amplitude"
Configurable::init(): Init  "A1"  - key  "Pattern Mode"
Configurable::init(): Init  "A2"  - key  "Amplitude"
Configurable::init(): Init  "A2"  - key  "Pattern Mode"
Configurable::init(): Init  "A3"  - key  "Amplitude"
Configurable::init(): Init  "A3"  - key  "Pattern Mode"
Configurable::init(): Init  "Analog"  - key  "Amplitude"
Configurable::init(): Init  "Logic"  - key  "Pattern Mode"
Configurable::init(): Init  "Demo device"  - key  "Trigger Match"
Configurable::init(): Init  "Demo device"  - key  "Averaging Samples"
Configurable::init(): Init  "Demo device"  - key  "Averaging"
Configurable::init(): Init  "Demo device"  - key  "Capture Ratio"
Configurable::init(): Init  "Demo device"  - key  "Samplerate"
Configurable::init(): Init  "Korad KA3005P"  - key  "Regulation"
Configurable::init(): Init  "Korad KA3005P"  - key  "Over Current Protection Enabled"
Configurable::init(): Init  "Korad KA3005P"  - key  "Over Voltage Protection Enabled"
Configurable::init(): Init  "Korad KA3005P"  - key  "Enabled"
Configurable::init(): Init  "Korad KA3005P"  - key  "Current Limit"
Configurable::init(): Init  "Korad KA3005P"  - key  "Current"
Configurable::init(): Init  "Korad KA3005P"  - key  "Voltage Target"
Configurable::init(): Init  "Korad KA3005P"  - key  "Voltage"
Init channel  "V" , channel_start_timestamp =  "2019.03.29 20:39:08.079"
Init channel  "I" , channel_start_timestamp =  "2019.03.29 20:39:08.079"
Init analog signal  "V [V DC]" , signal_start_timestamp_ =  "2019.03.29 20:39:08.079"
Init analog signal  "I [A DC]" , signal_start_timestamp_ =  "2019.03.29 20:39:08.079"
Init channel  "" , channel_start_timestamp =  "2019.03.29 20:39:08.079"
Init analog signal  "P [W]" , signal_start_timestamp_ =  "2019.03.29 20:39:08.079"
Init channel  "" , channel_start_timestamp =  "2019.03.29 20:39:08.079"
Init analog signal  "R [Ω]" , signal_start_timestamp_ =  "2019.03.29 20:39:08.079"
Init channel  "" , channel_start_timestamp =  "2019.03.29 20:39:08.079"
Init analog signal  "Wh [Wh]" , signal_start_timestamp_ =  "2019.03.29 20:39:08.079"
Init channel  "" , channel_start_timestamp =  "2019.03.29 20:39:08.079"
Init analog signal  "Ah [Ah]" , signal_start_timestamp_ =  "2019.03.29 20:39:08.079"
Start aquisition for  "Korad KA3005P" ,  aquisition_start_timestamp_ =  "2019.03.29 20:39:08.079"
Init analog signal  "I [A]" , signal_start_timestamp_ =  "2019.03.29 20:39:08.079"
Can't add new signal  "I [A]" to fixed channel  "I"
BaseSignal::~BaseSignal():  "I [A]"
HardwareChannel::push_sample_sr_analog():  "I"  - No signal found:  "I [A DC]"
Segmentation fault (core dumped)

The older version works so far:

$ ./SmuView-0.0.1-x86_64.AppImage 
Configurable::init(): Init  "Korad KA3005P"  - key  "Regulation"
Configurable::init(): Init  "Korad KA3005P"  - key  "Over Current Protection Enabled"
Configurable::init(): Init  "Korad KA3005P"  - key  "Over Voltage Protection Enabled"
Configurable::init(): Init  "Korad KA3005P"  - key  "Enabled"
Configurable::init(): Init  "Korad KA3005P"  - key  "Current Limit"
Configurable::init(): Init  "Korad KA3005P"  - key  "Current"
Configurable::init(): Init  "Korad KA3005P"  - key  "Voltage Target"
Configurable::init(): Init  "Korad KA3005P"  - key  "Voltage"
Init channel  "" , channel_start_timestamp =  "2019.03.29 20:43:26.128"
Init channel  "" , channel_start_timestamp =  "2019.03.29 20:43:26.128"
Init analog signal  "V [V DC]" , signal_start_timestamp_ =  "2019.03.29 20:43:26.128"
Init analog signal  "I [A DC]" , signal_start_timestamp_ =  "2019.03.29 20:43:26.128"
Init channel  "" , channel_start_timestamp =  "2019.03.29 20:43:26.128"
Init analog signal  "P [W]" , signal_start_timestamp_ =  "2019.03.29 20:43:26.128"
Init channel  "" , channel_start_timestamp =  "2019.03.29 20:43:26.128"
Init analog signal  "R [Ω]" , signal_start_timestamp_ =  "2019.03.29 20:43:26.128"
Init channel  "" , channel_start_timestamp =  "2019.03.29 20:43:26.128"
Init analog signal  "Wh [Wh]" , signal_start_timestamp_ =  "2019.03.29 20:43:26.128"
Init channel  "" , channel_start_timestamp =  "2019.03.29 20:43:26.128"
Init analog signal  "Ah [Ah]" , signal_start_timestamp_ =  "2019.03.29 20:43:26.128"
Start aquisition for  "Korad KA3005P" ,  aquisition_start_timestamp_ =  "2019.03.29 20:43:27.772"
Init analog signal  "I [A]" , signal_start_timestamp_ =  "2019.03.29 20:43:26.128"
HardwareChannel::push_sample_sr_analog():  "I"  - No signal found:  "I [A]"
QWidget::setLayout: Attempting to set QLayout "" on QwtScaleWidget "QwtPlotAxisXBottom", which already has a layout
BaseChannel::on_aquisition_start_timestamp_changed() timestamp =  "2019.03.29 20:43:27.772"
BaseChannel::on_aquisition_start_timestamp_changed() timestamp =  "2019.03.29 20:43:27.772"
BaseChannel::on_aquisition_start_timestamp_changed() timestamp =  "2019.03.29 20:43:27.772"
BaseChannel::on_aquisition_start_timestamp_changed() timestamp =  "2019.03.29 20:43:27.772"
BaseChannel::on_aquisition_start_timestamp_changed() timestamp =  "2019.03.29 20:43:27.772"
BaseChannel::on_aquisition_start_timestamp_changed() timestamp =  "2019.03.29 20:43:27.772"

Version 0.0.1 has only a non reliable on/off button (does not work every time, same with OCP)

Also after the device search it lists the KA3005P with 2 channels, tough the PSU only has one channel.

Build Issues on Ubuntu 18.04

Describe the bug
When building either manually as described at https://sigrok.org/wiki/Linux#Building_.28manually.29 or using the script at https://knarfs.github.io/doc/smuview/0.0.4/manual.html#_linux , the build fails with Python errors. PulseView and the rest of the Sigrok suite install fine.
To Reproduce
Steps to reproduce the behavior:

  1. Follow the steps for manual installation of all Sigrok tools at https://sigrok.org/wiki/Linux#Building_.28manually.29

or

  1. Follow the building from source directions here https://knarfs.github.io/doc/smuview/0.0.4/manual.html#_linux

Expected behavior
The application should install without error.

Screenshots or log
Using the script, I first get this error:

  GEN      bindings/python/timestamp
destdir=''; /usr/bin/python ../bindings/python/setup.py VERSION='0.6.0' CC='g++' CXX='g++' CFLAGS='-g -O2 -Wall -Wextra -I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu/python2.7 -I/usr/include/pygobject-3.0 -I/usr/include/glibmm-2.4 -I/usr/lib/x86_64-linux-gnu/glibmm-2.4/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include' CXXFLAGS='-g -O2 -Wall -Wextra -I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu/python2.7 -I/usr/include/pygobject-3.0 -I/usr/include/glibmm-2.4 -I/usr/lib/x86_64-linux-gnu/glibmm-2.4/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include' LDADD='-lpython2.7 -lglibmm-2.4 -lgobject-2.0 -lglib-2.0 -lsigc-2.0' --quiet install ${destdir:+"--root=$destdir"} \
	--prefix "/home/dannooo/sr" --exec-prefix "/home/dannooo/sr"
TEST FAILED: /home/dannooo/sr/lib/python2.7/site-packages/ does NOT support .pth files
error: bad install directory or PYTHONPATH

You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from.  The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /home/dannooo/sr/lib/python2.7/site-packages/

and your PYTHONPATH environment variable currently contains:

    '/home/dannooo/sr/lib/python3.5/site-packages'

Here are some of your options for correcting the problem:

* You can choose a different installation directory, i.e., one that is
  on PYTHONPATH or supports .pth files

* You can add the installation directory to the PYTHONPATH environment
  variable.  (It must then also be on PYTHONPATH whenever you run
  Python and want to use the package(s) you are installing.)

* You can set up the installation directory to support ".pth" files by
  using one of the approaches described here:

  https://setuptools.readthedocs.io/en/latest/easy_install.html#custom-installation-locations


Please make the appropriate changes for your system and try again.

I tried editing the script to set PYTHONPATH to point at Python 2.7 (I know this isn't a reasonable thing to do but it is worth a shot). This got me past this stage and into the "make" phase of the build process. Then, I reach the following error later in compilation. This is the same error as what happens following the manual installation steps:

[100%] Linking CXX executable smuview
CMakeFiles/smuview.dir/src/python/bindings.cpp.o: In function `pybind11::detail::string_caster<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, false>::cast(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, pybind11::return_value_policy, pybind11::handle) [clone .isra.840]':
/home/dannooo/sr/sigrok-util/cross-compile/linux/build/smuview/external/pybind11/include/pybind11/cast.h:1268: undefined reference to `PyUnicode_DecodeUTF8'
CMakeFiles/smuview.dir/src/python/bindings.cpp.o: In function `pybind11::detail::type_caster<char, void>::cast(char const*, pybind11::return_value_policy, pybind11::handle) [clone .constprop.1894]':
/home/dannooo/sr/sigrok-util/cross-compile/linux/build/smuview/external/pybind11/include/pybind11/pytypes.h:190: undefined reference to `_Py_NoneStruct'
CMakeFiles/smuview.dir/src/python/bindings.cpp.o: In function `init_Session(pybind11::module&)':
/home/dannooo/sr/sigrok-util/cross-compile/linux/build/smuview/external/pybind11/include/pybind11/pytypes.h:190: undefined reference to `_Py_NoneStruct'
...
...

There's maybe thousands of lines of the same "undefined reference" errors.

Enviroment :

  • SmuView commit 13db44a
  • OS: Ububtu 18.04.4LTS

AppImage: Bluetooth LE devices, like the 121gw

I'm so delighted by the availability of an AppImage build of SmuView as there are just too many ways to get a current build of sigrok and smuview on ubuntu :)

Describe the bug
When running the app image and selecting, in my case, the EEVBlog 121gw multimeter, smuview begins to scan for bluetooth devices but it seems to fail only for LE devices. It does find my Nvidia Shield (a tv box) and even my neighbor's Sony TV

To Reproduce
Steps to reproduce the behavior:

  1. Run SmuView.AppImage
  2. Click Add Device
  3. Select "EEVBLOG 121gw"
  4. Choose Serial Port

.... No LE devices found, only regular Bluetooth devices ...

Expected behavior
I expected to select my multimeter right next to the pc :)

Screenshots or log
I won't bother you with screenshots, but the terminal does make a few interesting statements:

When running as my regular user:

$ ./SmuView-0.0.4-x86_64.AppImage 
set LE scan params: Operation not permitted
set LE scan params: Operation not permitted

When running as root (though not recommended)

21:14 $ sudo ./SmuView-0.0.4-x86_64.AppImage 
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
set LE scan params: Input/output error

Enviroment (please complete the following information):
SmuView-0.0.4-x86_64.AppImage
Ubuntu 19.10
Linux 5.3.0-45-generic

Additional context
The manual states some udev rules which need to be applied in order to make the app image function as advertised - I had a look at them and I ... well I don't know but at least my gut feeling tells me they have nothing to do with this - and I haven't applied them

OWON P4305 support

Does smuview support OWON P4305 yet? I only get the following error when trying to select scpi-pps device.

sr: serial-libsp: Error opening port (25): Inappropriate ioctl for device.

Cannot find device when scan

SmuView-0.0.6-git-7050317-x86_64-installer : Win 10. I select Tekpower TP 4000ZC and scan for device with a BT90_EPC multimeter connected. Serial port Com port interface. This worked successfully on my desktop and laptop (win 8.1) many times. I did not consistently use the same usb port.
Then over the course of a few days testing, I had problems finding TP 4000ZC consistently when scanning. And now I cannot find the device anymore.
I tried uninstalling and reinstalling Smuview with no success.

Thanks RHP
2022-03-12_215807
ver 0.0.6 totally does not work anymore. Seems as though there is built-in timer to stop being able to scan for device.
I uninstalled and then installed the stable version SmuView-0.0.5-x86_64-installer on my laptop and desktop. SMUview scanned and found my device without hesitation. I will continue testing and changing usb port so see if it is stable.

Hang and high cpu after device disconnect

Describe the bug
Smuview hangs and uses 100% CPU when the connection to the power supply is lost (e.g by turning the power supply off). The UI recovers after a while, but a process with the name of /tmp/.mount_smuvieD7pmN9/usr/bin/smuview --driver=korad-kaxxxxp:conn=/dev/ttyACM0 keeps using 100% CPU.

Driver: korad-kaxxxxp, actual model: Tenma 72-2540

To Reproduce
Steps to reproduce the behavior:

  1. smuview --driver=korad-kaxxxxp:conn=/dev/ttyACM0
  2. Interrupt the serial connection by turning the device off or by unplugging the cable
  3. SmuView hangs

Expected behavior
SmuView does not hang and indicates that the connection has been lost.

Screenshots or log

Configurable::init(): Init  "Tenma 72-2540"  - key  "Regulation"
Configurable::init(): Init  "Tenma 72-2540"  - key  "Over Current Protection Enabled"
Configurable::init(): Init  "Tenma 72-2540"  - key  "Over Voltage Protection Enabled"
Configurable::init(): Init  "Tenma 72-2540"  - key  "Enabled"
Configurable::init(): Init  "Tenma 72-2540"  - key  "Current Limit"
Configurable::init(): Init  "Tenma 72-2540"  - key  "Current"
Configurable::init(): Init  "Tenma 72-2540"  - key  "Voltage Target"
Configurable::init(): Init  "Tenma 72-2540"  - key  "Voltage"
Init channel  "V" , channel_start_timestamp =  "2020.05.11 20:46:10.535"
Init channel  "I" , channel_start_timestamp =  "2020.05.11 20:46:10.535"
Init analog base signal  "V [V DC]"
Init analog time signal  "V [V DC]" , signal_start_timestamp_ =  "2020.05.11 20:46:10.535"
Init analog base signal  "I [A DC]"
Init analog time signal  "I [A DC]" , signal_start_timestamp_ =  "2020.05.11 20:46:10.535"
Init channel  "" , channel_start_timestamp =  "2020.05.11 20:46:10.535"
Init analog base signal  "P [W]"
Init analog time signal  "P [W]" , signal_start_timestamp_ =  "2020.05.11 20:46:10.535"
Init channel  "" , channel_start_timestamp =  "2020.05.11 20:46:10.535"
Init analog base signal  "R [Ω]"
Init analog time signal  "R [Ω]" , signal_start_timestamp_ =  "2020.05.11 20:46:10.535"
Init channel  "" , channel_start_timestamp =  "2020.05.11 20:46:10.535"
Init analog base signal  "Wh [Wh]"
Init analog time signal  "Wh [Wh]" , signal_start_timestamp_ =  "2020.05.11 20:46:10.535"
Init channel  "" , channel_start_timestamp =  "2020.05.11 20:46:10.535"
Init analog base signal  "Ah [Ah]"
Init analog time signal  "Ah [Ah]" , signal_start_timestamp_ =  "2020.05.11 20:46:10.535"
Start aquisition for  "Tenma 72-2540" ,  aquisition_start_timestamp_ =  "2020.05.11 20:46:10.535"
sr: serial-libsp: Write error (5): Input/output error.
sr: korad-kaxxxxp: Error sending command: -1.
Configurable::set_config(): Failed to set config key  "Enabled" .  generic/unspecified error
sr: serial-libsp: Write error (5): Input/output error.
sr: korad-kaxxxxp: Error sending command: -1.

Enviroment (please complete the following information):
0.0.4 AppImage on Arch Linux

smuview "crashes" the UT-D04 (USB/HID cable with WCH CH9325 chip, USB VID/PID 1a86:e008)

This is somewhat interesting issue i think.
I know about issue #31 .

This is working perfectly fine:

  1. connect the usb cable to computer
  2. run: sigrok-cli -d voltcraft-vc840:conn=1a86.e008 --continuous

smuview does not work at all with my hardware. I am running SmuView-0.0.6-git-7050317-x86_64.AppImage .
Its crashing the WCH chipset when its been started.
This is the result:
./SmuView-0.0.6-git-7050317-x86_64.AppImage
sr: testo: Failed to get manufacturer string descriptor: LIBUSB_ERROR_IO.
sr: testo: Failed to get product string descriptor: LIBUSB_ERROR_IO.

Then i close smuview and run:
sigrok-cli -d voltcraft-vc840:conn=1a86.e008 --continuous
sr: uni-t-dmm: HID feature report error: LIBUSB_ERROR_IO.
sr: uni-t-dmm: HID chip init failed: -1.

I have to disconnect the usb cable and connect it again to get a working sigrok-cli again.
Running
./SmuView-0.0.6-git-7050317-x86_64.AppImage -d voltcraft-vc840:conn=1a86.e008
does not change anything. I still get the same Error in the command line and no data from the DMM.

My conclusion without reading the smuview code is that smuview does something at the start that crashes the WCH chip. Then smuview and sigrok-cli are not able to read any data from it until reconnect.

Unwanted rounding in multimeter display

I use a UT61C multimeter connected via RS232.
When I test a resistor of 4.7k, I get a display of 5k in the main display, while the graphs and sigrok-cli clearly show the correct values. There is some unwanted rounding active on the display routine ..

USB scan fails on Ubuntu 20.04

Describe the bug

I'm trying to discover my UNI_T UT71B using SmuView-0.0.5-x86_64.AppImage but it does not show my USB device. However, if I specify the device via --driver=uni-t-ut71b:conn=1a86.e008 everything works fine.

To Reproduce
Steps to reproduce the behavior:

  1. Open smuview
  2. Click on add device button
  3. Choose UNI_T UT71B (uni-t ut71b) driver
  4. select USB
  5. Click on Scan for devices using driver above
    Expected behavior
    My device shows up in the list

Screenshots or log
image

command line output of ./SmuView-0.0.5-x86_64.AppImage -l5

Enviroment:

  • SmuView-0.0.5-x86_64.AppImage
  • Ubuntu 20.04

Additional Information

  • I did also try to it from a root shell top check if it's a permission problem, but i showed the same behavior.

Support "forced detection"

With

https://sigrok.org/gitweb/?p=libsigrok.git;a=commit;h=d643e6bc3942d7b7149a53b3091034d64eac0ad3
and
https://sigrok.org/gitweb/?p=libsigrok.git;a=commit;h=e37e301e26c1da480e41fa68aef3be4efa5d0345

gsi implemented a generally-usable way to let users override model detection in drivers so that they can test a not-yet-supported model to check if it works. Would be useful if SmuView would support it, too.

Related PV bug is here: https://sigrok.org/bugzilla/show_bug.cgi?id=1590

cannot/no longer compile due to deprecated declarations

Describe the bug
Fresh compile with the latest git version fails due to deprecated declarations

To Reproduce
Steps to reproduce the behavior:
Compile fresh from git source (on Fedora 30 at least)

Expected behavior
Nice compile :-)

Screenshots or log
[ 90%] Building CXX object CMakeFiles/smuview.dir/src/ui/widgets/lcddisplay.cpp.o [ 91%] Building CXX object CMakeFiles/smuview.dir/src/ui/widgets/monofontdisplay.cpp.o /home/kramer/Documents/keysight-u1242b/sigrok/smuview/smuview/src/ui/widgets/monofontdisplay.cpp: In member function ‘virtual void sv::ui::widgets::MonoFontDisplay::update_value_widget_dimensions()’: /home/kramer/Documents/keysight-u1242b/sigrok/smuview/smuview/src/ui/widgets/monofontdisplay.cpp:137:47: error: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Werror=deprecated-declarations] 137 | value_label_->setFixedWidth(metrics.width(str)); | ^ In file included from /usr/include/qt5/QtGui/QFontMetrics:1, from /home/kramer/Documents/keysight-u1242b/sigrok/smuview/smuview/src/ui/widgets/monofontdisplay.cpp:22: /usr/include/qt5/QtGui/qfontmetrics.h:108:9: note: declared here 108 | int width(const QString &, int len = -1) const; | ^~~~~ /home/kramer/Documents/keysight-u1242b/sigrok/smuview/smuview/src/ui/widgets/monofontdisplay.cpp: In member function ‘virtual void sv::ui::widgets::MonoFontDisplay::update_unit_widget_dimensions()’: /home/kramer/Documents/keysight-u1242b/sigrok/smuview/smuview/src/ui/widgets/monofontdisplay.cpp:159:46: error: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Werror=deprecated-declarations] 159 | unit_label_->setFixedWidth(metrics.width(str)); | ^ In file included from /usr/include/qt5/QtGui/QFontMetrics:1, from /home/kramer/Documents/keysight-u1242b/sigrok/smuview/smuview/src/ui/widgets/monofontdisplay.cpp:22: /usr/include/qt5/QtGui/qfontmetrics.h:108:9: note: declared here 108 | int width(const QString &, int len = -1) const; | ^~~~~ cc1plus: all warnings being treated as errors make[2]: *** [CMakeFiles/smuview.dir/build.make:1680: CMakeFiles/smuview.dir/src/ui/widgets/monofontdisplay.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:163: CMakeFiles/smuview.dir/all] Error 2 make: *** [Makefile:150: all] Error 2

Enviroment (please complete the following information):

  • SmuView version / git commit : 4b5f367
  • self compiled: gcc (GCC) 9.3.1 20200408 (Red Hat 9.3.1-2)
  • OS: Fedora 30 x86_64

Additional context

continuous build won't run on debian sid

Running it gives:

/tmp/.mount_SmuVienaCk2D/usr/bin/smuview: symbol lookup error: /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0: undefined symbol: g_module_open_full

That's for: SmuView-0.0.5-x86_64.AppImage and SmuView-0.0.6-git-7050317-x86_64.AppImage‎

can't connect to Brymen BM869s via BM-86X USB interface cable

Describe the bug
SmuView can't connect to either my DMM (Brymen BM869s, connected via BM-86X), nor my PSU (RND 320-KA3005P, connected via USB). Both are detected by sigrok-cli (0.8.0-git-525f481).

To Reproduce
Steps to reproduce the behavior:

  1. connect device (DMM: Brymen BM869s via BM-86X USB interface cable; PSU: RND 320-K3005P via USB cable)
  2. add device in smuview
  3. specify connection details
    DMM:
    driver: brymen-bm86x, interface: USB
    PSU:
    driver: korad-kaxxxxp; interface: serial; port: /dev/cu.usbmodem0029128002411 (USB Virtual COM)
  4. click "scan for devices using driver above"

Expected behavior
At least the DMM should be detected and listed, the PSU might not be recognized as compatible by the driver.

Screenshots or log

Enviroment (please complete the following information):

  • SmuView 0.0.5-git-3193851
  • nightly DMG
  • OS: MacOS 12.6.1 on MacBook Pro M1 2021

Additional context
% /Applications/sigrok-cli.app/Contents/MacOS/sigrok-cli --scan
The following devices were found:
demo - Demo device with 13 channels: D0 D1 D2 D3 D4 D5 D6 D7 A0 A1 A2 A3 A4
brymen-bm86x - Brymen BM86x with 2 channels: P1 P2

% /Applications/sigrok-cli.app/Contents/MacOS/sigrok-cli --driver=korad-kaxxxxp:conn=/dev/tty.usbmodem0029128002411 --scan
sr: korad-kaxxxxp: Unknown model ID 'RND 320-KA3005P V4.1' detected, aborting.

% /Applications/sigrok-cli.app/Contents/MacOS/sigrok-cli --version
sigrok-cli 0.8.0-git-525f481

Libraries and features:

  • libsigrok 0.6.0-git-6dc55e4/4:0:0 (rt: 0.6.0-git-6dc55e4/4:0:0).
  • Libs:
  • glib 2.64.2 (rt: 2.64.2/6402:2)
  • zlib 1.2.5
  • libzip 1.6.1
  • minilzo 2.10
  • 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
  • libftdi 1.4
  • Host: x86_64-apple-darwin15.6.0, little-endian.
  • SCPI backends: TCP, RPC, serial, USBTMC.
  • libsigrokdecode 0.6.0-git-24ba9e1/4:0:0 (rt: 0.6.0-git-24ba9e1/4:0:0).
  • Libs:
  • glib 2.64.2 (rt: 2.64.2/6402:2)
  • Python 3.7.7 / 0x30707f0 (API 1013, ABI 3)
  • Host: x86_64-apple-darwin15.6.0, little-endian.

AppImage: Bluetooth-serial rdtech-um device - no connection without root privileges

I'm using SmuView-0.0.6-git-7050317-x86_64, appimage version on Linux Mint 20.3.
I'm trying to connect a RDTech UM34C usb power meter via bluetooth-serial (driver rdtech-um).

With SmuView running as root all works just fine.
First, I have to connect the um34c via blueman so the serial connection via /dev/rfcomm0 (rfcomm0) is possible. Device is found and all is ok!

When running Smuview as regular user, serial connection via /dev/rfcomm0 is detected but no device is found and this error come up via terminal:
sr: serial-libsp: Error opening port (13): Permission denied

I've already added the udev rules as the SmuView user manual suggests, but with no luck.

Deprecated QT functions used -> compiling fails

Describe the bug
Unable to compile the latest master (f5c450e (HEAD -> master, origin/master, origin/HEAD) QCodeEditor: Update to actual knarfS/QCodeEditor fork, commit b03448e)

To Reproduce
Steps to reproduce the behavior:

  1. Build according to INSTALL using cmake on ArchLinux

Expected behavior
Software to compile successfully.

Screenshots or log

[ 21%] Building CXX object CMakeFiles/smuview.dir/src/settingsmanager.cpp.o
[ 22%] Building CXX object CMakeFiles/smuview.dir/src/util.cpp.o
/home/vinz/Projects/OpenOtii/smuview/src/util.cpp: In function ‘QString sv::util::format_time_si(const Timestamp&, sv::util::SIPrefix, unsigned int, const QString&, bool)’:
/home/vinz/Projects/OpenOtii/smuview/src/util.cpp:179:9: error: ‘QTextStream& QTextStreamFunctions::forcesign(QTextStream&)’ is deprecated: Use Qt::forcesign [-Werror=deprecated-declarations]
  179 |   ts << forcesign;
      |         ^~~~~~~~~
In file included from /usr/include/qt/QtCore/qdebug.h:49,
                 from /usr/include/qt/QtCore/QDebug:1,
                 from /home/vinz/Projects/OpenOtii/smuview/src/util.cpp:31:
/usr/include/qt/QtCore/qtextstream.h:279:80: note: declared here
  279 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::forcesign") QTextStream &forcesign(QTextStream &s);
      |                                                                                ^~~~~~~~~
/home/vinz/Projects/OpenOtii/smuview/src/util.cpp:179:9: error: ‘QTextStream& QTextStreamFunctions::forcesign(QTextStream&)’ is deprecated: Use Qt::forcesign [-Werror=deprecated-declarations]
  179 |   ts << forcesign;
      |         ^~~~~~~~~
In file included from /usr/include/qt/QtCore/qdebug.h:49,
                 from /usr/include/qt/QtCore/QDebug:1,
                 from /home/vinz/Projects/OpenOtii/smuview/src/util.cpp:31:
/usr/include/qt/QtCore/qtextstream.h:279:80: note: declared here
  279 | Q_CORE_EXPORT QT_DEPRECATED_VERSION_X(5, 15, "Use Qt::forcesign") QTextStream &forcesign(QTextStream &s);
      |                                                                                ^~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/smuview.dir/build.make:224: CMakeFiles/smuview.dir/src/util.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:185: CMakeFiles/smuview.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
make  120,38s user 12,88s system 114% cpu 1:56,66 total

Enviroment (please complete the following information):

  • SmuView version / git commit: f5c450e
  • Self-compiled version, gcc version 10.2.0 (GCC), QT 5.15.1
  • OS: ArchLinux rolling release

KeyError

I am using latest image Version 0.0.6-git-7050317 under Ubuntu 20.04.
The device is a VC830 dmm connected by USB hid cable. The manual connection and measurement works very well.
`
import smuview
import time

dmm_device = Session.connect_device("voltcraft-vc830:conn=1a86.e008")[0]
dmm_conf = dmm_device.configurables()[""]

dmm_conf.set_config(smuview.ConfigKey.MeasuredQuantity, smuview.Quantity.Voltage)
`
I got following error:

`KeyError: ('',)

At:
/smuview/smuscript/battery_characteristic.py(8):
`
My python is Version 3.8.

error: 'int QFontMetrics::width(const QString&, int) const’ is deprecated

I'm getting this error when I try to build this!

[  1%] Building CXX object CMakeFiles/smuview.dir/src/ui/widgets/lcddisplay.cpp.o
./smuview/src/ui/widgets/lcddisplay.cpp: In member function ‘virtual void sv::ui::widgets::LcdDisplay::update_unit_widget_dimensions()’:
./smuview/src/ui/widgets/lcddisplay.cpp:139:46: error: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Werror=deprecated-declarations]
  139 |  unit_label_->setFixedWidth(metrics.width(str));
      |                                              ^
In file included from /usr/include/qt/QtWidgets/qwidget.h:50,
                 from /usr/include/qt/QtWidgets/qframe.h:44,
                 from /usr/include/qt/QtWidgets/qlcdnumber.h:44,
                 from /usr/include/qt/QtWidgets/QLCDNumber:1,
                 from ./smuview/src/ui/widgets/lcddisplay.cpp:22:
/usr/include/qt/QtGui/qfontmetrics.h:108:9: note: declared here
  108 |     int width(const QString &, int len = -1) const;
      |         ^~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/smuview.dir/build.make:1366: CMakeFiles/smuview.dir/src/ui/widgets/lcddisplay.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:79: CMakeFiles/smuview.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Qt version is: 5.13.0

Fails to compile with Python 3.9 installed

Smuview compilation fails when python 3.9 is installed
Compiling Smuview on a system with Python 3.9 produces a deprecation warning about PyEval_InitThreads() which in turn causes compilation to abort since warnings are being treated as errors

To Reproduce

  1. mkdir buid
  2. cd build
  3. cmake ../
  4. make

** To fix**
Python versions prior to 3.6 require the call to PyEval_InitThreads so some intelligence would need to be added to cmake.
cmake -DDISABLE_WERROR=y ../

Screenshots or log

In file included from /data/src/electronics/sigrok/smuview/external/pybind11/include/pybind11/cast.h:16,
                 from /data/src/electronics/sigrok/smuview/external/pybind11/include/pybind11/attr.h:13,
                 from /data/src/electronics/sigrok/smuview/external/pybind11/include/pybind11/pybind11.h:44,
                 from /data/src/electronics/sigrok/smuview/build/smuview_autogen/3MH5VUM4LI/../../../src/python/pystreamredirect.hpp:27,
                 from /data/src/electronics/sigrok/smuview/build/smuview_autogen/3MH5VUM4LI/moc_pystreamredirect.cpp:10,
                 from /data/src/electronics/sigrok/smuview/build/smuview_autogen/mocs_compilation.cpp:36:
/data/src/electronics/sigrok/smuview/external/pybind11/include/pybind11/detail/internals.h: In function ‘pybind11::detail::internals& pybind11::detail::get_internals()’:
/data/src/electronics/sigrok/smuview/external/pybind11/include/pybind11/detail/internals.h:276:28: error: ‘void PyEval_InitThreads()’ is deprecated [-Werror=deprecated-declarations]
  276 |         PyEval_InitThreads();
      |                            ^
In file included from /usr/include/python3.9/Python.h:145,
                 from /data/src/electronics/sigrok/smuview/external/pybind11/include/pybind11/detail/common.h:112,
                 from /data/src/electronics/sigrok/smuview/external/pybind11/include/pybind11/pytypes.h:12,
                 from /data/src/electronics/sigrok/smuview/external/pybind11/include/pybind11/cast.h:13,
                 from /data/src/electronics/sigrok/smuview/external/pybind11/include/pybind11/attr.h:13,
                 from /data/src/electronics/sigrok/smuview/external/pybind11/include/pybind11/pybind11.h:44,
                 from /data/src/electronics/sigrok/smuview/build/smuview_autogen/3MH5VUM4LI/../../../src/python/pystreamredirect.hpp:27,
                 from /data/src/electronics/sigrok/smuview/build/smuview_autogen/3MH5VUM4LI/moc_pystreamredirect.cpp:10,
                 from /data/src/electronics/sigrok/smuview/build/smuview_autogen/mocs_compilation.cpp:36:
/usr/include/python3.9/ceval.h:130:37: note: declared here
  130 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
      |                                     ^~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/smuview.dir/build.make:133: CMakeFiles/smuview.dir/smuview_autogen/mocs_compilation.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:185: CMakeFiles/smuview.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

Enviroment (Fedora 33):

  • SmuView version / HEAD /master
  • OS: [Fedora 33.]

CheckSigrokFeatures.cmake fails if PKGDEPS_STATIC_LIBRARY_DIRS or PKGDEPS_LIBRARY_DIRS is empty

Describe the bug
When running configure on Fedora 34 it fails with your copy of sigrok is too old.
I traced this to the -L linker flag consuming the -lsigrokcxx flag as there are no linker search paths passed.

Enviroment (please complete the following information):

Here is a patch that fixes the issue

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a7c1994..c1e32fc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -98,9 +98,15 @@ pkg_check_modules(PKGDEPS REQUIRED ${PKGDEPS})
 
 include(CheckSigrokFeatures)
 if(STATIC_PKGDEPS_LIBS)
-       check_libsigrok_features("${PKGDEPS_STATIC_INCLUDE_DIRS}" "-L${PKGDEPS_STATIC_LIBRARY_DIRS};${PKGDEPS_STATIC_LDFLAGS}")
+       if(PKGDEPS_STATIC_LIBRARY_DIRS)
+               set(PKGDEPS_STATIC_LIBRARY_DIRS_SEARCH_FLAG "-L${PKGDEPS_STATIC_LIBRARY_DIRS}")
+       endif()
+       check_libsigrok_features("${PKGDEPS_STATIC_INCLUDE_DIRS}" "${PKGDEPS_STATIC_LIBRARY_DIRS_SEARCH_FLAG};${PKGDEPS_STATIC_LDFLAGS}")
 else()
-       check_libsigrok_features("${PKGDEPS_INCLUDE_DIRS}" "-L${PKGDEPS_LIBRARY_DIRS};${PKGDEPS_LIBRARIES}")
+       if(PKGDEPS_LIBRARY_DIRS)
+               set(PKGDEPS_LIBRARY_DIRS_SEARCH_FLAG "-L${PKGDEPS_LIBRARY_DIRS}")
+       endif()
+       check_libsigrok_features("${PKGDEPS_INCLUDE_DIRS}" "${PKGDEPS_LIBRARY_DIRS_SEARCH_FLAG};${PKGDEPS_LIBRARIES}")
 endif()
 
 set(CMAKE_INCLUDE_CURRENT_DIR ON)

Crashes while startup // segmentation fault

Describe the bug
It crashes right at the start with no device connected

To Reproduce
Steps to reproduce the behavior:

  1. Start smuview (terminal)
  2. Crash

Expected behavior
It should start and let me select a device ;)

Screenshots or log

   ~  smuview -l 5                                                                                    SEGV ✘ 
Settings: "/home/xxx/.config/sigrok/SmuView.conf" format QSettings::NativeFormat
sr: [00:00.000000] log: libsigrok loglevel set to 5.
sr: [00:00.025176] hwdriver: Scan found 0 devices (agilent-dmm).
sr: [00:00.026781] hwdriver: Scan found 0 devices (appa-55ii).
sr: [00:00.042853] hwdriver: Scan found 0 devices (arachnid-labs-re-load-pro).
sr: [00:00.042979] hwdriver: Scan found 0 devices (atten-pps3203).
sr: [00:00.045215] hwdriver: Scan found 0 devices (baylibre-acme).
sr: [00:00.047007] hwdriver: Scan found 0 devices (bbcgm-2010).
sr: [00:00.047862] hwdriver: Scan found 0 devices (brymen-bm25x).
sr: [00:00.048273] serial: Opening serial port 'hid/bu86x' (flags 1).
sr: [00:00.050107] hwdriver: Scan found 0 devices (brymen-bm52x).
sr: [00:00.050527] serial: Opening serial port 'hid/bu86x' (flags 1).
sr: [00:00.052152] hwdriver: Scan found 0 devices (brymen-bm82x).
sr: [00:00.052572] hwdriver: Scan found 0 devices (brymen-bm85x).
sr: [00:00.053050] serial: Opening serial port 'hid/bu86x' (flags 1).
sr: [00:00.054545] hwdriver: Scan found 0 devices (brymen-bm86x).
sr: [00:00.054960] hwdriver: Scan found 0 devices (cem-dt-885x).
sr: [00:00.055304] hwdriver: Scan found 0 devices (center-309).
sr: [00:00.055701] hwdriver: Scan found 0 devices (colead-slm).
sr: [00:00.056168] hwdriver: Scan found 0 devices (conrad-digi-35-cpu).
sr: [00:00.056634] serial: No serial device specified.
sr: [00:00.058039] hwdriver: Scan found 0 devices (dcttech-usbrelay).
sr: [00:00.058485] demo: Generating square pattern.
sr: [00:00.058503] demo: Generating sine pattern.
sr: [00:00.058558] demo: Generating triangle pattern.
sr: [00:00.058625] demo: Generating sawtooth pattern.
sr: [00:00.058651] hwdriver: Scan found 1 devices (demo).
sr: [00:00.058996] hwdriver: Scan found 0 devices (deree-de5000).
sr: [00:00.059401] hwdriver: Scan found 0 devices (digitek-dt4000zc).
sr: [00:00.059759] hwdriver: Scan found 0 devices (eevblog-121gw).
sr: [00:00.060107] serial: No serial device specified.
sr: [00:00.070718] hwdriver: Scan found 0 devices (fluke-45).
sr: [00:00.071861] hwdriver: Scan found 0 devices (fluke-dmm).
sr: [00:00.072172] hwdriver: Scan found 0 devices (gmc-mh-1x-2x-rs232).
sr: [00:00.072421] hwdriver: Scan found 0 devices (gmc-mh-2x-bd232).
sr: [00:00.072650] hwdriver: Scan found 0 devices (gwinstek-gdm-397).
sr: [00:00.072923] hwdriver: Scan found 0 devices (gwinstek-gpd).
sr: [00:00.073216] serial: No serial device specified.
sr: [00:00.073228] hwdriver: Scan found 0 devices (hp-3457a).
sr: [00:00.074314] serial: No serial device specified.
sr: [00:00.074324] hwdriver: Scan found 0 devices (hp-59306a).
sr: [00:00.074630] serial: No serial device specified.
sr: [00:00.074636] hwdriver: Scan found 0 devices (hpib-pps).
sr: [00:00.075011] hwdriver: Scan found 0 devices (iso-tech-idm103n).
sr: [00:00.075300] hwdriver: Scan found 0 devices (itech-it8500).
sr: [00:00.075635] hwdriver: Scan found 0 devices (kecheng-kc-330b).
sr: [00:00.075936] hwdriver: Scan found 0 devices (kern-ew-6200-2nm).
zsh: segmentation fault (core dumped)  smuview -l 5

Enviroment (please complete the following information):

  • smuview-git r838.41a86c0-1 installed from AUR
  • Manjaro Linux KDE

Additional context
Add any other context about the problem here.

Displaying error in Panel View

Hello,

I got an UNI-T UT61E Multimeter with a HID USB cable and want to use SmuView. After some Time having Problems to let SmuView recognize my Multimeter (can not be added by "Add device"), I got it to work with "SmuView-0.0.6-git-54cf16b-x86_64.AppImage --driver=uni-t-ut61e:conn=1a86.e008".

It works, but the Panel View is giving me wrong results when the Ammeter is measuring below 1mA. It just cuts off the first digit.

image

The other Views show the Value correctly.

System: X86-64, Kubuntu 20.04, tried SmuView-git and SmuView 0.0.5.

Thank you for the good work :-)

Wrong timestamp in CSV export with combined timestamp

Describe the bug
When exporting data as CSV using "combine all timestamp", the written timestamp is wrong. It uses the timestamp from the highest resolution column even for columns with lower rate.

To Reproduce
Steps to reproduce the behavior:

  1. Do a measurement
  2. Export recorded data as CSV, using "combine all timestamps"

Expected behavior
Actual time of the measurements.

Screenshots or log
Here are two example files, saved from the same session. Output was enabled for approximately 30 seconds.

combined_output_disabled.csv

combined_output_enabled.csv

Enviroment (please complete the following information):

  • SmuView-0.0.6-git-a5ffb66-x86_64.AppImage
  • Arch Linux

error: ‘OFFSET’ is not a member of ‘sigrok::ConfigKey’

I'm getting these errors when compiling!

[  3%] Building CXX object CMakeFiles/smuview.dir/smuview_autogen/mocs_compilation.cpp.o
In file included from ./smuview/build/smuview_autogen/CYCPDLY2YL/../../../src/devices/basedevice.hpp:34,
                 from ./smuview/build/smuview_autogen/CYCPDLY2YL/moc_basedevice.cpp:10,
                 from ./smuview/build/smuview_autogen/mocs_compilation.cpp:16:
./smuview/src/devices/deviceutil.hpp:492:23: error: ‘OFFSET’ is not a member of ‘sigrok::ConfigKey’
  492 |  { sigrok::ConfigKey::OFFSET, ConfigKey::Offset },
      |                       ^~~~~~
./smuview/src/devices/deviceutil.hpp:510:1: error: could not convert ‘{{sigrok::ConfigKey::SAMPLERATE, sv::devices::ConfigKey::Samplerate}, {sigrok::ConfigKey::CAPTURE_RATIO, sv::devices::ConfigKey::CaptureRatio}, {sigrok::ConfigKey::PATTERN_MODE, sv::devices::ConfigKey::PatternMode}, {sigrok::ConfigKey::RLE, sv::devices::ConfigKey::RLE}, {sigrok::ConfigKey::TRIGGER_SLOPE, sv::devices::ConfigKey::TriggerSlope}, {sigrok::ConfigKey::AVERAGING, sv::devices::ConfigKey::Averaging}, {sigrok::ConfigKey::AVG_SAMPLES, sv::devices::ConfigKey::AvgSamples}, {sigrok::ConfigKey::TRIGGER_SOURCE, sv::devices::ConfigKey::TriggerSource}, {sigrok::ConfigKey::HORIZ_TRIGGERPOS, sv::devices::ConfigKey::HorizTriggerPos}, {sigrok::ConfigKey::BUFFERSIZE, sv::devices::ConfigKey::BufferSize}, {sigrok::ConfigKey::TIMEBASE, sv::devices::ConfigKey::TimeBase}, {sigrok::ConfigKey::FILTER, sv::devices::ConfigKey::Filter}, {sigrok::ConfigKey::VDIV, sv::devices::ConfigKey::VDiv}, {sigrok::ConfigKey::COUPLING, sv::devices::ConfigKey::Coupling}, {sigrok::ConfigKey::TRIGGER_MATCH, sv::devices::ConfigKey::TriggerMatch}, {sigrok::ConfigKey::SAMPLE_INTERVAL, sv::devices::ConfigKey::SampleInterval}, {sigrok::ConfigKey::NUM_HDIV, sv::devices::ConfigKey::NumHDiv}, {sigrok::ConfigKey::NUM_VDIV, sv::devices::ConfigKey::NumVDiv}, {sigrok::ConfigKey::SPL_WEIGHT_FREQ, sv::devices::ConfigKey::SplWeightFreq}, {sigrok::ConfigKey::SPL_WEIGHT_TIME, sv::devices::ConfigKey::SplWeightTime}, {sigrok::ConfigKey::SPL_MEASUREMENT_RANGE, sv::devices::ConfigKey::SplMeasurementRange}, {sigrok::ConfigKey::HOLD_MAX, sv::devices::ConfigKey::HoldMax}, {sigrok::ConfigKey::HOLD_MIN, sv::devices::ConfigKey::HoldMin}, {sigrok::ConfigKey::VOLTAGE_THRESHOLD, sv::devices::ConfigKey::VoltageThreshold}, {sigrok::ConfigKey::EXTERNAL_CLOCK, sv::devices::ConfigKey::ExternalClock}, {sigrok::ConfigKey::SWAP, sv::devices::ConfigKey::Swap}, {sigrok::ConfigKey::CENTER_FREQUENCY, sv::devices::ConfigKey::CenterFrequency}, {sigrok::ConfigKey::NUM_LOGIC_CHANNELS, sv::devices::ConfigKey::NumLogicChannels}, {sigrok::ConfigKey::NUM_ANALOG_CHANNELS, sv::devices::ConfigKey::NumAnalogChannels}, {sigrok::ConfigKey::VOLTAGE, sv::devices::ConfigKey::Voltage}, {sigrok::ConfigKey::VOLTAGE_TARGET, sv::devices::ConfigKey::VoltageTarget}, {sigrok::ConfigKey::CURRENT, sv::devices::ConfigKey::Current}, {sigrok::ConfigKey::CURRENT_LIMIT, sv::devices::ConfigKey::CurrentLimit}, {sigrok::ConfigKey::ENABLED, sv::devices::ConfigKey::Enabled}, {sigrok::ConfigKey::CHANNEL_CONFIG, sv::devices::ConfigKey::ChannelConfig}, {sigrok::ConfigKey::OVER_VOLTAGE_PROTECTION_ENABLED, sv::devices::ConfigKey::OverVoltageProtectionEnabled}, {sigrok::ConfigKey::OVER_VOLTAGE_PROTECTION_ACTIVE, sv::devices::ConfigKey::OverVoltageProtectionActive}, {sigrok::ConfigKey::OVER_VOLTAGE_PROTECTION_THRESHOLD, sv::devices::ConfigKey::OverVoltageProtectionThreshold}, {sigrok::ConfigKey::OVER_CURRENT_PROTECTION_ENABLED, sv::devices::ConfigKey::OverCurrentProtectionEnabled}, {sigrok::ConfigKey::OVER_CURRENT_PROTECTION_ACTIVE, sv::devices::ConfigKey::OverCurrentProtectionActive}, {sigrok::ConfigKey::OVER_CURRENT_PROTECTION_THRESHOLD, sv::devices::ConfigKey::OverCurrentProtectionThreshold}, {sigrok::ConfigKey::OVER_TEMPERATURE_PROTECTION, sv::devices::ConfigKey::OverTemperatureProtectionEnabled}, {sigrok::ConfigKey::OVER_TEMPERATURE_PROTECTION_ACTIVE, sv::devices::ConfigKey::OverTemperatureProtectionActive}, {sigrok::ConfigKey::UNDER_VOLTAGE_CONDITION, sv::devices::ConfigKey::UnderVoltageConditionEnabled}, {sigrok::ConfigKey::UNDER_VOLTAGE_CONDITION_ACTIVE, sv::devices::ConfigKey::UnderVoltageConditionActive}, {sigrok::ConfigKey::UNDER_VOLTAGE_CONDITION_THRESHOLD, sv::devices::ConfigKey::UnderVoltageConditionThreshold}, {sigrok::ConfigKey::CLOCK_EDGE, sv::devices::ConfigKey::ClockEdge}, {sigrok::ConfigKey::AMPLITUDE, sv::devices::ConfigKey::Amplitude}, {<expression error>, sv::devices::ConfigKey::Offset}, {sigrok::ConfigKey::REGULATION, sv::devices::ConfigKey::Regulation}, {sigrok::ConfigKey::OUTPUT_FREQUENCY, sv::devices::ConfigKey::OutputFrequency}, {sigrok::ConfigKey::OUTPUT_FREQUENCY_TARGET, sv::devices::ConfigKey::OutputFrequencyTarget}, {sigrok::ConfigKey::MEASURED_QUANTITY, sv::devices::ConfigKey::MeasuredQuantity}, {sigrok::ConfigKey::EQUIV_CIRCUIT_MODEL, sv::devices::ConfigKey::EquivCircuitModel}, {sigrok::ConfigKey::TRIGGER_LEVEL, sv::devices::ConfigKey::TriggerLevel}, {sigrok::ConfigKey::EXTERNAL_CLOCK_SOURCE, sv::devices::ConfigKey::ExternalClockSource}, {sigrok::ConfigKey::SESSIONFILE, sv::devices::ConfigKey::SessionFile}, {sigrok::ConfigKey::CAPTUREFILE, sv::devices::ConfigKey::CaptureFile}, {sigrok::ConfigKey::CAPTURE_UNITSIZE, sv::devices::ConfigKey::CaptureUnitSize}, {sigrok::ConfigKey::POWER_OFF, sv::devices::ConfigKey::PowerOff}, {sigrok::ConfigKey::DATA_SOURCE, sv::devices::ConfigKey::DataSource}, {sigrok::ConfigKey::PROBE_FACTOR, sv::devices::ConfigKey::ProbeFactor}, {sigrok::ConfigKey::ADC_POWERLINE_CYCLES, sv::devices::ConfigKey::ADCPowerlineCycles}, {sigrok::ConfigKey::DATALOG, sv::devices::ConfigKey::DataLog}, {sigrok::ConfigKey::DEVICE_MODE, sv::devices::ConfigKey::DeviceMode}, {sigrok::ConfigKey::TEST_MODE, sv::devices::ConfigKey::TestMode}}’ from ‘<brace-enclosed initializer list>’ to ‘std::map<const sigrok::ConfigKey*, sv::devices::ConfigKey>’
  510 | };
      | ^
      | |
      | <brace-enclosed initializer list>
./smuview/src/devices/deviceutil.hpp:561:42: error: ‘OFFSET’ is not a member of ‘sigrok::ConfigKey’
  561 |  { ConfigKey::Offset, sigrok::ConfigKey::OFFSET },
      |                                          ^~~~~~
./smuview/src/devices/deviceutil.hpp:579:1: error: could not convert ‘{{sv::devices::ConfigKey::Samplerate, sigrok::ConfigKey::SAMPLERATE}, {sv::devices::ConfigKey::CaptureRatio, sigrok::ConfigKey::CAPTURE_RATIO}, {sv::devices::ConfigKey::PatternMode, sigrok::ConfigKey::PATTERN_MODE}, {sv::devices::ConfigKey::RLE, sigrok::ConfigKey::RLE}, {sv::devices::ConfigKey::TriggerSlope, sigrok::ConfigKey::TRIGGER_SLOPE}, {sv::devices::ConfigKey::Averaging, sigrok::ConfigKey::AVERAGING}, {sv::devices::ConfigKey::AvgSamples, sigrok::ConfigKey::AVG_SAMPLES}, {sv::devices::ConfigKey::TriggerSource, sigrok::ConfigKey::TRIGGER_SOURCE}, {sv::devices::ConfigKey::HorizTriggerPos, sigrok::ConfigKey::HORIZ_TRIGGERPOS}, {sv::devices::ConfigKey::BufferSize, sigrok::ConfigKey::BUFFERSIZE}, {sv::devices::ConfigKey::TimeBase, sigrok::ConfigKey::TIMEBASE}, {sv::devices::ConfigKey::Filter, sigrok::ConfigKey::FILTER}, {sv::devices::ConfigKey::VDiv, sigrok::ConfigKey::VDIV}, {sv::devices::ConfigKey::Coupling, sigrok::ConfigKey::COUPLING}, {sv::devices::ConfigKey::TriggerMatch, sigrok::ConfigKey::TRIGGER_MATCH}, {sv::devices::ConfigKey::SampleInterval, sigrok::ConfigKey::SAMPLE_INTERVAL}, {sv::devices::ConfigKey::NumHDiv, sigrok::ConfigKey::NUM_HDIV}, {sv::devices::ConfigKey::NumVDiv, sigrok::ConfigKey::NUM_VDIV}, {sv::devices::ConfigKey::SplWeightFreq, sigrok::ConfigKey::SPL_WEIGHT_FREQ}, {sv::devices::ConfigKey::SplWeightTime, sigrok::ConfigKey::SPL_WEIGHT_TIME}, {sv::devices::ConfigKey::SplMeasurementRange, sigrok::ConfigKey::SPL_MEASUREMENT_RANGE}, {sv::devices::ConfigKey::HoldMax, sigrok::ConfigKey::HOLD_MAX}, {sv::devices::ConfigKey::HoldMin, sigrok::ConfigKey::HOLD_MIN}, {sv::devices::ConfigKey::VoltageThreshold, sigrok::ConfigKey::VOLTAGE_THRESHOLD}, {sv::devices::ConfigKey::ExternalClock, sigrok::ConfigKey::EXTERNAL_CLOCK}, {sv::devices::ConfigKey::Swap, sigrok::ConfigKey::SWAP}, {sv::devices::ConfigKey::CenterFrequency, sigrok::ConfigKey::CENTER_FREQUENCY}, {sv::devices::ConfigKey::NumLogicChannels, sigrok::ConfigKey::NUM_LOGIC_CHANNELS}, {sv::devices::ConfigKey::NumAnalogChannels, sigrok::ConfigKey::NUM_ANALOG_CHANNELS}, {sv::devices::ConfigKey::Voltage, sigrok::ConfigKey::VOLTAGE}, {sv::devices::ConfigKey::VoltageTarget, sigrok::ConfigKey::VOLTAGE_TARGET}, {sv::devices::ConfigKey::Current, sigrok::ConfigKey::CURRENT}, {sv::devices::ConfigKey::CurrentLimit, sigrok::ConfigKey::CURRENT_LIMIT}, {sv::devices::ConfigKey::Enabled, sigrok::ConfigKey::ENABLED}, {sv::devices::ConfigKey::ChannelConfig, sigrok::ConfigKey::CHANNEL_CONFIG}, {sv::devices::ConfigKey::OverVoltageProtectionEnabled, sigrok::ConfigKey::OVER_VOLTAGE_PROTECTION_ENABLED}, {sv::devices::ConfigKey::OverVoltageProtectionActive, sigrok::ConfigKey::OVER_VOLTAGE_PROTECTION_ACTIVE}, {sv::devices::ConfigKey::OverVoltageProtectionThreshold, sigrok::ConfigKey::OVER_VOLTAGE_PROTECTION_THRESHOLD}, {sv::devices::ConfigKey::OverCurrentProtectionEnabled, sigrok::ConfigKey::OVER_CURRENT_PROTECTION_ENABLED}, {sv::devices::ConfigKey::OverCurrentProtectionActive, sigrok::ConfigKey::OVER_CURRENT_PROTECTION_ACTIVE}, {sv::devices::ConfigKey::OverCurrentProtectionThreshold, sigrok::ConfigKey::OVER_CURRENT_PROTECTION_THRESHOLD}, {sv::devices::ConfigKey::OverTemperatureProtectionEnabled, sigrok::ConfigKey::OVER_TEMPERATURE_PROTECTION}, {sv::devices::ConfigKey::OverTemperatureProtectionActive, sigrok::ConfigKey::OVER_TEMPERATURE_PROTECTION_ACTIVE}, {sv::devices::ConfigKey::UnderVoltageConditionEnabled, sigrok::ConfigKey::UNDER_VOLTAGE_CONDITION}, {sv::devices::ConfigKey::UnderVoltageConditionActive, sigrok::ConfigKey::UNDER_VOLTAGE_CONDITION_ACTIVE}, {sv::devices::ConfigKey::UnderVoltageConditionThreshold, sigrok::ConfigKey::UNDER_VOLTAGE_CONDITION_THRESHOLD}, {sv::devices::ConfigKey::ClockEdge, sigrok::ConfigKey::CLOCK_EDGE}, {sv::devices::ConfigKey::Amplitude, sigrok::ConfigKey::AMPLITUDE}, {sv::devices::ConfigKey::Offset, <expression error>}, {sv::devices::ConfigKey::Regulation, sigrok::ConfigKey::REGULATION}, {sv::devices::ConfigKey::OutputFrequency, sigrok::ConfigKey::OUTPUT_FREQUENCY}, {sv::devices::ConfigKey::OutputFrequencyTarget, sigrok::ConfigKey::OUTPUT_FREQUENCY_TARGET}, {sv::devices::ConfigKey::MeasuredQuantity, sigrok::ConfigKey::MEASURED_QUANTITY}, {sv::devices::ConfigKey::EquivCircuitModel, sigrok::ConfigKey::EQUIV_CIRCUIT_MODEL}, {sv::devices::ConfigKey::TriggerLevel, sigrok::ConfigKey::TRIGGER_LEVEL}, {sv::devices::ConfigKey::ExternalClockSource, sigrok::ConfigKey::EXTERNAL_CLOCK_SOURCE}, {sv::devices::ConfigKey::SessionFile, sigrok::ConfigKey::SESSIONFILE}, {sv::devices::ConfigKey::CaptureFile, sigrok::ConfigKey::CAPTUREFILE}, {sv::devices::ConfigKey::CaptureUnitSize, sigrok::ConfigKey::CAPTURE_UNITSIZE}, {sv::devices::ConfigKey::PowerOff, sigrok::ConfigKey::POWER_OFF}, {sv::devices::ConfigKey::DataSource, sigrok::ConfigKey::DATA_SOURCE}, {sv::devices::ConfigKey::ProbeFactor, sigrok::ConfigKey::PROBE_FACTOR}, {sv::devices::ConfigKey::ADCPowerlineCycles, sigrok::ConfigKey::ADC_POWERLINE_CYCLES}, {sv::devices::ConfigKey::DataLog, sigrok::ConfigKey::DATALOG}, {sv::devices::ConfigKey::DeviceMode, sigrok::ConfigKey::DEVICE_MODE}, {sv::devices::ConfigKey::TestMode, sigrok::ConfigKey::TEST_MODE}}’ from ‘<brace-enclosed initializer list>’ to ‘std::map<sv::devices::ConfigKey, const sigrok::ConfigKey*>’
  579 | };
      | ^
      | |
      | <brace-enclosed initializer list>
make[2]: *** [CMakeFiles/smuview.dir/build.make:105: CMakeFiles/smuview.dir/smuview_autogen/mocs_compilation.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:79: CMakeFiles/smuview.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

libsigrokcxx version is: 0.5.1

Itech IT8511A+ segmentation fault

Describe the bug
Adding a new IT8511A+ device results in segmentation fault

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Add device'
  2. Pick ITECH IT8500 driver
  3. Select 'Serial port'
  4. Set baud rate to 115200
  5. Click on 'Scan for devices using driver above'
  6. Select 'ITECH 8511A with 3 channels'
  7. Click on 'OK'

Expected behavior
A new Itech 8511A+ device in the device tree

Screenshots or log
Screenshot_20210802_011124

Clicking 'OK' in the screenshot above crashes smuview

Enviroment (please complete the following information):

  • SmuView version: 7f2a9c7
  • self compiled, gcc version 11.2.1
  • OS: Fedora 34

Additional context

The libsigrok version 0.5.2-7.20210801gitb96051a in the backtrace below is compiled from git commit sigrokproject/libsigrok@b96051a (can be found here: https://copr.fedorainfracloud.org/coprs/spike/sigrok/build/2356228/).

Thread 12 "smuview" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffc53c1640 (LWP 202186)]
0x0000000000548814 in std::__shared_ptr<sv::data::BaseSignal, (__gnu_cxx::_Lock_policy)2>::operator= (this=0x1dbb958) at /usr/include/c++/11/bits/shared_ptr_base.h:1153
1153          __shared_ptr& operator=(const __shared_ptr&) noexcept = default;
Missing separate debuginfos, use: dnf debuginfo-install bzip2-libs-1.0.8-6.fc34.x86_64 dbus-libs-1.12.20-3.fc34.x86_64 dbusmenu-qt5-0.9.3-0.26.20160218.fc34.x86_64 fontconfig-2.13.94-2.fc34.x86_64 freetype-2.10.4-3.fc34.x86_64 glib2-2.68.2-1.fc34.x86_64 glibc-2.33-20.fc34.x86_64 glibmm24-2.66.1-1.fc34.x86_64 graphite2-1.3.14-7.fc34.x86_64 harfbuzz-2.7.4-3.fc34.x86_64 jasper-libs-2.0.32-1.fc34.x86_64 jbigkit-libs-2.1-21.fc34.x86_64 jpegxl-libs-0.3.7-3.fc34.x86_64 keyutils-libs-1.6.1-2.fc34.x86_64 kf5-karchive-5.83.0-1.fc34.x86_64 kf5-kbookmarks-5.83.0-1.fc34.x86_64 kf5-kcodecs-5.83.0-1.fc34.x86_64 kf5-kcompletion-5.83.0-1.fc34.x86_64 kf5-kconfig-core-5.83.0-1.fc34.x86_64 kf5-kconfig-gui-5.83.0-1.fc34.x86_64 kf5-kconfigwidgets-5.83.0-1.fc34.x86_64 kf5-kcrash-5.83.0-1.fc34.x86_64 kf5-kdbusaddons-5.83.0-1.fc34.x86_64 kf5-kglobalaccel-libs-5.83.0-1.fc34.x86_64 kf5-ki18n-5.83.0-1.fc34.x86_64 kf5-kiconthemes-5.83.0-1.fc34.x86_64 kf5-kimageformats-5.83.0-1.fc34.x86_64 kf5-kio-core-libs-5.83.0-2.fc34.x86_64 kf5-kio-file-widgets-5.83.0-2.fc34.x86_64 kf5-kio-gui-5.83.0-2.fc34.x86_64 kf5-kitemviews-5.83.0-1.fc34.x86_64 kf5-kjobwidgets-5.83.0-1.fc34.x86_64 kf5-knotifications-5.83.0-1.fc34.x86_64 kf5-kservice-5.83.0-1.fc34.x86_64 kf5-kwayland-5.83.0-1.fc34.x86_64 kf5-kwidgetsaddons-5.83.0-1.fc34.x86_64 kf5-kwindowsystem-5.83.0-1.fc34.x86_64 kf5-solid-5.83.0-1.fc34.x86_64 krb5-libs-1.19.1-14.fc34.x86_64 lcms2-2.12-1.fc34.x86_64 libICE-1.0.10-6.fc34.x86_64 libX11-1.7.0-3.fc34.x86_64 libX11-xcb-1.7.0-3.fc34.x86_64 libXau-1.0.9-6.fc34.x86_64 libXcursor-1.2.0-5.fc34.x86_64 libXext-1.3.4-6.fc34.x86_64 libXfixes-6.0.0-1.fc34.x86_64 libXtst-1.2.3-14.fc34.x86_64 libacl-2.3.1-1.fc34.x86_64 libaom-3.1.1-1.fc34.x86_64 libattr-2.5.1-1.fc34.x86_64 libbrotli-1.0.9-4.fc34.x86_64 libcanberra-0.30-24.fc34.x86_64 libcap-2.48-2.fc34.x86_64 libcom_err-1.45.6-5.fc34.x86_64 libdav1d-0.9.0-1.fc34.x86_64 libdrm-2.4.107-1.fc34.x86_64 libffi-3.1-28.fc34.x86_64 libftdi-1.4-7.fc34.x86_64 libgcc-11.2.1-1.fc34.x86_64 libgcrypt-1.9.3-3.fc34.x86_64 libglvnd-1.3.3-1.fc34.x86_64 libglvnd-glx-1.3.3-1.fc34.x86_64 libgpg-error-1.42-1.fc34.x86_64 libicu-67.1-6.fc34.x86_64 libieee1284-0.2.11-35.fc34.x86_64 libmng-2.0.3-13.fc34.x86_64 libmount-2.36.2-1.fc34.x86_64 libogg-1.3.4-4.fc34.x86_64 libpciaccess-0.16-4.fc34.x86_64 libpng-1.6.37-10.fc34.x86_64 libserialport-0.1.1-11.fc34.x86_64 libsigc++20-2.10.7-1.fc34.x86_64 libsigrok-0.5.2-7.20210801gitb96051a.fc34.x86_64 libsigrok-cxx-0.5.2-7.20210801gitb96051a.fc34.x86_64 libstdc++-11.2.1-1.fc34.x86_64 libtdb-1.4.3-6.fc34.x86_64 libtirpc-1.3.2-0.fc34.x86_64 libtool-ltdl-2.4.6-40.fc34.x86_64 libusbx-1.0.24-2.fc34.x86_64 libuuid-2.36.2-1.fc34.x86_64 libvorbis-1.3.7-3.fc34.x86_64 libwayland-client-1.19.0-1.fc34.x86_64 libwayland-cursor-1.19.0-1.fc34.x86_64 libwebp-1.2.0-1.fc34.x86_64 libxcb-1.13.1-7.fc34.x86_64 libxkbcommon-x11-1.3.0-1.fc34.x86_64 libxml2-2.9.12-4.fc34.x86_64 libxshmfence-1.3-8.fc34.x86_64 libzip-1.7.3-4.fc34.x86_64 libzstd-1.5.0-1.fc34.x86_64 lz4-libs-1.9.3-2.fc34.x86_64 mesa-libGL-21.1.5-1.fc34.x86_64 mesa-libglapi-21.1.5-1.fc34.x86_64 openssl-libs-1.1.1k-1.fc34.x86_64 pcre-8.44-3.fc34.1.x86_64 pcre2-10.36-4.fc34.x86_64 pcre2-utf16-10.36-4.fc34.x86_64 python3-libs-3.9.6-2.fc34.x86_64 qt5-qtbase-5.15.2-16.fc34.x86_64 qt5-qtbase-gui-5.15.2-16.fc34.x86_64 qt5-qtquickcontrols2-5.15.2-3.fc34.x86_64 qt5-qtsvg-5.15.2-4.fc34.x86_64 qt5-qtwayland-5.15.2-7.fc34.x86_64 qwt-qt5-6.1.5-4.fc34.x86_64 rav1e-libs-0.4.1-2.fc34.x86_64 sssd-client-2.5.2-1.fc34.x86_64 svt-av1-libs-0.8.6-4.fc34.x86_64 systemd-libs-248.6-1.fc34.x86_64
(gdb) backtrace
#0  0x0000000000548814 in std::__shared_ptr<sv::data::BaseSignal, (__gnu_cxx::_Lock_policy)2>::operator=(std::__shared_ptr<sv::data::BaseSignal, (__gnu_cxx::_Lock_policy)2> const&)
    (this=0x1dbb958) at /usr/include/c++/11/bits/shared_ptr_base.h:1153
#1  0x0000000000548863 in std::shared_ptr<sv::data::BaseSignal>::operator=(std::shared_ptr<sv::data::BaseSignal> const&) (this=0x1dbb958) at /usr/include/c++/11/bits/shared_ptr.h:359
#2  0x000000000055811f in sv::channels::HardwareChannel::push_interleaved_samples(float const*, unsigned long, unsigned long, double, unsigned long, std::shared_ptr<sigrok::Analog>)
    (this=
    0x1dbb8b0, data=0x7fffb40046d0, sample_count=1, stride=1, timestamp=1627857685.4949999, samplerate=10, sr_analog=std::shared_ptr<sigrok::Analog> (use count 3, weak count 1) = {...}) at /home/spike/workspace/smuview/smuview-7f2a9c7f5fe11c804c86a6f98d0b527095699efd/src/channels/hardwarechannel.cpp:100
#3  0x00000000006d7f7c in sv::devices::HardwareDevice::feed_in_analog(std::shared_ptr<sigrok::Analog>)
    (this=0x1b8b150, sr_analog=std::shared_ptr<sigrok::Analog> (use count 3, weak count 1) = {...})
    at /home/spike/workspace/smuview/smuview-7f2a9c7f5fe11c804c86a6f98d0b527095699efd/src/devices/hardwaredevice.cpp:296
#4  0x000000000068bd23 in sv::devices::BaseDevice::data_feed_in(std::shared_ptr<sigrok::Device>, std::shared_ptr<sigrok::Packet>)
    (this=0x1b8b150, sr_device=std::shared_ptr<sigrok::Device> (use count 10, weak count 1) = {...}, sr_packet=std::shared_ptr<sigrok::Packet> (use count 3, weak count 1) = {...})
    at /home/spike/workspace/smuview/smuview-7f2a9c7f5fe11c804c86a6f98d0b527095699efd/src/devices/basedevice.cpp:478
#5  0x000000000068b93d in operator()(std::shared_ptr<sigrok::Device>, std::shared_ptr<sigrok::Packet>) const
    (__closure=0x1dc9790, sr_device=std::shared_ptr<sigrok::Device> (use count 10, weak count 1) = {...}, sr_packet=std::shared_ptr<sigrok::Packet> (use count 3, weak count 1) = {...})
    at /home/spike/workspace/smuview/smuview-7f2a9c7f5fe11c804c86a6f98d0b527095699efd/src/devices/basedevice.cpp:418
#6  0x000000000068c641 in std::__invoke_impl<void, sv::devices::BaseDevice::init_acquisition()::<lambda(std::shared_ptr<sigrok::Device>, std::shared_ptr<sigrok::Packet>)>&, std::shared_ptr<sigrok::Device>, std::shared_ptr<sigrok::Packet> >(std::__invoke_other, struct {...} &) (__f=...) at /usr/include/c++/11/bits/invoke.h:61
#7  0x000000000068c4d8 in std::__invoke_r<void, sv::devices::BaseDevice::init_acquisition()::<lambda(std::shared_ptr<sigrok::Device>, std::shared_ptr<sigrok::Packet>)>&, std::shared_ptr<sigrok::Device>, std::shared_ptr<sigrok::Packet> >(struct {...} &) (__fn=...) at /usr/include/c++/11/bits/invoke.h:154
#8  0x000000000068c393 in std::_Function_handler<void(std::shared_ptr<sigrok::Device>, std::shared_ptr<sigrok::Packet>), sv::devices::BaseDevice::init_acquisition()::<lambda(std::shared_ptr<sigrok::Device>, std::shared_ptr<sigrok::Packet>)> >::_M_invoke(const std::_Any_data &, std::shared_ptr<sigrok::Device> &&, std::shared_ptr<sigrok::Packet> &&)
    (__functor=..., __args#0=..., __args#1=...) at /usr/include/c++/11/bits/std_function.h:291
#9  0x00007ffff7da5251 in sigrok::datafeed_callback(sr_dev_inst const*, sr_datafeed_packet const*, void*) () at /lib64/libsigrokcxx.so.4
#10 0x00007ffff7c63508 in sr_session_send () at /lib64/libsigrok.so.4
#11 0x00007ffff7d0384d in itech_it8500_channel_send_value.constprop () at /lib64/libsigrok.so.4
#12 0x00007ffff7cc0e3d in itech_it8500_receive_data () at /lib64/libsigrok.so.4
#13 0x00007ffff7c62c85 in fd_source_dispatch () at /lib64/libsigrok.so.4
#14 0x00007ffff7a524cf in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#15 0x00007ffff7aa64e8 in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#16 0x00007ffff7a51a93 in g_main_loop_run () at /lib64/libglib-2.0.so.0
#17 0x00007ffff7c631d5 in sr_session_run () at /lib64/libsigrok.so.4
#18 0x00007ffff7da36d4 in sigrok::Session::run() () at /lib64/libsigrokcxx.so.4
#19 0x000000000068bfda in sv::devices::BaseDevice::aquisition_thread_proc() (this=0x1b8b150)
    at /home/spike/workspace/smuview/smuview-7f2a9c7f5fe11c804c86a6f98d0b527095699efd/src/devices/basedevice.cpp:535
#20 0x00000000006a4533 in std::__invoke_impl<void, void (sv::devices::BaseDevice::*)(), sv::devices::BaseDevice*>(std::__invoke_memfun_deref, void (sv::devices::BaseDevice::*&&)(), sv::devices::BaseDevice*&&)
    (__f=@0x1dc9b70: (void (sv::devices::BaseDevice::*)(sv::devices::BaseDevice * const)) 0x68be86 <sv::devices::BaseDevice::aquisition_thread_proc()>, __t=@0x1dc9b68: 0x1b8b150)
    at /usr/include/c++/11/bits/invoke.h:74
#21 0x00000000006a4491 in std::__invoke<void (sv::devices::BaseDevice::*)(), sv::devices::BaseDevice*>(void (sv::devices::BaseDevice::*&&)(), sv::devices::BaseDevice*&&)
    (__fn=@0x1dc9b70: (void (sv::devices::BaseDevice::*)(sv::devices::BaseDevice * const)) 0x68be86 <sv::devices::BaseDevice::aquisition_thread_proc()>)
    at /usr/include/c++/11/bits/invoke.h:96
#22 0x00000000006a4401 in std::thread::_Invoker<std::tuple<void (sv::devices::BaseDevice::*)(), sv::devices::BaseDevice*> >::_M_invoke<0ul, 1ul>(std::_Index_tuple<0ul, 1ul>) (this=0x1dc9b68) at /usr/include/c++/11/bits/std_thread.h:253
#23 0x00000000006a434a in std::thread::_Invoker<std::tuple<void (sv::devices::BaseDevice::*)(), sv::devices::BaseDevice*> >::operator()() (this=0x1dc9b68) at /usr/include/c++/11/bits/std_thread.h:260
#24 0x00000000006a42ae in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (sv::devices::BaseDevice::*)(), sv::devices::BaseDevice*> > >::_M_run() (this=0x1dc9b60) at /usr/include/c++/11/bits/std_thread.h:211
#25 0x00007ffff6284c84 in execute_native_thread_routine () at /lib64/libstdc++.so.6
#26 0x00007ffff7dcc299 in start_thread () at /lib64/libpthread.so.0
#27 0x00007ffff5f7d353 in clone () at /lib64/libc.so.6

macOS Monterey - Crash on startup

Describe the bug
Can't execute SmuView under MacOS Monterey 12.1 on Apple M1 Pro.

To Reproduce

  1. Download SmuView 0.0.5 as .dpkg-file
  2. Copy application to the local Application folder
  3. Start SmuView

Expected behavior
The application should start up ;)

Screenshots or log

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               smuview.real [49768]
Path:                  /Applications/SmuView.app/Contents/MacOS/smuview
Identifier:            smuview.real
Version:               ???
Code Type:             X86-64 (Translated)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2022-09-29 09:44:01.3959 +0200
OS Version:            macOS 12.1 (21C52)
Report Version:        12
Anonymous UUID:        C45D5F36-E0E0-DAD5-CAE3-0F83B581412E

Sleep/Wake UUID:       0247502D-3085-467E-B0E6-0AD03B68954B

Time Awake Since Boot: 140000 seconds
Time Since Wake:       2364 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace DYLD, Code 1 Library missing
Library not loaded: /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/Python
Referenced from: /Applications/SmuView.app/Contents/MacOS/smuview.real
Reason: tried: '/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/Python' (no such file), '/Library/Frameworks/Python.framework/Versions/3.9/Python' (no such file), '/System/Library/Frameworks/Python.framework/Versions/3.9/Python' (no such file)
(terminated at launch; ignore backtrace)

Application Specific Information:
Library not loaded: /usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/Python
Referenced from: /Applications/SmuView.app/Contents/MacOS/smuview.real
Reason: tried: '/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.9/Python' (no such file), '/Library/Frameworks/Python.framework/Versions/3.9/Python' (no such file), '/System/Library/Frameworks/Python.framework/Versions/3.9/Python' (no such file)


Thread 0 Crashed:
0   Rosetta Runtime Routines	       0x2050c1940 ???
1   dyld                          	       0x204fc40ce __abort_with_payload + 10
2   dyld                          	       0x204fda201 abort_with_payload + 9
3   dyld                          	       0x204f88613 dyld4::halt(char const*) + 375
4   dyld                          	       0x204f8455d dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3955
5   dyld                          	       0x204f834b4 start + 388

Thread 1:: com.apple.rosetta.exceptionserver
0   runtime                       	    0x7ff7ffd3b8e4 0x7ff7ffd37000 + 18660
1   runtime                       	    0x7ff7ffd48928 0x7ff7ffd37000 + 71976
2   runtime                       	    0x7ff7ffd4a0a4 0x7ff7ffd37000 + 77988


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000006   x1: 0x0000000000000001   x2: 0x000000030d273a20   x3: 0x0000000000000094
    x4: 0x000000030d273620   x5: 0x0000000000000000   x6: 0xd503201f50234483   x7: 0x0000002030234c84
    x8: 0x000000030d273620   x9: 0x0000000000000000  x10: 0x0000000000000094  x11: 0x000000030d273620
   x12: 0x0000000000000094  x13: 0x000000030d273a20  x14: 0x0000000000000001  x15: 0x0000000000000006
   x16: 0x0000000000000209  x17: 0x0000000000000000  x18: 0x800000010d8e8b70  x19: 0x0000000105875000
   x20: 0x00000000000007ff  x21: 0x000000010d8edfa0  x22: 0xffffffffffffffff  x23: 0x00000002050c1914
   x24: 0x0000000204fda1cf  x25: 0x00000002050be528  x26: 0x0000000105881078  x27: 0x0000000000000000
   x28: 0x0000000204fc40ce   fp: 0x000000002c000000   lr: 0x00000002050ad918
    sp: 0x000000010d8e8b70   pc: 0x00000002050c1940 cpsr: 0x80001000
   far: 0x00000002050be588  esr: 0x56000080  Address size fault

Binary Images:
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x204f7e000 -        0x204fe9fff dyld (*) <cef5a27a-d50b-3020-af03-1734b19bc8c5> /usr/lib/dyld
    0x7ff7ffd37000 -     0x7ff7ffd66fff runtime (*) <21c1e0c9-a36e-3e4b-a12b-1bf54ce4403e> /usr/libexec/rosetta/runtime

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=16.0M resident=0K(0%) swapped_out_or_unallocated=16.0M(100%)
Writable regions: Total=155.1M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=155.1M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Rosetta Arena                     4096K        2 
Rosetta Generic                    676K      166 
Rosetta IndirectBranch              32K        1 
Rosetta JIT                      128.0M        1 
Rosetta Return Stack                20K        2 
Rosetta Thread Context              20K        2 
Stack                             8176K        1 
Stack Guard                       56.0M        1 
VM_ALLOCATE                       13.1M        5 
VM_ALLOCATE (reserved)             164K       10         reserved VM address space (unallocated)
__DATA                             488K       18 
__DATA_CONST                       324K        9 
__LINKEDIT                        2112K       16 
__TEXT                            13.9M       13 
dyld private memory               1024K        1 
mapped file                        6.0G       55 
===========                     =======  ======= 
TOTAL                              6.2G      303 
TOTAL, minus reserved VM space     6.2G      303 



-----------
Full Report
-----------

{"app_name":"smuview.real","timestamp":"2022-09-29 09:44:01.00 +0200","app_version":"","slice_uuid":"a182953a-df15-3471-b95b-bd6bbb3ba369","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 12.1 (21C52)","incident_id":"41BBD5EF-FE9E-44C3-BAE7-3387DDA3ECFD","name":"smuview.real"}
{
  "uptime" : 140000,
  "procLaunch" : "2022-09-29 09:44:01.3363 +0200",
  "procRole" : "Background",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro18,3",
  "procStartAbsTime" : 3497425174811,
  "coalitionID" : 17755,
  "osVersion" : {
    "train" : "macOS 12.1",
    "build" : "21C52",
    "releaseType" : "User"
  },
  "captureTime" : "2022-09-29 09:44:01.3959 +0200",
  "incident" : "41BBD5EF-FE9E-44C3-BAE7-3387DDA3ECFD",
  "bug_type" : "309",
  "pid" : 49768,
  "procExitAbsTime" : 3497426585219,
  "translated" : true,
  "cpuType" : "X86-64",
  "procName" : "smuview.real",
  "procPath" : "\/Applications\/SmuView.app\/Contents\/MacOS\/smuview",
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "org.sigrok.SmuView",
  "crashReporterKey" : "C45D5F36-E0E0-DAD5-CAE3-0F83B581412E",
  "wakeTime" : 2364,
  "sleepWakeUUID" : "0247502D-3085-467E-B0E6-0AD03B68954B",
  "sip" : "enabled",
  "isCorpse" : 1,
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
  "termination" : {"code":1,"flags":518,"namespace":"DYLD","indicator":"Library missing","details":["(terminated at launch; ignore backtrace)"],"reasons":["Library not loaded: \/usr\/local\/opt\/[email protected]\/Frameworks\/Python.framework\/Versions\/3.9\/Python","Referenced from: \/Applications\/SmuView.app\/Contents\/MacOS\/smuview.real","Reason: tried: '\/usr\/local\/opt\/[email protected]\/Frameworks\/Python.framework\/Versions\/3.9\/Python' (no such file), '\/Library\/Frameworks\/Python.framework\/Versions\/3.9\/Python' (no such file), '\/System\/Library\/Frameworks\/Python.framework\/Versions\/3.9\/Python' (no such file)"]},
  "asi" : {"dyld":["Library not loaded: \/usr\/local\/opt\/[email protected]\/Frameworks\/Python.framework\/Versions\/3.9\/Python","Referenced from: \/Applications\/SmuView.app\/Contents\/MacOS\/smuview.real","Reason: tried: '\/usr\/local\/opt\/[email protected]\/Frameworks\/Python.framework\/Versions\/3.9\/Python' (no such file), '\/Library\/Frameworks\/Python.framework\/Versions\/3.9\/Python' (no such file), '\/System\/Library\/Frameworks\/Python.framework\/Versions\/3.9\/Python' (no such file)"]},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":2131301,"threadState":{"x":[{"value":6},{"value":1},{"value":13105576480},{"value":148},{"value":13105575456},{"value":0},{"value":15349147273869345923},{"value":138246573188},{"value":13105575456},{"value":0},{"value":148},{"value":13105575456},{"value":148},{"value":13105576480},{"value":1},{"value":6},{"value":521},{"value":0},{"value":9223372041377188720},{"value":4387721216},{"value":2047},{"value":4522434464},{"value":18446744073709551615},{"value":8674613524},{"value":8673665487,"symbolLocation":80,"symbol":"abort_with_payload_wrapper_internal"},{"value":8674600232},{"value":4387770488},{"value":0},{"value":8673575118,"symbolLocation":10,"symbol":"__abort_with_payload"}],"flavor":"ARM_THREAD_STATE64","lr":{"value":8674531608},"cpsr":{"value":2147487744},"fp":{"value":738197504},"sp":{"value":4522412912},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":8674613568,"matchesCrashFrame":1},"far":{"value":8674600328}},"frames":[{"imageOffset":8674613568,"region":"Rosetta Runtime Routines","symbolLocation":10560,"imageIndex":0},{"imageOffset":286926,"symbol":"__abort_with_payload","symbolLocation":10,"imageIndex":1},{"imageOffset":377345,"symbol":"abort_with_payload","symbolLocation":9,"imageIndex":1},{"imageOffset":42515,"symbol":"dyld4::halt(char const*)","symbolLocation":375,"imageIndex":1},{"imageOffset":25949,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":3955,"imageIndex":1},{"imageOffset":21684,"symbol":"start","symbolLocation":388,"imageIndex":1}]},{"id":2131303,"name":"com.apple.rosetta.exceptionserver","frames":[{"imageOffset":18660,"imageIndex":2},{"imageOffset":71976,"imageIndex":2},{"imageOffset":77988,"imageIndex":2}]}],
  "usedImages" : [
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 8673288192,
    "size" : 442368,
    "uuid" : "cef5a27a-d50b-3020-af03-1734b19bc8c5",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 140703125696512,
    "size" : 196608,
    "uuid" : "21c1e0c9-a36e-3e4b-a12b-1bf54ce4403e",
    "path" : "\/usr\/libexec\/rosetta\/runtime",
    "name" : "runtime"
  }
],
  "sharedCache" : {
  "base" : 140703455870976,
  "size" : 15218081792,
  "uuid" : "e72a2011-6acf-3f25-bfe7-730570330401"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=16.0M resident=0K(0%) swapped_out_or_unallocated=16.0M(100%)\nWritable regions: Total=155.1M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=155.1M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nRosetta Arena                     4096K        2 \nRosetta Generic                    676K      166 \nRosetta IndirectBranch              32K        1 \nRosetta JIT                      128.0M        1 \nRosetta Return Stack                20K        2 \nRosetta Thread Context              20K        2 \nStack                             8176K        1 \nStack Guard                       56.0M        1 \nVM_ALLOCATE                       13.1M        5 \nVM_ALLOCATE (reserved)             164K       10         reserved VM address space (unallocated)\n__DATA                             488K       18 \n__DATA_CONST                       324K        9 \n__LINKEDIT                        2112K       16 \n__TEXT                            13.9M       13 \ndyld private memory               1024K        1 \nmapped file                        6.0G       55 \n===========                     =======  ======= \nTOTAL                              6.2G      303 \nTOTAL, minus reserved VM space     6.2G      303 \n",
  "legacyInfo" : {
  "threadTriggered" : {

  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "60da5e84ab0ca017dace9abf",
      "factorPackIds" : {

      },
      "deploymentId" : 240000008
    },
    {
      "rolloutId" : "607844aa04477260f58a8077",
      "factorPackIds" : {
        "SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a"
      },
      "deploymentId" : 240000066
    },
    {
      "rolloutId" : "602ad4dac86151000cf27e46",
      "factorPackIds" : {
        "SIRI_DICTATION_ASSETS" : "61fb0e87c773c43cde3bb80e"
      },
      "deploymentId" : 240000305
    },
    {
      "rolloutId" : "601d9415f79519000ccd4b69",
      "factorPackIds" : {
        "SIRI_TEXT_TO_SPEECH" : "621d4d0f680160486b9e1c98"
      },
      "deploymentId" : 240000414
    },
    {
      "rolloutId" : "5fb4245a1bbfe8005e33a1e1",
      "factorPackIds" : {

      },
      "deploymentId" : 240000015
    },
    {
      "rolloutId" : "60186475825c62000ccf5450",
      "factorPackIds" : {

      },
      "deploymentId" : 240000026
    },
    {
      "rolloutId" : "60f8ddccefea4203d95cbeef",
      "factorPackIds" : {

      },
      "deploymentId" : 240000020
    },
    {
      "rolloutId" : "5fc94383418129005b4e9ae0",
      "factorPackIds" : {

      },
      "deploymentId" : 240000482
    },
    {
      "rolloutId" : "5ffde50ce2aacd000d47a95f",
      "factorPackIds" : {

      },
      "deploymentId" : 240000202
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "5b729754-3882-4560-826f-9c0bc27d77c6",
      "experimentId" : "6192fb082171a2330e561df0",
      "deploymentId" : 400000035
    }
  ]
}
}

Model: MacBookPro18,3, BootROM 7429.61.2, proc 10:8:2 processors, 32 GB, SMC 
Graphics: Apple M1 Pro, Apple M1 Pro, Built-In
Display: Color LCD, 3024 x 1964 Retina, Main, MirrorOff, Online
Memory Module: LPDDR5
AirPort: Wi-Fi, wl0: Oct 25 2021 22:17:59 version 20.10.853.26.8.7.107 FWID 01-417a4935
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: USB31Bus
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.

Enviroment (please complete the following information):

  • SmuView 0.0.5
  • AppImage from github
  • OS: MacOS Monterey 12.1 on Apple M1 Pro

Additional context
From my initial analysis, it looks like there is a hard link from Python3.9 to path XYZ in the application.
I installed Python3.9 via brew and it is also set via the PATH variable. Suggestion would be either to deliver Python and the dependencies in the AppImage as a bundle, or to set the link to Python 3.9 generically to 'python3.9'.

Unknown model ID 'KORAD KA3005P V5.5' detected, aborting while trying to connect to KA3005P.

Describe the bug
I have a brand new KA3005P which I am trying to connect to my Ubuntu 20.04 PC via USB. The device connects to /dev/ttyACM0. When running SmuView (AppImage, 0.0.4-x86_64) I get the following error:

/SmuView-0.0.4-x86_64.AppImage 
set LE scan params: Operation not permitted
set LE scan params: Operation not permitted
sr: korad-kaxxxxp: Unknown model ID 'KORAD KA3005P V5.5' detected, aborting.

I also tried:

/SmuView-0.0.4-x86_64.AppImage -d korad-kaxxxxp:conn=/dev/ttyACM0 
sr: korad-kaxxxxp: Unknown model ID 'KORAD KA3005P V5.5' detected, aborting.
set LE scan params: Operation not permitted
set LE scan params: Operation not permitted
sr: korad-kaxxxxp: Unknown model ID 'KORAD KA3005P V5.5' detected, aborting.
BaseDevice::~BaseDevice():  "Demo device"
BaseDevice::close(): Trying to close device  "Demo device"

I can press scan for devices in the GUI, but there is no device showing up. I have selected the correct Korad device in the dropdown.

Edit: I ran it with log level 5:

sr: [00:10.889774] bt-bluez: BLE close
sr: [00:19.312220] hwdriver: sr_config_list(): key 2147418112 (NULL) sdi (nil) cg NULL -> [uint32 20000, 20001]
sr: [00:19.312243] serial: Opening serial port '/dev/ttyACM0' (flags 1).
sr: [00:19.429005] serial: Parsing parameters from "9600/8n1".
sr: [00:19.429100] serial: Setting serial parameters on port /dev/ttyACM0.
sr: [00:19.429132] serial: DBG: serial_set_params() rate 9600, 8n1
sr: [00:19.429188] serial: Flushing serial port /dev/ttyACM0.
sr: [00:19.429197] korad-kaxxxxp: Want max 34 bytes.
sr: [00:19.429203] korad-kaxxxxp: Sending '*IDN?'.
sr: [00:19.429222] serial: Wrote 5/5 bytes.
sr: [00:19.474335] serial: Read 28/34 bytes.
sr: [00:19.519478] serial: Read 2/6 bytes.
sr: [00:23.939773] korad-kaxxxxp: Received: 'KORAD KA3005P V5.5 SN:160*****'.
sr: [00:23.939792] korad-kaxxxxp: Received: 0, KORAD KA3005P V5.5 SN:160*****
sr: [00:23.939827] korad-kaxxxxp: Unknown model ID 'KORAD KA3005P V5.5' detected, aborting.
sr: [00:23.939833] hwdriver: Scan found 0 devices (korad-kaxxxxp).
BaseDevice::~BaseDevice():  "Demo device"
BaseDevice::close(): Trying to close device  "Demo device"
sr: [00:35.661024] hwdriver: Cleaning up all drivers.

Enviroment (please complete the following information):

  • SmuView version 0.0.4 x86_64 AppImage
  • OS: Ubuntu 20.04

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.