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

multiple writes and notifications per connection interval

I know that it can be done and I have read the other posts. I'm still running on SDK8.0.0 with both a S110 and a S130. Using wireshark and the nordic sniffer firmware on a dongle I can see only one 20 byte attribute write command (not the req with response type) going out per connection interval. I also see the same thing on all notify type HVX messsages. I often see an empty PDU coming back interleaved in the writes and HVXs.

When I do my writes I call the stack send until I get back the no buffers return and then start queueing up and then every time I receive a TX Complete event I send the next one in my buffer. I always seem to get a TX Complete with only 1 in the count. I would have expected to pipeline my 4 writes into a single connection interval but that is not the case.

Any ideas? I have it on my plate to update to the latest stack, however I do want to put this issue to bed before stirring things up with new stack and SD. Is there an issue with 8.0.0 that updating will fix?

Parents
  • yes, S110 and S130 are 1:1, peripheral is notifying data to the central and the central is doing writes to the peripheral. Notifys work as expected when S110 is talking to an android phone. Write commands from S130 do not stack into one connection interval and notifications on S110 do not either when talking to the S130. There is something on the S130 that is doing something to consume the rest of the connection. I see tons of empty PDUs listed on WireShark interleaved with every write command and notification. Put android in for the S130 and I see noifications with no empty PDUs in between as I would expect.

Reply
  • yes, S110 and S130 are 1:1, peripheral is notifying data to the central and the central is doing writes to the peripheral. Notifys work as expected when S110 is talking to an android phone. Write commands from S130 do not stack into one connection interval and notifications on S110 do not either when talking to the S130. There is something on the S130 that is doing something to consume the rest of the connection. I see tons of empty PDUs listed on WireShark interleaved with every write command and notification. Put android in for the S130 and I see noifications with no empty PDUs in between as I would expect.

Children
No Data
Related