<?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 to send Carriage Return over nRF Toolbox UART Buttons?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14463/how-to-send-carriage-return-over-nrf-toolbox-uart-buttons</link><description>Hi together! 
 Ist it possible to send a CR (Carriage Return) over the programmable UART Buttons?
When yes, what is the Syntax for? 
 For example, i need to send such a string:
58796541[CR] 
 Thank you very much and best Regards
Michael from Ge</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Aug 2018 17:08:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14463/how-to-send-carriage-return-over-nrf-toolbox-uart-buttons" /><item><title>RE: How to send Carriage Return over nRF Toolbox UART Buttons?</title><link>https://devzone.nordicsemi.com/thread/144379?ContentTypeID=1</link><pubDate>Wed, 15 Aug 2018 17:08:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8953fb85-387e-47e2-959d-3db6f656dcaa</guid><dc:creator>480VAC</dc:creator><description>&lt;p&gt;Old topic I know - and it seems the new version of the app has lost the ability to send EOL again.&amp;nbsp; &amp;nbsp;I did find that on iOS, you can install a unicode keyboard, and then type whatever characters via ascii codes.&amp;nbsp; The keyboard I found is called &amp;quot;Unicode Keyboard - Search for Uni...&amp;quot; in the app store.&amp;nbsp; It&amp;#39;s $0.99.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send Carriage Return over nRF Toolbox UART Buttons?</title><link>https://devzone.nordicsemi.com/thread/55243?ContentTypeID=1</link><pubDate>Sun, 30 Jul 2017 06:40:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e37c06d-2655-443a-ba43-c9987c7ad211</guid><dc:creator>flodis</dc:creator><description>&lt;p&gt;&lt;strong&gt;Here is the trick to add &amp;quot;&lt;/strong&gt; in the &amp;quot;nRF Toolbox&amp;quot; UART application for smartphones:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;First - the &lt;em&gt;Configure button&lt;/em&gt; text fields for editing the button data in the nRF toolbox app are multiline! Just press enter in the text field to make as many + pairs you like.&lt;/li&gt;
&lt;li&gt;Secondly the &lt;em&gt;EOL option&lt;/em&gt; [LF, CR, CR+LF]  in the UART &lt;em&gt;Configure button&lt;/em&gt; dialog act as a FILTER. For the filter option to work you first HAVE to add linebreaks to the text field.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Not so intuitive - as you may first think the UART app button command option selects what characters to append.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20170730_2D00_085306.png" alt="nRF Toolbox" /&gt;
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Screenshot_5F00_20170730_2D00_084438.jpg" alt="nRF Toolbox - UART - button command editor" /&gt;&lt;/p&gt;
&lt;p&gt;The second image displays a linebreak added in one of the the UART,  &lt;em&gt;Configure button&lt;/em&gt; text fields.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send Carriage Return over nRF Toolbox UART Buttons?</title><link>https://devzone.nordicsemi.com/thread/55242?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 08:07:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3a398fa-ae67-46f1-88b9-be38d56d3cdb</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Could you post here screens from the app (command dialog and the log after sending the data)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send Carriage Return over nRF Toolbox UART Buttons?</title><link>https://devzone.nordicsemi.com/thread/55241?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 19:26:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a6cb66d-66d8-4edb-8037-eb152dd7968b</guid><dc:creator>Cavemanatwork</dc:creator><description>&lt;p&gt;Hmmm? i think it doesn&amp;#39;t works. Whatever i choose, my Oszi always shows me a LF.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send Carriage Return over nRF Toolbox UART Buttons?</title><link>https://devzone.nordicsemi.com/thread/55236?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 15:02:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:993ce36c-f8ad-4724-af35-434840ffc11e</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Since 1.16.4 this is no longer required. You may select the EOL type when you configure the button. Remember to add a new line to your command at the end of the line.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send Carriage Return over nRF Toolbox UART Buttons?</title><link>https://devzone.nordicsemi.com/thread/55240?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 15:00:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a340d703-6a4a-4df9-8a50-451c17ad7e03</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Ok, done. The app has been published on Play and the source code is now available on GitHub. You may also download the APK from there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send Carriage Return over nRF Toolbox UART Buttons?</title><link>https://devzone.nordicsemi.com/thread/55239?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 13:48:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:954c31bc-8122-4b35-a3cc-249b95c8e729</guid><dc:creator>Cavemanatwork</dc:creator><description>&lt;p&gt;OMG! Sorry. :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send Carriage Return over nRF Toolbox UART Buttons?</title><link>https://devzone.nordicsemi.com/thread/55238?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 13:45:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a22cd1f1-a0f6-405f-acee-6327bdc30674</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;EOL = End Of Line :)
In 1.16.4 you will be able to set which EOL is to be used for a command: CR, LF (default) or CR+LF.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send Carriage Return over nRF Toolbox UART Buttons?</title><link>https://devzone.nordicsemi.com/thread/55237?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 13:43:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f1830a0-6d51-4d3c-95c1-a1d107d77e19</guid><dc:creator>Cavemanatwork</dc:creator><description>&lt;p&gt;Hi Martin, hi Aleksander,&lt;/p&gt;
&lt;p&gt;thank you very much for your fast Response.&lt;/p&gt;
&lt;p&gt;With my Oscilloscope i have seen that all transmitted Data are ended with a Line Feed.
Now i have adapted the Software on my Microcotroller to understand LF as end Sign.&lt;/p&gt;
&lt;p&gt;Is it possible with the new Version to choose between LF and CR?&lt;/p&gt;
&lt;p&gt;And äh sorry..... what are EOLs?
My English is not the best :-)&lt;/p&gt;
&lt;p&gt;Thanks a lot
Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send Carriage Return over nRF Toolbox UART Buttons?</title><link>https://devzone.nordicsemi.com/thread/55234?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2016 12:33:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:698d16d8-f95e-4cfd-a37e-3e7ca5091c21</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hi!
You are right, that it&amp;#39;s difficult to send CR over the UART using nRF Toolbox now.
I can give you two solutions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Wait an hour, I&amp;#39;m just doing a fix in the app and soon a new version with an option to switch between different EOLs will be possible&lt;/li&gt;
&lt;li&gt;Use nRF Master Control Panel. There you may write a text as TEXT and add one byte with CR.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;BR,
Aleksander&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send Carriage Return over nRF Toolbox UART Buttons?</title><link>https://devzone.nordicsemi.com/thread/55235?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2016 16:17:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d19e00e8-d2a9-486a-a78f-3d43b4847d8c</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Unfortunately there is no easy way to do this. At least it wasn&amp;#39;t on my Android phone. There is no [CR] button on the keyboard, but I was told that I could try to make a .bin file with the characters I needed e.g. linefeed and carriage return. So I downloaded a Hex Editor and a File editor app and manually created a hex file with the values 0x0A (new line) and 0x0D (carriage return). Then I opened the file in a text editor and copy pasted the string into the Nordic UART app. The strange thing is that it seemed to work with new line, but not carriage return. I don&amp;#39;t know why. It might be something on the terminal side (I used Tera Term), or maybe an Android vs Windows semantics issue. It is worth investigating some more.&lt;/p&gt;
&lt;p&gt;A different workaround is to add app_uart_put(&amp;#39;\r&amp;#39;) in the function printing the string to UART on the application side. Then you would get a CR on every transfer though. You might also try to implement your own mechanism. You can e.g. use app_uart_put(&amp;#39;\r&amp;#39;) whenever you receive a string containing &amp;quot;\CR&amp;quot; or something like that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>