<?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>nRF51822 does not found service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27670/nrf51822-does-not-found-service</link><description>Hi Guys, 
 I am new in BLE world, so sorry if I ask stupid questions. 
 I have a Simblee RFD77101 and a nRF 51822 chip. I would like to connect from nRF51 to Simblee and change data via BLE. 
 I started to use SDK 11 and tutorial ble_central/ble_app_uart_c</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Dec 2017 13:01:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27670/nrf51822-does-not-found-service" /><item><title>RE: nRF51822 does not found service</title><link>https://devzone.nordicsemi.com/thread/109242?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 13:01:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27cdfeaf-0e5c-471b-b616-001875c69e8d</guid><dc:creator>hunasdf</dc:creator><description>&lt;p&gt;Sorry, I forgot to explain the solution. I corrected this mistake :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 does not found service</title><link>https://devzone.nordicsemi.com/thread/109245?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 12:59:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96cb98a1-b5e6-4d2b-8d57-66a428e2695e</guid><dc:creator>hunasdf</dc:creator><description>&lt;p&gt;&lt;strong&gt;The solution was:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I deleted these rows from &lt;code&gt;ble_nus_c.c&lt;/code&gt;, &lt;code&gt;ble_nus_c_init&lt;/code&gt; function&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = sd_ble_uuid_vs_add(&amp;amp;nus_base_uuid, &amp;amp;p_ble_nus_c-&amp;gt;uuid_type);
VERIFY_SUCCESS(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;After that, the nRF51 discovered the services, but I do not know why the uuids were 0. So, I also modified the &lt;code&gt;ble_nus_c_on_db_disc_evt&lt;/code&gt; fuction in &lt;code&gt;ble_nus_c.c&lt;/code&gt; to the following:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void ble_nus_c_on_db_disc_evt(ble_nus_c_t * p_ble_nus_c, ble_db_discovery_evt_t * p_evt)
{
    ble_nus_c_evt_t nus_c_evt;
    memset(&amp;amp;nus_c_evt,0,sizeof(ble_nus_c_evt_t));

    ble_gatt_db_char_t * p_chars = p_evt-&amp;gt;params.discovered_db.charateristics;

    // Check if the NUS was discovered.
    if (p_evt-&amp;gt;evt_type == BLE_DB_DISCOVERY_COMPLETE)
    {
        uint32_t i;

        for (i = 0; i &amp;lt; p_evt-&amp;gt;params.discovered_db.char_count; i++)
        {
						if (i == 0) {
								nus_c_evt.handles.nus_rx_handle = p_chars[i].characteristic.handle_value;
                nus_c_evt.handles.nus_rx_cccd_handle = p_chars[i].cccd_handle;
						
						} else if (i == 1) {
							nus_c_evt.handles.nus_tx_handle = p_chars[i].characteristic.handle_value;
						}
        }
        if (p_ble_nus_c-&amp;gt;evt_handler != NULL) 
        {
            nus_c_evt.conn_handle = p_evt-&amp;gt;conn_handle;
            nus_c_evt.evt_type    = BLE_NUS_C_EVT_DISCOVERY_COMPLETE;
            p_ble_nus_c-&amp;gt;evt_handler(p_ble_nus_c, &amp;amp;nus_c_evt);
        }
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And finally can send with &lt;code&gt;ble_nus_c_string_send&lt;/code&gt; function and I get callback on receive at &lt;code&gt;ble_nus_c_evt_handler&lt;/code&gt; function  in &lt;code&gt;main.c&lt;/code&gt; file (&lt;code&gt;BLE_NUS_C_EVT_NUS_RX_EVT&lt;/code&gt; event).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 does not found service</title><link>https://devzone.nordicsemi.com/thread/109241?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 12:46:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:935d7369-4a4e-4afe-8e2b-a418fddf7d46</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Please consider adding an answer to your question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 does not found service</title><link>https://devzone.nordicsemi.com/thread/109240?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2017 12:52:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c68e686-fc5d-4676-910d-36ca4bf99a41</guid><dc:creator>hunasdf</dc:creator><description>&lt;p&gt;Thanks Man, you helped a lot! It is working now :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 does not found service</title><link>https://devzone.nordicsemi.com/thread/109239?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 20:02:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e75b2c75-e64d-42e5-a5cf-0883acb7eaf4</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Not really but to be fair I don&amp;#39;t use the modules you use for discovery so I have no idea what these writes mean. Go into your code and either push out more debugging info or debug yourself. I actually never understood benefit of using modules which you don&amp;#39;t know how they work internally so then you are completely lost when you need to debug them because they don&amp;#39;t work as you expect. GATT Service discovery is pretty easy thing writable directly in SD GATT API calls and events&amp;#39; handling especially if you are looking for single Service and single Characteristic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 does not found service</title><link>https://devzone.nordicsemi.com/thread/109238?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 19:57:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f4de013-43c6-4222-bf89-67712125872c</guid><dc:creator>hunasdf</dc:creator><description>&lt;p&gt;Ok, service discovered, characteristics discovered. But all characteristics with 0 UUID? Is it valid?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 does not found service</title><link>https://devzone.nordicsemi.com/thread/109237?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 19:41:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1568d170-2109-4d6c-8803-a75739155e91</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Regarding vendor specific UUID just search the forum for 128-bit UUID and you will get many answers explaining roughly the same... to your trace: it looks that service is discovered (at least now) so if you say &amp;quot;crash&amp;quot; you need to debug if it is really hard fault or just asserted error code returned from SD API (and then just print the error code and look to API documentation for explanation).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 does not found service</title><link>https://devzone.nordicsemi.com/thread/109244?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 19:11:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:481068c8-e4e3-4b1a-bee5-a0d4f8227b8f</guid><dc:creator>hunasdf</dc:creator><description>&lt;p&gt;I am using ble_nus as GATT Server. Is it correct or I am thinking all wrong? :D So I do not found any other tutorial which can exchange data between devices. This is a reason why I am trying with this. but If it not a correct solution...
And yeah, Simblee&amp;#39;s documentation and everything is very poor, We hate it... -.-&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 does not found service</title><link>https://devzone.nordicsemi.com/thread/109236?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 19:02:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bd72a48-8a43-494f-b3ae-12037c4e3aac</guid><dc:creator>hunasdf</dc:creator><description>&lt;p&gt;Thanks for the comment, i answered the questions and added more details about the issue in Edit 01 section :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 does not found service</title><link>https://devzone.nordicsemi.com/thread/109235?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 10:02:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a727be6a-7bf4-4cd9-a1f9-ef3d1979aa20</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What kind of firmware are you running on the Simblee? Have you registered the service you want to discover with ble_db_discovery_evt_register()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 does not found service</title><link>https://devzone.nordicsemi.com/thread/109243?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 08:53:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45f2b52a-1a35-4a4e-87a3-d3cc406a52fb</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Well the services can be found only if GATT Server exists and has particular Service object with correct UUID on it. The question is how you do it on Simblee.&lt;/p&gt;
&lt;p&gt;The choice of &amp;quot;application&amp;quot; in BLE is matter of both peers. So while on nRF5x you have obvious choice of all read-made examples from nRF5 SDK + possibility to write almost anything (which is GATT Server/Client and GAP Central/Peripheral compliant) in custom FW it must match with the other side. What do you do with Simblee? (I guess it has nRF51 inside but it claims to lock you to some stupid Arduino style IDE and libraries and bootloader so no help from me, sorry;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>