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

Usage of S132 v4.0.x ble-features

Hello,

I just went through the release-notes of the S132 and found a passage that the s132_nrf52_4.0.0-1.alpha introduced some new ble-features like f.ex. the role-configuration for up to 20 links individually.

It also states that the hvn-queue-size could be configured - does that mean that while having a tx-packet-count of 7 for each connection, I am able to still queue more then 7 notifications before I receive a BLE_ERROR_NO_TX_BUFFERS-error?

So far I couldnt find some description on how to make use of all those new softdevice-feature - do I need a new SDK (currently v12.2.0) for it?

Kind regards,

Ray

  • Hi,

    I just went through the release-notes of the S132 and found a passage that the s132_nrf52_4.0.0-1.alpha introduced some new ble-features like f.ex. the role-configuration for up to 20 links individually.

    That is correct, SoftDevice S132 v4.0.X added support for 20 connections, where you can freely configure each link in any combination between Peripheral and Central.


    Q1: It also states that the hvn-queue-size could be configured - does that mean that while having a tx-packet-count of 7 for each connection, I am able to still queue more then 7 notifications before I receive a BLE_ERROR_NO_TX_BUFFERS-error?

    A1: The application packet concept has been replaced with a dedicated transmission queue for Handle Value Notifications. The number of Handle Value Notifications that can be queued is configured by ble_gatts_conn_cfg_t::hvn_tx_queue_size. When the queue is full, the function call will now return NRF_ERROR_RESOURCES. BLE_ERROR_NO_TX_PACKETS / BLE_ERROR_NO_TX_BUFFERS is no longer used. A BLE_GATTS_EVT_HVN_TX_COMPLETE event will be issued as soon as the transmission of the notification is complete.


    Q2: So far I couldnt find some description on how to make use of all those new softdevice-feature - do I need a new SDK (currently v12.2.0) for it?

    A2: Yes, you need to upgrade to SDK 13, as shown in the compatibility matrix. There are also new examples that shows you how to use the new functionality, such as the BLE Multiperipheral Application

  • Thank you very much for the fast response! Ill make sure to check it out :)

Related