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

ble_sdk_app_proximity Not showing correct values in nRFconnect app

Hello All,

I have compiled and flashed fresh ble_sdk_app_proximity with armgcc to my NRF52DK(S132,SDK15.0.0). After connecting to the DK with nRF connect ios app I can see 4 service but all values on them are N/A while for example I should see the battery level or tx power in corresponding service tabs inside the app.

I have also ran the proximity app from nRF tool box, after connecting, the value in the battery icon is also N/A. and I am not sure pressing the "Find me,Silent me" is supposed to trigger anything in DK? though when I press Button1 on DK the app starts beeping.

Parents
  • Hello,

    I suppose that you have connected to the DK with another example earlier, is that correct?

    Can you please check if the phone has bonding information stored for the DK? Can you please try to delete the bonding information from the settings->bluetooth settings on iOS, and then try to connect again?

     

    Please let me know if that doesn't work.

     

    Best regards,

    Edvin

  • Hi Edvin,

    I changed bonding setting to pairing setting now everything works in proximity app and I can see the values in nRF Conenct app.

    static void peer_manager_init(void)
    {
        ble_gap_sec_params_t sec_param;
        ret_code_t           err_code;
    
        err_code = pm_init();
        APP_ERROR_CHECK(err_code);
    
        memset(&sec_param, 0, sizeof(ble_gap_sec_params_t));
    
        // Security parameters to be used for all security procedures.
        sec_param.bond = false;
        sec_param.mitm = false;
        sec_param.lesc = 0;
        sec_param.keypress = 0;
        sec_param.io_caps = BLE_GAP_IO_CAPS_NONE;
        sec_param.oob = false;
        sec_param.min_key_size = 7;
        sec_param.max_key_size = 16;
        sec_param.kdist_own.enc = 0;
        sec_param.kdist_own.id = 0;
        sec_param.kdist_peer.enc = 0;
        sec_param.kdist_peer.id = 0;
    
        err_code = pm_sec_params_set(&sec_param);
        APP_ERROR_CHECK(err_code);
    
        err_code = pm_register(pm_evt_handler);
        APP_ERROR_CHECK(err_code);
    }

Reply
  • Hi Edvin,

    I changed bonding setting to pairing setting now everything works in proximity app and I can see the values in nRF Conenct app.

    static void peer_manager_init(void)
    {
        ble_gap_sec_params_t sec_param;
        ret_code_t           err_code;
    
        err_code = pm_init();
        APP_ERROR_CHECK(err_code);
    
        memset(&sec_param, 0, sizeof(ble_gap_sec_params_t));
    
        // Security parameters to be used for all security procedures.
        sec_param.bond = false;
        sec_param.mitm = false;
        sec_param.lesc = 0;
        sec_param.keypress = 0;
        sec_param.io_caps = BLE_GAP_IO_CAPS_NONE;
        sec_param.oob = false;
        sec_param.min_key_size = 7;
        sec_param.max_key_size = 16;
        sec_param.kdist_own.enc = 0;
        sec_param.kdist_own.id = 0;
        sec_param.kdist_peer.enc = 0;
        sec_param.kdist_peer.id = 0;
    
        err_code = pm_sec_params_set(&sec_param);
        APP_ERROR_CHECK(err_code);
    
        err_code = pm_register(pm_evt_handler);
        APP_ERROR_CHECK(err_code);
    }

Children
No Data
Related