Hi,

I would like to add support for the Owon B35T multimeter to libsigrok.
In principle, this should be very easy. The device is based on the Fortune Semiconductor FS9922-DMM4, whose protocol is already supported by sigrok. In contrast to other devices based on this chipset, it does not have a (wired) serial interface but uses Bluetooth Low Energy (BLE) to tramsmit the serial data.

The easy way to connect the B35T to a computer is to hook up an HM-10 BLE module to a USB-to-UART-TTL converter, which will automatically receive all messages. It can then be handled the same way as any other serial device. Attached patch adds support for this operation mode. I suspect this is not acceptable for inclusion into libsigrok, as it requires a user to build its own custom "interface" (even if that is very easy).

I would prefer to directly talk to the B35T via BLE. This is not too difficult using the command line tools which are part of BlueZ (although I must admit that I didn't have a closer look at the BlueZ API yet). But to properly support this from within sigrok we would need an operating system independent BLE abstraction layer, similar to libserialport.
Any thoughts on that?

Best regards,
Johannes
From e6a509375c3c789994ccccf03c7cc0cac9b30a09 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Johannes=20R=C3=B6mer?= <jroe...@posteo.net>
Date: Mon, 27 Feb 2017 20:30:31 +0100
Subject: [PATCH 1/1] serial-dmm: Add support for Owon B35T

---
 src/hardware/serial-dmm/api.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/hardware/serial-dmm/api.c b/src/hardware/serial-dmm/api.c
index a54fe03..7b22334 100644
--- a/src/hardware/serial-dmm/api.c
+++ b/src/hardware/serial-dmm/api.c
@@ -396,6 +396,12 @@ SR_REGISTER_DEV_DRIVER_LIST(serial_dmm_drivers,
 	/* }}} */
 	/* fs9922 based meters {{{ */
 	DMM(
+		"owon-b35t-ser", fs9922,
+		"Owon", "B35T (serial BLE interface)", "9600/8n1/rts=0/dtr=1",
+		9600, FS9922_PACKET_SIZE, 0, 0, NULL,
+		sr_fs9922_packet_valid, sr_fs9922_parse, NULL
+	),
+	DMM(
 		"uni-t-ut61b-ser", fs9922,
 		"UNI-T", "UT61B (UT-D02 cable)", "2400/8n1/rts=0/dtr=1",
 		2400, FS9922_PACKET_SIZE, 0, 0, NULL,
-- 
2.9.3

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to