]> sigrok.org Git - libsigrok.git/commit
uni-t-ut181a: implement device driver for the UNI-T UT181A multimeter
authorGerhard Sittig <redacted>
Sat, 14 Dec 2019 14:14:46 +0000 (15:14 +0100)
committerUwe Hermann <redacted>
Mon, 1 Jun 2020 16:35:05 +0000 (18:35 +0200)
commitebc51109899008694c50977cb2574050b1bc0c89
treeea3aca684f0e38fdc25c71562d2453f4c1481c5b
parent3094e9d8ca2b8cb7aad1c3bf41b47f0087e45ff8
uni-t-ut181a: implement device driver for the UNI-T UT181A multimeter

Extend the previously introduced skeleton driver for UNI-T UT181A. Introduce
support for the full multimeter's protocol as it was documented by the ut181a
project. Which covers the retrieval of live readings, saved measurements, and
recordings, in all of the meter's modes and including relative, min/max, and
peak submodes. This implementation also parses compare mode (limits check)
responses, although it cannot express the result in terms of the session feed.

Announce the device as a multimeter as well as a thermometer, it supports
up to two probes including difference mode. When in doubt, prefer usability
over feature coverage (the driver side reflects all properties of the meter,
but not all features can get controlled by the driver). The probe routine
requires that users specify the serial port, and enable serial communication
on the meter.

Several TODO items remain. Comments in the driver code discuss limitations
of the current implementation, as well as cases where the meter's features
don't map well to sigrok's internal presentation. This implementation also
contains (optional, off by default) diagnostics for research on the serial
protocol.
README.devices
configure.ac
src/hardware/uni-t-ut181a/api.c
src/hardware/uni-t-ut181a/protocol.c
src/hardware/uni-t-ut181a/protocol.h