In the wireless data communication between microcontroller and wireless data transmission module, the serial data communication through serial I/O ports of microcontmller has many shortcomings such as poor ability of checking error and the absence of error correcting function. To solve those problems, a novel technology of short-distance wireless communication is proposed by writing software programs into microcontroller and data transmission module. The data bit '0' and ' 1' are expressed using high or low level with different sustained time. CRC is used to check the date error and Reed-Solomon code is used to correct the error. The experimentsshow that this new method can remarkably improve the anti-interference ability of the communication system.%利用单片机和射频模块进行无线数据通信时,通过单片机的串行I/O口来完成数据的串行通信存在许多不足之处,如差错检测能力差、无纠错功能等.针对以上问题提出了一种通过单片机和射频模块以软件方式实现短距离无线通信抗干扰的技术.用高低电平持续不同时间的矩形波来表示数据位‘0'和'1';采用CRC冗余校验实现数据的错误检验;利用瑞德一所罗门码实现数据的错误纠正.将该方法应用于电动滑板车的短距离通信设计中,实验表明,该方法使系统抗干扰能力有显著的提高.
展开▼