Other Parts Discussed in Thread: SYSCONFIG
Hi,
I have developed a router application. The router joins a collector in the same way a sensor would. It then sets up a network of its own on the same channel with pan coordinator set to false. All works well and has done for some time but I am now trying to get the entire network to work on a different channel other than logical channel 0. For some reason, in my router application, a call to ApiMac_mlmeStartReq() seems to set ApiMac_attribute_logicalChannel to zero. By the time the stack has called startCnfCb(), ApiMac_attribute_logicalChannel is equal to zero when it should be another channel, channel 1 in my current case.
There are no beacons or frequency hopping in my application.
So my question is: does ApiMac_mlmeStartReq() somehow set ApiMac_attribute_logicalChannel to zero?
If I add:
case Cllc_coordStates_startCnf: { ApiMac_mlmeSetReqUint8(ApiMac_attribute_logicalChannel, coordInfoBlock.channel);
everything works as expected. Why is this necessary? I have checked and ApiMac_mlmeStartReq() is set up correctly.
Thanks,
Andy