<?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>Keyboard multi-pairing does not work.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115868/keyboard-multi-pairing-does-not-work</link><description>Hello, 
 I am developing a BLE keyboard. I am using SDK17.1.0 and nRF52840. The part that is stuck is multi-pairing. I need to develop a function that alternately connects to 3 central devices like Logitech keyboard. In the meantime, I found the following</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Oct 2024 12:25:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115868/keyboard-multi-pairing-does-not-work" /><item><title>RE: Keyboard multi-pairing does not work.</title><link>https://devzone.nordicsemi.com/thread/508512?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2024 12:25:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:086fa113-5455-4aa9-9950-b9a82f7dfb15</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Using&amp;nbsp;&lt;span&gt;ble_advertising_restart_without_whitelist() will likely help here yes. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I wonder though if part of the problem can actually be that this worked at some time, and that those other other &amp;quot;slots&amp;quot; already have been bonded to a central device before, and that is why it is enabling whitelist by default here. Have you tried running an &amp;quot;nrfjprog --recover&amp;quot; once to ensure the entire chip is erased before you program the application? This should at the same time delete old bonds.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keyboard multi-pairing does not work.</title><link>https://devzone.nordicsemi.com/thread/508410?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2024 15:59:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c2dbba3-dd23-4989-8065-ba8006ac253d</guid><dc:creator>ParanBada</dc:creator><description>&lt;p&gt;As you advised, I downloaded and installed SDK 15.2 and tested using the main.c file linked above.&lt;br /&gt;The behavior of the device is the same. Log are here.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;&amp;lt;info&amp;gt; app: HID Keyboard example started.
&amp;lt;info&amp;gt; app: Button (control gap address): 2
&amp;lt;info&amp;gt; app: Show stored peer id and gap address
&amp;lt;info&amp;gt; app: Peer id: 0 Stored button (can control gap address): 3
&amp;lt;info&amp;gt; app:     m_whitelist_peer_cnt 2, MAX_PEERS_WLIST 8
&amp;lt;info&amp;gt; app: Fast advertising with whitelist.
&amp;lt;info&amp;gt; app: Slow advertising with whitelist.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The connection was fine with the Windows laptop at first. Then, when I press button 3 or 2 on the DK board, the connection with the Windows laptop is disconnected and when I search for the device on the new Android phone, the device is not found. In other words, the device is not found on the other central device, the Android phone, so I cannot connect.&lt;br /&gt;This behavior is the same as what I tested with SDK 17.1. 0.&lt;/p&gt;
&lt;p&gt;When advertising, the log appears as follows. This is the same log for both SDK 17.1. 0 and SDK 15.2. 0.&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;Fast advertising with whitelist.
Slow advertising with whitelist.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Is the reason why the device is not found now because of the whitelist issue?&lt;br /&gt;Should I use ble_advertising_restart_without_whitelist() as you mentioned?&lt;br /&gt;Pressing 1 on the DK board seems to be a function to turn off the whitelist, but it doesn&amp;#39;t work the same way in SDK17.1.0 or SDK15.2.0.&lt;/p&gt;
&lt;p&gt;Is there a way to solve it using ble_advertising_restart_without_whitelist()?&lt;br /&gt;I look forward to your more kind answer. Please.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Yim.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keyboard multi-pairing does not work.</title><link>https://devzone.nordicsemi.com/thread/508357?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2024 12:50:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7fff84e-1c65-45b7-bac2-8af779413809</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;You may try to download the nRF5 SDK v15.2 and try the main.c file in the case you linked, this should show better how it&amp;#39;s done.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keyboard multi-pairing does not work.</title><link>https://devzone.nordicsemi.com/thread/508324?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2024 10:42:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a7a1c4e-c777-400b-93ae-2489854f7b35</guid><dc:creator>ParanBada</dc:creator><description>&lt;p&gt;I am not using ble_advertising_restart_without_whitelist(). I do not know how to use it.&lt;/p&gt;
&lt;p&gt;If I look at bsp_event_handler() in the source code, there is ble_advertising_restart_without_whitelist() in &amp;quot;case BSP_EVENT_WHITELIST_OFF&amp;quot;.&lt;br /&gt;If I look at bsp_btn_ble.c, it says that button 1 is used to turn off the whitelist.&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define BTN_ID_WHITELIST_OFF 1 /**&amp;lt; ID of button used to turn off usage of the whitelist. */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;However, when I press button 1, case BSP_EVENT_WHITELIST_OFF does not occur and there is no response.&lt;/p&gt;
&lt;p&gt;I attach the main.c file that I am testing. It works on SDK 17.1.0 and nRF-DK-52840.&lt;/p&gt;
&lt;p&gt;After connecting from the first central device, when I press button 3 or 2 on the DK board, the log appears as follows.&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;&amp;lt;info&amp;gt; app_timer: RTC: initialized.
&amp;lt;info&amp;gt; app: ----- m_button := 2
&amp;lt;info&amp;gt; app: HID Keyboard example started.
&amp;lt;info&amp;gt; app: ----- Button (control gap address): 2
&amp;lt;info&amp;gt; app: ----- Show stored peer id and gap address
&amp;lt;info&amp;gt; app: ----- Peer id: 0 Stored button (can control gap address): 0
&amp;lt;info&amp;gt; app:     m_whitelist_peer_cnt 2, MAX_PEERS_WLIST 8
&amp;lt;info&amp;gt; app: Fast advertising with whitelist.                                                                                                      ^C&amp;lt;info&amp;gt; app: Slow advertising with whitelist.
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to implement a function that allows me to connect to the central device alternately by pressing buttons 1, 2, and 3, like a Logitech keyboard.&lt;/p&gt;
&lt;p&gt;I look forward to your help.&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/6175.main.c"&gt;devzone.nordicsemi.com/.../6175.main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keyboard multi-pairing does not work.</title><link>https://devzone.nordicsemi.com/thread/508174?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 13:35:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:336ecb98-4c3b-46c2-a9c8-523191cce7be</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Are you using&amp;nbsp;ble_advertising_restart_without_whitelist() here?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keyboard multi-pairing does not work.</title><link>https://devzone.nordicsemi.com/thread/508088?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 08:34:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52e115fb-9817-4e85-b679-9782c00fe91a</guid><dc:creator>ParanBada</dc:creator><description>&lt;p&gt;Right.&lt;br /&gt;But I can&amp;#39;t find the device from another central device and can&amp;#39;t connect.&lt;/p&gt;
&lt;p&gt;What&amp;#39;s the problem? What should I do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keyboard multi-pairing does not work.</title><link>https://devzone.nordicsemi.com/thread/508060?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 07:02:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:642a8799-147d-4e8c-8278-8c281494f9a7</guid><dc:creator>Dustin Huff</dc:creator><description>&lt;p&gt;The first device has been successfully connected. The connection with the first device is cut off and a new advertising is created when I click button 3 on the nRF52DK board&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>