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

Updating UUID field and advertising the updated data

I had created application with enabling the UART service(as in Ble_uart_app example) and tried to update the Rx characteristics of UART service in connectable mode through nRF . If disconnected I have to transmit the data updated form app. But it seems the UUID field of normal Beacon mode and Uart service enabled mode is different (to my understanding). To update UUID characteristics what are all the steps I should follow.

  • Hi peter,

    I enabled the characteristic write permission as you said in answer for my earlier question.I didn't enable the UART service. The thing is I can able to update the Device name field through nrf connect. How to updated that data in UUID fied of beacon. Should I edit nus handler any another? can you assist me!

  • You cannot send data to an advertiser. Only thing you can send is connection request packet or scan request packet. If you want to update the RX characteristics you have to connect first. The device name field is only updated while connected.

  • Hi Ole, Currently I am in connectable and advertising mode only and I didn't mentioned it in earlier post. At present I can write the data to name field but I need to update UUID field of beacon. Is there any other possibility(can be in any form expect flashing of frimware) to update UUID field of beacon in connect mode and send the updated data in advertising packet when disconnected.

  • As Petter said in this thread you should create a characteristics with the UUID. That way the central can update the characteristics and then the peripheral can update its advertisement packet with the new UUID.

    When you say UUID in the beacon I assume you mean the uuids_complete (or similar) field in the advertisement packet? That leads to the question why do you want to update the UUID field? This is usually used for letting the central know what kind of services are available on the peripheral. If the peripheral is advertising non-connectable I don't see the use-case.

  • Hi Ole ,

    Before going into my doubts I just give my clear needs. Currently I am using ble_app_uart (peripheral mode) example . In that using UART service I have to update the UUID infromation or the data that is to be advertised have to be updated . When I disconnected this I have to receive the updated data is advertising packet.

    To achieve this what are all the steps I should follow.

Related