<?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>ble_nus_c: the received packet is only 1 byte long while I send more than 1 byte</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47172/ble_nus_c-the-received-packet-is-only-1-byte-long-while-i-send-more-than-1-byte</link><description>Hi nordic, 
 I send multiple bytes but always only receive packets of length = 1. For example in the picture, I sent 2 bytes 0x68, 0x69 (&amp;#39;DE&amp;#39;) but only received the first value (&amp;#39;D&amp;#39;). I did not intentionally change the code of the file: ble_nus_c.h /</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 May 2019 14:25:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47172/ble_nus_c-the-received-packet-is-only-1-byte-long-while-i-send-more-than-1-byte" /><item><title>RE: ble_nus_c: the received packet is only 1 byte long while I send more than 1 byte</title><link>https://devzone.nordicsemi.com/thread/186762?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 14:25:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1383f7c-15b3-46d3-996b-eb66e41ed00e</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;I note that it says,&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;This is an Android application that &lt;strong&gt;allow developer configure&lt;/strong&gt; a BLE peripheral simulator. The application allow to profile multiple peripheral simulators. Possibility customization characteristic&amp;#39;s handler, this would &lt;strong&gt;help you to build&lt;/strong&gt; enough complexity simulator serve your software&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;So it sounds rather like it&amp;#39;s a basis for you to work &lt;strong&gt;&lt;em&gt;from&lt;/em&gt;&lt;/strong&gt; - rather than a complete &amp;amp; ready-to-use solution?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_nus_c: the received packet is only 1 byte long while I send more than 1 byte</title><link>https://devzone.nordicsemi.com/thread/186760?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 14:19:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:043f1423-be63-47fe-bd44-6ce2e5b2da3d</guid><dc:creator>Phan_hai_hust</dc:creator><description>&lt;p&gt;&lt;a href="https://play.google.com/store/apps/details?id=com.ble.peripheral.sim"&gt;play.google.com/.../details&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_nus_c: the received packet is only 1 byte long while I send more than 1 byte</title><link>https://devzone.nordicsemi.com/thread/186719?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 13:01:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b630720b-4669-47c6-b0f5-a1b293ae60db</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;But what application was it?&lt;/p&gt;
&lt;p&gt;Give a link!&lt;/p&gt;
&lt;p&gt;Sending a single byte at a time is not &amp;quot;wrong&amp;quot; or &amp;quot;bad&amp;quot; as such - as with any tool, you have to understand what it does and how to use it.&lt;/p&gt;
&lt;p&gt;nRF Connect can act as an &amp;#39;Advertiser&amp;#39;, if you run it on a suitable device. Never tried it myself, though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_nus_c: the received packet is only 1 byte long while I send more than 1 byte</title><link>https://devzone.nordicsemi.com/thread/186712?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 12:54:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88dec179-ac0e-4c3e-b696-eb0741e4b007</guid><dc:creator>Phan_hai_hust</dc:creator><description>&lt;p&gt;Due to the above application, I will not trust non-popular applications :) . I tried to borrow another set to check. If you know any reliable peripheral simulation applications, can you suggest me :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_nus_c: the received packet is only 1 byte long while I send more than 1 byte</title><link>https://devzone.nordicsemi.com/thread/186707?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 12:47:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56c6e3b5-fcc5-4b38-89e8-527d36eefa8a</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Thanks for explaining.&lt;/p&gt;
&lt;p&gt;So, for completeness, what application were you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_nus_c: the received packet is only 1 byte long while I send more than 1 byte</title><link>https://devzone.nordicsemi.com/thread/186705?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 12:43:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:990cd8c4-7a4a-4b34-b38d-b986d4d424d8</guid><dc:creator>Phan_hai_hust</dc:creator><description>&lt;p&gt;The real problem is not because of my code, but the Android application I use: in fact, it only sends 1 byte while still logging out as multiple bytes. It&amp;#39;s hard to understand because I used this application to transmit data normally. :) :)&lt;br /&gt;Thank you for your suggestions, helped me find the problem faster. Thanks very much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_nus_c: the received packet is only 1 byte long while I send more than 1 byte</title><link>https://devzone.nordicsemi.com/thread/186654?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 11:02:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2844d987-da10-43d7-aab2-2618d8d1d669</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Do you mind sharing your problem and your solution? It will help others in the future :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_nus_c: the received packet is only 1 byte long while I send more than 1 byte</title><link>https://devzone.nordicsemi.com/thread/186643?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 10:31:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a81a6f3c-7640-465f-8a50-377b7ecd2dc2</guid><dc:creator>Phan_hai_hust</dc:creator><description>&lt;p&gt;My problem has been solved. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_nus_c: the received packet is only 1 byte long while I send more than 1 byte</title><link>https://devzone.nordicsemi.com/thread/186505?ContentTypeID=1</link><pubDate>Sat, 11 May 2019 14:41:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f6d4c5b-125e-409f-ba80-654251a962e6</guid><dc:creator>Phan_hai_hust</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1557585672555v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_nus_c: the received packet is only 1 byte long while I send more than 1 byte</title><link>https://devzone.nordicsemi.com/thread/186504?ContentTypeID=1</link><pubDate>Sat, 11 May 2019 14:39:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff0f1126-624d-4522-bf50-7e8198e1082f</guid><dc:creator>Phan_hai_hust</dc:creator><description>&lt;p&gt;I use an android: ble peripheral simulation app. This application I have used many times, it makes sure to properly simulate 1 real peripheral. (I used this application for blinky peripheral simulation and can transmit data with nrf Connect).&lt;br /&gt;The last line of the image is a packet (2 bytes) I send and ble_us_c still only receives 1 byte.&lt;br /&gt;I have checked the contents of the file ble_nus_c.h / c has not been changed. So infer, maybe my main file has a problem. I am checking, but if you have any suggestions on how to find the error, please hear from me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_nus_c: the received packet is only 1 byte long while I send more than 1 byte</title><link>https://devzone.nordicsemi.com/thread/186503?ContentTypeID=1</link><pubDate>Sat, 11 May 2019 14:23:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e11e71c2-912f-42cb-8f2c-b84097a205d1</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;How are you sending?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>