<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nrf5340 audio Unicast client/Gatt Client resubscribing to bonded peer characteristics</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111468/nrf5340-audio-unicast-client-gatt-client-resubscribing-to-bonded-peer-characteristics</link><description>I have 2 nrf5340 devices, one running the Unicast Client and one running the Unicast Server. On the initial connection I am able to successfully stream audio. 
 On a restart of the Unicast server, the client successfully detects a BLE disconnection and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Jun 2024 08:53:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111468/nrf5340-audio-unicast-client-gatt-client-resubscribing-to-bonded-peer-characteristics" /><item><title>RE: nrf5340 audio Unicast client/Gatt Client resubscribing to bonded peer characteristics</title><link>https://devzone.nordicsemi.com/thread/487861?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 08:53:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dca36ec-eb44-4c62-9a4d-ea71a7442443</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Noted, no worries about the time you need. I was unfortunately a bit busy myself the past week!.. The case will be left open until it&amp;#39;s closed by you or we mark it as resolved and it will pop into my queue as soon as you reply (or bounce back to a team-queue if I&amp;#39;m out of office for a few days when you get back to me).&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 audio Unicast client/Gatt Client resubscribing to bonded peer characteristics</title><link>https://devzone.nordicsemi.com/thread/487692?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 10:44:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15e4b98b-47cc-43f6-9476-932142b4d508</guid><dc:creator>adunk</dc:creator><description>&lt;p&gt;Thank you for trying to duplicate this. I am also not seeing this issue on the dev kit with the example although I tried to leverage that for my development. I must have missed something. I will look into this and report back. Please give me a few days as I have other pressing issues and we have a temporary work-around for this current issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 audio Unicast client/Gatt Client resubscribing to bonded peer characteristics</title><link>https://devzone.nordicsemi.com/thread/487349?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2024 13:49:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe547e19-f6bf-4e4f-ba59-714833f54573</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;HL [00:00:00.857,391] &amp;lt;wrn&amp;gt; bt_pacs: PACS notify failed: -22&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The failure seems to be caused by an invalid argument, and the notify fails due to the peer not having enabled notification in this characteristic. Did you state that this error only occurs sometimes? When we try to recreate and set up the nRF audio application gateway and headset we&amp;#39;re not able to see the same behavior on our end..&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The PACS should describe what configs and features the device should support and I assume that your peripheral supports notifications. Are you able to verify this and narrow down any further why this occurs? It seems possible that it could be a following error due to the PACS notification failure&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 audio Unicast client/Gatt Client resubscribing to bonded peer characteristics</title><link>https://devzone.nordicsemi.com/thread/486191?ContentTypeID=1</link><pubDate>Tue, 28 May 2024 12:43:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff03ba95-5be5-48d1-89fb-04ee2955412f</guid><dc:creator>adunk</dc:creator><description>&lt;p&gt;I am using nrf Connect 2.6.1.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When trying to duplicate the issue on the nRF Audio demo...&lt;/p&gt;
&lt;p&gt;On the client side, I don&amp;#39;t get the &amp;quot;more than one sink endpoint found&amp;quot; warning.&amp;nbsp; So something must be going on with the timing of the service discovery.&amp;nbsp; It later successfully finds the LEFT sink, but apparently the initial incorrect configuration is enough to affect the streaming.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;GW [00:20:43.568,298] &amp;lt;inf&amp;gt; bt_mgmt_scan: Local addr: 74:60:22:FC:EF:24 (random). May time out. Updates not printed&lt;br /&gt;GW [00:20:43.568,298] &amp;lt;inf&amp;gt; bt_mgmt_scan: Scanning successfully started&lt;br /&gt;GW [00:20:43.576,385] &amp;lt;inf&amp;gt; bt_mgmt_scan: Creating connection to bonded device: DB:CB:13:0F:2B:1A (random)&lt;br /&gt;GW [00:20:43.581,146] &amp;lt;inf&amp;gt; bt_mgmt: Connected: DB:CB:13:0F:2B:1A (random)&lt;br /&gt;GW [00:20:43.582,366] &amp;lt;inf&amp;gt; bt_mgmt_scan: Local addr: 74:60:22:FC:EF:24 (random). May time out. Updates not printed&lt;br /&gt;GW [00:20:43.582,366] &amp;lt;inf&amp;gt; bt_mgmt_scan: Scanning successfully started&lt;br /&gt;GW [00:20:43.582,397] &amp;lt;inf&amp;gt; main: Device connected&lt;br /&gt;GW [00:20:43.861,724] &amp;lt;inf&amp;gt; main: Security changed&lt;br /&gt;GW [00:20:44.742,004] &amp;lt;inf&amp;gt; bt_rend_vol: VCS discover finished&lt;br /&gt;GW [00:20:46.343,078] &amp;lt;inf&amp;gt; unicast_client: LEFT sink stream configured&lt;br /&gt;GW [00:20:46.422,393] &amp;lt;inf&amp;gt; unicast_client: Enable stream 0x20002c90&lt;br /&gt;GW [00:20:46.741,607] &amp;lt;inf&amp;gt; unicast_client: Stream 0x20002c90 started&lt;br /&gt;GW [00:20:46.742,919] &amp;lt;inf&amp;gt; audio_usb: USB RX first data received.&lt;/p&gt;
&lt;p&gt;On the server side,&amp;nbsp;I get the same warning when resetting the Headset but the audio starts streaming and I can hear it over the headphones. I thought that warning was the issue since I am not getting any audio but apparently it recovers from this issue and at some point subscribes to the audio notifications.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; nRF5340 Audio nRF5340 Audio DK cpuapp&lt;br /&gt; NCS base version: 2.6.1&lt;br /&gt; Cmake run : Tue May 28 06:46:07 2024&lt;br /&gt;HL [00:00:00.323,608] &amp;lt;inf&amp;gt; fw_info: ------- DEBUG BUILD -------&lt;br /&gt;HL [00:00:00.323,608] &amp;lt;inf&amp;gt; fw_info: HEADSET left device&lt;br /&gt;HL [00:00:00.343,414] &amp;lt;inf&amp;gt; bt_mgmt_ctlr_cfg: Controller: SoftDevice: Version 5.4 (0x0d), Revision 8591&lt;br /&gt;HL [00:00:00.343,627] &amp;lt;inf&amp;gt; bt_mgmt: Local identity addr: DB:CB:13:0F:2B:1A (random)&lt;br /&gt;HL [00:00:00.348,968] &amp;lt;inf&amp;gt; bt_mgmt_adv: Local addr: 5B:93:B0:E7:9A:1B (random)&lt;br /&gt;HL [00:00:00.349,060] &amp;lt;inf&amp;gt; bt_mgmt_adv: Adv directed to: DB:41:76:83:AD:E1 (random).&lt;br /&gt;HL [00:00:00.349,670] &amp;lt;inf&amp;gt; bt_mgmt_adv: Advertising successfully started&lt;br /&gt;HL [00:00:00.576,354] &amp;lt;inf&amp;gt; bt_mgmt: Connected: DB:41:76:83:AD:E1 (random)&lt;br /&gt;HL [00:00:00.576,385] &amp;lt;inf&amp;gt; main: Connected&lt;br /&gt;HL [00:00:00.576,965] &amp;lt;inf&amp;gt; bt_mgmt_adv: RPA (Resolvable Private Address) expired.&lt;br /&gt;HL [00:00:00.577,056] &amp;lt;inf&amp;gt; bt_mgmt_adv: Local addr: 5B:93:B0:E7:9A:1B (random)&lt;br /&gt;HL [00:00:00.857,116] &amp;lt;inf&amp;gt; main: Security changed&lt;br /&gt;HL [00:00:00.857,391] &amp;lt;wrn&amp;gt; bt_gatt: Device is not subscribed to characteristic&lt;br /&gt;HL [00:00:00.857,391] &amp;lt;wrn&amp;gt; bt_pacs: PACS notify failed: -22&lt;br /&gt;HL [00:00:02.817,718] &amp;lt;inf&amp;gt; bt_content_ctrl_media: Discovery of MCS finished&lt;br /&gt;HL [00:00:03.137,725] &amp;lt;inf&amp;gt; unicast_server: LC3 codec config for sink:&lt;br /&gt;HL [00:00:03.137,725] &amp;lt;inf&amp;gt; unicast_server: Frequency: 48000 Hz&lt;br /&gt;HL [00:00:03.137,725] &amp;lt;inf&amp;gt; unicast_server: Duration: 10000 us&lt;br /&gt;HL [00:00:03.137,725] &amp;lt;inf&amp;gt; unicast_server: Channel allocation: 0x1&lt;br /&gt;HL [00:00:03.137,756] &amp;lt;inf&amp;gt; unicast_server: Octets per frame: 120 (96000 bps)&lt;br /&gt;HL [00:00:03.137,756] &amp;lt;inf&amp;gt; unicast_server: Frames per SDU: 1&lt;br /&gt;HL [00:00:03.217,651] &amp;lt;inf&amp;gt; main: Presentation delay 10000 us is set by initiator&lt;br /&gt;HL [00:00:03.544,158] &amp;lt;inf&amp;gt; unicast_server: Stream 0x2000fec8 started&lt;br /&gt;HL [00:00:03.556,915] &amp;lt;wrn&amp;gt; audio_datapath: Data received, total under-runs: 1&lt;br /&gt;HL [00:00:03.593,933] &amp;lt;inf&amp;gt; audio_datapath: Drft comp state: CALIB&lt;br /&gt;HL [00:00:03.693,939] &amp;lt;inf&amp;gt; audio_datapath: Drft comp state: OFFSET&lt;br /&gt;HL [00:00:04.193,664] &amp;lt;inf&amp;gt; audio_datapath: Drft comp state: LOCKED&lt;br /&gt;HL [00:00:04.193,939] &amp;lt;inf&amp;gt; audio_datapath: Pres comp state: MEAS&lt;br /&gt;HL [00:00:04.303,955] &amp;lt;inf&amp;gt; audio_datapath: Pres comp state: WAIT&lt;br /&gt;HL [00:00:04.443,939] &amp;lt;inf&amp;gt; audio_datapath: Pres comp state: INIT&lt;br /&gt;HL [00:00:04.453,948] &amp;lt;inf&amp;gt; audio_datapath: Pres comp state: MEAS&lt;br /&gt;HL [00:00:04.563,934] &amp;lt;inf&amp;gt; audio_datapath: Pres comp state: LOCKED&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try to look into why this mechanism is failing initially, but any insight into how the initial discovery&amp;nbsp;is failing would be very helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 audio Unicast client/Gatt Client resubscribing to bonded peer characteristics</title><link>https://devzone.nordicsemi.com/thread/485832?ContentTypeID=1</link><pubDate>Fri, 24 May 2024 13:14:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7912fcd1-6fcd-4f6a-940b-3d3e5bbf7147</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve picked up your case and will be looking into your issue. Do you know if the issue is reproducable on an Audio DK? Could you verify if &amp;quot;Unicast client and server&amp;quot; corresponds to &amp;quot;audio application gateway and headset&amp;quot;, or are you using the unicast_audio_client-/server from Zephyr?&lt;/p&gt;
&lt;p&gt;Could you also state what SDK and version you&amp;#39;re working with?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 audio Unicast client/Gatt Client resubscribing to bonded peer characteristics</title><link>https://devzone.nordicsemi.com/thread/485681?ContentTypeID=1</link><pubDate>Thu, 23 May 2024 15:47:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:138c2a1d-e745-4944-a6af-2aa52928b93f</guid><dc:creator>adunk</dc:creator><description>&lt;p&gt;Update...I did find I needed to do a little more cleanup on the disconnection when the server was reset and now my client side is configuring immediately on the connection. But I still&amp;nbsp;do not get the audio streaming and I still get the bt_gatt and bt_pacs warnings which indicate I am still not properly subscribing to the characteristic properly on a restart.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>