<?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 Re: Configuring LTC2873 with iMX6 uart for Half duplex in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Configuring-LTC2873-with-iMX6-uart-for-Half-duplex/m-p/1025123#M151486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issue 1 . We are missing few characters when we use " cat /dev/ttymxc0 " , but below ISR function in imx.c receiving all the characters..&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; static irqreturn_t imx_rxint(int irq, void *dev_id) .&amp;nbsp;&lt;/P&gt;&lt;P&gt;ANSWER. you need to have flow control to avoid this kind of missing data. This can be done with SW or HW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Issue 2: How to enable Rx and TX as and when needed, using IOCTL from sender/receiver application? Is imx driver supports these ioctl functionality to toggle / set these RE / DE pins ?&lt;/P&gt;&lt;P&gt;ANSWER.&amp;nbsp; Yes, this need to be done at&amp;nbsp; driver level. You can use IOCTL to modify the registers of the UART to change the signals as needed, but rememeber that you are going to affect all other UART including the DEBUG .&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue 3: We are using B115200 on both at transmitter and receiver. When we try to set the B9600 on ttymxc0, after few sec Baudrate on ttymxc0 resetting to B115200?&lt;/P&gt;&lt;P&gt;ANSWWER.&amp;nbsp; How you are doing this change?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Dec 2019 18:54:40 GMT</pubDate>
    <dc:creator>jamesbone</dc:creator>
    <dc:date>2019-12-10T18:54:40Z</dc:date>
    <item>
      <title>Configuring LTC2873 with iMX6 uart for Half duplex</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Configuring-LTC2873-with-iMX6-uart-for-Half-duplex/m-p/1025122#M151485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using LTC2873 RS232 / half duplex RS485 chip with iMX6 UART .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have observed that when we enable the (RS232/RS485 = gpio (93)=1, RE = gpio (205) and DE = gpio (84) in transmit mode we were able to receive the data which is transmitted from iMx6.i.e iMX6 as transmitter..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when we changed the RE and DE to receive mode, we could see only few characters are received and few are missed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Used below commands to toggle GPIO's to enable RS485 and 485 in receiving mode as well..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;echo 205 &amp;gt; /sys/class/gpio/export&lt;BR /&gt;echo 84 &amp;gt; /sys/class/gpio/export&lt;BR /&gt;echo 93 &amp;gt; /sys/class/gpio/export&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;echo out &amp;gt; /sys/class/gpio/gpio93/direction&lt;BR /&gt;echo out &amp;gt; /sys/class/gpio/gpio84/direction&lt;BR /&gt;echo out &amp;gt; /sys/class/gpio/gpio205/direction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;echo 1 &amp;gt; /sys/class/gpio/gpio93/value&lt;BR /&gt;echo 0 &amp;gt; /sys/class/gpio/gpio84/value&lt;BR /&gt;echo 0 &amp;gt; /sys/class/gpio/gpio205/value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Issue 1 . We are missing few characters when we use " cat /dev/ttymxc0 " , but below ISR function in imx.c receiving all the characters..&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; static irqreturn_t imx_rxint(int irq, void *dev_id) .&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Issue 2: How to enable Rx and TX as and when needed, using IOCTL from sender/receiver application? Is imx driver supports these ioctl functionality to toggle / set these RE / DE pins ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue 3: We are using B115200 on both at transmitter and receiver. When we try to set the B9600 on ttymxc0, after few sec Baudrate on ttymxc0 resetting to B115200?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2019 13:06:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Configuring-LTC2873-with-iMX6-uart-for-Half-duplex/m-p/1025122#M151485</guid>
      <dc:creator>suryakanta_moha</dc:creator>
      <dc:date>2019-12-09T13:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring LTC2873 with iMX6 uart for Half duplex</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Configuring-LTC2873-with-iMX6-uart-for-Half-duplex/m-p/1025123#M151486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issue 1 . We are missing few characters when we use " cat /dev/ttymxc0 " , but below ISR function in imx.c receiving all the characters..&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; static irqreturn_t imx_rxint(int irq, void *dev_id) .&amp;nbsp;&lt;/P&gt;&lt;P&gt;ANSWER. you need to have flow control to avoid this kind of missing data. This can be done with SW or HW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Issue 2: How to enable Rx and TX as and when needed, using IOCTL from sender/receiver application? Is imx driver supports these ioctl functionality to toggle / set these RE / DE pins ?&lt;/P&gt;&lt;P&gt;ANSWER.&amp;nbsp; Yes, this need to be done at&amp;nbsp; driver level. You can use IOCTL to modify the registers of the UART to change the signals as needed, but rememeber that you are going to affect all other UART including the DEBUG .&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue 3: We are using B115200 on both at transmitter and receiver. When we try to set the B9600 on ttymxc0, after few sec Baudrate on ttymxc0 resetting to B115200?&lt;/P&gt;&lt;P&gt;ANSWWER.&amp;nbsp; How you are doing this change?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2019 18:54:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Configuring-LTC2873-with-iMX6-uart-for-Half-duplex/m-p/1025123#M151486</guid>
      <dc:creator>jamesbone</dc:creator>
      <dc:date>2019-12-10T18:54:40Z</dc:date>
    </item>
  </channel>
</rss>

