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

NUS C and NUS "flow control"

Hello,

Few questions about NUS and NUS C please.

Is there any way to know how many TX are pending ?

Are TX notify or indicate ? How to change it please ?

Thank you

Parents
  • If you are trying to implement the BLE traffic flow control then the application can now configure packet counts per link, using the SV call sd_ble_cfg_set() with the cfg_id parameter set to BLE_CONN_CFG_GATTC and BLE_CONN_CFG_GATTS as shown here and then the application can keep track of how many tx buffers are free/full by locally counting(incrementing the transmit(TX) and decrementing the count when the app get BLE_GATTS_EVT_HVN_TX_COMPLETE

Reply
  • If you are trying to implement the BLE traffic flow control then the application can now configure packet counts per link, using the SV call sd_ble_cfg_set() with the cfg_id parameter set to BLE_CONN_CFG_GATTC and BLE_CONN_CFG_GATTS as shown here and then the application can keep track of how many tx buffers are free/full by locally counting(incrementing the transmit(TX) and decrementing the count when the app get BLE_GATTS_EVT_HVN_TX_COMPLETE

Children
Related