JFerreira wrote:
Not really on topic but also about choosing a channel for the network.
I am trying to do the energyscan and I still havent figure out how does it work. I have 2 motes on the same networks working with the values saved and working. And now I code one mote to do a energychannelscan but I only get zeros.
//Channel scan
xbee802.setScanningChannels(0xFF, 0xFF);
xbee802.setDurationEnergyChannels(10);
xbee802.getScanningChannels();
for(i=0; i<=15; i++)
{
printInteger(xbee802.energyChannel[i],1);
}
This is the code I am using is it right? Also can you explain how does he do the energychannel scan.
On other note again with same motes I defined the network and I configure the 2 motes for working on it. When I do the brothers scan I sometimes have good results like the first or the second time the code runs and than it stops detecting the other mote. Can you give some ideas why is it working like that?
Thanks for the help.
Best regards,
João Ferreira
Hi,
Please try to call the function 'setDurationEnergyChannels' with a lower input parameter because '10' is too high. I think a value around 1-3 should be enough.
Regards