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

Add simple UART for Logging into BLE Multilink Central example (SDK16)

Hey folks,

I don't know what's the problem but I am really struggly to implement a simple UART into my heavily modified BLE Multilink Central Example (SDK16)..

Maybe some of you could give me some failproof hints? I just want my nRF52840-DK to allow me to read some data from his COM port..  Like it just should pop up on windows, let me connect and send stuff using print()..


I fiddled around with the UART Examples but nothing compiles or works so well.. 

Sadly RTT Viewer doesn't allow useful logging+viewing... logging with it locks the file.. and connecting to it using telnet does miss some values then and now which is a no go.. 

So I tried to directly read the com port of a arduino with about the same amount of data, but just fake data, and it works just fine..

Setup are like 14 peripherals connected to one central (nrf52840-DK) and sending measurements every 200 ms.. so far so good. Working. Only getting the collected measurement data to my PC using a serial connection is giving me a headache... (some versions ago RTT didn't miss any lines using telnet but sadly it does now... while UART seems to be working just fine (tested with an arduino)


PS: Any guide to change it to use CODED PHY is also warmly welcome.

  • Hi

    A similar question was raised just last week. My colleague has provided an example implementing UART to the multilink central in this ticket. If you want to implement it to your already modified multilink example I suggest taking a look at what changes and file inclusions have been done there.

    As for Coded PHY, these examples for ble_app_uart peripheral and central are configured to enable Coded PHY as the advertising/scanning PHY. For the peripheral, see the advertising_init() function, and for the central, see the scan_init() function.

    Long_range_15.2.zip

    Best regards,

    Simon

    NOTE: The examples provided are for SDK v.15.2, but the scan and advertising initialization shouldn't be changed since then.

Related