nRF5340 Audio DK - Encrypted Broadcast

Hi everyone,

I'm developing with nRF5340 Audio DK and able to successfully run the example code in BIS mode (I own 3 DKs).

I'm interested in adding encryption to the broadcast stream and noticed these two defines in the code:

CONFIG_BT_AUDIO_BROADCAST_ENCRYPTED
CONFIG_BT_AUDIO_BROADCAST_ENCRYPTION_KEY

In the file "prj.conf", I've set the following:

CONFIG_BT_AUDIO_BROADCAST_ENCRYPTED=y
CONFIG_BT_AUDIO_BROADCAST_ENCRYPTION_KEY="testkey"

then, I programmed one DK as gateway and another DK as headset, using Nordic's Python script.

Unfortunately, audio isn't played anymore. LED1 indication seems okay (blinking), but nothing is actually heard.

When setting 

CONFIG_BT_AUDIO_BROADCAST_ENCRYPTED=n
 again, things are back to normal.

Am I doing something wrong? Is this a bug? How can I successfully configure an encrypted broadcast stream?

Thank you,

Dekel

Parents Reply Children
  • Hi Dekel,

    Dekel said:
    Can you please share with me the whole process of encryption? Maybe I'm doing something wrong.

    Of course.

    I started with a clean nRF5340 Audio application.

    These three configs were added to prj.conf:

    CONFIG_TRANSPORT_BIS=y
    CONFIG_BT_AUDIO_BROADCAST_ENCRYPTED=y
    CONFIG_BT_AUDIO_BROADCAST_ENCRYPTION_KEY="testkey"

    The serial number for my Audio DKs was edited in tools\buildprog\nrf5340_audio_dk_devices.json (Headset L and Gateway).

    I built and programmed the application (from tools\buildprog) with

    python .\buildprog.py -b debug -d both -c both -p

    The application works as expected.

    Let me know if I missed something in your initial post.

    Best regards,

    Maria

  • Thank you for sharing that.

    I tried again with a clean copy of the example code and it worked!

    Thank you!

Related