Android-nRF-Mesh-Library icon indicating copy to clipboard operation
Android-nRF-Mesh-Library copied to clipboard

nRF Mesh Sniffer - does not parse `Battery Status` message flags correctly

Open connyhald opened this issue 8 months ago • 1 comments

I'm sorry, if this is the wrong place to report an issue about nrf Mesh Sniffer for Android. I could not find another place...


Describe the bug When receiving Battery Status messages using the app on Android, the flags are not properly parsed. See screenshot below where 0x00 is not get parsed correctly.

To Reproduce Steps to reproduce the behavior:

  1. Create a node that sends Battery Status messages
  2. Scan those messages with nRF Mesh Sniffer
  3. See that the flags byte does not get parsed correctly

Expected behavior When sending the following data encode into the flags byte I would expect the app to decode them correctly.

    net_buf_simple_add_u8(&msg,  0b10110000); // flags
                                   ^ ^ ^ ^
                                   | | | |_ Bits 6-7 (Reserved, 0b00)
                                   | | |___ Bits 4-5 (No service needed, 0b00)
                                   | |_____ Bits 2-3 (Charge level unknown, 0b11)
                                   |_______ Bits 0-1 (Battery present, non-removable, 0b10)

Platform details:

  • Device: Google Pixel 7a
  • OS: Android 15
  • App version: 1.0.0

Logs / Screenshots Image

connyhald avatar Mar 23 '25 15:03 connyhald

HI, its not the correct place but thanks for reporting this issue. Right now we are running a bit tight on some other tasks. We will try our best to get some of these issues sorted.

roshanrajaratnam avatar Mar 24 '25 06:03 roshanrajaratnam