<?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 to set UART without CTS/RTS in Zigbee CLI example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60289/how-to-set-uart-without-cts-rts-in-zigbee-cli-example</link><description>I use Zigbee CLI example on nRF52840. (examples\zigbee\experimental\cli\cli_agent_router) 
 It use UART as 115200 bps with CTS/RTS (hardware flow control). 
 I want to change setting UART to without CTS/RTS. 
 I looked in the project for the settings</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Apr 2020 05:38:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60289/how-to-set-uart-without-cts-rts-in-zigbee-cli-example" /><item><title>RE: How to set UART without CTS/RTS in Zigbee CLI example</title><link>https://devzone.nordicsemi.com/thread/245416?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 05:38:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67da6f0b-a27c-42f3-9521-833000081719</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Indeed, the zigbee_cli.c has enabled HWFC. Another file that enables the HWFC in the cli_agent_router app is in the nrfx_uart.c file. These should be the only places the HWFC is enabled in the cli_agent_router example.&amp;nbsp;&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: How to set UART without CTS/RTS in Zigbee CLI example</title><link>https://devzone.nordicsemi.com/thread/245323?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 23:41:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32e1b73a-6db0-414d-9197-c09414817d25</guid><dc:creator>nanbuwks</dc:creator><description>&lt;p&gt;Hi Simonr! Thank you for reply.&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t know where to set&lt;span&gt;&amp;nbsp;&amp;quot;APP_UART_FLOW_CONTROL_DISABLED&amp;quot;&lt;/span&gt;&amp;nbsp;up.&lt;/p&gt;
&lt;p&gt;Instead, I found the following.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;zigbee_cli.c:&lt;/p&gt;
&lt;p&gt;#if CLI_OVER_UART&lt;br /&gt; nrf_drv_uart_config_t uart_config = NRF_DRV_UART_DEFAULT_CONFIG;&lt;br /&gt; uart_config.pseltxd = TX_PIN_NUMBER;&lt;br /&gt; uart_config.pselrxd = RX_PIN_NUMBER;&lt;br /&gt; #if defined(HWFC) &amp;amp;&amp;amp; (HWFC == true)&lt;br /&gt; uart_config.pselcts = CTS_PIN_NUMBER;&lt;br /&gt; uart_config.pselrts = RTS_PIN_NUMBER;&lt;br /&gt; uart_config.hwfc = NRF_UART_HWFC_ENABLED;&lt;br /&gt; #endif&lt;br /&gt; ret = nrf_cli_init(&amp;amp;m_cli_uart, &amp;amp;uart_config, true, true, NRF_LOG_SEVERITY_NONE);&lt;br /&gt; APP_ERROR_CHECK(ret);&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I changed to:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; uart_config.hwfc&amp;nbsp; &amp;nbsp; =&amp;nbsp; NRF_UART_HWFC_DISABLED;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, I was able to get a CLI without RTS/CTS controls.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But,&amp;nbsp;The&lt;/p&gt;
&lt;p&gt;#if defined(HWFC) &amp;amp;&amp;amp; (HWFC == true)&lt;/p&gt;
&lt;p&gt;line are enabled. I don&amp;#39;t know why HWCC is true. Where are you setting this up?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set UART without CTS/RTS in Zigbee CLI example</title><link>https://devzone.nordicsemi.com/thread/245196?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 10:27:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57b4432c-bd34-41aa-a5c6-2817fa32b7d2</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;In order to disable HW flow control you only need to set APP_UART_FLOW_CONTROL_DISABLED in the UART parameters and change the CTS and RTS pins in your application to NULL.&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>