decoder icon indicating copy to clipboard operation
decoder copied to clipboard

more Mopeka Gas Level sensor options, extended range bit

Open mhaberler opened this issue 2 years ago • 1 comments

I saw this PR, which seems to handle quite a wide range of Mopeka sensors:

https://github.com/robsweet/dbus-ble-sensors/pull/1/commits/4a01ef04123832945392f4ba7c58e3e0672ff833

beyond the additional sensor types and fluid types, the change really relevant is handling the extened time range (TankLevelExtension)

I have no need for this, I do not have a tank which needs this range, nor do I have a sensor with extended range

notice first bye of manufacturer data which is 0x03 vs 0x0c - according to https://github.com/robsweet/dbus-ble-sensors/blob/master/src/mopeka.c#L226-L232 I would think both of the following sensors have the extension bit NOT set:

This is a Pro:

N: Send on /BTtoMQTT/D639AE4FCD0C msg {"id":"D6:39:AE:4F:CD:0C","mac_type":1,"adv_type":0,"manufacturerdata":"5900034e4250004fcd0c66d9","rssi":-54,"brand":"Mopeka/Lippert","model":"Pro Check (Universal)/BottleCheck Sensor","model_id":"M1017","type":"UNIQ","cidc":false,"tempc":26,"tempf":78.8,"lvl_cm":2.907907,"lvl_in":1.144845,"sync":false,"volt":2.4375,"batt":36.53846,"quality":0,"accx":102,"accy":-39}

This is a Pro Universal:

{"id":"D8:C6:11:CA:12:55","mac_type":1,"adv_type":0,"manufacturerdata":"59000c5f3ac440ca1255d514","rssi":-81,"brand":"Mopeka/Lippert","model":"Pro Check (Universal)/BottleCheck Sensor","model_id":"M1017","type":"UNIQ","cidc":false,"tempc":18,"tempf":64.4,"lvl_cm":7.670883,"lvl_in":3.020033,"sync":false,"volt":2.96875,"batt":100,"quality":1,"accx":-43,"accy":20}

just a note if the need arises

mhaberler avatar Sep 28 '23 17:09 mhaberler

Thanks for this, I didn't know it yet.

Not having a Mopeka myself either, it's always relying on others with the devices to help with the decoders. Some user data I do have though has 0x06, which seems to be missing from the commit. Definitely something to look into.

So far I've never seen any data with > 0x80 yet to verify the TankLevelExtension.

DigiH avatar Sep 29 '23 08:09 DigiH