<?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>Regarding custom profile creation in nRF52 stack.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20092/regarding-custom-profile-creation-in-nrf52-stack</link><description>Hello 
 I have created one custom profile using &amp;quot;ble_app_uart&amp;quot; project. Now I have an issue that I can&amp;#39;t able to remove UART part of the code. If I remove the UART part of the code, the data from mobile is not come to the data handler(os_data_handler</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Mar 2017 16:09:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20092/regarding-custom-profile-creation-in-nrf52-stack" /><item><title>RE: Regarding custom profile creation in nRF52 stack.</title><link>https://devzone.nordicsemi.com/thread/78230?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2017 16:09:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46ce17ae-d3f3-4f91-a7c8-f80e30414758</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It is not reaching the breakpoint because p_our_service-&amp;gt;data_handler == NULL. If you add&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;p_our_service-&amp;gt;data_handler = p_os_init-&amp;gt;data_handler;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;inside our_service_init(), it should work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding custom profile creation in nRF52 stack.</title><link>https://devzone.nordicsemi.com/thread/78229?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2017 05:21:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:438b6843-2e61-42d9-866d-b8c676a12bef</guid><dc:creator>Murali</dc:creator><description>&lt;p&gt;Hi Petter,
First when I debug I can&amp;#39;t able to set breakpoint on  BLE_GATTS_EVT_WRITE, after changing the optimization settings to level 0 only I am able to set breakpoint. In debug the breakpoint reached to  BLE_GATTS_EVT_WRITE and it is reached to on_write function also. But the break point in the line &amp;quot;&lt;strong&gt;p_our_service-&amp;gt;data_handler(p_our_service, p_evt_write-&amp;gt;data, p_evt_write-&amp;gt;len);&lt;/strong&gt;&amp;quot; is not reached. It reached the above that line &amp;quot;&lt;strong&gt;else if (
(p_evt_write-&amp;gt;handle == p_our_service-&amp;gt;char_value_handles.value_handle)
&amp;amp;&amp;amp;
(p_our_service-&amp;gt;data_handler != NULL)
)&lt;/strong&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know why it is not reaching the breakpoint.&lt;/p&gt;
&lt;p&gt;I have checked using watch point - Expressions the given value is present in Gatts_evt -Data(FF).
I also attached the screenshots in my question. Please check it and let me know,what was wrong I did.
Thanks &amp;amp; Regards,
Murali M&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding custom profile creation in nRF52 stack.</title><link>https://devzone.nordicsemi.com/thread/78228?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2017 15:59:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13874cda-c8fd-4fde-8b9b-a2f1968dbbac</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I just tested your project, seems to be working fine here. I&amp;#39;m getting the BLE_GATTS_EVT_WRITE event, confirmed by breakpoint.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding custom profile creation in nRF52 stack.</title><link>https://devzone.nordicsemi.com/thread/78227?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2017 10:32:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38892837-6d6b-47c4-9f36-6a14c12c0ac0</guid><dc:creator>Murali</dc:creator><description>&lt;p&gt;Hi Petter,
I have uploaded the whole project in my question itself in the name
&amp;quot;&lt;strong&gt;ble_app_hrs - vincense_custom_profile.rar&lt;/strong&gt;&amp;quot; .
Thanks.
Murali M&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding custom profile creation in nRF52 stack.</title><link>https://devzone.nordicsemi.com/thread/78226?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2017 08:29:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ecc372c-7357-422e-861c-647747ef9c58</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Ok. Could you upload your complete project so I can test it here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding custom profile creation in nRF52 stack.</title><link>https://devzone.nordicsemi.com/thread/78225?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2017 05:25:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9d2e38d-1e61-45ab-9f47-fde7181a7692</guid><dc:creator>Murali</dc:creator><description>&lt;p&gt;Hi Petter,
I am using nRF Connect app only. and the mobile is samsung duo (android smartphone).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding custom profile creation in nRF52 stack.</title><link>https://devzone.nordicsemi.com/thread/78222?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2017 11:28:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a5fa89f-99fe-457c-8dbf-3b7c0feec341</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Then I&amp;#39;m suspecting that the client is not actually writing to the attribute. What app are you using smart phone? I recommend testing with nRF Connect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding custom profile creation in nRF52 stack.</title><link>https://devzone.nordicsemi.com/thread/78224?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2017 04:44:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8f71836-dad4-468f-8a50-fb90936f2a10</guid><dc:creator>Murali</dc:creator><description>&lt;p&gt;Hi Petter,
I have checked in debug, it is not hitting.
Please give me suggestions how to solve this.
Thanks &amp;amp; regards
Murali.M&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regarding custom profile creation in nRF52 stack.</title><link>https://devzone.nordicsemi.com/thread/78223?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2017 10:30:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b6ed68b-795b-4240-b5dc-490c342c1bd6</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;So you are able to connect? Have you tried to debug? If you put a breakpoint on p_our_service-&amp;gt;data_handler(p_our_service, p_evt_write-&amp;gt;data, p_evt_write-&amp;gt;len); in on_write() are you hitting it? Are you getting the BLE_GATTS_EVT_WRITE in ble_our_service_on_ble_evt()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>