<?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>Sending many messages</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48032/sending-many-messages</link><description>Hi, 
 I am using the BLE UART central and peripheral to send 100 messages of size 65 bytes (64 bytes + new line) continuously to the peripheral in the hope that I can see the messages on the UART of the central device. 
 However, I notice that I get about</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Jun 2019 13:26:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48032/sending-many-messages" /><item><title>RE: Sending many messages</title><link>https://devzone.nordicsemi.com/thread/191391?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 13:26:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee8c7d27-01c2-4409-8ab2-05b5435234f9</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;How many packets do you attempt to send each second? BLE bandwidth depends on a number of factors, but generally, you will get higher throughput by trying to send fewer large packets compared to more short packets. Both due to overhead in the BLE link itself, and also due to a limited (but indirectly configurable) number of packet buffers (based on the NRF_SDH_BLE_GAP_DATA_LENGTH and NRF_SDH_BLE_GAP_EVENT_LENGTH parameters).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending many messages</title><link>https://devzone.nordicsemi.com/thread/190863?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 15:07:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70af43dd-43ff-4e4f-8ff0-65f4b30b30db</guid><dc:creator>firmware_master</dc:creator><description>&lt;p&gt;I am using the default connection parameters as per the example. I haven&amp;#39;t changed anything in the code at all and I am using nRF52832 on both ends. I am using SDK 15.3.0. I do not have a sniffer trace to show this. I am running the example as it is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending many messages</title><link>https://devzone.nordicsemi.com/thread/190670?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 07:50:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11f57e41-9640-4537-93fe-0e490289e97c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There can be a number of factors controlling this. What about the BLE link?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What connection parameters are used?&lt;/li&gt;
&lt;li&gt;Connection interval, packet length, packets per connection event etc?&lt;/li&gt;
&lt;li&gt;Do you have a sniffer trace to show this?&lt;/li&gt;
&lt;li&gt;Are you using nRF52832 on both ends?&lt;/li&gt;
&lt;li&gt;Which SDK version are you using? Which modifications have you made to the example?&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending many messages</title><link>https://devzone.nordicsemi.com/thread/190576?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2019 14:51:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b195d0a5-d678-404c-8e68-58b005c66a5a</guid><dc:creator>firmware_master</dc:creator><description>&lt;p&gt;I am using the given example and so I assume that the correct settings have been applied.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I also see this issue when I send 16 &amp;amp; 32 bytes messages for a higher number of messages. So it looks like the FIFO gets filled no matter the size and the bigger size only makes the issue come up earlier.&lt;/p&gt;
&lt;p&gt;This is surprising.&lt;/p&gt;
&lt;p&gt;WIth a 115200 baud rate, I can sent 11520 bytes per second.&lt;/p&gt;
&lt;p&gt;I am sending messages every 10ms so I should be able to send 115.2 or 115 bytes every 10ms. However, I am not able to send even 64, 32 or even 16 bytes. I haven&amp;#39;t tried 8 bytes yet.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending many messages</title><link>https://devzone.nordicsemi.com/thread/190561?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2019 14:17:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d668e3a4-6065-4725-89a8-22f049d84483</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I want to start with the first question that came to mind: have you started the crystal oscillator? That is generally a good idea when using UART. Failing to do so can result in a too large clock inaccuracy, leading to framing errors.&lt;/p&gt;
[quote user=""]I also see that when the transmission stops there is a APP_UART_FIFO_ERROR error at the sender.[/quote]
&lt;p&gt;This could be caused by several things. Have you checked the additional error code in the&amp;nbsp;app_uart_evt_t instance?&lt;/p&gt;
[quote user=""]What is the size of the FIFO buffer?[/quote]
&lt;p&gt;&amp;nbsp;That is configured by the second and third parameters in APP_UART_FIFO_INIT().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>