<?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>MQX Software Solutions中的主题 RS485 Flow control on ColdFire 54415</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/RS485-Flow-control-on-ColdFire-54415/m-p/313775#M10055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm developping an application on Coldfire 54415 with MQX.&lt;/P&gt;&lt;P&gt;I need to implement the RS485 protocol with "RS485 flow control". Meaning that I need to pull the RTS line low during the transmission.&lt;/P&gt;&lt;P&gt;In MQX, when we deal with the serial port, it should be possible to use the IO_SERIAL_HW_485_FLOW_CONTROL flag.&lt;/P&gt;&lt;P&gt;But it seems it does not work with this Coldfire. I went inside the serial driver from MQX. This flag is not managed.&lt;/P&gt;&lt;P&gt;I also tried the following way, to check how the ioctl flags work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; flag = IO_SERIAL_RTS;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ioctl(ACM_Tty[idx].fdev, IO_IOCTL_SERIAL_SET_HW_SIGNAL, &amp;amp;flag);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is supposed to be managed by the UART driver in MQX.&lt;/P&gt;&lt;P&gt;But nothing happens on the RTS line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So, what is the way to manage automatically the RTS line in "RS485" mode.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that I could handle the RTS manually with GPIO but this is too slow (I communicate with a slave device that replies very fast. So I need to release the RTS line as soon as the transmission is complete).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2014 17:09:36 GMT</pubDate>
    <dc:creator>nicolasuhl</dc:creator>
    <dc:date>2014-06-03T17:09:36Z</dc:date>
    <item>
      <title>RS485 Flow control on ColdFire 54415</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RS485-Flow-control-on-ColdFire-54415/m-p/313775#M10055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm developping an application on Coldfire 54415 with MQX.&lt;/P&gt;&lt;P&gt;I need to implement the RS485 protocol with "RS485 flow control". Meaning that I need to pull the RTS line low during the transmission.&lt;/P&gt;&lt;P&gt;In MQX, when we deal with the serial port, it should be possible to use the IO_SERIAL_HW_485_FLOW_CONTROL flag.&lt;/P&gt;&lt;P&gt;But it seems it does not work with this Coldfire. I went inside the serial driver from MQX. This flag is not managed.&lt;/P&gt;&lt;P&gt;I also tried the following way, to check how the ioctl flags work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; flag = IO_SERIAL_RTS;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ioctl(ACM_Tty[idx].fdev, IO_IOCTL_SERIAL_SET_HW_SIGNAL, &amp;amp;flag);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is supposed to be managed by the UART driver in MQX.&lt;/P&gt;&lt;P&gt;But nothing happens on the RTS line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So, what is the way to manage automatically the RTS line in "RS485" mode.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that I could handle the RTS manually with GPIO but this is too slow (I communicate with a slave device that replies very fast. So I need to release the RTS line as soon as the transmission is complete).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 17:09:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RS485-Flow-control-on-ColdFire-54415/m-p/313775#M10055</guid>
      <dc:creator>nicolasuhl</dc:creator>
      <dc:date>2014-06-03T17:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: RS485 Flow control on ColdFire 54415</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/RS485-Flow-control-on-ColdFire-54415/m-p/313776#M10056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can suggest implementing the RTS and CTS pins as GPIO and sending the signals manually.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 22:04:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/RS485-Flow-control-on-ColdFire-54415/m-p/313776#M10056</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2014-06-19T22:04:33Z</dc:date>
    </item>
  </channel>
</rss>

