摘要
在无线通信环境下,基于UART接口的无线模块可以释放CPU软硬件资源、使用方便、用途广泛。通过介绍一种廉价的无线模块设计方案,根据n RF24L01封装无线数据包和UART接口速度慢的特点,设计了对UART数据的发送和接收双缓冲器,开发软硬件,实现了可靠的无线数据通信。实验表明无线模块UART接口的可靠通信速率可以达到128 000 b/s,达到预期效果,满足大部分网络化条件下无线通信功能要求。
In the wireless communication environment, the wireless module based on UART interface can release the hard- ware and software resources of CPU. It' s easy to use, and has a wide range of applications. A low cost scheme to design wire-less module is introduced in this paper. According to the encapsulation wireless data packet of nRF24L01 and the slow-speed feature of the UART interface, the double-buffer transmitting and receiving the UART data was designed, the corresponding software and hardware were developed, and the reliable wireless data communication was realized. Experiments show that the wire-less module with UART interface achieves the desired effect, which implements a reliable transmission rate of 128 000 b/s, and meets the most requirements of wireless communication function.
出处
《现代电子技术》
北大核心
2015年第5期5-8,共4页
Modern Electronics Technique
基金
教育部春晖计划科研合作项目(22014044)