<?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>Advertising failed to start (err -12)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77588/advertising-failed-to-start-err--12</link><description>Hi, 
 I am testing peripheral_hids_keyboard of NCS SDK 1.4.2 
 I have issues 
 1. where i can able to connect with windows and Android system but it is not visualize in MAC or IOS 
 2. I got issue Disconnected from 00:1a:7d:da:71:15 (public) (reason 21</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Jul 2021 12:21:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77588/advertising-failed-to-start-err--12" /><item><title>RE: Advertising failed to start (err -12)</title><link>https://devzone.nordicsemi.com/thread/322232?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 12:21:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8237d19e-6e35-4163-b5de-e2fbaa280e71</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;You can not have CONFIG_BT_MAX_CONN=1 when you call advertising_start() from the disconnected() handler. That is why it is 2 by default.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising failed to start (err -12)</title><link>https://devzone.nordicsemi.com/thread/322199?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 11:09:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:339552bd-7ca1-4919-9bdb-7b290f2ea3e5</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;Hi, I have enabled &lt;strong&gt;CONFIG_BT_HIDS_DEFAULT_PERM_RW_ENCRYPT &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This is my full prj.confg&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;CONFIG_NCS_SAMPLES_DEFAULTS=y

CONFIG_BT=y
CONFIG_BT_DEBUG_LOG=y
CONFIG_BT_MAX_CONN=2
CONFIG_BT_MAX_PAIRED=1
CONFIG_BT_SMP=y
CONFIG_BT_L2CAP_TX_BUF_COUNT=5
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_NAME=&amp;quot;Nordic_HIDS_keyboard&amp;quot;
CONFIG_BT_DEVICE_APPEARANCE=961

CONFIG_BT_BAS=y
CONFIG_BT_HIDS=y
CONFIG_BT_HIDS_MAX_CLIENT_COUNT=1
CONFIG_BT_HIDS_DEFAULT_PERM_RW_ENCRYPT=y
CONFIG_BT_GATT_UUID16_POOL_SIZE=40
CONFIG_BT_GATT_CHRC_POOL_SIZE=20

CONFIG_BT_LL_SOFTDEVICE_DEFAULT=y

CONFIG_BT_CONN_CTX=y

CONFIG_BT_DIS=y
CONFIG_BT_DIS_PNP=y
CONFIG_BT_DIS_MANUF=&amp;quot;NordicSemiconductor&amp;quot;
CONFIG_BT_DIS_PNP_VID_SRC=2
CONFIG_BT_DIS_PNP_VID=0x1915
CONFIG_BT_DIS_PNP_PID=0xEEEF
CONFIG_BT_DIS_PNP_VER=0x0100

CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048

CONFIG_BT_SETTINGS=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_FLASH_MAP=y
CONFIG_NVS=y
CONFIG_SETTINGS=y
CONFIG_BT_SETTINGS_CCC_STORE_ON_WRITE=y
CONFIG_DK_LIBRARY=y
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;CONFIG_BT_MAX_CONN=1&lt;br /&gt;CONFIG_BT_MAX_PAIRED=1&lt;/p&gt;
&lt;p&gt;CONFIG_BT_HIDS_MAX_CLIENT_COUNT=1&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;this error occur during disconnect&lt;/p&gt;
&lt;p&gt;then i tried&lt;/p&gt;
&lt;p&gt;CONFIG_BT_MAX_CONN=2&lt;br /&gt;CONFIG_BT_MAX_PAIRED=1&lt;/p&gt;
&lt;p&gt;CONFIG_BT_HIDS_MAX_CLIENT_COUNT=1&lt;/p&gt;
&lt;p&gt;If &lt;strong&gt;CONFIG_BT_MAX_CONN = 1 does i need to change any config or advertise packet &amp;nbsp; &lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising failed to start (err -12)</title><link>https://devzone.nordicsemi.com/thread/322175?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 09:04:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34340c44-75a3-4bdf-9e4d-bcf9cc5d7721</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you tried CONFIG_BT_HIDS_DEFAULT_PERM_RW_ENCRYPT=y , like Carl suggested? You tried GATT, but I can&amp;#39;t see that you tried HIDS.&lt;/p&gt;
&lt;p&gt;Did you follow Carl&amp;#39;s advice: &lt;strong&gt;&amp;quot;... your advertising data may be bigger than the maximum of 31 bytes. Please check this.&amp;quot; &lt;/strong&gt;? What did you find?&lt;/p&gt;
&lt;p&gt;You are using an old version of the sdk, have you considered upgrading to v1.6.0 and seeing if that fixes your issues?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising failed to start (err -12)</title><link>https://devzone.nordicsemi.com/thread/321653?ContentTypeID=1</link><pubDate>Sun, 25 Jul 2021 13:46:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b8de8c5-47f4-403d-a6f9-95069db13e6a</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;any update&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising failed to start (err -12)</title><link>https://devzone.nordicsemi.com/thread/321460?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 05:02:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:987c8784-390e-43ba-88ca-175530c3367d</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;how to set the advertising packets &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising failed to start (err -12)</title><link>https://devzone.nordicsemi.com/thread/321268?ContentTypeID=1</link><pubDate>Thu, 22 Jul 2021 08:59:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b0402ed-d87c-4fca-988f-c49453551661</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;Yes, I have followed this ticket,&lt;/p&gt;
&lt;p&gt;also spoke with carl at end&lt;/p&gt;
&lt;p&gt;He said &lt;strong&gt;&amp;quot;Error -12 means ENOMEM, which suggests your advertising data may be bigger than the maximum of 31 bytes. Please check this.&amp;nbsp;&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;this error comes only when is disconnected from the user device which means for the first time the advertising packets are working properly and then during disconnect how it will change&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For my project i just need to connect with one particular device only from the example code i have changed the config as&lt;/p&gt;
&lt;p&gt;CONFIG_BT_MAX_CONN=2&lt;br /&gt;CONFIG_BT_MAX_PAIRED=2&lt;/p&gt;
&lt;p&gt;CONFIG_BT_HIDS_MAX_CLIENT_COUNT=2&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;CONFIG_BT_MAX_CONN=1&lt;br /&gt;CONFIG_BT_MAX_PAIRED=1&lt;/p&gt;
&lt;p&gt;CONFIG_BT_HIDS_MAX_CLIENT_COUNT=1&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;this error occur during disconnect&lt;/p&gt;
&lt;p&gt;then i tried&lt;/p&gt;
&lt;p&gt;CONFIG_BT_MAX_CONN=2&lt;br /&gt;CONFIG_BT_MAX_PAIRED=1&lt;/p&gt;
&lt;p&gt;CONFIG_BT_HIDS_MAX_CLIENT_COUNT=1&lt;/p&gt;
&lt;p&gt;now during disconnect it work advertising but rarely it doesn&amp;#39;t advertise&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising failed to start (err -12)</title><link>https://devzone.nordicsemi.com/thread/321256?ContentTypeID=1</link><pubDate>Thu, 22 Jul 2021 08:11:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85e5d990-7695-4ba6-a548-2d9a3817cf95</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;Carl tried to provided some help in &lt;a href="https://devzone.nordicsemi.com/support-private/support/264005#permalink=679521"&gt;this ticket&lt;/a&gt;. Have you tried his solution?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising failed to start (err -12)</title><link>https://devzone.nordicsemi.com/thread/321020?ContentTypeID=1</link><pubDate>Wed, 21 Jul 2021 04:49:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:132c8874-9083-431e-913d-1639f3e5f3b8</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;Is there any update&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising failed to start (err -12)</title><link>https://devzone.nordicsemi.com/thread/320778?ContentTypeID=1</link><pubDate>Mon, 19 Jul 2021 18:23:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e821cd30-bc2c-4c42-8edc-281e47c67d86</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1626718866271v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;also When the example code : &lt;strong&gt;hid_keyboard&lt;/strong&gt; connect with the IOS device not able to print the &amp;quot;hello&amp;quot; when button pressed&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;Ignoring data for unknown CID 0x003a&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising failed to start (err -12)</title><link>https://devzone.nordicsemi.com/thread/320569?ContentTypeID=1</link><pubDate>Sun, 18 Jul 2021 18:24:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87f16c27-fe9f-44f4-b805-73c7d7031d1a</guid><dc:creator>Sunil vignesh</dc:creator><description>&lt;p&gt;any update&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>