Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to run UART/Serial Port Emulation over BLE on SDK v14.2.0?

I try to run UART/Serial Port Emulation over BLE on SDK v14.2.0 with nRF52 DK and nRF Connect on Android phone following link "http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v12.2.0%2Fble_sdk_app_nus_c.html&cp=4_0_1_4_2_0_2". I compile and download example code with softdevice S132, the phone detect Nordic-Uart, and connected, but nothing more than that, if I try to send something, BLE will disconnected, even it will be re-connected if requested. I run Tera Term on PC, it shows Nordic-UART, but does not show anymore thing, no response to keyboard. There are some code displayed in this link, they are said added to be added in softdevice, it is not clear that they are already added and I do not have to add them in again, if that is the case, why they are displayed here. If not added, where they should be added, in main.c or ble_nus.c? Please help!

Parents
  • Hi,

    You are linking the the NUS central application. It sounds like you want to use the peripheral application? Did you change anything in the example? Have you tested the precompiled HEX-file found in the hex directory in the example folder? Could you please post some screenshots showing the output of the terminal, etc.? You should not need to add anything to the example to get it working, the code in the link explains how you can use the received strings to do things in the application. This is an extension to the application, and is not needed for the purpose of the example.

    Best regards,
    Jørgen

  •  Thank you for help, Jorgen! I tried both Peripheral and central also download hex file with nRFGo, the behaviors are the same. Tera term does not response to keyboard, nRF Connect  and in mobile phone detect Nodic_UART, and connected bonded, but When I type something and send, it immediate disconnected, fail to show on Tera term. Here are two screen shots.  

      I also try nRF UART V2.0 on mobile phone, the response is capture as follows:

Reply
  •  Thank you for help, Jorgen! I tried both Peripheral and central also download hex file with nRFGo, the behaviors are the same. Tera term does not response to keyboard, nRF Connect  and in mobile phone detect Nodic_UART, and connected bonded, but When I type something and send, it immediate disconnected, fail to show on Tera term. Here are two screen shots.  

      I also try nRF UART V2.0 on mobile phone, the response is capture as follows:

Children
Related