本科生毕业论文
基于CC2540的蓝牙4.0模块与PC机通信设计
摘 要
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端能控制数据采集端或向其发送数据。
Abstract
CC2540 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 made a briefly introduction of the overview, prospects of application and the basic structure of the data acquisition and transmission of Bluetooth technology. The main elements of the article discusses the compiling and application of the Bluetooth 4.0 protocol stack and the procedure and principle of data transmission between CC2540 module and PC.