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 Z-Stack Turn Off Radio



Good day to everyone,

Currently I´m trying to make mi device consume less power, everything is going fine when I send it to sleep. What I´m attempting is to turn off the radio while the device is not sleeping, when my application is running. I´m trying to run the application and turn on the radio only when needed, all this to consume less power.

I´m trying to do this using some macros in the mac_radio_defs:

#define MAC_RADIO_TURN_ON_POWER()                     macRadioTurnOnPower()

#define MAC_RADIO_TURN_OFF_POWER()                    macRadioTurnOffPower()

But still the radio turns on and my device is communicating. My theory is that the macEventLoop from the mac_api is turning on again the radio.
Have anyone attempted this? Is it possible?
Thanks and best regards,
Aldo

  • You should not use those macros - the Application layer of the ZStack should just set the device as an FFD or and RFD, and if it is an RFD, control the poll rates as appropriate, and the radio will be off as you like. There is a tremendous amount of discussion about this existing here in the E2E - please search for "RFD POLL" and similar subjects and follow the threads and I think you will see your question answered.

     

  • Mr. Dirty Harry,

    Thanks a lot for your post, the device is a RFD so I went on searching for  "RFD POLL" through the forum. I modified the BEACON_REQUEST_DELAY constant, since the device was consuming a lot when it didn´t find a network. And it was solved.

    Thanks a lot.