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, 

    Thanks for your quick response. The target hardware I am using is the BL651 from Laird which has a nRF52810.

     The attached Screenshot shows the error that pops up when I try to erase memory using IAR embedded workbench. The general protocol that I follow Debug any program on IAR is to erase memory, download respective hex file and then go for download and debug.

    Do you have any fix for this?

    Waiting for your reply.

Children
Related