Other Parts Discussed in Thread: CC1350, CC1101
微基站CC1310程序初始化后,设置为433.2M信道接收模式,接收到rf数据后通过串口转发出去,同时如果串口接收到数据,则把串口接收到的数据通过433.6M信道发出去,发送完成后再次切换433.2M信道接收。实验:利用433.2M信道标签定时500MS发送RF数据,微基站、调试工具和TTL转USB相连,定时1s向微基站串口发数据,然后串口调试工具打印微基站收到的433.6M信道的数据,我发现程序运行大概几个小时后,微基站RF接收数据功能失效了,但是它RF发射数据功能还是正常,请问这个情况还是切换的时候,频率合成异常导致的么?需要我怎么办,下面是我切换时设置信道频点代码
void vSetRadioFreq(unsigned char v_Channel)
{
if(v_Channel != RF433_Channel1 && v_Channel != RF433_Channel2 && \
v_Channel != RF433_Channel3 && v_Channel != RF433_Channel4 && v_Channel != RF433_Channel5 )
return ;
if(real_channel == v_Channel)
return ;
RF_cancelCmd(rfHandle, RF_CMDHANDLE_FLUSH_ALL, 1);
HW_delay_ms(2);
RF_yield(rfHandle);// Power down the RF Core to force a new setup command after it wakes up
HW_delay_ms(5);
RF_cmdFs.frequency = 0x01B1 ;
RF_cmdFs.fractFreq = read_freq(v_Channel); //EASYLINK_RF_EVENT_MASK
RF_postCmd(rfHandle, (RF_Op*)&RF_cmdFs, RF_PriorityNormal, NULL, 0); /* Set the frequency */
HW_delay_ms(5);
real_channel = v_Channel ;
RF_yield(rfHandle);
}