-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add bm2 battery monitoring device #130
Conversation
12V battery monitoring
Not sure what is the best way to have the IBEACON decoder not detect this device, so that it is read only by its own decoder Also, we could modify the IBEACON decoder to read the battery percentage when we detect that we have this device model. (instead of volts) But it will exclude this device from all the filters that are based on IBEACON Model_ID (OMG and Theengs Gateway). Tested the add of:
|
Are the two test cases actual data of one device, or also partly made up? Some other BLE sensors which use the iBeacon protocol use fixed major and/or minor to identify themselves. Not the case here thought if the test cases are actual data :( Possibly some part of the uuid? Since the name is model fixed and non changeable by the user we could do a NOT name comparison for the general iBeacon decoder., like the positive name check in this decoder. |
They are actual data.
I tried this but getting an error with the bluecharm. Not sure why. I added the data to my first msg.
Maybe the path to follow. We would need other devices uuid to confirm this |
Shouldn't the mfid be unique to the device/manufacturer?, which we could then include in its decoder and possibly also exclude from the generic iBeacon? |
Thanks! I will try that |
Sorry, too late and hot here ;) mfid is obviously always the same for all the iBeacons, meant the first part of the uuid, which should be device/manufacturer specific. Do you know of nay one else with the device to double check for the similarities in the uuid? |
Thinking more about this though, and with more and more sensors piggy bagging on the iBeacon protocol, some April Brother sensors etc., I think the best bet here is the unique name, which could then easily be added as a NOT condition to the generic iBeacon decoder. We just need to add this functionality ;) maybe not use a NOT with the index and all which woudl make it longer, but a "not_contain" comparison? |
@1technophile, do you mind me pushing something to this branch, as I've been trying on it? |
Proposal with "not_contain", to be able to get more iBeacon protocol using sensors compatibility. Hopefully not too many, as not to have too long a "not_contain" chain. |
Co-Authored-By: DigiH <17110652+DigiH@users.noreply.github.com>
Note that for the moment I haven't found a way to retrieve the voltage. Maybe for later on. |
I suppose from the two sample data test sets, and with it using the iBeacon protocol it can only be the major, having similar data in both sets, with the minor being totally "0000" in the first sample. So Depending on the battery condition and the car starting/running these would be realistic expected values. But more likely I just worked it that way to come out ;) Really would need actual device testing and comparing with a different on board voltage indicator, like a cigarette lighter USB charger with voltage indicator included. Or just the first byte of the major Also good values for a stationary car ;) |
Hmm, that wouldn't even be a single hex byte, but the end digit of the first byte of the major I mentioned above and the first digit of the second major byte, If both are changing it might be that it is the usually major part of the iBeacon protocol, but not big endian as I mentioned above, but little endian Any chance of getting the actual voltage of the battery when readings are done, possibly with a voltmeter? |
I sent you a link to the spreadsheet by PM on the OMG forum. |
Already there for a while now, watching your changes and wondering what the data contains ;) Sent you a reply back by PM. |
Description:
Add BM2 12V car battery monitoring
Checklist: