<?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>Mesh with bi-direction communication</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42280/mesh-with-bi-direction-communication</link><description>Hi all, 
 I have an application where I have a mobile app that communicate with up to 20 BLE devices. The BLE devices are RGB LED lights with push buttons and a sensor. I want to be able to from the mobile app, send a code to turn on and set the color</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 24 Mar 2019 13:38:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42280/mesh-with-bi-direction-communication" /><item><title>RE: Mesh with bi-direction communication</title><link>https://devzone.nordicsemi.com/thread/177963?ContentTypeID=1</link><pubDate>Sun, 24 Mar 2019 13:38:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed37ac2f-a31d-4372-84ce-4150721657d3</guid><dc:creator>kian79</dc:creator><description>&lt;p&gt;Thanks Hung Bui. I got this to work already. But I have other questions about the multi-link-multi-role demo. I will start another thread with more specific questions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh with bi-direction communication</title><link>https://devzone.nordicsemi.com/thread/165950?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 12:07:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1431344-c4ac-4dfb-badd-cb3c7cf47310</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Which issue did you have ? I tried here and it worked for me.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh with bi-direction communication</title><link>https://devzone.nordicsemi.com/thread/165846?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 01:53:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbe6ed64-6abc-4989-8d3e-94aa05a7ab01</guid><dc:creator>Vroon</dc:creator><description>&lt;p&gt;Hello Hung Bui,&lt;/p&gt;
&lt;p&gt;I checked the update, but I guess PCA10040 still isn&amp;#39;t supported. Any idea how to go on about this? I&amp;#39;m having the same issues as Kian.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh with bi-direction communication</title><link>https://devzone.nordicsemi.com/thread/165374?ContentTypeID=1</link><pubDate>Mon, 14 Jan 2019 09:23:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13032a7d-f958-49d8-9ac1-1fc85b164807</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Kian,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m so sorry for that. I got the developer updated the project. Please try again.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh with bi-direction communication</title><link>https://devzone.nordicsemi.com/thread/165273?ContentTypeID=1</link><pubDate>Sat, 12 Jan 2019 00:55:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a51b0702-8b2f-435a-8b9b-89d4d2be9ce2</guid><dc:creator>kian79</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;I like to further feedback that the program for&amp;nbsp;&lt;a class="js-navigation-open" id="0ddfd34c45ad7ca0f5e102c26a719bcf-31674dc82257f7cfeffe6274e8acfeb70c545598" title="ble_peripheral" href="https://github.com/NordicPlayground/nrf52-ble-multi-link-multi-role/tree/master/ble_peripheral"&gt;ble_peripheral&lt;/a&gt;&amp;nbsp;is not working too for &lt;strong&gt;pca10040&lt;/strong&gt;. I like to compile and download the codes onto a Nordic Thingy. I am trying to compile the ble_peripheral project for pca10040 on SES and I am getting this error:&lt;/p&gt;
&lt;p&gt;C:\NordicSemi\nRF5_SDK_15.2.0\examples\components\libraries\log\src\nrf_log_backend_rtt.c: No such file or directory&lt;/p&gt;
&lt;p&gt;I figured that the components directory is referenced wrongly in the project properties. So rather than changing the user directory in project options -&amp;gt; preprocessor, I just copied and paste the components directory inside the examples directory. I tried compiling again and I am getting another error:&lt;/p&gt;
&lt;p&gt;compiler_abstraction.h: No such file or directory&lt;/p&gt;
&lt;p&gt;I am not sure how to fix this and if there will be more errors after fixing this. Can Nordic also help to check and fix this project?&lt;/p&gt;
&lt;p&gt;I am using SES with the latest SDK15.2 downloaded from Nordic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh with bi-direction communication</title><link>https://devzone.nordicsemi.com/thread/165109?ContentTypeID=1</link><pubDate>Fri, 11 Jan 2019 10:12:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb19b02d-3c92-481f-a2ba-b261ad8b95f4</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;If you have nRF52840 DK you can use the SES project for it in github and it should work out of the box. Keil project should also work if you include the missing file (in common folder). I would suggest to install SES and have a look inside the project to find the difference to fix the Keil project. It should be only 2 files missing. &lt;br /&gt;You don&amp;#39;t have to do anything extra. The&amp;nbsp;&lt;span&gt;programming&amp;nbsp;&lt;/span&gt; tutorial is for other application.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh with bi-direction communication</title><link>https://devzone.nordicsemi.com/thread/165082?ContentTypeID=1</link><pubDate>Fri, 11 Jan 2019 08:50:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0573f10-bbda-4493-a67d-20d61f3c4eb5</guid><dc:creator>kian79</dc:creator><description>&lt;p&gt;Thanks Hung Bui, I will wait for the updated codes on Github.&lt;/p&gt;
&lt;p&gt;Alternatively, I have a nRF52840 dongle (PCA10059). Can that work replace the nRF52840DK as an aggregator? If so, do I need to make any changes to the codes?&lt;/p&gt;
&lt;p&gt;I read on the nRF52840 dongle programming tutorial, the says the following:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Adjust the linker configuration. Set&amp;nbsp;&lt;code&gt;FLASH_START=0x1000&lt;/code&gt;&amp;nbsp;to place the application right above the MBR. You should also set&amp;nbsp;&lt;code&gt;FLASH_SIZE=0xDF000&lt;/code&gt;&amp;nbsp;to make sure that there is room for the bootloader at the end of the flash. Set&amp;nbsp;&lt;code&gt;RAM_START=0x20000008&lt;/code&gt;, as the first 8 bytes are used by the MBR for interrupt forwarding and adjust the size accordingly by setting&amp;nbsp;&lt;code&gt;RAM_SIZE=0x3FFF8&lt;/code&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Do I have the same exact change too?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh with bi-direction communication</title><link>https://devzone.nordicsemi.com/thread/164971?ContentTypeID=1</link><pubDate>Thu, 10 Jan 2019 14:58:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93fe5684-3d50-4d33-845f-c731db714ea2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Kian,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When you see Fatal error, you can debug it. You can follow &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/#60126"&gt;this guide.&amp;nbsp;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, the issue you are having is related to the fact that we was preparing the demo for PCA10056 (nRF52840 DK) SES and the other projects&amp;nbsp;were not updated. I have reported this internally and it should be fixed most likely by the end of tomorrow. Please try again later.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh with bi-direction communication</title><link>https://devzone.nordicsemi.com/thread/164830?ContentTypeID=1</link><pubDate>Thu, 10 Jan 2019 08:31:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6049cd2c-471d-435f-bf81-a8817842596a</guid><dc:creator>kian79</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;I am trying your suggestion. I have downloaded&amp;nbsp;&lt;a href="http://developer.nordicsemi.com/nRF5_SDK/nRF5_SDK_v15.x.x/nRF5_SDK_15.2.0_9412b96.zip" rel="nofollow"&gt;nRF5_SDK_v15.2.0&lt;/a&gt;, downloaded the nrf52-ble-multi-link-multi-role example and followed the instructions on the github page. I do not have nRF52840 PDK, so I am using a nRF52832DK (PCA10040) and I am more familiar with using Keil.&lt;/p&gt;
&lt;p&gt;I opened the project in the directory nRF5_SDK_15.2.0\examples\training\ble-multi-link-multi-role\ble_aggregator\pca10040\s132\arm5_no_packs\ble_aggregator_pac10040_s132.uvprojx and tried to compile the project.&lt;/p&gt;
&lt;p&gt;I got the error:&lt;/p&gt;
&lt;p&gt;..\..\..\main.c(62): error:&amp;nbsp; #5: cannot open source input file &amp;quot;ble_lbs_c_extended.h&amp;quot;: No such file or directory&lt;/p&gt;
&lt;p&gt;I figured that I have to include the ble_lbs_c_extended.h file, so I went into project options to include this directory:&amp;nbsp;..\..\..\..\common\ble_lbs_extended&lt;/p&gt;
&lt;p&gt;I tried to compile again and now, I am getting this error which I have no idea how to solve:&lt;/p&gt;
&lt;p&gt;.\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol ble_lbs_led_color_send (referred from main.o).&lt;/p&gt;
&lt;p&gt;Also, I noticed there are a few ble_peripheral directories: ble_peripheral, ble_peripheral_long_range, and ble_peripheral_long_range_color. What is their difference?&lt;/p&gt;
&lt;p&gt;I have a Nordic Thingy. Which program should I use?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you help? Thank you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Update:&lt;/p&gt;
&lt;p&gt;I commented out a few lines that made a call to the function: ble_lbs_led_color_send:&lt;/p&gt;
&lt;p&gt;// First, try to access the devices as a Blinky device&lt;br /&gt; //err_code = ble_lbs_led_color_send(&amp;amp;m_lbs_c[i], colors);&lt;br /&gt; //if(err_code != NRF_SUCCESS)&lt;br /&gt; //{&lt;br /&gt; // If the blinky call fails, assume this is a Thingy device&lt;br /&gt; err_code = ble_thingy_uis_led_set_constant(&amp;amp;m_thingy_uis_c[i], button_action ? r : 0, button_action ? g : 0, button_action ? b : 0);&lt;br /&gt; if (err_code != NRF_SUCCESS &amp;amp;&amp;amp;&lt;br /&gt; err_code != BLE_ERROR_INVALID_CONN_HANDLE &amp;amp;&amp;amp;&lt;br /&gt; err_code != NRF_ERROR_INVALID_STATE)&lt;br /&gt; {&lt;br /&gt; return err_code;&lt;br /&gt; }&lt;br /&gt; //}&lt;/p&gt;
&lt;p&gt;The program compiles successfully now. However, when I try to load the program onto the nRF52DK, nothing is happening. I don&amp;#39;t see any LED blinking neither can I scan for the aggregrator from the android app. I also used RTT viewer to see the log and saw the following errors:&lt;br /&gt; 0&amp;gt; &amp;lt;error&amp;gt; app: Fatal error&lt;br /&gt; 0&amp;gt; &amp;lt;warning&amp;gt; app: System reset&lt;br /&gt; 0&amp;gt; &amp;lt;error&amp;gt; app: Fatal error&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Debugging the program shows that the program go to system reset on the line:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;gap_params_init();&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh with bi-direction communication</title><link>https://devzone.nordicsemi.com/thread/164771?ContentTypeID=1</link><pubDate>Wed, 09 Jan 2019 16:25:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e071414-d32b-4aa7-ba02-3984f3716e16</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;No, the phone wouldn&amp;#39;t support upto 20 links. Normally a phone supports 5-6 links. What I meant is to have a central device that connect to the other 19 devices and also to the phone.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can have a look at this demo:&amp;nbsp;&lt;a href="https://www.youtube.com/watch?v=tbl6Dui-_w4"&gt;https://www.youtube.com/watch?v=tbl6Dui-_w4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Source code is here:&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/nrf52-ble-multi-link-multi-role"&gt;github.com/.../nrf52-ble-multi-link-multi-role&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh with bi-direction communication</title><link>https://devzone.nordicsemi.com/thread/164758?ContentTypeID=1</link><pubDate>Wed, 09 Jan 2019 15:21:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9aea58b7-beac-480d-8c2d-c6645632c165</guid><dc:creator>kian79</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for the reply. I am only looking at a range of about 50m or less. You mention that the Nordic softdevice supports up to 20 concurrent links. Is this supported by any mobile phone that has BLE? Or different models of phones or mobile OS will affect the number of concurrent links?&lt;br /&gt;&lt;br /&gt;Does this then mean that I can have each of these devices running ble_app_uart and have the phone connected to all 20 of them at the same time and exchange information?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh with bi-direction communication</title><link>https://devzone.nordicsemi.com/thread/164741?ContentTypeID=1</link><pubDate>Wed, 09 Jan 2019 14:34:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24f2f7df-d955-4745-a3c6-a456df873a96</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What is the distance between devices and to the phone ? If it&amp;#39;s in the RF range with the phone, you don&amp;#39;t really Mesh. Our BLE softdevice support up to 20 concurrent links.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If mesh is needed, your application is pretty similar to this demo:&amp;nbsp;&lt;a href="https://www.youtube.com/watch?v=XthbU9NP0Yg"&gt;https://www.youtube.com/watch?v=XthbU9NP0Yg&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The source code is provided here:&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/thingy52-mesh-provisioning-demo"&gt;https://github.com/NordicPlayground/thingy52-mesh-provisioning-demo&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It can be configured with our nRF mesh app.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Of course you would need to modify the app and firmware to customize for your application, but it&amp;#39;s a good place to start with.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>