<?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>Send command over UART</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13489/send-command-over-uart</link><description>I have a laser distance sensor module. I want to connect this module with my nRF52 DK(PCA10040). The module communicates over UART: 
 
 
 Supply (2.8V-3.2V VDC) connected to VDD on the nRF52DK 
 
 
 Ground connected to GND on the nRF52DK 
 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 May 2016 08:36:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13489/send-command-over-uart" /><item><title>RE: Send command over UART</title><link>https://devzone.nordicsemi.com/thread/51482?ContentTypeID=1</link><pubDate>Wed, 11 May 2016 08:36:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e3da7df-e75d-4614-9133-036a611546a4</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;Yes, thats right. No I cant split it, because I cant change the transmission from the sensor.&lt;/p&gt;
&lt;p&gt;Oh thanks for information. Now I know it :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send command over UART</title><link>https://devzone.nordicsemi.com/thread/51481?ContentTypeID=1</link><pubDate>Wed, 11 May 2016 08:21:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a48d5c04-127d-4732-acc6-4d229ba3a24b</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;You want to receive 26 bytes, is that it? can&amp;#39;t you send in two packets per transmission?&lt;/p&gt;
&lt;p&gt;PS- when you edit your question/answer try to check the box &amp;quot;minor edit&amp;quot;, because if you don&amp;#39;t do it I receive one email per edit ;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send command over UART</title><link>https://devzone.nordicsemi.com/thread/51480?ContentTypeID=1</link><pubDate>Wed, 11 May 2016 07:54:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5c37629-5314-437e-8fec-4b899e23b649</guid><dc:creator>Inspectron</dc:creator><description>&lt;p&gt;The sensor will send 26 Bytes for one sequence. But I cant read all 26 Bytes, because:&lt;/p&gt;
&lt;p&gt;BLE_NUS_MAX_DATA_LEN (GATT_MTU_SIZE_DEFAULT - 3)&lt;/p&gt;
&lt;p&gt;GATT_MTU_SIZE_DEFAULT 23&lt;/p&gt;
&lt;p&gt;Only the default MTU size of 23 is currently supported.&lt;/p&gt;
&lt;p&gt;I just dont want to believe, that I can read only 20 Bytes in one sequence??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send command over UART</title><link>https://devzone.nordicsemi.com/thread/51479?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2016 15:00:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba9e1f57-a3d8-4b76-bb9d-aeda2e7b6573</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure how you getting the 5 bytes. You are getting 5 Bytes because you are sending 5 chars:
2 times &amp;quot;\n&amp;quot;, 2 times &amp;quot;\r&amp;quot; and one &amp;quot;C&amp;quot;.&lt;/p&gt;
&lt;p&gt;And you are getting the &amp;quot;C&amp;quot; on the middle one. You receive the LSB first, so from your image you get on the 3 Byte &amp;quot;11000010&amp;quot; that you need to reverse the order to &amp;quot;01000011&amp;quot; which is 0x43 and &amp;quot;C&amp;quot;.&lt;/p&gt;
&lt;p&gt;The others values are 0x0D for the carriage return and 0x0A for the line feed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>