<?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>Data in binary format over UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32742/data-in-binary-format-over-uart</link><description>Hello. How can I send binary data (in order to not convert it to ASCII string) over UART? 
 I have sensor data (obtained over BLE). Every measurement is 13 bytes, sample frequency is 2kHz. I need to save it on PC. I decide to work over UART. So if I convert</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Feb 2019 20:40:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32742/data-in-binary-format-over-uart" /><item><title>RE: Data in binary format over UART</title><link>https://devzone.nordicsemi.com/thread/173123?ContentTypeID=1</link><pubDate>Tue, 26 Feb 2019 20:40:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbead1ad-c63a-41e3-bd7a-4dbe3adfd480</guid><dc:creator>TomWS</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure why this wasn&amp;#39;t checked off as the answer.&amp;nbsp; It is correct and it sure helped me!&amp;nbsp; I found it takes longer to convert to Base64 than it does to send the data using the UART service!&amp;nbsp; Phenomenal!&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data in binary format over UART</title><link>https://devzone.nordicsemi.com/thread/126029?ContentTypeID=1</link><pubDate>Mon, 26 Mar 2018 21:12:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:016c08f3-9aed-41b0-963e-2f27412487a6</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Just send it - UART doesn&amp;#39;t care what data you send and what format it&amp;#39;s in. Just put the data in a buffer in the original binary format, whatever that is, send the buffer using the uart send method. On the other end receive the data and interpret it. You don&amp;#39;t need to convert it to a string,&amp;nbsp; you don&amp;#39;t need to do floating point on the nRF side, you just send the bytes.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data in binary format over UART</title><link>https://devzone.nordicsemi.com/thread/126009?ContentTypeID=1</link><pubDate>Mon, 26 Mar 2018 16:23:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aba3892d-8ac8-41b8-b2a9-c52a425c7e9e</guid><dc:creator>Jason Hendrix</dc:creator><description>&lt;p&gt;I&amp;#39;ve used byte-stuffing for sending binary data over UART with good success:&amp;nbsp;&lt;a href="https://en.wikipedia.org/wiki/Consistent_Overhead_Byte_Stuffing"&gt;en.wikipedia.org/.../Consistent_Overhead_Byte_Stuffing&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data in binary format over UART</title><link>https://devzone.nordicsemi.com/thread/125982?ContentTypeID=1</link><pubDate>Mon, 26 Mar 2018 14:12:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c5e22a7-fa6c-4edd-b303-6e14aab481b1</guid><dc:creator>Ars Morozov</dc:creator><description>&lt;p&gt;Thanks for reply, but could you give little bit more information about Segger RTT, which interface it use? How can I get data on PC, if I use Segger RTT? Maybe you have some examples with RTT?&amp;nbsp;&lt;br /&gt;You talk about using NRF Logger as data transmitter from board?&lt;/p&gt;
&lt;p&gt;I use segger embedded studio. Float point support (you talk about it?) is on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data in binary format over UART</title><link>https://devzone.nordicsemi.com/thread/125974?ContentTypeID=1</link><pubDate>Mon, 26 Mar 2018 13:55:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:820f437e-b7cf-49b5-a00f-370df74d0fd0</guid><dc:creator>ketil</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You might want to consider using Segger RTT if the UART speed is too low. You can then also use printf() to print float values. You might have to do some changes to your IDE to get it to work. Do a search for &amp;quot;your IDE&amp;quot; + &amp;quot;float&amp;quot; on DevZone and you will get a lot of answers.&lt;/p&gt;
&lt;p&gt;Keitl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data in binary format over UART</title><link>https://devzone.nordicsemi.com/thread/125901?ContentTypeID=1</link><pubDate>Mon, 26 Mar 2018 06:38:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b2ba2cc-6c60-4944-96ae-abac65713a16</guid><dc:creator>Ars Morozov</dc:creator><description>&lt;p&gt;I also have explore UART example, but it use printf function to send data over UART. As I understand printf support only string format.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>