<?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>(nRF51822) uart  rx loss data after start advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11371/nrf51822-uart-rx-loss-data-after-start-advertising</link><description>Hello!
everyone:
I use nRF51822 UART Demo(ble_app_uart),test uart interrupt receive data, baudrate is 38400.
if start advertising ,rx loss data ,else rx receive data perfect. so i think soft device disturb uart 
interrupt. 
 uart configeration is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Jan 2016 08:36:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11371/nrf51822-uart-rx-loss-data-after-start-advertising" /><item><title>RE: (nRF51822) uart  rx loss data after start advertising</title><link>https://devzone.nordicsemi.com/thread/42850?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2016 08:36:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a81018c-15e9-4dd6-8b2f-bc1a78596b57</guid><dc:creator>nivo</dc:creator><description>&lt;p&gt;OK，I will  try it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: (nRF51822) uart  rx loss data after start advertising</title><link>https://devzone.nordicsemi.com/thread/42849?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2016 08:33:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5e6edb0-72d4-4884-b0b7-54f964c574b4</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;That&amp;#39;s a strange combination of stuff. What actual revision of the device are you running on? If you are on revision 2, the latest is SDK 6.1 with softdevice 7.1, no need to be using an old beta softdevice. If you have a revision 3 chip however you can use softdevice revision 8 with one of the more recent SDKs, like SDK 8.1 or newer. That will reduce the amount of time the softdevice uses a bit. However .. without HWFC or a much slower baud rate, if you start really doing a lot of BTLE transmissions, you&amp;#39;re going to start losing UART data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: (nRF51822) uart  rx loss data after start advertising</title><link>https://devzone.nordicsemi.com/thread/42848?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2016 08:21:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18b4b00b-6500-4b7c-a586-1164ff3c2317</guid><dc:creator>nivo</dc:creator><description>&lt;p&gt;i use sdk is nrf51_sdk_v5_1_0_36092
soft device is s110_nrf51822_6.0.0-5.beta_softdevice&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: (nRF51822) uart  rx loss data after start advertising</title><link>https://devzone.nordicsemi.com/thread/42843?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2016 08:18:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d8ccd5c-2617-45e6-a11c-ed7d99c8ecf6</guid><dc:creator>nivo</dc:creator><description>&lt;p&gt;hi,Aryan!
I set the hwfc is flase ,but loss data .
I test tx data is ok.&lt;br /&gt;
I use pc UART transimit the data to BLE(20ms , 20bits ),  and transmit the data back.
the data  is loss&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: (nRF51822) uart  rx loss data after start advertising</title><link>https://devzone.nordicsemi.com/thread/42847?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2016 08:16:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0d0dade-459a-4a34-b9ba-abcb37a1d6f7</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;You&amp;#39;re going to have problems running at 38,400 baud with the softdevice enabled and no hardware flow control. That&amp;#39;s your problem. Use a slower baud rate, enable HWFC and it will help to use the latest revision nrf51 and latest softdevices (as they interrupt the CPU less). What SDK/softdevice and nrf51 are you actually using .. just for reference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: (nRF51822) uart  rx loss data after start advertising</title><link>https://devzone.nordicsemi.com/thread/42842?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2016 08:11:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:613c490d-b7e8-4191-a4ea-ac04db6afef4</guid><dc:creator>nivo</dc:creator><description>&lt;p&gt;hi ,RK!
i set the hwfc is false ,and loss data
NRF_UART0-&amp;gt;CONFIG  = (UART_CONFIG_HWFC_Disabled &amp;lt;&amp;lt; UART_CONFIG_HWFC_Pos);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: (nRF51822) uart  rx loss data after start advertising</title><link>https://devzone.nordicsemi.com/thread/42841?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2016 08:05:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0832f8d-9f4c-43e8-9a1c-1fd5d40c4931</guid><dc:creator>nivo</dc:creator><description>&lt;p&gt;i have another ble module （QN9021），doesn&amp;#39;t loss data. Idon&amp;#39;t use hardware flow control.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: (nRF51822) uart  rx loss data after start advertising</title><link>https://devzone.nordicsemi.com/thread/42840?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2016 07:54:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9a60055-18fa-476f-ac53-3ed037f23d3e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;True RK,
I assumed that it is being called, nivo confused me by adding that snippet here :)
OK, no more assumptions&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: (nRF51822) uart  rx loss data after start advertising</title><link>https://devzone.nordicsemi.com/thread/42846?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2016 07:12:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:284c6ce1-dba6-4465-8381-3e440693094b</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;how can you tell, you can&amp;#39;t see the call to simple_uart_config() to know whether the hwfc parameter is set true or false?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: (nRF51822) uart  rx loss data after start advertising</title><link>https://devzone.nordicsemi.com/thread/42845?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2016 07:05:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0bb741b-a2c0-424a-bb7d-093b1f6fdafd</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;from the code it looks like flow control is enabled.
Can you please let us which data is missing and the sequence of transmission, possibly some timings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: (nRF51822) uart  rx loss data after start advertising</title><link>https://devzone.nordicsemi.com/thread/42844?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2016 06:52:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b97cf162-2e82-484c-bcc6-36ea5818cc7f</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;The softdevice disturbs the timing of everything - are you using hardware flow control or not, if not, that&amp;#39;s probably the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>