<?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>BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107974/ble-hid-keyboard-connection-break-on-freertos-keyboard-bond-issue</link><description>Hi Nordic community, 
 I am Nilesh. I am working on BLE HID keyboard functionality on Ublox(B406) Evolution board which has nRF52833 MCU. I have tested the code (without FREERTOS) on this board which works perfectly. However, when it comes to FreeRTOS</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Mar 2024 13:27:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107974/ble-hid-keyboard-connection-break-on-freertos-keyboard-bond-issue" /><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/471800?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2024 13:27:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:916c1279-2551-4ec1-935e-67cea6f420de</guid><dc:creator>Nilesh Parmar</dc:creator><description>&lt;p&gt;Hi Susheel Nuguru,&lt;/p&gt;
&lt;p&gt;Kindly test the code at your end with the procedure mentioned in the reply and let me know the response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/471291?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2024 12:43:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ba223bc-7f76-4df6-a89b-cb5ab5f37d0b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Nilesh,&lt;/p&gt;
&lt;p&gt;I am sorry for delays. I am unfortunately not having capacity this week to look into this issue. I am really sorry for that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;6. Send hex values for page up/down, arrow right/left and arrow up/down.

7. Operation fails.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This does not look like something that is initiated by nRF side. It is possible that there is some procedure that is not finished which is triggered on the peer. But operation fails is very vague description. I can use the same project you gave to test next week but do not have any capacity this week.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/470917?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 05:15:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0408c1e-f9f0-4ec9-8118-933681b22a80</guid><dc:creator>Nilesh Parmar</dc:creator><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;Kindly reply on this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/470189?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2024 09:30:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5255249-ee6a-4f8b-8ab3-7888bf997ac0</guid><dc:creator>Nilesh Parmar</dc:creator><description>&lt;p&gt;Hi Susheel Nuguru,&lt;/p&gt;
&lt;p&gt;I have modified the code and tested with three operating systems (Android, Window and iOS) that is working as required. However, some of the misbehaviors have been observed that must be resolved.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In testing, below mentioned steps have been carried out.:&lt;/p&gt;
&lt;p&gt;1. Advertise &amp;quot;Looptimus Keyboard&amp;quot;.&lt;/p&gt;
&lt;p&gt;2. Request for pairing and paired successfully.&lt;/p&gt;
&lt;p&gt;3. Send hex values for page up/down, arrow right/left and arrow up/down.&lt;/p&gt;
&lt;p&gt;4. Operation successful.&lt;/p&gt;
&lt;p&gt;5. Turn off the board and turned on again.&lt;/p&gt;
&lt;p&gt;6.&amp;nbsp;&lt;span&gt;Send hex values for page up/down, arrow right/left and arrow up/down.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;7. Operation fails.&lt;/p&gt;
&lt;p&gt;From above steps, it has been observed that it requires to disconnect &amp;amp; unpaired the &amp;quot;Looptimus keyboard&amp;quot; from central, turn off and again turn on the peripheral, then repair &amp;amp; reconnect the &amp;quot;Looptimus Keyboard&amp;quot;, which result in working perfectly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Therefore, how I can eliminate this bug?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The &amp;quot;Looptimus keyboard&amp;quot; must be followed the sequence mentioned below:&lt;/p&gt;
&lt;p&gt;1. Advertise &amp;quot;Looptimus Keyboard&amp;quot;.&lt;/p&gt;
&lt;p&gt;2. Request for pairing and paired successfully.&lt;/p&gt;
&lt;p&gt;3. Send hex values for page up/down, arrow right/left and arrow up/down.&lt;/p&gt;
&lt;p&gt;4. Operation should success.&lt;/p&gt;
&lt;p&gt;5. Turn off the board and turned on again.&lt;/p&gt;
&lt;p&gt;6.&amp;nbsp;&lt;span&gt;Send hex values for page up/down, arrow right/left and arrow up/down.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;7.&amp;nbsp;&lt;span&gt;Operation should success without unpairing and disconnection.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How can I&amp;nbsp;achieve this result?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kindly check it out at your end and let us inform that why this is happening?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/470031?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2024 13:15:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:270eeb40-5442-4abb-ae08-924a887558bf</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Sounds like a plan Nilesh, thanks for letting me know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/469991?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2024 11:13:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2284dc9-7564-462c-9b81-5aca1ea7d7bd</guid><dc:creator>Nilesh Parmar</dc:creator><description>&lt;p&gt;Thanks for supporting.&lt;/p&gt;
&lt;p&gt;In the present time, the firmware has been modified and tested with windows_10 that result in working as required. Apart from that, it must be admitted that the firmware must be run with android, macOS, and IOS. Therefore, it has been decided that more testing would be done with keyboard application on different application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If we have any query, then I will inform you.&lt;/p&gt;
&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/469935?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2024 06:23:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2d25e8c-4f62-4975-b4ef-206e98b1bda7</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="Nilesh Parmar"]&amp;quot;p_ble_evt-&amp;gt;evt.gap_evt.conn_handle&amp;quot; is added in &amp;quot;m_hid_conn_handle&amp;quot;. Therefore, why this issue is happening because of this. Is there any issue with passing events parameters in the function?[/quote]
&lt;p&gt;The issue is not just with m_hids_conn_handle but when you are handling &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s113.api.v7.3.0%2Fgroup___b_l_e___g_a_t_t_s___h_v_x___s_y_s___a_t_t_r_s___m_i_s_s_i_n_g___m_s_c.html"&gt;BLE_GATTS_EVT_SYS_ATTR_MISSING&amp;nbsp;&lt;/a&gt;atleast at my end&amp;nbsp;&lt;strong&gt;m_conn_handle was still 0XFF. &lt;/strong&gt;The only change I did was in the file&amp;nbsp;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;span&gt;Looptimus_Mini_Plus\Application\usbd_ble_uart_freertos\common\src\ble\midi_ble.c-&amp;gt;&amp;nbsp;ble_evt_common_handler-&amp;gt;&amp;nbsp;BLE_GATTS_EVT_SYS_ATTR_MISSING:Line 580 as shown in &lt;span style="background-color:rgba(255, 255, 0, 1);"&gt;Yellow&lt;/span&gt;&lt;/span&gt; in the below picture.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2451.pastedimage1708442967149v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;After that there are no disconnect after I bond. I have tested both nRF connect on mobile and Desktop (win 10).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/469931?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2024 05:37:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0182a330-e5ff-47a7-9647-863f1cbbddc9</guid><dc:creator>Nilesh Parmar</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have updated the changes that you have mentioned in the response. However, it seems that it is not working perfectly on my side.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you share the modified source code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;FYI, we have defined two services - BLE_MIDI &amp;amp; BLE_KEYBOARD.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:118px;max-width:367px;" height="118" src="https://devzone.nordicsemi.com/resized-image/__size/734x236/__key/communityserver-discussions-components-files/4/pastedimage1708493509053v2.png" width="367" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;p_ble_evt-&amp;gt;evt.gap_evt.conn_handle&amp;quot; is added in &amp;quot;m_hid_conn_handle&amp;quot;. Therefore, why this issue is happening because of this. Is there any issue with passing events parameters in the function?&lt;/p&gt;
&lt;p&gt;Another issue which seems to me that can be a cause of problem:&lt;/p&gt;
&lt;p&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/pastedimage1708493686704v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;In this function, when I pass the value of&amp;nbsp;&lt;strong&gt;erase_bonds&amp;nbsp;&lt;/strong&gt;variable, it changes the state of variable and return &amp;quot;false&amp;quot; in this function. Which cause in miss operation in the functionality. Hence, can you look at this one and let me know that what is happing here?&lt;/p&gt;
&lt;p&gt;Furthermore, kindly share us the updated source code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/469859?ContentTypeID=1</link><pubDate>Tue, 20 Feb 2024 15:29:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb852f73-c2ec-49de-91e1-70d3c981e92a</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;The issue I was seeing at my desk was that in your&amp;nbsp;Looptimus_Mini_Plus\Application\usbd_ble_uart_freertos\common\src\ble\midi_ble.c-&amp;gt;&amp;nbsp;ble_evt_common_handler-&amp;gt;&amp;nbsp;BLE_GATTS_EVT_SYS_ATTR_MISSING:-&amp;gt;&amp;nbsp;sd_ble_gatts_sys_attr_set was returning error 0X3002 which means that the connection handle you pass here is wrong. I see that it is uninitialized.&lt;/p&gt;
&lt;p&gt;When I see where you initialize it I see that in the same file you have&amp;nbsp;ble_evt_common_handler-&amp;gt;BLE_GAP_EVT_CONNECTED and you have a if condition fencing the m_conn_handle initialization. I initialized m_conn_handle right after the Event is processed&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:210px;max-width:737px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1474x420/__key/communityserver-discussions-components-files/4/pastedimage1708442967149v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;And everything seems to work at my end with Windows 10.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/469802?ContentTypeID=1</link><pubDate>Tue, 20 Feb 2024 13:05:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afb72c5c-9524-4968-80a4-e928635540dc</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Nilesh,&lt;/p&gt;
&lt;p&gt;I tested your project with IOS mobile app and it works (as you already mentioned)&lt;/p&gt;
&lt;p&gt;I tested this with nRF connect for Desktop on Windows 10 and I cannot connect. So it looks like I can reproduce the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will have to debug this to understand what is happening with trying to connect to windows based apps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/469385?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2024 06:59:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e666718-3038-4ef1-b1a4-eaa12f5990d3</guid><dc:creator>Nilesh Parmar</dc:creator><description>&lt;p&gt;Hey Susheel Nuguru,&lt;/p&gt;
&lt;p&gt;Thanks for your response.&lt;/p&gt;
&lt;p&gt;I have developed an application with nrf52833. So, i think it will work with nRF52833 Development kit.&lt;/p&gt;
&lt;p&gt;The keyboard is working well with &amp;quot;nrf_connect_mobile&amp;quot; application but not working with windows_10.&lt;/p&gt;
&lt;p&gt;I am going to attach the source code and some observations that may help you to resolve the issue.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;BLE Sniffer logs with Mobile application.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6036.looptimus_5F00_keyboard_5F00_logs_5F00_nrf_5F00_sniffer_5F00_mobile.pcapng"&gt;devzone.nordicsemi.com/.../6036.looptimus_5F00_keyboard_5F00_logs_5F00_nrf_5F00_sniffer_5F00_mobile.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Testing with nrf_connect_mobile app.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/BLE_5F00_HID_5F00_KEYBOARD_5F00_WITH_5F00_nRF_5F00_Connect_5F00_Mobile.mp4"&gt;devzone.nordicsemi.com/.../BLE_5F00_HID_5F00_KEYBOARD_5F00_WITH_5F00_nRF_5F00_Connect_5F00_Mobile.mp4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Source code&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/BLE_5F00_HID_5F00_KEYBOARD_5F00_FREERTOS.zip"&gt;devzone.nordicsemi.com/.../BLE_5F00_HID_5F00_KEYBOARD_5F00_FREERTOS.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/469380?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2024 06:43:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61c7ed25-72c6-44ad-9103-e881f254f04b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Same as ticket number&amp;nbsp;322327, closing the other one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/469379?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2024 06:39:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdab1ef8-bcc4-47e9-bc06-7a7d758b7dda</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Nilesh,&lt;/p&gt;
&lt;p&gt;Sorry for late response.&lt;/p&gt;
&lt;p&gt;I have now looked into your sniffer log. There are two observations.&lt;/p&gt;
&lt;p&gt;1)&amp;nbsp; The desktop version of the sniffer log shows&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:162px;max-width:545px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1090x324/__key/communityserver-discussions-components-files/4/pastedimage1708324286935v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;It looks like the peripheral (which is your keyboard) completely stopped responding to the master and the master is trying to keep the connection alive by sending empty packets. After the supervision timeout, the connection seems to have died out at the master end. You keyboard device still seems to be alive as it starts to send advertising packets immediately and the master tries to reconnect to it.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:0;max-width:0;" src="https://devzone.nordicsemi.com/resized-image/__size/0x0/__key/communityserver-discussions-components-files/4/pastedimage1708324280285v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;2)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:177px;max-width:520px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1040x354/__key/communityserver-discussions-components-files/4/pastedimage1708324618380v3.png" /&gt;&lt;/p&gt;
&lt;p&gt;The keyboard device seems to be sending the disconnect request in this case right after the connection is established and few information exchanged. You need to have some breakpoints where you can see if there are any disoconnect requests from the keyboard. It looks like LL_TERMINATE_IND from your keyboard is coming after some processing of the last packet, so I am guessing this is application triggered disconnect from your keyboard.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I need to be able to reproduce this at my end to be able help and debug this. Is there any chance that you can port your code on the nRF52DK and send it to me?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/469373?ContentTypeID=1</link><pubDate>Mon, 19 Feb 2024 04:37:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27e8edaa-db3f-45aa-a554-352b195f0b8a</guid><dc:creator>Nilesh Parmar</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi ovrebekk,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is there any update on this case?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kindly keep us posted about the observations and result.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/468922?ContentTypeID=1</link><pubDate>Thu, 15 Feb 2024 05:11:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a934efcb-4b43-4127-a916-5121aa421fd7</guid><dc:creator>Nilesh Parmar</dc:creator><description>&lt;p&gt;Hi ovrebekk,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;quot;New Update&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In testing, it has been observed that &lt;strong&gt;BLE_HID_KEYBOARD&lt;/strong&gt; application code is perfectly working with&amp;nbsp;&lt;strong&gt;&amp;quot;nrf_connect_Mobile&amp;quot;&lt;/strong&gt; application but it fails to work with &lt;strong&gt;&amp;quot;Desktop&amp;quot;&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Here, I am going to attach the BLE sniffer logs for&amp;nbsp;&lt;strong&gt;BLE_HID_KEYBOARD&lt;/strong&gt;&lt;span&gt;&amp;nbsp;application code with&amp;nbsp;&lt;strong&gt;&amp;quot;nrf_connect_Mobile&amp;quot;&amp;nbsp;&lt;/strong&gt;and &amp;quot;&lt;strong&gt;Desktop&amp;quot;.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;With &amp;quot;Desktop&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/looptimus_5F00_keyboard_5F00_logs_5F00_nrf_5F00_sniffer_5F00_v2.pcapng"&gt;devzone.nordicsemi.com/.../looptimus_5F00_keyboard_5F00_logs_5F00_nrf_5F00_sniffer_5F00_v2.pcapng&lt;/a&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;With &amp;quot;nrf_connect_Mobile&amp;quot;:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/looptimus_5F00_keyboard_5F00_logs_5F00_nrf_5F00_sniffer_5F00_mobile.pcapng"&gt;devzone.nordicsemi.com/.../looptimus_5F00_keyboard_5F00_logs_5F00_nrf_5F00_sniffer_5F00_mobile.pcapng&lt;/a&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/468549?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2024 10:17:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dcd499a-264a-4371-94fd-6d7baeb4182a</guid><dc:creator>Nilesh Parmar</dc:creator><description>[quote userid="2116" url="~/f/nordic-q-a/107974/ble-hid-keyboard-connection-break-on-freertos-keyboard-bond-issue/468547"]I am guessing you inherited some logging from the original example, but haven&amp;#39;t used it actively yourself?[/quote]
&lt;p&gt;Yes, you are right. I have taken the reference code of &lt;strong&gt;&amp;quot;ble_hid_keyboard&amp;quot;&lt;/strong&gt; and added Freertos functionality.&amp;nbsp;&lt;/p&gt;
[quote userid="2116" url="~/f/nordic-q-a/107974/ble-hid-keyboard-connection-break-on-freertos-keyboard-bond-issue/468547"]Which uBlox eval kit are you using?&amp;nbsp;[/quote]
&lt;p&gt;We have&lt;strong&gt; &amp;quot;EVK-NINA-B4&amp;quot;&amp;nbsp;&lt;/strong&gt;evolution.&lt;/p&gt;
&lt;p&gt;For more understanding,I am going to attach the logs from nrf sniffer.&lt;/p&gt;
&lt;p&gt;Kindly analyze the logs and let me know the results.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/looptimus_5F00_keyboard_5F00_ble_5F00_connection_5F00_log_5F00_new.csv"&gt;devzone.nordicsemi.com/.../looptimus_5F00_keyboard_5F00_ble_5F00_connection_5F00_log_5F00_new.csv&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/logs.pcapng"&gt;devzone.nordicsemi.com/.../logs.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/468547?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2024 10:14:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd550619-0ec8-4d91-b8aa-e75e0fc5d982</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Nilesh&lt;/p&gt;
&lt;p&gt;If I am not mistaken you have only shared logs from the central side, not from the nRF side?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Looking at your code I can see that the NRF_LOG API is used, this is the log that would be more helpful since it will show what is happening on the nRF side.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You might need to add some more logging in your project though, to show more details what is happening on a disconnect for instance. I am guessing you inherited some logging from the original example, but haven&amp;#39;t used it actively yourself?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A local log from the nRF and ideally a sniffer trace are both helpful tools to investigate issues such as these.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which uBlox eval kit are you using?&amp;nbsp;&lt;br /&gt;I doubt we have any of those in the office, but I can ask around. I assume some sensors would also be needed for the full functionality?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/468538?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2024 09:47:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bd37420-f5c2-4a49-b4b4-638cdb2b4076</guid><dc:creator>Nilesh Parmar</dc:creator><description>&lt;p&gt;Hey&lt;/p&gt;
&lt;p&gt;Is there any update on this?&lt;/p&gt;
&lt;p&gt;We have an urgent need of solution.&lt;/p&gt;
&lt;p&gt;Kindly update on this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/467994?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2024 05:12:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8de6d931-8db0-4e2c-b57c-dd4454cb788e</guid><dc:creator>Nilesh Parmar</dc:creator><description>&lt;p&gt;Hi Ovrebeck,&lt;/p&gt;
&lt;p&gt;Thanks for your response.&lt;/p&gt;
&lt;p&gt;I am going to attach another observation data files which would be helpful to understand the issue.&lt;/p&gt;
&lt;p&gt;Do you have a ublox evolution kit? If yes, then kindly test the attached source code at your end and let me inform that how it is performing at your end.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;SOURCE CODE:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/BLE_5F00_KEYBOARD_5F00_TESTING_5F00_nRF52833.zip"&gt;devzone.nordicsemi.com/.../BLE_5F00_KEYBOARD_5F00_TESTING_5F00_nRF52833.zip&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;BLE OBSERVATION DATA:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/BLE_5F00_HID_5F00_KEYBOARD_5F00_Logs_5F00_Data_5F00_06_5F00_02_5F00_2024.zip"&gt;devzone.nordicsemi.com/.../BLE_5F00_HID_5F00_KEYBOARD_5F00_Logs_5F00_Data_5F00_06_5F00_02_5F00_2024.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/467717?ContentTypeID=1</link><pubDate>Tue, 06 Feb 2024 10:24:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b2da460-1c16-4b69-9c79-99c9c9a1d5c2</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Nilesh&lt;/p&gt;
&lt;p&gt;All I can tell from the attached logs is that the link times out, which indicates that the peripheral device stops responding for some reason.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Possibly there is a crash on the nRF side that cause the CPU to&amp;nbsp;perform a reset, which&amp;nbsp;would case the current link to fail, until the device can reconnect again.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you checked the log on the nRF side to see if it can provide some information about the potential crash? Can you include the nRF log also?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/467531?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2024 10:18:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a843d8c5-548f-4a98-9b51-4f5566fed972</guid><dc:creator>Nilesh Parmar</dc:creator><description>&lt;p&gt;Hi Ovrebeck,&lt;/p&gt;
&lt;p&gt;Thanks for your response.&lt;/p&gt;
[quote userid="2116" url="~/f/nordic-q-a/107974/ble-hid-keyboard-connection-break-on-freertos-keyboard-bond-issue/467525"]What if you try to connect to your device from a smart phone, using the nRF Connect&amp;nbsp;app? Will you still have connection issues?&amp;nbsp;[/quote]
&lt;p&gt;Yes, I have tried with nRF connect app, but the issue is remained same.&lt;/p&gt;
[quote userid="2116" url="~/f/nordic-q-a/107974/ble-hid-keyboard-connection-break-on-freertos-keyboard-bond-issue/467525"]Would you be able to capture a sniffer trace showing what happens during initial connection establishment, as well as subsequent reconnects?&amp;nbsp;[/quote]
&lt;p&gt;Meanwhile, I don&amp;#39;t have sniffer to capture the log but on mobile application, I able to capture the logs.&lt;/p&gt;
&lt;p&gt;I am going to attach the zip file which has details picture and logs.&lt;/p&gt;
&lt;p&gt;Kindly analyze it at your end and let me inform.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/BLE_5F00_Experiment_5F00_Observation_5F00_Data.zip"&gt;devzone.nordicsemi.com/.../BLE_5F00_Experiment_5F00_Observation_5F00_Data.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/467525?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2024 09:53:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2514a40f-1cd0-4981-bf71-e9a3e9a6990c</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Nilesh&lt;/p&gt;
&lt;p&gt;What if you try to connect to your device from a smart phone, using the nRF Connect&amp;nbsp;app? Will you still have connection issues?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Would you be able to capture a sniffer trace showing what happens during initial connection establishment, as well as subsequent reconnects?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please make sure to delete the bond and redo pairing/bonding, in order for the sniffer to be able to track the connection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can read more about the Nordic sniffer &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-sniffer-for-bluetooth-le"&gt;here&lt;/a&gt; if you don&amp;#39;t have a professional Bluetooth sniffer available.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/467279?ContentTypeID=1</link><pubDate>Fri, 02 Feb 2024 04:42:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe171205-1a1e-4f48-b307-0677a1abc320</guid><dc:creator>Nilesh Parmar</dc:creator><description>[quote userid="2116" url="~/f/nordic-q-a/107974/ble-hid-keyboard-connection-break-on-freertos-keyboard-bond-issue/467136"]Is there any particular reason you need to use FreeRTOS?[/quote]
&lt;p&gt;Yes, we must run BLE on FreeRTOS because it is the requirement from the customer side.&lt;/p&gt;
&lt;p&gt;Our second BLE service&amp;nbsp;&lt;strong&gt;&amp;quot;BLE_MIDI&amp;quot; &lt;/strong&gt;which is perfectly working on FreeRTOS. &amp;nbsp;&lt;/p&gt;
[quote userid="2116" url="~/f/nordic-q-a/107974/ble-hid-keyboard-connection-break-on-freertos-keyboard-bond-issue/467136"]The only example we have for BLE and FreeRTOS in the nRF5 SDK is the ble_app_hrs_freertos example. Did you have a look at this?&amp;nbsp;[/quote]
&lt;p&gt;Yes, I go through&amp;nbsp;&lt;strong&gt;&amp;quot;&lt;/strong&gt;&amp;nbsp;ble_app_hrs_freertos&amp;quot;; However, it also creates the issue of connection breaking on my board.&lt;/p&gt;
[quote userid="2116" url="~/f/nordic-q-a/107974/ble-hid-keyboard-connection-break-on-freertos-keyboard-bond-issue/467136"]Can you provide a bit more information about the issues you see?&amp;nbsp;[/quote]
&lt;p&gt;Yes, I am going to attach the video, which shows that how connection is breaking.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I believe that there would be some issues regarding to bond erase and build because once the MCU is erase and code is loaded then it works perfectly. On the other hand, after one power cycle it stops advertising.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/WhatsApp-Video-2024_2D00_01_2D00_04-at-4.42.26-PM.mp4"&gt;devzone.nordicsemi.com/.../WhatsApp-Video-2024_2D00_01_2D00_04-at-4.42.26-PM.mp4&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/467136?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 11:23:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0adf023-1012-4209-9eed-88a5ff150403</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Nilesh&lt;/p&gt;
&lt;p&gt;Is there any particular reason you need to use FreeRTOS? As Lorenzo mentioned, if you need an RTOS I would suggest going for the new &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/index.html"&gt;nRF Connect SDK &lt;/a&gt;instead, which is based on the Zephyr RTOS.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The only example we have for BLE and FreeRTOS in the nRF5 SDK is the ble_app_hrs_freertos example. Did you have a look at this?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It should be possible to run BLE HID and FreeRTOS as well, assuming the project is set up correctly.&amp;nbsp;Can you provide a bit more information about the issues you see?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you share the log output from the example?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE HID Keyboard Connection break on FreeRTOS | Keyboard Bond issue|</title><link>https://devzone.nordicsemi.com/thread/467078?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 08:54:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d8e32fc-93c7-4c87-9006-b15cabece0dc</guid><dc:creator>Lorenzo Amicucci</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;have you given a try with nRF Desktop?&amp;nbsp;&lt;br /&gt;&lt;a id="" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/nrf_desktop/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/nrf_desktop/README.html&lt;/a&gt;&amp;nbsp;&lt;br /&gt;It is full reference software and HW ref design for HID (mouse, keyboard, etc). you can easily run this on top of your uBlox ev board without writing any line of code&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>