This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2530 - zStack 2.3.0. After reset, Coordinator PANID is increase 1.

Other Parts Discussed in Thread: CC2530, Z-STACK

hi.

i testing cc2530 - zStack 2.3.0

i make zigbee network with 1 coordinator, 1 router.

 

=== Config. ========================================

-DZDAPP_CONFIG_PAN_ID=0x0001

=== Bug step. ======================================

1. coordinator power on.

2. router power on.

3. router join.

4. coordinator reset.

5. Bug!! Panid increase 1. Panid is '0x0001' => '0x0002'. router not join.

p.s step3 -> router reset -> router join. not problem. It's OK.

==================================================

why this problem..?!

plz Re..

  • Your observation is expected when the Coordinator does not save its network information to Non-Volatile memory.

    When you reset the Coordinator, the first thing it does is request beacons from existing networks and your Router provides one with PanID = 0x001. Since the Coordinator's basic job is to start a new new network, it cannot reuse 0x0001, so it must choose another PanID -- the default algorithm in Z-Stack is to increment the PanID, hence the value of 0x0002 that you are seeing.

    If you want the Coordinator to "remember" the PanID that it uses to start a network, build your project with the NV_RESTORE compile option. That will cause the Coordinator to read the network parameters from Non-Volatile memory after a reset -- it won't start a new network, it will resume operation on the one it previously started.

  • Setting NV_RESTORE is desirable in  many cases, but I believe it is NV_INIT which causes the PAN ID to be stored in NV memory.