<?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>UART implementation in light_switch_client code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61291/uart-implementation-in-light_switch_client-code</link><description>I want to interface Client Sensor over UART in light_switch_client code. Can you please give me the idea,how to do it. 
 I am using Mesh_V4.0 and SDK 16.0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 May 2020 15:51:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61291/uart-implementation-in-light_switch_client-code" /><item><title>RE: UART implementation in light_switch_client code</title><link>https://devzone.nordicsemi.com/thread/251555?ContentTypeID=1</link><pubDate>Mon, 25 May 2020 15:51:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b1a33d1-9220-4cb8-911e-ce5ccc95c150</guid><dc:creator>Mttrinh</dc:creator><description>[quote user="Sachin"]&amp;nbsp;I can not use 28,29,30,31 (P0) for uart functionality ? I also tried with 18,19,20,21 but it did not happen.[/quote]
&lt;p&gt;You should be able to use these pins for UART. I also noticed &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/61618/uart-in-nrf52832" rel="noopener noreferrer" target="_blank"&gt;another case&lt;/a&gt; which is the same as one, I suggest you have a look at that thread.&lt;/p&gt;
&lt;p&gt;Also regarding the pins, sorry to confuse you but you should be able to use the pins&amp;nbsp;5,6,7,8&lt;span&gt;&amp;nbsp;also.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART implementation in light_switch_client code</title><link>https://devzone.nordicsemi.com/thread/250904?ContentTypeID=1</link><pubDate>Wed, 20 May 2020 10:20:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01281dba-a118-471a-ac2f-1a8a9178d616</guid><dc:creator>Sachin</dc:creator><description>&lt;p&gt;Hi will you please respond for my 2nd query&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART implementation in light_switch_client code</title><link>https://devzone.nordicsemi.com/thread/250777?ContentTypeID=1</link><pubDate>Tue, 19 May 2020 14:34:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86ad34be-e8c6-4c4d-99d9-afc14e6048f7</guid><dc:creator>Sachin</dc:creator><description>&lt;p&gt;Hi just to check UART part I am using UART code from&amp;nbsp;&lt;span&gt;examples\peripheral folder.To check the loopback I short default UART pins 6 to 8 and 7 to 9 and it worked.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now in the same code in uart_init() function I changed RX,TX,RTS,CTS to 31,30,29,28 and short RX toTX and RTS to CTS but I am not&amp;nbsp; getting any loopback data now.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;I can not use 28,29,30,31 (P0) for uart functionality ? I also tried with 18,19,20,21 but it did not happen.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please help&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART implementation in light_switch_client code</title><link>https://devzone.nordicsemi.com/thread/250580?ContentTypeID=1</link><pubDate>Tue, 19 May 2020 06:58:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be594929-d039-4b23-9f26-3ec5d2913d8f</guid><dc:creator>Sachin</dc:creator><description>&lt;p&gt;1.Hi I have changed the RX_PIN_NUMBER (8----&amp;gt;19) and TX_PIN_NUMBER(6-----&amp;gt;20) in uart_init() function and connected these connections to my sensor and short GROUND too.Now when I run and start to debug the code I am receiving&amp;nbsp;&lt;strong&gt;NRF_BREAKPOINT_COND &lt;/strong&gt;in&lt;strong&gt; app_error_weak.c&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;2.Also uart_event_handle function will get called if sensor is sending the data &lt;strong&gt;OR&lt;/strong&gt; I need to write anything for that&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: UART implementation in light_switch_client code</title><link>https://devzone.nordicsemi.com/thread/250454?ContentTypeID=1</link><pubDate>Mon, 18 May 2020 13:15:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b594da3a-6af4-44f2-915d-327646fd82bc</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;1. Like I mentioned in the previous reply, you can use any other GPIO pins. Have a look at the&lt;span&gt;&amp;nbsp;Pin assignments section in the the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/pdf/nRF52832_PS_v1.4.pdf" rel="noopener noreferrer" target="_blank"&gt;Product Specification for the nRF52832&lt;/a&gt;.&amp;nbsp;Then you configure the UART peripheral to use those pins, change the pins in the default uart_init() function.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Yes, that is correct. The example doesn&amp;#39;t have support for GATT provisioning so you can&amp;#39;t use the nRF Mesh app to provision. You need to use our &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v4.1.0/md_examples_provisioner_README.html" rel="noopener noreferrer" target="_blank"&gt;static provisioner&lt;/a&gt; in the SDK to provision. You can find it in the Light switch example.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART implementation in light_switch_client code</title><link>https://devzone.nordicsemi.com/thread/250408?ContentTypeID=1</link><pubDate>Mon, 18 May 2020 10:49:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be9154aa-5580-4b33-8926-938d5c8628a5</guid><dc:creator>Sachin</dc:creator><description>&lt;p&gt;Hi,Could you please look into my doubt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART implementation in light_switch_client code</title><link>https://devzone.nordicsemi.com/thread/250291?ContentTypeID=1</link><pubDate>Sat, 16 May 2020 10:12:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f27ac01-9e08-4521-9225-c2a91a18ca26</guid><dc:creator>Sachin</dc:creator><description>&lt;p&gt;Hi Mttrinh,&lt;/p&gt;
&lt;p&gt;I am waiting for your reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART implementation in light_switch_client code</title><link>https://devzone.nordicsemi.com/thread/250256?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 16:20:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6989c54-2f68-4b7f-b6f2-73410021a117</guid><dc:creator>Sachin</dc:creator><description>&lt;p&gt;1.OK in that case I have to change the pins in default uart_init() function or I need to write separate uart_init() function for new pins ? can you please specify which four pins I shall use ?&lt;/p&gt;
&lt;p&gt;2.I understand &lt;strong&gt;ble_app_uart_coexist&lt;/strong&gt; doesn&amp;#39;t have functionality to provision the device using nRF BLE mesh application so how I suppose to add the device in the same group to which &lt;strong&gt;server device&lt;/strong&gt; is added ?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Basically I want to take data from sensor and then want to publish it over mesh from the client (I suppose ble_app_uart_coexist has client&amp;nbsp; functionality ) to server.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART implementation in light_switch_client code</title><link>https://devzone.nordicsemi.com/thread/250245?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 15:34:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2576478c-0739-4458-9796-ec86525be92e</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1. For sending and receiving over UART, have a look at these functions:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__app__uart.html#gacddb5b7b711ef104f9eb181a13bc4503" rel="noopener noreferrer" target="_blank"&gt;app_uart_get&lt;/a&gt;(..)&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__app__uart.html?cp=7_1_6_11_58_14#ga2e4c8407274a151e72ed5a226529dc36" rel="noopener noreferrer" target="_blank"&gt;app_uart_put&lt;/a&gt;(..)&lt;/p&gt;
&lt;p&gt;2. I suggest you have a look at the &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF52832_PS_v1.4.pdf" rel="noopener noreferrer" target="_blank"&gt;Product Specification for the nRF52832&lt;/a&gt;.&amp;nbsp;&lt;span&gt;P0.05 - P0.08 are connected to the interface MCU. Choose&amp;nbsp;some other&amp;nbsp;GPIO for communicating with the sensor.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Initialize the UART module with uart_init().&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART implementation in light_switch_client code</title><link>https://devzone.nordicsemi.com/thread/250149?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 10:44:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90bf84ef-26d0-4608-83a0-27ae4a9d301c</guid><dc:creator>Sachin</dc:creator><description>&lt;p&gt;Hi thanks for the reply.It compiled successfully.&lt;/p&gt;
&lt;p&gt;1.Now will you please explain me which part in the code exhibits UART functionality ? Basically I want to send some commands from development kit,for which my sensor will send the response. (PHYSICAL WIRED INTERFACE)&lt;/p&gt;
&lt;p&gt;2,Which pins I should use on the development kit&amp;nbsp; to interface my external sensor ? (External sensor has RX,TX,RTS,CTS pins).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART implementation in light_switch_client code</title><link>https://devzone.nordicsemi.com/thread/250017?ContentTypeID=1</link><pubDate>Thu, 14 May 2020 14:50:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5eff5102-f0e4-4c08-8662-610caed45e84</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Remove the &amp;lt;&amp;gt; brackets&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART implementation in light_switch_client code</title><link>https://devzone.nordicsemi.com/thread/249985?ContentTypeID=1</link><pubDate>Thu, 14 May 2020 13:55:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf6e2ae0-9d6b-4bbe-99c5-2ca9ae3199fe</guid><dc:creator>Sachin</dc:creator><description>&lt;p&gt;Is this correct ? I have created a folder &amp;quot;nRF_mesh &amp;quot; inside which I have copied my mesh stack&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/nordicCommunity2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART implementation in light_switch_client code</title><link>https://devzone.nordicsemi.com/thread/249981?ContentTypeID=1</link><pubDate>Thu, 14 May 2020 13:48:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11904a58-fa11-4099-abcb-732c7eeba4bf</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;It suspect that you haven&amp;#39;t setup your MESH_ROOT macro correctly. Take a look at step 3) under &amp;quot;Testing the example&amp;quot; and check that the correct path is inserted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART implementation in light_switch_client code</title><link>https://devzone.nordicsemi.com/thread/249962?ContentTypeID=1</link><pubDate>Thu, 14 May 2020 12:54:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1c030e2-15dd-4797-804f-af8fd619b81b</guid><dc:creator>Sachin</dc:creator><description>&lt;p&gt;I have followed all the given instructions given for &lt;strong&gt;ble_app_uart_coexist&lt;/strong&gt; code&amp;nbsp; and added some &lt;strong&gt;.h&amp;nbsp;&lt;/strong&gt;files also....still I am facing below errors.Please have a look.&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/nordicCommunity.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART implementation in light_switch_client code</title><link>https://devzone.nordicsemi.com/thread/249651?ContentTypeID=1</link><pubDate>Wed, 13 May 2020 10:15:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c99ec71-6b1b-43c1-bbf1-bb43a50ed29c</guid><dc:creator>Mttrinh</dc:creator><description>[quote user="Sachin"]Can I interface external sensor (pressure sensor) on UART with this example ?[/quote]
&lt;p&gt;Yes, you should be able to do that.&lt;/p&gt;
[quote user="Sachin"]If I load below .hex file in my launchpad will it have functionality of light_switch_client also ??[/quote]
&lt;p&gt;Yes, it will have all of the functionality of the light switch client.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART implementation in light_switch_client code</title><link>https://devzone.nordicsemi.com/thread/249487?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 12:55:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c6557ab-3d7b-4bed-b069-4dde709179dc</guid><dc:creator>Sachin</dc:creator><description>&lt;p&gt;&lt;strong&gt;I did not understand meaning of this line here.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;If I load below .hex file in my launchpad will it have functionality of light_switch_client also ??&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Program the Light Switch example devices as described in the&amp;nbsp;&lt;/span&gt;&lt;a class="el" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v3.1.0/md_examples_light_switch_README.html"&gt;Light switch example&lt;/a&gt;&lt;span&gt;, with the following exception:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Replace the light switch client with&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;examples/ble_peripheral/ble_app_uart_coexist/pca10040/s132/ses/Output/Release/Exe/ble_app_uart_pca10040_s132.hex&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART implementation in light_switch_client code</title><link>https://devzone.nordicsemi.com/thread/249406?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 10:55:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01f56fb7-7f99-4c5e-91db-a9565054987e</guid><dc:creator>Sachin</dc:creator><description>&lt;p&gt;Can I interface external sensor (pressure sensor) on UART with this example ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART implementation in light_switch_client code</title><link>https://devzone.nordicsemi.com/thread/249394?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 09:49:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e081cf7c-8fdf-45cd-a463-65e569f594cc</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I suggest you have a look at the &lt;a href="https://devzone.nordicsemi.com/support-private/support/249412/SDK%20UART%20coexistence%20example" rel="noopener noreferrer" target="_blank"&gt;UART Coexistence example&lt;/a&gt; from our Mesh SDK. The example integrates UART into the light switch client example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>