<?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>8-bit MicrocontrollersのトピックRe: [Beestack and MC1321x] gZbAddrMode16Bit_c addressing</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Beestack-and-MC1321x-gZbAddrMode16Bit-c-addressing/m-p/201047#M16457</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Janell,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;first of all, you should download the ZigBee specification as it answers your questions.&amp;nbsp;The Beestack reference manual describes the BeeStack API but the ZigBee specification describes how ZigBee works. go to &lt;A href="http://www.zigbee.org" rel="nofollow" target="_blank"&gt;www.zigbee.org&lt;/A&gt;.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;To obtain an network address of another node can can use the ZDP requestion called nwk_addr_req. this helps you look up an ieee address in the network. But you should also look into the e.g. using end device bind like the HA&amp;nbsp;demo applications for commisioning. (answer for 1 and 3)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;the coordinator is ALWAYS called 0x0000.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Br,&lt;/DIV&gt;&lt;DIV&gt;Mads&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 09 Mar 2008 01:00:37 GMT</pubDate>
    <dc:creator>Mads</dc:creator>
    <dc:date>2008-03-09T01:00:37Z</dc:date>
    <item>
      <title>[Beestack and MC1321x] gZbAddrMode16Bit_c addressing</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Beestack-and-MC1321x-gZbAddrMode16Bit-c-addressing/m-p/201046#M16456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;SPAN&gt;Three questions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) How does a coordinator obtain the network address of a router?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) How does a router obtain the network address of the coordinator? (I think this is just 0 by default, but I'm uncertain I understood the document corectly.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) How does a router obtain the network address of another router?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've read through the BSSRM, yet I haven't managed to identify the missing element of using gZbAddrMode16Bit_c addressing necessary to actually transmitting packets between two devices.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an NCB as the coordinator which creates a ZigBee networking using ZDO_Start(gStartWithOutNvm_c). Likewise, the routers of the network join the network using ZDO_Start(gStartWithOutNvm_c). There are no endpoints in my network.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To send a datagram on both the Coordinator and Router I am using the addressing configuration:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'Courier New'; font-size: 2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV class="msg_source_code"&gt;&lt;DIV class="text_smallest"&gt;Code:&lt;/DIV&gt;&lt;PRE&gt;&amp;nbsp; afAddrInfo_t addrInfo;

&amp;nbsp; //set address information&amp;nbsp; FLib_MemSet(&amp;amp;addrInfo, 0, sizeof(addrInfo));&amp;nbsp; Copy2Bytes(addrInfo.dstAddr.aNwkAddr, addressWhereverIGoToWhateverItIs);&amp;nbsp; addrInfo.dstAddrMode = gZbAddrMode16Bit_c;&amp;nbsp; addrInfo.dstEndPoint = appEndPoint;&amp;nbsp; addrInfo.srcEndPoint = appEndPoint;&amp;nbsp; addrInfo.txOptions = gApsTxOptionNone_c;&amp;nbsp; addrInfo.radiusCounter = afDefaultRadius_c; //twice the network depth (how far to send packet before packet expires)&amp;nbsp;&amp;nbsp; //set cluster information&amp;nbsp; addrInfo.aClusterId[0] = (mDataClusterId_c &amp;amp; 0xFF); //customized cluster&amp;nbsp; addrInfo.aClusterId[1] = (mDataClusterId_c &amp;gt;&amp;gt; 8);&lt;/PRE&gt;&lt;/DIV&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Mar 2008 03:49:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Beestack-and-MC1321x-gZbAddrMode16Bit-c-addressing/m-p/201046#M16456</guid>
      <dc:creator>JanellA</dc:creator>
      <dc:date>2008-03-08T03:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: [Beestack and MC1321x] gZbAddrMode16Bit_c addressing</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Beestack-and-MC1321x-gZbAddrMode16Bit-c-addressing/m-p/201047#M16457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Janell,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;first of all, you should download the ZigBee specification as it answers your questions.&amp;nbsp;The Beestack reference manual describes the BeeStack API but the ZigBee specification describes how ZigBee works. go to &lt;A href="http://www.zigbee.org" rel="nofollow" target="_blank"&gt;www.zigbee.org&lt;/A&gt;.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;To obtain an network address of another node can can use the ZDP requestion called nwk_addr_req. this helps you look up an ieee address in the network. But you should also look into the e.g. using end device bind like the HA&amp;nbsp;demo applications for commisioning. (answer for 1 and 3)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;the coordinator is ALWAYS called 0x0000.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Br,&lt;/DIV&gt;&lt;DIV&gt;Mads&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Mar 2008 01:00:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Beestack-and-MC1321x-gZbAddrMode16Bit-c-addressing/m-p/201047#M16457</guid>
      <dc:creator>Mads</dc:creator>
      <dc:date>2008-03-09T01:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: [Beestack and MC1321x] gZbAddrMode16Bit_c addressing</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Beestack-and-MC1321x-gZbAddrMode16Bit-c-addressing/m-p/201048#M16458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;For the record should anyone happen to stumble across this thread with a similar question, I found a crazy workaround to establish a bidirectional connection between a coordinator and a router. (I still haven't figured router to router out.)&lt;BR /&gt;&lt;BR /&gt;Router after a users presses key 1 (commands the mote to join the network)&lt;BR /&gt;A) Mote searches for and joins a network created by the Network Coordinator&lt;BR /&gt;B) When a ZDPCallback gZDOToAppMgmtZRRunning_c is received, the router immately executes a ASL_MatchDescriptor_req(NULL, gaBroadcastRxOnIdle, AF_FindEndPointDesc(appEndPoint));&lt;BR /&gt;C) When a ZDPCallback gMatch_Desc_rsp_c is received, the router sets a timer and sends a "Hello_Ack" to the Coordinator via ZigBee&lt;BR /&gt;D) The mote waits until a "Hello_Ack" is received from the coordinator.&lt;BR /&gt;E) When a "Hello_Ack" is received the timer is stopped and&amp;nbsp; BeeAppTask is created (gAppTaskID&amp;nbsp; = TS_CreateTask(gTsAppTaskPriority_c, BeeAppTask)&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" id="smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;BR /&gt;D*) If a Hello_Ack is not received from the coordinator before the mote timer expries, the mote returns to BeeAppInit.&lt;BR /&gt;&lt;BR /&gt;Network Coordinator after Network Created:&lt;BR /&gt;1) BeeAppDataIndication listens for a "Hello_ACK" from a mote&lt;BR /&gt;2) When it receives the "Hello_Ack" it immediately executes a ASL_MatchDescriptor_req(NULL, gaBroadcastRxOnIdle, AF_FindEndPointDesc(appEndPoint));&lt;BR /&gt;3) When a ZDPCallback gMatch_Desc_rsp_c is received, the coordinator&amp;nbsp; binds to the device.&lt;BR /&gt;4) The Coordinator then sends a "Hello_ACK" to the mote via ZigBee&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2008 05:52:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Beestack-and-MC1321x-gZbAddrMode16Bit-c-addressing/m-p/201048#M16458</guid>
      <dc:creator>JanellA</dc:creator>
      <dc:date>2008-03-29T05:52:17Z</dc:date>
    </item>
  </channel>
</rss>

