<?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>topic How to add support rs485 half duplex in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-add-support-rs485-half-duplex/m-p/861194#M18085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Hello community.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have MX6DL custome board using rs485 half duplex, currently using 4.1.15 kernel.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have seen the file imx.c in drivers / tty / serial / imx.c but it seems to not support rs485.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is how to add support rs485 mode half duplex?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jan 2019 04:05:05 GMT</pubDate>
    <dc:creator>hiectai</dc:creator>
    <dc:date>2019-01-09T04:05:05Z</dc:date>
    <item>
      <title>How to add support rs485 half duplex</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-add-support-rs485-half-duplex/m-p/861194#M18085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Hello community.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have MX6DL custome board using rs485 half duplex, currently using 4.1.15 kernel.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have seen the file imx.c in drivers / tty / serial / imx.c but it seems to not support rs485.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is how to add support rs485 mode half duplex?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2019 04:05:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-add-support-rs485-half-duplex/m-p/861194#M18085</guid>
      <dc:creator>hiectai</dc:creator>
      <dc:date>2019-01-09T04:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to add support rs485 half duplex</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-add-support-rs485-half-duplex/m-p/861195#M18086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="294368" data-username="hiectai" href="https://community.nxp.com/people/hiectai"&gt;タイ チャン&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; About I.MX6 UART to RS485 applications, I have some advice for you .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Using RS485 mode of UART directly.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;On hardware, you should use UART_CTS_B to control RX &amp;amp; TX.&lt;/P&gt;&lt;P&gt;On software, The link for you reference:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/459898"&gt;Does UART in RS485 mode support only 9 Bit mode for i.MX6 ?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Sensing IO direction Automatically via hardware, don't need to tune software.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76265i777CCB49A36806EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;NXP TIC Weidong Sun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2019 02:53:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-add-support-rs485-half-duplex/m-p/861195#M18086</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2019-01-10T02:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add support rs485 half duplex</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-add-support-rs485-half-duplex/m-p/861196#M18087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;Hi&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="201499" data-username="weidong.sun" href="https://community.nxp.com/people/weidong.sun" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;"&gt;&lt;SPAN style="vertical-align: inherit;"&gt;Wigros Sun&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you for answer.&lt;BR /&gt;I tried use UART_CTS_B to control RX &amp;amp; TX witch below setting:&lt;/P&gt;&lt;P&gt;/* enable RS485 mode: */&lt;BR /&gt;rs485conf.flags |= SER_RS485_ENABLED;&lt;/P&gt;&lt;P&gt;/* set logical level for RTS pin equal to 1 when sending: */&lt;BR /&gt;rs485conf.flags |= SER_RS485_RTS_ON_SEND;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;UART_CTS_B pin has gone to high level when transmitting but after transmission is completed, it will not return to low level. In the default ,UART_CTS_B pin is high. This is the transmission waveform&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76676i615789FEDE47EECC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;How to change the default of UART_CTS_B pin to a low level to receive signals at any time?&lt;BR /&gt;Thank yo so much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2019 04:17:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-add-support-rs485-half-duplex/m-p/861196#M18087</guid>
      <dc:creator>hiectai</dc:creator>
      <dc:date>2019-01-11T04:17:31Z</dc:date>
    </item>
  </channel>
</rss>

