<?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>How can I send RBG data over mesh?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37087/how-can-i-send-rbg-data-over-mesh</link><description>Based on the demonstration video of Thingy , I can have a view on Thingy is changing its color when it is given different command using the apps. 
 1. As if I want to send RBG( Red, blue, green) commands to nRF52832 with development kit of PCA10040 over</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Aug 2018 17:31:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37087/how-can-i-send-rbg-data-over-mesh" /><item><title>RE: How can I send RBG data over mesh?</title><link>https://devzone.nordicsemi.com/thread/143261?ContentTypeID=1</link><pubDate>Tue, 07 Aug 2018 17:31:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64623f30-6532-432f-8458-f21ac51ebee3</guid><dc:creator>awneil</dc:creator><description>[quote userid="71706" url="~/f/nordic-q-a/37087/how-can-i-send-rbg-data-over-mesh/142719"]I am still new to this technology[/quote]
&lt;p&gt;Which technology - microcontrollers in general? radio comms in general? Bluetooth in general? Bluetooth meshing? Nordic specifically ? or what?&lt;/p&gt;
&lt;p&gt;It might be easier to tell us what you &lt;em&gt;&lt;strong&gt;do&lt;/strong&gt;&lt;/em&gt; have experience with - it helps us to pitch the replies appropriately ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I send RBG data over mesh?</title><link>https://devzone.nordicsemi.com/thread/142954?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 08:18:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c48a0ffb-5b73-47a1-89fe-da49b577dd1c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;1: No. You don&amp;#39;t need to use the Thingy:52 to achieve UART over Mesh. The Thingy has an nRF52832, along with a bunch of sensors. If you want to, you can only pick up the UART over mesh part, and it should work on either a nRF52832 DK (PCA10040). The project that I linked to is the demo that was used in the video, and it is written for a Thingy. It will not work directly on a DK, since it doesn&amp;#39;t have all the different sensors, so you will probably get some errors during runtime if the project is not modified.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2: In the video, the demo consists of 2 parts. One part is the phone app, using UART over BLE (Nordic Uart Service = NUS). The phone is connected to one of the Thingys running a project with both BLE and Mesh. The rest of the Thingys are running a project with only Mesh. The light control is, as far as I know, a proprietary Mesh model. So you can&amp;#39;t turn on any Mesh device, but it should work on all nodes running that project.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3: Mesh is built on something called Models. In a mesh network, it is the commissioner node that decides what models different nodes should listen to, or publish to. So if you have a model with &amp;quot;UART over Mesh&amp;quot;, you can tell all the nodes to publish on one channel, which everyone else is listening to. This way, you can use the UART over Mesh to talk not only between 1-to-1 but many-to-many. We don&amp;#39;t have an example in the mesh SDK doing exactly this, but you may be able to extract the parts that you need from the demo link that I sent, and use it in an example from the SDK.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I send RBG data over mesh?</title><link>https://devzone.nordicsemi.com/thread/142719?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 05:28:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f51762c-9c17-40dc-ad3e-7116f224b36e</guid><dc:creator>Farhanah Ruslan</dc:creator><description>&lt;p&gt;Thanks, Edwin.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry, I am still new to this technology. I have doubts to be solved.&lt;/p&gt;
&lt;p&gt;1.Must I use Nordic Thingy to achieve UART over a gateway node to all device connected? But, how do I can implement that without using UART over mesh?&lt;/p&gt;
&lt;p&gt;2. For the answer of question 2,if the demo has a sort of UART protocol, so can I do the same process ( control 1 unit to light up any other bluetooth device) by using nRF528xx series. In more precise, it is PCA10040 development kit.&lt;/p&gt;
&lt;p&gt;3. For the answer of question 3, how do I link all the extra devices since UART is designed to have 1-to-1 communication? From the answer given, t&lt;span&gt;he phone is connected to the gateway node via &amp;quot;regular&amp;quot; BLE. But, in the video, the engineer used 1 gateway node to light up every device connected to the gateway node.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I send RBG data over mesh?</title><link>https://devzone.nordicsemi.com/thread/142634?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 13:34:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7e0048d-5eae-4ad2-b529-626ad05141d1</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The Thingy:52&amp;#39;s in the video that you linked to are not running the normal Thingy firmware, just so you are aware of this. They are running a Mesh demo, which you can find &lt;a href="https://github.com/NordicPlayground/Nordic-Thingy52-mesh-demo"&gt;here&lt;/a&gt;. Note that it is written in the old Mesh SDK_v1.0.1. As Pratyush explains in the video, the phone is connected to a gateway node via BLE. The gateway node is running both BLE and Mesh, so it will forward commands from the phone to the Mesh network.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. The demo does not use RGB values. See the description of the communication protocol in the link above.&lt;/p&gt;
&lt;p&gt;2. The demo has a sort of UART protocol, but not over mesh.&lt;/p&gt;
&lt;p&gt;3. No. The phone is connected to the gateway node via &amp;quot;regular&amp;quot; BLE, not mesh.&lt;/p&gt;
&lt;p&gt;4. The demo uses the Thingy SDK, which has a driver for the lights. I haven&amp;#39;t looked into exactly what it uses, but I assume it is some PWM driver for the LEDs with different colors.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please see the demo in the link. It has a quite thorough explanation on how to run the demo, and let me know if you run into any problems.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;All this being said, &lt;a href="https://devzone.nordicsemi.com/members/awneil"&gt;awneil&lt;/a&gt; is correct. You can implement an RGB model in the lightswitch example. You would need to modify the model to contain 3 variables, or alternatively 1 variable&amp;nbsp; (byte) containing all 3 LEDs.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I send RBG data over mesh?</title><link>https://devzone.nordicsemi.com/thread/142534?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 08:14:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a1478ef-aef2-4886-b67e-b9bd1a877602</guid><dc:creator>Farhanah Ruslan</dc:creator><description>&lt;p&gt;What I have mentioned in Question 1 is that the way to make it practical. Sorry that I have make the sentence quite confusing. anyway, thanks for the reply from awneil.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I send RBG data over mesh?</title><link>https://devzone.nordicsemi.com/thread/142510?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 07:13:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fbfbdbd-f98f-47b5-96df-d626a521477a</guid><dc:creator>awneil</dc:creator><description>[quote userid="71706" url="~/f/nordic-q-a/37087/how-can-i-send-rbg-data-over-mesh"][/quote]
&lt;p&gt;send RBG( Red, blue, green) commands ...&amp;nbsp;is it practical?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, of course - it would only require 3 bytes &lt;em&gt;at most&lt;/em&gt; - 1 for Red, 1 for Green, 1 for Blue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It can be done in a single byte:&amp;nbsp;&lt;a href="https://en.wikipedia.org/wiki/8-bit_color"&gt;en.wikipedia.org/.../8-bit_color&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>