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.

Compiler/CC2530: In Zstack 1.2.2a with CC2530 module, I have a problem when I use sleep mode it will not send data to co-coordinator and when I disable sleep mode it will send data to the co-ordinator.

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

Tool/software: TI C/C++ Compiler

Hello,

I m working on Zstack 1.2.2a with the CC2530 module, I have a problem

1) when I use sleep mode it will not send data to the co-coordinator and when I disable sleep mode it will send data to the co-ordinator.

my code structure is,

Initialise Pins()//init pins

Reload Timer for 10 sec()//init reload timer

in Reload timer event

osal_pwrmgr_device(PWRMGR_ALWAYS_ON); //to wake up the device from sleep mode

Send_data to coordinator();//send data to coordinator

osal_pwrmgr_device(PWRMGR_BATTERY);//for sleep mode

I m using the following code for sending data from End device to the co-ordinator,

static void SPIKE_send_coordinator(uint8 * data,uint16 data_len)
{
GenericApp_DstAddr.addrMode = (afAddrMode_t)Addr16Bit;
GenericApp_DstAddr.endPoint = GENERICAPP_ENDPOINT;
GenericApp_DstAddr.addr.shortAddr = 0x0000;

if (AF_DataRequest( &GenericApp_DstAddr, &sampleTemperatureSensor_TestEp,
GENERICAPP_CLUSTERID,
data_len ,
data,
&GenericApp_TransID,
(AF_DISCV_ROUTE | AF_ACK_REQUEST), AF_DEFAULT_RADIUS ) == afStatus_SUCCESS ) //hitesh
{

}
}

For Sleep mode, I m using the following code,

osal_pwrmgr_device(PWRMGR_BATTERY);//for sleep mode

osal_pwrmgr_device(PWRMGR_ALWAYS_ON); //to wake up the device from sleep mode

DPOLL_RATE=0  // in config file I use

In Preprocessor, I have used

Powersaving

Please Please help me I m doing the same thing for 15 days but the problem as it as.

Thanks in advance