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

Can you specifically set the amount of packets per interval?

Hi!

I have an implementation running with a peripheral sending notifications to a central at 27.5 ms. They are both configured with HIGH BW. Sending of notifications is activated by pressing a button. I now see that when the button is pressed, the peripheral is able to put 7 packets into the buffer (and an 8th one overflowing it) in the first interval, but then it changes to 6 packets (+ a 7th that overflows the buffer) for the following intervals.

I actually want be able to achieve 6 packets per interval, for each interval, so also for the first one. So my question is, how is this possible?

The figure below illustrates once more the beginning of notification sending and thus the transitions from 7 to 6. Channel 2 is the radio. Channel 0 indicates putting a packet in the TX buffer and is thus first 8 times and then always 7 times. Channel 1 is I2C measurements of an accelerometer in between. image description

Kind regards

Mathias

EDIT 1

image description

Parents
  • I believe it actually transports 6 packets over the radio, note that Tx buffers inside SD aren't necessarily linked to number of packets transported over radio link. Do you have some confidence by looking into radio analyzer/sniffer trace that different numbers are going through the link in each interval? otherwise if you push 7 packets to the stack and then 6 of them are "cleaned" so you can push 6 more it indicates that 6 are going over the radio... can you make some GPIO counter on TX_COMPLETED event if their count corresponds to the numbers?

  • Sorry, I don't see the link with "calling HVX inside radio notification handler". Can you point me exactly to the spot in whole thread? I still believe that using single connection link and 7.5ms works for me in terms of achieving full 6 PDUs (but I can understand that these 1-2ms left for application might not give you enough time to process/prepare these data so going with connection interval in 10-20ms range might be solution, still better then what you use today).

Reply
  • Sorry, I don't see the link with "calling HVX inside radio notification handler". Can you point me exactly to the spot in whole thread? I still believe that using single connection link and 7.5ms works for me in terms of achieving full 6 PDUs (but I can understand that these 1-2ms left for application might not give you enough time to process/prepare these data so going with connection interval in 10-20ms range might be solution, still better then what you use today).

Children
No Data
Related