论文部分内容阅读
在多机主从式无线通信中,无线收发模块对噪声非常敏感,即使没有信号也会产生随机数据。如果将它直接与计算机相连,通信程序就会因为需要不断接收这些随机数据而大大占用计算机资源。为解决这一问题,提出了在PC和无线通信模块之间添加一个双串口单片机ATmega162的方法,采用单片机的多处理器通信模式,用UCSRA控制寄存器的MPCM位对接收到的数据进行过滤,并使用了简单的通信协议,从而有效地抑制了PC端通信程序对随机数据的接收。
In multi-master-slave wireless communication, the wireless transceiver module is very sensitive to noise, even if there is no signal will generate random data. If you connect it directly to a computer, the communications program will consume a significant amount of computer resources because of the constant need to receive such random data. In order to solve this problem, a method of adding a dual serial port ATmega162 between the PC and the wireless communication module is proposed. Using the multi-processor communication mode of the microcontroller, the received data is filtered by the MPCM bit in the UCSRA control register Using a simple communication protocol, thus effectively inhibiting the PC-side communication program to receive random data.