Other Parts Discussed in Thread: CC2530, Z-STACK
Hello
I have two CC2530 Device. I make one device as a coordinator and other one as end device.
Now I want my ZED to join the ZC.
So I am using the api as
uint8 retValue;
zAddrType_t destAddr;
uint8 *deviceAddr;
uint8 capInfo;
/* Destination Address */
destAddr.addrMode = Addr16Bit;
destAddr.addr.shortAddr = 0x0000;
deviceAddr=NLME_GetExtAddr();
capInfo=CAPINFO_RCVR_ON_IDLE;
retValue=(uint8)ZDP_MgmtDirectJoinReq( &destAddr, deviceAddr, capInfo, 0);
if(retValue == ZSuccess)
{
UART_ASCII_SEND("Successfully Joined Network");
}
else
{
UART_ASCII_SEND("Fail to Joined");
}
But my ZED is not joining to ZC.
Please give me idea to solve this issues.
Regards
SS