<?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: 802.15.4 MAC: Always getting errorInvalidParameter when sending a gMlmeDisassociateReq_c in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/802-15-4-MAC-Always-getting-errorInvalidParameter-when-sending-a/m-p/206189#M17373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi MarcB,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The problem is that you are not providing the correct extended address in the disassociate request.&lt;/DIV&gt;&lt;DIV&gt;You provide your own address, where you must provice the extended address of the your parent.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;the parent address is found in the gMPibCoordExtendedAddress_c PIB.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;BR,&lt;/DIV&gt;&lt;DIV&gt;Mads Westergreen&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Nov 2008 21:20:06 GMT</pubDate>
    <dc:creator>Mads</dc:creator>
    <dc:date>2008-11-29T21:20:06Z</dc:date>
    <item>
      <title>802.15.4 MAC: Always getting errorInvalidParameter when sending a gMlmeDisassociateReq_c</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/802-15-4-MAC-Always-getting-errorInvalidParameter-when-sending-a/m-p/206188#M17372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;I'm trying to send a gMlmeDisassociateReq_c message from a device to a coordinator. Find below the function's code. This was used in a previous MAC library and was working. Now I've ported the code to the latest 802.15.4 codebase and the MSG_Send(NWK_MLME, pMsg) call always returns errorInvalidParameter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;static uint8_t sendDisAssociateRequest(void) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; mlmeMessage_t *pMsg;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; mlmeDisassociateReq_t *pAssocReq;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; /* Allocate a message for the MLME message. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pMsg = MSG_AllocType(mlmeMessage_t);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if (pMsg == NULL) // Allocation of a message buffer failed. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return errorAllocFailed;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; /* This is a MLME-DISASSOCIATE.req command. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pMsg-&amp;gt;msgType = gMlmeDisassociateReq_c;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; /* Create the disassociate request message data. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pAssocReq = &amp;amp;pMsg-&amp;gt;msgData.disassociateReq;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; /* Use the coordinator info we got from the Active Scan. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; FLib_MemCpy(pAssocReq-&amp;gt;deviceAddress, aExtendedAddress, 8);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pAssocReq-&amp;gt;disassociateReason = 0x02; // device wishes to leave the PAN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pAssocReq-&amp;gt;securityEnable = FALSE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; /* Send the Associate Request to the MLME. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if (MSG_Send(NWK_MLME, pMsg) == gSuccess_c)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return errorNoError;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return errorInvalidParameter;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 03:56:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/802-15-4-MAC-Always-getting-errorInvalidParameter-when-sending-a/m-p/206188#M17372</guid>
      <dc:creator>MarcB</dc:creator>
      <dc:date>2008-11-29T03:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: 802.15.4 MAC: Always getting errorInvalidParameter when sending a gMlmeDisassociateReq_c</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/802-15-4-MAC-Always-getting-errorInvalidParameter-when-sending-a/m-p/206189#M17373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi MarcB,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The problem is that you are not providing the correct extended address in the disassociate request.&lt;/DIV&gt;&lt;DIV&gt;You provide your own address, where you must provice the extended address of the your parent.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;the parent address is found in the gMPibCoordExtendedAddress_c PIB.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;BR,&lt;/DIV&gt;&lt;DIV&gt;Mads Westergreen&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 21:20:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/802-15-4-MAC-Always-getting-errorInvalidParameter-when-sending-a/m-p/206189#M17373</guid>
      <dc:creator>Mads</dc:creator>
      <dc:date>2008-11-29T21:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: 802.15.4 MAC: Always getting errorInvalidParameter when sending a gMlmeDisassociateReq_c</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/802-15-4-MAC-Always-getting-errorInvalidParameter-when-sending-a/m-p/206190#M17374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Mads,&lt;BR /&gt;This indeed did solve my problem, thanks! I guess the older version of the MAC lib did not check for this.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2008 22:46:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/802-15-4-MAC-Always-getting-errorInvalidParameter-when-sending-a/m-p/206190#M17374</guid>
      <dc:creator>MarcB</dc:creator>
      <dc:date>2008-12-01T22:46:23Z</dc:date>
    </item>
  </channel>
</rss>

