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

How can I change the TX_BUFFERS on both nrf51 and nrf52?

HI, I get the information frome the sd_ble_tx_buffer_count_get that ,the nrf51 with S110 SD8.0 has 7 count(7*32BYTES) of TX_buffers (I can use 6cnt one time) . The nrf52 with SDK 0.9.2 SDs132_nrf52_2.0.0-4.alpha_softdevice has 3 TX_buffers(2 count can i used).

I want to know that


1. How can I change the tx_buffers size ,or how can I keep the txbuffers always have some data in there?    I have tested the BLE_EVT_TX_COMPLETE event to send data as fast as I can ,that is not fast enough.


Parents
  • I see that, every interval i can put no more than 2 count of packs into txbuffers the message sequence below is in one interval that shows what's I test the nrf52 works

    |--------master--------------------------------------slave-NRF52----------|

    |#1LL_DATA_PUD------------------->>>>>>>>>>>>>>>>SD------------|

    |------------------------150us-------------------------------------------------|

    |#2 <<<<<<------------------------------------LL_DATA PDU (pack 1)| (1 packs keep)

    |------------------------150us-------------------------------------------------|

    |#3LL_DATA_PUD------------------->>>>>>>>>>>>>>>>SD------------|

    |------------------------150us-------------------------------------------------|

    |#4 <<<<<<-------------------- LL_DATA PDU (pack 2) (no packs keep)

    |#5 no more data so no more LL_data_pud(empty or not) frome the master end this interval.

    I think the BLE_EVT_TX_COMPLETE is become frome #2 and #4

    what's I want is that I want to put one pack between #2 to #4 then I can keep the txbuffer always has packs. and then the #5 will not stop to send LL_data_pud.(the stack of the master is all under my control no matter the LL or BB)

    or if the rf txbuffer is more than 10*32BYTES it will works too .

Reply
  • I see that, every interval i can put no more than 2 count of packs into txbuffers the message sequence below is in one interval that shows what's I test the nrf52 works

    |--------master--------------------------------------slave-NRF52----------|

    |#1LL_DATA_PUD------------------->>>>>>>>>>>>>>>>SD------------|

    |------------------------150us-------------------------------------------------|

    |#2 <<<<<<------------------------------------LL_DATA PDU (pack 1)| (1 packs keep)

    |------------------------150us-------------------------------------------------|

    |#3LL_DATA_PUD------------------->>>>>>>>>>>>>>>>SD------------|

    |------------------------150us-------------------------------------------------|

    |#4 <<<<<<-------------------- LL_DATA PDU (pack 2) (no packs keep)

    |#5 no more data so no more LL_data_pud(empty or not) frome the master end this interval.

    I think the BLE_EVT_TX_COMPLETE is become frome #2 and #4

    what's I want is that I want to put one pack between #2 to #4 then I can keep the txbuffer always has packs. and then the #5 will not stop to send LL_data_pud.(the stack of the master is all under my control no matter the LL or BB)

    or if the rf txbuffer is more than 10*32BYTES it will works too .

Children
No Data
Related