<?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>duplicate and dropped packets on uart characteristic</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8505/duplicate-and-dropped-packets-on-uart-characteristic</link><description>I&amp;#39;m trying to move data over the uart characteristic. I followed the guidelines here devzone.nordicsemi.com/.../ 
 In the main loop I am calling sd_ble_gatts_hvx until it returns buffers full, careful not to increment the buffer pointer until after it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Aug 2015 10:19:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8505/duplicate-and-dropped-packets-on-uart-characteristic" /><item><title>RE: duplicate and dropped packets on uart characteristic</title><link>https://devzone.nordicsemi.com/thread/31059?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2015 10:19:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0e2eec4-228d-4686-8bd4-92dbb4f15371</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@robotjosh: I reproduced the issue here. I have reported it internally. It will be fixed in the future release of the nRFToolbox.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: duplicate and dropped packets on uart characteristic</title><link>https://devzone.nordicsemi.com/thread/31058?ContentTypeID=1</link><pubDate>Fri, 07 Aug 2015 05:34:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3707c7d5-68a7-4e71-9e17-6f3c42e2f54d</guid><dc:creator>robotjosh</dc:creator><description>&lt;p&gt;This same test code run on the &amp;quot;nRF UART&amp;quot; ios project correctly receives all packets at 4kb/s.  Something is wrong with the nrf toolbox ios project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: duplicate and dropped packets on uart characteristic</title><link>https://devzone.nordicsemi.com/thread/31056?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2015 10:44:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e565f4a9-c7cb-442e-a028-37f946edf75c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@robotjosh: Testing your code here didn&amp;#39;t show the issue. I was not able to recompile the nRFToolbox app because I don&amp;#39;t have the iOS app development environment. I tested using Master Control panel tool on PC. And didn&amp;#39;t see any duplicate or dropped packet.&lt;/p&gt;
&lt;p&gt;However, there is one bug in your code may cause the bp pointer goes out of bound is the condition &amp;quot;while(bytesleft &amp;gt; 0)&amp;quot;. bytesleft is unsigned int, so it will not be negative at the end of the loop but go overflow and keep the loop going.&lt;/p&gt;
&lt;p&gt;Note that the sniffer also work with the PCA10028 DK, so if you have 2 kits you should be able to use the sniffer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: duplicate and dropped packets on uart characteristic</title><link>https://devzone.nordicsemi.com/thread/31055?ContentTypeID=1</link><pubDate>Wed, 05 Aug 2015 03:34:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:339d9fb1-5460-4516-bf35-517c1082005b</guid><dc:creator>robotjosh</dc:creator><description>&lt;p&gt;I don&amp;#39;t have the hardware to do a sniffer trace, but here is my ble file transfer demo made from the keil ble uart demo for the nrf514 dev kit.  &lt;a href="http://robotjosh.com/ble_filetransfer.zip"&gt;file transfer demo code&lt;/a&gt;
This code functions the same as the example but on receiving &amp;quot;Play&amp;quot; it sends over ble uint32_t values sequentially from 1 to 4096.
The IOS demo code is created from the IOS-nRF-Toolbox-master with the only changed file being &lt;a href="http://robotjosh.com/UARTViewController.m"&gt;UARTViewController.m&lt;/a&gt;
This file sets a ble_state var to 1 an initializes a uint32_t buffer for receiving the test data.  Then it fills up that buffer with the test data and prints the results.  For me, transfer speed is 4kb/s but each data slot is either correct or it is overwritten with a value that should come a little later with many slots duplicated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: duplicate and dropped packets on uart characteristic</title><link>https://devzone.nordicsemi.com/thread/31054?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2015 14:30:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbe20b80-78c5-4022-af4d-20bb572f0554</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@robotjosh: If possible please also attach &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer/(language)/eng-GB"&gt;a sniffer trace&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: duplicate and dropped packets on uart characteristic</title><link>https://devzone.nordicsemi.com/thread/31053?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2015 12:26:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50bb8634-59d4-4c4f-95c4-b1e39778893d</guid><dc:creator>robotjosh</dc:creator><description>&lt;p&gt;Testing this on ios nrf toolbox uart example.  I&amp;#39;ll reduce the project down to a demo of this file transfer part and post it tonight.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: duplicate and dropped packets on uart characteristic</title><link>https://devzone.nordicsemi.com/thread/31057?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2015 12:19:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25d10a6a-082b-4a8c-bc49-15e714143421</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@robotjosh: BLE based on reliable protocol so there should be no duplicate or missing packet, by theory.
I don&amp;#39;t see any issue with the code you posted. Could you send the whole project so that we can test here ?
With which central did you test with ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: duplicate and dropped packets on uart characteristic</title><link>https://devzone.nordicsemi.com/thread/31052?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2015 07:43:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ef36755-8e2d-420c-aa81-f9217968e055</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;Another problem can be your host device. When we first tried BLE on Windows 8 tablet and tried to use W8 drivers with Delphi we had lost and duplicate packets. Then switched to Bluegiga dongle with native Bluegiga drivers&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: duplicate and dropped packets on uart characteristic</title><link>https://devzone.nordicsemi.com/thread/31051?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2015 12:19:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42b7f6a4-ebaf-4b58-8a3e-3b4c416943ff</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;I do&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;do{
  err_code = ble_hrs_heart_rate_measurement_send(&amp;amp;m_hrs, packets, 0);
}while(err_code == BLE_ERROR_NO_TX_BUFFERS);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>