Other Parts Discussed in Thread: TIMAC, Z-STACK
我的设计要求是通过串口来动态切换信道,并将信道储存到NV里,保证下一次启动用的是我切换后的信道,我没找到TIMAC有关NV的操作,我使用的是Z-stack的NV操作,发现 _NIB.nwkLogicalChannel=msa_Channel;
NLME_UpdateNV(0x01);报错,我没在mac_nv.c里面找到对于的参数和函数。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
/* 信道切换事件 */ 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();