<?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>discover pipes without SetupAddService</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6228/discover-pipes-without-setupaddservice</link><description>I&amp;#39;m writing a PC utility in Visual Studio to connect to BLE devices. I&amp;#39;m using the PCA10000 and MasterEmulator.dll. I&amp;#39;m able to discover the services and characteristics of a device with MasterEmulator.DiscoverServices(). Is there a way to have all of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Mar 2015 11:34:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6228/discover-pipes-without-setupaddservice" /><item><title>RE: discover pipes without SetupAddService</title><link>https://devzone.nordicsemi.com/thread/21809?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2015 11:34:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b007875-ad86-43c9-9b59-33550a6730dc</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Dean,&lt;/p&gt;
&lt;p&gt;For creating generic purpose central device, I would suggest you to try the &lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF51822/nRF51-BLE-Driver/44859"&gt;BLE-Driver&lt;/a&gt; that directly uses S120 stack instead of using the MasterEmulator.dll. You can access low level GATT API to discovery services and read/write a attribute.&lt;/p&gt;
&lt;p&gt;If you want to stick with MasterEmulator, what you can try is to&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;connect and do a DiscoverServices()&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;call Close()&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;call Open()&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;call the required pipesetup commands based on parsing the DiscoverServices
output&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Call Run() again&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note that I haven&amp;#39;t tried this and DiscoverServices() is not made for this purpose.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>