Author Topic: Linux Bluetooth Client for Owon B35 Multimeter  (Read 4113 times)

0 Members and 1 Guest are viewing this topic.

Offline DeanCordingTopic starter

  • Contributor
  • Posts: 18
  • Country: au
    • GitHub
Linux Bluetooth Client for Owon B35 Multimeter
« on: April 11, 2018, 02:35:43 am »
Late last year I purchased an Owon B35T+ to replace my very old Metex 3650CR.  The remote Bluetooth logging was the main attracting feature, particularly as there were a couple of Linux clients available.  Unfortunately those clients would not work with my meter.

After a bit of disassembly of both code and hardware, it turns out that Owon has changed the chip on this meter from the Fortune Semiconductor FS9922 to the Semic CS7729CN-001.  Where as the FS9922 just output encapsulated serial data, the CS7729CN puts out data encoded using the Bluetooth Low Energy Generic Attributes (BLE GATT).

I haven't been able to find any documentation for the CS77729CN so it took a bit of packet sniffing to decode the data protocol.  Turns out to be reasonablly simple with the measurements and functions being encoded in just six bytes.

I've written a new Linux client for this meter.  It has been designed in the Unix philosophy of tools doing one thing well and working well with other programs.  The client will connect to a meter and output the measurement readings in a variety of formats that are suitable for saving to file or feeding into other programs like gnuplot, KST, or even MQTT.  Using feedgnuplot allows you to have nice graphs that update in real time, such as the one below which show the discharge voltage profile of a battery pack I'm working on.

I'm still investigating the offline logging feature but that protocol is looking a bit obscure at the moment.


The client and more details are available from https://github.com/DeanCording/owonb35


Enjoy,

Dean
« Last Edit: April 11, 2018, 03:17:50 am by DeanCording »
 
The following users thanked this post: paf, DaneLaw, bkw, W6EL

Offline DeanCordingTopic starter

  • Contributor
  • Posts: 18
  • Country: au
    • GitHub
Re: Linux Bluetooth Client for Owon B35 Multimeter
« Reply #1 on: April 16, 2018, 04:23:56 am »
For those following along at home, a new version of the client has been released that supports offline measurement recording and interactive remote control.
 
The following users thanked this post: gmarentette

Offline DeanCordingTopic starter

  • Contributor
  • Posts: 18
  • Country: au
    • GitHub
Re: Linux Bluetooth Client for Owon B35 Multimeter
« Reply #2 on: April 19, 2018, 09:44:00 am »
Another new version, this time it adds a connection watchdog and automatic reconnection to deal with the flaky Bluetooth connection.
 
The following users thanked this post: Bob Sava

Offline Bob Sava

  • Regular Contributor
  • *
  • Posts: 98
  • Country: us
Re: Linux Bluetooth Client for Owon B35 Multimeter
« Reply #3 on: April 19, 2018, 10:15:52 am »
I've been considering getting one of those multimeters, though I am leaning towards B41 version (when it comes down in price a bit).  Do you know if B41 and B35 are compatible?
 

Offline DeanCordingTopic starter

  • Contributor
  • Posts: 18
  • Country: au
    • GitHub
Re: Linux Bluetooth Client for Owon B35 Multimeter
« Reply #4 on: April 19, 2018, 10:24:12 am »
I've no idea if they are compatible but it all depends on the chipset manufacturer as to what protocol it uses.  There is a chance that it may be but in any case it isn't too difficult to reverse engineer.
 

Offline bkw

  • Contributor
  • Posts: 12
  • Country: us
Re: Linux Bluetooth Client for Owon B35 Multimeter
« Reply #5 on: September 08, 2018, 09:20:39 pm »
This is great. Thank you!
 

Offline linux-works

  • Super Contributor
  • ***
  • Posts: 1997
  • Country: us
    • netstuff
Re: Linux Bluetooth Client for Owon B35 Multimeter
« Reply #6 on: November 06, 2023, 09:20:14 pm »
fyi, I added to this code base (and/or another like it) and have a working version for the owon cm2100b clamp meter.

will start a new topic for that linux code.  but at least there's another owon with BLE that was not hard to decode and get working.

Offline linux-works

  • Super Contributor
  • ***
  • Posts: 1997
  • Country: us
    • netstuff
Re: Linux Bluetooth Client for Owon B35 Multimeter
« Reply #7 on: November 06, 2023, 10:57:32 pm »
 
The following users thanked this post: W6EL


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf