<?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>NUS only receives the first byte</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55808/nus-only-receives-the-first-byte</link><description>Hi, 
 I&amp;#39;m currently playing around with the NUS example in the SDK and still trying to understand how it works. My BLE event handler only receives the first byte of the string of bytes I send using a BLE debugger app on Android (BLE debugger by Syntronix</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Dec 2019 09:16:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55808/nus-only-receives-the-first-byte" /><item><title>RE: NUS only receives the first byte</title><link>https://devzone.nordicsemi.com/thread/226897?ContentTypeID=1</link><pubDate>Fri, 27 Dec 2019 09:16:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:617afd62-6c51-4ded-842f-4b0bdb193e5b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Yes, it&amp;#39;s a very simple app, there is no special driver to send data to NUS. Please have a look at the source code of the nRFToobox here:&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Toolbox"&gt;https://github.com/NordicSemiconductor/Android-nRF-Toolbox&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS only receives the first byte</title><link>https://devzone.nordicsemi.com/thread/226811?ContentTypeID=1</link><pubDate>Tue, 24 Dec 2019 16:25:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c42216c-531a-43c6-9103-c32733815274</guid><dc:creator>Kenan</dc:creator><description>&lt;p&gt;I&amp;#39;m receiving all bytes when using nRFToolbox.&amp;nbsp;&lt;br /&gt;I&amp;#39;ll try capturing the sniffer trace and get back.&lt;br /&gt;&lt;br /&gt;From your answer I understand that there&amp;#39;s no special drivers needed on the Android side to communicate over NUS. Right? This could be a problem with the debugger app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS only receives the first byte</title><link>https://devzone.nordicsemi.com/thread/226514?ContentTypeID=1</link><pubDate>Fri, 20 Dec 2019 09:47:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c058b5a-07cc-4230-8262-0f3265428b1d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Could you capture a&lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Sniffer"&gt; sniffer trace&lt;/a&gt; of the communication when you use the&amp;nbsp;&lt;span&gt;BLE debugger&amp;nbsp;app ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It would reveal if the app only send one byte or not.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I assume you have no problem when testing with the UART profile inside nRFToolbox ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NUS only receives the first byte</title><link>https://devzone.nordicsemi.com/thread/226248?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2019 03:13:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fd80f76-6f63-499a-be8c-0e75162fa408</guid><dc:creator>ox00</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	public void send(final String text) {

		// Are we connected?
		if (mRXCharacteristic == null)
			return;

		if (!TextUtils.isEmpty(text)) {
			final WriteRequest request = writeCharacteristic(mRXCharacteristic, text.getBytes())
					.with((device, data) -&amp;gt; log(LogContract.Log.Level.APPLICATION,
							&amp;quot;\&amp;quot;&amp;quot; + data.getStringValue(0) + &amp;quot;\&amp;quot; senttoMCU&amp;quot;));

			if (!mUseLongWrite) {
				// This will automatically split the long data into MTU-3-byte long packets.
				request.split();
			}
			request.enqueue();
		}
	}

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is the code for sending. Already try using UART toolbox apps and nrfblinky apps . 244 bytes is default transfer packet. Maybe the code in&amp;nbsp;&lt;span&gt;Syntronix&amp;#39;s debugger app is the problem.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>