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

Device is not advertising when creating custom service using UART service

Hi,

In my application I am creating one more custom service using UART service. I have created new files named ble_nus1.c and ble_nus1.h. In these files I have changed the variable names . But still the device is not advertising when flashing the code.

I am attaching main file and library files here. please can any help me to resolve the issue.

nus_hrs.c

library files:

ble_nus2.c

ble_nus2.h

Parents
  • Hi Elias,

    Thanks for your comment. I agree that it is not possible to go through entire code to resolve the issue. I regret for that. Actually I am trying to use two UART profiles in my code so that I can transfer more number of packets. Through one UART profile I am transferring the 1000 samples per seconds. Using another UART(custom) profile I want to send different packets. What I understand If we change UUID of new service then it should work as different service that we want.(This I tried previously with HRS ad HTS service).

    In this case I changed UART service UUID to 0x0004, TX char UUID to 0x0005 and RX char UUID to 0x0006. I had this issue earlier, but at that time execution was stopping at ble_stack_initialization. So after changing clock previous codes worked fine. This time code is stopping at advertising_init function. I am trying to figure out issue.

    Please can you give me some suggestion regarding this?

Reply
  • Hi Elias,

    Thanks for your comment. I agree that it is not possible to go through entire code to resolve the issue. I regret for that. Actually I am trying to use two UART profiles in my code so that I can transfer more number of packets. Through one UART profile I am transferring the 1000 samples per seconds. Using another UART(custom) profile I want to send different packets. What I understand If we change UUID of new service then it should work as different service that we want.(This I tried previously with HRS ad HTS service).

    In this case I changed UART service UUID to 0x0004, TX char UUID to 0x0005 and RX char UUID to 0x0006. I had this issue earlier, but at that time execution was stopping at ble_stack_initialization. So after changing clock previous codes worked fine. This time code is stopping at advertising_init function. I am trying to figure out issue.

    Please can you give me some suggestion regarding this?

Children
No Data
Related