Other Parts Discussed in Thread: TIMAC, Z-STACK
Hi team,
Here's the request from the customer:
Customer's design requirement is to dynamically switch the channel through the serial port, and store the channel in the NV to ensure that the next startup will use the channel he switched to. However he didn't find any related NV operation of TIMAC. He used the Z-stack NV operation and found that _NIB.nwkLogicalChannel=msa_Channel;
NLME_UpdateNV(0x01); reported an error, he didn't find the corresponding parameters and functions in mac_nv.c.
/* channel switch evvent */
if(events & CHANNALCHANGE_COMMAND_EVENT)
{
if(Input_Number <11 || Input_Number > 26)
{
HalUARTWrite(HAL_UART_PORT_0 , "The Wrong Channel" , sizeof("The Wrong Channel"));
}
MAC_MlmeSetReq(MAC_LOGICAL_CHANNEL, &Input_Number);
MSA_CoordinatorStartup();
Could you help check this case? Thanks.
Best Regards,
Nick