mayhem-firmware icon indicating copy to clipboard operation
mayhem-firmware copied to clipboard

BLE RX - add MAC address filtering option

Open NotherNgineer opened this issue 1 year ago • 2 comments

I tried entering a simple hex value for the "Filter" in the BLE RX app, such as "5" or "50".

I was expecting to be able to filter by MAC address, but the existing filter is looking for bytes in the whole unprocessed data packet, causing entries to pop up on the screen and quickly disappear the next time a packet is received from the same device.

Because the filter is looking at the raw packet data, devices are disappearing from (or never appearing on) the list even when their MAC address contains the string entered.

I propose to change the "filter" definition (and update the Wiki) so that the filter only looks at the MAC address and the device name strings, versus looking at the entire unprocessed packet.

NotherNgineer avatar Dec 04 '23 06:12 NotherNgineer

Seems that the searching for nibbles in the raw packet data is useful after all, so filtering by MAC address would need to be a new filter option. The code in PR #1625 may be usable if it were made conditional and still allowed filtering of raw packet data.

NotherNgineer avatar Dec 07 '23 19:12 NotherNgineer

Perhaps the filter could be enhanced to support special keywords such as "MAC:" to enable searching for digits in a MAC address.

NotherNgineer avatar Dec 08 '23 14:12 NotherNgineer