This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Trying to merge ble_app_uart code with ble_beacon ,getting stuck with ble_advertising init function with error 7[NRF_INVALIDE_PARAM]

Hello,

We are using Nordic sdk 17.1.0, with segger studio of 5.70a.

Here we are trying to merge ble_app_uart example with ble_app_beacon example.

Actually ble_app_uart section run properly, but while staring ble_app_beacon example after initialization of all parameters  it getting stuck with advertising_init() function with error 

ERROR 7[NRF_INVALIDE_PARAM].

Hope will get solution from support team.

Best Regards,

Embel Technologies,

Parents
  • Hi Neha, 
    Could you let me know what exactly you want to achieve by merging ble_app_uart with ble_app_beacon ? 
    Please note that the softdevice only allow to advertise one set of advertising data at a time. 

    Could you provide the full code of your application  ? 

    Have you checked which exact function inside advertising_init() that is throwing error / ? 

Reply
  • Hi Neha, 
    Could you let me know what exactly you want to achieve by merging ble_app_uart with ble_app_beacon ? 
    Please note that the softdevice only allow to advertise one set of advertising data at a time. 

    Could you provide the full code of your application  ? 

    Have you checked which exact function inside advertising_init() that is throwing error / ? 

Children
  • i m using SDK 17.1.0 , S132 softdevice

    I want to set some sensor's value from mobile app using NUS and  use advertise beacon data.

    for that i initialized

    NUS service --> set sensors value by mobile app--> disabled NUS-->beacon advertise init function--> start advertise(beacon)

    Actually getting error for  below mentioned function of advertising init() of beacon 

    err_code = sd_ble_gap_adv_set_configure(&m_adv_handle, &m_adv_data, &m_adv_params);
    APP_ERROR_CHECK(err_code);

    it return ERROR 7.

  • Above mentioned function stuck  

    when used  parameter  #define NON_CONNECTABLE_ADV_INTERVAL MSEC_TO_UNITS(30000, UNIT_0_625_MS) 

    but  code works fine when  used  #define NON_CONNECTABLE_ADV_INTERVAL MSEC_TO_UNITS(10000, UNIT_0_625_MS) 

    Dont know why???

  • Please double check if there is anything changed when you bring the code from the beacon example to the nus example. For example the device name can be longer etc. 

    This is the description of the sd_ble_gap_adv_set_configure() function: 


    * @retval ::NRF_ERROR_INVALID_PARAM Invalid parameter(s) supplied:
    * - Invalid advertising data configuration specified. See @ref ble_gap_adv_data_t.
    * - Invalid configuration of p_adv_params. See @ref ble_gap_adv_params_t.
    * - Use of whitelist requested but whitelist has not been set,
    * see @ref sd_ble_gap_whitelist_set.

Related