Part Number: CC2530
Other Parts Discussed in Thread: CC2531, Z-STACK
Tool/software: WEBENCH® Design Tools
In my home automation application the distance between coordinator and router is less than 5 meteres.
Some times signal miss problem occur in 2 out of 10 cases.
Now what can I do to recover this problem??
My data bytes are 13 bytes in length as below:
buff[0] = 0xDF; //sync byte
buff[1] _ buff[8] = MAC address of router;
buf[9] = command for on/off.
buff[10] = length of next two byts;
buff[11] = switch no. (1-5).
buff[12] = load status. (1-0)
and I pass above bytes into following function.
static void DEEPMacToNet(uint8 *TXbuff, uint16 TXlength)
{
if(APSME_LookupNwkAddr(&TXbuff[1],&temp_NwkAddr)==TRUE)
{
TXbuff[0]=0xDF;
TXbuff[1]=temp_NwkAddr>>8;
TXbuff[2]=temp_NwkAddr;
for(char i=3; i<TXlength-6;i++)
{
TXbuff[i]=TXbuff[i+6];
}
GenericApp_DstAddr.addrMode = (afAddrMode_t)Addr16Bit;
GenericApp_DstAddr.endPoint = GENERICAPP_ENDPOINT;
GenericApp_DstAddr.addr.shortAddr = temp_NwkAddr;
if ( AF_DataRequest(&GenericApp_DstAddr, &GenericApp_epDesc,GENERICAPP_CLUSTERID,(TXlength-6),TXbuff,
&GenericApp_TransID,(AF_DISCV_ROUTE/* | AF_ACK_REQUEST*/),AF_DEFAULT_RADIUS)==afStatus_SUCCESS )
{
LED = ~LED;
milliSecondDelay(10);
}
}
}


