<?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 bt_le_ext_adv_create fails with err -5 in various samples</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93877/nrf5340-bt_le_ext_adv_create-fails-with-err--5-in-various-samples</link><description>Nrf Connect Version v2.1.2 
 VSCode Plugin v2022.10.30 
 
 Using various samples on my nRF5340DK fail with the following error codes: 
 
 hap_ha sample: 
 Bluetooth initialized Failed to create advertising set (err -5) Failed to set advertising data </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Nov 2022 21:01:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93877/nrf5340-bt_le_ext_adv_create-fails-with-err--5-in-various-samples" /><item><title>RE: nRF5340 bt_le_ext_adv_create fails with err -5 in various samples</title><link>https://devzone.nordicsemi.com/thread/397022?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2022 21:01:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbb006a1-95bf-4b8b-9e4f-592c064c2c89</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have enough information to know which mobile can support BLE Audio now.&amp;nbsp;Since those samples are provided by Zephyr, you could get further information from their&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://discord.com/invite/Ck7jw53nU2" rel="noopener noreferrer" target="_blank"&gt;Discord&lt;/a&gt;.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 bt_le_ext_adv_create fails with err -5 in various samples</title><link>https://devzone.nordicsemi.com/thread/397006?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2022 17:59:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab6869d3-d40f-49ec-9d07-123e0cc47b48</guid><dc:creator>Laur1n M.</dc:creator><description>&lt;p&gt;I already know about these but they don&amp;#39;t specify if an existing mobile os can work with any example. I had hoped to have simply overlooked that.&lt;/p&gt;
&lt;p&gt;Do I understand correctly that this means that there is no mobile os available which is able to connect to any of these examples and work with them?&lt;/p&gt;
&lt;p&gt;Shouldn&amp;#39;t Android 13 support LC3 Audio and therefore work with these examples?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do all these examples really only work when one&amp;nbsp;controls both client and server?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 bt_le_ext_adv_create fails with err -5 in various samples</title><link>https://devzone.nordicsemi.com/thread/397005?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2022 17:40:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b11fb870-e278-4e7d-af5f-a775618468d9</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;GTBS is the &lt;em&gt;Generic Telephone Bearer Service (GTBS&lt;/em&gt;). The log indicates it cannot discover the&amp;nbsp;GTBS&amp;nbsp;on the phone.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Here is the documentation for the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/bluetooth/hap_ha/README.html"&gt;HAP Hearing Aid (HA)&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/bluetooth/unicast_audio_server/README.html"&gt;Unicast Audio Server&lt;/a&gt;&amp;nbsp;samples.&amp;nbsp;&lt;span&gt;From the documentation, it should test the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/bluetooth/hap_ha/README.html"&gt;HAP Hearing Aid (HA)&lt;/a&gt;&amp;nbsp;sample with a Hearing Aid Unicast Client (HAUC) or Hearing Aid Remote Controller (HARC), and test the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/bluetooth/unicast_audio_server/README.html"&gt;Unicast Audio Server&lt;/a&gt;&amp;nbsp;sample with the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/bluetooth/unicast_audio_client/README.html"&gt;Unicast Audio Client&lt;/a&gt;&amp;nbsp;sample.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 bt_le_ext_adv_create fails with err -5 in various samples</title><link>https://devzone.nordicsemi.com/thread/396983?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2022 15:12:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44c8bed7-c7ff-4c13-b5da-75fd38ce38c2</guid><dc:creator>Laur1n M.</dc:creator><description>&lt;p&gt;Had a look at all this again.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I programmed the network core with &amp;quot;&lt;span&gt;ble5-ctr-rpmsg_3303.hex&lt;/span&gt;&amp;quot; via nrfjprog and after that flashed the hap_ha example with the extra config params as suggested by your first answer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see the sample via the nRF Connect App either on an iOS (16.0) device or Android (13.0) (App version 4.26.0).&lt;/p&gt;
&lt;p&gt;But I can see it via an iPad OS 16.0 device. (Both apple devices use the nrf connect 2.5.3 build number 4)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But the Android OS is able to see and connect to the sample for some reason.&lt;/p&gt;
&lt;p&gt;Sadly I can&amp;#39;t do anything with the sample once connected though. Not available as an audio sink as I would expect.&lt;/p&gt;
&lt;p&gt;After connecting the sample log shows &amp;quot;Failed to discover GTBS&amp;quot;. Maybe that has something to do with that?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there a guide somewhere which mobile OS should be able to connect and how the sample device should behave once connected?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 bt_le_ext_adv_create fails with err -5 in various samples</title><link>https://devzone.nordicsemi.com/thread/395863?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2022 17:34:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e7528b1-0638-4269-80ab-2d2453e3edcd</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can see the device advertising in the&amp;nbsp;&lt;span&gt;the nRF Connect App like this&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1668533506164v1.png" alt=" " /&gt;&amp;nbsp;&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1668533540496v2.png" alt=" " /&gt;&lt;br /&gt;If you don&amp;#39;t see it, you could try to refresh the scanning several times.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 bt_le_ext_adv_create fails with err -5 in various samples</title><link>https://devzone.nordicsemi.com/thread/395724?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2022 09:22:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eea469e6-d215-4f9b-b337-a3b2c4debe7f</guid><dc:creator>Laur1n M.</dc:creator><description>&lt;p&gt;Thanks! That seems to have fixed it.&lt;/p&gt;
&lt;p&gt;But sadly I don&amp;#39;t see the device via the nRF Connect App.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The warning &amp;quot;&amp;lt;wrn&amp;gt; bt_hci_core: Controller to host flow control not supported&amp;quot; does not look good either.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Happens in both&amp;nbsp;samples and you seem to get that as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 bt_le_ext_adv_create fails with err -5 in various samples</title><link>https://devzone.nordicsemi.com/thread/395651?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2022 21:17:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42154ec5-5090-423d-876b-0cc1b762b64f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The example only work with the&amp;nbsp;LE Audio Controller Subsystem for nRF53 (see&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/nrf5340_audio/README.html"&gt;nRF5340 Audio&lt;/a&gt;&lt;span&gt;), so you need to do a few things. Firstly, add the configs as &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/90574/get-error-message-when-running-exsample-project-on-nrf5340dk/379897"&gt;this post&lt;/a&gt; indicated.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Then&amp;nbsp;program the firmware hex found under&amp;nbsp;nrf\applications\nrf5340_audio\bin\ on the network core, and&amp;nbsp;the application core firmware you just built.&lt;/p&gt;
&lt;p&gt;You should be able to see the log like this&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;------------------
hap_ha:
------------------
*** Booting Zephyr OS build v3.1.99-ncs1-1  ***
Bluetooth initialized
Advertising successfully started
[00:00:00.267,211] &amp;lt;wrn&amp;gt; bt_pacs: No callback for publish_location
[00:00:00.274,597] &amp;lt;wrn&amp;gt; bt_hci_core: Controller to host flow control not supported
[00:00:00.281,585] &amp;lt;inf&amp;gt; bt_hci_core: Identity: CA:3E:A2:9E:02:E3 (random)
[00:00:00.281,585] &amp;lt;inf&amp;gt; bt_hci_core: HCI: version 5.2 (0x0b) revision 0x0ce7, manufacturer 0x07e8
[00:00:00.281,616] &amp;lt;inf&amp;gt; bt_hci_core: LMP: version 5.2 (0x0b) subver 0x0ce7

------------------
unicast_audio_server:
------------------
*** Booting Zephyr OS build v3.1.99-ncs1-1  ***
Bluetooth initialized
Location successfully set
Advertising successfully started
[00:00:00.274,627] &amp;lt;wrn&amp;gt; bt_hci_core: Controller to host flow control not supported
[00:00:00.280,059] &amp;lt;inf&amp;gt; bt_hci_core: Identity: DC:A6:0A:90:AC:EE (random)
[00:00:00.280,090] &amp;lt;inf&amp;gt; bt_hci_core: HCI: version 5.2 (0x0b) revision 0x0ce7, manufacturer 0x07e8
[00:00:00.280,090] &amp;lt;inf&amp;gt; bt_hci_core: LMP: version 5.2 (0x0b) subver 0x0ce7&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amamda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>