<?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 is not advertising when creating custom service using UART service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29040/device-is-not-advertising-when-creating-custom-service-using-uart-service</link><description>Hi, 
 In my application I am creating one more custom service using UART service. I have created new files named ble_nus1.c and ble_nus1.h. In these files I have changed the variable names . But still the device is not advertising when flashing the code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Jan 2018 11:24:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29040/device-is-not-advertising-when-creating-custom-service-using-uart-service" /><item><title>RE: Device is not advertising when creating custom service using UART service</title><link>https://devzone.nordicsemi.com/thread/115022?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 11:24:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f829769-af94-40ff-b3b8-1b62216bd5e8</guid><dc:creator>jaimin</dc:creator><description>&lt;p&gt;@Ankush
I am using Nrf51 board
I am trying to add own custom service in ble_app_uart example (with le_enable_params.common_enable_params.vs_uuid_count = 2) and after loading that hex file, module got reset.  I have same  problem in &amp;quot;err_code = softdevice_enable(&amp;amp;ble_enable_params);&amp;quot; routine .
In addition, i have tried your solution to comment #if (NRF_SD_BLE_API_VERSION == 3)  but  I faced same issue.
Kindly provide the solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is not advertising when creating custom service using UART service</title><link>https://devzone.nordicsemi.com/thread/115021?ContentTypeID=1</link><pubDate>Wed, 22 Feb 2017 18:24:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2478b59a-e05a-4347-84ec-cb9aa92cba98</guid><dc:creator>Ankush</dc:creator><description>&lt;p&gt;Hey Rishi,&lt;/p&gt;
&lt;p&gt;Sorry for late reply as I was travelling. I was facing this issue with SDK12.0.0. I commented out following lines in &lt;code&gt;ble_stack_init&lt;/code&gt;,&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    //#if (NRF_SD_BLE_API_VERSION == 3)
    //    ble_enable_params.gatt_enable_params.att_mtu = NRF_BLE_GATT_MAX_MTU_SIZE;
    //#endif
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Hope it will solve your issue. and device will start advertising....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is not advertising when creating custom service using UART service</title><link>https://devzone.nordicsemi.com/thread/115020?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2017 05:13:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9feeb33-32f4-4ee4-8129-5fe3fe3b93d9</guid><dc:creator>Rishi</dc:creator><description>&lt;p&gt;Hey @Ankush, What was the solution that helped you solve your problem. I am going through the same issue. Although I have set le_enable_params.common_enable_params.vs_uuid_count = 2 and advertising data using scan response packet, the board is still not advertising.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is not advertising when creating custom service using UART service</title><link>https://devzone.nordicsemi.com/thread/115018?ContentTypeID=1</link><pubDate>Fri, 16 Dec 2016 12:14:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e878ab99-f6bb-44ed-99a3-bd8820a570dc</guid><dc:creator>Ankush</dc:creator><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;The issue is solved for SDK12.0.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is not advertising when creating custom service using UART service</title><link>https://devzone.nordicsemi.com/thread/115019?ContentTypeID=1</link><pubDate>Fri, 16 Dec 2016 11:44:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0cc625f-aefa-4b35-ac01-97adc212eba8</guid><dc:creator>Ankush</dc:creator><description>&lt;p&gt;Here Code is getting stucked at line&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = softdevice_enable(&amp;amp;ble_enable_params);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In ble_stack_init()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is not advertising when creating custom service using UART service</title><link>https://devzone.nordicsemi.com/thread/115017?ContentTypeID=1</link><pubDate>Fri, 16 Dec 2016 09:42:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09872568-ab7e-4474-b05c-986841c3c51a</guid><dc:creator>Ankush</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In new SDK 12.0 I am following the same process to combine to UART services as in SDK11.0. But Even if I set &lt;code&gt;le_enable_params.common_enable_params.vs_uuid_count = 2&lt;/code&gt; , device is not advertising. Is any different configuration required for this SDK12.0 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is not advertising when creating custom service using UART service</title><link>https://devzone.nordicsemi.com/thread/115016?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2016 17:57:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a629602-3caa-4825-9cf3-095001414e18</guid><dc:creator>Ankush</dc:creator><description>&lt;p&gt;Hi Justin,&lt;/p&gt;
&lt;p&gt;In my m_adv_uuids  I have only Heart rate, BAS and DIS services. I have commented out NUS characteristics as because of this it was not advertising in my last codes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is not advertising when creating custom service using UART service</title><link>https://devzone.nordicsemi.com/thread/115015?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2016 17:53:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14d4fb0e-1e6b-4be2-86ae-20228f10fe4a</guid><dc:creator>Ankush</dc:creator><description>&lt;p&gt;Hi Jastin,&lt;/p&gt;
&lt;p&gt;Thank you so much for the reply. Yes by changing the count to 2 it starts advertising. I can see the two different services on APP. But when I enable both notification only then I am receiving data using second custom service.&lt;br /&gt;
following is the code to send any rough values to custom service from nrf52.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;				void send_to_app()
		{
			uint32_t    err_code;
			uint8_t buff[10] = {0x54,0x55,0x55,0x55,0x55,0x55,0x55,0x55};
		//    err_code = ble_nus_string_send(&amp;amp;m_nus, buff, 20);
		//    if (err_code != NRF_ERROR_INVALID_STATE)
		//    {
		//			APP_ERROR_CHECK(err_code);
		//    }		
			err_code = ble_nus_string_send1(&amp;amp;m_nus1, buff, 20);
			if (err_code != NRF_ERROR_INVALID_STATE)
			{
					APP_ERROR_CHECK(err_code);
			}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Here I am using two different functions which points to to two different libraries that I have crested for two services.&lt;/p&gt;
&lt;p&gt;When I enable notification of custom service control should transfer to data_handler 1 when send any data data from app. It is not happening.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is not advertising when creating custom service using UART service</title><link>https://devzone.nordicsemi.com/thread/115014?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2016 17:33:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30f79783-9c5e-432f-9b83-c87e931867af</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;I think you&amp;#39;re advertising too many characteristics.  You only need to advertise the ones you really want to scan for.  Change m_adv_uuids to only have the heart rate service&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is not advertising when creating custom service using UART service</title><link>https://devzone.nordicsemi.com/thread/115012?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2016 17:29:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2b24d6e-871b-4380-acc0-5bbe0272db9e</guid><dc:creator>Ankush</dc:creator><description>&lt;p&gt;Hi Elias,&lt;/p&gt;
&lt;p&gt;Thanks for your comment. I agree that it is  not possible to go through entire code to resolve the issue. I regret for that. Actually I am trying to use two UART profiles in my code so that I can transfer more number of packets. Through one UART profile I am transferring the  1000 samples per seconds. Using another UART(custom) profile I want to send different packets.
What I understand If we change UUID of new service then it should work as different service that we want.(This I tried previously with HRS ad HTS service).&lt;/p&gt;
&lt;p&gt;In this case I changed  UART service UUID to 0x0004, TX char UUID to 0x0005 and RX char UUID to 0x0006. I had this issue earlier, but at that time execution was stopping at ble_stack_initialization. So after changing clock previous codes worked fine. This time code is stopping at advertising_init function. I am trying to figure out issue.&lt;/p&gt;
&lt;p&gt;Please can you give me some suggestion regarding this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is not advertising when creating custom service using UART service</title><link>https://devzone.nordicsemi.com/thread/115013?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2016 17:25:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0950280-5726-45bc-928d-f8500f411820</guid><dc:creator>Justin</dc:creator><description>&lt;p&gt;In ble_stack_init, you need to increase
ble_enable_params.common_enable_params.vs_uuid_count
when adding a custom service with a 128-bit UUID.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device is not advertising when creating custom service using UART service</title><link>https://devzone.nordicsemi.com/thread/115011?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2016 16:58:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:857db80c-6e29-4085-b0d5-ef5fb6527c88</guid><dc:creator>Elias</dc:creator><description>&lt;p&gt;I don&amp;#39;t think it&amp;#39;s reasonable to ask someone to try to read through your code itself. Tell us what you&amp;#39;ve tried, what can&amp;#39;t be the problem, any parts that you know are working, etc. Show us that you&amp;#39;ve put some effort into solving the problem, rather than asking us to be your application programmers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>