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

nRF51822 API sequence

Let me ask you a communication sequence between nRF51822 and peripherals.We assume 5 peripherals.

In a sample program for multilink, original sequence is that 5 times repetition of API request / receive reply. Dear Sir We would like to change the sequence as follows. 5 API requests to peripherals at a time. After waiting some time, receiving each 5 replies from peripherals.

Question: Original sequence: 5 times repetition of API requests / receive reply. New sequence: 5 API requests to peripherals at a time. After that, receiving each 5 replies from peripherals. Is new sequence is possible for nRF51822?

Thanks in advance.

Parents
  • Hi T.shib,

    With BLE there is no native way to sync between peripherals.

    What we have now is that the peripheral stack will try to response in the next connection event after it receives the request unless the characteristic has authorization requirement.

    You mentioned that "original sequence is that 5 times repetition of API request / receive reply" I could you point me to that code ?

    I don't see any reason you can't call a write/read request for all 5 peripheral you don't have to wait for response from each of them before calling other request.

Reply
  • Hi T.shib,

    With BLE there is no native way to sync between peripherals.

    What we have now is that the peripheral stack will try to response in the next connection event after it receives the request unless the characteristic has authorization requirement.

    You mentioned that "original sequence is that 5 times repetition of API request / receive reply" I could you point me to that code ?

    I don't see any reason you can't call a write/read request for all 5 peripheral you don't have to wait for response from each of them before calling other request.

Children
Related