<?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>Wireless MCUのトピックRe: JN5168 - Nwk Address Request</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/JN5168-Nwk-Address-Request/m-p/622177#M1965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jia Na Lai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you asking&amp;nbsp;Nwk Address Request for all the nodes constantly?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you using this address, and why are you requesting many times?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember that you memory is limited and you will need free the memory that you won't need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Aug 2017 21:27:42 GMT</pubDate>
    <dc:creator>mario_castaneda</dc:creator>
    <dc:date>2017-08-14T21:27:42Z</dc:date>
    <item>
      <title>JN5168 - Nwk Address Request</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5168-Nwk-Address-Request/m-p/622176#M1964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used the following function to request the short address but&amp;nbsp;i cannot use the function too frequent at the same time and will get the error (stack dump). Meanings i have&amp;nbsp;called the &lt;STRONG&gt;ZPS_eAplZdpNwkAddrRequest()&amp;nbsp;&lt;/STRONG&gt;frequently within a few seconds then my device will get an error and after that will reboot. Currently i have connected up to 60 nodes, 10&amp;nbsp;routers and 50 end devices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ZPS_teStatus ZPS_eAplZdpNwkAddrRequest(&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;PDUM_thAPduInstance hAPduInst,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ZPS_tuAddress uDstAddr,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;bool bExtAddr,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;uint8 *pu8SeqNumber,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ZPS_tsAplZdpNwkAddrReq *psZdpNwkAddrReq);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Error.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16078i299DB4BFC158163F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error.png" alt="Error.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example of nwk address request codes:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request=TRUE;&lt;BR /&gt; memcpy(&amp;amp;MacAddress,&amp;amp;UARTRX_buffer[1],sizeof(uint64));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b_hAPduInst = PDUM_hAPduAllocateAPduInstance(apduMyData);&lt;BR /&gt; DBG_vPrintf(TRUE,"\nMAC = %016llx",MacAddress);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DstAddr.u16Addr = 0xFFFF;&lt;BR /&gt; psZdpNwkAddrReq.u64IeeeAddr=MacAddress;&lt;BR /&gt; psZdpNwkAddrReq.u8RequestType=0x00;&lt;BR /&gt; psZdpNwkAddrReq.u8StartIndex=0;&lt;BR /&gt; ZPS_eAplZdpNwkAddrRequest(&lt;BR /&gt; b_hAPduInst,&lt;BR /&gt; DstAddr,&lt;BR /&gt; FALSE,&lt;BR /&gt; &amp;amp;u8Seq,&lt;BR /&gt; &amp;amp;psZdpNwkAddrReq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example of nwk address response codes:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case ZPS_EVENT_APS_DATA_INDICATION:&lt;BR /&gt; {&lt;BR /&gt; DBG_vPrintf(TRACE_APP, "APP: vCheckStackEvent: ZPS_EVENT_AF_DATA_INDICATION\n");&lt;/P&gt;&lt;P&gt;/* Process incoming cluster messages ... */&lt;BR /&gt; DBG_vPrintf(TRACE_APP, " Profile :%x\r\n",sStackEvent.uEvent.sApsDataIndEvent.u16ProfileId);&lt;BR /&gt; DBG_vPrintf(TRACE_APP, " Cluster :%x\r\n",sStackEvent.uEvent.sApsDataIndEvent.u16ClusterId);&lt;BR /&gt; DBG_vPrintf(TRACE_APP, " EndPoint:%x\r\n",sStackEvent.uEvent.sApsDataIndEvent.u8DstEndpoint);&lt;BR /&gt; DBG_vPrintf(TRACE_APP, " ShortAddr:%x\r\n",sStackEvent.uEvent.sApsDataIndEvent.uDstAddress.u16Addr);&lt;BR /&gt; if(Request==TRUE)&lt;BR /&gt; {&lt;BR /&gt; ZPS_tsAfZdpEvent sAfZdpEvent;&lt;BR /&gt; zps_bAplZdpUnpackResponse(&amp;amp;sStackEvent,&amp;amp;sAfZdpEvent);&lt;BR /&gt; DBG_vPrintf(TRUE,"\nAddr = %x,",sAfZdpEvent.uZdpData.sNwkAddrRsp.u16NwkAddrRemoteDev);&lt;BR /&gt; Request=FALSE;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; break;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 03:57:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5168-Nwk-Address-Request/m-p/622176#M1964</guid>
      <dc:creator>jianalai</dc:creator>
      <dc:date>2017-03-27T03:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: JN5168 - Nwk Address Request</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/JN5168-Nwk-Address-Request/m-p/622177#M1965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jia Na Lai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you asking&amp;nbsp;Nwk Address Request for all the nodes constantly?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you using this address, and why are you requesting many times?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember that you memory is limited and you will need free the memory that you won't need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2017 21:27:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/JN5168-Nwk-Address-Request/m-p/622177#M1965</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2017-08-14T21:27:42Z</dc:date>
    </item>
  </channel>
</rss>

