<?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>LPCXpresso IDEのトピックRe: CAN Acceptance filtering</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-Acceptance-filtering/m-p/556249#M14036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Tue Dec 06 19:47:48 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, that's incredible complicated. From a working sample without AF you have to modify 4 lines to get a working AF sample :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
uint16_t posn;
//add ID601
if(CAN_LoadExplicitEntry(LPC_CAN1, 0x601, STD_ID_FORMAT, &amp;amp;posn)== CAN_OK)
{
&amp;nbsp; printf("Load Entry\n");&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //show message
}
//add group 0x400-0x4FF
if(CAN_LoadGroupEntry(LPC_CAN1, 0x400, 0x4FF, STD_ID_FORMAT, &amp;amp;posn)== CAN_OK)
{
 printf("Load Group\n");&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //show message
}

CAN_SetAFMode(LPC_CANAF,CAN_Normal);
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:46:01 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:46:01Z</dc:date>
    <item>
      <title>CAN Acceptance filtering</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-Acceptance-filtering/m-p/556247#M14034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tridentsx on Tue Dec 06 17:07:11 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to setup an acceptance filter to accept only 29 bit can ID's either broad casted or with destination the same as my dynamic source address.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have read the manual and looked at examples trying to understand how to achieve this. Without any luck. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What is FULL Can ? after reading the manual section I need a full CAN of beer ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems to me only explicit ID's or ranges of ID's are possible to filter there is no mask function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The dynamic source address are bits 0 - 7 of the 29 bit CAN ID how can I put a filter range to accept messages from any source but only accept messages with destination address equal to my own dynamically assigned address which is in bit 8 - 15 position of the 29 bit CAN ID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any pointers would be greatly appreciated, I have a feeling I have misunderstood some fundamentals of this filtering.:confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards /// Carl&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:45:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-Acceptance-filtering/m-p/556247#M14034</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Acceptance filtering</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-Acceptance-filtering/m-p/556248#M14035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tridentsx on Tue Dec 06 19:36:31 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;So after reading the manual and testing some more I have come to the conclusion that the CAN interface in PLC17xx is useless it can't filter ISO based 29 bit addresses, when will the LPC18xx lpc xpresso board be released, I saw in the manual that it has bit masks for the acceptance filters:mad:.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am so ticked off what a waste of time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: tridentsx&lt;/STRONG&gt;&lt;BR /&gt;I want to setup an acceptance filter to accept only 29 bit can id's either broadcast or with destination the same as my source address.&lt;BR /&gt; &lt;BR /&gt;I have read the manual and looked at examplestrying to understand how to acheive this. Without any luck. &lt;BR /&gt; &lt;BR /&gt;What is FULL Can ? after reading the manual section I need a full CAN of beer ?&lt;BR /&gt; &lt;BR /&gt;It seems to me only explicit ID's or ranges of ID's are possible to filter.&lt;BR /&gt; &lt;BR /&gt;There is no mask, the source is the 8 LSB of the ID how can I put a range to accept all messages from any source but only accpet messages with destination address equal to my own address which is in the 8 - 15 bit position of the id.&lt;BR /&gt; &lt;BR /&gt;Any pointers would be greatly appriciated, I have a feeling I have missunderstood some fundametals of this filtering.:confused:&lt;BR /&gt; &lt;BR /&gt;Regards /// CF&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:46:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-Acceptance-filtering/m-p/556248#M14035</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Acceptance filtering</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-Acceptance-filtering/m-p/556249#M14036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Tue Dec 06 19:47:48 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, that's incredible complicated. From a working sample without AF you have to modify 4 lines to get a working AF sample :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
uint16_t posn;
//add ID601
if(CAN_LoadExplicitEntry(LPC_CAN1, 0x601, STD_ID_FORMAT, &amp;amp;posn)== CAN_OK)
{
&amp;nbsp; printf("Load Entry\n");&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //show message
}
//add group 0x400-0x4FF
if(CAN_LoadGroupEntry(LPC_CAN1, 0x400, 0x4FF, STD_ID_FORMAT, &amp;amp;posn)== CAN_OK)
{
 printf("Load Group\n");&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //show message
}

CAN_SetAFMode(LPC_CANAF,CAN_Normal);
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:46:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-Acceptance-filtering/m-p/556249#M14036</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Acceptance filtering</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-Acceptance-filtering/m-p/556250#M14037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tridentsx on Tue Dec 06 20:04:31 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Well that is only for 11 bit CAN.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With a higher layer protocol such as ISOBUS, J1939, nmea200 etc ... usingy 29 bit CAN ID's where bits 0 - 7 is the source address, and&amp;nbsp; bits 8 - 15 is the destination address then it gets complicated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to add a filter to accept one PGN from all 256 sources I would need one explicit range filter, and that would only work if I assumed the priority to be constant. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I wanted to accept the same PGN broad casted I would need another explicit filter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In j1939 there are at least 4 network management messages&amp;nbsp; +&amp;nbsp; hundreds of PGN's without bit masking function in the acceptance filter (as possible in LPC18) filtering in h/w is not possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have started building a s/w implementation instead but that is just a stop gap measure until I can lift my application to LPC1850.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards /// Carl&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:46:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-Acceptance-filtering/m-p/556250#M14037</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Acceptance filtering</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-Acceptance-filtering/m-p/556251#M14038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mostafanfs on Sun Jan 10 22:16:20 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: tridentsx&lt;/STRONG&gt;&lt;BR /&gt;So after reading the manual and testing some more I have come to the conclusion that the CAN interface in PLC17xx is useless it can't filter ISO based 29 bit addresses, when will the LPC18xx lpc xpresso board be released, I saw in the manual that it has bit masks for the acceptance filters:mad:.&lt;BR /&gt; &lt;BR /&gt;I am so ticked off what a waste of time. &lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know this is probably too late but I have the same problem. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to implement FMS-Standard V3 and I have a LPC1778 board. From the documents it looks like FMS-Standard V3 is based on J1939. So does this mean I can not implement the standard on LPC1778 ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If that is the case then what is the problem? LPC1778 supports 29-bit message identifier according to datasheet. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:46:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/CAN-Acceptance-filtering/m-p/556251#M14038</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:46:02Z</dc:date>
    </item>
  </channel>
</rss>

