This patch series adds support for the Mooshim Engineering Mooshimeter.  This
is broken up into a simple abstraction layer for the BLE GATT transport and
then the more conventional actual implementation of the Mooshimeter API and
protocol.

The only currently supported transport is the Linux BlueZ stack via DBus
(using GDBus, so it's part of glib already).  I didn't find any pre-existing
libraries to talk to BLE GATT devices that where both reasonably popular and
supported Linux (i.e. the either where Windows/Android/iOS only or Linux only
and probably abandoned).  So this simply talks to BlueZ directly, which isn't
all that complicated, just a bit verbose.  Hopefully the abstraction is
general enough that it could be added for other platforms if required, but
that's beyond what I can do.

The changes are also in a git branch at:

  https://gitlab.com/Sizurka/libsigrok/tree/mooshimeter


Derek Hageman (2):
  Add a BLE GATT abstraction layer
  Add support for the Mooshimeter DMM

 Makefile.am                             |   10 +
 README.devices                          |   82 +
 configure.ac                            |    9 +
 include/libsigrok/libsigrok.h           |    2 +
 src/backend.c                           |   13 +
 src/blegatt_bluez.c                     | 1847 +++++++++++++++++++++++
 src/device.c                            |   12 +
 src/hardware/mooshimeter-dmm/api.c      | 1023 +++++++++++++
 src/hardware/mooshimeter-dmm/protocol.c | 1542 +++++++++++++++++++
 src/hardware/mooshimeter-dmm/protocol.h |  108 ++
 src/libsigrok-internal.h                |   37 +
 src/std.c                               |    4 +
 12 files changed, 4689 insertions(+)
 create mode 100644 src/blegatt_bluez.c
 create mode 100644 src/hardware/mooshimeter-dmm/api.c
 create mode 100644 src/hardware/mooshimeter-dmm/protocol.c
 create mode 100644 src/hardware/mooshimeter-dmm/protocol.h

-- 
2.20.1



_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to