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: NO_NETWORK on SampleLight example

Part Number: CC2530
Other Parts Discussed in Thread: Z-STACK

Hi,

I am following Z-Stack 3's SampleLight example to create a simple zigbee network. 1 coordinator 1 end device. The coordinator seems working. But when I started commission on end device, it gets NO_NETWORK back in network steering. Don't know what is going on.

Tried with packet Sniffer, I can see ZED sends a Beacon Request in channel 11, and the ZC responses with a Beacon packet. And then a few requests from ZED send to dest 0xFFFE. And then nothing happens.

ZC is sending data package to dest PAN 0x7DF9 on a 15s interval. 

I am new to Zigbee dev. Can anyone help? 

My environment: IAR 10.10.1, Z-Stack is newest version 3 from TI.  I am using non-TI development board, so I had to change LED and Key port. The chip is CC2530F256.  I called uiActionStartComissioning() to start commission. No other significant change to sample code other than this.

Attached a file from Packet Sniffer.

Appreciate if anyone can help.

Thanks,

ZigBee11_2.psd

  • Your coordinator doesn't enable permit join when device does beacon requests. You have to make coordinator under commission too when you make your device start commission.
  • Thanks for help. I will try it out later.

    Just curious:
    - How can you tell ZC doesn't enable permit join from the sniffer data?
    - So ZC will auto permit join when it is also in "commission"? is it same uiActionStartComissioning function? How long does this commission status last for? I thought I did "go commission". Maybe it stopped after a while.
    - If I disable Security, does it work without this "permit join"?
  • ZC won't enable permit join automatically. You have to do it from UI. Disable security is nothing to do with "permit join."

  • How do we make the permit join enable on start up of co-ordinator.???
  • You can use API ZDP_MgmtPermitJoinReq to enable permit join when coordinator starts.
  • Hi YK,
    Is this ZDP_MgmtPermitJoinReq sent by other management devices on-the-air? In the case of SampleLight, if a ZC want to enable permitJoin for itself, is there a easy way?
    Also you mentioned "ZC won't enable permit join automatically. You have to do it from UI. ", I don't see an option in sample UI.
    If I call start commission in ZC, will it permit join automatically?
  • ZDP_MgmtPermitJoinReq can be send by ZC to itself using 0x0000 as destination address. Or, you can call API NLME_PermitJoiningRequest directly on ZC to set permit join duration. From ZC UI, I suppose you should select network steering in UI page to make ZC enable permit join.
  • Thanks. This is working. Now I can see 2 devices connected and exchanged packets.

    However, the remote light function is still not working.  By calling zclSampleLight_OnOffCB(COMMAND_TOGGLE) when my key is pressed, I can see light in ZED is toggling. But the light on CZ is not toggled.

    In zclSampleLight_OnOffCB function, I don't see where the command is sent to ZC. Can't see the packet sent in sniffer too.

    Can you help to point out where the command is sent to ZC from ZED?

    Sorry, this is probably dump question. But it is a bit frustrated that the sample project is not working.

    Note there is no change to the original code other than LED and Keys port.  zclSampleLight_OnOffCB is called on SW6 key and uiActionStartComissioning is on SW7. I just pressed SW7 to get 2 devices connected and then pressed SW6 to test after.

    N1.rar

  • Try to start “find and binding” from UI of both ZC and ZED to do ON/OFF command commission to see if it can work after commission.