<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: RS485 direction RTS not working as intended</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/RS485-direction-RTS-not-working-as-intended/m-p/1576051#M199379</link>
    <description>&lt;P&gt;Thanks for you answer.&lt;BR /&gt;&lt;BR /&gt;The question is not really about the direction of the electrical signals (ok we struggled with that one as well, but we also found the linked page which helped), as we are able to stear the RTS (via HW or via GPIO, behaves the same). The only problem is that the output seems to be set when sending and when receiving, so in both cases exactly the same, where we would expect that the output (DCE-CTS / DTE-RTS) is only set when sending, not when receiving. Maybe SW we use to test this (minicom / screen / echo / cat) is somehow making some full duplex assumptions and we should maybe try it with some more basic c program which does the bare minimum...&lt;/P&gt;&lt;P&gt;In the picture you see how we want to use the signal to set the direction of the half duplex transceiver (MODE). Like it is now, we can to make receive working OR send working (we can turn off RTS or switch the polarity) but not in a way that it switches when sending and not when receiving. One way to solve it would be to set the RTS completely manual through GPIO in custom SW, but we would like to make it work via the HW functionality.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-01-02_12-36.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/205813i2B44A4815B4AD038/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2023-01-02_12-36.png" alt="2023-01-02_12-36.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If any ideas what might go wrong, thanks for letting us know!&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jan 2023 11:52:55 GMT</pubDate>
    <dc:creator>Clemens1</dc:creator>
    <dc:date>2023-01-02T11:52:55Z</dc:date>
    <item>
      <title>RS485 direction RTS not working as intended</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RS485-direction-RTS-not-working-as-intended/m-p/1574213#M199183</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have a IMX6UL SOC and we are using a recent 5.15.82 kernel.&lt;/P&gt;&lt;P&gt;We want to use a THVD8000 transceiver (half duplex).&lt;/P&gt;&lt;P&gt;RX / TX works as intended, but the direction, which we want to set with RTS (output pin, so DTE RTS / DCE CTS), it is not working as intended. We expected the RTS goes only high when opening the serial port in transmit mode, but it seems to go high in both modes, so also in receive mode (and then RX doesn't work of course as the transceiver is in send mode). We tried using it via hw mode as well as GPIO, same behaviour. When manually setting the GPIO after disabling rtscts, tx / rx work as intended.&lt;/P&gt;&lt;P&gt;Do we make some wrong assumption that we can not use RTS for setting the direction of the transceiver?&lt;/P&gt;&lt;P&gt;Any other tips?&lt;/P&gt;&lt;P&gt;Device tree uart setting look like this:&lt;/P&gt;&lt;P&gt;&amp;amp;uart8 {&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_uart8&amp;gt;;&lt;BR /&gt;/*cts-rts-swap;*/&lt;BR /&gt;rts-gpios = &amp;lt;&amp;amp;gpio2 14 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt;status = "okay";&lt;BR /&gt;rs485-rts-delay = &amp;lt;1 1&amp;gt;;&lt;BR /&gt;rs485-enabled-at-boot-time;&lt;BR /&gt;uart-has-rtscts;&lt;BR /&gt;fsl,dte-mode;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;/* UART8 external RS485 */&lt;BR /&gt;pinctrl_uart8: uart8grp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX6UL_PAD_ENET2_TX_EN__UART8_DTE_TX 0x13008&lt;BR /&gt;MX6UL_PAD_ENET2_TX_DATA1__UART8_DTE_RX 0x13008&lt;BR /&gt;/*MX6UL_PAD_ENET2_TX_CLK__UART8_DTE_RTS 0x13008*/&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;Thanks for any tips/suggestions,&lt;BR /&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 13:16:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RS485-direction-RTS-not-working-as-intended/m-p/1574213#M199183</guid>
      <dc:creator>Clemens1</dc:creator>
      <dc:date>2022-12-23T13:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: RS485 direction RTS not working as intended</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RS485-direction-RTS-not-working-as-intended/m-p/1575577#M199308</link>
      <description>&lt;DIV&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/208479"&gt;@Clemens1&lt;/a&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I hope you are doing well.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class="im"&gt;Please find the answer below.&lt;BR /&gt;&lt;/SPAN&gt;
&lt;P&gt;For a better understanding of direction and DTE/DCE mode please refer below documents.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-97509" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?q=https://community.nxp.com/docs/DOC-97509&amp;amp;source=gmail&amp;amp;ust=1672404565661000&amp;amp;usg=AOvVaw1KjOnGWr_fRudBYfdStWXk"&gt;https://community.freescale.&lt;WBR /&gt;com/docs/DOC-97509&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Refer 53.2 External Signals From&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=IMX6ULRM" target="_blank" rel="noopener" data-saferedirecturl="https://www.google.com/url?q=https://www.nxp.com/webapp/Download?colCode%3DIMX6ULRM&amp;amp;source=gmail&amp;amp;ust=1672404565661000&amp;amp;usg=AOvVaw0yeUFGIXiZyLWnvsQQB7md"&gt;IMX6ULRM&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV&gt;If it doesn't solve the issue kindly share the schematic.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks &amp;amp; Regards&lt;/DIV&gt;
&lt;DIV&gt;Sanket Parekh&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 12:56:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RS485-direction-RTS-not-working-as-intended/m-p/1575577#M199308</guid>
      <dc:creator>Sanket_Parekh</dc:creator>
      <dc:date>2022-12-29T12:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: RS485 direction RTS not working as intended</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RS485-direction-RTS-not-working-as-intended/m-p/1576051#M199379</link>
      <description>&lt;P&gt;Thanks for you answer.&lt;BR /&gt;&lt;BR /&gt;The question is not really about the direction of the electrical signals (ok we struggled with that one as well, but we also found the linked page which helped), as we are able to stear the RTS (via HW or via GPIO, behaves the same). The only problem is that the output seems to be set when sending and when receiving, so in both cases exactly the same, where we would expect that the output (DCE-CTS / DTE-RTS) is only set when sending, not when receiving. Maybe SW we use to test this (minicom / screen / echo / cat) is somehow making some full duplex assumptions and we should maybe try it with some more basic c program which does the bare minimum...&lt;/P&gt;&lt;P&gt;In the picture you see how we want to use the signal to set the direction of the half duplex transceiver (MODE). Like it is now, we can to make receive working OR send working (we can turn off RTS or switch the polarity) but not in a way that it switches when sending and not when receiving. One way to solve it would be to set the RTS completely manual through GPIO in custom SW, but we would like to make it work via the HW functionality.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-01-02_12-36.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/205813i2B44A4815B4AD038/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2023-01-02_12-36.png" alt="2023-01-02_12-36.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If any ideas what might go wrong, thanks for letting us know!&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 11:52:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RS485-direction-RTS-not-working-as-intended/m-p/1576051#M199379</guid>
      <dc:creator>Clemens1</dc:creator>
      <dc:date>2023-01-02T11:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: RS485 direction RTS not working as intended</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RS485-direction-RTS-not-working-as-intended/m-p/1578405#M199652</link>
      <description>&lt;P&gt;&lt;SPAN class="im"&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/208479"&gt;@Clemens1&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;I hope you are doing well.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;How is the processor connected with the module?&lt;/DIV&gt;
&lt;DIV&gt;Kindly share the processor side schematic also for&amp;nbsp;further debugging.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks &amp;amp; Regards&lt;/DIV&gt;
&lt;DIV&gt;Sanket Parekh&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 07:36:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RS485-direction-RTS-not-working-as-intended/m-p/1578405#M199652</guid>
      <dc:creator>Sanket_Parekh</dc:creator>
      <dc:date>2023-01-06T07:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: RS485 direction RTS not working as intended</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RS485-direction-RTS-not-working-as-intended/m-p/1579082#M199751</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/208479"&gt;@Clemens1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Awaiting for your answer.&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;
&lt;P&gt;Sanket Parekh&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 07:57:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RS485-direction-RTS-not-working-as-intended/m-p/1579082#M199751</guid>
      <dc:creator>Sanket_Parekh</dc:creator>
      <dc:date>2023-01-09T07:57:28Z</dc:date>
    </item>
  </channel>
</rss>

