<?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>HID over ble on central device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83423/hid-over-ble-on-central-device</link><description>Hey, 
 I saw the example in the SDK for hid keyboard over ble but it is only as a peripheral device. 
 In my project I have the nordic board as a central device connecting to an android and communicating via uart over ble. 
 I also want the nordic board</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Jan 2022 13:49:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83423/hid-over-ble-on-central-device" /><item><title>RE: HID over ble on central device</title><link>https://devzone.nordicsemi.com/thread/347607?ContentTypeID=1</link><pubDate>Thu, 13 Jan 2022 13:49:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6d830e8-2e88-41da-b632-6d63568e90d1</guid><dc:creator>Sigurd</dc:creator><description>[quote user="RobbLev"]It needs to maintain multiple connections that each one uses the hid.[/quote]
&lt;p&gt;Could you explain the use-case some more? The nRF52 connects to&amp;nbsp;&lt;span&gt;multiple&amp;nbsp;phones? And sends keypress to all the phones at the same time?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Why does it have to be the central?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;PS: SoftDevice&amp;nbsp;S140&amp;nbsp;supports in total 20 concurrent links with freely selectable role (Central/Peripheral).&amp;nbsp; That means that you can have e.g 10 Central and 10 Peripheral links at the same time.&lt;/span&gt;&lt;/p&gt;
[quote user="RobbLev"]Is there any API I can call on the nRF to make the phone discover thr nRF&amp;#39;s services (this will give me the hid CCCD)?[/quote]
&lt;p&gt;Not sure if it will solve the CCCD issue, but&amp;nbsp;service changed indication is used to inform the other device to do a new service discovery. You can try&amp;nbsp;calling&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__peer__manager.html#gaaecb7f99f58d71f085f62f5cc5267508"&gt;pm_local_database_has_changed()&lt;/a&gt;&amp;nbsp;when the device connects, and see if that helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID over ble on central device</title><link>https://devzone.nordicsemi.com/thread/347141?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 12:01:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36c118e6-5a56-4cba-99ef-5d34d0e982b9</guid><dc:creator>RobbLev</dc:creator><description>&lt;p&gt;This project requires the nRF to be the central, I can&amp;#39;t change the role. It needs to maintain multiple connections that each one uses the hid.&lt;br /&gt;I agree that the role change makes it that the CCCD are not loaded. Is there any API I can call on the nRF to make the phone discover thr nRF&amp;#39;s services (this will give me the hid CCCD)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID over ble on central device</title><link>https://devzone.nordicsemi.com/thread/346856?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 09:04:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43dd7cab-ca8c-43a6-9290-f3c11f9fab0a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Typically the HID device is the&amp;nbsp;peripheral, I don&amp;#39;t know how well different phones will handle the opposite. It could be that it somehow identifies your device differently when the role changes(peripheral-&amp;gt;central), or that the role change makes it so that the CCCD are not loaded.&lt;/p&gt;
&lt;p&gt;Why just not keep the nRF5 device as the&amp;nbsp;&lt;span&gt;peripheral?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID over ble on central device</title><link>https://devzone.nordicsemi.com/thread/346504?ContentTypeID=1</link><pubDate>Thu, 06 Jan 2022 13:59:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c34cf6cd-e636-42fe-941f-01baef094b06</guid><dc:creator>RobbLev</dc:creator><description>&lt;p&gt;Update:&lt;br /&gt;I realize now that the scenario I gave is not totally full:&lt;br /&gt;&amp;quot;I tried advertising the board first and connecting the android as the central, then disconnecting and start advertising the android and connect the board as the central. this doesn&amp;#39;t raise any errors but does not result in seeing anything written on the android.&amp;quot;&lt;br /&gt;This is true until I reset the android, then I get an error indicating I don&amp;#39;t have the CCCD of the connection handle&amp;#39;s HID.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>