Bluetooth connecting method

A bluetooth connection method and a bluetooth connection technology, which are applied in the field of bluetooth long-distance connection, can solve problems such as the limited distance of bluetooth connection and the inability to realize long-distance bluetooth connection, etc., and achieve the effect of expanding the use range

Active Publication Date: 2012-12-05
上海尧远通信科技有限公司
8 Cites 8 Cited by

AI-Extracted Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the present invention is to overcome the defects in the prior art that the bluetooth connection distance is limited and the long-distance bluetooth connect...
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

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.

Application Domain

Technology Topic

Embedded systemShort distance +2

Image

  • Bluetooth connecting method
  • Bluetooth connecting method
  • Bluetooth connecting method

Examples

  • Experimental program(1)

Example Embodiment

[0042] Hereinafter, preferred embodiments of the present invention are given in conjunction with the drawings to illustrate the technical solutions of the present invention in detail.
[0043] reference figure 1 The steps of searching for the target terminal in the Bluetooth connection method of the present invention are as follows:
[0044] In step 100, the sender is used as the current node and the parent node list is passed in. At this time, since the sender is the starting node, there is no parent node, so the parent node list at this time is empty.
[0045] Step 101: Search for all nodes that can be connected to the current node, generate a list of connectable devices, and store all nodes that can be connected to the current node in the list of connectable devices.
[0046] Step 102: Remove nodes that overlap the parent node list from the list of connectable devices.
[0047] Step 103: Add the current node to the connection path.
[0048] Step 104: Search how many child nodes there are under the current node.
[0049] Step 105: cyclically judge all the child nodes of the current node. Is a child node of the current node the target end? If yes, go to step 106; if not, go to step 107.
[0050] Step 106: Find the target end.
[0051] Step 107: Search for all the nodes that can be connected to the current node, and store all the nodes that can be connected to the current node in the list of connectable devices.
[0052] Step 108: Use the child node of the current node as the new current node, and use the connectable device list as the parent node list.
[0053] Step 109: Start a recursive search based on the new current node.
[0054] Step 110: Determine whether the recursive search is over? If yes, go to step 111; if no, go back to step 101.
[0055] Step 111: The current node and its sub-nodes below do not have a target end, and the tail node of the connection path, namely the current node, is deleted.
[0056] Step 112, the target end is not found.
[0057] reference figure 2 , The steps for the sender to send a connection request to the target are as follows:
[0058] Step 200: The sender sends a connection request to the current node.
[0059] Step 201: The current node obtains connection request information.
[0060] In step 202, it is judged whether the current node is the target end, if yes, go to step 203; if not, go to step 204.
[0061] Step 203: The target terminal sends response connection information.
[0062] Step 204: The current node sends the connection request to the next node of the current node in the connection path.
[0063] Step 205: Set the next node of the current node in the connection path as the new current node and return to step 201.
[0064] reference image 3 , The steps for the target to send response connection information to the sender are as follows:
[0065] Step 300: The target terminal sends response connection information to the current node.
[0066] Step 301: The current node obtains response connection information.
[0067] Step 302, it is judged whether the current node is the sending end, if yes, go to step 303; if not, go to step 304.
[0068] Step 303: The sending end establishes a Bluetooth connection with the target end.
[0069] Step 304: The current node sends the response connection information to the previous node of the current node in the connection path.
[0070] Step 305: Use the previous node of the current node in the connection path as the new current node and return to step 301.
[0071] The following describes the Bluetooth connection method of the present invention again with an application example. The Bluetooth device takes a mobile phone with a Bluetooth module as an example. It is assumed that a Bluetooth connection between mobile phone A and mobile phone D needs to be established. The specific implementation is as follows:
[0072] (1) Mobile phone A searches for mobile phone D via Bluetooth;
[0073] In the step (1), the steps of mobile phone A searching mobile phone D via Bluetooth include:
[0074] (1-1) Mobile phone A finds mobile phone A1, A2, ..., An (n is a natural number) by searching for Bluetooth devices;
[0075] (1-2) Mobile phone A, as the parent node, sends the device list that it has searched to the child node devices A1, A2, ..., An (n is a natural number) in the device list in turn;
[0076] (1-3) The devices A1, A2,..., An (n is a natural number) in the device list, after getting the list, record their parent node phone A, and search for the devices they can find, and find those Exclude some parts in the list that were previously obtained from the device, that is, remove the duplicate parts, and get a list of your own child nodes. At the same time, you will merge your searched device list with the searched device list sent by the parent node into yourself The searched device list, and repeat the actions of mobile phone A in the previous (1-2) until mobile phone D is found;
[0077] (1-4) Mobile phone D feeds back its own path (D) to the parent node D1, and the parent node D1 adds itself to the path (D1-D) after receiving the feedback from the child node and feeds back to its parent node, click here The method has been fed back to node A, so as to get the path of A-...-D.
[0078] (2) Connect mobile phone A and mobile phone D via Bluetooth.
[0079] In the step (2), the steps of Bluetooth connection between mobile phone A and mobile phone D include:
[0080] (2-1) Mobile phone A sends its connection request and connection path to the next node mobile phone B according to the path A-...-D recorded by itself;
[0081] (2-2) Node mobile phone B repeats the actions of mobile phone A in (2-1);
[0082] (2-3) Loop as above until cell phone D;
[0083] (2-4) Mobile phone D responds to mobile phone A's request and feeds back the connection response to mobile phone C according to the connection path;
[0084] (2-5) Node mobile phone C repeats the actions of mobile phone D in (2-4);
[0085] (2-6) Loop as above until cell phone A;
[0086] (2-7) Mobile phone A and mobile phone D establish a connection.
[0087] Although the specific embodiments of the present invention are described above, those skilled in the art should understand that these are only examples, and the protection scope of the present invention is defined by the appended claims. Those skilled in the art can make various changes or modifications to these implementations without departing from the principle and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Similar technology patents

Totally-closed rigidity adjustable type vibration isolator

ActiveCN102518727AExpand the scope of useGood energy consumptionShock absorbersEngineeringRubber ring
Owner:CHINA AIRPLANT STRENGTH RES INST

Classification and recommendation of technical efficacy words

Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products