<?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>How is the RTS-pin controlled in UART with flowcontrol</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10333/how-is-the-rts-pin-controlled-in-uart-with-flowcontrol</link><description>I am using a nrf52832 to communicate via UART to a GSM module (AT commands). 
 I have setup the device with a baud rate of 9600 and using HW flowcontrol. The nrf52 is doing other stuff at the same time such as communicating via bluetooth. 
 The problem</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Apr 2017 09:34:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10333/how-is-the-rts-pin-controlled-in-uart-with-flowcontrol" /><item><title>RE: How is the RTS-pin controlled in UART with flowcontrol</title><link>https://devzone.nordicsemi.com/thread/38363?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2017 09:34:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7efe4d09-4c74-4032-938f-af36d75225b0</guid><dc:creator>Nicolai Kildegaard</dc:creator><description>&lt;p&gt;static const app_uart_comm_params_t comm_params =
{
GSM_RX_PIN_NUMBER,
GSM_TX_PIN_NUMBER,
GSM_RTS_PIN_NUMBER,
GSM_CTS_PIN_NUMBER,
GSM_UART_FLOW_CONTROL,
GSM_USE_PARITY,
GSM_UART_BAUDRATE
};&lt;/p&gt;
&lt;p&gt;void uart_evt_callback(app_uart_evt_t * uart_evt)
{
if (uart_evt-&amp;gt;evt_type == APP_UART_DATA_READY)
uint8_t cr;
while(app_uart_get(&amp;amp;cr) == NRF_SUCCESS)
{
//cr should now contain the data
}
}
}&lt;/p&gt;
&lt;p&gt;uint32_t gsm_uart_init(void)
{
return APP_UART_FIFO_INIT(&amp;amp;comm_params,
GSM_UART_RX_BUF_SIZE,
GSM_UART_TX_BUF_SIZE,
uart_evt_callback,
GSM_UART_PRIORITY,
error_code);
}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How is the RTS-pin controlled in UART with flowcontrol</title><link>https://devzone.nordicsemi.com/thread/38362?ContentTypeID=1</link><pubDate>Mon, 17 Apr 2017 09:34:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b75eaa3c-677f-42e2-9349-b68af7f16a2c</guid><dc:creator>Nicolai Kildegaard</dc:creator><description>&lt;p&gt;This is a very old question. I don&amp;#39;t have access to the code in the form it was in back then, and now it looks completely different.&lt;/p&gt;
&lt;p&gt;But I didn&amp;#39;t do anything different from the example projects. My problem back then was that I was setting break points elsewhere in the code, and that blocked the uart connection from operating as I expected.&lt;/p&gt;
&lt;p&gt;I will add a comment with what I can salvage from back then and fit in a comment, but I can&amp;#39;t guarantee it will work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How is the RTS-pin controlled in UART with flowcontrol</title><link>https://devzone.nordicsemi.com/thread/38361?ContentTypeID=1</link><pubDate>Sat, 15 Apr 2017 17:32:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af888f2c-aeb2-47fd-8813-a2183b770fae</guid><dc:creator>Khalid</dc:creator><description>&lt;p&gt;hello Nicolai would you mind sharing your code because im doing a similar thing with my nrf and i am running to all kinds of issues&lt;/p&gt;
&lt;p&gt;thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How is the RTS-pin controlled in UART with flowcontrol</title><link>https://devzone.nordicsemi.com/thread/38360?ContentTypeID=1</link><pubDate>Thu, 19 Nov 2015 01:43:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0682386f-fa6b-49c6-be4f-75a7976d544d</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;&amp;quot;I know the pin is supposed to be set when the softdevice does something&amp;quot;&lt;/p&gt;
&lt;p&gt;Not directly - the softdevice knows nothing at all about whether you are using the UART or not and doesn&amp;#39;t do anything to the RTS signal. If you&amp;#39;re thinking the softdevice disables UART by forcing the RTS pin high, when it&amp;#39;s doing things, that is not correct.&lt;/p&gt;
&lt;p&gt;The RTS pin goes high when the buffer space falls to a minimum to stop the sending device sending until you&amp;#39;ve read the data which already came in so you don&amp;#39;t lose it. Are you reading the data which comes in?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How is the RTS-pin controlled in UART with flowcontrol</title><link>https://devzone.nordicsemi.com/thread/38359?ContentTypeID=1</link><pubDate>Wed, 18 Nov 2015 23:02:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9164854b-1a22-4597-a357-ab395b161f73</guid><dc:creator>atune</dc:creator><description>&lt;p&gt;Legacy UART? Are you reading the rx fifo?&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The UART receiver chain implements a FIFO capable of storing &lt;strong&gt;six&lt;/strong&gt; incoming RXD bytes before data is overwritten ... When flow control is enabled, the &lt;strong&gt;UART will deactivate the RTS signal when there is only space for four more bytes&lt;/strong&gt; in the receiver FIFO.  .... The RTS signal will first be activated again when the FIFO has been emptied, that is, when all bytes in the FIFO have been read by the CPU, see Figure 3.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;In your picture two bytes are received and RTS is set, just like described in the documentation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How is the RTS-pin controlled in UART with flowcontrol</title><link>https://devzone.nordicsemi.com/thread/38358?ContentTypeID=1</link><pubDate>Wed, 18 Nov 2015 15:57:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7748d7f-085f-4397-8302-79b7ce374f5a</guid><dc:creator>Nicolai Kildegaard</dc:creator><description>&lt;p&gt;No that was a typo. Sorry...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How is the RTS-pin controlled in UART with flowcontrol</title><link>https://devzone.nordicsemi.com/thread/38357?ContentTypeID=1</link><pubDate>Wed, 18 Nov 2015 15:44:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0c634a3-99c1-40c5-b2a1-73816d359976</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;&lt;strong&gt;SPI ??&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>