]> sigrok.org Git - libsigrok.git/commit
rdtech-um: Add initial support for the RDTech UMxx series
authorAndreas Sandberg <redacted>
Sun, 28 Oct 2018 22:45:57 +0000 (22:45 +0000)
committerUwe Hermann <redacted>
Thu, 4 Jun 2020 22:25:26 +0000 (00:25 +0200)
commit8b607a24e7e7dec8b65963281b9cb43a0c5ba0a6
tree87f252861ecce439bf8dfed58555c44adf6bdbb5
parentef2196712c2960c1824bd6afaf326d3621090cc3
rdtech-um: Add initial support for the RDTech UMxx series

This changeset adds support for the RDTech UMxx series of USB power
meters. The driver has been tested with the RDTech UM24C, but should
support the UM24C, UM25C, and the UM34C.

Currently, the driver reports the following channels:
  * V: VBus voltage
  * I: VBus current
  * D+: D+ voltage
  * D-: D- voltage
  * T: Device temperature
  * E: Energy consumed in threshold-based recording mode.

The number of significant digits shown for each channel has been set
to match the number of digits shown on a UM24C.

Missing features:

  * There is currently no support for configuring threshold-based
    recording from sigrok, but this can be done on the device itself.

  * Fast charging mode currently not logged.

Usage example:

sigrok-cli -d rdtech-um:conn=bt/rfcomm/MAC --scan
sigrok-cli -d rdtech-um:conn=/dev/rfcomm0 --scan

Known issues:

  * When using sigrok's Bluetooth transport implementation, the device
    is disconnected between probing and sampling. Some devices (e.g.,
    the UM24C), dislikes this and can't be reconnected reliably for
    sampling. This is not an issue when setting up a rfcomm device
    manually and using it as a serial port.

Kudos to Sven Slootweg for documenting most of the protocol.

Signed-off-by: Andreas Sandberg <redacted>
Makefile.am
configure.ac
src/hardware/rdtech-um/api.c [new file with mode: 0644]
src/hardware/rdtech-um/protocol.c [new file with mode: 0644]
src/hardware/rdtech-um/protocol.h [new file with mode: 0644]