Raw advertisement as a whole when BLE_GAP_EVT_ADV_REPORT is being fired - worked with v5, doesn't work with v7


I'm currently levelling up a project based on an older SDK which involved SoftDevice v5 (S132) to SoftDevice v7 (S140).

As far as I understand S132 and S140 are practically the same, just used on different hardware (correct me if I'm wrong), so I'm only differentiating between the release versions here.

While I managed to migrate almost everything to the new version (SDK / SoftDevice) one thing is puzzling me:

Apparently the event structure for BLE_GAP_EVT_ADV_REPORT changed.

The project I'm taking care of relies on the advertisement packet as a whole being being available - which works fine with v5.

With v7 however (and, considering the docs, probably v6 as well) I only get *part* of the advertisement packet. At least the structure is different.

When, for example, I'm receiving an advertisement from an iBeacon, p_gap_evt->params.adv_report.data.p_data used to contain the raw advertisement, beginning - in my case - with 0x02, 0x01, 0x06, .. while with v7 it starts with the (short) local name of the beacon.

Docs for v5: https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v5.0.0%2Fstructble__gap__evt__adv__report__t.html&resultof=%22%62%6c%65%5f%67%61%70%5f%65%76%74%5f%61%64%76%5f%72%65%70%6f%72%74%5f%74%22%20%22%53%74%72%75%63%74%22%20%22%73%74%72%75%63%74%22%20%22%52%65%66%65%72%65%6e%63%65%22%20%22%72%65%66%65%72%22%20

Docs for v6: https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.0.0%2Fstructble__gap__evt__adv__report__t.html&resultof=%22%62%6c%65%5f%67%61%70%5f%65%76%74%5f%61%64%76%5f%72%65%70%6f%72%74%5f%74%22%20%22%53%74%72%75%63%74%22%20%22%73%74%72%75%63%74%22%20%22%52%65%66%65%72%65%6e%63%65%22%20%22%72%65%66%65%72%22%20

How and where do I get the complete raw advertisement when BLE_GAP_EVT_ADV_REPORT is fired?


Parents Reply Children
No Data