<?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>NCS losing data on UART reception when BLE scanning and advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75564/ncs-losing-data-on-uart-reception-when-ble-scanning-and-advertising</link><description>Hello everyone, 
 is it normal behaviour to lose data on UART reception when BLE scanning and advertising both are active? 
 So far I didn&amp;#39;t lose serial data if I just run scanning OR advertising. I tested the UART with 8192 blocks of 10 Bytes of data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Jun 2021 11:51:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75564/ncs-losing-data-on-uart-reception-when-ble-scanning-and-advertising" /><item><title>RE: NCS losing data on UART reception when BLE scanning and advertising</title><link>https://devzone.nordicsemi.com/thread/313905?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 11:51:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebb9e111-02ca-4e1f-ba2d-1b07113f23bf</guid><dc:creator>db_lw</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;first of all thank you for your replys. I was able to solve my problem by reducing the UART buffer size to 32 bytes. With that change I can still use the 115200 baudrate and don&amp;#39;t need HW flow control.&lt;/p&gt;
&lt;p&gt;It seems to me that the constant allocating and freeing of the 125 byte buffer causes a strange delay that ultimately leads to a packet loss at some point.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS losing data on UART reception when BLE scanning and advertising</title><link>https://devzone.nordicsemi.com/thread/312764?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 07:41:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b126ec1-2372-42f6-9963-25d2ce350cfc</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;It shouldn&amp;#39;t be strictly&amp;nbsp;&lt;strong&gt;necessary&lt;/strong&gt; to use HW flow control, but there are some advantages to it, such as that you don&amp;#39;t overrun buffers and also likely get lower current consumption. When not using the HW flow control you will however have to handle the buffers yourself.&lt;/p&gt;
&lt;p&gt;You can also try to decrease the baud rate to see if you still lose data at lower baud rates or not.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS losing data on UART reception when BLE scanning and advertising</title><link>https://devzone.nordicsemi.com/thread/312650?ContentTypeID=1</link><pubDate>Mon, 31 May 2021 13:09:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46c3aa4b-0573-40b0-aa8a-2822cf2d4c3e</guid><dc:creator>db_lw</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m working with a custom board where I don&amp;#39;t have CTS/RTS, so I guess HW flow control is not an option.&lt;/p&gt;
&lt;p&gt;The used baudrate is 115200, maybe this is too fast for a no flow control setup.&lt;/p&gt;
&lt;p&gt;Best regards!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS losing data on UART reception when BLE scanning and advertising</title><link>https://devzone.nordicsemi.com/thread/311785?ContentTypeID=1</link><pubDate>Wed, 26 May 2021 12:24:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c742328-a5a3-4ad1-b7d1-63ccf3f5582b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Please try enabling &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/serial_lte_modem/doc/slm_description.html?highlight=flow%20control#cmdoption-arg-CONFIG_SLM_DATAMODE_HWFC"&gt;HW flow control&lt;/a&gt; in your project. &lt;span&gt;Automatic HWFC detection is done by driving&amp;nbsp;&lt;/span&gt;&lt;span&gt;P0.07&lt;/span&gt;&lt;span&gt;&amp;nbsp;(CTS) from the interface MCU and evaluating the state of&amp;nbsp;&lt;/span&gt;&lt;span&gt;P0.05&lt;/span&gt;&lt;span&gt;&amp;nbsp;(RTS) when the first data is sent or received. If the state of&amp;nbsp;&lt;/span&gt;&lt;span&gt;P0.05&lt;/span&gt;&lt;span&gt;&amp;nbsp;(RTS) is high, HWFC is assumed not to be used. If HWFC is not detected, both CTS and RTS can be used freely by the nRF application.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>