Hello,
I am working with the ez430-rf2500 development kit and I am trying to make a network that can have multiple access points communicating with each other. I am using the back bone of the Wireless Sensor network demo code from TI. First, I initialize the network by telling the stack that I am an AP with the method below:
SMPL_Init(sCB);
So far I create a address for my device and push it onto the network stack with the method below:
SMPL_Ioctl(IOCTL_OBJ_ADDR, IOCTL_ACT_SET, &lAddr);
If I interpret this correctly, it will alert any AP(excluding itself) in the area that I am trying to connect with them. Then to do a sanity check and power saving mode I check to see if they are paired devices by:
while(1)
{
if(sNumCurrentPeers==0)
{
//go to sleep
SMPL_Ioctl(IOCTL_OBJ_RADIO, IOCTL_ACT_RADIO_SLEEP, 0);
__bis_SR_register(LPM3_bits+GIE);
SMPL_Ioctl( IOCTL_OBJ_RADIO, IOCTL_ACT_RADIO_AWAKE, 0);
}
else
{
break;
}
}
However, I am never able to get any peers with this method. Does anyone have any suggestions on what I am doing wrong?