Realize mobile terminal and control the system and method for operation terminal
Technical field
The present invention relates to computer long-distance control field, particularly relate to a kind of Bluetooth adapter and realized the system and method for mobile terminal control operation terminal by Bluetooth adapter.
Background technology
Along with high speed development and the renewal of intelligent mobile terminal, blue tooth wireless technology is attached the global short range wireless standards of communication as multiple types electronic equipment, is widely used in portable handheld device field.But classical blue tooth wireless technology exists, and response speed is slow, power consumption big, distance is near, high in cost of production shortcoming.Under the overall situation of energy-conserving and environment-protective, bluetooth sig (Bluetooth SIG) is announced on July 7th, 2010, formally adopt bluetooth 4.0 core specification (Bluetooth Core Specification Version4.0), and start the certification scheme of correspondence.Supplementing as bluetooth 3.0+HS, the most important characteristic of bluetooth 4.0 is power saving science and technology, and extremely low operation and stand-by power consumption can make a button cell work as long as the several years continuously.Additionally, low cost and across vendor interoperability, many characteristics such as 3 milliseconds of low latency, more than 100 meters extra long distances, AES-128 encryptions, all it is greatly expanded the range of application of Bluetooth technology.Along with Microsoft, Android, Apple announce will support on the end product released afterwards this new technology, it is meant that this technology middle will will be widely used standard computer terminal, portable handheld terminal and network multimedia terminal etc. are multi-platform.
Existing HID(Human Interface Device, human interface device) control equipment has USB wireless mouse key, empty mouse and conventional Bluetooth mouse, keyboard etc..USB is wireless mouse key and empty mouse etc. are all the Wireless transceiver global general-use schemes using 2.4GHz, and advantage is that connection speed is fast, power consumption is relatively low, due to the custom protocol used, and expansion is the best.And traditional realize mobile phone by Bluetooth adapter and control the operations such as computer keyboard, mouse and multimedia, need to control end and computer operation end is required for installing related software and could normally use with driving at mobile phone.
Summary of the invention
Based on this, it is necessary to the defect existed for above-mentioned Bluetooth adapter, it is provided that a kind of Bluetooth adapter without can realize mobile terminal control operation terminal at operation terminal installation software.
A kind of Bluetooth adapter, including: data acquisition module, for gathering the data that peripheral mobile terminal sends;Data decoder module, receives described data, and described data is classified;Described data, according to above-mentioned classification results, are converted into human interface device data by data processing module;And communication module, described human interface device data are transmitted to peripheral operation terminal.
In the present embodiment, described data are divided into keyboard data, mouse data, MultiMedia Keyboard data and game paddle data.
In the present embodiment, described Bluetooth adapter is bluetooth 4.0 adapter, and described Bluetooth adapter can run in the operating systems such as Windows, Linux, Mac, Android.
Present invention also offers a kind of system being realized mobile terminal control operation terminal by Bluetooth adapter, including operation terminal, Bluetooth adapter and mobile terminal, described Bluetooth adapter is connected to described operation terminal, described mobile terminal is provided with client, described mobile terminal is communicated with described Bluetooth adapter by client, described Bluetooth adapter includes: data acquisition module, for gathering the data that mobile terminal sends;Data decoder module, receives described data, and described data is classified;Described data, according to above-mentioned classification results, are converted into human interface device data by data processing module;And communication module, by the transmission of described human interface device data to described operation terminal.
In the present embodiment, described operation terminal is to support the terminal of human interface device, handheld terminal or multimedia terminal.
In the present embodiment, described Bluetooth adapter is bluetooth 4.0 adapter, and described Bluetooth adapter can run in the operating systems such as Windows, Linux, Mac, Android.
It addition, present invention also offers a kind of method realizing mobile terminal control operation terminal by Bluetooth adapter, comprise the steps:
Described Bluetooth adapter is connected to described operation terminal;
Client software is installed on the mobile terminal, and opens described client software;
Described Bluetooth adapter gathers the data that described mobile terminal sends, and described data is classified, and according to above-mentioned classification results, described data is converted into human interface device data, and by the transmission of described human interface device data to described operation terminal;And
Described operation terminal receives described human interface device data and performs corresponding operation.
In the present embodiment, described client software uses Objective-C language to write.
The data that the peripheral mobile terminal collected sends are classified by above-mentioned Bluetooth adapter, and according to above-mentioned classification results, described data are converted into human interface device data, and described human interface device data are transmitted to peripheral operation terminal, peripheral operation terminal receives described human interface device data, and performs corresponding operation.Above-mentioned Bluetooth adapter directly can control operation terminal by the client of mobile terminal, and without operating terminal build-in services device software, easy to use;It addition, when the client of mobile terminal is upgraded and updated, this Bluetooth adapter just can add without carrying out change or extend corresponding function, favorable expandability.
Accompanying drawing explanation
The structural representation of a kind of Bluetooth adapter that Fig. 1 provides for the embodiment of the present invention.
Fig. 2 realizes, by Bluetooth adapter, the structural representation that mobile terminal controls the system of operation terminal for what the embodiment of the present invention provided.
Fig. 3 realizes, by Bluetooth adapter, the flow chart of steps that mobile terminal controls the method for operation terminal for what the embodiment of the present invention provided.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and the specific embodiments, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Embodiment one:
Refer to the structural representation of a kind of Bluetooth adapter that Fig. 1, Fig. 1 provide for the embodiment of the present invention.
Bluetooth adapter 100 includes data acquisition module 110, data decoder module 120, data processing module 130 and communication module 140.
Data acquisition module 110 is for gathering the data that peripheral mobile terminal sends.In the embodiment that the present invention provides, the general-purpose attribute configuration file layer (GATT, Generic Attribute Profile) of data acquisition module 110 obtains the data that mobile terminal sends.In the embodiment that the present invention provides, mobile terminal is provided with client software, it will be understood that owing on mobile terminal, client has several functions, as: Simple key board, simple mouse function, MultiMedia Keyboard function and function of game paddle, the data that difference in functionality is corresponding are different.In the embodiment that the present invention provides, mobile terminal is preferably mobile phone, it will be understood that mobile terminal can also be other the mobile terminal such as panel computer, individual palm PC.
Data decoder module 120 is for receiving the data gathered through data acquisition module 110, and data is classified.Being appreciated that data decoder module 120 is predetermined and be provided with identification module, the data received are classified by this identification module according to the difference of function.In the embodiment that the present invention provides, data decoder module 120 is according to the difference obtaining data function, data being classified according to the data form of " device id+device data ", wherein, device id includes keyboard ID, mouse ID, MultiMedia Keyboard ID and game paddle ID.It is appreciated that data decoder module 120 splits data into keyboard data, mouse data, MultiMedia Keyboard data and game paddle data respectively according to the device id obtaining data.Such as, when device id is keyboard ID, now definition device id number is 01, corresponding data are keyboard data, and when device id number is 02, corresponding data are mouse data, when device id number is 03, corresponding data are key MultiMedia Keyboard data, and when device id number is 04, corresponding data are game number handle data.
Data are carried out the result classified by data processing module 130 according to data decoder module 120, convert the data into human interface device data.Being appreciated that data processing module 130 receives through data decoder module 120 sorted data form is: " device id+device data ".When device id number is 01, now keyboard data is converted into standard HID keyboard data by data processing module 130, when device id number is 02, mouse data is converted into standard HID mouse data by data processing module 130, when device id number is 03, MultiMedia Keyboard data are converted into standard HID MultiMedia Keyboard data by data processing module 130, and when device id number is 04, game number handle data are converted into standard HID game number handle data by data processing module 130.
Human interface device data are transmitted to peripheral operation terminal by communication module 140.It is appreciated that one or more data in above-mentioned HID keyboard data, HID mouse data, HID MultiMedia Keyboard data and HID game number handle data are sent to the operation terminal of periphery by communication module 140.Being appreciated that and can HID data be sent on operable terminal by USB according to the HID protocol structure of this Bluetooth adapter with operation terminal definitions, this operation terminal can directly perform to operate accordingly, and without build-in services device software.In the embodiment that the present invention provides, operation terminal is preferably and supports the terminal of HID, being appreciated that can also be for supporting handheld terminal or the multimedia terminal of HID.
Above-mentioned Bluetooth adapter 100 is bluetooth 4.0 adapter.This Bluetooth adapter 100 can run in the operating systems such as Windows, Linux, Mac, Android.
The data that the peripheral mobile terminal collected sends are classified by above-mentioned Bluetooth adapter 100, and according to above-mentioned classification results, convert the data into HID data, and HID data are transmitted to peripheral operation terminal, peripheral operation terminal receives HID data, and performs corresponding operation.Above-mentioned Bluetooth adapter 100 directly can control operation terminal by the client of mobile terminal, and without operating terminal build-in services device software, easy to use.
Embodiment two:
Refer to the system 200 being realized mobile terminal control operation terminal by Bluetooth adapter that Fig. 2, Fig. 2 provide for the embodiment of the present invention two.
System 200 realizes mobile terminal by Bluetooth adapter and controls operation terminal, and it includes operating terminal 210, Bluetooth adapter 220 and mobile terminal 230.
Operation terminal 210 is to support the terminal of human interface device, handheld terminal or multimedia terminal.In the embodiment that the present invention provides, operation terminal 210 is preferably terminal.
Bluetooth adapter 220 is connected to operate terminal 210.Bluetooth adapter 220, structurally and functionally identical with the Bluetooth adapter 100 that the embodiment of the present invention one provides, here repeats no more.Being appreciated that HID data can be sent to operate in terminal 210 by USB by this Bluetooth adapter 220 with the HID protocol structure of operation terminal 210 definition, this operation terminal 210 can directly perform to operate accordingly, and without build-in services device software.
Mobile terminal 230 is provided with client.Mobile terminal 230 is communicated with Bluetooth adapter 220 by client.In the embodiment that the present invention provides, the client software of mobile terminal 230 uses Objective-C language to write, it is appreciated that, the client of mobile terminal 230 can carry out upgrading as other softwares and update, and this Bluetooth adapter 220 without any change with operation terminal 210 just can add or extend corresponding function.
It is appreciated that, what the above embodiment of the present invention provided realize mobile terminal by Bluetooth adapter controls the system 200 of operation terminal and sends data by mobile terminal 230, and receive through Bluetooth adapter 220, classify, and data are changed into HID data, and by the transmission of HID data to operation terminal 210, due to, HID data can be sent on operable terminal 210 by USB by this Bluetooth adapter 220 with the HID protocol structure of operation terminal 210 definition, this operation terminal 210 can directly perform to operate accordingly, and without build-in services device software, easy to operate.
Embodiment three:
Refer to Fig. 3, Fig. 3 and realize, by Bluetooth adapter, the flow chart of steps that mobile terminal controls the method 300 of operation terminal for what the embodiment of the present invention three provided.
The method 300 being realized mobile terminal control operation terminal by Bluetooth adapter is comprised the steps:
Step S310: be connected to Bluetooth adapter 220 operate terminal 210.Being appreciated that the USB interface in operation terminal 210 accesses Bluetooth adapter 220, operation terminal 210 can automatically update the driving of USB Bluetooth adapter 220.
Step S320: install client software on mobile terminal 230, and open client software.In the embodiment that the present invention provides, mobile terminal 230 is preferably mobile phone.It is appreciated that on mobile terminal 230 installation client software, and opens client software.If mobile terminal 230 is not turned on Bluetooth function, client can point out the Bluetooth function first opening mobile terminal 230;If mobile terminal 230 First Contact Connections Bluetooth adapter 220, then need to select corresponding Bluetooth adapter to be attached in " connection management " list of mobile terminal 230 client;If having connected Bluetooth adapter, mobile terminal 230 then can the most quickly connect.It is appreciated that on mobile terminal 230 that client has several functions, such as: Simple key board, simple mouse function, MultiMedia Keyboard function and function of game paddle.
Step S330: Bluetooth adapter 220 gathers the data that mobile terminal 230 sends, and data is classified, according to above-mentioned classification results, converts the data into human interface device data, and by the transmission of human interface device data to operation terminal 210.nullIt is appreciated that,Owing on mobile terminal 230, client has several functions,As: Simple key board、Simple mouse function、MultiMedia Keyboard function and function of game paddle,The data that difference in functionality is corresponding are different,Bluetooth adapter 220 gathers the client corresponding function data of mobile terminal 230,In the embodiment that the present invention provides,The form of data is defined as: " device id+device data ",It is appreciated that,Keyboard data is splitted data into respectively according to obtaining data、Mouse data、MultiMedia Keyboard data and game paddle data,Such as,When device id number is 01,Corresponding data are divided into keyboard data,When device id number is 02,Corresponding data are mouse data,When device id number is 03,Corresponding data are key MultiMedia Keyboard data,When device id number is 04,Corresponding data are game number handle data;Bluetooth adapter 220 is additionally operable to sorted data are converted into HID data, it is appreciated that, when device id number is 01, keyboard data is converted into standard HID keyboard data, when device id number is 02, mouse data is converted into standard HID mouse data, when device id number is 03, MultiMedia Keyboard data are converted into standard HID MultiMedia Keyboard data, when device id number is 04, game number handle data are converted into standard HID game number handle data.
Step S340: operation terminal 210 receives human interface device data and performs corresponding operation.It is appreciated that operation terminal 210 can accept HID data, and performs corresponding operation.It is appreciated that, HID data can be sent on operable terminal 210 by USB by this Bluetooth adapter 220 with the HID protocol structure of operation terminal 210 definition, this operation terminal 210 can directly perform to operate accordingly, and without build-in services device software, easy to operate.
Below for specific embodiment, above-mentioned steps flow chart is described in detail.
Referring to table 1, table 1 realizes mobile terminal by Bluetooth adapter and controls operation terminal for what the embodiment of the present invention provided and realize the functional relationship of Simple key board and mouse.
Table 1
Refer to table 2 and table 3, table 2 and table 3 and realize mobile terminal by Bluetooth adapter and control operation terminal for what the embodiment of the present invention provided and realize the functional relationship of MultiMedia Keyboard.
Table 2
Table 3
Referring to table 4, table 4 realizes mobile terminal by Bluetooth adapter and controls operation terminal for what the embodiment of the present invention provided and realize the functional relationship of game paddle.
Table 4
Referring to table 5, table 5 realizes, by Bluetooth adapter, the functional relationship that mobile terminal control operation terminal realizes surfing the web for what the embodiment of the present invention provided.
Table 5
The above embodiment of the present invention provide by Bluetooth adapter realize mobile terminal control operation terminal method send data by mobile terminal, and receive through Bluetooth adapter, classification, and data are changed into HID data, and HID data are transmitted to operating terminal, due to, HID data can be sent on operable terminal by USB by this Bluetooth adapter with the HID protocol structure of operation terminal definitions, this operation terminal can directly perform to operate accordingly, thus realize Simple key board mouse, MultiMedia Keyboard, the function such as game paddle or surfing on the net, and without build-in services device software, easy to operate.
The data that the peripheral mobile terminal collected sends are classified by the Bluetooth adapter that the above embodiment of the present invention provides, and according to above-mentioned classification results, convert the data into HID data, and HID data are transmitted to peripheral operation terminal, peripheral operation terminal receives HID data, and performs corresponding operation.Above-mentioned Bluetooth adapter directly can control operation terminal by the client of mobile terminal, and without operating terminal build-in services device software, easy to use.
The system and method being realized mobile terminal control operation terminal by Bluetooth adapter that the above embodiment of the present invention provides, data are sent by mobile terminal, and receive through Bluetooth adapter, classify, and data are changed into HID data, and HID data are transmitted to operating terminal, due to, HID data can be sent on operable terminal by USB by this Bluetooth adapter with the HID protocol structure of operation terminal definitions, this operation terminal can directly perform to operate accordingly, and without build-in services device software, easy to operate.
The above, it it is only presently preferred embodiments of the present invention, not the present invention is made any pro forma restriction, although the present invention is disclosed above with preferred embodiment, but it is not limited to the present invention, any those skilled in the art, in the range of without departing from technical solution of the present invention, when the technology contents of available the disclosure above makes a little change or is modified to the Equivalent embodiments of equivalent variations, in every case it is without departing from technical solution of the present invention content, any simple modification above example made according to the technical spirit of the present invention, equivalent variations and modification, all still fall within the range of technical solution of the present invention.