Bug 1701 - Error opening port (5) from serial-libsp via COM-Port
Summary: Error opening port (5) from serial-libsp via COM-Port
Status: CONFIRMED
Alias: None
Product: sigrok-cli
Classification: Unclassified
Component: Acquisition (show other bugs)
Version: unreleased development snapshot
Hardware: x86 Windows
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-20 19:10 CEST by Hesperus
Modified: 2021-07-22 09:46 CEST (History)
1 user (show)



Attachments
Error output of acquisition command (8.47 KB, text/plain)
2021-07-20 19:10 CEST, Hesperus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hesperus 2021-07-20 19:10:09 CEST
Created attachment 741 [details]
Error output of acquisition command

When trying to capture samples with the sigrok-cli from a Metrahit 29S multimeter, via a COM-port, the cli can not open a port for acquisition after successfully detecting the multimeter. 
Same error on two different computers with serial ports and when using a USB-to-Serial adapter.
See attached file for the error output.

-V Version information:
sigrok-cli 0.7.2

Libraries and features:
- libsigrok 0.5.2/5:1:1 (rt: 0.5.2/5:1:1).
 - Libs:
  - glib 2.44.1 (rt: 2.44.1/4401:1)
  - libzip 1.5.2
  - libserialport 0.1.1/1:0:1 (rt: 0.1.1/1:0:1)
  - libusb-1.0 1.0.20.11003-rc3 API 0x01000104
  - hidapi 0.8.0-rc1
  - libftdi 1.4
  - Host: x86_64-w64-mingw32.static.posix, little-endian.
  - SCPI backends: TCP, serial, USBTMC.
- libsigrokdecode 0.5.3/6:1:2 (rt: 0.5.3/6:1:2).
 - Libs:
  - glib 2.44.1 (rt: 2.44.1/4401:1)
  - Python 3.4.4 / 0x30404f0 (API 1013, ABI 3)
  - Host: x86_64-w64-mingw32.static.posix, little-endian.
Comment 1 Hesperus 2021-07-21 08:52:43 CEST
Operating system is Windows 10 18363.1646 and 19042.1110
Comment 2 Gerhard Sittig 2021-07-21 22:58:00 CEST
This specific driver appears to open the serial port during scan but won't 
close it. Which means that the port still "is busy" when data acquisition 
is about to start. Somebody with access to the sources and to the device 
needs to look into that issue.
Comment 3 Hesperus 2021-07-22 09:46:24 CEST
If the dont-scan feature would disable the scan for the specific driver, it will work for me, even though, that the underlying problem is not fixed. 
I will happyly to assist in testing, if non of the developers has a Metrahit 2xS lying around.