CN102811076A - Bluetooth connecting method - Google Patents
Bluetooth connecting method Download PDFInfo
- Publication number
- CN102811076A CN102811076A CN2011101495671A CN201110149567A CN102811076A CN 102811076 A CN102811076 A CN 102811076A CN 2011101495671 A CN2011101495671 A CN 2011101495671A CN 201110149567 A CN201110149567 A CN 201110149567A CN 102811076 A CN102811076 A CN 102811076A
- Authority
- CN
- China
- Prior art keywords
- node
- present node
- destination end
- bluetooth
- transmitting terminal
- 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.)
- Granted
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a Bluetooth connecting method, which comprises the steps as follows: using a sending terminal as the current node; searching all nodes which can be connected with the current node to generate a connectable equipment list; adding the current node into a connecting path; searching the number of child node cycles existing in the current node to judge whether all of the child nodes of the current node are target terminals; if yes, establishing a Bluetooth connection, else, using the child nodes of the current node as a new current node; and recursively searching according to the new current node. Users can remotely connect any far Bluetooth equipment in an area which is covered by plenty of Bluetooth equipment, so that the use range of Bluetooth is greatly expanded; therefore, Bluetooth communication is no longer limited in a short distance.
Description
Technical field
The present invention relates to a kind of Bluetooth connecting method, particularly relate to the remote method that connects of a kind of bluetooth.
Background technology
The function of current mobile phone from strength to strength, wherein bluetooth has become a kind of standard configuration.Communication modes between mobile phone no longer only limits to GSM/GPRS, and bluetooth has also been played the part of important role in the mobile phone wireless communication mode.Bluetooth has communication simple, and transmission speed is very fast, the advantage of no network requirement.But simultaneously, bluetooth also has the short shortcoming of transmission range.
Be connected to example to set up bluetooth between simple mobile phone, at present the Bluetooth transmission distance generally can only be in 10M, and in the reality because various interference, it is shorter apart from meeting.But realize that it is impossible that directly remote bluetooth equipment connects.
Therefore expectation can be found a kind of method that can realize remote bluetooth connection.
Summary of the invention
The technical problem that the present invention will solve is that bluetooth connects distance limited in the prior art, can't realize the defective that remote bluetooth connects in order to overcome, and provides a kind of mode through a plurality of bluetooth equipment relayings to realize the Bluetooth connecting method of the remote connection between the bluetooth equipment.
The present invention solves above-mentioned technical problem through following technical proposals:
A kind of Bluetooth connecting method, its characteristics are that it may further comprise the steps:
S
1, with transmitting terminal as present node, and import father node tabulation into;
S
2, search present node attachable all nodes, but and the tabulation of generation connection device, but attachable all nodes of present node are deposited in and should tabulate by connection device;
S
3But, remove in the tabulation of this connection device the node with father node tabulation repetition;
S
4, present node is added access path;
S
5, how many child nodes search have under the present node;
S
6, the cycle criterion present node all child nodes, certain node of present node is a destination end; If then get into step S
12; If not, then get into step S
7
S
7, search present node attachable all nodes, but and attachable all nodes of present node are deposited in and should tabulate by connection device;
S
8, with the child node of present node as new present node, but and should the connection device tabulation tabulate as father node;
S
9, begin recursive search according to new present node;
S
10, judge whether recursive search finishes, if get into step S
11; If not, return step S
2
S
11, there is not destination end in present node and below child node thereof, the afterbody node of deletion access path, i.e. present node, and destination end is not found in prompting;
S
12, find destination end, and the access path between definite transmitting terminal and the destination end;
S
13, transmitting terminal is according to step S
12In the access path confirmed send connection request to destination end;
S
14, judge whether transmitting terminal receives the response link information from destination end, if get into step S
15If not, prompting bluetooth connection failure;
S
15, transmitting terminal is set up with destination end between bluetooth be connected.Wherein, transmitting terminal, destination end and each above-mentioned node are bluetooth equipment.
Preferably, step S
13Further comprising the steps of:
S
131, transmitting terminal sends connection request and gives present node;
S
132, present node obtains connectivity request message;
S
133, judge whether present node is destination end, if not, get into step S
134If get into step S
136
S
134, present node sends to connection request the next node of present node in the access path;
S
135, with the next node of present node in the access path as new present node and return step S
132
S
136, destination end sends the response link information.
Preferably, step S
15Further comprising the steps of:
S
151, destination end sends the response link information and gives present node;
S
152, present node obtains the response link information;
S
153, judge whether present node is transmitting terminal, if not, get into step S
154If get into step S
156
S
154, present node will respond the last node that link information sends to present node in the access path;
S
155, with the last node of present node in the access path as new present node and return step S
152
S
156, transmitting terminal is set up with destination end between bluetooth be connected.
Preferably, step S
15Further comprising the steps of afterwards: as to store the access path between this transmitting terminal and this destination end.Access path when making things convenient for the user to reuse remote bluetooth like this to connect is searched.
Positive progressive effect of the present invention is: the user can be in having enough bluetooth equipment region covered; The remote any bluetooth equipment that connects distant place in this zone; Thereby expanded the scope of application of bluetooth greatly; Make that Bluetooth communication no longer is confined to also provide more choices for transfer of data within the short distance.
Description of drawings
Fig. 1 is the flow chart of steps of ferret out end in the Bluetooth connecting method of the present invention.
Fig. 2 is the flow chart of steps that transmitting terminal sends connection request to destination end in the Bluetooth connecting method of the present invention.
Fig. 3 is the flow chart of steps that destination end is sent response link information to transmitting terminal in the Bluetooth connecting method of the present invention.
Embodiment
Provide preferred embodiment of the present invention below in conjunction with accompanying drawing, to specify technical scheme of the present invention.
With reference to figure 1, the step of ferret out end is following in the Bluetooth connecting method of the present invention:
How many child nodes are step 104 have under the search present node.
Does step 110 judge that recursive search finishes? If get into step 111; If not, return step 101.
With reference to figure 2, the step that transmitting terminal sends connection request to destination end is described below:
Step 200, transmitting terminal sends connection request and gives present node.
Step 201, present node obtains connectivity request message.
Step 202 judges whether present node is destination end, if get into step 203; If not, get into step 204.
Step 203, destination end are sent the response link information.
Step 204, present node send to connection request the next node of present node in the access path.
Step 205, with the next node of present node in the access path as new present node and return step 201.
With reference to figure 3, the step that destination end is sent response link information to transmitting terminal is described below:
Step 302 judges whether present node is transmitting terminal, if get into step 303; If not, get into step 304.
Below in conjunction with an application example Bluetooth connecting method of the present invention is described once more, wherein bluetooth equipment is an example with the mobile phone with bluetooth module, and the bluetooth of supposing to set up between mobile phone A and the mobile phone D connects, and concrete implementation is following:
(1) mobile phone A is through bluetooth discovery mobile phone D;
Mobile phone A comprises through the step of bluetooth discovery mobile phone D in the said step (1):
(1-1) mobile phone A finds mobile phone A 1 through the search bluetooth equipment, A2 ..., An (n is a natural number);
(1-2) mobile phone A sends to the sub node equipment A1 in this list of devices successively as the list of devices that father node searches oneself, A2 ..., An (n is a natural number);
(1-3) device A in the list of devices 1, A2 ...; An (n is a natural number) writes down the father node mobile phone A of oneself after obtaining tabulation, search for the equipment that each self energy finds simultaneously; And the part that has in obtaining tabulating before in the equipment that these find, excluding; The part that is about to repetition is removed, and obtains the child node tabulation of portion oneself, and the list of devices that simultaneously oneself is searched is merged into the list of devices that oneself searches together with its list of devices that searches that father node sends; And the action of mobile phone A in (1-2) before repeating, up to finding mobile phone D;
(1-4) to father node D1 feedback, father node D1 adds path (D1-D) and feeds back to oneself father node own after receiving the feedback of child node mobile phone D, according to said method feeds back to node A always, thereby obtains the path of A-......-D with the path (D) of oneself.
(2) mobile phone A being carried out bluetooth with mobile phone D is connected.
In the said step (2) mobile phone A and mobile phone D being carried out the bluetooth step of connecting comprises:
(2-1) mobile phone A is according to the path of the own A-......-D that writes down, and oneself connection request and access path sent to the next node mobile phone B;
(2-2) the node mobile phone B repeats the action of mobile phone A in (2-1);
(2-3) like cocycle until mobile phone D;
(2-4) request of mobile phone D response mobile phone A feeds back to mobile phone C with connection response by access path;
(2-5) node mobile phone C repeats the action of mobile phone D in (2-4);
(2-6) like cocycle until mobile phone A;
(2-7) mobile phone A and mobile phone D connect.
Though more than described embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is limited appended claims.Those skilled in the art can make numerous variations or modification to these execution modes under the prerequisite that does not deviate from principle of the present invention and essence, but these changes and modification all fall into protection scope of the present invention.
Claims (4)
1. Bluetooth connecting method is characterized in that it may further comprise the steps:
S
1, with transmitting terminal as present node, and import father node tabulation into;
S
2, search present node attachable all nodes, but and the tabulation of generation connection device, but attachable all nodes of present node are deposited in and should tabulate by connection device;
S
3But, remove in the tabulation of this connection device the node with father node tabulation repetition;
S
4, present node is added access path;
S
5, how many child nodes search have under the present node;
S
6, the cycle criterion present node all child nodes, certain node of present node is a destination end; If then get into step S
12; If not, then get into step S
7
S
7, search present node attachable all nodes, but and attachable all nodes of present node are deposited in and should tabulate by connection device;
S
8, with the child node of present node as new present node, but and should the connection device tabulation tabulate as father node;
S
9, begin recursive search according to new present node;
S
10, judge whether recursive search finishes, if get into step S
11; If not, return step S
2
S
11, there is not destination end in present node and below child node thereof, the afterbody node of deletion access path, i.e. present node, and destination end is not found in prompting;
S
12, find destination end, and the access path between definite transmitting terminal and the destination end;
S
13, transmitting terminal is according to step S
12In the access path confirmed send connection request to destination end;
S
14, judge whether transmitting terminal receives the response link information from destination end, if get into step S
15If not, prompting bluetooth connection failure;
S
15, transmitting terminal is set up with destination end between bluetooth be connected.
2. Bluetooth connecting method as claimed in claim 1 is characterized in that step S
13Further comprising the steps of:
S
131, transmitting terminal sends connection request and gives present node;
S
132, present node obtains connectivity request message;
S
133, judge whether present node is destination end, if not, get into step S
134If get into step S
136
S
134, present node sends to connection request the next node of present node in the access path;
S
135, with the next node of present node in the access path as new present node and return step S
132
S
136, destination end sends the response link information.
3. Bluetooth connecting method as claimed in claim 1 is characterized in that step S
15Further comprising the steps of:
S
151, destination end sends the response link information and gives present node;
S
152, present node obtains the response link information;
S
153, judge whether present node is transmitting terminal, if not, get into step S
154If get into step S
156
S
154, present node will respond the last node that link information sends to present node in the access path;
S
155, with the last node of present node in the access path as new present node and return step S
152
S
156, transmitting terminal is set up with destination end between bluetooth be connected.
4. like any described Bluetooth connecting method among the claim 1-3, it is characterized in that step S
15Further comprising the steps of afterwards: as to store the access path between this transmitting terminal and this destination end.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110149567.1A CN102811076B (en) | 2011-06-03 | 2011-06-03 | Bluetooth connecting method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110149567.1A CN102811076B (en) | 2011-06-03 | 2011-06-03 | Bluetooth connecting method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102811076A true CN102811076A (en) | 2012-12-05 |
CN102811076B CN102811076B (en) | 2016-06-29 |
Family
ID=47234672
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110149567.1A Active CN102811076B (en) | 2011-06-03 | 2011-06-03 | Bluetooth connecting method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102811076B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103973343A (en) * | 2014-04-23 | 2014-08-06 | 广东华邦技术软件有限公司 | Communication method and system |
CN104780607A (en) * | 2015-04-24 | 2015-07-15 | 杭州华三通信技术有限公司 | Bluetooth wearable device locating method, Bluetooth repeater device and Bluetooth monitor device |
CN105336013A (en) * | 2015-10-16 | 2016-02-17 | 江苏协信信息科技有限公司 | Method and system used for realizing attendance checking via Beacon broadcast |
CN105827282A (en) * | 2016-05-24 | 2016-08-03 | 卧槽科技(深圳)有限公司 | Bluetooth equipment networking method and device and Bluetooth equipment |
CN105933897A (en) * | 2016-03-31 | 2016-09-07 | 联想(北京)有限公司 | Electronic equipment and method for establishing communication connection among electronic equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1408159A (en) * | 1999-12-06 | 2003-04-02 | 艾利森电话股份有限公司 | Broadcast as a triggering mechanism for route discovery |
CN1453963A (en) * | 2002-04-25 | 2003-11-05 | 三星电子株式会社 | Method of bluetooth routing according to request and network formation and communication method of bluetooth group network |
CN101127537A (en) * | 2007-09-30 | 2008-02-20 | 东南大学 | Multi-hop voice transmission method based on bluetooth technology |
CN101217490A (en) * | 2008-01-09 | 2008-07-09 | 西南科技大学 | A Bluetooth wireless sensor network networking and routing method |
WO2008096912A1 (en) * | 2007-02-04 | 2008-08-14 | Ki-Hyung Kim | Method for allowing a family-based address in a wireless sensor network, and method for hierarchical routing a path setting using the same |
JP2008193247A (en) * | 2007-02-01 | 2008-08-21 | Oki Electric Ind Co Ltd | Communication method of master terminal applied to radio communication system, master terminal equipment, and program |
CN101425918A (en) * | 2007-10-29 | 2009-05-06 | 吉林市曼博科技有限公司 | Routing method based on tree network topology |
CN101909012A (en) * | 2010-08-02 | 2010-12-08 | 深圳中兴力维技术有限公司 | Route addressing method based on tree network |
-
2011
- 2011-06-03 CN CN201110149567.1A patent/CN102811076B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1408159A (en) * | 1999-12-06 | 2003-04-02 | 艾利森电话股份有限公司 | Broadcast as a triggering mechanism for route discovery |
CN1453963A (en) * | 2002-04-25 | 2003-11-05 | 三星电子株式会社 | Method of bluetooth routing according to request and network formation and communication method of bluetooth group network |
JP2008193247A (en) * | 2007-02-01 | 2008-08-21 | Oki Electric Ind Co Ltd | Communication method of master terminal applied to radio communication system, master terminal equipment, and program |
WO2008096912A1 (en) * | 2007-02-04 | 2008-08-14 | Ki-Hyung Kim | Method for allowing a family-based address in a wireless sensor network, and method for hierarchical routing a path setting using the same |
CN101127537A (en) * | 2007-09-30 | 2008-02-20 | 东南大学 | Multi-hop voice transmission method based on bluetooth technology |
CN101425918A (en) * | 2007-10-29 | 2009-05-06 | 吉林市曼博科技有限公司 | Routing method based on tree network topology |
CN101217490A (en) * | 2008-01-09 | 2008-07-09 | 西南科技大学 | A Bluetooth wireless sensor network networking and routing method |
CN101909012A (en) * | 2010-08-02 | 2010-12-08 | 深圳中兴力维技术有限公司 | Route addressing method based on tree network |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103973343A (en) * | 2014-04-23 | 2014-08-06 | 广东华邦技术软件有限公司 | Communication method and system |
CN104780607A (en) * | 2015-04-24 | 2015-07-15 | 杭州华三通信技术有限公司 | Bluetooth wearable device locating method, Bluetooth repeater device and Bluetooth monitor device |
CN104780607B (en) * | 2015-04-24 | 2018-08-24 | 新华三技术有限公司 | To method, bluetooth trunking and the audiomonitor of the positioning of bluetooth wearable device |
CN105336013A (en) * | 2015-10-16 | 2016-02-17 | 江苏协信信息科技有限公司 | Method and system used for realizing attendance checking via Beacon broadcast |
CN105336013B (en) * | 2015-10-16 | 2018-10-09 | 江苏协信信息科技有限公司 | It is a kind of that the method and system called the roll is realized by beacon broadcast |
CN105933897A (en) * | 2016-03-31 | 2016-09-07 | 联想(北京)有限公司 | Electronic equipment and method for establishing communication connection among electronic equipment |
CN105827282A (en) * | 2016-05-24 | 2016-08-03 | 卧槽科技(深圳)有限公司 | Bluetooth equipment networking method and device and Bluetooth equipment |
Also Published As
Publication number | Publication date |
---|---|
CN102811076B (en) | 2016-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200008150A1 (en) | Sleeping and Wake-Up Methods and Apparatuses of Master-Slave Network, and Power Saving System of Master-Slave Network | |
CN105827488A (en) | MESH network system applicable to smart home, networking method and communication method | |
CN102761351B (en) | Information transfer method and system based on Bluetooth technology | |
CN102811076A (en) | Bluetooth connecting method | |
CN102111912B (en) | Centralized construction method for Zigbee homogeneous tree-type wireless sensor network | |
CN101610501A (en) | Device firmware upgrade system and method, device management server and portable terminal | |
CN102546801A (en) | Ambient-equipment-list-based mobile terminal matching method and system | |
CN105827282A (en) | Bluetooth equipment networking method and device and Bluetooth equipment | |
CN101867519B (en) | Dynamic area routing method and system for ad hoc network | |
CN103209089A (en) | Method for obtaining heart beat period, terminal and server | |
JP5462410B2 (en) | Method and apparatus for accessing a wireless sensor network | |
CN108777844B (en) | Positioning method and system based on Bluetooth MESH network | |
CN102035694A (en) | Link detection device and method | |
CN102420876A (en) | Method for actively pushing files in point-to-point mode in android-based intelligent mobile terminal | |
CN104601262B (en) | A kind of information processing method and mobile device | |
JP2008219482A (en) | Information distribution system in radio packet communication system, information distribution method and information distribution device | |
CN105978940A (en) | Friend adding method and system of intelligent wearable device | |
CN100539549C (en) | Route system in the communication system router and method | |
CN103428807A (en) | Communication relay node selection method, communication center node and wireless communication network | |
CN102624628A (en) | Home gateway and data packet express forwarding method for same | |
CN103517260A (en) | Configuration method of communication parameter and communication protocol, network node equipment and system | |
CN101945003A (en) | Compatibility processing method and management station | |
CN107733767B (en) | Method, device and system for establishing social relationship network | |
JP2013232758A (en) | Data collection system | |
CN106900024A (en) | For tactical communication's method of data radio station MANET very-long-range data transfer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20200713 Address after: Wang Yi No. 2158 building, 201103 Shanghai City, Minhang District Wanyuan Road 11 building 1111 room Patentee after: Shanghai RemoWireless Communication Technology Co.,Ltd. Address before: 200335 Shanghai city Changning District Admiralty Road No. 633 Patentee before: SIMCOM INFORMATION TECHNOLOGY (SHANGHAI) Co.,Ltd. |