<?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>Cannot connect to peripheral using custom vendor service (nAN-36)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1691/cannot-connect-to-peripheral-using-custom-vendor-service-nan-36</link><description>Hi,
after reading the nAN-36, I tried to write an application for the nRF51822, with the custom Led Service provided with nAN-36. 
 I take as a base the Nordic HRM application (s110/ble_app_hrs), I removed the HR related service, variables etc. and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Jul 2014 02:30:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1691/cannot-connect-to-peripheral-using-custom-vendor-service-nan-36" /><item><title>RE: Cannot connect to peripheral using custom vendor service (nAN-36)</title><link>https://devzone.nordicsemi.com/thread/7481?ContentTypeID=1</link><pubDate>Tue, 22 Jul 2014 02:30:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8a3c48b-a648-4827-b326-33ee92c163e1</guid><dc:creator>Scott</dc:creator><description>&lt;p&gt;I was also bitten by this &amp;quot;feature&amp;quot;. Since it&amp;#39;s no longer obvious how to clear the cache in OSX, the steps are:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sudo defaults write /Library/Preferences/com.apple.Bluetooth CoreBluetoothCache -dict
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.blued.plist
sudo launchctl load /System/Library/LaunchDaemons/com.apple.blued.plist
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Also be warned if you are using the ble_app_hrs example to create your own custom UUIDs you need to make sure you call &lt;code&gt;services_init()&lt;/code&gt; before &lt;code&gt;advertising_init()&lt;/code&gt; in the main function. Otherwise your custom UUID is not yet initialised.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot connect to peripheral using custom vendor service (nAN-36)</title><link>https://devzone.nordicsemi.com/thread/7480?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2014 18:31:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2d0235c-5d2b-454d-9e3c-a92791038538</guid><dc:creator>Samuele Forconi</dc:creator><description>&lt;p&gt;Solved.
It was Core Bluetooth Framework that caches previous characteristics and pairing status.
Cleaning the cache (from Settings Panel), solved the problem.
Now, I can successfully see the Led Service.&lt;/p&gt;
&lt;p&gt;Sorry for the useless post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>