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

Make communication between ble central and ble peripheral

I am using Nordic NRF528321 with SDK 11.0 and soft device S132 as ble central.At peripheral side it is Nordic NRF51422 with SDK12.2 and soft device S130.I am trying to pair these two devices using the example codes. Ble peripheral starts advertising and Ble central starts scanning but the problem is ble central not able detect the uuid of the peripheral,simply it displays the 'scanning times out' message.I am newbie to the nordic.

I don't have any idea on where to update the Peripheral uuid at central side.Is there any updation in the program is required to make pairing in the example code or else just example code enough.I need to send some 25 bytes of data from the uart to peripheral and has to receive some 25 bytes of response from the peripheral.I was struggling to understand the events occurred between these two from the past two days.Please explain me the happenings in a simple way.

Kindly give me some suggestions where I need to add the update and what has to be included.

Awaiting for your responses.Thanks in advance.

Parents
  • Thank you so much for your response,Just started to going through the basic tutorials like making communication between android device as central and nordic peripheral.My requirement is,based on the request from the BLE central, I need to fetch some sensor data at regular intervals from the nordic peripheral and send back to the central device via nus and store it in database through uart serial communication.Really I am not having any idea,how to give the connection interval,at central side where I need to enter the UUID of the device which is advertising,to detect the device while scanning happens.Please tell me from where I need to start and share some sample code for ble central and peripheral communication.I can able to understand the concept,but it is very confusing while implementing it with the events.

  • Hi,

    As a starting point, I would recommend taking a look at the Nordic UART over BLE examples that implement the Nordic UART Service (NUS).

    For the Central use the following project:

    <SDK_InstallFolder>\examples\ble_central\ble_app_uart_c
    

    For the Peripheral use the following project:

    <SDK_InstallFolder>\examples\ble_peripheral\ble_app_uart
    
Reply Children
No Data
Related