<?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>Services don&amp;#39;t work together</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14015/services-don-t-work-together</link><description>Hi, 
 I implemented two services, now I have the following problem. Each service is working standalone, but when I put both together only the first initialized service works. The other service returns inconsistent err_codes by the function sd_ble_gatts_hvx</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Jun 2016 06:58:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14015/services-don-t-work-together" /><item><title>RE: Services don't work together</title><link>https://devzone.nordicsemi.com/thread/53533?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 06:58:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a7f990f-52aa-4805-9724-ff64a76f5326</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Great that you got it working. And thanks for adding an answer :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Services don't work together</title><link>https://devzone.nordicsemi.com/thread/53532?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 16:33:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbc99ff5-1230-4835-a9d6-e12114aea91e</guid><dc:creator>Kai</dc:creator><description>&lt;p&gt;Thanks the services works now. The error was that I initialized both cccd with NULL instead of the second with &amp;amp;cccd&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Services don't work together</title><link>https://devzone.nordicsemi.com/thread/53531?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 16:32:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d72cfcb6-7d32-4269-b3bc-e3c830ea0296</guid><dc:creator>Kai</dc:creator><description>&lt;p&gt;Ok, Thanks the services works now. The error was that I initialized both cccd with NULL instead of the second with &amp;amp;cccd.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Services don't work together</title><link>https://devzone.nordicsemi.com/thread/53529?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2016 16:53:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cfd268c-f8d6-4c3d-aa19-89354436e378</guid><dc:creator>Kai</dc:creator><description>&lt;p&gt;Hi, I changed the main to resolve some errors. The issue is almost the same. I get the 0x3401 from the sd_ble_gatts_hvx(). I read in the forum, that this is a cccd problem. But I don&amp;#39;t get the BLE EVT (SYS_ATTR_MISSING). Through debugging I realized, that no matter which of these two services I am calling. The BLE_GAP_EVT_CONNECTED and BLE_GATTS_WRITE triggers always the same state maschine in this case (positioning).
Maybe I am overwritting the cccd during the initialization.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Services don't work together</title><link>https://devzone.nordicsemi.com/thread/53530?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2016 07:38:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41267559-6f61-4ccc-9ecf-a4d746abcaa8</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What do you mean by now? Did you change anything? Is 0x3401 returned from sd_ble_gatts_hvx()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Services don't work together</title><link>https://devzone.nordicsemi.com/thread/53528?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2016 14:28:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca14e2ff-abe3-4148-a242-2fd7397a778c</guid><dc:creator>Kai</dc:creator><description>&lt;p&gt;Ok, it&amp;#39;s weird, now im getting the error 0x3401, on a consitent base. With sd_ble_gatts_set then I get the invalid state error...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Services don't work together</title><link>https://devzone.nordicsemi.com/thread/53527?ContentTypeID=1</link><pubDate>Thu, 26 May 2016 07:59:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee4ec184-81bc-4a47-86e6-ab5f636a5411</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I used Keil yes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Services don't work together</title><link>https://devzone.nordicsemi.com/thread/53522?ContentTypeID=1</link><pubDate>Wed, 25 May 2016 16:45:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18a0bf5c-5330-464e-98dd-87af00d9bcbb</guid><dc:creator>Kai</dc:creator><description>&lt;p&gt;Which IDE did you use? Keil? I use eclipse. Maybe there is a memory issue. I will check it later and report the answer. Thanks for checking the services.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Services don't work together</title><link>https://devzone.nordicsemi.com/thread/53521?ContentTypeID=1</link><pubDate>Wed, 25 May 2016 16:07:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4891a7ae-d2c4-40e4-93a1-e7624e5dfcd5</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I tried to reproduce your issue with the files in the repo, but I can&amp;#39;t. Both sd_ble_gatts_hvx() seems to be working fine. Maybe you should investiage the arguments given to sd_ble_gatts_hvx() when you get the error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Services don't work together</title><link>https://devzone.nordicsemi.com/thread/53523?ContentTypeID=1</link><pubDate>Wed, 25 May 2016 14:42:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28b1f3e7-4e43-4b6d-a670-6aeff0465703</guid><dc:creator>Kai</dc:creator><description>&lt;p&gt;Thanks for your help. I created a githup repository. I think this is the best way&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/Acetofive/ServicesnotworkingTogether"&gt;github.com/.../ServicesnotworkingTogether&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When I comment out services_init() in line the service positioning works. Otherwise only the inertial service works. I am using the SDK_v8 and the Softdevice 130&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Services don't work together</title><link>https://devzone.nordicsemi.com/thread/53525?ContentTypeID=1</link><pubDate>Wed, 25 May 2016 11:37:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abd45512-cd81-4165-b6a5-65a116deea02</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The sd_ble_gatts_hvx() of the second added service inconsistently returns 0x00000004 NRF_ERROR_NO_MEM, 0x00000005 NRF_ERROR_NO_MEM, and 0x00000007 NRF_ERROR_INVALID_PARAM? Sounds very strange. I&amp;#39;m not sure what could cause this. Would it be possible for you to upload a complete project that exhibits the behvior? Please also include what SD and SDK versions you are using.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Services don't work together</title><link>https://devzone.nordicsemi.com/thread/53524?ContentTypeID=1</link><pubDate>Tue, 24 May 2016 18:08:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10fcbb8f-a458-4da5-b8a2-430087fa2b82</guid><dc:creator>Kai</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I added my sd_ble_gatts_hvx() calls. With the app I can see all services.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Services don't work together</title><link>https://devzone.nordicsemi.com/thread/53526?ContentTypeID=1</link><pubDate>Mon, 23 May 2016 13:53:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4374452-b039-4164-b739-03b74f1843a5</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Are you able to discover both characteristics with for example Master Control Panel? Are you sure you are calling sd_ble_gatts_hvx() with the correct parameters? It returns various error codes?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>