This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Address Filter not working

I have an NRF52 DK, and an IM21 door sensor that advertises events. I am trying to pick up these events with the nRF52DK in the most robust way possible. I have used the scanning library to implement an address filter to identify the IM21 events by the IM21 adress. My implementation is screenshotted below and I have verified that the address and address type are correct.

This code is in the scan_init() function:

I am verfying that the sensor is found through this print statement below, which isn't printing:

I also picked up the packets that are being advertised with the NRF Sniffer. The packet advertised is highlighted in this image below:

I welcome any ideas regarding where I may have gone wrong or missed something of importance.

Thank you very much, 

Maria

Parents
  • Hi

    Okay, sorry for the misunderstanding. Is there any reason that the address is flipped in your ble_gap_addr_t() function compared to what the iSensor is advertising as? In nRFConnect it seems to be backwards, where each byte is flipped. So if your central's filter is looking for the flipped address compared to what is actually advertised that might explain why it's not able to match the addresses.

    Best regards,

    Simon

  • Hello,

    The address was flipped as I read somewhere to input the address LSB first.  Regardless, I changed the ble_gap_addr_t() function to the below, and this had no effect on the output. The iSensor is still not being recongized by the application.

    Here are the relevant parts of the scan_evt_handler function:

    I am judging whether or not the scanner has picked up the iSensor by whether or not line 171 is printed.

    Thanks,

    Maria

Reply
  • Hello,

    The address was flipped as I read somewhere to input the address LSB first.  Regardless, I changed the ble_gap_addr_t() function to the below, and this had no effect on the output. The iSensor is still not being recongized by the application.

    Here are the relevant parts of the scan_evt_handler function:

    I am judging whether or not the scanner has picked up the iSensor by whether or not line 171 is printed.

    Thanks,

    Maria

Children
No Data
Related