LE Audio and custom service

We have an application today using Bluetooth classic to stream sound and BLE for streaming sensor data (not a nordic chip). We are looking at the possibility of replacing the chip with a nrf5340 and using LE Audio for streaming audio. I found some forum posts describing related issues and I interpret is as it should be possible to do. 
RE: Mix BLE audio and custom BLE Characteristic
Extend ble acl on LE Audio headset

I have 2 nrf5340 audio DKs and have managed to modify the nrf5340 audio sample to add a custom service on the peripheral, but haven't yet been able to read that service on the gateway. Do you have any examples or guides on how to do this? The second forum post I linked to says you have tested running 2 ACLs internally, but I haven't been able to find any code examples or instructions on how to set it up. I guess the way I have done it I use the same ACL for both LE Audio communication and the custom service.

Also, would one central be able to have different audiostreams to several peripherals, or would that require several centrals?

Parents
  • Hi, 

    Are you going to use CIS?

    Here is an unofficial example which is based on NCS v2.3.0. Although it is not for the NCS latest version, it's a good reference for a start. It uses NUS to send dummy data between the gateway and earbuds. 

    “Beware that this code/configuration is not fully tested or qualified and should be considered provided “as-is”. Please test it with your application and let me know if you find any issues.”

    Regards,
    Amanda H.

  • I have been testing this example with one gateway and one headset device running on 2 nrf5340 audio dk. If I try to increase the rate of messages I get a warning that messages are dropped. 
    Does this just mean the logging module dropped the messages because it couldn't keep up, or are they actually not being received?
    Do you have any experience with what kind of data rate is possible to achieve on the nus service when running LE Audio?

  • Hi, 

    Please try to increase the buffer size for the log by modifying CONFIG_LOG_BUFFER_SIZE.

    The data rate here is also related to the ACL connection interval and the DLE length. Also, the NUS is sending using ACL, so the link layer will need to make sure the packet arrives, otherwise the packet will be retransmitted. Therefore, the data rate would not be a fixed value, it also relates to the environment.

    -Amanda H.

Reply
  • Hi, 

    Please try to increase the buffer size for the log by modifying CONFIG_LOG_BUFFER_SIZE.

    The data rate here is also related to the ACL connection interval and the DLE length. Also, the NUS is sending using ACL, so the link layer will need to make sure the packet arrives, otherwise the packet will be retransmitted. Therefore, the data rate would not be a fixed value, it also relates to the environment.

    -Amanda H.

Children
No Data
Related