摘要
蓝牙作为一种短距离的无线通讯技术已经在电子设备中得到了广泛的应用,能够将不同的设备连接起来,摆脱了传输线的限制。基于Android系统蓝牙编程的研究较少,因此对Android系统蓝牙协议栈进行了简单的介绍,对蓝牙开发流程进行了分析,并在此基础上实现了Android系统与单片机之间的蓝牙通信,控制步进电机运转。实际应用表明:该系统能够通过蓝牙准确地发送、接收数据,控制精度高、稳定,时间响应快。
Bluetooth is widly applied in electronic devices. As a short-range wireless communication technology, it is able to connect different devices, not having to rely on transmission line. However, the research on the bluetooth programming based on the Android system is scant. As a result, the Bluetooth protocol stack of the Android system is briefly introduced, and the Bluetooth development process is analyzed. Then, the bluetooth communication between the android system and the single-chip microcomputer is implemented to control the operation of stepper motor. The practical application shows that the system can send and receive data with bluetooth precisely, with high control accuracy, stability and fast response time.
出处
《光学仪器》
2013年第1期34-36,共3页
Optical Instruments
关键词
ANDROID系统
蓝牙
单片机
步进电机
Android system
bluetooth
single-chip microcomputer
stepper motors