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

Broadcaster mode

Hello,

I want to use broadcaster mode for nrf51822, could you tell me please what I must to do to use this mode?

I suppose I must to set BLE_GAP_ADV_TYPE_ADV_NONCONN_IND mode, configure 'interval'(as I read in specification it must be greater than 100ms), to set only 'BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED' flag, setup advertise data and call sd_ble_gap_adv_start(). Is it true?

And may be you have any demo project?

Best Regards, Artem Zemlyanukhin

Parents
  • You're quite correct in your assumptions. You can take a look at the attached project for an example of such application.

    This one will send advertisement data in the format expected by nRF Temp smart phone application, but the basic principles of how to do non-connectable advertising are the same.

    Edit: If the data you want to advertise does not belong to a service, you can use the manufacturer specific data format, like this:

    
    ble_advdata_manuf_data_t manuf_specific_data;
    manuf_specific_data.company_identifier = YOUR_BLUETOOTH_ASSIGNED_NUMBER;
    manuf_specific_data.data.p_data = YOUR_DATA
    manuf_specific_data.data.size = sizeof(YOUR_DATA);
    ...
    advdata.p_manuf_specific_data   = &manuf_specific_data;
    
    

    The different formats you can use for advertisement data is given in the Core specification, Volume 3, Part C, chapter 18 Appendix C.

    Edit 2: I've updated the zip with a new one, including nrf_temp_init().

    ble_app_temp.zip

Reply Children
No Data
Related