<?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>nRF Mesh and UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43922/nrf-mesh-and-uart</link><description>Hi, 
 I am currently working on a project in Mesh on nRF52840 DK. 
 I am using the mesh v3.1.0. 
 I wanted to send command from mobile app to particular node in the mesh and that particular node should send the same data via UART. 
 I am using light_switch_server</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Mar 2019 07:24:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43922/nrf-mesh-and-uart" /><item><title>RE: nRF Mesh and UART</title><link>https://devzone.nordicsemi.com/thread/175817?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2019 07:24:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:068fd1dd-f2b7-4259-ac41-5abbb1390f23</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;how to receive the message from one particular node&amp;nbsp; to termite&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Mesh and UART</title><link>https://devzone.nordicsemi.com/thread/173600?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2019 06:02:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5292ab14-62d2-4e1b-95ae-0d6c491abd87</guid><dc:creator>Vibhu</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/mttrinh"&gt;Mttrinh&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Thank You so much for your help.&lt;/p&gt;
&lt;p&gt;I imported the files and I am now able to send data to UART.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Mesh and UART</title><link>https://devzone.nordicsemi.com/thread/173506?ContentTypeID=1</link><pubDate>Thu, 28 Feb 2019 14:07:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cacfaf98-b6b0-48ff-ac50-d1def40f03e0</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you imported the .c files into the project?&lt;/p&gt;
&lt;p&gt;For sending and receiving over UART, have a look at these functions:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-3-0/group__app__uart#gacddb5b7b711ef104f9eb181a13bc4503" rel="noopener noreferrer" target="_blank"&gt;app_uart_get&lt;/a&gt;(..)&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-3-0/group__app__uart#ga2e4c8407274a151e72ed5a226529dc36" rel="noopener noreferrer" target="_blank"&gt;app_uart_put&lt;/a&gt;(..)&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-3-0/group__ble__nus#ga4189d97e88b018e48847c3ea26c4b05d" rel="noopener noreferrer" target="_blank"&gt;ble_nus_data_send&lt;/a&gt;(..)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Mesh and UART</title><link>https://devzone.nordicsemi.com/thread/173199?ContentTypeID=1</link><pubDate>Wed, 27 Feb 2019 10:26:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d26442a6-ab9a-45c8-a85b-520fd778613d</guid><dc:creator>Vibhu</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/mttrinh"&gt;Mttrinh&lt;/a&gt;&amp;nbsp;I am trying to add those functions which you suggested, to mesh main.c and I included the path also in the preprocessor tab in project properties.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/UART_5F00_DEFINE.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;When I build it I am getting a error.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/UART_5F00_MESH.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think the .c file is not linking properly ?&lt;/p&gt;
&lt;p&gt;Any suggestions on how to solve this ? Should I include any macros or anything ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Edit: Which function is used to send or receive using UART ?&lt;/p&gt;
&lt;p&gt;Is it nrf_drv_uart_tx or app_uart_get ?&lt;/p&gt;
&lt;p&gt;Am a little confused. Please help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Mesh and UART</title><link>https://devzone.nordicsemi.com/thread/172848?ContentTypeID=1</link><pubDate>Mon, 25 Feb 2019 16:09:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24a44c32-4c2f-43db-86b9-029149daa059</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;You want to send data to another controller via UART inside the same node, right? Then yes, you only need to implement thos functions.&lt;/p&gt;
&lt;p&gt;No, you don&amp;#39;t need to add other functions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Mesh and UART</title><link>https://devzone.nordicsemi.com/thread/172673?ContentTypeID=1</link><pubDate>Mon, 25 Feb 2019 05:05:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b019125-7f40-46a7-9eb8-1f3a3c8bdcbe</guid><dc:creator>Vibhu</dc:creator><description>&lt;p&gt;There is a main.c and mesh_main.c in sdk_coexist example.&lt;/p&gt;
&lt;p&gt;The mesh_main.c contains all mesh related codes and main.c contains UART part.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3426.main.c"&gt;devzone.nordicsemi.com/.../3426.main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I went through the code and I am guessing I need the below functions for UART,&lt;/p&gt;
&lt;p&gt;uart_init()&lt;/p&gt;
&lt;p&gt;uart_event_handle()&lt;/p&gt;
&lt;p&gt;services_init()&lt;/p&gt;
&lt;p&gt;nus_data_handler()&lt;/p&gt;
&lt;p&gt;So if I integrate these functions into mesh, I would be able to send data via UART from mesh is that right?&lt;/p&gt;
&lt;p&gt;Can you please take a look at the main.c and tell me whether I should add any other functions for this purpose?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Mesh and UART</title><link>https://devzone.nordicsemi.com/thread/172519?ContentTypeID=1</link><pubDate>Fri, 22 Feb 2019 13:35:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6636411-537a-42c6-9ca8-1ed752b58732</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;To do this&amp;nbsp;I think you only need uart_init() andnus_evt_handler from the sdk_coexist example. I would suggest you look at the UART part of the code in the sdk_coexist example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Mesh and UART</title><link>https://devzone.nordicsemi.com/thread/172367?ContentTypeID=1</link><pubDate>Thu, 21 Feb 2019 17:06:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c999ff69-6f4d-4bf5-9589-dfb142432fb3</guid><dc:creator>Vibhu</dc:creator><description>&lt;p&gt;Yeah, I need mesh so that I will be able to cover more distance and pass the data using nodes.&amp;nbsp;&lt;/p&gt;
[quote userid="15475" url="~/f/nordic-q-a/43922/nrf-mesh-and-uart/172333"]Do you want to print the data through UART or send it to another device[/quote]
&lt;p&gt;Yes. I need to get the data from the mobile app to the server node and send it to another controller using UART from that node.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Mesh and UART</title><link>https://devzone.nordicsemi.com/thread/172333?ContentTypeID=1</link><pubDate>Thu, 21 Feb 2019 14:29:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed68b6c5-9bc7-4e8c-8624-d7c6c8ce569c</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you sure you want &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/Mesh_SDK/v3-1-0/md_doc_introduction_basic_concepts" rel="noopener noreferrer" target="_blank"&gt;Bluetooth Mesh&lt;/a&gt;? I&amp;#39;m not sure what you are trying to do here, could you give me more details? Do you want to print the data through UART or send it to another device?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>