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 settings for coordinator and end device?

Other Parts Discussed in Thread: CC2530, Z-STACK

Good morning, I'm Marco from Italy. I am new in this forum; I looked for some answers about code for CC2530 zigbee. I searched them in previous posts, but I didn't find anything I need...

I am a beginner about zigbee. I am triyng to understand how to program them: I use C code and I have 2 zigbees which (after my software program) can talk each other.

But I don't understand how I have to set them as coordinator and end device.

I can set PANID, RX_ADDR and TX_ADDR, but I need help for other settings.

Thank you, Marco

  • Hi Marco,

    when you open IAR Workbench, you just have to choose in upper left corner of IAR which logic type would you like your device to be. So you select Coordinator and then download your code to one ZigBee device,then you select End Device and then download the code to other ZigBee device and that is all.

    I am not shure if I understood your question well, hope this is it, and if it is not sorry.

    Zivorad

  • Hi Marco

    The info Zivorad refers to can also be found described with screen shots in the Z-Stack user's guide.

    If you e.g. install the Z-Stack for the CC2530 you can find it here:

    C:\Texas Instruments\ZStack-CC2530-2.2.2-1.3.0\Documents\CC2530\Z-Stack User's Guide - CC2530DB.pdf

    I can also recommend reading the developer's guide:

    C:\Texas Instruments\ZStack-CC2530-2.2.2-1.3.0\Documents\Z-Stack Developer's Guide.pdf

    Good luck!

    -LL-

  • Hello all,

    I have a similar problem about the coordinator and would appreciate any help. I did the steps Zivorad mentioned and have coordinator configured. I have chosen two channels for the coordinator to find the best one and make the network for that, the only problem is, I do not know which channel is active now by the coordinator, can it display or show me what channel is selected?

    Thank you,

    Leila

  • How about this enhancement to the nwk_Status() function in nwk_globals.c:

    void nwk_Status( uint16 statusCode, uint16 statusValue )
    {
    #if defined ( LCD_SUPPORTED )
      HalLcdWriteStringValue("Channel: ", _NIB.nwkLogicalChannel, 10, HAL_LCD_LINE_3);

      switch ( statusCode )
      {

     

  • It does work.

    Thanks.