<?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 LF CR</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90358/uart-lf-cr</link><description>Hello, 
 I am using the peripheral uart sample and it works fine. My issue is that whenever the buffer is full it automatically sends the data from the com. How do I stop that from happening (meaning data from the com is sent IF AND ONLY IF I press the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Jul 2022 12:38:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90358/uart-lf-cr" /><item><title>RE: UART LF CR</title><link>https://devzone.nordicsemi.com/thread/379321?ContentTypeID=1</link><pubDate>Fri, 29 Jul 2022 12:38:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33a35dbb-ad5b-4aaf-94ce-2f3aad933de8</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know, as I can&amp;#39;t see how this would be directly related to our example. As far as I know, there isn&amp;#39;t anything in our example that would restrict the COM side to only 40 characters. I think you have to refer to the documentation for the COM that you&amp;#39;re using.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART LF CR</title><link>https://devzone.nordicsemi.com/thread/378768?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2022 15:37:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6fa661e-a435-4af9-97af-4779169a8ab2</guid><dc:creator>Yann04</dc:creator><description>&lt;p&gt;I am referring to &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_uart/README.html"&gt;this&lt;/a&gt;&amp;nbsp;sample on the nrf Connect for VS Code.&lt;/p&gt;
&lt;p&gt;Originally the maximum size of bytes is 40. When using the tera term or &lt;span&gt;PuTTY com for example, i&lt;/span&gt;t sends the data either when the &amp;quot;enter&amp;quot; key is pressed or when the 40 bytes capacity is reached. I only want it to send data when the &amp;quot;enter&amp;quot; key is pressed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART LF CR</title><link>https://devzone.nordicsemi.com/thread/378650?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2022 08:57:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b332db1-19b7-43bf-9ea9-e6e2e9e37990</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you referring to &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/uart_example.html?cp=8_1_4_6_48"&gt;this &lt;/a&gt;example?&lt;/p&gt;
&lt;p&gt;The UART peripheral example in the nRF5SDK will not wait for the FIFO to be full, but will rather send a character as long as there is any data in the FIFO buffer by using app_uart_get and&amp;nbsp;app_uart_put.&lt;/p&gt;
&lt;p&gt;If you want to only send data when you press a button, then you have to combine something like the&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/bsp_example.html?cp=8_1_4_6_4"&gt; bsp example&lt;/a&gt;&amp;nbsp;with the uart example. You can then call&amp;nbsp;&lt;span&gt;app_uart_get and app_uart_put in the&amp;nbsp;&lt;/span&gt;bsp_evt_handler(), or even better set a flag in the bsp event handler that indicates that a button has been pressed and then call&amp;nbsp;&lt;span&gt;app_uart_get&amp;nbsp;and&amp;nbsp;app_uart_put&amp;nbsp;in the main loop.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jared&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>