The Design of Bluetooth Keyboard and Mouse Based on HID Profile

Author
WeiGang
Advisor
MaXianMin
School
Xi'an University of Science and Technology
Major
Control Theory and Control Engineering
Classification
TP334.2 Input device
Degree
Master's thesis
Year
2005
Downloads
509
Citations
0

Request the full text

Abstract

With the development of communications, networking , and computer technology to the development of traditional control technology has brought a new opportunity . Bluetooth technology is a used for digital hardware devices of a variety of fixed and mobile between a low cost, high efficiency of the wireless communication connection technology, in practical application to replace the cumbersome cable connection . Subject to the British Cambridge SiliconRadio students BlueCoreTM02 Bluetooth chip as the object of study , the Bluetooth 1.2 protocol stack design guidance given based on Bluetooth HID protocol stack serial keyboard and mouse to take the data acquisition scheme . Bluetooth specification is free and open by the Bluetooth SIG developed the Bluetooth technology standard , including the core specification (Core Specification) and Application Specification (Profile) two parts . Core specification defines the work of each of the layers of protocol , and application specification is taken in order to achieve a particular application model specific protocol layer between the operating mechanism. Bluetooth protocol underlying hardware module system can be divided into three parts , intermediate protocol layer and high - end application layer . Link management , baseband layer and RF the layer belonging Bluetooth hardware module . Logical Link Control and Adaptation Protocol , belong to the intermediate protocol layer service discovery protocol , serial port emulation protocol , general software . The high-end application layer is used for a variety of application models the Profile . This thesis analyzes and Bluetooth core protocol , then analyzed based on the realization of the Bluetooth HID high-end application mode , software -based HID protocol HCI, logical link control adaptation protocol and service discovery protocol . Given to serial keyboard and mouse data acquisition hardware and software design , and the HID application specification based on the entire system design combined Bluetooth development tools BBDK, the complete design process for the keyboard and mouse -based HID specification . In the collection end of the scan code as a Bluetooth host microprocessor to achieve the HID high-level application specification , the Bluetooth host C language based on the HID protocol HCl , L2CAP, SDP ; Bluetooth host PC, as the PC end , the VC C class encapsulates the 6.0 environment to achieve the above-mentioned agreements .

Table of contents

1 Introduction 7-10 1.1 Bluetooth technology background 7 1.2 Bluetooth technology prospects 7-8 1.3 project background and significance 8-9 1.4 of this research content 9-10 2 Bluetooth HID underlying protocol analysis 10-21 2.1 and HID Bluetooth protocol specification 10-13 2.1.1 Bluetooth protocol 10-11 2.1.2 Bluetooth HID specification 11-13 2.2 Bluetooth underlying protocol analysis 13-21 2.2.1 RF protocol 13-14 2.2.2 Bluetooth baseband and link control protocol 14-19 2.2.3 Bluetooth chain Road Manager Protocol (LMP) specification 19-21 3 HID-based analysis of the core protocol layer 21-33 3.1 Bluetooth host controller interface (HCI) 21-30 3.1.1 packet type 21-23 3.1.2 HCI flow control 23-25 ?? 3.1.3 HCI communication process analysis 25-30 3.2 HID_L2CAP Overview 30-31 3.3 HID_SDP Overview 31-33 4 Serial Keyboard Mouse HID-based hardware system design 33-46 4.1 system design 33 4.2 Bluetooth keyboard and mouse principle 33-37 4.2.1 Bluetooth keyboard principle 33 -36 4.2.2 Bluetooth mouse principle 36-37 4.3 hardware circuit design 37-40 4.3.1 Keyboard and mouse data collection terminal circuit 37-39 4.3.2 PC machine receiver circuit 39-40 4.4 optional devices introduced 40-44 4.4.1 BlueCoreTM219519 chips Features 40-42 4.4.2 microprocessor choice 42-43 4.4.3 MAX3232E 43 4.4.4 XC6201T302 43-44 4.5 Bluetooth hardware test 44-46 4.5.1 BBDK introduction 44-45 4.5.2 BBDK test hardware process 45-46 5 system software design 46-61 5.1 P87C58X2BN software design 46-56 5.1.1 program flow 46 - 47 5.1.2 mouse, timers, serial port initialization 47 5.1.3 Bluetooth chip chip initialization settings 47-49 5.1.4 keyboard scan codes process 49-52 5.1.5 scan codes and mouse left and right buttons processes 52-53 5.1.6 protocol indicator software design 53 - 54 5.1.7 L2CAP protocol layer data encapsulation (program L2cap.c) 54-55 5.1.8 Service Discovery Protocol implementation (program sdp.c) 55 - 56 5.2 PC Computer Software Design 56-61 5.2.1 program flow 56-57 5.2.2 CTrayIcon class design 57 - 58 5.2.3 serial driver class CserialPort achieve 58-59 5.2.4 main keyboard and mouse data processing 59-60 5.2.5 SDP's achieve 60-61 6 Conclusion 61-62 Thanks 62-63 References 63-65 Appendix 65-66 detailed summary 66-77

Related dissertations

  1. Research and Implementation of Infrared Touch Screen Based on HID Class
    WangYun ·Anhui University ·2014 ·Master's thesis
  2. Design and Implementation of Cross-platform Access for Various Devices in Home Healthcare System
  3. Application design with USB interface based on PIC MCU
  4. Development and application of modern appliances wireless intelligent control system
    ZhangGuoLiang ·Fudan University ·2012 ·Master's thesis
  5. Design and Implementation of the Multi-function Bluetooth Remote Control
    WangKang ·Wuhan University of Technology ·2012 ·Master's thesis
  6. Design and Verification of EMIF to PCI Host Controller
  7. The Infrared Camera Whiteboard Performance Optimization and USB Device Development
  8. Research on HID Lamp Digital Ballast Control Strategies
    XueYing ·North China University of Technology ·2013 ·Master's thesis
  9. HID automotive headlamp electronic ballast with digital control IP nuclear research
  10. Research on HID Ballast System with Centralized Bus
    LvXiaoDong ·Zhejiang University ·2005 ·Doctoral dissertation
  11. HID Ballast System and Saber Model
    YangGuoRen ·Zhejiang University ·2006 ·Master's thesis
  12. The Virtual Instrument Testing Platform Based on USB Bus
  13. Based on IEEE802.15.4 wireless USB system design
  14. USB over IP System Design on Linux
    YangYong ·East China Normal University ·2007 ·Master's thesis
  15. Design and implementation of DSP intelligent community -based home security system
    WangTao ·Shandong University ·2007 ·Master's thesis
  16. Research and Implementation of USB device driver in embedded systems
  17. USB-RS232 interface converter design
  18. The μClinux embedded USB host - based slave system
    LiWeiWei ·Shandong University ·2006 ·Master's thesis
  19. The development of the experimental platform based Microcomputer Principle the EPP and USB interface
  20. The Development of Embedded Usb Host and Realizing the Function of Mass Storage Class
    ZhangJianHua ·Harbin Engineering University ·2005 ·Master's thesis