1M PHY update for nrf5340_audio

Dear all,

    Recently, I developed LE audio examples using nRF5340 following the instructions from nRF connect SDK 2.5.2 (https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/nrf/applications/nrf5340_audio/doc/index.html). And everything goes well for the original version.

     However, it seems that in BIG mode, all audio packets are 2M PHY instead 1M PHY. For some reason, I need to keep all packets as 1M PHY ones. I am not sure if it's possible to keep the 1M PHY for all packets. If possible, how can I update?

Best,

DZ

Parents
  • Thanks for your reply.

    Based on the post, I changed the required line by using BT_CODEC_QOS_1M instead of BT_CODEC_QOS_2M and rebuild the demo. However, it's still 2M PHY for BIS/CIS cases.

    So, I would like to know if I missed something, or I have to create a preset by myself?

    Best,

    DZ

  • Hi, 

    For NCS v2.6.0, it needs:

    1. update the option for creating ADV-EXT in bt_mgmt.h like the following
      The diff is 
      +++ b/applications/nrf5340_audio/src/bluetooth/bt_management/bt_mgmt.h
      @@ -12,7 +12,7 @@
      #include <zephyr/bluetooth/audio/audio.h>
      #define LE_AUDIO_EXTENDED_ADV_NAME                                                                 \
      -       BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | BT_LE_ADV_OPT_USE_NAME,                            \
      +       BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | BT_LE_ADV_OPT_USE_NAME | BT_LE_ADV_OPT_NO_2M,                            \
                              CONFIG_BLE_ACL_EXT_ADV_INT_MIN, CONFIG_BLE_ACL_EXT_ADV_INT_MAX, NULL)


      The key is to add BT_LE_ADV_OPT_NO_2M. 
    2. update the QoS setting like in zephyr host (probably you have already done it)
      diff --git a/include/zephyr/bluetooth/audio/audio.h b/include/zephyr/bluetooth/audio/audio.h
      index 03f451a3c8b..f7ace749e9d 100644
      --- a/include/zephyr/bluetooth/audio/audio.h
      +++ b/include/zephyr/bluetooth/audio/audio.h
      @@ -446,7 +446,7 @@ enum {
        *  @param _pd Presentation Delay (usec)
        */
      #define BT_AUDIO_CODEC_QOS_UNFRAMED(_interval, _sdu, _rtn, _latency, _pd)                         \
      -       BT_AUDIO_CODEC_QOS(_interval, BT_AUDIO_CODEC_QOS_FRAMING_UNFRAMED, BT_AUDIO_CODEC_QOS_2M,  \
      +       BT_AUDIO_CODEC_QOS(_interval, BT_AUDIO_CODEC_QOS_FRAMING_UNFRAMED, BT_AUDIO_CODEC_QOS_1M,  \
                                 _sdu, _rtn, _latency, _pd)

    -Amanda H.

Reply
  • Hi, 

    For NCS v2.6.0, it needs:

    1. update the option for creating ADV-EXT in bt_mgmt.h like the following
      The diff is 
      +++ b/applications/nrf5340_audio/src/bluetooth/bt_management/bt_mgmt.h
      @@ -12,7 +12,7 @@
      #include <zephyr/bluetooth/audio/audio.h>
      #define LE_AUDIO_EXTENDED_ADV_NAME                                                                 \
      -       BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | BT_LE_ADV_OPT_USE_NAME,                            \
      +       BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | BT_LE_ADV_OPT_USE_NAME | BT_LE_ADV_OPT_NO_2M,                            \
                              CONFIG_BLE_ACL_EXT_ADV_INT_MIN, CONFIG_BLE_ACL_EXT_ADV_INT_MAX, NULL)


      The key is to add BT_LE_ADV_OPT_NO_2M. 
    2. update the QoS setting like in zephyr host (probably you have already done it)
      diff --git a/include/zephyr/bluetooth/audio/audio.h b/include/zephyr/bluetooth/audio/audio.h
      index 03f451a3c8b..f7ace749e9d 100644
      --- a/include/zephyr/bluetooth/audio/audio.h
      +++ b/include/zephyr/bluetooth/audio/audio.h
      @@ -446,7 +446,7 @@ enum {
        *  @param _pd Presentation Delay (usec)
        */
      #define BT_AUDIO_CODEC_QOS_UNFRAMED(_interval, _sdu, _rtn, _latency, _pd)                         \
      -       BT_AUDIO_CODEC_QOS(_interval, BT_AUDIO_CODEC_QOS_FRAMING_UNFRAMED, BT_AUDIO_CODEC_QOS_2M,  \
      +       BT_AUDIO_CODEC_QOS(_interval, BT_AUDIO_CODEC_QOS_FRAMING_UNFRAMED, BT_AUDIO_CODEC_QOS_1M,  \
                                 _sdu, _rtn, _latency, _pd)

    -Amanda H.

Children
Related