<?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>Unable to advertise after connection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96038/unable-to-advertise-after-connection</link><description>Hi, 
 We are working on migrating our SES SDK based code to NCS Zephyr. Our board is nrf52833 based. We have set up advertising for 1 Minute every time (via KCONFIG flag CONFIG_BT_LIM_ADV_TIMEOUT =60). In addition (simply as a test) - we check via RTC</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Jan 2023 21:18:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96038/unable-to-advertise-after-connection" /><item><title>RE: Unable to advertise after connection</title><link>https://devzone.nordicsemi.com/thread/407192?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2023 21:18:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83a1a7de-595e-4494-b816-1ccda21abef0</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Happy to know it&amp;#39;s fixed.&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: Unable to advertise after connection</title><link>https://devzone.nordicsemi.com/thread/406967?ContentTypeID=1</link><pubDate>Sun, 29 Jan 2023 10:07:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b658c7bf-9d07-4e6d-9bc4-58a3f2f932f7</guid><dc:creator>Roiger</dc:creator><description>&lt;p&gt;Hi Amanda!&lt;br /&gt;This has magically solved itself - the only change I did was commenting some debug prints in our characteristic writes CB function.&lt;br /&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to advertise after connection</title><link>https://devzone.nordicsemi.com/thread/406745?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 20:14:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35d5e31e-dde7-4ede-950f-ead555d5e094</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What version of NCS are you using?&lt;/p&gt;
[quote user=""]00&amp;gt; [00:06:15.120,086] &amp;lt;wrn&amp;gt; bt_hci_core: bt_hci_cmd_send_sync: opcode 0x200a status 0x12[/quote]
&lt;p&gt;&lt;span&gt;0x200a is the opcode for enabling BLE advertising, and 0x12&amp;nbsp;is the error code for &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/include/zephyr/bluetooth/hci_err.h#L36"&gt;INVALID HCI COMMAND PARAMETERS&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
[quote user=""]00&amp;gt; Advertising failed to start (err -5)[/quote]
&lt;p&gt;err -5 means &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/lib/libc/minimal/include/errno.h#L44"&gt;I/O error&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you advertise with the same data before the connection as you did before the connection? Sounds strange if it advertises with the same data successfully before the connection, but got failed after the disconnection.&lt;/p&gt;
&lt;p&gt;How do you activate the advertisement after the disconnection?&amp;nbsp;Without&amp;nbsp;&lt;span&gt;stopping adv after disconnect, is it possible to advertise without issues?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>