<?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>Error on modyfying hid_ble report after ble_disable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110101/error-on-modyfying-hid_ble-report-after-ble_disable</link><description>Hello 
 I am developping a HID BLE device with a nRF52840. Seems my device can emulate AZERTY and QWERTY keyboard I am trying to use the bcountrycode in the hid descriptor to let the central know I am from France or United State so the smartphone put</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 May 2024 20:13:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110101/error-on-modyfying-hid_ble-report-after-ble_disable" /><item><title>RE: Error on modyfying hid_ble report after ble_disable</title><link>https://devzone.nordicsemi.com/thread/482867?ContentTypeID=1</link><pubDate>Fri, 10 May 2024 20:13:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0bfc953-7e2b-45ee-9b16-9e1ce3eb4583</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Thibaud,&lt;/p&gt;
&lt;p&gt;The code you provided does not included definition of the hid_ble_init() function. However, I assume that it calls bt_hids_init().&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.6.1/subsys/bluetooth/services/hids.c#L888-L911"&gt;bt_hids_init() function adds a new instance of HIDS to the GATT pool&lt;/a&gt;. Therefore, when you try to call it&amp;nbsp;again, new HIDS instances are added, until the GATT pool is used up, and the error you see would then happen.&lt;/p&gt;
&lt;p&gt;As you want to recreate the&amp;nbsp;descriptor entirely, please uninitialize the first HIDS instance first via &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.1/nrf/libraries/bluetooth_services/services/hids.html#c.bt_hids_uninit"&gt;bt_hids_uninit()&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error on modyfying hid_ble report after ble_disable</title><link>https://devzone.nordicsemi.com/thread/482374?ContentTypeID=1</link><pubDate>Tue, 07 May 2024 18:40:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc3fbcfb-9c5d-414e-84de-065477f501b7</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi &lt;span&gt;Thibaud&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;Our apologies for the late follow up. I&amp;nbsp;have been&amp;nbsp;out of office. I will return this week and follow up with you soon.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error on modyfying hid_ble report after ble_disable</title><link>https://devzone.nordicsemi.com/thread/480739?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2024 14:23:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:585e9282-913f-49bc-ae0b-7e0fe6dc7a12</guid><dc:creator>Thibaud</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Sorry for the late reply I did not get the reply notification.&lt;/p&gt;
[quote userid="115767" url="~/f/nordic-q-a/110101/error-on-modyfying-hid_ble-report-after-ble_disable/478944"]See&lt;a href="https://devzone.nordicsemi.com/support-private/support/303367"&gt; this thread,&amp;nbsp;&lt;/a&gt;which discusses a similar issue.[/quote]
&lt;p&gt;For now, i will let my hid descriptor&amp;nbsp; static and maybe one day I will try to test somethign with the &amp;quot;&lt;span&gt;Service Changed Characteristic&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;An other point is, I tried to froce AZERTY keyboard on smartphone by putting b_countrycode = 8 but android phones are still putting QWERTY keyboard by default, I need to change physical keyboard to French then go back to default to make my &amp;quot;default&amp;quot; physical keyboard to AZERTY.&amp;nbsp;Am I missing something on top of b_countrycode here&amp;nbsp;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards&lt;br /&gt;Thibaud&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error on modyfying hid_ble report after ble_disable</title><link>https://devzone.nordicsemi.com/thread/478944?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2024 11:08:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de4be426-c22b-4dba-a4ff-603ca23705ca</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]Is there any better way to change the hid_ble report dynamicaly[/quote]
&lt;p&gt;See&lt;a href="https://devzone.nordicsemi.com/support-private/support/303367"&gt; this thread,&amp;nbsp;&lt;/a&gt;which discusses a similar issue.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error on modyfying hid_ble report after ble_disable</title><link>https://devzone.nordicsemi.com/thread/478354?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 13:52:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:941244d6-fb33-4ca6-a448-0d156ac0da12</guid><dc:creator>Thibaud</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I am using a&amp;nbsp;&lt;span&gt;nRF52840 chip, on SDK v2.5.0 and I tried to increase the&amp;nbsp;&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.0/kconfig/index.html#CONFIG_BT_HIDS_ATTR_MAX"&gt;CONFIG_BT_HIDS_ATTR_MAX&lt;/a&gt;&amp;nbsp;but it did not resolves it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thibaud&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error on modyfying hid_ble report after ble_disable</title><link>https://devzone.nordicsemi.com/thread/478325?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 12:43:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1a45b7f-af74-4344-8918-fc38a8241356</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Could you share the SDK version and the Nordic board or chip you are trying with? Can you try to increase the value of the configuration &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.0/kconfig/index.html#CONFIG_BT_HIDS_ATTR_MAX"&gt;CONFIG_BT_HIDS_ATTR_MAX&lt;/a&gt; and see if this resolves the issue?&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>