<?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>LPC MicrocontrollersのトピックWake On Lan by wake up frame</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Wake-On-Lan-by-wake-up-frame/m-p/553471#M14566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Krishnakumar on Thu Sep 18 02:46:36 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm configuring WOL feature on lpc4330. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wake on lan by magic packet is working fine. But I have problem with wake up frame. I want to know how the particular pattern is decided by the remote wakeup frame filter register and how the crc_16 is calculated?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found that there are different kinds of CRC_16 like IBM, CCITT, DECT, DNP. The manual is also not provided with the information regarding the which CRC_16 it's going to be calculated and also there is no reference example of wake up frame like it's given for magic packet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Krishnakumar K.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:37:48 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:37:48Z</dc:date>
    <item>
      <title>Wake On Lan by wake up frame</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Wake-On-Lan-by-wake-up-frame/m-p/553471#M14566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Krishnakumar on Thu Sep 18 02:46:36 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm configuring WOL feature on lpc4330. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wake on lan by magic packet is working fine. But I have problem with wake up frame. I want to know how the particular pattern is decided by the remote wakeup frame filter register and how the crc_16 is calculated?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found that there are different kinds of CRC_16 like IBM, CCITT, DECT, DNP. The manual is also not provided with the information regarding the which CRC_16 it's going to be calculated and also there is no reference example of wake up frame like it's given for magic packet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks and regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Krishnakumar K.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:37:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Wake-On-Lan-by-wake-up-frame/m-p/553471#M14566</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Wake On Lan by wake up frame</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Wake-On-Lan-by-wake-up-frame/m-p/553472#M14567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jh.hoegerle@gmx.de on Mon Dec 15 14:34:34 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello Krishnakumar,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using LPC1768. I think the ETH-PHY is very similar. You have just to set RxFilterCtrl, e.g. you have to enable: RxFilterEnWoL and AcceptBroadcastEn or AcceptPerfectEn (and if required AcceptUnicastEn, AcceptMulticastEn). This is working on my LPC very well. But the more strict magic pattern filter is not working! &lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Do you have an working example? I am very interested in!&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For CRC calculation (32 bit) there is a pseudo code example in NXP specification UM10360 in chapter "10.19 CRC calculation" (Generation the FCS at the end of the Ethernet frame.).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jürgen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:37:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Wake-On-Lan-by-wake-up-frame/m-p/553472#M14567</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Wake On Lan by wake up frame</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Wake-On-Lan-by-wake-up-frame/m-p/553473#M14568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gts87 on Sun Apr 19 07:59:28 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello Jürgen,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm currently working with a LPC1768. I want to use the wake-on-lan functionality with a magic packet, but until now I have some problems and I hope you could maybe help me out &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Waking up the device works fine as long as I use only the &lt;/SPAN&gt;&lt;STRONG&gt;RxFilterEnWoL&lt;/STRONG&gt;&lt;SPAN&gt;. But as soon as I activate the &lt;/SPAN&gt;&lt;STRONG&gt;MagicPacketEnWoL&lt;/STRONG&gt;&lt;SPAN&gt; bit in the &lt;/SPAN&gt;&lt;STRONG&gt;RxFilterCtrl&lt;/STRONG&gt;&lt;SPAN&gt; register the microcontroller keeps sleeping...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's my code:&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;


extern "C" void MyEthernetHandler(void) {
printf("...:::Ethernet Interrupt Handler!:::...\r\n");
}


//Interrupt Enable Register
int *IntEnable = (int*) 0x50000FE4;
#define WakeupIntEn 13&amp;nbsp; 

//Receive Filter Control Register
int *RxFilterCtrl = (int*) 0x50000200;
#define RxFilterEnWoL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
#define MagicPacketEnWoL&amp;nbsp;&amp;nbsp;&amp;nbsp; 12

int main() {

NVIC_EnableIRQ(ENET_IRQn);
NVIC_SetVector(ENET_IRQn, (uint32_t) MyEthernetHandler);

*IntEnable |= (1 &amp;lt;&amp;lt; WakeupIntEn);
*RxFilterCtrl = 0;
*RxFilterCtrl |= (1 &amp;lt;&amp;lt; MagicPacketEnWoL); //let only a Magic Packet wakeup the device
*RxFilterCtrl |= (1 &amp;lt;&amp;lt; AcceptPerfectEn);

__WFI();

...
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you and best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tarek&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:37:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Wake-On-Lan-by-wake-up-frame/m-p/553473#M14568</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:37:50Z</dc:date>
    </item>
  </channel>
</rss>

