<?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>S140 return 0x11 error code when nRF52840 discover service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23489/s140-return-0x11-error-code-when-nrf52840-discover-service</link><description>Hi, 
 I&amp;#39;m using the bluetooth 5.0 and base on the mutilink_center example to add a peripheral and a center. Because I want the center to connect two type device. It could scan and advertise, but when the center use sd_ble_gattc_primary_services_discover</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Jul 2017 12:12:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23489/s140-return-0x11-error-code-when-nrf52840-discover-service" /><item><title>RE: S140 return 0x11 error code when nRF52840 discover service</title><link>https://devzone.nordicsemi.com/thread/92269?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2017 12:12:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d74cb89f-bb77-4aaa-9858-baed8e2f031b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Note that by default service discovery is started right after the device get connected. ble_db_discovery_start() called inside BLE_GAP_EVT_CONNECTED event in on_ble_evt() in the multilink_central example.
If you re-use the example, you shouldn&amp;#39;t call that call again at other places.&lt;/p&gt;
&lt;p&gt;You may want to capture &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer/"&gt;a sniffer trace&lt;/a&gt; to check what exactly happen over the air.&lt;/p&gt;
&lt;p&gt;You can also try to make a simplified code that demonstrate the problem and send me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S140 return 0x11 error code when nRF52840 discover service</title><link>https://devzone.nordicsemi.com/thread/92268?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2017 16:06:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:582f9592-c236-42fa-95ad-ea6c600d6466</guid><dc:creator>Alice</dc:creator><description>&lt;p&gt;I&amp;#39;m sure that it just call one time to discovery the service. The center will scan for the device when powered up. I have known the address of the device and I have done a limit to connect the device only. I didn&amp;#39;t see the problem when testing with mulilink central example. The device connected now is the same with using to test with mulilink central example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S140 return 0x11 error code when nRF52840 discover service</title><link>https://devzone.nordicsemi.com/thread/92267?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2017 14:49:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ebba397-be60-480f-958e-53eceed17bf9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Alice,&lt;/p&gt;
&lt;p&gt;0x11 means &lt;code&gt;NRF_ERROR_BUSY Client procedure already in progress.&lt;/code&gt; It could be that there is other service discovery already started. Make sure you don&amp;#39;t call service discovery twice for the same device.
If you already have 1 active connection, the connection handle will be 0x01.&lt;/p&gt;
&lt;p&gt;Do you see the same problem when testing with mulilink central example ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>