<?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>Disconnection after 30s on reconnection with custom service on phone</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83774/disconnection-after-30s-on-reconnection-with-custom-service-on-phone</link><description>Setup: 
 - nRF52832 , Softdevice s132, gcc 
 - iPhone is the peripheral. A custom service is implemented **on** the iPhone. 
 
 On the nRF: 
 - `#define NRF_SDH_BLE_VS_UUID_COUNT 1` 
 - The custom service 128bits ID is registered on the softdevice via</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Jan 2022 07:43:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83774/disconnection-after-30s-on-reconnection-with-custom-service-on-phone" /><item><title>RE: Disconnection after 30s on reconnection with custom service on phone</title><link>https://devzone.nordicsemi.com/thread/348413?ContentTypeID=1</link><pubDate>Wed, 19 Jan 2022 07:43:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4525aa9-4349-45fe-b4d3-9e22724eaab8</guid><dc:creator>Paul K</dc:creator><description>&lt;p&gt;The issue had to do with the way I was storing the cached characteristics of my custom service with `pm_peer_data_remote_db_store`. I was&amp;nbsp;storing the characteristic handle as&amp;nbsp;a cccd_handle.&lt;br /&gt;&lt;br /&gt;This is solved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnection after 30s on reconnection with custom service on phone</title><link>https://devzone.nordicsemi.com/thread/348373?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 17:53:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0db0a1a-0a97-4e36-bd3d-4d1d9593b520</guid><dc:creator>Paul K</dc:creator><description>&lt;p&gt;Understood. To use the sniffer I need an extra devkit. I&amp;#39;ll use the sniffer once&amp;nbsp;I receive it.&lt;/p&gt;
&lt;p&gt;The custom service&amp;nbsp;only uses 2 characteristics (one read,write, one read). No notifications or indications.&lt;br /&gt;&lt;br /&gt;But, I do use&amp;nbsp;nrf_ble_gatts_c. Which&amp;nbsp;uses indications. I get the&amp;nbsp;NRF_BLE_GATTS_C_EVT_SRV_CHANGED indication.&amp;nbsp;But I can&amp;#39;t see how this could fail to&amp;nbsp;properly reply to gatts indication _only_ when I use `&lt;span&gt;ble_db_discovery_evt_register(my_custom_service_uuid)`&lt;/span&gt;.&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disconnection after 30s on reconnection with custom service on phone</title><link>https://devzone.nordicsemi.com/thread/348231?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 10:17:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:137e42fc-824b-4925-9417-1f762a5158af</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Paul,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest to capture &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;a sniffer trace&lt;/a&gt;&amp;nbsp;so we know exactly what happened. Note that if the devices are paired, you need to&amp;nbsp;use the sniffer to capture the initial pairing so that the sniffer can catch the keys.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From what you described, it&amp;#39;s most likely that the application didn&amp;#39;t send the confirmation back to the phone. Are you planning to do notification or indication ? For notification you don&amp;#39;t need to confirm the message when with indication you need to confirm that you receive the message. Please have a look &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v6.1.1/group___b_l_e___g_a_t_t_c___h_v_i___m_s_c.html?cp=4_7_4_4_2_2_3_8"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>