]> sigrok.org Git - libsigrok.git/commit - src/hardware/hp-59306a/api.c
hp-59306a: only match when conn= is given to avoid false probe positives
authorGerhard Sittig <redacted>
Sat, 22 May 2021 10:25:27 +0000 (12:25 +0200)
committerGerhard Sittig <redacted>
Tue, 1 Jun 2021 06:20:59 +0000 (08:20 +0200)
commitd008c0273fb168dc78cf2a8b682cf11ecb36a871
treee395b39a144506a6acf56c4937e0d35520012547
parent6b4bdfbde8a9bfc3891ad98a373aa7cea12aef76
hp-59306a: only match when conn= is given to avoid false probe positives

The HP 59306A device was made in 1973 and would not reliably identify
by means of SCPI queries. The previous scan() implementation would have
matched any connected SCPI device, then upset these devices by emitting
non-SCPI requests.

Tighten the scope of the hp-59306a probe, only scan for devices when a
conn= spec was provided. This avoids false positives and malfunction of
other devices, and still lets users address the problematic device. This
is similar to serial-dmm and unspecific cables and has proven to work
there.

How to reproduce the issue:

  (while any auto enumerating SCPI device is connected)
  $ sigrok-cli --scan
src/hardware/hp-59306a/api.c