<?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: MDB/ICP in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/MDB-ICP/m-p/906372#M136726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alessandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One can try to add to compatible = "ptr,imx6ul-mdb"; strings as in&lt;/P&gt;&lt;P&gt;dts example linux/arch/arm/boot/dts/imx6ul.dtsi&lt;BR /&gt;&lt;A class="" data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fimx%2Flinux-imx%2Ftree%2Farch%2Farm%2Fboot%2Fdts%2Fimx6ul.dtsi%3Fh%3Dimx_4.1.15_2.0.0_ga" rel="nofollow" target="_blank"&gt;imx6ul.dtsi\dts\boot\arm\arch - linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="" data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fimx%2Flinux-imx%2Ftree%2Fdrivers%2Ftty%2Fserial%2Fimx.c%3Fh%3Dimx_4.1.15_2.0.0_ga" rel="nofollow" target="_blank"&gt;imx.c\serial\tty\drivers - linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 May 2019 15:53:58 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2019-05-09T15:53:58Z</dc:date>
    <item>
      <title>MDB/ICP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MDB-ICP/m-p/906371#M136725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; we have an iMX6ULL processor and we would like to support&amp;nbsp;Multi-Drop Bus / Internal Communication Protocol (MDB/ICP) of vending machines. (&amp;nbsp;&lt;A href="http://moodle.lyceestendhal.it/pluginfile.php/1104/mod_resource/content/1/logiciel%20MDB.pdf"&gt;http://moodle.lyceestendhal.it/pluginfile.php/1104/mod_resource/content/1/logiciel%20MDB.pdf&lt;/A&gt;&amp;nbsp;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the architecture of the network the iMX6ULL board is the &lt;STRONG&gt;master&lt;/STRONG&gt; of the BUS. The protocol is a multi-drop protocol with 9bit data frame using serial bus. Looking at the datasheet, we can enable 9bit data only in RS485 mode and, in this case, we have to choose the slave-address mode select mode SLAM. This functionality is not compatible with the master implementation of MDB/ICP protocol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, we would like to use the RS232 or RS485 only enabling the &lt;STRONG&gt;9bit data frame&lt;/STRONG&gt;&amp;nbsp;without any other functionality attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read the thread :&amp;nbsp;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/446737" rel="noopener noreferrer" style="color: #13679a; background-color: rgba(0, 0, 0, 0.05); border: 0px solid; text-decoration: none; font-size: 14px;" target="_blank"&gt;Receiving UART data in 9-bit RS-485 mode -- https://community.nxp.com/thread/446737&lt;/A&gt;&amp;nbsp;but the answer is not clear for me and I can't find further information in the manual that can help me to solve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A.Biasci.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2019 09:54:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MDB-ICP/m-p/906371#M136725</guid>
      <dc:creator>alessandrobiasc</dc:creator>
      <dc:date>2019-05-09T09:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: MDB/ICP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MDB-ICP/m-p/906372#M136726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alessandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One can try to add to compatible = "ptr,imx6ul-mdb"; strings as in&lt;/P&gt;&lt;P&gt;dts example linux/arch/arm/boot/dts/imx6ul.dtsi&lt;BR /&gt;&lt;A class="" data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fimx%2Flinux-imx%2Ftree%2Farch%2Farm%2Fboot%2Fdts%2Fimx6ul.dtsi%3Fh%3Dimx_4.1.15_2.0.0_ga" rel="nofollow" target="_blank"&gt;imx6ul.dtsi\dts\boot\arm\arch - linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="" data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fimx%2Flinux-imx%2Ftree%2Fdrivers%2Ftty%2Fserial%2Fimx.c%3Fh%3Dimx_4.1.15_2.0.0_ga" rel="nofollow" target="_blank"&gt;imx.c\serial\tty\drivers - linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2019 15:53:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MDB-ICP/m-p/906372#M136726</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2019-05-09T15:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: MDB/ICP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MDB-ICP/m-p/906373#M136727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Bio_TICFSL,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I followed the links you provide but nothing refers to "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;imx6ul-mdb" in the code shown (Kernel 4.1.15_2.0.0_ga). DTS and imx.c driver are not using this kind of compatible. Also look inside&amp;nbsp;linux-imx/4.9.11-r0 brach, the one used by our board, but I didn't find this kind of driver.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A.Biasci&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2019 19:20:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MDB-ICP/m-p/906373#M136727</guid>
      <dc:creator>alessandrobiasc</dc:creator>
      <dc:date>2019-05-09T19:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: MDB/ICP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MDB-ICP/m-p/906374#M136728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;looking iMX6ULL reference manual, we try to understand the whole picture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 55.7.3 Receive 9-bit RS-485 frames, is reported the following sentence:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;There are two slave address detect modes, normal detect mode and automatic detect&lt;BR /&gt;mode, and can be selected by SLAM (UMCR[1]).&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 55.7.3.1 RS-485 Slave Address Normal Detect Mode, is reported the following sentence:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;To enable Normal Detect mode, clear SLAM (UMCR[1] to 0). The receiver ignores all&lt;BR /&gt;data frames (9 th bit = 0) until an address frame is received (9 th bit = 1). At that time, the&lt;BR /&gt;slave address detected (SAD = USR1[3]) bit is asserted and the interrupt_uart interrupt is&lt;BR /&gt;generated (if SADEN = UMCR[3] = 1). The address byte and sebsequent bytes are all put&lt;BR /&gt;into RxFIFO along with their 9 th bit.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 55.15.17 UART RS-485 Mode Control Register (UARTx_UMCR), there is the&amp;nbsp;SADEN bit inside UMCR register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Description:&amp;nbsp;RS-485 Slave Address Detected Interrupt Enable.&lt;/P&gt;&lt;P&gt;SADEN&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; Disable RS-485 Slave Address Detected Interrupt&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; Enable RS-485 Slave Address Detected Interrupt&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;We don't want this kind of functionality due to incompatibility with the MDB/ICP protocol:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;The receiver ignores all&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;data frames (9 th bit = 0) until an address frame is received (9 th bit = 1).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;because a slave never sends its address on the bus.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;Question:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;disabling SADEN bit (set to 0), we also disable the Slave Address Detect Mode functionality, so the RS485 serial port will operate in "standard" mode (9 bit enabled) receiving all the characters received by the hardware ?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A.Biasci.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2019 06:21:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MDB-ICP/m-p/906374#M136728</guid>
      <dc:creator>alessandrobiasc</dc:creator>
      <dc:date>2019-05-10T06:21:45Z</dc:date>
    </item>
  </channel>
</rss>

