CN100454867C - Method and system of communicating via bluetooth serial port - Google Patents

Method and system of communicating via bluetooth serial port Download PDF

Info

Publication number
CN100454867C
CN100454867C CNB2005100555383A CN200510055538A CN100454867C CN 100454867 C CN100454867 C CN 100454867C CN B2005100555383 A CNB2005100555383 A CN B2005100555383A CN 200510055538 A CN200510055538 A CN 200510055538A CN 100454867 C CN100454867 C CN 100454867C
Authority
CN
China
Prior art keywords
serial ports
unit
bluetooth
target
bluetooth serial
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.)
Expired - Fee Related
Application number
CNB2005100555383A
Other languages
Chinese (zh)
Other versions
CN1835464A (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CNB2005100555383A priority Critical patent/CN100454867C/en
Publication of CN1835464A publication Critical patent/CN1835464A/en
Application granted granted Critical
Publication of CN100454867C publication Critical patent/CN100454867C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention discloses a method for carrying out communication through Bluetooth serial ports, which is used for source device and target devices, which have Bluetooth serial ports. Each source device is provided with at least one source serial port using unit, and each target device is provided with a target serial port using unit corresponding to the source serial port using unit. The present invention is characterized in that firstly, each source serial port using unit in the source device is allocated with an identifier by using the present invention, a corresponding relationship table of the identifier and a target serial port is created; when connection state information of a local Bluetooth serial port is received by a target device, the identifier allocated to the source serial port using unit is obtained; then, the target serial port using unit corresponding to the source serial port using unit is started according to the corresponding relationship table of the identifier and the target serial port; finally, the Bluetooth serial port is opened for communication. The present invention realizes the automatic scheduling of the serial using units, simplifies operation difficulty degree and enhances the experience feeling of users.

Description

A kind of method and system that communicate by bluetooth serial ports
Technical field
The present invention relates to Bluetooth wireless technology, be specifically related to the serial port communication technology in the Bluetooth technology.
Background technology
SPP (Serial Port Profile, the serial line interface application framework) be an important component part in the bluetooth specification, the source device at bluetooth serial ports two ends is connected by Bluetooth signal wirelessly with target device.The bluetooth software that is positioned at the SPP bottom is responsible for bluetooth serial ports establishment of connection and disconnection, and the bluetooth serial ports monitoring unit that is positioned at target device inside is learned the connection status of current bluetooth serial ports by communicating by letter with the bluetooth software of bottom.
At present, the method that communicates by bluetooth serial ports is: the user uses unit starting with the serial ports of target device, the serial ports of described target device uses the unit to open bluetooth serial ports by the mode that scans current available serial ports or user's appointment then, then send handshaking information by target device to source device, source device communicates by described bluetooth serial ports and target device after receiving described handshaking information.
As mentioned above, in the prior art, before source device and target device carry out Bluetooth communication, the serial ports of target device must be used the unit start in advance, because this start-up course must be realized by user's manual intervention in the prior art, causes user's complicated operating process.Further, because same bluetooth serial ports only allows a serial ports to use the unit to use this bluetooth serial ports at synchronization, therefore when a plurality of serial ports use the same bluetooth serial ports of units shared, use the unit if switch to other serial ports, then at first need to close the serial ports that uses this serial ports and use the unit, start another serial ports then and use the unit, at this moment, the start-up by hand serial ports uses the mode of unit complicated more in the prior art, reduces sense of experience of users and is subjected to.
Summary of the invention
The technical problem to be solved in the present invention is: a kind of method that communicates by bluetooth serial ports is provided, can realizes that serial ports uses the automatic scheduling of unit.
For solving the problems of the technologies described above, the invention provides a kind of method that communicates by bluetooth serial ports, be used to have the source device and the target device of bluetooth serial ports, source device has at least one subject string mouth and uses the unit, and target device has the target serial ports use unit corresponding with subject string mouth use unit, and described method comprises step:
1) is that each subject string mouth uses the unit distribution marker in source device, and in target device, creates the mapping table of identifier and target serial ports use unit;
2) target device receives the local bluetooth serial ports when being in the information of connection status, obtains the subject string mouth and uses the unit to receive the identifier that sends after this handshaking information;
3), start the subject string mouth and use the target serial ports of unit correspondence to use the unit according to identifier and mapping table;
4) opening bluetooth serial ports communicates.
Wherein, step 2) information that receives of described target device also comprises string slogan information, and the described process of opening described bluetooth serial ports of step 4) is specially:
41) the target serial ports that the string slogan of described bluetooth serial ports is sent to target device uses the unit;
42) the target serial ports of target device uses the unit to open described bluetooth serial ports according to described string slogan.
In addition, step 4) can also be opened bluetooth serial ports in the following manner:
The target serial ports of described target device uses the unit to carry out bluetooth serial ports scanning, and the bluetooth serial ports that scans is opened.
Further, described step also comprises:
After off-state information that receives bluetooth serial ports and string slogan information, close described bluetooth serial ports according to described string slogan, stop communication.
Wherein, the process of closing described bluetooth serial ports according to described string slogan specifically comprises step:
The target serial ports that described string slogan is sent to described target device uses the unit;
The target serial ports of described target device uses the unit to close and the corresponding bluetooth serial ports of described string slogan.
In addition, also comprise step:
Close described target serial ports and use the unit.
Wherein, close described target serial ports and use the step of unit to carry out, or use the unit to carry out, or carry out by hand by the user by described target serial ports by the bluetooth serial ports monitoring unit.
The invention also discloses a kind of system that communicates by bluetooth serial ports, comprise source device, target device and lay respectively at source device and target device on bluetooth serial ports, wherein source device has at least one subject string mouth use unit, and target device has to be used to detect whether bluetooth serial ports is in the bluetooth serial ports monitoring unit of connection status and use the corresponding target serial ports in unit to use the unit with the subject string mouth, also comprises:
Identify unit is used for using the unit distribution marker at source device for each subject string mouth;
Matching unit is used for the corresponding relation that record identifier and target serial ports use the unit;
Scheduling unit, use the unit to be connected with monitoring unit, target serial ports with matching unit, be used for when bluetooth serial ports is in connection status, obtain the identifier that the subject string mouth uses the unit to distribute, determine that according to the corresponding relation in identifier and the matching unit target serial ports uses the unit, and start this target serial ports use unit.
Wherein, described matching unit is positioned at described bluetooth serial ports monitoring unit inside.
In addition, described matching unit can also be arranged in the registration table of described target device.
Compared with prior art, the invention has the beneficial effects as follows: the present invention is by setting up the mapping table that serial ports uses the unit and is used to identify the identifier of its identity, and utilize the bluetooth serial ports monitoring unit can learn the characteristic of bluetooth serial ports establishment of connection and off-state, connect when setting up when detecting bluetooth serial ports, the bluetooth serial ports monitoring unit is searched the serial ports use unit that needs start according to described mapping table, and then with its startup, realize that serial ports uses the automatic scheduling of unit, reach the difficulty that simplifies the operation, improve the purpose that sense of experience of users is subjected to.
In addition, when bluetooth serial ports foundation is connected with disconnection, the target serial ports of the string slogan information notification target equipment that the bluetooth serial ports monitoring unit will carry from the detection information of obtaining uses the unit, make this target serial ports use the unit directly bluetooth serial ports to be opened according to the string slogan, and needn't specify or serial ports scanning, thereby further simplify the operation difficulty by the user.
In addition, when the bluetooth serial ports monitoring unit detects the information of bluetooth serial ports disconnection, can notify described target serial ports to use the unit to close the serial ports that is using by the string slogan information that comprises in the detection information, can close described target serial ports by bluetooth serial ports monitoring unit or automatic mode then and use the unit, thereby convenient user's operation further improves sense of experience of users and is subjected to.
Description of drawings
Fig. 1 is the method flow diagram that use bluetooth serial ports of the present invention communicates.
Fig. 2 is the structural representation of the system that communicates of use bluetooth serial ports of the present invention.
Embodiment
The equipment at bluetooth serial ports two ends connects wirelessly by Bluetooth signal.Different with common serial ports is, the realization of bluetooth serial ports depends on the bluetooth software of bottom, as bluetooth driver and bluetooth protocol repertory, and the bluetooth software of bottom is responsible for bluetooth serial ports establishment of connection and disconnection, the bluetooth serial ports monitoring unit is by communicating by letter with the bluetooth software of bottom, can detect the connection status of bluetooth serial ports, thereby learn when bluetooth serial ports is not used or when is in user mode.But, use the bluetooth serial ports method for communicating not make full use of this characteristic of bluetooth serial ports monitoring unit at present, use bluetooth serial ports to communicate but continued to use the mode identical with common serial ports.Invention core of the present invention is exactly to make full use of the characteristic that the bluetooth serial ports monitoring unit can detect the bluetooth serial ports state, by the monitoring that bluetooth serial ports is connected, add capability negotiation, need not the manual switching of user and can realize that a plurality of target serial ports use the unit can shared bluetooth serial ports, use the unit can realize automatic scheduling according to the target serial ports of bluetooth serial ports other end operation.
A kind of method that communicates by bluetooth serial ports of the present invention, be used to have the source device and the target device of bluetooth serial ports, source device has at least one subject string mouth and uses the unit, and target device has the target serial ports use unit corresponding with use unit, source, the present invention includes flow process and communication process are set:
Desire realizes the function that described bluetooth serial ports monitoring unit uses the unit to dispatch automatically to the target serial ports, the target serial ports that at first needs the bluetooth serial ports monitoring unit can learn when the bluetooth serial ports state changes need to dispatch uses the unit, for this reason, the of the present invention setting in the flow process, be that each source target serial ports uses the unit distribution marker in source device, as showing that the target serial ports uses the unique identification of unit identity; And the corresponding relation of establishment identifier and target serial ports use unit.Because it is one to one that identifier and described target serial ports use the unit, therefore receive the local bluetooth serial ports and be in suitablely when connecing the information of state at target device, obtain the identifier that source target serial ports uses the unit distribution; According to identifier and mapping table, start source target serial ports and use the target serial ports of unit correspondence to use the unit; Opening bluetooth serial ports communicates.
After described bluetooth serial ports monitoring unit used unit starting with described target serial ports, the target serial ports used the unit that bluetooth serial ports is opened, and the equipment at two ends just can carry out Bluetooth communication then.The serial ports of process the present invention uses the unit to open to(for) the target serial ports has made full use of the characteristic that the bluetooth serial ports monitoring unit can be learned the bluetooth serial ports state, after the bluetooth serial ports monitoring unit uses unit starting with the target serial ports, the string slogan of bluetooth serial ports is sent to this target serial ports use the unit; The target serial ports uses the unit to open described bluetooth serial ports according to described string slogan then.
In addition, the target serial ports uses the unit can or manually specify the mode of serial ports to open serial ports by serial ports scanning in the prior art equally.
Detect the disconnection link information of described bluetooth serial ports when described bluetooth serial ports monitoring unit after, close described target serial ports according to described string slogan and use the unit, stop communication.
Because when starting target serial ports use unit, the bluetooth serial ports monitoring unit has learned that the target serial ports that uses this serial ports uses the unit, therefore the string slogan that this moment, the bluetooth serial ports monitoring unit disconnected connection as required notifies this target serial ports to use unit to stop using described bluetooth serial ports, after bluetooth target serial ports uses the unit that bluetooth serial ports is closed, can close described target serial ports by described bluetooth serial ports monitoring unit and use the unit, perhaps described target serial ports uses the unit to close automatically, or the user manually closes described target serial ports and uses the unit, stops Bluetooth communication.
Below elaborate operation principle of the present invention:
The function of bluetooth serial ports monitoring unit is to carry out the registration of target serial ports use unit, monitoring bluetooth serial ports establishment of connection and disconnection and notify corresponding target serial ports to use the unit, and the target serial ports uses the unit to accept the scheduling of bluetooth serial ports monitoring unit and carries out actual serial communication.
The bluetooth serial ports monitoring unit is in running status all the time, when the bluetooth software of bottom learns that bluetooth serial ports connects foundation or disconnection, will notify the bluetooth serial ports monitoring unit and notify the bluetooth serial ports monitoring unit with the string slogan of this bluetooth serial ports.In addition, each target serial ports uses the unit all will register a unique identifier to the bluetooth serial ports monitoring unit, described identifier can adopt any mode that can distinguish different target serial ports use unit, it can be numeral, perhaps character string etc., setting up identifier and target serial ports uses the mapping table of unit can adopt multiple mode to realize, can use the unit that described identifier directly is sent to described bluetooth serial ports monitoring unit by described target serial ports, can also use the unit in advance described identifier to be stored in registration table by described target serial ports, mapping table is based upon in the registration table of operating system.
Fig. 1 is the flow chart that utilizes described mapping table to communicate by bluetooth serial ports.
When monitoring bluetooth serial ports, the bluetooth serial ports monitoring unit connects (S1) when setting up, the bluetooth serial ports (S2) that has connected will be opened, and the equipment that connects to request sends handshaking information (S3), and purpose is that this equipment of requirement sends the identifier that the target serial ports that needs to start uses the unit.After the equipment that request connects is received this word information of shaking hands, will send an identifier (S4) that is used for identifying own identity to the bluetooth serial ports monitoring unit by bluetooth serial ports.Owing to can only have a target serial ports to use the unit to open it at each bluetooth serial ports of synchronization, and bluetooth serial ports monitoring unit itself also needs to communicate with the equipment that connects of request by opening bluetooth serial ports, with the identifier of the identity of obtaining the equipment that identification request connects.Therefore, after obtaining identifier, can open bluetooth serial ports for the target serial ports uses the unit, the bluetooth serial ports monitoring unit is closed the bluetooth serial ports of opening (S5) after receiving identifier; Search in the identifier that has registered this locality then whether identical identifier (S6) is arranged,, so just ignore this identifier if do not find; If find, the bluetooth serial ports monitoring unit just will start this target serial ports use unit so, the target serial ports that the slogan of will going here and there simultaneously passes to this identifier string correspondence uses unit (S7), corresponding target serial ports uses the unit after receiving the string slogan that the bluetooth serial ports monitoring unit passes over, and just can open serial ports (S8) and has communicated by letter normally with the other side's program.
Because when bluetooth serial ports connects, the bluetooth serial ports monitoring unit has learned that the target serial ports that will open bluetooth serial ports uses the unit, so when disconnecting connection, the bluetooth serial ports monitoring unit just can notify the target serial ports that need close to use the unit according to the string slogan.When the bluetooth serial ports monitoring unit monitors serial ports connection disconnection, it will search the target serial ports use unit that is using this bluetooth serial ports at present according to disconnecting the string slogan that connects, to disconnect the string slogan that connects then notifies this target serial ports to use unit (S9), corresponding target serial ports uses the unit to stop using that serial ports that has disconnected to communicate (S10) after receiving serial ports connection disconnection information, closes the target serial ports then and uses unit (S11).
Adapt with it, the invention also discloses a kind of system that communicates by bluetooth serial ports, as shown in Figure 2, comprise source device 1, target device 2 and the bluetooth serial ports 10 that lays respectively on source device and the target device, 20, wherein source device has at least one subject string mouth use unit 12, and target device has to be used to detect whether bluetooth serial ports is in the bluetooth serial ports monitoring unit 21 of connection status and use the corresponding target serial ports in unit to use unit 22 with the subject string mouth, in addition, also comprise the identify unit 13 that is used for using for each subject string mouth the unit distribution marker at source device; Matching unit 24 is used for the corresponding relation that record identifier and target serial ports use the unit; Scheduling unit 25, use unit 22 to be connected with monitoring unit, target serial ports with matching unit 24, be used for when bluetooth serial ports is in connection status, obtain the identifier that the subject string mouth uses the unit to distribute, determine that according to the corresponding relation in identifier and the matching unit target serial ports uses the unit, and start this target serial ports use unit.
Can be positioned at described bluetooth serial ports monitoring unit inside for described matching unit, can also be arranged in the registration table of described target device, Fig. 2 has enumerated the situation that described matching unit is positioned at described bluetooth serial ports monitoring unit inside.
In addition, receive the off-state information and string slogan information of bluetooth serial ports when described bluetooth serial ports monitoring unit after, described string slogan is sent to described target serial ports use the unit, described target serial ports uses the unit to close described bluetooth serial ports, described scheduling unit is closed described bluetooth serial ports, stops communication.
An application of the present invention is when a plurality of use units shared bluetooth serial ports, uses the unit to switch automatically by the bluetooth serial ports monitoring unit to the target serial ports.For the ease of better understanding the present invention, below enumerate the several application embodiments of the invention.
First embodiment:
On a computer that has a bluetooth unit, a bluetooth serial ports COM4 is arranged.There are two target serial ports to use the unit on computers: game control program GameControl.exe and picture display routine PicDisp.exe, in the present embodiment, the identifier of game control program is set to " GameControl ", and the identifier of picture display routine is " PictureDisplay "; Corresponding with game control program, a bluetooth joystick is arranged, it can communicate by the game control program on bluetooth serial ports and the computer, realizes the control to recreation; Corresponding with the picture display routine is the picture display unit of bluetooth cellular phone, and it can communicate by the picture display routine on bluetooth serial ports and the computer, thereby the picture in the mobile phone is shown on computers.
Also have a bluetooth serial ports monitoring unit on computers, it can monitor bluetooth serial ports COM4 establishment of connection and disconnection.Game control program and picture display routine all will be registered to the bluetooth serial ports monitoring unit with the identification strings of oneself by mode mentioned above when bringing into operation, registration exists afterwards, at the inner mapping table that forms an identification string and target serial ports use unit of bluetooth serial ports monitoring unit.
Identifier The target serial ports uses the unit
GameControl GameControl.exe
PictureDisplay PicDisp.exe
When bluetooth joystick and computer are set up bluetooth and are connected, bluetooth serial ports monitoring unit on the computer can monitor COM4 and set up the bluetooth connection, this bluetooth serial ports monitoring unit will be opened COM4 this moment, and to bluetooth joystick transmission handshaking information, the bluetooth joystick is when receiving handshaking information, send the identifier " GameControl " that the target serial ports uses the unit to computer, the bluetooth serial ports monitoring unit of computer end is after receiving this identifier, close COM4, in correspondence table, search the serial ports program of identifier correspondence therewith then, lookup result is GameControl.exe, the bluetooth serial ports monitoring unit starts this target serial ports use unit then, and will go here and there slogan COM4 and pass to GameControl.exe, at this moment game control program just can be opened COM4 and communicate with the bluetooth joystick, realizes the control to recreation.
When the bluetooth joystick is closed, the bluetooth joystick is connected with bluetooth serial ports between the computer and can disconnects, bluetooth serial ports monitoring unit on the computer can monitor this incident of bluetooth connection disconnection of COM4 at this moment, at this moment it goes here and there game control program on the slogan notice computer with COM4, and game control program is just closed COM4 after receiving this message.
When the picture display unit of bluetooth cellular phone and computer are set up bluetooth and are connected, bluetooth serial ports monitoring unit on the computer can monitor COM4 and set up the bluetooth connection, open COM4 this moment, and send a handshaking information to the picture display unit of bluetooth cellular phone, the picture display unit of bluetooth cellular phone is when receiving handshaking information, send the identifier " PictureDisplay " of oneself to computer, the bluetooth serial ports monitoring unit of computer end is after receiving this identifier, close COM4, in mapping table, search the serial ports program of identification strings correspondence therewith then, lookup result is PicDisp.exe, the bluetooth serial ports monitoring unit starts this program then, and will go here and there slogan COM4 and pass to PicDisp.exe, at this moment the picture display routine just can be opened COM4 and communicate with the picture display unit of bluetooth cellular phone, shown the picture in the mobile phone, for the process that stops to communicate by letter as mentioned above, repeated no more.
The present invention is equally applicable to the situation of the shared mapping table of a plurality of serial ports.
Second embodiment: on a computer that has a bluetooth unit, have bluetooth serial ports COM1 and bluetooth serial ports COM2 simultaneously.There are two target serial ports to use the unit on computers: game control program GameControl.exe and picture display routine PicDisp.exe, in the present embodiment, the identifier of game control program is set to " GameControl ", and the identifier of picture display routine is " PictureDisplay "; Corresponding with game control program, a bluetooth joystick is arranged, it can communicate by the game control program on bluetooth serial ports and the computer, realizes the control to recreation; Corresponding with the picture display routine is the picture display unit of bluetooth cellular phone, and it can communicate by the picture display routine on bluetooth serial ports and the computer, thereby the picture in the mobile phone is shown on computers.
Also have a bluetooth serial ports monitoring unit on computers, can monitor bluetooth serial ports COM 1 and COM2 establishment of connection and disconnection simultaneously.Game control program and the picture display routine identification strings with oneself when bringing into operation is registered to the bluetooth serial ports monitoring unit, registration exists afterwards, at the inner mapping table that forms an identification string and target serial ports use unit of bluetooth serial ports monitoring unit.
Identifier The target serial ports uses the unit
GameControl GameControl.exe
PictureDisplay PicDisp.exe
When bluetooth joystick and computer are set up bluetooth and are connected, at first search for available bluetooth serial ports, connect with at random mode and this serial ports then.Suppose that bluetooth serial ports monitoring unit on the computer monitors COM1 and set up bluetooth and connect, this bluetooth serial ports monitoring unit will be opened COM1 this moment, and to bluetooth joystick transmission handshaking information, the bluetooth joystick is when receiving handshaking information, send the identifier " GameControl " that the target serial ports uses the unit to computer, the bluetooth serial ports monitoring unit of computer end is after receiving this identifier, close COM1, in correspondence table, search the serial ports program of identifier correspondence therewith then, lookup result is GameControl.exe, the bluetooth serial ports monitoring unit starts this target serial ports use unit then, and will go here and there slogan COM1 and pass to GameControl.exe, at this moment game control program just can be opened COM1 and communicate with the bluetooth joystick, realizes the control to recreation.
When the bluetooth joystick is closed, the bluetooth joystick is connected with bluetooth serial ports between the computer and can disconnects, bluetooth serial ports monitoring unit on the computer can monitor this incident of bluetooth connection disconnection of COM1 at this moment, at this moment it goes here and there game control program on the slogan notice computer with COM1, and game control program is just closed COM41 after receiving this message.
When the picture display unit of bluetooth cellular phone and computer need be set up bluetooth and be connected, at first search for unappropriated bluetooth serial ports this moment, if this moment, bluetooth serial ports COM1 was in user mode, COM2 is in the free time, then the bluetooth serial ports monitoring unit on the computer can monitor COM2 and set up the bluetooth connection, open COM2 this moment, and send a handshaking information to the picture display unit of bluetooth cellular phone, the picture display unit of bluetooth cellular phone is when receiving handshaking information, send the identifier " PictureDisplay " of oneself to computer, the bluetooth serial ports monitoring unit of computer end is after receiving this identifier, close COM2, in mapping table, search the serial ports program of identification strings correspondence therewith then, lookup result is PicDisp.exe, the bluetooth serial ports monitoring unit starts this program then, and will go here and there slogan COM2 and pass to PicDisp.exe, at this moment the picture display routine just can be opened COM2 and communicate with the picture display unit of bluetooth cellular phone, shown the picture in the mobile phone, for the process that stops to communicate by letter as mentioned above, repeat no more.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

1, a kind of method that communicates by bluetooth serial ports, be used to have the source device and the target device of bluetooth serial ports, source device has at least one subject string mouth and uses the unit, and target device has the target serial ports use unit corresponding with subject string mouth use unit, it is characterized in that, comprise step:
1) is that each subject string mouth uses the unit distribution marker in source device, and in target device, creates the mapping table of identifier and target serial ports use unit;
2) target device receives the local bluetooth serial ports when being in the information of connection status, sends the handshaking information of request identifier to source device, obtains the subject string mouth and uses the unit to receive the identifier that sends after this handshaking information;
3), start the subject string mouth and use the target serial ports of unit correspondence to use the unit according to identifier and mapping table;
4) opening bluetooth serial ports communicates.
2, the method that communicates by bluetooth serial ports according to claim 1 is characterized in that step 2) information that receives of described target device also comprises string slogan information, the described process of opening described bluetooth serial ports of step 4) is specially:
41) the target serial ports that the string slogan of described bluetooth serial ports is sent to target device uses the unit;
42) the target serial ports of target device uses the unit to open described bluetooth serial ports according to described string slogan.
3, the method that communicates by bluetooth serial ports according to claim 1 is characterized in that, step 4) is opened bluetooth serial ports in the following manner:
The target serial ports of described target device uses the unit to carry out bluetooth serial ports scanning, and the bluetooth serial ports that scans is opened.
4, the method that communicates by bluetooth serial ports according to claim 2 is characterized in that, described step also comprises:
After off-state information that receives bluetooth serial ports and string slogan information, close described bluetooth serial ports according to described string slogan, stop communication.
5, the method that communicates by bluetooth serial ports according to claim 4 is characterized in that, the process of closing described bluetooth serial ports according to described string slogan specifically comprises step:
The target serial ports that described string slogan is sent to described target device uses the unit;
The target serial ports of described target device uses the unit to close and the corresponding bluetooth serial ports of described string slogan.
6, the method that communicates by bluetooth serial ports according to claim 5 is characterized in that, also comprises step:
Close described target serial ports and use the unit.
7, the method that communicates by bluetooth serial ports according to claim 6, it is characterized in that: close described target serial ports and use the step of unit to carry out by the bluetooth serial ports monitoring unit, or use the unit to carry out, or carry out by hand by the user by described target serial ports.
8, a kind of system that communicates by bluetooth serial ports, comprise source device, target device and lay respectively at source device and target device on bluetooth serial ports, wherein source device has at least one subject string mouth use unit, and target device has to be used to detect whether bluetooth serial ports is in the bluetooth serial ports monitoring unit of connection status and use the corresponding target serial ports in unit to use the unit with the subject string mouth, it is characterized in that, also comprise:
Identify unit is used for using the unit distribution marker at source device for each subject string mouth;
Matching unit is used for the corresponding relation that record identifier and target serial ports use the unit;
Scheduling unit, use the unit to be connected with monitoring unit, target serial ports with matching unit, be used for when bluetooth serial ports is in connection status, obtain the identifier that the subject string mouth uses the unit to distribute, determine that according to the corresponding relation in identifier and the matching unit target serial ports uses the unit, and start this target serial ports use unit.
9, the system that communicates by bluetooth serial ports according to claim 8 is characterized in that, described matching unit is positioned at described bluetooth serial ports monitoring unit inside.
10, the system that communicates by bluetooth serial ports according to claim 9 is characterized in that, described matching unit is arranged in the registration table of described target device.
CNB2005100555383A 2005-03-16 2005-03-16 Method and system of communicating via bluetooth serial port Expired - Fee Related CN100454867C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100555383A CN100454867C (en) 2005-03-16 2005-03-16 Method and system of communicating via bluetooth serial port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100555383A CN100454867C (en) 2005-03-16 2005-03-16 Method and system of communicating via bluetooth serial port

Publications (2)

Publication Number Publication Date
CN1835464A CN1835464A (en) 2006-09-20
CN100454867C true CN100454867C (en) 2009-01-21

Family

ID=37003075

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100555383A Expired - Fee Related CN100454867C (en) 2005-03-16 2005-03-16 Method and system of communicating via bluetooth serial port

Country Status (1)

Country Link
CN (1) CN100454867C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989250B (en) * 2010-11-03 2014-12-17 中兴通讯股份有限公司 Serial communication method and system
CN104811359B (en) * 2015-04-10 2018-12-07 深圳市元征科技股份有限公司 A kind of serial port communication method and terminal
CN106060619A (en) * 2016-06-27 2016-10-26 乐视控股(北京)有限公司 Method for controlling Bluetooth signal response in television and related device
CN107613453B (en) * 2017-09-15 2020-10-09 湖南恒茂高科股份有限公司 Control method and communication system
CN108282545B (en) * 2017-12-26 2020-12-01 北京航天测控技术有限公司 Serial port number user-defined reconfiguration method and device
CN116828435B (en) * 2023-08-30 2023-11-14 北京柚果星空科技有限公司 Equipment forwarding method and system of soft Bluetooth gateway

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002045382A2 (en) * 2000-11-30 2002-06-06 Palm, Inc. Service record for an application running on a wireless device
EP1330075A1 (en) * 2001-09-13 2003-07-23 Sony Corporation Information processing apparatus and method
WO2003081787A2 (en) * 2002-03-26 2003-10-02 Nokia Corporation Radio frequency identification (rf-id) based discovery for short range radio communication
CN1466273A (en) * 2002-09-06 2004-01-07 联想(北京)有限公司 Method for making connection veryfication between wireless equipments
CN1567960A (en) * 2003-07-06 2005-01-19 艾威梯软件技术(北京)有限公司 An equipment for implementing automatic call forwarding of blue tooth handset and method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002045382A2 (en) * 2000-11-30 2002-06-06 Palm, Inc. Service record for an application running on a wireless device
EP1330075A1 (en) * 2001-09-13 2003-07-23 Sony Corporation Information processing apparatus and method
WO2003081787A2 (en) * 2002-03-26 2003-10-02 Nokia Corporation Radio frequency identification (rf-id) based discovery for short range radio communication
CN1466273A (en) * 2002-09-06 2004-01-07 联想(北京)有限公司 Method for making connection veryfication between wireless equipments
CN1567960A (en) * 2003-07-06 2005-01-19 艾威梯软件技术(北京)有限公司 An equipment for implementing automatic call forwarding of blue tooth handset and method thereof

Also Published As

Publication number Publication date
CN1835464A (en) 2006-09-20

Similar Documents

Publication Publication Date Title
CN100454867C (en) Method and system of communicating via bluetooth serial port
KR100811794B1 (en) Method for controlling of printer using bluetooth in mobile terminal
WO2012093848A2 (en) Apparatus and method for remotely controlling peripheral devices in mobile communication terminal
CN103905929B (en) A kind of building conversational system based on fast wireless network
KR100473667B1 (en) Radio communication system, radio communication apparatus, and radio communicating method
WO2012157890A2 (en) Apparatus and method for storing data of peripheral device in portable terminal
CN102510458A (en) Method and system for controlling television
JP5945916B2 (en) Information processing system, information processing method, portable terminal, server, control method and control program thereof
CN104852984A (en) Method and system for transmitting data between smart terminals based on multi-screen interaction
WO2013168959A1 (en) Method for connectionless messaging, machine-readable storage medium, and communication terminal
CN104967886B (en) Wireless display method and system
CN103401898A (en) Method for transmitting data between mobile terminals and mobile terminals
JP2009171234A (en) Communication terminal, communication system, and communication method
CN106060619A (en) Method for controlling Bluetooth signal response in television and related device
KR101821682B1 (en) Apparatus adapted to share information contents through a wireless connection, and method thereof
KR102572066B1 (en) System comprising vehicle keys and a docking station, respective vehicle key, docking station, method and computer program
WO2013121714A1 (en) Remote consultation system
CN107635272A (en) Control method of electronic device and device
JP2019068299A (en) Communication device, control method of the same, and program
CN105979604B (en) A kind of equipment connection method and device
CN106488380B (en) Data transmission module, data transmission system or data transmission method
JPH11355442A (en) Personal information management system for radio telephone system
JP2000069561A (en) Remote control system for radio communication terminal
JP4568995B2 (en) Information network system
US20230058633A1 (en) Device and method for diagnosing and configuring a hydraulic device based on wireless local area network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090121

Termination date: 20210316