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

Connect to specific device using uuid and send data over uart

Hello Team.

I have NRF52840 Development Kit. here is description, what I want to do and How I am doing. 

I will send command on terminal and kit will start scanning for nearby Bluetooth devices and display their UUID and Name in PC terminal. after that I will send the command to connect to specific devices. (Mostly the devices are android mobiles).

1. I was go through one link:- " https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v4.1.0%2Fmd_examples_sdk_coexist_ble_app_uart_coexist_README.html&cp=7_2_3_3_1  " I tried to implement this example but I can not understand the flow and steps to get proper output. (If any one can explain then it will be good)

2. I was tried uart example at "\examples\ble_peripheral\ble_app_uart", I executed this example successfully but I want change this example for two way communication. but i can`t understand the flow of execution.

I don`t have deep knowledge of NRF52 kit. Also I am new to Embedded C Programming.I have basic knowledge of Python and C#.

Parents
  • Hi Kenneth,

    I went through your suggestions. I made somewhat progress. but I am stuck again with following questions and progress. take a look.

    I have NRF52840 DK, One Raspberry pi 3B+ ( for gateway) and One android mobile. I want to create mesh network with these things.

    My basic work flow is as per below.

    A. NRF52840 will communicate with gateway over UART.

    B.NRF52840 will communicate with Android mobile and NRF DK will send data to gateway.

    I am succeed on above both points.

     

    now I want to implement mesh network concepts. for that i want to do following points.

    1. NRF kit will continuously scan nearby Bluetooth devices and send UUID or name to gateway for provisioning purpose.

    2. Gateway will decide whether device will provisioned or not. ( I will do this part by my self using python code.)

    3. After the UUID or name of device provisioned then NRF52 kit will allow device to connect.

    4. After successful connection it can work as per point B

    I need some guidance on 1st, 3rd, 4th point.

    also,I have question

    Q1. is there any limitation of NRF kits that they will connect to NRF devices (like NRF DK or Thingy52) or It can connect to normal bluetooth like Raspberry Pi or android/ios phone (without NRF application) ?

    Q2. Is there any specific function that get the UUID of connected device and print that on terminal? (In uart example)

    Q3. I was trying to find received data which was sent by mobile app to NRF DK and print it over UART terminal. can you tell me how to get that data?

Reply
  • Hi Kenneth,

    I went through your suggestions. I made somewhat progress. but I am stuck again with following questions and progress. take a look.

    I have NRF52840 DK, One Raspberry pi 3B+ ( for gateway) and One android mobile. I want to create mesh network with these things.

    My basic work flow is as per below.

    A. NRF52840 will communicate with gateway over UART.

    B.NRF52840 will communicate with Android mobile and NRF DK will send data to gateway.

    I am succeed on above both points.

     

    now I want to implement mesh network concepts. for that i want to do following points.

    1. NRF kit will continuously scan nearby Bluetooth devices and send UUID or name to gateway for provisioning purpose.

    2. Gateway will decide whether device will provisioned or not. ( I will do this part by my self using python code.)

    3. After the UUID or name of device provisioned then NRF52 kit will allow device to connect.

    4. After successful connection it can work as per point B

    I need some guidance on 1st, 3rd, 4th point.

    also,I have question

    Q1. is there any limitation of NRF kits that they will connect to NRF devices (like NRF DK or Thingy52) or It can connect to normal bluetooth like Raspberry Pi or android/ios phone (without NRF application) ?

    Q2. Is there any specific function that get the UUID of connected device and print that on terminal? (In uart example)

    Q3. I was trying to find received data which was sent by mobile app to NRF DK and print it over UART terminal. can you tell me how to get that data?

Children
No Data
Related