CN102811076B - Bluetooth connecting method - Google Patents
Bluetooth connecting method Download PDFInfo
- Publication number
- CN102811076B CN102811076B CN201110149567.1A CN201110149567A CN102811076B CN 102811076 B CN102811076 B CN 102811076B CN 201110149567 A CN201110149567 A CN 201110149567A CN 102811076 B CN102811076 B CN 102811076B
- Authority
- CN
- China
- Prior art keywords
- node
- present node
- bluetooth
- destination end
- present
- 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.)
- Active
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of Bluetooth connecting method to include: using transmitting terminal as present node;The search attachable all nodes of present node generate connectable device list;Present node is added access path;Whether all child nodes having how many child node cycle criterion present node under search present node are destination end;If so, set up bluetooth to connect;If it is not, then using the child node of present node as new present node, and start recursive search according to new present node.User can be in the region having enough bluetooth equipments to cover, any bluetooth equipment of distant place in this region remotely connected, thus is greatly expanded the range of bluetooth so that within Bluetooth communication is no longer limited to shorter distance.
Description
Technical field
The present invention relates to a kind of Bluetooth connecting method, particularly relate to the side that a kind of bluetooth is remotely connected
Method.
Background technology
From strength to strength, wherein bluetooth has become as a kind of standard configuration to the function of current mobile phone.Between mobile phone
Communication modes be no longer only limitted to GSM/GPRS, bluetooth also play in mobile phone wireless communication mode weight
The role wanted.Bluetooth has communication simple, and transmission speed is very fast, without the advantage of network requirement.But meanwhile,
Bluetooth also has the shortcoming that transmission range is short.
As a example by setting up bluetooth connection by between simple mobile phone, current Bluetooth transmission distance typically can only be at 10M
Within, and due to various interference in reality, its distance can be shorter.But realize bluetooth the most at a distance
It is impossible that equipment connects.
It is therefore desirable for a kind of method that can realize the connection of remote bluetooth can be found.
Summary of the invention
The technical problem to be solved in the present invention is to overcome bluetooth in prior art to connect apart from limited, nothing
Method realizes the defect that remote bluetooth connects, it is provided that a kind of real by the way of multiple bluetooth equipments relay
Remotely connected Bluetooth connecting method between existing bluetooth equipment.
The present invention solves above-mentioned technical problem by following technical proposals:
A kind of Bluetooth connecting method, its feature is, it comprises the following steps:
S1, using transmitting terminal as present node, and incoming father node list;
S2, the search attachable all nodes of present node, and generate connectable device list, will be current
The attachable all nodes of node are stored in this connectable device list;
S3, remove in this connectable device list with father node list repeat node;
S4, present node is added access path;
S5, search present node under have how many child nodes;
S6, all child nodes of cycle criterion present node, if certain child node of present node is mesh
Mark end;The most then enter step S12、;If it is not, then enter step S7;
S7, the search attachable all nodes of present node, and by attachable for present node all nodes
It is stored in this connectable device list;
S8, using the child node of present node as new present node, and by this connectable device list make
For father node list;
S9, start recursive search according to new present node;
S10, judge whether recursive search terminates, if so, enter step S11、;If it is not, return step
S2;
S11, present node and below child node there is not destination end, delete the afterbody node of access path,
I.e. present node, and point out do not find destination end;
S12, find destination end, and determine the access path between transmitting terminal and destination end;
S13, transmitting terminal is according to step S12The middle access path determined sends connection request to destination end;
S14, judge whether transmitting terminal receives the response link information from destination end, if so, enter step
S15;If it is not, prompting bluetooth connection failure;
S15, transmitting terminal set up be connected with the bluetooth between destination end.Wherein, transmitting terminal, destination end and
Each above-mentioned node is bluetooth equipment.
Preferably, step S13Further comprising the steps of:
S131, transmitting terminal send connection request to present node;
S132, present node obtain connectivity request message;
S133, judge whether present node is destination end, if it is not, enter step S134;If so, step is entered
Rapid S136;
S134, present node connection request is sent to the next node of present node in access path;
S135, the next node of present node in access path as new present node and is returned step
Rapid S132;
S136, destination end send response link information.
Preferably, step S15Further comprising the steps of:
S151, destination end send response link information to present node;
S152, present node obtain response link information;
S153, judge whether present node is transmitting terminal, if it is not, enter step S154;If so, step is entered
Rapid S156;
S154, present node by response link information be sent to a upper joint of present node in access path
Point;
S155, a upper node of present node in access path as new present node and is returned step
Rapid S152;
S156, transmitting terminal set up be connected with the bluetooth between destination end.
Preferably, step S15The most further comprising the steps of: to store between this transmitting terminal and this destination end
Access path.The access path so facilitating user to reuse when remote bluetooth connects is searched.
The most progressive effect of the present invention is: user can be in the region having enough bluetooth equipments to cover
In, any bluetooth equipment of distant place in this region remotely connected, thus it is greatly expanded bluetooth
Range so that within Bluetooth communication is no longer limited to shorter distance, also provides for data transmission
More selection.
Accompanying drawing explanation
Fig. 1 be the present invention Bluetooth connecting method in search for the flow chart of steps of destination end.
Fig. 2 be the present invention Bluetooth connecting method in transmitting terminal send connection request to the step stream of destination end
Cheng Tu.
Fig. 3 be the present invention Bluetooth connecting method in destination end send response link information to the step of transmitting terminal
Rapid flow chart.
Detailed description of the invention
Provide present pre-ferred embodiments below in conjunction with the accompanying drawings, to describe technical scheme in detail.
With reference to Fig. 1, the step searching for destination end in the Bluetooth connecting method of the present invention is as follows:
Step 100, using transmitting terminal as present node, and incoming father node list.Now, owing to sending out
Sending end is start node, the most there is not father node, so father node list now is empty.
Step 101, searches for the attachable all nodes of present node, and generates connectable device list,
Attachable for present node all nodes are stored in this connectable device list.
Step 102, removes the node repeated in this connectable device list with father node list.
Step 103, adds access path by present node.
Step 104, has how many child nodes under search present node.
Step 105, all child nodes of cycle criterion present node, if certain height joint of present node
Point is destination end?If so, step 106 is entered;If it is not, enter step 107.
Step 106, finds destination end.
Step 107, searches for the attachable all nodes of present node, and by attachable for present node institute
Node is had to be stored in this connectable device list.
Step 108, using the child node of present node as new present node, and by this connectable device
List is as father node list.
Step 109, starts recursive search according to new present node.
Step 110, it is judged that whether recursive search terminates?If so, step 111 is entered;If it is not, return
Step 101.
Step 111, there is not destination end, deletes the tail of access path in present node and below child node
Portion's node, i.e. present node.
Step 112, does not finds destination end.
With reference to Fig. 2, it is as described below to the step of destination end that transmitting terminal sends connection request:
Step 200, transmitting terminal sends connection request to present node.
Step 201, present node obtains connectivity request message.
Step 202, it is judged that whether present node is destination end, if so, enters step 203;If it is not,
Enter step 204.
Step 203, destination end sends response link information.
Step 204, connection request is sent to the next joint of present node in access path by present node
Point.
Step 205, and returns the next node of present node in access path as new present node
Return step 201.
With reference to Fig. 3, it is as described below to the step of transmitting terminal that destination end sends response link information:
Step 300, destination end sends response link information to present node.
Step 301, present node obtains response link information.
Step 302, it is judged that whether present node is transmitting terminal, if so, enters step 303;If it is not,
Enter step 304.
Step 303, transmitting terminal is set up and is connected with the bluetooth between destination end.
Step 304, response link information is sent in access path upper the one of present node by present node
Individual node.
Step 305, and returns a upper node of present node in access path as new present node
Return step 301.
Below in conjunction with an application example, Bluetooth connecting method of the present invention being described again, wherein bluetooth sets
Standby as a example by the mobile phone with bluetooth module, it is assumed that to need to set up the bluetooth between mobile phone A and mobile phone D
Connecting, concrete implementation mode is as follows:
(1) mobile phone A passes through bluetooth discovery mobile phone D;
In described step (1), mobile phone A is included by the step of bluetooth discovery mobile phone D:
(1-1) mobile phone A finds mobile phone A 1, A2 by search bluetooth equipment ..., An (n is natural number);
(1-2) list of devices that oneself is searched by mobile phone A as father node is sent to this equipment successively
Sub node equipment A1 in list, A2 ..., An (n is natural number);
(1-3) device A 1, A2 in list of devices ..., An (n is natural number), after obtaining list, remembers
Record the father node mobile phone A of oneself, simultaneously scan for the equipment that each self energy finds, and the equipment found at these
In exclude the part obtaining before having in list, the part that will repeat is removed, obtain a oneself
Child list, the list of devices that simultaneously oneself searched transmits its that come and searches together with father node
List of devices merges into the list of devices oneself searched, and mobile phone A dynamic in (1-2) before repeating
Make, until finding mobile phone D;
(1-4) path (D) of oneself is fed back by mobile phone D to father node D1, and father node D1 is connecing
After the feedback of child node, oneself is added path (D1-D) and feeds back, by this side to the father node of oneself
Method feeds back to node A always, thus obtains the path of A-......-D.
(2) with mobile phone D, mobile phone A is carried out bluetooth to be connected.
Mobile phone A is carried out the step that bluetooth is connected by described step (2) with mobile phone D including:
(2-1) path of the A-......-D that mobile phone A records according to oneself, by oneself connection request and
Access path is sent to next node mobile phone B;
(2-2) action of mobile phone A during node mobile phone B repeats (2-1);
(2-3) as above circulate up to mobile phone D;
(2-4) request of mobile phone D response mobile phone A, feeds back to mobile phone by connection response by access path
C;
(2-5) action of mobile phone D during node mobile phone C repeats (2-4);
(2-6) as above circulate up to mobile phone A;
(2-7) mobile phone A is set up with mobile phone D and is connected.
Although the foregoing describing the detailed description of the invention of the present invention, but those skilled in the art should managing
Solving, these are merely illustrative of, and protection scope of the present invention is defined by the appended claims.This
The technical staff in field, can be to these embodiment party on the premise of without departing substantially from the principle of the present invention and essence
Formula makes various changes or modifications, but these changes and amendment each fall within protection scope of the present invention.
Claims (4)
1. a Bluetooth connecting method, it is characterised in that it comprises the following steps:
S1, using transmitting terminal as present node, and incoming father node list;
S2, the search attachable all nodes of present node, and generate connectable device list, will be current
The attachable all nodes of node are stored in this connectable device list;
S3, remove in this connectable device list with father node list repeat node;
S4, present node is added access path;
S5, search present node under have how many child nodes, wherein, child node is for excluding father node list
In node;
S6, all child nodes of cycle criterion present node, if certain child node of present node is mesh
Mark end;The most then enter step S12、;If it is not, then enter step S7;
S7, the search attachable all nodes of present node, and by attachable for present node all nodes
It is stored in this connectable device list;
S8, using the child node of present node as new present node, and by this connectable device list make
For father node list;
S9, start recursive search according to new present node;
S10, judge whether recursive search terminates, if so, enter step S11、;If it is not, return step
S2;
S11, present node and below child node there is not destination end, delete the afterbody node of access path,
I.e. present node, and point out do not find destination end;
S12, find destination end, and determine the access path between transmitting terminal and destination end;
S13, transmitting terminal is according to step S12The middle access path determined sends connection request to destination end;
S14, judge whether transmitting terminal receives the response link information from destination end, if so, enter step
S15;If it is not, prompting bluetooth connection failure;
S15, transmitting terminal set up be connected with the bluetooth between destination end.
2. Bluetooth connecting method as claimed in claim 1, it is characterised in that step S13Also include with
Lower step:
S131, transmitting terminal send connection request to present node;
S132, present node obtain connectivity request message;
S133, judge whether present node is destination end, if it is not, enter step S134;If so, step is entered
Rapid S136;
S134, present node connection request is sent to the next node of present node in access path;
S135, the next node of present node in access path as new present node and is returned step
Rapid S132;
S136, destination end send response link information.
3. Bluetooth connecting method as claimed in claim 1, it is characterised in that step S15Also include with
Lower step:
S151, destination end send response link information to present node;
S152, present node obtain response link information;
S153, judge whether present node is transmitting terminal, if it is not, enter step S154;If so, step is entered
Rapid S156;
S154, present node by response link information be sent to a upper joint of present node in access path
Point;
S155, a upper node of present node in access path as new present node and is returned step
Rapid S152;
S156, transmitting terminal set up be connected with the bluetooth between destination end.
4. the Bluetooth connecting method as described in any one in claim 1-3, it is characterised in that step
Rapid S15The most further comprising the steps of: 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 CN102811076A (en) | 2012-12-05 |
CN102811076B true 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) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103973343B (en) * | 2014-04-23 | 2017-01-11 | 广东华邦云计算股份有限公司 | Communication method and system |
CN104780607B (en) * | 2015-04-24 | 2018-08-24 | 新华三技术有限公司 | To method, bluetooth trunking and the audiomonitor of the positioning of bluetooth wearable device |
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 |
Citations (4)
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 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
KR101079137B1 (en) * | 2007-02-04 | 2011-11-02 | 아주대학교산학협력단 | Method for allowing a family-based address in a wireless sensor network, and method for hierarchical routing a path setting using the same |
CN101425918A (en) * | 2007-10-29 | 2009-05-06 | 吉林市曼博科技有限公司 | Routing method based on tree network topology |
CN101909012B (en) * | 2010-08-02 | 2012-07-04 | 深圳中兴力维技术有限公司 | Route addressing method based on tree network |
-
2011
- 2011-06-03 CN CN201110149567.1A patent/CN102811076B/en active Active
Patent Citations (4)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN102811076A (en) | 2012-12-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102811076B (en) | Bluetooth connecting method | |
CN101647243B (en) | Method and apparatus of connectivity recovery in wireless network | |
CN105827282A (en) | Bluetooth equipment networking method and device and Bluetooth equipment | |
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 | |
CN106131919B (en) | A kind of synchronous method of non-stop layer self-organized network topology | |
CN106134244B (en) | wireless communication method | |
JP5462410B2 (en) | Method and apparatus for accessing a wireless sensor network | |
CN106973017B (en) | A Fast Network Data Communication Method | |
CN108777844B (en) | Positioning method and system based on Bluetooth MESH network | |
CN101867519B (en) | Dynamic area routing method and system for ad hoc network | |
CN102420876A (en) | Method for actively pushing files in point-to-point mode in android-based intelligent mobile terminal | |
CN103096422B (en) | GAS query method and device | |
CN103731842A (en) | Wireless relay networking system and method | |
CN113259864A (en) | Narrow-band communication method, interphone, equipment, storage medium and ad hoc network system | |
CN107135507A (en) | A kind of return radio path information acquisition method and device | |
CN109246785A (en) | A kind of implementation method of future mobile network | |
JP2010074691A (en) | Ad-hoc network wireless communication method | |
CN206975822U (en) | Low power consumption wireless meter reading system | |
CN101573921A (en) | Methods which avoid cluster in a wireless mesh network and systems and devices thereof | |
CN103501524B (en) | A kind of sparse self-organizing monitor network | |
CN113810976A (en) | Mesh networking data transmission method and storage medium | |
CN106162877B (en) | The method and apparatus of data transmission | |
CN106550321A (en) | A kind of construction method of the mobile ad hoc network based on Hybrid communication model | |
CN107634896A (en) | Data transmission method and device |
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 |
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. |
|
TR01 | Transfer of patent right |