Cannot figure out batteryMask #588
-
Hello, What does exactly mean "The mask operates on a 32bit value with major as the high two bytes and minor as the low two bytes." ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
First question, do you know if your devices transmits the battery level in the iBeacon advertisement message ? Only certain devices do this and even then you generally need to tell the device that is what you want as it is a non-standard mode. The device documentation should be able to tell you if it is possible and how to get the iBeacon into that mode. I kniow the guys are working on room-assistant integration with companion apps but didnt think they provided battery information in the advertisement message. But I could be out of date on that. I have five Jaylee ibeacons and they all support sending battery level in the advertisement. Their Jaylee docs explain how to "turn on the feature" and how the device will send the battery level. In my case, the devices put the battery level into the first (or high) byte of the two-byte Minor field. Having been told that, I can then configure two aspects of room-assistant so it knows how to interpret the iBeacon's address and pull out the battery info. The first step is to tell room-assistant to ignore - mask out - the high byte of the Minor field from my device's addresses. Otherwise the changing battery level would cause room-assistant to think it was seeing a new device. You configure the address mask with the The second bit is to tell room-assistant where the battery information is found using the I hope that helps a bit and let me know if needs some clarification. |
Beta Was this translation helpful? Give feedback.
-
@frankiej911 , hmm, had a quick look at the linked doc and not quite sure that I fully understand. It seems to suggest that the beacon can be configured to send battery power (interpreted as level) in the field usually associated with the RRSI value. This would be odd as the RSSI field is part of the iBeacon spec and fairly important in determining distance. Have you confirmed that Is correct and not just a translation error? Nonetheless, |
Beta Was this translation helpful? Give feedback.
-
Hi @PeteBa , I have the same issue, I would like to know how can I track battery levels from the RDL51822. Did you manage to solve it? |
Beta Was this translation helpful? Give feedback.
First question, do you know if your devices transmits the battery level in the iBeacon advertisement message ? Only certain devices do this and even then you generally need to tell the device that is what you want as it is a non-standard mode. The device documentation should be able to tell you if it is possible and how to get the iBeacon into that mode. I kniow the guys are working on room-assistant integration with companion apps but didnt think they provided battery information in the advertisement message. But I could be out of date on that.
I have five Jaylee ibeacons and they all support sending battery level in the advertisement. Their Jaylee docs explain how to "turn on the featur…