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

uart_event_handle method doesnt called to send a string

Hi,

I am trying to modify the multilink central example to send string to other board (peripheral)

I already did the UART configuration and in my tests I saw that when I sent a string by terminte the uart_event_handle method doenst called.

Are there any configuration for enable the uart interruption.

I think that the string must pass for this method (uart_event_handle), when I wrote the string in the termite and push enter

Can anyone help me?

Parents
  • Hello,

    Have you enabled "Append LF" or "Append CR-LF" in the settings of Termite? In the ble_app_uart example the uart event handler is waiting until it receives a full buffer, or until it receives the char '\n'. 

    If that is not the issue, what SDK and SoftDevice are you using? Have you set up both uart_init() and uart_event_handle() the same as in ble_app_uart?

Reply
  • Hello,

    Have you enabled "Append LF" or "Append CR-LF" in the settings of Termite? In the ble_app_uart example the uart event handler is waiting until it receives a full buffer, or until it receives the char '\n'. 

    If that is not the issue, what SDK and SoftDevice are you using? Have you set up both uart_init() and uart_event_handle() the same as in ble_app_uart?

Children
  • Hello Edvin,

    Follow below some answers.

    Have you enabled "Append LF" or "Append CR-LF" in the settings of Termite?

    Yes!

    SDK and SoftDevice are you using?

    I am using SDK 13

    Have you set up both uart_init() and uart_event_handle() the same as in ble_app_uart?

    Yes!

    Now, the uart_event_handle method is being called, and I wanna to send this string by ble to all peripherals conected in the central. 

    The uart example shows how to send a string to only one peripheral and the multilink example has how to send button event to all peripherals.

    Can you halp me with this adaptation?

Related