<?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>S120 central discover service fail</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10518/s120-central-discover-service-fail</link><description>Hello, 
 I am using NUS service as a peripheral with read and write characteristics and tested on master control panel.
Now I am using S120 stack for central device and able to scan for the device. But when central tries to connect, I am getting Service</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Nov 2015 14:26:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10518/s120-central-discover-service-fail" /><item><title>RE: S120 central discover service fail</title><link>https://devzone.nordicsemi.com/thread/39120?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 14:26:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:643be2bd-ff30-4199-8a8f-3d446aeaad7b</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You can check the event in on_ble_evt(). Then you can print out:&lt;/p&gt;
&lt;p&gt;p_ble_evt-&amp;gt;evt.gattc_evt.params.prim_srvc_disc_rsp.services[0].uuid.uuid - This should match the short UUID of service&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;p_ble_evt-&amp;gt;evt.gattc_evt.params.prim_srvc_disc_rsp.services[0].uuid.type -This should match the type of the base UUID returned from sd_ble_uuid_vs_add(&amp;amp;base_uuid, &amp;amp;m_base_uuid_type);&lt;/p&gt;
&lt;p&gt;You will get the BLE_GATTC_EVT_PRIM_SRVC_DISC_RSP event as an response to calling sd_ble_gattc_primary_services_discover(), the example should already be calling this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S120 central discover service fail</title><link>https://devzone.nordicsemi.com/thread/39119?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 13:39:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40bd9410-bf03-4ee0-b8a1-332a329fb108</guid><dc:creator>sowmya</dc:creator><description>&lt;p&gt;Ok thank you. I am checking this event in on_ble_evt() function. Is this correct? And there is no discovered uuid field? Where exactly I have to use the event?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S120 central discover service fail</title><link>https://devzone.nordicsemi.com/thread/39118?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 13:34:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0dd0ef7-13ce-4aef-809c-8de89502f601</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Right. You can try to sniff the connection to find out what is happening, or you could handle the BLE_GATTC_EVT_PRIM_SRVC_DISC_RSP event, and check what UUIDs that is discovered by for example printing them out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S120 central discover service fail</title><link>https://devzone.nordicsemi.com/thread/39117?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 13:18:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d48fb6b1-c4b7-402c-8034-df23af5b5d5c</guid><dc:creator>sowmya</dc:creator><description>&lt;p&gt;I have modified ble_app_multilink_central example and commented scan_start() in device_manager_event_handler, so there should not be any problem even if light blue peripheral is advertising right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S120 central discover service fail</title><link>https://devzone.nordicsemi.com/thread/39116?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 13:15:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a08abcb6-99ea-486d-ae58-94c67182c4df</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Are you modigying the ble_app_multilink_central example? If you are, there could be a problem with lightblue peripheral, because even though you connect to it, it will continue to advertise. And the ble_app_multilink_central example will continue to scan. See scan_start() in device_manager_event_handler(). I&amp;#39;m not sure if that is causing the problem though. Are you able to sniff the connection with nRF Sniffer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S120 central discover service fail</title><link>https://devzone.nordicsemi.com/thread/39115?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 13:03:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a2c7572-23e6-4190-8a72-4be636cfea37</guid><dc:creator>sowmya</dc:creator><description>&lt;p&gt;Yes it is the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S120 central discover service fail</title><link>https://devzone.nordicsemi.com/thread/39114?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 13:01:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cdc4115-dc51-430f-bdfa-18fe1c6d0655</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Yes, but BLE_DB_DISCOVERY_SRV_NOT_FOUND means that it can&amp;#39;t find the service, i.e. the UUID of the service that you are searching for. So does the service UUID that is discovered by Master Control Panel match the UUID you are asking the central device to search for?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S120 central discover service fail</title><link>https://devzone.nordicsemi.com/thread/39113?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 12:53:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:498a6afd-8860-4feb-a08e-18abed49abde</guid><dc:creator>sowmya</dc:creator><description>&lt;p&gt;Yes. With Master control Panel it is working. But in nRF51822 central device, it is not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S120 central discover service fail</title><link>https://devzone.nordicsemi.com/thread/39112?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 12:46:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44a4dfd5-9137-4c8e-b856-4df8c286af3a</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The UUID that appears in Master Control Panel, is it equal to the UUID used in central?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S120 central discover service fail</title><link>https://devzone.nordicsemi.com/thread/39111?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 12:37:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9ae1ca9-6179-4c9e-a989-bc7fc6ca913a</guid><dc:creator>sowmya</dc:creator><description>&lt;p&gt;Yes it is working with nRF51822 board but not with iOS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S120 central discover service fail</title><link>https://devzone.nordicsemi.com/thread/39110?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 11:52:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50e8f3d5-afa1-47b1-93ad-d6ebd71909f2</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m not following. Is it working now with Nordic as central and peripheral? But not with iOS?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S120 central discover service fail</title><link>https://devzone.nordicsemi.com/thread/39109?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 11:22:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f591781-8103-47db-a32e-2e6187641866</guid><dc:creator>sowmya</dc:creator><description>&lt;p&gt;Hello Petter, yes that was the I had done. Now it is able to connect to the peripheral and I am testing the same central application with light blue app on iPad and again I am getting &lt;strong&gt;BLE_DB_DISCOVERY_SRV_NOT_FOUND&lt;/strong&gt; event. Can I know how to set notify or nus service in light blue? The same application on iPad is able to connect and send notification with master control panel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S120 central discover service fail</title><link>https://devzone.nordicsemi.com/thread/39108?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2015 10:15:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bc34b5e-44b9-4111-9e23-d80777702583</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;In the central you have BLE_UUID_DEVICE_INFORMATION_SERVICE while in peripheral you have BLE_UUID_NUS_SERVICE. Are these equal? Also, are you aware of &lt;a href="https://github.com/NordicSemiconductor/ble_app_uart_c_S120"&gt;this&lt;/a&gt; example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>