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

Peer address changes every time

Hello everybody.

I just startet developing with nrf products and I'm facing a problem there.

I'm currently developing a System based on the ble_app_uart_c example. I'm using the S132 Softdevice 5.0 with the SDK 14.2.

I modified the code so it prints me out the RSSI and the peer address of every advertisement. The only Advertiser nearby ia another Development Kit of the same type which is running the ble_abb_beacon example. Now everytime I get an advertisement event I get another peer address. The address is incrementing with every event.

I found the following post with the same issue

https://devzone.nordicsemi.com/f/nordic-q-a/6900/dfu-device-address-changes

Now the solution there doesn't seem to work for the 14.2 SDK since the mentioned c-File doesn't exist.

Where can I disable the increments in the 14.2 SDK?

Also what about other devices besides the nrf products? If I turn on the Bluetooth on my notebook for example I get the same Issue: The peer address is incrementing continuously. Is this a commong thing with bluetooth devices? Are there better options for searching and selecting devices rather than the peer address?

Thank you so much for your help.

Best wishes

Parents
  • Small update

    I tried to solve the problem but I have no real solution so far.

    In the beacon example the advertiser is initialised with "NULL" as peer address.

    m_adv_params.type        = BLE_GAP_ADV_TYPE_ADV_NONCONN_IND;
    m_adv_params.p_peer_addr = NULL;    // Undirected advertisement.  				
    m_adv_params.fp          = BLE_GAP_ADV_FP_ANY;
    m_adv_params.interval    = NON_CONNECTABLE_ADV_INTERVAL;
    m_adv_params.timeo       = 0;       // Never time out.

    Declaring a peer address and set it in this section doesn't change anything. The address is still increasing.

    Also using the sd_ble_gap_addr_set() function doesnt change this behavior.

Reply
  • Small update

    I tried to solve the problem but I have no real solution so far.

    In the beacon example the advertiser is initialised with "NULL" as peer address.

    m_adv_params.type        = BLE_GAP_ADV_TYPE_ADV_NONCONN_IND;
    m_adv_params.p_peer_addr = NULL;    // Undirected advertisement.  				
    m_adv_params.fp          = BLE_GAP_ADV_FP_ANY;
    m_adv_params.interval    = NON_CONNECTABLE_ADV_INTERVAL;
    m_adv_params.timeo       = 0;       // Never time out.

    Declaring a peer address and set it in this section doesn't change anything. The address is still increasing.

    Also using the sd_ble_gap_addr_set() function doesnt change this behavior.

Children
No Data
Related