<?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: MKW01 Transmitting But Not Receiving in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/MKW01-Transmitting-But-Not-Receiving/m-p/507763#M1131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the info Thiago.&amp;nbsp; My problem had a different cause related to packet contents, and a timeout.&amp;nbsp; These comments are about the Connectivity_TestApp.c example in the MKW2x IEEE 802.15.4 examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because I was testing manually and my mouse clicking was on the order of seconds, I had to first remove the 80ms timeout.&lt;/P&gt;&lt;P&gt;//TMR_StartSingleShotTimer (RangeTestTmr, 80, RangeTest_Timer_CallBack, NULL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, the packets I was trying to sniff weren't MAC 802.15.4 compliant, so I had to enable promiscuous mode prior to RXEnable:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PhyPlmeSetPIBRequest(gPhyPibPromiscuousMode_c, (uint64_t)1, 0, 0);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(void)MLMERXEnableRequest(gAppRxPacket, 0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, since packets are further filtered in PD_SMAC_SapHandler(), I disabled the SMACPacketCheck() function call:&lt;/P&gt;&lt;P&gt;&amp;nbsp; case gPdDataInd_c:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //if(FALSE == SMACPacketCheck(pDataMsg))&amp;nbsp; //software packet filtering, to avoid parsing errors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that commenting out SMACPacketCheck() is bad if you are expecting 802.15.4 packets.&amp;nbsp; In my situation I knew the packet would not contain a typical MAC header.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Aug 2016 19:58:21 GMT</pubDate>
    <dc:creator>calebrust</dc:creator>
    <dc:date>2016-08-04T19:58:21Z</dc:date>
    <item>
      <title>MKW01 Transmitting But Not Receiving</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/MKW01-Transmitting-But-Not-Receiving/m-p/507758#M1126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm testing two mkw01 boards, and trying through Radio Utility send the default buffer to another board. I've made the test in Putty to verify if it's sending, and everything went ok.&lt;/P&gt;&lt;P&gt;But, when I put the another board to receive, the rxStatus appears as "rxProcessingReceptionStatus_c". I think I had initialized SMAC correctly. I tested and saw that MCPSDataIndication it's not called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The transmitter is set to send for broadcast and both in Channel 11. Do I have to set some address?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 22:28:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/MKW01-Transmitting-But-Not-Receiving/m-p/507758#M1126</guid>
      <dc:creator>thiagolehrcompa</dc:creator>
      <dc:date>2016-02-12T22:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: MKW01 Transmitting But Not Receiving</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/MKW01-Transmitting-But-Not-Receiving/m-p/507759#M1127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Thiago,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please confirm what is the SMAC version that you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you are receiving the &lt;STRONG&gt;rxProcessingReceptionStatus_c &lt;/STRONG&gt;flag, it seems that the transmission is being started (i.e. you are receiving the preamble) but you are not receiving all the packet. Maybe the sync word is incorrect, could you please confirm that it is correct (it is set in the &lt;STRONG&gt;SetDefaultValues()&lt;/STRONG&gt; function)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming you are using the version 3.0.2 of SMAC (if you are using another version, the function's names change but there shouldn't be a big difference), the way to debug this issue is to put a breakpoint in the function &lt;STRONG&gt;PhyRxHandleSyncAddresEvent &lt;/STRONG&gt;(file &lt;STRONG&gt;PhyISR.c&lt;/STRONG&gt;). This function is called after receive the preamble. In this function you will find a line which states the next function to be executed (when the next part of the packet is received) &lt;STRONG&gt;[gpfPendingRxEvent = PhyRxHandlePHREvent;]&lt;/STRONG&gt;, in this case it is the &lt;STRONG&gt;PhyRxHandlePHREvent&lt;/STRONG&gt; which is called after receive the sync word. Put a breakpoint in this function, if this function is not executed it would mean that the sync word is not being successfully received. Then, as you can see in the code, the next function to be called will be &lt;STRONG&gt;PhyRxHandleFifoLevelEvent&lt;/STRONG&gt;, put another breakpoint here and continue debugging this way until the function &lt;STRONG&gt;PhyRxHandlePayloadReadyEvent &lt;/STRONG&gt;is called to ensure that the application flow is correct. When this last function is called, the function &lt;STRONG&gt;Radio_Phy_PdDataConfirm&lt;/STRONG&gt;&lt;STRONG&gt; &lt;/STRONG&gt;is executed (where the event &lt;STRONG&gt;gRadio_PdDataConfirm_c&lt;/STRONG&gt; is set which results in update the status to &lt;STRONG&gt;gPhySuccess_c&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For reference, I attach this figure (taken from the MKW01xxRM.pdf) where you can see all the parts of the packet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_11.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53599iE2599768F549FBA4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_11.png" alt="pastedImage_11.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way to debug your system will let you know where is the problem. I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 21:12:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/MKW01-Transmitting-But-Not-Receiving/m-p/507759#M1127</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2016-02-18T21:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: MKW01 Transmitting But Not Receiving</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/MKW01-Transmitting-But-Not-Receiving/m-p/507760#M1128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Earl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for the answer, and sorry for the late to update my situation. I've followed your steps, and learned a little bit more about how to debug correctly with IAR. Yes, I'm using SMAC 3.0.2 and actually my problem was in how to initiate SMAC correctly. After some research, I realized that I wasn't doing it right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll take a good look in MKW01xxRM.pdf, to see how should I configure the packets to be sent and received.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your time,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thiago&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 17:44:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/MKW01-Transmitting-But-Not-Receiving/m-p/507760#M1128</guid>
      <dc:creator>thiagolehrcompa</dc:creator>
      <dc:date>2016-02-25T17:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: MKW01 Transmitting But Not Receiving</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/MKW01-Transmitting-But-Not-Receiving/m-p/507761#M1129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;my problem was in how to initiate SMAC correctly&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I think I'm having a similar problem.&amp;nbsp; Do you remember what you changed or added?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 20:03:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/MKW01-Transmitting-But-Not-Receiving/m-p/507761#M1129</guid>
      <dc:creator>calebrust</dc:creator>
      <dc:date>2016-07-26T20:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: MKW01 Transmitting But Not Receiving</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/MKW01-Transmitting-But-Not-Receiving/m-p/507762#M1130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello calebrust,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've put these lines in order to work properly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14696410341768050 jive_text_macro" data-renderedposition="112_8_1192_160" jivemacro_uid="_14696410341768050" modifiedtitle="true"&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DisableInterrupts();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Platform_Init();&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; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; InitGlobalVariables();// Initialization of MCU and transceiver&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LED_TurnOffAllLeds();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SetDefaultValues();//Set Radio to default values&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EnableInterrupts();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (void)MLMESetChannelRequest(canal); &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (void)MLMERXDisableRequest();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gpSmacRxPacket-&amp;gt;u8MaxDataLength = gMaxSmacSDULength_c;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gpSmacRxPacket-&amp;gt;rxStatus = rxSuccessStatus_c;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I've put the functions that do the communication, according to the PDF.&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thiago&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 17:41:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/MKW01-Transmitting-But-Not-Receiving/m-p/507762#M1130</guid>
      <dc:creator>thiagolehrcompa</dc:creator>
      <dc:date>2016-07-27T17:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: MKW01 Transmitting But Not Receiving</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/MKW01-Transmitting-But-Not-Receiving/m-p/507763#M1131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the info Thiago.&amp;nbsp; My problem had a different cause related to packet contents, and a timeout.&amp;nbsp; These comments are about the Connectivity_TestApp.c example in the MKW2x IEEE 802.15.4 examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because I was testing manually and my mouse clicking was on the order of seconds, I had to first remove the 80ms timeout.&lt;/P&gt;&lt;P&gt;//TMR_StartSingleShotTimer (RangeTestTmr, 80, RangeTest_Timer_CallBack, NULL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, the packets I was trying to sniff weren't MAC 802.15.4 compliant, so I had to enable promiscuous mode prior to RXEnable:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PhyPlmeSetPIBRequest(gPhyPibPromiscuousMode_c, (uint64_t)1, 0, 0);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(void)MLMERXEnableRequest(gAppRxPacket, 0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, since packets are further filtered in PD_SMAC_SapHandler(), I disabled the SMACPacketCheck() function call:&lt;/P&gt;&lt;P&gt;&amp;nbsp; case gPdDataInd_c:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //if(FALSE == SMACPacketCheck(pDataMsg))&amp;nbsp; //software packet filtering, to avoid parsing errors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that commenting out SMACPacketCheck() is bad if you are expecting 802.15.4 packets.&amp;nbsp; In my situation I knew the packet would not contain a typical MAC header.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2016 19:58:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/MKW01-Transmitting-But-Not-Receiving/m-p/507763#M1131</guid>
      <dc:creator>calebrust</dc:creator>
      <dc:date>2016-08-04T19:58:21Z</dc:date>
    </item>
  </channel>
</rss>

