<?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>Starting from the beginning with UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41627/starting-from-the-beginning-with-uart</link><description>I&amp;#39;m a beginner I&amp;#39;m having hard time understanding UART. In my opinion, the documentation is going too straight to the technical details and tutorials without even starting from the beginning. 
 Is there anywhere a detailed resource explaining what is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Apr 2019 08:38:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41627/starting-from-the-beginning-with-uart" /><item><title>RE: Starting from the beginning with UART</title><link>https://devzone.nordicsemi.com/thread/179409?ContentTypeID=1</link><pubDate>Mon, 01 Apr 2019 08:38:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f096aa8-e27c-4666-bed8-951e1b838e54</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I am happy to help, and I am glad I made you wiser. Please ask if you have any more questions.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting from the beginning with UART</title><link>https://devzone.nordicsemi.com/thread/179089?ContentTypeID=1</link><pubDate>Fri, 29 Mar 2019 01:53:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6557db4-c498-4ddb-a6f7-5f59a8ee32b6</guid><dc:creator>Koenigs</dc:creator><description>&lt;p&gt;Sorry for the very late reply, I haven&amp;#39;t had time to come back on this for a long while. Just found a bit of time only very recently.&lt;/p&gt;
&lt;p&gt;Thanks for this awesome answer, as a beginner this is exactly the kind of information I was looking for.&lt;/p&gt;
&lt;p&gt;I know UART seems to be a basic knowledge for experienced developer so I appreciate you took the time to explain it to me and the difference with the Nordic UART Service.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s much clearer to me now.&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting from the beginning with UART</title><link>https://devzone.nordicsemi.com/thread/162150?ContentTypeID=1</link><pubDate>Mon, 17 Dec 2018 16:57:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e5ae300-140c-46bc-93dd-d4ce2403db33</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;&lt;span style="font-weight:400;"&gt;I would start by making a distinction between &lt;a href="https://en.wikipedia.org/wiki/Universal_asynchronous_receiver-transmitter"&gt;UART&lt;/a&gt; and NUS (&lt;span&gt;Nordic UART Service&lt;/span&gt;). UART is a physical circuit, which main purpose is to send and receive messages between two devices. Transmitted messages goes out of the TX pin and incoming messages goes into the RX pin. &amp;nbsp;NUS is a proprietary BLE Service, its structure is similar as the UART, as it includes the two characterstics TX and RX. A message is transmitted from the application (server) implementing the service by notifying the value in the TX char, in which the peer (client) will receive. A peer can write to the RX char., and the application will receive the message. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Both NUS and UART consists of two “channels” TX and RX, and enables simple communications between two devices.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;It is quite easy to “bridge” communication over UART, to communication over BLE NUS, due to their similar structure.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="127" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-13c78b5bb4274abf831d11c462e9ec39/blenusuart.PNG" width="437" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The &lt;a href="https://www.nordicsemi.com/en/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/ble_sdk_app_nus_eval"&gt;ble_app_uart peripheral example&lt;/a&gt;, implements the the NUS Service, and allows you to connect and communicate to a client. The client can be another nRF5x device (with the&amp;nbsp;&lt;a href="https://www.nordicsemi.com/en/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/ble_sdk_app_nus_c"&gt;ble_app_uart central example&lt;/a&gt;) or a phone. The application will “convert” the messages written into the RX char. and send it over UART, and notify a value change of the TX char. to the client, when it receives messages over UART. The image below illustrates the communication flow if you connect the application to a computer through UART.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-13c78b5bb4274abf831d11c462e9ec39/blenusuartcompu.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;span style="font-weight:400;"&gt;*&amp;quot;Service&amp;quot; should be &amp;quot;server&amp;quot;&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;There exist many other possibilities:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;phone←(BLE) →device←(UART)→computer&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;computer←(UART) →device←(BLE) →device←(UART) →computer&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;device←(BLE)→device &amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;device←(BLE)→phone&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;It is also possible to communicate one-to-many, by exploiting the possibilities of the nRF52 of maintaining several links simultaneously&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;NUS/UART can be useful if your application requires wireless low energy communication between two or many devices and if you would like an UART interface to your computer. The communication throughput and range are of course restricted by BLE.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>