LE Audio throughput calculation & Audio Qos setting.

Using nrf5340 audio DK & ncs v2.60

I modify this function to print this information when the number of packages reaches 100.

Fullscreen
1
2
3
4
5
6
7
8
packet_count++;
if(packet_count ==100)
{
printk("Packet %d received: data_size=%d, bad_count=%d, sdu_ref=%d, channel_index=%d, recevied_frame_ts = %d\n",
packet_count, data_size, bad_count, sdu_ref, channel_index,recv_frame_ts);
packet_count =0;
bad_count = 0;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
\

Part of the result:

Fullscreen
1
2
Packet 100 received: data_size=120, bad_count=0, sdu_ref=136985719, channel_index=0, recevied_frame_ts = 136974165
Packet 100 received: data_size=120, bad_count=0, sdu_ref=137985719, channel_index=0, recevied_frame_ts = 137974155
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

120*100*8/((137985719-136985719)*10^-6) = 96kbps

Q1:Is this method reasonable?

Q2:By the way, I want to change the audio qos configuration in LE Audio application( sdk-nrf/applications/nrf5340_audio ) like this ticket, how to change?

Because these two questions are somewhat related, they were asked together.

Appreciate your help.