<?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>receiving ble evt callbacks using Mesh SDK 2.0.0 and SD6.0.0 (SDK15.0.0)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35299/receiving-ble-evt-callbacks-using-mesh-sdk-2-0-0-and-sd6-0-0-sdk15-0-0</link><description>Hi @ll, 
 I&amp;#39;m not able to receive any ble events that should be triggered by the SoftDevice. 
 What I did: - Using dfu_example (added beaconing advertiser and connectable advertiser) - in mesh_softdevice_init.c: - replaced in mesh_softdevice_init(nrf_clock_lf_cfg_t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Jun 2018 14:02:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35299/receiving-ble-evt-callbacks-using-mesh-sdk-2-0-0-and-sd6-0-0-sdk15-0-0" /><item><title>RE: receiving ble evt callbacks using Mesh SDK 2.0.0 and SD6.0.0 (SDK15.0.0)</title><link>https://devzone.nordicsemi.com/thread/137128?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 14:02:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:536db250-ea12-412b-a8a2-8771fdfe1c39</guid><dc:creator>a.wallwitz</dc:creator><description>&lt;p&gt;It now works somehow, don&amp;#39;t really know what exactly caused this problem in the first place :/&lt;br /&gt;&lt;br /&gt;But thank you both for your help &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receiving ble evt callbacks using Mesh SDK 2.0.0 and SD6.0.0 (SDK15.0.0)</title><link>https://devzone.nordicsemi.com/thread/137083?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 11:44:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a40d423b-362e-4de6-bdf4-c4ec1078b0c8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;It&amp;#39;s quite strange because if you can&amp;#39;t get any BLE event when compiling in Linux , then the proxy example should have the same problem. But I assume that you can actually use the proxy example and connect to the phone ?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receiving ble evt callbacks using Mesh SDK 2.0.0 and SD6.0.0 (SDK15.0.0)</title><link>https://devzone.nordicsemi.com/thread/136802?ContentTypeID=1</link><pubDate>Tue, 19 Jun 2018 14:56:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e6de4dd-0b79-4308-a181-704afb98b6c0</guid><dc:creator>Thomas Stenersen</dc:creator><description>&lt;p&gt;Hi Andrej,&lt;/p&gt;
&lt;p class="part"&gt;Are you enabling the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/NordicSemiconductor/nRF5-SDK-for-Mesh/blob/master/examples/light_switch/proxy_server/src/main.c#L233" rel="noopener noreferrer" target="_blank"&gt;SDH BLE module&lt;/a&gt;?&lt;/p&gt;
&lt;pre class="part"&gt;&lt;code class="C hljs"&gt;&lt;span class="hljs-function"&gt;&lt;span class="hljs-keyword"&gt;static&lt;/span&gt; &lt;span class="hljs-keyword"&gt;void&lt;/span&gt; &lt;span class="hljs-title"&gt;initialize&lt;/span&gt;&lt;span class="hljs-params"&gt;(&lt;span class="hljs-keyword"&gt;void&lt;/span&gt;)&lt;/span&gt;
&lt;/span&gt;{
&lt;span class="hljs-comment"&gt;//...&lt;/span&gt;
   &lt;span class="hljs-keyword"&gt;uint32_t&lt;/span&gt; err_code = nrf_sdh_enable_request();
   APP_ERROR_CHECK(err_code);

   &lt;span class="hljs-keyword"&gt;uint32_t&lt;/span&gt; ram_start = &lt;span class="hljs-number"&gt;0&lt;/span&gt;;
   &lt;span class="hljs-comment"&gt;/* Set the default configuration (as defined through sdk_config.h). */&lt;/span&gt;
   err_code = nrf_sdh_ble_default_cfg_set(MESH_SOFTDEVICE_CONN_CFG_TAG, &amp;amp;ram_start);
   APP_ERROR_CHECK(err_code);

   err_code = nrf_sdh_ble_enable(&amp;amp;ram_start);
   APP_ERROR_CHECK(err_code);
&lt;span class="hljs-comment"&gt;//...&lt;/span&gt;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p class="part"&gt;also make sure the SDK modules are enabled in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;sdk_config.h&lt;/code&gt;. From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/NordicSemiconductor/nRF5-SDK-for-Mesh/blob/master/examples/light_switch/proxy_server/include/app_config.h#L42" rel="noopener noreferrer" target="_blank"&gt;&lt;code&gt;examples/light_switch/proxy_server/include/app_config.h&lt;/code&gt;&lt;/a&gt;:&lt;/p&gt;
&lt;pre class="part"&gt;&lt;code class="C hljs"&gt;&lt;span class="hljs-meta"&gt;#&lt;span class="hljs-meta-keyword"&gt;define&lt;/span&gt; NRF_SDH_ENABLED 1&lt;/span&gt;
&lt;span class="hljs-meta"&gt;#&lt;span class="hljs-meta-keyword"&gt;define&lt;/span&gt; NRF_SDH_BLE_ENABLED 1&lt;/span&gt;
&lt;span class="hljs-meta"&gt;#&lt;span class="hljs-meta-keyword"&gt;define&lt;/span&gt; NRF_SDH_SOC_ENABLED 1&lt;/span&gt;
&lt;span class="hljs-meta"&gt;#&lt;span class="hljs-meta-keyword"&gt;define&lt;/span&gt; NRF_SDH_BLE_GATT_MAX_MTU_SIZE 69&lt;/span&gt;
&lt;span class="hljs-meta"&gt;#&lt;span class="hljs-meta-keyword"&gt;define&lt;/span&gt; NRF_SDH_BLE_PERIPHERAL_LINK_COUNT 1&lt;/span&gt;
&lt;span class="hljs-meta"&gt;#&lt;span class="hljs-meta-keyword"&gt;define&lt;/span&gt; NRF_SDH_BLE_SERVICE_CHANGED 1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p class="part"&gt;Best,&lt;br /&gt;Thomas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receiving ble evt callbacks using Mesh SDK 2.0.0 and SD6.0.0 (SDK15.0.0)</title><link>https://devzone.nordicsemi.com/thread/136499?ContentTypeID=1</link><pubDate>Mon, 18 Jun 2018 08:48:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4cc763b-f23f-4ac9-9d16-341fd60188e3</guid><dc:creator>a.wallwitz</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;paths were fine as I could compile it.&lt;br /&gt;&lt;br /&gt;It turned out that compiling it on my Windows laptop I&amp;#39;m able to connect an get a callback and everything.&lt;br /&gt;Compiling it on my Linux (Ubuntu 17.10 with&amp;nbsp;GNU Tools for Arm Embedded Processors 7-2017-q4-major) machine it is not working. I can scan and connect the device but service discovery and ble callback are not working.&lt;/p&gt;
&lt;p&gt;So this is a compiler/SES issue &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Even though SES brings it&amp;#39;s own gcc toolchain (which is the same version for Windows and Linux) it looks like the binary that is compiled and linked is different or buggy.&lt;/p&gt;
&lt;p&gt;Looks like the IDE is not that cross-platform as it tells to be.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receiving ble evt callbacks using Mesh SDK 2.0.0 and SD6.0.0 (SDK15.0.0)</title><link>https://devzone.nordicsemi.com/thread/136178?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 12:53:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97de6709-9820-454d-9140-5fd960705792</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Andrej,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I just got my coworker tried and it worked for him. I also tried with a fresh copy of the 2 SDKs and it also worked. Have you tried with a fresh copy ?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I attached here the project file as I fixed the SDK_ROOT instead of using hard coded Path as in the .zip file . I assume you fixed it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-e01bb222e2fd4767a1b48706ab3f50bc/light_5F00_switch_5F00_server_5F00_nrf52832_5F00_xxAA_5F00_s132_5F00_6_5F00_0_5F00_0.zip"&gt;devzone.nordicsemi.com/.../light_5F00_switch_5F00_server_5F00_nrf52832_5F00_xxAA_5F00_s132_5F00_6_5F00_0_5F00_0.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receiving ble evt callbacks using Mesh SDK 2.0.0 and SD6.0.0 (SDK15.0.0)</title><link>https://devzone.nordicsemi.com/thread/136105?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 09:18:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39610854-c090-4395-b0aa-1f58bf7fc360</guid><dc:creator>a.wallwitz</dc:creator><description>&lt;p&gt;Hi Hung,&lt;br /&gt;&lt;br /&gt;thank you for your reply.&lt;br /&gt;&lt;br /&gt;I did the following:&lt;/p&gt;
&lt;p&gt;- extracted the Mesh_SDK_2.0.1 into a new directory&lt;br /&gt;- extracted your example into new_mesh_dir/examples/light_switch/(server - advertise)&lt;br /&gt;- the same for the SDK 15.0.0 into ~/SDKv15 to match your settings&lt;br /&gt;- compiled and flashed the example including SD6.0.0&lt;br /&gt;--&amp;gt; So I&amp;#39;m using the MeshSDK 2.0.1 NRF SDK 15.0.0 out of the box and your example including all settings you set.&lt;/p&gt;
&lt;p&gt;Device is coming up as unprovisioned device and &amp;quot;nRF5x Mesh Light&amp;quot;.&lt;/p&gt;
&lt;p&gt;Once I&amp;#39;m trying to connect nRF Connect for mobile still gets stuck at Service Discovery and all Log I get over SEGGER is:&lt;/p&gt;
&lt;p&gt;&amp;lt;t: 0&amp;gt;, main.c, 206, ----- BLE Mesh Light Switch Server Demo -----&lt;br /&gt;&amp;lt;t: 544&amp;gt;, main.c, 156, Initializing and adding models&lt;br /&gt;&amp;lt;t: 5465&amp;gt;, main.c, 244, Device UUID : 0059FFFF00000000xx04xxxxxxxxxxxx&lt;br /&gt;&lt;br /&gt;So there is no Callback for the BLE Evt.&lt;/p&gt;
&lt;p&gt;I tried the SEGGER on Linux and Windows with the same result.&lt;/p&gt;
&lt;p&gt;So where is the problem?&lt;/p&gt;
&lt;p&gt;Could please someone else try your example and verify that it is working?&lt;/p&gt;
&lt;p&gt;Bye&lt;/p&gt;
&lt;p&gt;Andrej&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: receiving ble evt callbacks using Mesh SDK 2.0.0 and SD6.0.0 (SDK15.0.0)</title><link>https://devzone.nordicsemi.com/thread/135984?ContentTypeID=1</link><pubDate>Wed, 13 Jun 2018 15:37:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7ee33e5-a073-4748-8898-d0962f4469a6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Andrej,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I just tried here with the light server example and it worked for me. Not sure what could be wrong. I assume you have enable all the module needed in sdk_config.h ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which priority level did you set ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Maybe you can have a look at my example ? When the device get connected it will print &amp;quot;connected&amp;quot;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-e01bb222e2fd4767a1b48706ab3f50bc/server-_2D00_-advertise.zip"&gt;devzone.nordicsemi.com/.../server-_2D00_-advertise.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>