CN105827282A - Bluetooth equipment networking method and device and Bluetooth equipment - Google Patents

Bluetooth equipment networking method and device and Bluetooth equipment Download PDF

Info

Publication number
CN105827282A
CN105827282A CN201610349303.3A CN201610349303A CN105827282A CN 105827282 A CN105827282 A CN 105827282A CN 201610349303 A CN201610349303 A CN 201610349303A CN 105827282 A CN105827282 A CN 105827282A
Authority
CN
China
Prior art keywords
bluetooth equipment
bluetooth
mark
target
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610349303.3A
Other languages
Chinese (zh)
Inventor
李志晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Technology (shenzhen) Co Ltd
Original Assignee
Technology (shenzhen) Co 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 Technology (shenzhen) Co Ltd filed Critical Technology (shenzhen) Co Ltd
Priority to CN201610349303.3A priority Critical patent/CN105827282A/en
Publication of CN105827282A publication Critical patent/CN105827282A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/72Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/246Connectivity information discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the field of Bluetooth equipment, in particular to a Bluetooth equipment networking method and device and Bluetooth equipment. The method comprises the following steps that: first Bluetooth equipment scans and is connected with second Bluetooth equipment, and transmits a connection request data packet to the second Bluetooth equipment, wherein the connection request data packet includes a target Bluetooth equipment identifier; the second Bluetooth equipment receives the connection request data packet, and judges whether the target Bluetooth equipment identifier is the same as a second Bluetooth equipment identifier or not; and if the target Bluetooth equipment identifier is the same as the second Bluetooth equipment identifier, the second Bluetooth equipment transmits a successful connection data packet to the first Bluetooth equipment, and the first Bluetooth equipment receives the successful connection data packet and adds the second Bluetooth equipment identifier and the target equipment identifier into corresponding fields of a routing table of the first Bluetooth equipment. According to the networking method, network access ways of all Bluetooth equipment are the same, namely the Bluetooth equipment has same roles and same protocols; pre-configuration is not needed; and a networking way is simple and feasible.

Description

A kind of bluetooth equipment network-building method, device and bluetooth equipment
Technical field
The present invention relates to bluetooth equipment field, particularly relate to a kind of bluetooth equipment network-building method, device and bluetooth equipment.
Background technology
Low-power consumption bluetooth (BLE) is new bluetooth 4.0 specification that BluetoothSIG released on July 7th, 2010.Its most important characteristic is that power consumption is extremely low, apart from short.Networking connected mode uses piconet (piconet) form, has and an only main equipment in each piconet, and other are all from equipment.Main equipment by the way of the time-division successively with each from device talk.After connection establishment, in network, bluetooth equipment identity determines and can not change, more cannot with network outside device talk.The most popular understanding is exactly, in actual life, and the smart mobile phone of integrated low-power consumption Bluetooth chip, only can be with the bluetooth equipment communication of one or more (less than 7) in the range of Bluetooth of mobile phone, it is impossible to extraneous bluetooth equipment communication.Additionally, in the case of not having mobile phone, information also cannot be exchanged between bluetooth equipment.This has resulted in low-power consumption bluetooth communication agreement and other networking communications protocol such as ZigBee, and Zwave compares, the huge inferior position in networking.
In October, 2013, bluetooth normal structure revised standard update to bluetooth 4.1 specification, and new Bluetooth specification allows a bluetooth equipment to be concurrently present in multiple piconet, and can play the part of different principal and subordinate roles in different piconets simultaneously.But existing bluetooth equipment network-building method generally has the disadvantage that: 1, generally use tree networking method, more complicated, simultaneously need to pre-configured, underaction, cannot MANET, such as Application No. 201510531029.7 and the patent of invention of Application No. 200810045160.2;2, bluetooth equipment is chronically at scanning or listening state, and effective scanning mode or listening state power consumption are the highest, are not suitable for low-power consumption occasion.
Summary of the invention
Object of the present invention is to provide a kind of bluetooth equipment network-building method, device and bluetooth equipment, it is intended to solve bluetooth equipment network-building method complexity underaction and the problem being not suitable for low-power consumption occasion.
First aspect, the invention provides a kind of bluetooth equipment network-building method, and described method includes:
First bluetooth equipment scanning connects the second bluetooth equipment, and sends connection request packet and include that target Bluetooth devices identifies to described second bluetooth equipment, described connection request packet;
Described second bluetooth equipment receives described connection request packet and to judge that described target Bluetooth devices identifies whether identical with the second bluetooth equipment mark;
If described target Bluetooth devices identifies whether identical with the second bluetooth equipment mark, the most described second bluetooth equipment sends successful connection packet and also described second bluetooth equipment mark, target device is identified in the corresponding field adding self routing table to described first bluetooth equipment, described first bluetooth equipment reception successful connection packet;
Preferably, if described method also includes that target Bluetooth devices mark differs with the second bluetooth equipment mark, whether the routing table of the most described second bluetooth equipment inspection self there is the mark identical with described target Bluetooth devices mark;
If mark the most identical with described target Bluetooth devices mark in the routing table of the second bluetooth equipment, then the second bluetooth equipment scanning connects the 3rd bluetooth equipment, and described connection request packet is sent to described 3rd bluetooth equipment, described 3rd bluetooth equipment receives described connection request packet and to judge that described target Bluetooth devices identifies whether identical with self identification, if it is identical, the most described 3rd bluetooth equipment sends successful connection packet to described second bluetooth equipment, described second bluetooth equipment receives successful connection packet and described successful connection packet is transmitted to described first bluetooth equipment, 3rd bluetooth equipment is identified by the second bluetooth equipment simultaneously, target device mark is added in the corresponding field of self routing table;First bluetooth equipment receives the successful connection packet of the second bluetooth equipment forwarding and described second bluetooth equipment mark, target device is identified in the corresponding field adding self routing table to.
Preferably, described method also includes: if there being the mark identical with described target Bluetooth devices mark in the routing table of the second bluetooth equipment, the most described second bluetooth equipment sends successful connection packet and also described second bluetooth equipment mark, target device is identified in the corresponding field adding self routing table to described first bluetooth equipment, described first bluetooth equipment reception successful connection packet.
Preferably, after described first bluetooth equipment receives successful connection packet, also include: automatically disconnect the first bluetooth equipment and the connection of the second bluetooth equipment.
Preferably, after the second bluetooth equipment receives successful connection packet, also include:
Automatically the 3rd bluetooth equipment and the connection of the second bluetooth equipment are disconnected.
Preferably, described routing table includes following field: target device mark, next-hop device mark, jumping figure and frequency of usage.
Preferably, described method also includes: judge that whether routing table size is more than predetermined threshold value, the most then routing iinformation that in deletion some cycles, frequency of usage is minimum.
Second aspect, present invention also offers a kind of bluetooth equipment network device, and described device includes:
Scan module, is used for scanning connection bluetooth equipment;
Sending/receiving module, is used for sending or receive connection request packet to bluetooth equipment, and described connection request packet includes that target Bluetooth devices identifies;And be used for receiving successful connection packet;
Judge module, for after receiving connection request packet, it is judged that described target Bluetooth devices identifies whether identical with equipment of itself mark;
Interpolation module, for after receiving successful connection packet, by sending, bluetooth equipment corresponding to successful connection packet identifies, target device identifies in the corresponding field adding self routing table to.
Preferably, described device also includes:
Check module, for differing with equipment of itself mark when target Bluetooth devices mark, check whether the routing table of self has the mark identical with described target Bluetooth devices mark;
Disconnect module, for after receiving successful connection packet, disconnect the connection between the bluetooth equipment corresponding with sending successful connection packet.
The third aspect, present invention also offers a kind of bluetooth equipment, described bluetooth equipment includes above-mentioned bluetooth equipment network device.
Beneficial effect: the present invention provides a kind of bluetooth equipment network-building method, first bluetooth equipment directly transmits connection request packet to the second bluetooth equipment after connecting bluetooth equipment by scanning, second bluetooth equipment receives described connection request packet and to judge that target Bluetooth devices identifies whether identical with the second bluetooth equipment mark, if identical, the second bluetooth equipment sends successful connection packet to described first bluetooth equipment, first bluetooth equipment receives successful connection packet and by described second bluetooth equipment mark, target device mark is added in the corresponding field of self routing table.In this network-building method, identical i.e. each bluetooth equipment role of all bluetooth equipment network access modes is identical, and agreement is the most identical, it is not necessary to pre-configured, and networking mode is simple;The most just it is scanned simultaneously, and bluetooth equipment sends data and is in broadcast state rather than listening state, the most low in energy consumption.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in describing below is only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the bluetooth equipment network-building method flow chart that one embodiment of the invention provides;
Fig. 2 is the bluetooth equipment network-building method flow chart that one embodiment of the invention provides;
Fig. 3 is the application scenarios schematic diagram that the embodiment of the present invention provides;
Fig. 4 is the Another Application scene schematic diagram that the embodiment of the present invention provides;
Fig. 5 is the bluetooth equipment network device structured flowchart that one embodiment of the invention provides.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
A kind of bluetooth equipment network-building method flow chart that Fig. 1 provides for the embodiment of the present invention, with reference to Fig. 1, this method comprises the following steps:
Step 101, the first bluetooth equipment scanning connect the second bluetooth equipment, and send connection request packet and include that target Bluetooth devices identifies to described second bluetooth equipment, described connection request packet.
Concrete, when the first bluetooth equipment needs to send data to target Bluetooth devices, whether the routing table of the first bluetooth equipment inspection self has target Bluetooth devices to identify, if the routing table of self does not has target Bluetooth devices to identify, the second bluetooth equipment broadcasted in then the first bluetooth equipment scans its regional extent, when scanning the second bluetooth equipment, then connect the second bluetooth equipment, and send connection request packet to the second bluetooth equipment.This connection request packet includes that target Bluetooth devices identifies, and described mark can be ID or the MAC Address of bluetooth equipment of bluetooth equipment.Needing explanation, if scanning multiple second bluetooth equipment, then the first comprehensive RSSI of bluetooth equipment (Bluetooth signal is strong and weak) and history parameters select the second optimum bluetooth equipment to be attached.
The routing table of each bluetooth equipment self described by the embodiment of the present invention includes following field: target device mark, next-hop device mark, jumping figure and frequency of usage.Same target device mark can be ID or the MAC Address of target device, and it can be the give a start ID of equipment or MAC Address that next-hop device identifies.Jumping figure refers to need altogether the number of times of transfer from this equipment to target device.Frequency of usage refers to the frequency of usage of this route entry.
Step 102, described second bluetooth equipment receive described connection request packet.
It is identical with the second bluetooth equipment mark that step 103, described second bluetooth equipment judge that described target Bluetooth devices identifies whether.
If step 104 described target Bluetooth devices mark is identical with the second bluetooth equipment mark, described second bluetooth equipment sends successful connection packet to described first bluetooth equipment.
When target Bluetooth devices mark is identical with the second bluetooth equipment mark, illustrating that the second bluetooth equipment is exactly target Bluetooth devices, the second bluetooth equipment transmission successful connection packet, to described first bluetooth equipment, informs the first bluetooth equipment link successful connection.
Step 105, described first bluetooth equipment receive successful connection packet and described second bluetooth equipment mark, target device are identified in the corresponding field adding self routing table to.
Second bluetooth equipment is identified by the first bluetooth equipment, target device mark is added in the corresponding field of self routing table, also will add in self routing table by new routing iinformation.Preferably, after the first bluetooth equipment receives successful connection packet, also include: automatically disconnect the first bluetooth equipment and the connection of the second bluetooth equipment, so can greatly reduce power consumption.
This bluetooth equipment network-building method, first bluetooth equipment directly transmits connection request packet to the second bluetooth equipment after connecting bluetooth equipment by scanning, second bluetooth equipment receives described connection request packet and to judge that target Bluetooth devices identifies whether identical with the second bluetooth equipment mark, if identical, the second bluetooth equipment sends successful connection packet and also described second bluetooth equipment mark, target device is identified in the corresponding field adding self routing table to described first bluetooth equipment, the first bluetooth equipment reception successful connection packet.In this network-building method, identical i.e. each bluetooth equipment role of all bluetooth equipment network access modes is identical, during networking, each bluetooth equipment connects the bluetooth equipment in this bluetooth equipment bluetooth range by scanning, each bluetooth equipment can be main equipment can also be from equipment, so node number in net does not has the upper limit in theory, it is achieved that the mesh MANET of bluetooth equipment.Each node protocol is the most identical, and in the mesh network of bluetooth equipment, all of node is communicated with each other networking, it is not necessary to pre-configured, networking mode is simple;The most just it is scanned simultaneously, and bluetooth equipment sends data and is in broadcast state rather than listening state, the most low in energy consumption.
The another bluetooth equipment network-building method flow chart that Fig. 2 provides for the embodiment of the present invention, with reference to Fig. 2, this method comprises the following steps:
Step 201, the first bluetooth equipment scanning connect the second bluetooth equipment, and send connection request packet and include that target Bluetooth devices identifies to described second bluetooth equipment, described connection request packet.
Concrete, when the first bluetooth equipment needs to send data to target Bluetooth devices, whether the routing table of the first bluetooth equipment inspection self has target Bluetooth devices to identify, if the routing table of self does not has target Bluetooth devices to identify, the second bluetooth equipment broadcasted in then the first bluetooth equipment scans its regional extent, when scanning the second bluetooth equipment, then connect the second bluetooth equipment, and send connection request packet to the second bluetooth equipment.This connection request packet includes that target Bluetooth devices identifies, and described mark can be ID or the MAC Address of bluetooth equipment of bluetooth equipment.Needing explanation, if scanning multiple second bluetooth equipment, then the first comprehensive RSSI of bluetooth equipment (Bluetooth signal is strong and weak) and history parameters select the second optimum bluetooth equipment to be attached.
The routing table of each bluetooth equipment self described by the embodiment of the present invention includes following field: target device mark, next-hop device mark, jumping figure and frequency of usage.Same target device mark can be ID or the MAC Address of target device, and it can be the give a start ID of equipment or MAC Address that next-hop device identifies.Jumping figure refers to need altogether the number of times of transfer from this equipment to target device.Frequency of usage refers to the frequency of usage of this route entry.
Step 202, described second bluetooth equipment receive described connection request packet.
It is identical with the second bluetooth equipment mark that step 203, described second bluetooth equipment judge that described target Bluetooth devices identifies whether.If described target Bluetooth devices mark is identical with the second bluetooth equipment mark, then perform step 204;If target Bluetooth devices mark differs with the second bluetooth equipment mark, then perform step 205;
Step 204, described second bluetooth equipment send successful connection packet and also described second bluetooth equipment mark, target device are identified in the corresponding field adding self routing table to described first bluetooth equipment, described first bluetooth equipment reception successful connection packet.
When target Bluetooth devices mark is identical with the second bluetooth equipment mark, illustrate that the second bluetooth equipment is exactly target device, second bluetooth equipment sends successful connection packet to described first bluetooth equipment, inform the first bluetooth equipment link successful connection, second bluetooth equipment is identified by the first bluetooth equipment, target device mark is added in the corresponding field of self routing table, also will add in self routing table by new routing iinformation.
Step 205, described second bluetooth equipment inspection self routing table in whether have the mark identical with described target Bluetooth devices mark.If the routing table of the second bluetooth equipment self exists the mark identical with described target Bluetooth devices mark, then perform step 206, otherwise perform step 207.
When target Bluetooth devices mark differs with the second bluetooth equipment mark, illustrate that target device is not the second bluetooth equipment, at this moment whether the second bluetooth equipment has the mark identical with described target Bluetooth devices mark in checking self routing table, namely checks whether the second bluetooth equipment has built up to the link of target Bluetooth devices.
Step 206, the second bluetooth equipment send successful connection packet and also the second bluetooth equipment mark, target device are identified in the corresponding field adding self routing table to described first bluetooth equipment, the first bluetooth equipment reception successful connection packet.
If the routing table of the second bluetooth equipment self exists the mark identical with described target Bluetooth devices mark, then illustrate that the second bluetooth equipment exists to the routing link of target device, need not re-establish, so second bluetooth equipment can send successful connection packet to described first bluetooth equipment, informing the first bluetooth equipment link successful connection, the second bluetooth equipment is identified by the first bluetooth equipment, target device identifies in the corresponding field adding self routing table to.Thus the first bluetooth equipment is to the link establishment success of target Bluetooth devices.
Step 207, the second bluetooth equipment scanning connect the 3rd bluetooth equipment, and described connection request packet are sent to described 3rd bluetooth equipment;Described 3rd bluetooth equipment receives described connection request packet and to judge that described target Bluetooth devices identifies whether identical with self identification.
If mark the most identical with described target Bluetooth devices mark in the routing table of the second bluetooth equipment, illustrate that the second bluetooth equipment is not set up with the link of target device, other bluetooth equipments broadcasted in now the second bluetooth equipment can scan self bluetooth range, whether other bluetooth equipments continuing to search for self bluetooth range exist target Bluetooth devices thus set up new link.Concrete, second bluetooth equipment scanning connects the 3rd bluetooth equipment, and described connection request packet is sent to described 3rd bluetooth equipment, described 3rd bluetooth equipment receives described connection request packet and to judge that described target Bluetooth devices identifies whether identical with self identification.
Step 208, when target Bluetooth devices mark identical with the 3rd bluetooth equipment mark time, 3rd bluetooth equipment sends successful connection packet to described second bluetooth equipment, described second bluetooth equipment receives successful connection packet and described successful connection packet is transmitted to described first bluetooth equipment, and the 3rd bluetooth equipment is identified by the second bluetooth equipment simultaneously, target device identifies in the corresponding field adding self routing table to;First bluetooth equipment receives the successful connection packet of the second bluetooth equipment forwarding and described second bluetooth equipment mark, target device is identified in the corresponding field adding self routing table to.
When target Bluetooth devices mark is identical with the 3rd bluetooth equipment mark, illustrate that the 3rd bluetooth equipment is exactly target Bluetooth devices, now the 3rd bluetooth equipment can send successful connection packet to described second bluetooth equipment, informing the second bluetooth equipment link establishment success, successful connection packet can be sent to the first bluetooth equipment and inform the first bluetooth equipment link establishment success by the second bluetooth equipment simultaneously.And target device mark and next-hop device mark can be added in the routing table field of correspondence by the second bluetooth equipment and the first bluetooth equipment.
It should be noted that, when target Bluetooth devices mark differs with the 3rd bluetooth equipment mark, now whether the 3rd bluetooth equipment has the mark identical with described target Bluetooth devices mark in checking self routing table, repeat the action of the second bluetooth equipment in step 205, so until with target device successful connection.Certainly, when implementing, it is also possible to set networking Preset Time, if the most unsuccessful foundation of link in Preset Time, then can a up node feeding back link establishment failure information, inform link establishment failure.Simultaneously when the scanning of above-mentioned bluetooth equipment connects other bluetooth equipments in its bluetooth range, if not having other bluetooth equipments in this bluetooth range, this bluetooth equipment understands interrupt scanning, and feedback link sets up failure information to upper hop bluetooth equipment.
Preferably, in above-mentioned network-building method, after described first bluetooth equipment receives successful connection packet, also include: automatically disconnect the first bluetooth equipment and the connection of the second bluetooth equipment.After second bluetooth equipment receives successful connection packet, also include: automatically disconnecting the 3rd bluetooth equipment and the connection of the second bluetooth equipment, so when not having data to send, disconnect, equipment is in off position, can be greatly saved power consumption.
Preferably, described method also includes: judge that whether the size of routing table is more than predetermined threshold value, the most then routing iinformation that in deletion some cycles, frequency of usage is minimum.When bluetooth equipment sends data by the path of routing table every time, all can record the frequency of usage of respective paths.When routing table is bigger, such as more than hardware memory, then the routing iinformation that in deletion some cycles, frequency of usage is minimum, to reduce internal memory.
After carrying out bluetooth equipment networking according to above-described embodiment network-building method, follow-up bluetooth equipment can carry out data transmission according to the path in routing table.In this network-building method, identical i.e. each bluetooth equipment role of all bluetooth equipment network access modes is identical, during networking, each bluetooth equipment connects the bluetooth equipment in this bluetooth equipment bluetooth range by scanning, each bluetooth equipment can be main equipment can also be from equipment, so node number in net does not has the upper limit in theory, it is achieved that the mesh MANET of bluetooth equipment.Each node protocol is the most identical, and in the mesh network of bluetooth equipment, all of node is communicated with each other networking, it is not necessary to pre-configured, networking mode is simple;The most just it is scanned simultaneously, and bluetooth equipment sends data and is in broadcast state rather than listening state, the most low in energy consumption.
It should be noted that, for aforesaid each method embodiment, in order to be briefly described, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement, because according to the present invention, some step can use other orders or carry out simultaneously.
In order to bluetooth equipment network-building method above-described embodiment described by is better described, illustrate below by an application scenarios: as it is shown on figure 3,
Being only capable of scanning B, A and C in the range of the Bluetooth signal of device A and the most all cannot find the other side, B can scan A and C.A needs to transmit an information to C now.
1.A retrieves the routing table of oneself, not about the entry of equipment C.
2.A initiates peripheral equipment scanning, scans B, sets up principal and subordinate link with B, and A is main equipment, and B is from equipment.Meanwhile, because establishment of connection A equipment is no longer broadcasted.
After 3.B receives packet, extract target device C address, differ with oneself address comparison.Then the routing table of oneself is checked, also without the information of C address.Then B initiates scanning, scans equipment C, sets up principal and subordinate link with C, and B is main equipment, and C is from equipment.Now B concurrently acts as the main equipment connected from equipment and BC that AB connects.
After 4.C receives packet, extract target device C address, identical with oneself address comparison.Return link be successfully established packet to B, B add target device C, next-hop device C, number of hops 1, route entry.B also returns to link after confirming and is successfully established packet to A.A adds target device C, next-hop device B, number of hops 1, route entry.So far, the data link setup success between ABC.
Fig. 4 is Another Application scene schematic diagram, with reference to Fig. 4,
If network condition is as shown above, A needs to send a packet to D, and the routing table starting most A does not has the routing iinformation of D, he can first connect B request and set up link, there is C and D around B-scan, i.e. have found D, then link can be replied and be successfully established and return the routing iinformation that B-D1 jumps.To B, C and to D transmission information after, A sets up routing table after receiving, as shown in table 1:
The routing table that table 1A sets up
Initial Target Down hop Jumping figure Frequency of usage (is assumed)
A B B 1 21
A C B 2 33
A D B 2 4
A E E 1 11
B also establishes following routing table simultaneously, as shown in table 2:
The routing table that table 1B sets up
Initial Target Down hop Jumping figure Frequency of usage (is assumed)
B C C 1 21
B D D 1 33
After routing table is successfully established, all of data will send without scanning with reference to this routing table.When hardware condition is not enough to store long routing table, routing table A-D-B-2 minimum by rejecting frequency of usage.
As A to send packet to D again, searching routing table, link request is issued down hop B, B searches the routing table of oneself, forwards a request to D, and link establishment completes.It is not cycle through incoherent node.
It addition, as described in above-mentioned network-building method, why A needs to forward packet by B, is because C and D the most not in the wireless range of oneself, as in the range of oneself, such as E the most directly forwards without relaying.In like manner, C and D is in the bluetooth range of B, so B sends out packet without pipe C directly to D.
Second aspect, the embodiment of the present invention additionally provides a kind of bluetooth equipment network device 1, and this device is in various bluetooth equipments, and including when be not limited to mobile phone, bluetooth earphone, IPAD etc., with reference to Fig. 5, this device includes:
Scan module 11, is used for scanning bluetooth equipment;
Sending/receiving module 12, is used for sending or receive connection request packet to bluetooth equipment, and described connection request packet includes that target Bluetooth devices identifies;And be used for receiving successful connection packet;
Judge module 13, for after receiving connection request packet, it is judged that described target Bluetooth devices identifies whether identical with equipment of itself mark;
Check module 14, for differing with equipment of itself mark when target Bluetooth devices mark, check whether the routing table of self has the mark identical with described target Bluetooth devices mark;
Interpolation module 15, for after receiving successful connection packet, by sending, bluetooth equipment corresponding to successful connection packet identifies, target device identifies in the corresponding field adding self routing table to.
Preferably, described device also includes:
Disconnect module 16, for after receiving successful connection packet, disconnect the connection between the bluetooth equipment corresponding with sending successful connection packet.
Preferably, described judge module is additionally operable to judge that whether the size of routing table is more than predetermined threshold value, the most then routing iinformation that in deletion some cycles, frequency of usage is minimum.
Device in the present embodiment is based on two aspects under same inventive concept with the bluetooth equipment network-building method in previous embodiment, the most, method implementation process is described in detail, so those skilled in the art can be according to the structure of the system being well understood in this enforcement described above and implementation process, succinct for description, just repeats no more at this.
The third aspect, the embodiment of the present invention additionally provides a kind of bluetooth equipment, and described bluetooth equipment includes above-mentioned bluetooth equipment network device 1.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all any amendment, equivalent and improvement etc. made within the spirit and principles in the present invention, should be included within the scope of the present invention.

Claims (10)

1. a bluetooth equipment network-building method, it is characterised in that described method includes:
First bluetooth equipment scanning connects the second bluetooth equipment, and sends connection request packet and include that target Bluetooth devices identifies to described second bluetooth equipment, described connection request packet;
Described second bluetooth equipment receives described connection request packet and to judge that described target Bluetooth devices identifies whether identical with the second bluetooth equipment mark;
If described target Bluetooth devices mark is identical with the second bluetooth equipment mark, the most described second bluetooth equipment sends successful connection packet and also described second bluetooth equipment mark, target device is identified in the corresponding field adding self routing table to described first bluetooth equipment, described first bluetooth equipment reception successful connection packet.
Bluetooth equipment network-building method the most according to claim 1, it is characterised in that described method also includes:
If target Bluetooth devices mark differs with the second bluetooth equipment mark, whether the routing table of the most described second bluetooth equipment inspection self there is the mark identical with described target Bluetooth devices mark;
If mark the most identical with described target Bluetooth devices mark in the routing table of the second bluetooth equipment, then the second bluetooth equipment scanning connects the 3rd bluetooth equipment, and described connection request packet is sent to described 3rd bluetooth equipment, described 3rd bluetooth equipment receives described connection request packet and to judge that described target Bluetooth devices identifies whether identical with self identification, if it is identical, the most described 3rd bluetooth equipment sends successful connection packet to described second bluetooth equipment, described second bluetooth equipment receives successful connection packet and described successful connection packet is transmitted to described first bluetooth equipment, 3rd bluetooth equipment is identified by the second bluetooth equipment simultaneously, target device mark is added in the corresponding field of self routing table;First bluetooth equipment receives the successful connection packet of the second bluetooth equipment forwarding and described second bluetooth equipment mark, target device is identified in the corresponding field adding self routing table to.
Bluetooth equipment network-building method the most according to claim 2, it is characterized in that, described method also includes: if there being the mark identical with described target Bluetooth devices mark in the routing table of the second bluetooth equipment, the most described second bluetooth equipment sends successful connection packet and also described second bluetooth equipment mark, target device is identified in the corresponding field adding self routing table to described first bluetooth equipment, described first bluetooth equipment reception successful connection packet.
Bluetooth equipment network-building method the most according to claim 3, it is characterised in that after described first bluetooth equipment receives successful connection packet, also include: automatically disconnect the first bluetooth equipment and the connection of the second bluetooth equipment.
Bluetooth equipment network-building method the most according to claim 3, it is characterised in that after the second bluetooth equipment receives successful connection packet, also include:
Automatically the 3rd bluetooth equipment and the connection of the second bluetooth equipment are disconnected.
Bluetooth equipment network-building method the most according to claim 1, it is characterised in that described routing table includes following field: target device mark, next-hop device mark, jumping figure and frequency of usage.
Bluetooth equipment network-building method the most according to claim 6, it is characterised in that described method also includes:
Judge that whether routing table size is more than predetermined threshold value, the most then routing iinformation that in deletion some cycles, frequency of usage is minimum.
8. a bluetooth equipment network device, it is characterised in that described device includes:
Scan module, is used for scanning bluetooth equipment;
Sending/receiving module, is used for sending or receive connection request packet to bluetooth equipment, and described connection request packet includes that target Bluetooth devices identifies;And be used for receiving successful connection packet;
Judge module, for after receiving connection request packet, it is judged that described target Bluetooth devices identifies whether identical with equipment of itself mark;
Interpolation module, for after receiving successful connection packet, by sending, bluetooth equipment corresponding to successful connection packet identifies, target device identifies in the corresponding field adding self routing table to.
Bluetooth equipment network device the most according to claim 7, it is characterised in that described device also includes:
Check module, for differing with equipment of itself mark when target Bluetooth devices mark, check whether the routing table of self has the mark identical with described target Bluetooth devices mark;
Disconnect module, for after receiving successful connection packet, disconnect the connection between the bluetooth equipment corresponding with sending successful connection packet.
10. a bluetooth equipment, it is characterised in that described bluetooth equipment includes the bluetooth equipment network device that one of claim 8 or 9 is described.
CN201610349303.3A 2016-05-24 2016-05-24 Bluetooth equipment networking method and device and Bluetooth equipment Pending CN105827282A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610349303.3A CN105827282A (en) 2016-05-24 2016-05-24 Bluetooth equipment networking method and device and Bluetooth equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610349303.3A CN105827282A (en) 2016-05-24 2016-05-24 Bluetooth equipment networking method and device and Bluetooth equipment

Publications (1)

Publication Number Publication Date
CN105827282A true CN105827282A (en) 2016-08-03

Family

ID=56530487

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610349303.3A Pending CN105827282A (en) 2016-05-24 2016-05-24 Bluetooth equipment networking method and device and Bluetooth equipment

Country Status (1)

Country Link
CN (1) CN105827282A (en)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658359A (en) * 2016-10-12 2017-05-10 青岛海信移动通信技术股份有限公司 Bluetooth connection method and device and communication system
CN106878933A (en) * 2017-04-27 2017-06-20 厦门非泛科技有限公司 A kind of bluetooth equipment network-building method and system
CN106937248A (en) * 2017-01-25 2017-07-07 北京奇虎科技有限公司 A kind of document handling method of mobile terminal, device and mobile terminal
CN107508714A (en) * 2017-09-26 2017-12-22 深圳市微智电子有限公司 The method and device of network configuration is carried out to bluetooth equipment based on bluetooth mesh
CN107635215A (en) * 2017-08-25 2018-01-26 西安电子科技大学 Mesh network-building methods based on low-power consumption bluetooth
CN108156060A (en) * 2018-02-27 2018-06-12 广东美的制冷设备有限公司 The home appliance and its means of communication, system and computer readable storage medium
CN108184226A (en) * 2017-12-31 2018-06-19 福建省卓展信息科技股份有限公司 A kind of intelligence notifies from a phone call drinking-water system
CN108199931A (en) * 2017-12-06 2018-06-22 深圳大学 A kind of household electric appliance control method and system
CN108270665A (en) * 2018-01-04 2018-07-10 上海闻泰电子科技有限公司 Instant network communication system and communication means
CN108494687A (en) * 2018-03-08 2018-09-04 全球能源互联网研究院有限公司 Power information physical system multipath networking communication means based on wifi and system
CN109151790A (en) * 2018-10-25 2019-01-04 苏州格目软件技术有限公司 A kind of connection method of Bluetooth device and its system based on network security
CN109617808A (en) * 2019-01-14 2019-04-12 安凯(广州)微电子技术有限公司 A kind of data-optimized transmission method, system and device based on bluetooth Mesh
CN109922465A (en) * 2019-01-28 2019-06-21 展讯半导体(成都)有限公司 Network collocating method and device
CN110460982A (en) * 2019-07-23 2019-11-15 厦门阳光恩耐照明有限公司 The distribution method and device of bluetooth MESH Intelligent illumination device
CN111200805A (en) * 2018-11-19 2020-05-26 福建天泉教育科技有限公司 Bluetooth networking method and system based on Bluetooth equipment
CN111886843A (en) * 2018-06-13 2020-11-03 卧安科技(深圳)有限公司 Low power consumption Bluetooth network maintenance method, electronic device, Bluetooth network and medium
CN112689275A (en) * 2020-12-23 2021-04-20 阳光学院 Novel non-uniform power forming method for BLE mesh network
CN112752226A (en) * 2019-10-30 2021-05-04 惠州迪芬尼声学科技股份有限公司 Method and system for Bluetooth low-power network configuration
CN113727315A (en) * 2020-10-29 2021-11-30 天翼智慧家庭科技有限公司 Method for supporting automatic networking of Bluetooth equipment
CN113727291A (en) * 2020-05-26 2021-11-30 菜鸟智能物流控股有限公司 Equipment interaction method, device, server and data processing method
CN114356272A (en) * 2022-03-17 2022-04-15 荣耀终端有限公司 Data transmission method and system
CN113727315B (en) * 2020-10-29 2024-06-07 天翼数字生活科技有限公司 Method for supporting automatic networking of Bluetooth equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
US20040223475A1 (en) * 2003-05-09 2004-11-11 Institute For Information Industry Data transfer method for a bluetooth scatternet
US20090201907A1 (en) * 2004-02-09 2009-08-13 Qualcomm Incorporated Multi-hop communications in a wireless network
CN101909012A (en) * 2010-08-02 2010-12-08 深圳中兴力维技术有限公司 Route addressing method based on tree network
CN102761351A (en) * 2011-04-27 2012-10-31 比亚迪股份有限公司 Information transfer method and system based on Bluetooth technology
CN102811076A (en) * 2011-06-03 2012-12-05 希姆通信息技术(上海)有限公司 Bluetooth connecting method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
US20040223475A1 (en) * 2003-05-09 2004-11-11 Institute For Information Industry Data transfer method for a bluetooth scatternet
US20090201907A1 (en) * 2004-02-09 2009-08-13 Qualcomm Incorporated Multi-hop communications in a wireless network
CN101909012A (en) * 2010-08-02 2010-12-08 深圳中兴力维技术有限公司 Route addressing method based on tree network
CN102761351A (en) * 2011-04-27 2012-10-31 比亚迪股份有限公司 Information transfer method and system based on Bluetooth technology
CN102811076A (en) * 2011-06-03 2012-12-05 希姆通信息技术(上海)有限公司 Bluetooth connecting method

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658359B (en) * 2016-10-12 2020-09-11 青岛海信移动通信技术股份有限公司 Bluetooth connection method, device and communication system
CN106658359A (en) * 2016-10-12 2017-05-10 青岛海信移动通信技术股份有限公司 Bluetooth connection method and device and communication system
CN106937248B (en) * 2017-01-25 2019-09-17 北京安云世纪科技有限公司 A kind of document handling method of mobile terminal, device and mobile terminal
CN106937248A (en) * 2017-01-25 2017-07-07 北京奇虎科技有限公司 A kind of document handling method of mobile terminal, device and mobile terminal
CN106878933A (en) * 2017-04-27 2017-06-20 厦门非泛科技有限公司 A kind of bluetooth equipment network-building method and system
US10575178B2 (en) * 2017-04-27 2020-02-25 Xiamen Freefun Technology Co., Ltd Bluetooth device networking method and system
CN106878933B (en) * 2017-04-27 2020-02-11 厦门非泛科技有限公司 Bluetooth device networking method and system
CN107635215A (en) * 2017-08-25 2018-01-26 西安电子科技大学 Mesh network-building methods based on low-power consumption bluetooth
CN107508714A (en) * 2017-09-26 2017-12-22 深圳市微智电子有限公司 The method and device of network configuration is carried out to bluetooth equipment based on bluetooth mesh
CN108199931A (en) * 2017-12-06 2018-06-22 深圳大学 A kind of household electric appliance control method and system
CN108184226A (en) * 2017-12-31 2018-06-19 福建省卓展信息科技股份有限公司 A kind of intelligence notifies from a phone call drinking-water system
CN108270665A (en) * 2018-01-04 2018-07-10 上海闻泰电子科技有限公司 Instant network communication system and communication means
CN108156060A (en) * 2018-02-27 2018-06-12 广东美的制冷设备有限公司 The home appliance and its means of communication, system and computer readable storage medium
CN108494687A (en) * 2018-03-08 2018-09-04 全球能源互联网研究院有限公司 Power information physical system multipath networking communication means based on wifi and system
CN111886843B (en) * 2018-06-13 2023-04-04 卧安科技(深圳)有限公司 Low power consumption Bluetooth network maintenance method, electronic device, bluetooth network and medium
CN111886843A (en) * 2018-06-13 2020-11-03 卧安科技(深圳)有限公司 Low power consumption Bluetooth network maintenance method, electronic device, Bluetooth network and medium
CN109151790B (en) * 2018-10-25 2021-11-26 深圳市信富达科技有限公司 Bluetooth device connection method and system based on network security
CN109151790A (en) * 2018-10-25 2019-01-04 苏州格目软件技术有限公司 A kind of connection method of Bluetooth device and its system based on network security
CN111200805A (en) * 2018-11-19 2020-05-26 福建天泉教育科技有限公司 Bluetooth networking method and system based on Bluetooth equipment
CN111200805B (en) * 2018-11-19 2023-11-24 福建天泉教育科技有限公司 Bluetooth networking method and system based on Bluetooth equipment
CN109617808A (en) * 2019-01-14 2019-04-12 安凯(广州)微电子技术有限公司 A kind of data-optimized transmission method, system and device based on bluetooth Mesh
CN109922465B (en) * 2019-01-28 2022-07-01 展讯半导体(成都)有限公司 Network configuration method and device
CN109922465A (en) * 2019-01-28 2019-06-21 展讯半导体(成都)有限公司 Network collocating method and device
CN110460982A (en) * 2019-07-23 2019-11-15 厦门阳光恩耐照明有限公司 The distribution method and device of bluetooth MESH Intelligent illumination device
CN112752226B (en) * 2019-10-30 2022-06-24 惠州迪芬尼声学科技股份有限公司 Method and system for Bluetooth low-power network configuration
CN112752226A (en) * 2019-10-30 2021-05-04 惠州迪芬尼声学科技股份有限公司 Method and system for Bluetooth low-power network configuration
CN113727291A (en) * 2020-05-26 2021-11-30 菜鸟智能物流控股有限公司 Equipment interaction method, device, server and data processing method
CN113727315A (en) * 2020-10-29 2021-11-30 天翼智慧家庭科技有限公司 Method for supporting automatic networking of Bluetooth equipment
CN113727315B (en) * 2020-10-29 2024-06-07 天翼数字生活科技有限公司 Method for supporting automatic networking of Bluetooth equipment
CN112689275A (en) * 2020-12-23 2021-04-20 阳光学院 Novel non-uniform power forming method for BLE mesh network
CN112689275B (en) * 2020-12-23 2024-04-16 阳光学院 Novel non-uniform power forming method for BLE mesh network
CN114356272A (en) * 2022-03-17 2022-04-15 荣耀终端有限公司 Data transmission method and system

Similar Documents

Publication Publication Date Title
CN105827282A (en) Bluetooth equipment networking method and device and Bluetooth equipment
JP4800067B2 (en) Communication node and routing method
US10554795B2 (en) Uplink transmission method, related device, and system
US9843989B2 (en) Uniform UE initialization procedure for both in-coverage and out-of-coverage D2D communications
US20170013658A1 (en) Network methods and apparatus
CN105873169B (en) Wireless ad hoc network communication method
CN104717714A (en) Routing information sending and receiving method and device and routing information processing system
WO2015151423A1 (en) Wireless communication method
CN107534610B (en) Information processing apparatus, information processing method, and non-transitory computer readable medium
CN105763443A (en) HWMP-based double route cooperation method
CN102413542A (en) Wireless mesh network routing method and wireless mesh network
CN107666686B (en) Method for transmitting data and relay node
US20080107033A1 (en) Radio communication network capable of radio communication with reduced overhead
US9301336B2 (en) Communication method in WLAN system
US20070189204A1 (en) Method for communication in a wlan with a group of relay stations and radio access points
US10356607B2 (en) Wireless communication apparatus, communication system and wireless communication apparatus control method to exchange services
CN106102133B (en) Method and system for realizing dynamic wireless network based on mobile terminal
US10091704B2 (en) Radio communication system and radio base station
KR101762696B1 (en) Route Maintenance Protocol Using Destination-initiated Flooding in Mobile Ad Hoc Networks
JP2020519108A (en) Paging method and device
JP6195245B2 (en) Mobile ad hoc network architecture and communication method of mobile ad hoc network architecture
CN106102050A (en) Wireless network configuration method, wireless router and smart machine
CN104661235A (en) Networking method and device
WO2023279305A1 (en) Communication method and communication apparatus
US11646962B1 (en) Zero overhead efficient flooding (ZOEF) oriented hybrid any-cast routing for mobile ad hoc networks (MANET)

Legal Events

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

Application publication date: 20160803

RJ01 Rejection of invention patent application after publication