<?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>Model-Based Design Toolbox (MBDT)のトピックRe: How work the &amp;quot;Message Buffer&amp;quot; and the &amp;quot;Message ID Mask?</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-work-the-quot-Message-Buffer-quot-and-the-quot-Message-ID/m-p/951725#M3626</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some things that are worth mentioning is that in the matching process, the scan begins from the first MB (lowest number) -- so if you are using multiple MBs, you might want to keep this in mind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might also want to take a look at the RX FIFO - you can read the help we provide in Simulink to get further information about how to enable it and how to filtering table works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jul 2019 13:33:32 GMT</pubDate>
    <dc:creator>constantinrazva</dc:creator>
    <dc:date>2019-07-23T13:33:32Z</dc:date>
    <item>
      <title>How work the "Message Buffer" and the "Message ID Mask?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-work-the-quot-Message-Buffer-quot-and-the-quot-Message-ID/m-p/951723#M3624</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 work with the S32K144 EVB and the MBD toolbox version 4.0.0.&lt;/P&gt;&lt;P&gt;There is the FCAN Receive block and the options "Message Buffer" and "Message ID Mask.&lt;/P&gt;&lt;P&gt;Does somebody know, how the Message Buffer and the Message ID Mask&amp;nbsp;work?&lt;/P&gt;&lt;P&gt;What is the purpose of the Message Buffer and how I have to use it?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2019 11:31:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-work-the-quot-Message-Buffer-quot-and-the-quot-Message-ID/m-p/951723#M3624</guid>
      <dc:creator>fra_rio</dc:creator>
      <dc:date>2019-07-22T11:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: How work the "Message Buffer" and the "Message ID Mask?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-work-the-quot-Message-Buffer-quot-and-the-quot-Message-ID/m-p/951724#M3625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/fra_rio"&gt;fra_rio&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message buffers are exactly what the name says: a buffer in which you can store messages. You have a certain number of such buffers (the ones available on the list). You can choose one in which to store that message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the message ID mask, this is used for filtering a class of messages. So you can have one message buffer receive only 1 class of messages from your network. Let's get into a few details about how the matching is done:&lt;/P&gt;&lt;P&gt;When a CAN frame is received, all message buffers will be scanned (looking for Rx MB that have the ID equal to the received one, or equal to the received one after applying the mask). Lets look at an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we only want to accept frames with ID = 0x01, we can set the ID = &lt;STRONG&gt;0x01&lt;/STRONG&gt; and the mask to &lt;STRONG&gt;0x1FFFFFF&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: the ID has length is either 11 bits (with standard message, introduce from older CAN standards - I think CAN1.2), either 29 bits (extended ID, introduced from CAN2.0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example above we're using extended ID (29bits), having the mask all &lt;STRONG&gt;1&lt;/STRONG&gt;s (29 bits), thus the value&amp;nbsp;&lt;STRONG&gt;0x1&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;FFFFFF&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So when a frame arrives, its ID must match every bit from &lt;STRONG&gt;0x01&lt;/STRONG&gt; -- so with these settings, we're only accepting messages from 0x01.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Lets take a look at another example. Let's say we want to accept IDs from &lt;STRONG&gt;0x10&lt;/STRONG&gt; through &lt;STRONG&gt;0x1F&lt;/STRONG&gt;. We can set the ID to &lt;STRONG&gt;0x10&lt;/STRONG&gt;, and set the mask to&amp;nbsp;&lt;STRONG&gt;0x1&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;FFFFF0&lt;/STRONG&gt;. With this mask we're basically saying that the last &lt;STRONG&gt;4 bits&lt;/STRONG&gt; can be anything, but the first 25 must match the ID.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; for matching, the following must be true:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN&gt;recv_frame_id &amp;amp; mask == ID (set in block)&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 13:25:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-work-the-quot-Message-Buffer-quot-and-the-quot-Message-ID/m-p/951724#M3625</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2019-07-23T13:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: How work the "Message Buffer" and the "Message ID Mask?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-work-the-quot-Message-Buffer-quot-and-the-quot-Message-ID/m-p/951725#M3626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some things that are worth mentioning is that in the matching process, the scan begins from the first MB (lowest number) -- so if you are using multiple MBs, you might want to keep this in mind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might also want to take a look at the RX FIFO - you can read the help we provide in Simulink to get further information about how to enable it and how to filtering table works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 13:33:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-work-the-quot-Message-Buffer-quot-and-the-quot-Message-ID/m-p/951725#M3626</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2019-07-23T13:33:32Z</dc:date>
    </item>
  </channel>
</rss>

