Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

Maximum supported data length for an extended connectable advertising set

Hi,

I want to know how to use extended broadcasting in nRF5SDK.

I have tested the Broadcast Multiple of NCS2.6. The maximum extended advertising data length is 31 to 1651.

How to achieve similarity in nRF5SDK?

I can only extend the maximum length of broadcast packets to 31 bytes.

static void advertising_init(void)
{
uint32_t err_code;
uint8_t my_adv_manuf_data[27] = {0xFF};
ble_advertising_init_t init;
ble_advdata_manuf_data_t manuf_specific_data;

manuf_specific_data.company_identifier = 0x0059;
manuf_specific_data.data.p_data = my_adv_manuf_data;
manuf_specific_data.data.size = sizeof(my_adv_manuf_data);

memset(&init, 0, sizeof(init));

// init.advdata.name_type = BLE_ADVDATA_FULL_NAME;
// init.advdata.include_appearance = false;
// init.advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE;

init.advdata.p_manuf_specific_data = &manuf_specific_data;
init.srdata.p_manuf_specific_data = &manuf_specific_data;

// init.srdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
// init.srdata.uuids_complete.p_uuids = m_adv_uuids;

init.config.ble_adv_fast_enabled = true;
init.config.ble_adv_fast_interval = APP_ADV_INTERVAL;
init.config.ble_adv_fast_timeout = APP_ADV_DURATION;
init.evt_handler = on_adv_evt;


err_code = ble_advertising_init(&m_advertising, &init);
APP_ERROR_CHECK(err_code);

ble_advertising_conn_cfg_tag_set(&m_advertising, APP_BLE_CONN_CFG_TAG);

}

I have set ble_adv_extended_enabled in advertising_init.

But in the end, it was wrong.


How to use extended advertising?
Can srdata(scan response data) be greater than 31 bytes?

 

Related