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

nRF52 ble to ble transfer continuous data for

Hello!!

We are carrying out a project using nRF52832, in which we must send a data to a phone every 1 second for 10 hours. The data sent is a sequence of numbers from 1 to 36000 (counting every second that passes).

The sending of data must be through ble.

We have been looking for information and have seen on the nordic website that 

ble_nus_data_send();

is the most efficient, fast and secure function for sending and receiving data via ble. 

1. We want to ask just to make sure this is right?

2. If the above question is correct, this function should be used in  static void on_ble_evt()  ?

 

On the other hand, we want the phone to also be sending data to nRF52832 (the same number sequence with the same sample):

3. Is it possible to be sending and receiving at the same time in nRF52832? or should there be a time gap between receiving and sending?

4. What is the best way to receive data in nRF52832 continuously and for so long?

Thank you very much for your time and help!

Parents
  • Hi, I would like to update this ticket and provide the information I used to resolve my question, so that if anyone else requires it they can help with my response.

    I ended up using characteristics to be able to send and receive information with a cell phone and used the nRF52832 as a peripheral. For the number sequence I simply created a counter and send the data via a characteristic with the function:

    static void on_write(ble_os_t * p_our_service, ble_evt_t const * p_ble_evt)

    I hope this serves someone else, the characteristics method is a very effective and continuous method. Have a very good day!

Reply
  • Hi, I would like to update this ticket and provide the information I used to resolve my question, so that if anyone else requires it they can help with my response.

    I ended up using characteristics to be able to send and receive information with a cell phone and used the nRF52832 as a peripheral. For the number sequence I simply created a counter and send the data via a characteristic with the function:

    static void on_write(ble_os_t * p_our_service, ble_evt_t const * p_ble_evt)

    I hope this serves someone else, the characteristics method is a very effective and continuous method. Have a very good day!

Children
No Data
Related