use SDK17.
central uses nRF52832 and peripheral uses nRF52810.
I want to implement the exchange of data with each other.
First, the central scanned and connected.
After that, how can I send data to Peripheral?
Thank you...
use SDK17.
central uses nRF52832 and peripheral uses nRF52810.
I want to implement the exchange of data with each other.
First, the central scanned and connected.
After that, how can I send data to Peripheral?
Thank you...
The whole point of Bluetooth is exactly to transfer data!
You can either use one of the standard Profiles defined by the Bluetooth SIG, or create your own. The SDK contains many examples using standard BT SIG Profiles.
For just transferring Arbitrary unstructured data, you could use (or, at least, start with) Nordic's Proprietary UART Service - NUS. There are examples in the SDK
Here's a tutorial on creating your own custor Services:
devzone.nordicsemi.com/.../ble-services-a-beginners-tutorial
Hi
I am looking at central -> ble_app_uart in example
I know that BLE_NUS_C_EVT_NUS_TX_EVT is sending DATA from ble_nus_c_ect_handler.
While connected to the peripheral, data cannot be viewed from the peripheral.
What is the problem?
Thank you.
Start with the examples provided - then you will have a working basis from which to create your own setup.
awneil
I am also doing the same. The blinky example.
1) I did the peripheral example and I am able to see that in the phone app.
2) I did the central example and I think it connects to the peripheral bec as soon as I start the central, the peripheral just vanishes from the phone app.
3) I am not able to see the pushing of the button on central and blink the LED on peripheral or vice versa.
4) I am using:
a) ble_peripheral\experimental_ble_app_blinky as peripheral example
b) ble_central\experimental\ble_app_blinky_c as central example
c) Keil, nrf51822, S130 sodtdevice.
Please help me.
Do I need to change something in the code or am I missing something. (because the status of LED always remains high on both central and peripheral sides).
Hi,
You shouldn't have to make any changes to the example. Is LED 2 on, showing that the boards are connected to each other? If they're connected, then you should press button 1 on either board, and observe that LED 3 is on for the duration of the press on the other board, so you have to hold down button 1 in order for LED 3 to be on.
Best regards,
Marte
Hello Marte Myrvold,
A very happy new year to you and your loved ones.
Its working. I did a mistake. I was checking the voltage status at PIN 2. because BSP_BOARD_LED_2 is defined as 2. When I went deep into the led_init function I came to know that LED_2 is connected to pin_22.
:-) .
Have a good day.
Its working. I did a mistake. I was checking the voltage status at PIN 2. because BSP_BOARD_LED_2 is defined as 2. When I went deep into the led_init function I came to know that LED_2 is connected to pin_22.
:-) .
Have a good day.
Hi,
Great to hear that it's working now!
Thank you, and a happy new year to you as well.
Best regards,
Marte