CN101340459A - Remote control method based on Bluetooth - Google Patents

Remote control method based on Bluetooth Download PDF

Info

Publication number
CN101340459A
CN101340459A CNA2008101354455A CN200810135445A CN101340459A CN 101340459 A CN101340459 A CN 101340459A CN A2008101354455 A CNA2008101354455 A CN A2008101354455A CN 200810135445 A CN200810135445 A CN 200810135445A CN 101340459 A CN101340459 A CN 101340459A
Authority
CN
China
Prior art keywords
bluetooth
control appliance
bluetooth terminal
terminal
sends
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2008101354455A
Other languages
Chinese (zh)
Inventor
朱多宏
左雪梅
张芝萍
傅启洪
杨鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CNA2008101354455A priority Critical patent/CN101340459A/en
Publication of CN101340459A publication Critical patent/CN101340459A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a Bluetooth-based remote control method. A virtual message channel is established between a control device and a Bluetooth terminal by using Bluetooth to control an embedded Bluetooth terminal, the control device sends an operation command to the Bluetooth terminal by the message channel, and the Bluetooth terminal feeds back a feedback message to the control device by the virtual message channel. The Bluetooth-based remote control method can avoid the shortcomings and the imperfections of the existing control technology of an embedded device and efficiently realize the control of products which are not convenient for being inserted by USB lines or for even having no USB interfaces and a plurality of ex-factory products simply. The use of the method of invention can control the embedded bluetooth device, thereby saving a mass of manpower and material resources and saving development time.

Description

A kind of far-end control method based on bluetooth
Technical field
The present invention relates to a kind of remote controlling technology, it is based on the application of bluetooth Serial Port Profile (virtual serial port agreement).Belonging to communication and control field, is the application at Bluetooth terminal, proposes a kind of remote control technology that is applicable to Bluetooth terminal.
Background technology
Along with the fast development of computer and communication product technology, the product that embedded system combines as advanced person's computer technology, semiconductor technology and electronic technology, it almost is applied to all electronics and electric equipment.The development and application development of embedded system is very fast, and high-end flush bonding processor has obtained general application.SOC (system on a chip), the development that the degree of depth embeds, software is complicated have brought challenge for the control of embedded product.
In addition, Bluetooth technology resembles a kind of ubiquitous digitized nerve endings, and existing diverse network terminal equipment, various informationalized equipment couple together in closely.Moreover, just because of it has been arranged, people also can innovation and creation go out manyly also not to be had now, the new network terminal and intelligentized information equipment and product, and is penetrated into each corner of social life.This shows that bluetooth applications will become a kind of universal phenomenon in people's life.
Traditional embedded Control method is: control appliance PC (Personal Computer, personal computer) links to each other with embedded system by serial ports, control appliance is by the feedback information of the agreement such as Telnet to embedded system transmit operation instruction and reception embedded system, need to connect USB (Universal Serial Bus between control appliance and the slave (equipment of embedded system promptly is installed), USB) Serial Port Line, this has not only limited the kind of embedded product greatly, returns control and has brought a lot of inconveniences.The drawback that traditional control technology and instrument exist is: need wired connection, dumb, be not suitable for especially equipment dispatched from the factory be embedded in applied environment after, need the situation of tracking Control.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of long-range control method based on bluetooth Serial Port Profile, possesses the flexibility that has line traffic control not have, be replenishing of wired control device, the equipment of being particularly suitable for is embedded under the concrete environment, the situation of inconvenient wired connection.
In order to address the above problem, the invention provides a kind of far-end control method based on bluetooth, comprising:
Control appliance and Bluetooth terminal are carried out Bluetooth pairing be connected, set up virtual message channel by virtual serial port agreement SPP service and described Bluetooth terminal;
Described control appliance instructs to described Bluetooth terminal transmit operation by virtual SPP message channel;
Bluetooth terminal is resolved, is handled by the bluetooth analysis program after receiving operational order, is used by control then corresponding result is sent to control appliance by virtual SPP message channel;
After all operations instruction sent and is finished, control appliance was nullified the SPP message channel, disconnects being connected with the bluetooth of Bluetooth terminal.
Further, describedly control appliance and Bluetooth terminal are carried out Bluetooth pairing is connected and the process of setting up virtual message channel is:
Described control appliance sends the bluetooth connection request to described Bluetooth terminal;
Described Bluetooth terminal is received described bluetooth connection request, and described bluetooth connection request is verified, if checking is passed through, sends bluetooth to described control appliance and connects affirmation, sets up bluetooth and connects;
Described control appliance starts the SPP service, sets up virtual message channel with described Bluetooth terminal.
Further, described control appliance is provided with the relevant port parameter of this virtual message channel port by the Telnet agreement after setting up virtual message passage with described Bluetooth terminal.
Further, described control appliance sends to Bluetooth terminal with described operational order by virtual SPP message channel by the Telnet agreement.
Further, described control appliance with the process that described operational order sends to described Bluetooth terminal is:
The main frame of control appliance sends to bluetooth protocol repertory with described operational order, described bluetooth protocol repertory is converted into corresponding data with described operational order, send to first Bluetooth chip by universal asynchronous reception/dispensing device UART or general-purpose serial bus USB then, first Bluetooth chip sends the data to the described Bluetooth terminal of far-end again by radio-frequency antenna.
Further, described Bluetooth terminal receives that the process of resolving, handling by the bluetooth analysis program behind the operational order is:
The operational order data that Bluetooth terminal sends by the second Bluetooth chip receiving control apparatus, described operational order data are sent to the main frame of Bluetooth terminal through UART or USB, and the main frame of described Bluetooth terminal resolves message, handle by command analysis program Shell.
Further, described Bluetooth terminal with the process that described result sends to described control appliance is:
Control program of the host computer invokes of described Bluetooth terminal, processing result information is converted into corresponding data and sends to bluetooth protocol repertory, send to described second Bluetooth chip by bluetooth protocol repertory through UART or USB, described second Bluetooth chip sends to described control appliance by radio-frequency antenna with corresponding data again.
Further, after described control appliance receives the result of described Bluetooth terminal transmission, continuing transmit operation instructs to described Bluetooth terminal, described Bluetooth terminal carries out respective handling after receiving described operational order, then result is sent to described control appliance, all operations instruction sends and finishes on control appliance.
Further, described control appliance is presented at described result on the screen of control appliance after receiving the result of the operational order that described Bluetooth terminal sends.
Further, described control appliance comprises personal computer or personal digital assistant.
The present invention controls the embedded Bluetooth terminal by using bluetooth, between control appliance and Bluetooth terminal, set up virtual message channel, control appliance sends to Bluetooth terminal by message channel with operational order, and Bluetooth terminal is presented at corresponding feedback message on the screen of control appliance by virtual message channel through resolving, handling.Thereby can avoid the shortcoming and the imperfection of present embedded device control technology, simply and efficiently realize the product of being inconvenient to insert the USB line even do not have USB interface and the control of the product that some have dispatched from the factory.Use method of the present invention that the embedded Bluetooth terminal is controlled, both saved lot of manpower and material resources, saved the time of exploitation again.In addition,, can only control the limitation of an embedded Bluetooth terminal simultaneously, a main frame can be linked to each other with a plurality of embedded Bluetooth terminals simultaneously, finish automatic control if it and supporting software combination can be broken through a computer and have only serial ports one or two.
Description of drawings
Fig. 1 is the connection status figure based on control appliance and Bluetooth terminal in the far-end control method of bluetooth of the present invention;
Fig. 2 is the interacting message schematic diagram between control appliance of the present invention and the Bluetooth terminal;
Fig. 3 is that schematic diagram is handled in control appliance inside story of the present invention;
Fig. 4 is that schematic diagram is handled in Bluetooth terminal inside story of the present invention.
Embodiment
The invention will be further described below in conjunction with the drawings and specific embodiments, can be implemented so that those skilled in the art can better understand the present invention also, but illustrated embodiment is not as a limitation of the invention.
As shown in Figure 1, the present invention realizes the control to the embedded Bluetooth terminal with blue tooth interface by being connected 103 setting up wireless bluetooth between control appliance 101 and the Bluetooth terminal 102.Since adopted wireless connections, so it is its connection is flexible, low to the environmental requirement of embedded Bluetooth terminal surrounding.
As shown in Figure 2, be that control appliance utilizes bluetooth to connect the flow process that Bluetooth terminal is controlled.In the present embodiment, control appliance refers to PC (Personal Computer, personal computer) or PDA (PersonalDigital Assistant, personal digital assistant), in other embodiments, control appliance also can be other equipment with blue tooth interface, remote controller for example, mobile phone etc.The reciprocal process of PC/PDA and Bluetooth terminal is:
Step 201:PC/PDA sends the bluetooth connection request to Bluetooth terminal;
Step 202: Bluetooth terminal is received the bluetooth connection request, and this bluetooth connection request is verified, if the verification passes, sends bluetooth to PC/PDA and connects and confirm, sets up bluetooth between PC/PDA and the Bluetooth terminal and is connected; Then, PC/PDA starts the SPP service, sets up virtual message channel with Bluetooth terminal;
After setting up virtual message channel, PC/PDA can also be provided with the relevant port parameter of virtual serial port (being virtual message channel port) by the Telnet agreement.
Step 203:PC/PDA instructs to the Bluetooth terminal transmit operation by virtual SPP message channel;
PC/PDA can send to Bluetooth terminal with operational order by virtual SPP message channel by the Telnet agreement.
Step 204: Bluetooth terminal is resolved, is handled by the bluetooth analysis program after receiving operational order, uses by control then corresponding result is sent to PC/PDA, and result also is to send by virtual SPP message channel;
A kind of controlling mechanism that refers on the bluetooth protocol repertory is used in above-mentioned control, should be used for being implemented in the operational order of control appliance to Bluetooth terminal by control.The bluetooth analysis program can adopt the Shell program.When needing, can repeating step 203~204, finish transmission, execution and the feedback of other operational order.In addition, if desired, for example the control personnel need read the data of Bluetooth terminal, result can be presented on the screen of PC/PDA, and the demonstration of result can be finished by " hyper terminal " that operate on the PC/PDA.
Step 205: after all operational orders all sent and are finished, PC/PDA sent to Bluetooth terminal and disconnects the bluetooth connection request;
PC/PDA can require to disconnect bluetooth and connect by sending Disconnect message to Bluetooth terminal.Disconnect message is a kind of message that is used for " disconnection " by developer's definition.
Step 206: after Bluetooth terminal is received the disconnection bluetooth connection request of PC/PDA transmission, send the disconnection bluetooth to PC/PDA and connect acknowledge message, finish and nullify the SPP message channel, disconnection PC/PDA is connected with the bluetooth of Bluetooth terminal.
Wherein, in control appliance inside, the process of transmitting of operational order comprises as shown in Figure 3:
The main frame of control appliance (being first main frame among Fig. 3) sends to bluetooth protocol repertory by Telnet agreement (" hyper terminal " program of for example using Windows to carry) with operational order, bluetooth protocol repertory is converted into corresponding data with operational order, then by UART (Universal AsynchronousReceiver/Transmitter, universal asynchronous reception/dispensing device) or USB (Universal Serial Bus, USB) send to first Bluetooth chip, first Bluetooth chip sends the data to the Bluetooth terminal of far-end again by radio-frequency antenna.
In Bluetooth terminal inside, receive operational order and handle, the process that again result is sent to control appliance comprises as shown in Figure 4:
The operational order data that Bluetooth terminal sends by the second Bluetooth chip receiving control apparatus, the operational order data are sent to the main frame (being second main frame among Fig. 4) of Bluetooth terminal through UART or USB, and the main frame of Bluetooth terminal resolves message, handle by command analysis program Shell; After disposing, control program of the host computer invokes of Bluetooth terminal, processing result information is converted into corresponding data and sends to bluetooth protocol repertory, send to second Bluetooth chip by bluetooth protocol repertory through UART or USB, second Bluetooth chip sends to control appliance by radio-frequency antenna with corresponding data again.After control appliance receives result, result is exported on screen by " hyper terminal " that operate on the control appliance.
Below be an application example of the present invention,, on-vehicle Bluetooth equipment controlled being main frame with PC (" hyper terminal " program of using Windows to carry) with in the example.
This example needs following step:
Step 1:PC sends pairing request to on-vehicle Bluetooth equipment, and on-vehicle Bluetooth is set up bluetooth through checking with PC and is connected.PC startup SPP serves also and on-vehicle Bluetooth equipment is set up a virtual message channel.After succeeding in registration, message channel can be provided with the relevant port parameter of virtual serial port by Windows " hyper terminal " program.
Step 2:PC sends to operational order the on-vehicle Bluetooth equipment of far-end by virtual SPP message channel by Telnet agreement (" hyper terminal " program of using Windows to carry).The PC inside story is handled as shown in Figure 3." hyper terminal " program that first main frame uses Windows to carry sends to bluetooth protocol repertory with operational order, bluetooth protocol repertory is corresponding data with message transformation, give first Bluetooth chip by UART or USB then, first Bluetooth chip sends to message by radio-frequency antenna the on-vehicle Bluetooth equipment of far-end again.
Step 3: on-vehicle Bluetooth equipment is received the message that far-end PC sends, and message is handled, and then result is sent to PC, by " hyper terminal " that operate on the PC result is exported on screen.On-vehicle Bluetooth device interior Message Processing as shown in Figure 4.After on-vehicle Bluetooth equipment receives the message of far-end PC transmission by second Bluetooth chip, give second main frame through UART or USB with message; Second main frame resolves message, handle by command analysis program Shell; Control program of second host computer invokes is corresponding data with the result message transformation then, issues second Bluetooth chip by bluetooth protocol repertory through UART or USB, and second Bluetooth chip sends to message by radio-frequency antenna the PC of far-end again.
Step 4: repeating step 2, step 3, to on-vehicle Bluetooth equipment transmit operation instruction, Bluetooth terminal is resolved instruction result is shown on the screen of PC by PC.
Step 5:PC sends Disconnect message to on-vehicle Bluetooth equipment, nullifies the SPP message channel, disconnects bluetooth and connects.
As seen, above-mentioned example has succinctly been realized the control to on-vehicle Bluetooth equipment easily, effectively avoided the defective and the deficiency that exist in the prior art scheme, guaranteed, thereby provide a kind of efficient, feasible control method for embedded device the control rapidly and efficiently of various embedded devices.
The above embodiment is the preferred embodiment that proves absolutely that the present invention lifts, and protection scope of the present invention is not limited thereto.Being equal to that those skilled in the art are done on basis of the present invention substitutes or conversion, all within protection scope of the present invention.Protection scope of the present invention is as the criterion with claims.

Claims (10)

1, a kind of far-end control method based on bluetooth is characterized in that, comprising:
Control appliance and Bluetooth terminal are carried out Bluetooth pairing be connected, set up virtual message channel by virtual serial port agreement SPP service and described Bluetooth terminal;
Described control appliance instructs to described Bluetooth terminal transmit operation by virtual SPP message channel;
Bluetooth terminal is resolved, is handled by the bluetooth analysis program after receiving operational order, is used by control then corresponding result is sent to control appliance by virtual SPP message channel;
After all operations instruction sent and is finished, control appliance was nullified the SPP message channel, disconnects being connected with the bluetooth of Bluetooth terminal.
2, the method for claim 1 is characterized in that, describedly control appliance and Bluetooth terminal is carried out Bluetooth pairing is connected and the process of setting up virtual message channel is:
Described control appliance sends the bluetooth connection request to described Bluetooth terminal;
Described Bluetooth terminal is received described bluetooth connection request, and described bluetooth connection request is verified, if checking is passed through, sends bluetooth to described control appliance and connects affirmation, sets up bluetooth and connects;
Described control appliance starts the SPP service, sets up virtual message channel with described Bluetooth terminal.
3, method as claimed in claim 2 is characterized in that, described control appliance is provided with the relevant port parameter of this virtual message channel port by the Telnet agreement after setting up virtual message passage with described Bluetooth terminal.
4, the method for claim 1 is characterized in that, described control appliance sends to Bluetooth terminal with described operational order by virtual SPP message channel by the Telnet agreement.
5, method as claimed in claim 4 is characterized in that, described control appliance with the process that described operational order sends to described Bluetooth terminal is:
The main frame of control appliance sends to bluetooth protocol repertory with described operational order, described bluetooth protocol repertory is converted into corresponding data with described operational order, send to first Bluetooth chip by universal asynchronous reception/dispensing device UART or general-purpose serial bus USB then, first Bluetooth chip sends the data to the described Bluetooth terminal of far-end again by radio-frequency antenna.
6, the method for claim 1 is characterized in that, described Bluetooth terminal receives that the process of resolving, handling by the bluetooth analysis program behind the operational order is:
The operational order data that Bluetooth terminal sends by the second Bluetooth chip receiving control apparatus, described operational order data are sent to the main frame of Bluetooth terminal through UART or USB, and the main frame of described Bluetooth terminal resolves message, handle by command analysis program Shell.
7, method as claimed in claim 6 is characterized in that, described Bluetooth terminal with the process that described result sends to described control appliance is:
Control program of the host computer invokes of described Bluetooth terminal, processing result information is converted into corresponding data and sends to bluetooth protocol repertory, send to described second Bluetooth chip by bluetooth protocol repertory through UART or USB, described second Bluetooth chip sends to described control appliance by radio-frequency antenna with corresponding data again.
8, the method for claim 1, it is characterized in that, after described control appliance receives the result of described Bluetooth terminal transmission, continuing transmit operation instructs to described Bluetooth terminal, described Bluetooth terminal carries out respective handling after receiving described operational order, then result is sent to described control appliance, all operations instruction sends and finishes on control appliance.
9, the method for claim 1 is characterized in that, described control appliance is presented at described result on the screen of control appliance after receiving the result of the operational order that described Bluetooth terminal sends.
10, as any described method in the claim 1~9, it is characterized in that described control appliance comprises personal computer or personal digital assistant.
CNA2008101354455A 2008-08-07 2008-08-07 Remote control method based on Bluetooth Pending CN101340459A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008101354455A CN101340459A (en) 2008-08-07 2008-08-07 Remote control method based on Bluetooth

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008101354455A CN101340459A (en) 2008-08-07 2008-08-07 Remote control method based on Bluetooth

Publications (1)

Publication Number Publication Date
CN101340459A true CN101340459A (en) 2009-01-07

Family

ID=40214411

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008101354455A Pending CN101340459A (en) 2008-08-07 2008-08-07 Remote control method based on Bluetooth

Country Status (1)

Country Link
CN (1) CN101340459A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033838A (en) * 2010-10-27 2011-04-27 东莞宇龙通信科技有限公司 Terminal control method, terminal and computer
CN102331727A (en) * 2011-08-24 2012-01-25 华为软件技术有限公司 Bluetooth media play controlling method and relevant device
CN103312385A (en) * 2012-03-09 2013-09-18 深圳市三诺电子有限公司 Bluetooth device and method for controlling sound reception of bluetooth device
CN103309832A (en) * 2012-03-08 2013-09-18 联想(北京)有限公司 Pairing recognition method and receiver
CN104539493A (en) * 2015-01-12 2015-04-22 王征 Intelligent terminal system and method of management and control over intelligent household electric appliances based on USB interface
CN107145360A (en) * 2017-05-19 2017-09-08 北京望远传媒有限公司 A kind of screen message acquisition method and device
CN107729264A (en) * 2011-10-17 2018-02-23 康佳集团股份有限公司 A kind of method for controlling peripheral serial equipment
CN109963354A (en) * 2017-12-26 2019-07-02 新智数字科技有限公司 Intelligent terminal data transmission method and Transmission system
CN110620844A (en) * 2019-09-09 2019-12-27 百度在线网络技术(北京)有限公司 Program starting method, device, equipment and storage medium

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033838A (en) * 2010-10-27 2011-04-27 东莞宇龙通信科技有限公司 Terminal control method, terminal and computer
CN102331727A (en) * 2011-08-24 2012-01-25 华为软件技术有限公司 Bluetooth media play controlling method and relevant device
CN107729264A (en) * 2011-10-17 2018-02-23 康佳集团股份有限公司 A kind of method for controlling peripheral serial equipment
CN107729264B (en) * 2011-10-17 2020-06-16 康佳集团股份有限公司 Method for controlling peripheral serial port equipment
CN103309832A (en) * 2012-03-08 2013-09-18 联想(北京)有限公司 Pairing recognition method and receiver
CN103312385A (en) * 2012-03-09 2013-09-18 深圳市三诺电子有限公司 Bluetooth device and method for controlling sound reception of bluetooth device
CN104539493A (en) * 2015-01-12 2015-04-22 王征 Intelligent terminal system and method of management and control over intelligent household electric appliances based on USB interface
CN104539493B (en) * 2015-01-12 2018-05-18 王征 Based on the intelligent terminal that USB interface is realized to the managing and control system and its implementation of intelligent appliance
CN107145360A (en) * 2017-05-19 2017-09-08 北京望远传媒有限公司 A kind of screen message acquisition method and device
CN109963354A (en) * 2017-12-26 2019-07-02 新智数字科技有限公司 Intelligent terminal data transmission method and Transmission system
CN110620844A (en) * 2019-09-09 2019-12-27 百度在线网络技术(北京)有限公司 Program starting method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN101340459A (en) Remote control method based on Bluetooth
US6205495B1 (en) Wireless interface for standard modems
CN101261550B (en) Control management system
CN102651915B (en) Intelligent wireless router and wireless communication system
CN103024504B (en) Based on the intelligent remote control system of digital TV set-top box
CN103458399B (en) Intelligent WIFI module and method for configuring device supporting WIFI connection into WIFI network
TW201409887A (en) Smart home network system and its smart gateway
EP2466480B1 (en) Dongle and method for operating external input means, and external input system with the dongle
TWM452554U (en) Smart home network system and its smart gateway
CN105577717B (en) Control method and system compatible with connection of multiple different electrical appliances
TW201448607A (en) Smart home network system and method for registering household electronic device
CN104506516A (en) Gateway for conversion between Modbus RTU/ASCII (remote terminal unit/American standard code for information interchange) communication protocol and Modbus TCP (transmission control protocol) communication protocol and implementation method for gateway
US9874860B2 (en) Providing user interface of a frequency converter over a wireless connection
CN103916852A (en) Data transmission method and mobile terminal
CN103561087A (en) Equipment interconnection method and device
CN101770436A (en) Personal computer (PC) side software realization method and system based on wireless connection
CN105101061A (en) Bluetooth communication realization method by means of AT command
CN102737003B (en) A kind of method and device of simulating USB device
CN105992129A (en) Bluetooth matching method and device
CN211152101U (en) Wireless screen transmission equipment and interaction system
WO2002059753A1 (en) Remote control system, and microserver
CN103249174B (en) Method and electronic equipment that a kind of control electronics connect
CN101794205A (en) System and equipment for realizing wireless control of desktop personal computer (PC)
CN101102403A (en) Video input system and method for using mobile phone camera as external camera of external device
CN102932193A (en) Network device, management terminal and configuration management system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20090107