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

UART Implementation connection issue

Hi, I am learning how to implement Long Range on the UART central and peripheral examples using SDK 17.0.0. The error I am facing is that the debug terminal shows

[ app_timer: RTC:initialized

app: Debug logging for UART over RTT started.

app: Connected

app: Disconnected ]

The connection state switched immediately. The issue I think I face is about the high packet error rate : here

Will changing the dbm to 8 (max dBm for nRF52840) resolve this? And how to apply sd_ble_gap_tx_power_set() to the codes because I cannot find the function in the UART despite searching the whole file, any place I can learn to do this and if doing so will resolve the issue I am facing? Thank you.

Parents Reply Children
  • Hi Simonr, thank you for the guidance, appreciate the help. I tried another UART long-range example here: (link) and got the UART long-range to work. The debug messages are shown above on 25 Jul 2020.

    However, when I am sending messages via Putty from the Central side to the Peripheral side the messages I was sending was not consistent. Not consistent as in every time I hit the enter button the messages don't get sent. I am not able to understand why or if the function uart_event_handle(app_uart_evt_t * p_event) under main.c is responsible for such an outcome.

Related