Setting sequence number of LE Audio broadcast stream

Hello, 
when sending audio packets using a broadcast stream one can provide the seq_num of the packet (using the function `int bt_bap_stream_send(struct bt_bap_stream *stream, struct net_buf *buf, uint16_t seq_num)`.
I am trying to relay a broadcast (with only 1 BIS), where also the sequence number should be the same. However, when the relayed stream is started, the sequence lways begins at 0. When following the code execution the sn is set in the ```bt_iso_chan_send``` function, so I assume the controller actually sets the sn to 0 for a new stream.

I am using a nrf5340-dk with the nordic softdevice-controller on the network core. 
Is there a way to actually set the seq_nr of the stream?

Parents Reply
  • Basically yes.
    If the second device, that copies the audio stream, could also set the sequence number to the same value, the transition between the two devices would be as simple as: receive packet with SN x from device A and then receive the next packet with SN x + 1 from device B. 
    Currently I try to match the packets from device A and B and determine which payloads are identical. (packet from dev A with SN x = packet from dev B with SN y, then i can assume that packet from dev A with SN x + n = packet from dev B with SN y + n)

Children
Related