<?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>device could not be found due to changes in m_adv_uuids[]</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56812/device-could-not-be-found-due-to-changes-in-m_adv_uuids</link><description>Hi expert, 
 
 I&amp;#39;m working for my project that make a controller for drone, and that i need nus for as my service so i can exchange the data (send order via rx from smartphone) so i&amp;#39;m using ble_app_templat as my basis for esthablishing a connection, and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Apr 2020 14:42:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56812/device-could-not-be-found-due-to-changes-in-m_adv_uuids" /><item><title>RE: device could not be found due to changes in m_adv_uuids[]</title><link>https://devzone.nordicsemi.com/thread/245058?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2020 14:42:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8f2b4dd-13fe-4f5b-9940-6a5cddec9f6a</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;div&gt;Hi,&lt;br /&gt;&lt;br /&gt;You will need to look at the call stack to find where the error is coming from. In the debugger, open the p_error_info and find the value of err_code...&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;BR,&lt;/div&gt;
&lt;div&gt;Marjeris&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: device could not be found due to changes in m_adv_uuids[]</title><link>https://devzone.nordicsemi.com/thread/241231?ContentTypeID=1</link><pubDate>Mon, 23 Mar 2020 18:44:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:534ab21f-183a-4b9d-96be-1cd4ea83d7ce</guid><dc:creator>Andhika</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;sorry for the late reply, i placed the breakpoint in ble_nus_init() but the LED error show nothing&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void services_init(void)
{
    uint32_t       err_code;
    ble_nus_init_t nus_init;

    memset(&amp;amp;nus_init, 0, sizeof(nus_init));

    nus_init.data_handler = nus_data_handler;


    err_code = ble_nus_init(&amp;amp;m_nus, &amp;amp;nus_init);
	Err::signalWithCode(err_code,6);
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;problem is if i debug it the device can be found but the code goes direct to&amp;nbsp;NRF_BREAKPOINT_COND;&lt;/p&gt;
&lt;p&gt;but if i only flash and run the device could not be found at all.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;
&lt;p&gt;Andhika&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: device could not be found due to changes in m_adv_uuids[]</title><link>https://devzone.nordicsemi.com/thread/238852?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2020 13:54:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f56c58a1-46ce-4921-b569-81ede5392cf0</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you call ble_nus_init() in service_init()? If yes, place a breakpoint in the code line right under it, so for example if you have:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;err_code = ble_nus_init(&amp;amp;m_nus, &amp;amp;nus_init);
APP_ERROR_CHECK(err-code);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Try sending a breakpoint at the APP_ERROR_CHECK line. Then check the value you get in err_code.&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: device could not be found due to changes in m_adv_uuids[]</title><link>https://devzone.nordicsemi.com/thread/238015?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2020 12:18:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51592b19-d0df-4c38-9168-5df8276520db</guid><dc:creator>Andhika</dc:creator><description>&lt;p&gt;yes I have&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: device could not be found due to changes in m_adv_uuids[]</title><link>https://devzone.nordicsemi.com/thread/238007?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2020 11:51:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:357fc7bc-23fe-4b76-80f0-2e530e500a69</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. Have you increased NRF_SDH_BLE_VS_UUID_COUNT from 0 to 1 in sdk_config.h?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: device could not be found due to changes in m_adv_uuids[]</title><link>https://devzone.nordicsemi.com/thread/236594?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 14:34:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:930dc1d2-27f9-4ef6-a705-537338952f07</guid><dc:creator>Andhika</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thanks for your reply, and yes NRF_LOG_ENABLED is set to 1. bu as I debug the program my code stop at service_init the program didn&amp;#39;t go through this and go to&amp;nbsp;&amp;nbsp;NRF_BREAKPOINT_COND instead.&lt;/p&gt;
&lt;p&gt;i did exactlc like tutorial.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;
&lt;p&gt;Andhika&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: device could not be found due to changes in m_adv_uuids[]</title><link>https://devzone.nordicsemi.com/thread/234991?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 15:47:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:322d24be-8653-46ee-bc90-cbd16cd01b0a</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. Do you get any error messages in nrf_log when this happens? Remember to set NRF_LOG_ENABLED to 1 in sdk_config.h&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: device could not be found due to changes in m_adv_uuids[]</title><link>https://devzone.nordicsemi.com/thread/231608?ContentTypeID=1</link><pubDate>Wed, 29 Jan 2020 11:12:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ce59268-0a89-4e9c-8297-a569aca364d6</guid><dc:creator>Andhika</dc:creator><description>&lt;p&gt;Hi majeris,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks for getting back, sorry for late reply I had exam yesterday&lt;/p&gt;
&lt;p&gt;it has no error it just the bluetooth device could not be found anymore (the deivce name and it&amp;#39;s service doesn&amp;#39;t appear)&lt;/p&gt;
&lt;p&gt;thanks for your link to the tutorial custom service i&amp;#39;ll able to keep a track, I already compare it and follow it step by step. but still my device could not be found&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;previously I hv similar issue when i tried modify the ram, my device could not be found but when I reset to the orginal ram it appear again, and yeterday i tried to change the ram like the tutorial suggest but didn&amp;#39;t work. Is it possible that the root of these issues lies on ram?&lt;/p&gt;
&lt;p&gt;here is the original ram it&amp;#39;s bigger then the ram that suggested&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;MEMORY
{
  FLASH (rx) : ORIGIN = 0x26000, LENGTH = 0x5a000
  RAM (rwx) :  ORIGIN = 0x20002b88, LENGTH = 0x3d478
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;
&lt;p&gt;Andhika&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: device could not be found due to changes in m_adv_uuids[]</title><link>https://devzone.nordicsemi.com/thread/230884?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2020 14:05:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ee5680e-10f0-4bd4-a18d-f8826acf2128</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What error message are you getting now? Have you tried to compare your application to ble_app_uart?&lt;/p&gt;
&lt;p&gt;In ble_app_template the function advertising_init is called before service_init(). If you want to advertise the NUS UUID you need to change the order and call advertising_init() after services_init().&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: device could not be found due to changes in m_adv_uuids[]</title><link>https://devzone.nordicsemi.com/thread/230439?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2020 19:30:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ec1f062-38f4-4992-88c1-d1f94c0f019e</guid><dc:creator>Andhika</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="73427" url="~/f/nordic-q-a/56812/device-could-not-be-found-due-to-changes-in-m_adv_uuids/230403"]How have you defined BLE_UUID_NUS_SERVICE? Did you include ble_nus.h in your project? Please take a look at the&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/56621/can-t-send-data-after-re-bonding"&gt; ble_app_uart &lt;/a&gt;example. This example runs the Nordic UART Service (NUS) and can be found under &amp;#39;examples/ble_peripheral/ble_app_uart&amp;#39; folder.[/quote]
&lt;p&gt;yes I defined it through ble_nus.h i already included it in makefile and yes i took the example for my project from ble_app_uart.&lt;/p&gt;
[quote userid="73427" url="~/f/nordic-q-a/56812/device-could-not-be-found-due-to-changes-in-m_adv_uuids/230403"]The Nordic UART service is a custom service, so we use a 128-bit vendor specific UUID and you need to use UUID type BLE_UUID_TYPE_VENDOR_BEGIN.[/quote]
&lt;p&gt;yeah i also aready defined BLE_UUID_TYPE_VENDOR_BEGIN in nus_service_uuid_type this one that cause the problem i think.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;best regard,&lt;/p&gt;
&lt;p&gt;Andhika&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: device could not be found due to changes in m_adv_uuids[]</title><link>https://devzone.nordicsemi.com/thread/230403?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2020 15:14:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:017b6a1d-23ad-4327-89dc-f78a1825b90e</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How have you defined BLE_UUID_NUS_SERVICE? Did you include ble_nus.h in your project? Please take a look at the&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/56621/can-t-send-data-after-re-bonding"&gt; ble_app_uart &lt;/a&gt;example. This example runs the Nordic UART Service (NUS) and can be found under &amp;#39;examples/ble_peripheral/ble_app_uart&amp;#39; folder.&lt;/p&gt;
&lt;p&gt;The Nordic UART service is a custom service, so we use a 128-bit vendor specific UUID and you need to use UUID type BLE_UUID_TYPE_VENDOR_BEGIN.&lt;/p&gt;
&lt;p&gt;You can change the base of the 128-bit vendor-specific UUID by changing NUS_BASE_UUID in ble_nus.c if you want (for example if you want to create a custom UART service for your application), please take a look a &lt;a href="https://github.com/bjornspockeli/custom_ble_service_example"&gt;this tutorial &lt;/a&gt;for more information about custom services and UUIDs.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>