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.

Trying to establish a Zigbe network.

Other Parts Discussed in Thread: Z-STACK, CC2430

I have a Coordinator and an Endpoint, both have CC2340 microcontroller.
I'm looking for application notes that describe how to have the Coordinator setting up a network, and having the Endpoint to join that network.

Could any one refer me to such app. notes?
All I've found are API notes, which describe what each function does, but after reading it, I still dont know how to bind all the pieces together.

Thanks.

  • Hi Shahar Shahar,

    Have you had a look through the Zigbee Spec? This should give you an idea of what the spec says for start up and join proceedures.  As well as many other things.  This should be available from www.zigbee.org .

    You may also want to try a google search for Zigbee Overview.

    In general any Zigbee device will noramlly start up and scan for a network.  If it is an end device, it will then typically try to join the 'loudest'/'best' network that it found.  Most of the network formation process is actually automated.

    I would also have a look the documents folder that comes with Z-Stack.  There are some good documents there to help get you started.

    Cheers,

    Yoda

  • Thank you very much Yoda.

    I started reading about ZigBee, lots of materials, and I think I'm starting to get into it.

    I have 2 questions please which i didnt manage to understand from the documents:

    1. It is said regarding the PAN ID, that

    Valid range for PAN ID is from 0 to 0x3FFF. If a value of 0xFFFF is used, the NWK layer will choose the PanId to be used for the network.
    If a network is found with the same PAN ID here, this PAN ID will be incremented until it is unique (to the scanned PAN IDs).

    When its said "here", what does it mean? the channel hasnt been picked yet, so I guess they dont mean a certain channel.

    2. What is actually a channel? each channel communicates in a unique frequency? I though all channels communicate in 2.45GHz.

    Thank you very much :)

     

  • No worries.

    To answer your further questions ...

    1) I believe 'here' means at that point in the formation process.

    2) 2.45GHz we refer to is actually the centre frequency of a band.  This band is divided up into channels.  Ie narrow frequency windows for transmission.

    Hope this helps.

     

    Cheers,
    Yoda

  • Thank you so much Yoda.

    It very helped me.

    I did now an experiment and would like to have your comment please about it.

    - Background - both Router and Coordinator have HOLD_AUTO_START and NV_RESTORE flags compiled in.

    - I erased Coordinator and Router flashes and started them in netowrk.

    - Router joined Coordinator's 0x00-00 PAN ID network (MAC address of Coordinator ends in 0x00-00).

    - I erased Coordinator's flash and started it in network, therefore it should have a 0x00-01 PAN ID (since router still remained on).

    - Now every time that I power up the Coordinator (Its CC2430 coordinator) through the SMARTRF board, then the router rejoins the network for a breif second and then it disconnect permamently.
    It happens every time the COORD is powered up.

    Do you have an idea why would it happen?

    Thank you a lot for your help.