摘 要CC2540 模块是 TI(Texas Instruments)公司开发的一款用于蓝牙 4.0 开发的系统单晶片解决方案。利用它可以作为无线数据采集和收发的无线终端,蓝牙 4.0 技术构建的无线数据采集传输模块,具有功耗低,可靠性高和高安全性的优点,可以用作无线数据传输系统的数据采集端。因此,讨论蓝牙 4.0 技术构建的与 PC 机进行无线数据传输通信的系统具有重大的现实意义和应用前景。设计的主要内容:设计并制作基于 CC2540 模块的数据采集终端。系统主要完成利用蓝牙 4.0 协议栈的编写,实现数据采集终端与 PC 之间的无线数据通信。数据采集端由 TI 官方的 CC2040EM 核心板和外围电路,如按键、LCD、DS18B20 组成,PC 端由TI 官方的 CC25640 USBDongle 和串口调试软件组成。本设计主要论述了蓝牙 4.0 协议栈的编写及应用,CC2540 模块与 PC 的数据传输过程及原理。其中,对蓝牙 4.0 协议栈的编写及应用进行重点论述。从机端(数据采集模块)的工作主要是对硬件电路的设计和蓝牙 4.0 协议栈 SimpleBLEPeriphral 工程的编写;主机端(PC 和 USBDongle)的工作主要是对 USBDongle 中 HostTestRelease 工程的编写和 BTool 软件的调试。最终实现数据采集模块采集到的数据能通过蓝牙 4.0 协议无线传输到 PC 端,并且 PC 端能控制数据采集端或向其发送数据。AbstractCC2540 module is a system used for the development of Bluetooth 4.0 single chip solutions provided by TI (Texas Instruments) company to develop. Because the Bluetooth 4.0 technology has the advantages of low power consumption, high reliability and long distance, it can be used as the wireless terminals of wireless data acquisition.The main elements of design : Designing and fabricating the wireless data acquisition terminal based on CC2540 module, implementing the wireless communication between the wireless data acquisition terminal and PC. The data acquisition terminal is composed of the TI official CC2540EM and peripheral circuit, such as key, LCD, DS18B20. PC comprised TI official CC2540 USBDongle and the serial debugging software. This paper mad...