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

Sending a string over BLE using a characteristic

Hello,

I want to develop a data transfer service which has a control characteristic that is used to write commands on the phone app and if the command matches any command in the command list the corresponding response (a string) is sent over another characteristic that will be a notify characteristic.

I saw many posts on Devzone regarding this and all those posts mention about the same ble uart example. I am not able to run this example on my board as there is a RAMcode error that pops up whenever i try to download and debug this example. I also have some doubts regarding this that is there are the uart initialization functions in the code so does it involve the uart to send and receive the data? and in ble_nus_data_send() function there is a call for blcm_link_ctx_get(), I want to know what the uart is doing in this program? also about the role of blcm_link_ctx_get() function which is checked before updating hvx_params.

Is there any other way to do what i want to do? i dont want to involve uart or anything else. I just want to have to characteristics which have the necessary properties.

Kindly help me through!!

Thank you

Parents Reply
  • Hey Awneil,

    Thats right. I have already worked with nRF52832 DK and i have tried the blinky example on that. I have also written characteristics for writing a byte of data and some thing like that. I want to know how to send data from my program to a phone app using a characteristic and thats it.

    Does Segger embedded studio need any license to try out these examples?

    Also can you explain me what the ble app uart program does as i am unable to run and debug it for myself. It would be really kind of you if you could help me in this. I want to know what is the role of UART in this? I mean how is data exchange taking place between BLE and phone app?

    Thanks & regards

    Sudeep R J 

Children
Related