<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックFlexcan - Receiving RTR requests</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Flexcan-Receiving-RTR-requests/m-p/279356#M11892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way using MCF5235 Flexcan that I can read all the CAN messages on the CAN bus including remote transmission requests?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I setup Rx buffer 15 mask to all don't care I receive all the messages except RTR messages.&lt;/P&gt;&lt;P&gt;Page 21-29 of the MCF5235 RM says that "A received remote frame is not stored in a receive buffer. It is only used to trigger automatic transmission of a frame in response"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I don't want to react to the RTR I merely what to monitor *all* the CAN bus traffic.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone any ideas how I might do that?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;P&gt;Ahlan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Feb 2014 17:13:58 GMT</pubDate>
    <dc:creator>Ahlan</dc:creator>
    <dc:date>2014-02-05T17:13:58Z</dc:date>
    <item>
      <title>Flexcan - Receiving RTR requests</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Flexcan-Receiving-RTR-requests/m-p/279356#M11892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way using MCF5235 Flexcan that I can read all the CAN messages on the CAN bus including remote transmission requests?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I setup Rx buffer 15 mask to all don't care I receive all the messages except RTR messages.&lt;/P&gt;&lt;P&gt;Page 21-29 of the MCF5235 RM says that "A received remote frame is not stored in a receive buffer. It is only used to trigger automatic transmission of a frame in response"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I don't want to react to the RTR I merely what to monitor *all* the CAN bus traffic.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone any ideas how I might do that?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;P&gt;Ahlan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 17:13:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Flexcan-Receiving-RTR-requests/m-p/279356#M11892</guid>
      <dc:creator>Ahlan</dc:creator>
      <dc:date>2014-02-05T17:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Flexcan - Receiving RTR requests</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Flexcan-Receiving-RTR-requests/m-p/279357#M11893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried "Listen Only Mode"? That might do it, but note it won't ACK any messages so you'd need at least two other devices on the CAN bus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 05:36:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Flexcan-Receiving-RTR-requests/m-p/279357#M11893</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2014-02-06T05:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Flexcan - Receiving RTR requests</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Flexcan-Receiving-RTR-requests/m-p/279358#M11894</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 thought about that but how would I know that the message was an RTR?&lt;/P&gt;&lt;P&gt;There doesn't seem to be anything that indicates that a message received into a buffer was a RTR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ahlan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 10:05:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Flexcan-Receiving-RTR-requests/m-p/279358#M11894</guid>
      <dc:creator>Ahlan</dc:creator>
      <dc:date>2014-02-06T10:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Flexcan - Receiving RTR requests</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Flexcan-Receiving-RTR-requests/m-p/279359#M11895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right. It looks like that controller can't be used as a "CAN Monitor". If you need to do that you'll have to buy a real one or use a different controller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can't even receive messages that aren't ACKed by other devices, so it couldn't see a single device trying to transmit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "Listen Mode" is very poorly documented. The chip may be more capable than the User Manual says it is. I'd try to reverse-engineer it and see if it can receive these messages at all, and if it leaves a "hint" anywhere. There are some Reserved bits in the message buffer, and it might set the RTR bit on receive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your system should probably allocate message IDs so it only ever sends the RTR bits on unique IDs anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should also search this forum for "RTR" if you haven't done so already. I've just done that and found a previous post from you in August where you had problems with "loose RTR frames" (you were losing them :-). How did that end up? Did you submit a Technical Request?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/355862#355862" title="https://community.freescale.com/message/355862#355862"&gt;https://community.freescale.com/message/355862#355862&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 01:13:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Flexcan-Receiving-RTR-requests/m-p/279359#M11895</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2014-02-07T01:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Flexcan - Receiving RTR requests</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Flexcan-Receiving-RTR-requests/m-p/279360#M11896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have confirmed what we believed - It's nice to have a second opinion. ;-)&lt;/P&gt;&lt;P&gt;We had hoped to use the FlexCan as a CAN monitor but we will probably now use a different CAN controller and processor.&lt;/P&gt;&lt;P&gt;Probably FM3 - although we have absolutely no experience of this - so that should be fun ;-)&lt;/P&gt;&lt;P&gt;The technical request went nowhere.&lt;/P&gt;&lt;P&gt;So we simply modified the protocol to retry if the RTR did not solicit the expected response.&lt;/P&gt;&lt;P&gt;Not ideal but an acceptable solution for our application.&lt;/P&gt;&lt;P&gt;Ahlan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 14:03:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Flexcan-Receiving-RTR-requests/m-p/279360#M11896</guid>
      <dc:creator>Ahlan</dc:creator>
      <dc:date>2014-02-10T14:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Flexcan - Receiving RTR requests</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Flexcan-Receiving-RTR-requests/m-p/279361#M11897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Freescale makes two different types of CAN controllers, generally called FlexCAN and MSCAN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MSCAN part is available in some of the other Freescale parts. If you want to stick with ColdFire, you can use the MCF51JM128.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Checking the Reference Manual, the MSCAN part looks like it does store the RTR bit in the receive frame, so you can use it to monitor these packets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following sentence indicates it does NOT support "RTR response in hardware":&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Table 11-28. IDR3 Register Field Descriptions — Extended&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Remote Transmission Request — This flag reflects the status of the remote transmission request bit in the CAN&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;frame. In the case of a receive buffer, it indicates the status of the received frame and supports the transmission&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;of an answering frame in software.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That does mean it would solve your "missing RTR response" problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could add a CAN controller to an SPI port. I've developed a product based on the MCF5329 with three external SPI-connected CAN controllers, (total of 4 CAN ports), but with that experience I'd strongly recommend against doing it that way. Programming CAN parts is hard enough without putting them on the end of an SPI bus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 23:33:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Flexcan-Receiving-RTR-requests/m-p/279361#M11897</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2014-02-10T23:33:06Z</dc:date>
    </item>
  </channel>
</rss>

