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

adding scan response

from training document from Nordic company(see the attachments),it mentioned that we can add scan response .but i can not find any information in BLE_HRS demo.could you tell me.how can i find it ,and how to add scan response. i choose the PCA10000 dongle in active scan mode,it needs scan response,also it sends scan request to NRF51822.and how can i know what information does the PCA1000 sent to? TKS!

i am a freshmen ,i just know little thing about nrf51822.and so i have so much questions.thank you for helping me! do you have any application note about software development with NRF51822?

3.png

4.png

Parents
  • A scan response can be added by passing a pointer to a second ble_advdata_t structure to ble_advdata_set().

    The contents of the scan response can be freely chosen by the application. Since there is room for only 31 bytes in the advertisement package, it might be useful to add further data to the scan response, if for example the device has many services and a long name that can't fit in the 31 bytes. There is no requirement to have a scan response, and if your application can fit all the data it needs to advertise in the advertisement package, there is no benefit in adding a scan response.

    We don't have any such app notes yet, but are working on one internally. For now, the only thing I can recommend is to make sure you know embedded C well, including usage of structs and pointers, and look closely at the examples provided. By starting in main.c and looking on the different functions that are called, and the fields of different structs, it shouldn't be too bad to build simple BLE applications.

    Edit: Clarify what a scan response can be used for.

Reply
  • A scan response can be added by passing a pointer to a second ble_advdata_t structure to ble_advdata_set().

    The contents of the scan response can be freely chosen by the application. Since there is room for only 31 bytes in the advertisement package, it might be useful to add further data to the scan response, if for example the device has many services and a long name that can't fit in the 31 bytes. There is no requirement to have a scan response, and if your application can fit all the data it needs to advertise in the advertisement package, there is no benefit in adding a scan response.

    We don't have any such app notes yet, but are working on one internally. For now, the only thing I can recommend is to make sure you know embedded C well, including usage of structs and pointers, and look closely at the examples provided. By starting in main.c and looking on the different functions that are called, and the fields of different structs, it shouldn't be too bad to build simple BLE applications.

    Edit: Clarify what a scan response can be used for.

Children
No Data
Related