BLE advertising update data of ble_app_template example for 15.3 SDK is not working

hello everyone,

i am using nrf52810 with my custom board which contains mpu6050 accelerometer and Gyro-meter so now i want to achieve connectable beacon like it should be connectable as well as advertising the accelerometer and Gyro data in the nrf mobile application sine i used ble_app_template example which provide from the Nordic-team  and this is the link of it -

/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_update_5F00_advertising_5F00_data.zip.

so when i test this with 17.01 SDK  its worked and i can able to advertise the some payload data but its not worked for 15.3 SDK and also i want to update the accelerometer and gyro data continuously every second .please anybody help me to achieve this thing or share any reference code snippet which will be useful for implement.

thank you.

  • Hello,

    Start by creating two ble_gap_adv_data_t buffers, and then alternate which of the two you provide to the update function and which you update the contents of.
    If this does not work, share the code, using the Insert -> Code option, you used in your attempt so that I may advice on what you should do.

    Ok. i will use latest sdk to read the sensor data and ble_update_data and i'll let you know.

    A beacon usually refers to a device that is advertising as non-connectable. You can absolutely implement this with SDK v17.1.0 - in general I would recommend that you use the latest SDK release for development, if possible.

    No, actually i want to use as both connectable and advertise and continuously update the data. if its non-connectable means how can i implement this??.

    thank you.

  • sagarnayakm said:
    Ok. i will use latest sdk to read the sensor data and ble_update_data and i'll let you know.

    Great! Slight smile

    sagarnayakm said:
    No, actually i want to use as both connectable and advertise and continuously update the data. if its non-connectable means how can i implement this??.

    You can continue advertising after having established a connection, sure!
    Are you then looking to create additional connections, or just have a single connection while also continuing to advertise?
    In case of the latter you can do this by restarting unconnectable advertising as part of your CONNECTED event handle (because the advertising library will stop advertising when a connection is established).

    Best regards,
    Karl

  • Hello,

    You can continue advertising after having established a connection, sure!
    Are you then looking to create additional connections, or just have a single connection while also continuing to advertise?

    No, i need only one connection. thank you for your valuable information, i will implement the thing and let you know.   

  • sagarnayakm said:
    No, i need only one connection. thank you for your valuable information, i will implement the thing and let you know.

    No problem at all, I am happy to help! :)

    Great, let me know how it goes!

    Best regards,
    Karl

  • Hello,

    yeah, now i can able to read the accelerometer and gyro-meter data but here the thing is i don't want to update the data for manf_specific_update_data  as a payload and now i need to update the data as service data for this i got some code snippet and here i don't know how to update the sensor data continuously and also advertise??. One more thing is i am bit confused about this complete 16-bit  service UUID and another one  UUID which is editable. so please let me know about this and help me to implement my thing.

    please find the below attachment for more details,

    thank you.

Related