I am new in nrf52832 field i am trying to send some customized data(scan response) in ibeacon format of advertising. suggest me some ways or code to do the same
Thankyou in advance
I am new in nrf52832 field i am trying to send some customized data(scan response) in ibeacon format of advertising. suggest me some ways or code to do the same
Thankyou in advance
Hi Piyush,
Which SDK are you using ?
If you use NCS SDK you can try testing with the \zephyr\samples\bluetooth\ibeacon example.
You can add the scan response data, similar to the advertising data:
I am using nrfsdk 17.1.0
Have you tried to modify ble_app_beacon so that it advertise as iBeacon (with the advertising packet) ?
yes
yes
Hi,
If it's the case, you can do the following change to add the scan response packet in:
- Change m_adv_params.properties.type in advertising_init() from BLE_GAP_ADV_TYPE_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED to BLE_GAP_ADV_TYPE_NONCONNECTABLE_SCANNABLE_UNDIRECTED so that it allows scan request/response.
- Edit the m_adv_data struct to add a similar array as m_enc_advdata into scan_rsp_data for example create a m_enc_advdata2. Again, note that you need to use company ID 0x4c in the manufacturer data so that Apple recognize it as iBeacon.