连柯


【摘 要】 提出一种低成本的通用无线数据传输系统设计,配备通用串行接口,可与所有具备通用串口的通信终端相连。系统由射频收发器、单片机和通用串口组成,单片机用I/O口模拟硬件SPI接口,通过SPI接口连接射频收发器,单片机外接STC232芯片扩展通用串行接口,给出了电路设计原理和系统应用方案,数据终端、数字话机、低速多媒体终端可通过无线传输系统实现点对点无线通信。
【关键词】 射频收发器 单片机 串口
【Abstract】 Propose a low-cost design of universal wireless data transmission system with universal serial ports, which can communicate with other terminals by serial ports. The system consists of RF transceiver, single chip and universal serial ports. Single chip microcomputer simulates hardware SPI interface by I/O interfaces and connects RF transceivers. It extends serial ports by STC232 chips. The circuit diagram and application schemes are provided. Point-to-point wireless communications can be achieved between two data terminals, two digital phones, or two low speed multimedia terminals.
【Key words】 RF transceiver single chip serial port
无线数据传输具有安装方便、不需要布线、通信距离远、成本低、效率高的诸多优点,广泛应用在野外通信、军事通信、工业无线网、智能家居等领域中。本文提出一种低成本的通用无线数据传输系统设计,配备通用串行接口,可与所有具备通用串口的通信终端相连,最大无线通信速率可以达到1Mbit/s。
1 系统总体设计方案
串口无线数据传输系统总体方案如图1所示,由nRF24L01射频收发器实现无线数据传输,STC232收发器扩展RS232串口,实现用户接入,系统中央控制器为STC89C52单片机,实现对射频收发器和232收发器的控制,并对数据进行缓存处理。任何具备RS232串口的通信终端都可接入该系统,实现最高1M bit/s的无线数据传输。
2 nRF24L01射频收发机
nRF24L01是一款工业级内置硬件链路层协议的低成本单芯片广播式无线射频收发器。该器件工作于2.4GHz全球开放频段,内置频率合成器、功率放大器、晶体振荡器、调制器等功能模块,其输出功率和通信频道可通过程序配置。
nRF24L01结构如图2所示。通过设置PWR_UP、CE、CS三个引脚,可使nRF24L01分别工作于接收/发送模式、配置模式、睡眠模式、关闭模式。……