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

ble_app_uart don't get data over uart to ble

Hey guys,

I'm working with a Laird BL652-DVK (nrF 52832 - chip), Nordic SDK v.14.2.0 and SES (Segger Embedded Studio v.4.30). My goal is to send data from sensor over bluetooth to my phone and/or pc. At first I tried the periphal examples "uart" and "spi" separatly and that worked. After that I combined both examples to "uart_spi" and that worked too.

The next steps are to try out the ble_periphal example "ble_app_uart" and then send datas from a sensor over bluetooth (with modified example "ble_app_uart", but without the uart part). But the ble_periphal example "ble_app_uart" doesn't work. When I send with my phone (app: nRF Connect) a message (e.g. "hey") via bluetooth  I receive it on my pc terminal program Termite v3.4. But when I input the message "hello", "hello\n" or "hello\r" in Termite I don't receive the datas on my smartphone via bluetooth.

Here is my code (unmodified):

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
* Copyright (c) 2014 - 2017, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form, except as embedded into a Nordic
* Semiconductor ASA integrated circuit in a product or a software update for
* such product, must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Here is a screenshot of Termite: (green color: received data via UART; blue color: send data via Termite)

Here is a screenshot of my phone (app: nRF Connect):

->in RX Characteristic I see the data which I send over bluetooth to my pc terminal program. But I don't know where to see the received data via ble?

I hope you can help me.

Thanks in advance

Christoph