<?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 stuck at discovering services and being disconnected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96726/ble-stuck-at-discovering-services-and-being-disconnected</link><description>Hi, 
 I was having a problem with BLE Services at my custom board based on nrf52811. So before, it works on many examples on nrf52 sdk (v.17.1.0), like heartrate using sensor simulation, BMS, etc. So I was trying to change service for BLE based on my</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Feb 2023 22:06:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96726/ble-stuck-at-discovering-services-and-being-disconnected" /><item><title>RE: BLE stuck at discovering services and being disconnected</title><link>https://devzone.nordicsemi.com/thread/410189?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2023 22:06:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b57e7440-003e-4cda-b8be-690fa1ef6776</guid><dc:creator>brianreinhold</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure I understand your problem. I take it your custom board is running a client using the nRF52 17.1.0 SDK? And then you have a standard DK running one of the SDK ble_peripheral projects, for example the heart rate monitor. At first this worked. But you were not interested in a heart rate monitor or whatever so you started changing that example to something you wanted but it didn&amp;#39;t work. And now when you try to go back to stage A (heart rate monitor working with your custom client, you can&amp;#39;t get it to work?&lt;/p&gt;
&lt;p&gt;If so, I can think of million things that could go wrong here. Clearly SOMETHING is not reverted back to the initial state, the question is what and where. Pairing and address values stored under the hood (especially if you are using a BMS and not doing the pairing/bonding yourself) on both sides of the connection could be an issue. As you change services you have to be careful about addresses and bonding and be sure that all pairing information is deleted from both sides. The disconnect maybe due to pairing inconsistencies which is happening at the same time as service discovery.&amp;nbsp;&amp;nbsp;Unfortunately, SoftDevice and the SDK do not provide the server application with any events during service discovery so that is a complete black box.&lt;/p&gt;
&lt;p&gt;How about a third-party client that you know works? It is able to connect and discover your altered peripheral&amp;#39;s services? How about your reverted ble_peripheral?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>