<?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>Problem with connection to my service.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63005/problem-with-connection-to-my-service</link><description>As you will see with my simple files I have followed about 3 different tutorials to get to the point I am at. I am trying to replace the included SALSProbe.ino program with The following source files. I can send a zip that will compile under nrf-sdk 16</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Jun 2020 13:40:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63005/problem-with-connection-to-my-service" /><item><title>RE: Problem with connection to my service.</title><link>https://devzone.nordicsemi.com/thread/256949?ContentTypeID=1</link><pubDate>Thu, 25 Jun 2020 13:40:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f2aeb59-c770-4774-9fac-b97e479aedae</guid><dc:creator>Ken52832</dc:creator><description>&lt;p&gt;Yes no asserts are thrown.&amp;nbsp; The app just sits there quiet and happily doing nothing.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;One intersting note.&amp;nbsp; I moved services_init above the&amp;nbsp;stack_init and then it asserts.&amp;nbsp; &amp;nbsp;I think that is because the gap is not initilized at that point and when it tries to create my service everything fails.&amp;nbsp; I think services_init has to be after the stack, gatt, and gap, init.&amp;nbsp; Of course when it is there there is no errors.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The ble_observer macro doesn&amp;#39;t ahve a return value so I can&amp;#39;t tell if something might be going wrong there.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Coding should not be like this.&amp;nbsp; There should be some kind of error.&amp;nbsp; Is there some way I can print out my service and characteristic table to see if they are all corectly done with 128 bit values?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I looked on the nrf connect app and the service has a 128 bit characteristic but I can&amp;#39;t seem to find the 16 bit or the 128 bit characteristic value even though it shows both. characteristic.&amp;nbsp; Maybe I am just not finding the button to click on the IOS app&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I would like it if I could just print out the table when it gets registerd.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is starting to feel like some memory problem even if there is no complaining going on from the chip.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ken&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with connection to my service.</title><link>https://devzone.nordicsemi.com/thread/256931?ContentTypeID=1</link><pubDate>Thu, 25 Jun 2020 13:11:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:481ccc72-ce85-46a4-802e-8faa33a70172</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I can feel the pain, but don&amp;#39;t have any other suggestion than to try and fail a bit. If you are connectable advertising it should go straight to&amp;nbsp;ble_evt_handler() -&amp;gt; BLE_GAP_EVT_CONNECTED. I assume you have checked that there is no assert causing the app_error_fault_handler() to be called.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with connection to my service.</title><link>https://devzone.nordicsemi.com/thread/256886?ContentTypeID=1</link><pubDate>Thu, 25 Jun 2020 11:39:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b095ea6e-89c6-4380-a0ee-055d6113fc16</guid><dc:creator>Ken52832</dc:creator><description>&lt;p&gt;back and used gdb to log the connect case in the blink app without my changes.&amp;nbsp; I am able to catch the connect case with the regular blink app.&amp;nbsp; With my app though the code never reaches the ble_evt handler in the connect case.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So somewhere between the advertising which shows up fine.&amp;nbsp; and ble_evt handler getting called it is not working.&amp;nbsp; I have not changed that much from the blinky app other than removing the queue code, the buttons code, and adding my own service.&amp;nbsp; &amp;nbsp;I just can&amp;#39;t find what is causing the ble_evt handler from being called by the ble stack.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with connection to my service.</title><link>https://devzone.nordicsemi.com/thread/256885?ContentTypeID=1</link><pubDate>Thu, 25 Jun 2020 11:36:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bc0fe93-8788-4e0c-a95c-93ce09e319ad</guid><dc:creator>Ken52832</dc:creator><description>&lt;div style="height:1px;overflow:hidden;position:absolute;top:-10px;width:1px;" id="HTML5audiodescriptionwithscreenreaderannouncement"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>