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.

How to shutdown coordinator/router?

Other Parts Discussed in Thread: CC2530, Z-STACK

How to shutdown coordinator/router? How to do it?  

I need to turn off the only ZigBee part in router or coordinator.  Other tasks must continue to work. Also, after a few hours I need again turn on ZigBee part in CC2530. 

  • Hi,

    What is the purpose of such a brute move?

    You need the coordinator/router to halt from participating in routing tasks of particular ZigBee network,

    or is it just for allocating all the CPU time to your task/application only?

  • "What is the purpose of such a brute move?"

    ZigBee transceiver consumes a lot of energy.

    "You need the coordinator/router to halt from participating in routing tasks of particular ZigBee network,

    or is it just for allocating all the CPU time to your task/application only?"

    ???? Z-Stack is working with OSAL (very very bad cooperative OS).  CPU time always enough.

  • Andrey Vrjakovsky said:
    ZigBee transceiver consumes a lot of energy.

    So in other words you want a battery powered coordinator/router?

    I think it is possible to compile router/cooridnator with ZED options. I remember someone

    already asked about this option in the forum before. If I find this discussion, I'll post a link to it.

    The other major issue is to know when, or on what event, to wake up this sleeping beauty

    with regard to other ZRs/ZEDs in the ZigBee network and let it to participate in routing tasks

    again.

    Andrey Vrjakovsky said:
    ???? Z-Stack is working with OSAL (very very bad cooperative OS).  CPU time always enough.

    :)

  • Hi Andrey,

    I'm getting back to you with a link. This is the most informative thread I have found,

    let me know if it helps you.

  • I think I found a solution

    Shutdown ZigBee task

    nwk_setStateIdle( TRUE );
    // turn MAC receiver off
    unsigned char rxOnIdle = false;
    ZMacSetReq( ZMacRxOnIdle, &rxOnIdle );


    Turn on ZigBee task

    rxOnIdle = true;
    ZMacSetReq( ZMacRxOnIdle, &rxOnIdle );

    // set NWK task to run
    nwk_setStateIdle( FALSE );


    It's strange that there is no such function.

     At night, I do not need a ZigBee network. But the devices should work.