<?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>[nRF Connect SDK] How can I find out if HID is connected while BLE advertise NUS.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87277/nrf-connect-sdk-how-can-i-find-out-if-hid-is-connected-while-ble-advertise-nus</link><description>Target nRF52832(nrf52dk_nrf52832) SDK NCS v1.9.1 
 Base source 1. C:\Users\user\ncs\v1.9.1\nrf\samples\bluetooth\peripheral_hids_keyboard 2. C:\Users\user\ncs\v1.9.1\nrf\samples\bluetooth\peripheral_uart 
 My project require two mode(HID and NUS). I made</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Apr 2022 07:21:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87277/nrf-connect-sdk-how-can-i-find-out-if-hid-is-connected-while-ble-advertise-nus" /><item><title>RE: [nRF Connect SDK] How can I find out if HID is connected while BLE advertise NUS.</title><link>https://devzone.nordicsemi.com/thread/364826?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2022 07:21:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d49a9f8e-9fb8-4c3a-b491-68bfdb7f3b8f</guid><dc:creator>Tim Hwang</dc:creator><description>&lt;p&gt;Thanks for update.&lt;/p&gt;
&lt;p&gt;1) For&amp;nbsp;&lt;span&gt;&amp;quot;service changed service&amp;quot;, I add following option but it was not effective for me.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;CONFIG_BT_GATT_SERVICE_CHANGED=y&lt;/p&gt;
&lt;p&gt;2) For multiple mac address.&lt;/p&gt;
&lt;p&gt;Only one address is allowed for me.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So I decide to remove bonding at every mode change and test it.&lt;/p&gt;
&lt;p&gt;Thanks anyway.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [nRF Connect SDK] How can I find out if HID is connected while BLE advertise NUS.</title><link>https://devzone.nordicsemi.com/thread/364729?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2022 12:57:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4649b6ec-4719-4e72-988e-2d55bcc98ddc</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It sounds like your phone is chaching the Bluetooth services (as most phones do). There is something called &amp;quot;service changed service&amp;quot;, which you can look into, but it may not be straight forward if you are not using it as intended. I is supposed to be used with bonding, in cases where you add new services. However, this requires the phone to enable indications on the&amp;nbsp; service changed service.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It may be that it is easier to use the old trick of changing the device address instead of using this service changed service, because you will be switching back and forth between two sets of services, it may be easier to pretend that you are two different devices.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/79262/ble-mac-address/327931#327931"&gt;this answer form Einar&lt;/a&gt; on how to change BLE addresses in NCS:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>