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

nus_c and nus example, How to achieve networking?

I have achieved Bluetooth connection between 1*ble_central<------>6*ble_peripheral.

But, ble_peripheral sometimes upload data at the same time, then sometimes lose data. Most of the time is the ble_peripheral uploading data, a few times there are instructions from ble_central.

Do I need to add the networking protocol, such as TDMA, but it's a little too difficult.

Is there a simpler solution?

Best regards!

John

Parents
  • Hello John,

    then sometimes lose data.

    Could you elaborate what you mean by this? Data is never lost in the BLE link, since the data will be transmitted again if it is not acknowledged by the other device in the connection.

    Do I need to add the networking protocol

    No, you do not have to implement any networking protocol - changing your connection parameters will likely resolve this issue.
    What is you current connection parameters: connection interval min, max, slave latency and timeout?
    Could you also tell me how often each peripheral unit has new measurements that needs transferring, and approximately how much time / effort the central will have to spend processing the data from each transfer?

    Looking forward to solving this issue together,

    Best regards,
    Karl

  • Hi Karl,

    Sorry for my late reply to you. For project change requirements, I need to use the whitelist function. I need to add the whitelist to verify and modify the connection parameters. Now there is another question, how to add the second one after the first whitelist is added successfully?

Reply Children
Related