CN108834121A - A kind of bluetooth equipment ad hoc network method and system - Google Patents

A kind of bluetooth equipment ad hoc network method and system Download PDF

Info

Publication number
CN108834121A
CN108834121A CN201810707935.1A CN201810707935A CN108834121A CN 108834121 A CN108834121 A CN 108834121A CN 201810707935 A CN201810707935 A CN 201810707935A CN 108834121 A CN108834121 A CN 108834121A
Authority
CN
China
Prior art keywords
bluetooth equipment
bluetooth
equipment
hoc network
distance
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
Application number
CN201810707935.1A
Other languages
Chinese (zh)
Other versions
CN108834121B (en
Inventor
龙垄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201810707935.1A priority Critical patent/CN108834121B/en
Publication of CN108834121A publication Critical patent/CN108834121A/en
Application granted granted Critical
Publication of CN108834121B publication Critical patent/CN108834121B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Abstract

The present invention provides a kind of bluetooth equipment ad hoc network method and system.This method includes the key for receiving ad hoc network certification, to carry out the matching ad hoc network of the certification between bluetooth equipment;The distance between any two bluetooth equipment is calculated according to the received signal strength between any two bluetooth equipment;According to the shortest path route of the minimum range planning bluetooth equipment ad hoc network connection between bluetooth equipment;The connection of bluetooth equipment ad hoc network is carried out according to shortest path route.The bluetooth equipment ad hoc network method and system, successfully solve current multiple single rambling networkings of bluetooth equipment, reduce the occupancy of signal frequency range, to which interfering with each other between Bluetooth signal be reduced or avoided, interference of the Bluetooth signal to other wireless signals has also been reduced or avoided simultaneously, it ensures that the stability of multiple bluetooth equipment controls, and then more preferable better service can be provided for user.

Description

A kind of bluetooth equipment ad hoc network method and system
Technical field
The present invention relates to fields of communication technology, and in particular, to a kind of bluetooth equipment ad hoc network method and system.
Background technique
Existing smart home system is mainly made of intranet, gateway and extranets.Intranet is mainly to connect family Various equipment and household electrical appliances, that is, household internal local area network, many home Intranets are still carried out by wired mode Connection, wired connection there are difficult wiring, it is at high cost the disadvantages of, wirelessly setting up home Intranet seems especially It is important.And currently, for example wireless wifi and zigbee of wireless mode has many disadvantages, for example wifi is there are price is relatively high, The disadvantages of power consumption is bigger, poor mobility, networking is difficult;Difficulty is big, and cost is relatively high, transmission rate ratio in the presence of promoting by zigbee The disadvantages of slower.With the development of mobile communication technology, the release of bluetooth 4.0 and the above standard is brought to smart home industry Strong technical support, so that bluetooth equipment possesses extremely low operation and stand-by power consumption, therefore bluetooth equipment is in intelligent family The field of residence uses more and more extensive.
The connection type of current home internal Bluetooth equipment is all that handheld terminal directly carries out matching company with bluetooth equipment It connects, to control bluetooth equipment;That is, the networking of bluetooth equipment at present be it is single rambling, there are multiple bluetooths to believe Number reach matching effect in end of scan always, this can occupy a large amount of signal frequency range, and Bluetooth signal between each other there is also Interference causes handheld terminal control bluetooth equipment to generate interference, seriously affects the normal use of bluetooth equipment, can also be to other nothings Line equipment has an impact.
Therefore, how to optimize bluetooth home equipment networking, have become current urgent problem to be solved.
Summary of the invention
The present invention is directed to the above-mentioned technical problems in the prior art, provides a kind of bluetooth equipment ad hoc network method and is System.The bluetooth equipment ad hoc network method successfully solves current multiple single rambling networkings of bluetooth equipment, reduces So that interfering with each other between Bluetooth signal be reduced or avoided, while indigo plant has also been reduced or avoided in the occupancy of signal frequency range Interference of the tooth signal to other wireless signals ensures that the stability of multiple bluetooth equipment controls, and then can be user More preferable better service is provided.
The present invention provides a kind of bluetooth equipment ad hoc network method, including:
Step S10:The key of ad hoc network certification is received, to carry out the matching ad hoc network of the certification between the bluetooth equipment;
Step S11:Received signal strength between the bluetooth equipment according to any two calculates bluetooth described in any two The distance of equipment room;
Step S12:The most short of the bluetooth equipment ad hoc network connection is planned according to the minimum range between the bluetooth equipment Path lines;
Step S13:The bluetooth equipment ad hoc network connection is carried out according to the shortest path route.
Preferably, the calculation formula of the distance between bluetooth equipment described in any two is:
D=10^ ((abs (RSSI)-A)/(10*n));
Wherein, d is the distance between two bluetooth equipments;RSSI is that the reception signal between two bluetooth equipments is strong Degree;Signal when A is the bluetooth equipment as transmitting terminal and is separated by 1 meter between the bluetooth equipment as receiving end is strong Degree;N is the environmental attenuation factor.
Preferably, the step S12 includes:
Step S121:Minimum range is selected from the distance between bluetooth equipment described in any two, by the minimum range The bluetooth equipment of connection is as first object equipment;
Step S122:The distance between other each described bluetooth equipments and each first object equipment are compared, are selected The bluetooth equipment of minimum range connection is as the new first object equipment out;
Step S123:Judge the minimum range whether less than the first given threshold;
If it is, executing the step S122;If not, thening follow the steps S124:The shortest path layout of roads Terminate;
Step S125:It connects each first object equipment to form the shortest path radial line according to the minimum range Road.
Preferably, in the step S122, when other equal described bluetooth equipments of the minimum range there are two with When upper, from the bluetooth equipment for first receiving signal is wherein selected as the new first object equipment.
Preferably, further include:The new bluetooth equipment is judged whether there is into the bluetooth equipment ad hoc network;If It is then to execute the step S10~step S13;
Judge the received signal strength of the bluetooth equipment in the bluetooth equipment ad hoc network whether less than the second setting Threshold value;
If it is, executing the step S10~step S13.
The present invention also provides a kind of bluetooth equipment self-organizing network systems, including:
Receiving module, for receiving the key of ad hoc network certification, to carry out the matching of the certification between the bluetooth equipment from group Net;
Computing module calculates described in any two for the received signal strength between the bluetooth equipment according to any two Distance between bluetooth equipment;
Planning module, for planning the bluetooth equipment ad hoc network connection according to the minimum range between the bluetooth equipment Shortest path route;
Ad hoc network module is connected for carrying out the bluetooth equipment ad hoc network according to the shortest path route.
Preferably, the calculation formula of the distance between bluetooth equipment described in any two is:
D=10^ ((abs (RSSI)-A)/(10*n));
Wherein, d is the distance between two bluetooth equipments;RSSI is that the reception signal between two bluetooth equipments is strong Degree;A is the signal strength emitted when being separated by 1 meter between equipment and receiving device;N is the environmental attenuation factor.
Preferably, the planning module includes:
First comparison selecting unit will for selecting minimum range from the distance between bluetooth equipment described in any two The bluetooth equipment of the minimum range connection is as first object equipment;
Second comparison selecting unit, for compare other each described bluetooth equipments and each first object equipment it Between distance, select minimum range connection the bluetooth equipment as newly the first object equipment;
Whether planning terminates judging unit, for judging the minimum range less than the first given threshold;
Shortest path route forms unit, for each first object equipment to be connected shape according to the minimum range At the shortest path route.
Preferably, the second comparison selecting unit is also used to other described bluetooth equipments equal in the minimum range There are two it is above when, from the bluetooth equipment that first receives signal is wherein selected as the first object equipment newly.
It preferably, further include first judgment module, for judging whether there is the new bluetooth equipment into the bluetooth Equipment ad hoc network;
Second judgment module, for judging the received signal strength of the bluetooth equipment in the bluetooth equipment ad hoc network Whether less than the second given threshold.
Beneficial effects of the present invention:Bluetooth equipment ad hoc network method provided by the present invention and system, by according to bluetooth The shortest path route of the minimum range planning bluetooth equipment ad hoc network connection of equipment room, and indigo plant is carried out according to shortest path route Tooth equipment ad hoc network successfully solves current multiple single rambling networkings of bluetooth equipment, reduces signal frequency range So that interfering with each other between Bluetooth signal be reduced or avoided, while Bluetooth signal has also been reduced or avoided to it in occupancy The interference of his wireless signal, ensures that the stability of multiple bluetooth equipment controls, and then can provide for user more preferably more Quality services.
Detailed description of the invention
Fig. 1 is the flow chart of bluetooth equipment ad hoc network method in the embodiment of the present invention 1;
Fig. 2 is the flow chart of bluetooth equipment ad hoc network method in the embodiment of the present invention 2;
Fig. 3 is the functional block diagram of bluetooth equipment self-organizing network system in the embodiment of the present invention 3.
Description of symbols therein:
1. receiving module;2. computing module;3. planning module;31. the first comparison selecting unit;32. the second comparison selection Unit;33. planning terminates judging unit;34. shortest path route forms unit;4. ad hoc network module;5. first judgment module; 6. the second judgment module.
Specific embodiment
To make those skilled in the art more fully understand technical solution of the present invention, with reference to the accompanying drawing and it is embodied Mode is described in further detail a kind of bluetooth equipment ad hoc network method provided by the present invention and system.
Embodiment 1:
The present embodiment provides a kind of bluetooth equipment ad hoc network methods, as shown in Figure 1, including:
Step S10:The key of ad hoc network certification is received, to carry out the matching ad hoc network of the certification between bluetooth equipment.
In the step, each bluetooth equipment has a unique identity id, by handheld terminal (such as mobile phone) to bluetooth Equipment is initialized, and the key of bluetooth equipment ad hoc network certification is concurrently set, and sends this key to each bluetooth Equipment.When being broadcasted between bluetooth equipment, the key authenticated by the ad hoc network can carry out matching ad hoc network.
Step S11:According between the received signal strength calculating any two bluetooth equipment between any two bluetooth equipment Distance.
In the step, the distance calculating between any two bluetooth equipment is in order to which the planning of subsequent shortest path route is done Prepare.
In the step, the calculation formula of the distance between any two bluetooth equipment is:
D=10^ ((abs (RSSI)-A)/(10*n));
Wherein, d is the distance between two bluetooth equipments;RSSI is the received signal strength between two bluetooth equipments;A is to make Bluetooth equipment for transmitting terminal and signal strength when being separated by 1 meter between the bluetooth equipment as receiving end;N be environmental attenuation because Son.That is the signal between two bluetooth equipments is stronger, then distance is closer therebetween.
Step S12:According to the shortest path route of the minimum range planning bluetooth equipment ad hoc network connection between bluetooth equipment.
It in the present embodiment, is attached between each bluetooth equipment by Bluetooth signal, if the distance between bluetooth equipment Smaller, Bluetooth signal can be relatively strong, then ad hoc network connection can be carried out between bluetooth equipment;If the distance between bluetooth equipment is larger, Bluetooth signal can be weaker or unstable, then not can be carried out ad hoc network connection between bluetooth equipment.According to shortest path between bluetooth equipment The layout of roads for carrying out ad hoc network connection, can make the bluetooth equipment ad hoc network signal to be formed more stable.
Step S13:The connection of bluetooth equipment ad hoc network is carried out according to shortest path route.
The bluetooth equipment ad hoc network method, by planning that bluetooth equipment ad hoc network connects according to the minimum range between bluetooth equipment The shortest path route connect, and bluetooth equipment ad hoc network is carried out according to shortest path route, successfully solve current multiple indigo plants The rambling networking of tooth tables of equipment one, reduces the occupancy of signal frequency range, to be reduced or avoided between Bluetooth signal Interfere with each other, while interference of the Bluetooth signal to other wireless signals has also been reduced or avoided, has ensured that multiple bluetooths The stability of equipment control, and then more preferable better service can be provided for user.
Embodiment 2:
The present embodiment provides a kind of bluetooth equipment ad hoc network methods, as shown in Fig. 2, including:
Step S10:The key of ad hoc network certification is received, to carry out the matching ad hoc network of the certification between bluetooth equipment.
In the step, each bluetooth equipment has a unique identity id, by handheld terminal (such as mobile phone) to bluetooth Equipment is initialized, and the key of bluetooth equipment ad hoc network certification is concurrently set, and sends this key to each bluetooth Equipment.When being broadcasted between bluetooth equipment, the key authenticated by the ad hoc network can carry out matching ad hoc network.
Step S11:According between the received signal strength calculating any two bluetooth equipment between any two bluetooth equipment Distance.
In the step, the distance calculating between any two bluetooth equipment is in order to which the planning of subsequent shortest path route is done Prepare.
In the step, the calculation formula of the distance between any two bluetooth equipment is:
D=10^ ((abs (RSSI)-A)/(10*n));
Wherein, d is the distance between two bluetooth equipments;RSSI is the received signal strength between two bluetooth equipments;A is to make Bluetooth equipment for transmitting terminal and signal strength when being separated by 1 meter between the bluetooth equipment as receiving end;N be environmental attenuation because Son.That is the signal between two bluetooth equipments is stronger, then distance is closer therebetween.
Step S12:According to the shortest path route of the minimum range planning bluetooth equipment ad hoc network connection between bluetooth equipment.
The step specifically includes:
Step S121:Minimum range is selected from the distance between any two bluetooth equipment, the indigo plant that minimum range is connected Tooth equipment is as first object equipment.
Such as:In distance between any two bluetooth equipment, the distance between bluetooth equipment A1 and bluetooth equipment A2 are minimum, then Using bluetooth equipment A1 and bluetooth equipment A2 as first object equipment.
Step S122:The distance between other each bluetooth equipments and each first object equipment are compared, most narrow spacing is selected From the bluetooth equipment of connection as new first object equipment.
Such as:Compare the distance between other bluetooth equipments A3, A4, A5 and A6 and first object equipment A1 and other bluetooths The distance between equipment A3, A4, A5 and A6 and first object equipment A2, if the distance between A3 and A2 are minimum, then select A3 And as new first object equipment.
In this step, when other equal bluetooth equipments of minimum range there are two it is above when, first received from wherein selecting To signal bluetooth equipment as new first object equipment.
I.e. such as:If the distance between A3 and A2 are minimum, the distance between A4 and A1 are also minimum, and between A3 and A2 away from It is equal with the distance between A1 from A4, and than first receiving broadcast singal between A4 and A1 between A3 and A2, then select A3 simultaneously As new first object equipment.
Step S123:Judge minimum range whether less than the first given threshold.
Such as:In the step, judge the distance between A3 and A2 whether less than the first given threshold.
Wherein, the setting of the first given threshold will ensure to be connected to the reception signal of the bluetooth equipment at the minimum range both ends Intensity is sufficiently strong, can steadily to carry out communication broadcast between two bluetooth equipments.If being connected to minimum range both ends The reception signal of bluetooth equipment is weaker or does not have signal, then two bluetooth equipments can not carry out ad hoc network.
If so, thening follow the steps S122.
Such as:Compare the distance between bluetooth equipment A4, A5 and A6 and first object equipment A1, bluetooth equipment A4, A5 and A6 The distance between first object equipment A2 and the distance between bluetooth equipment A4, A5 and A6 and first object equipment A3, it is false If the distance between A4 and A1 are minimum, then A4 is selected and as new first object equipment.In the process, if A5 with The distance between A2 minimum, the distance between A4 and A1 are also minimum, the distance between A6 and A3 or minimum, and between A5 and A2 The distance between distance, A4 and A1 and the distance between A6 and A3 be equal, and than between A5 and A2 and A6 between A4 and A1 Broadcast singal is first received between A3, then selects A4 and as new first object equipment.
If not, thening follow the steps S124:Shortest path layout of roads terminates.I.e. if being connected to minimum range both ends The reception signal of bluetooth equipment is weaker or does not have signal, then two bluetooth equipments can not carry out ad hoc network, shortest path layout of roads Terminate.
Step S125:It connects each first object equipment to form shortest path route according to minimum range.
Step S13:The connection of bluetooth equipment ad hoc network is carried out according to shortest path route.
It in the present embodiment, is attached between each bluetooth equipment by Bluetooth signal, if the distance between bluetooth equipment Smaller, Bluetooth signal can be relatively strong, then ad hoc network connection can be carried out between bluetooth equipment;If the distance between bluetooth equipment is larger, Bluetooth signal can be weaker or unstable, then not can be carried out ad hoc network connection between bluetooth equipment.Step S121~step S125 is set It sets, can make to carry out the layout of roads of ad hoc network connection according to shortest path between bluetooth equipment, to make the bluetooth equipment to be formed certainly Networking signal is more stable.In addition, the bluetooth equipment ad hoc network formed by step S121~step S125, successfully solves Current multiple single rambling networkings of bluetooth equipment, reduce the occupancy of signal frequency range, so that indigo plant be reduced or avoided Interfering with each other between tooth signal, while interference of the Bluetooth signal to other wireless signals has also been reduced or avoided, so as to More preferable better service is provided for user.
In the present embodiment, after the completion of bluetooth equipment ad hoc network, shortest path route that bluetooth equipment is connected according to ad hoc network It is interconnected.Bluetooth equipment in each ad hoc network according to the pulse condition of its sensor settings, carry out data be connected The reading and storage of other bluetooth equipment data connect are then transferred to other bluetooth equipments being connected.Each bluetooth equipment After the data information for receiving the transmission of other bluetooth equipments, the duplicate message in data information can be cleared up, then be protected It deposits;The data information that each bluetooth equipment saves it carries out periodical cleaning, has both reduced data information transmission in this way to letter A large amount of occupancy of number section, and can prevent the useful data information of bluetooth equipment in the near future from losing.
In the present embodiment, handheld device is realized by the connection with bluetooth equipment and is controlled the automatically scanning of bluetooth equipment. The stronger bluetooth equipment point of received signal strength carries out matching connection in handheld device selection ad hoc network, and handheld device only need to be with A bluetooth equipment in ad hoc network establishes connection, that is, can control all bluetooth equipments in entire ad hoc network.Handheld device with After a bluetooth equipment in ad hoc network establishes connection, which is sent to hand for newest whole network equipment three-point state information Holding equipment, handheld device control whole network equipment point by app.Middle handheld device and multiple bluetooths compared with the prior art One-to-one correspondence between equipment matches connection, greatly reduces the occupancy of signal frequency range, at the same also reduce Bluetooth signal it Between interfere with each other with handheld device control bluetooth equipment control signal interference, ensure that bluetooth equipment normally make With.
When the signal strength of handset connection bluetooth equipment is less than certain value, handheld device re-starts ad hoc network Scanning, selects the stronger bluetooth equipment of new signal to carry out matching connection.
In the present embodiment, bluetooth equipment ad hoc network method further includes:
Step S08:It judges whether there is new bluetooth equipment and enters bluetooth equipment ad hoc network.
If so, thening follow the steps S10~step S13.
Step S09:Judge the received signal strength of the bluetooth equipment in bluetooth equipment ad hoc network whether less than the second setting Threshold value.
If so, thening follow the steps S10~step S13.
The setting of the second given threshold is to be connected to the reception of the bluetooth equipment at the minimum range both ends in step S09 Signal strength is weak enough, so as to can not carry out communication broadcast between two bluetooth equipments, i.e., if the reception signal of bluetooth equipment is strong Degree is less than the second given threshold, then it represents that the bluetooth equipment can not be attached with bluetooth equipment ad hoc network, i.e. the bluetooth equipment Bluetooth equipment ad hoc network is had been detached from.Second given threshold be in order to judge whether to have in former ad hoc network bluetooth equipment departing from Ad hoc network.
When there is new bluetooth equipment to enter bluetooth equipment ad hoc network or working as has bluetooth equipment to be detached from former bluetooth equipment certainly When networking, changes will occur for the shortest path route of former ad hoc network, i.e., former shortest path route will no longer be shortest path shape At route, need to plan shortest path route again.
The beneficial effect of embodiment 1-2:Bluetooth equipment ad hoc network method provided in embodiment 1-2, by according to indigo plant The shortest path route of the minimum range planning bluetooth equipment ad hoc network connection of tooth equipment room, and carried out according to shortest path route Bluetooth equipment ad hoc network successfully solves current multiple single rambling networkings of bluetooth equipment, reduces signal frequency range Occupancy, so that interfering with each other between Bluetooth signal be reduced or avoided, while Bluetooth signal pair has also been reduced or avoided The interference of other wireless signals, ensures that the stability of multiple bluetooth equipment controls, and then can provide for user more preferably Better service.
Embodiment 3:
Based on the bluetooth equipment ad hoc network method in Examples 1 and 2, the present embodiment provides a kind of bluetooth equipment ad hoc network systems System, as shown in figure 3, including:Receiving module 1, for receiving the key of ad hoc network certification, to carry out the certification between bluetooth equipment With ad hoc network.Computing module 2 is set for calculating any two bluetooth according to the received signal strength between any two bluetooth equipment Distance between standby.Planning module 3, for according to the most short of the minimum range planning bluetooth equipment ad hoc network connection between bluetooth equipment Path lines.Ad hoc network module 4, for carrying out the connection of bluetooth equipment ad hoc network according to shortest path route.
By the way that planning module 3 is arranged, current multiple single rambling networkings of bluetooth equipment are successfully solved, are reduced The occupancy of signal frequency range, so that interfering with each other between Bluetooth signal be reduced or avoided, while being also reduced or avoided Interference of the Bluetooth signal to other wireless signals ensures that the stability of multiple bluetooth equipment controls.
Wherein, the calculation formula of the distance between any two bluetooth equipment is:
D=10^ ((abs (RSSI)-A)/(10*n)).
Wherein, d is the distance between two bluetooth equipments;RSSI is the received signal strength between two bluetooth equipments;A is hair Signal strength when being separated by 1 meter between jet device and receiving device;N is the environmental attenuation factor.
In the present embodiment, planning module 3 includes:First comparison selecting unit 31, for between any two bluetooth equipment Distance in select minimum range, using minimum range connection bluetooth equipment as first object equipment.Second comparison selection is single Member 32 selects minimum range connection for comparing the distance between other each bluetooth equipments and each first object equipment Bluetooth equipment is as new first object equipment.Whether planning terminates judging unit 33, for judging minimum range less than first Given threshold.Shortest path route forms unit 34, to be formed most for connecting each first object equipment according to minimum range Short path route.
First comparison selecting unit 31, second compares selecting unit 32, planning terminates judging unit 33 and shortest path radial line Road forms the setting of unit 34, can not only make the layout of roads for carrying out ad hoc network connection between bluetooth equipment according to shortest path, from And keep the bluetooth equipment ad hoc network signal to be formed more stable;But also it is single miscellaneous to successfully solve current multiple bluetooth equipments The disorderly networking without chapter, reduces the occupancy of signal frequency range, so that interfering with each other between Bluetooth signal has been reduced or avoided, together When interference of the Bluetooth signal to other wireless signals has also been reduced or avoided.
Wherein, the second comparison selecting unit 32 is also used in other equal bluetooth equipments of minimum range there are two more than When, from the bluetooth equipment for first receiving signal is wherein selected as new first object equipment.
In the present embodiment, bluetooth equipment self-organizing network system further includes first judgment module 5, for judging whether there is new indigo plant Tooth equipment enters bluetooth equipment ad hoc network.Second judgment module 6, for judging connecing for the bluetooth equipment in bluetooth equipment ad hoc network Signal strength is received whether less than the second given threshold.Second judgment module 6 is really for judging in former bluetooth equipment ad hoc network Whether there is bluetooth equipment departing from the ad hoc network.
The beneficial effect of embodiment 3:Bluetooth equipment self-organizing network system provided in embodiment 3 receives mould by setting Block, computing module, planning module and ad hoc network module successfully solve current single rambling group of multiple bluetooth equipments Net, reduces the occupancy of signal frequency range, so that interfering with each other between Bluetooth signal be reduced or avoided, while also reduce or Interference of the Bluetooth signal to other wireless signals is avoided, ensures that the stability of multiple bluetooth equipment controls, Jin Erneng Enough more preferable better service is provided for user.
It is understood that the principle that embodiment of above is intended to be merely illustrative of the present and the exemplary implementation that uses Mode, however the present invention is not limited thereto.For those skilled in the art, essence of the invention is not being departed from In the case where mind and essence, various changes and modifications can be made therein, these variations and modifications are also considered as protection scope of the present invention.

Claims (10)

1. a kind of bluetooth equipment ad hoc network method, which is characterized in that including:
Step S10:The key of ad hoc network certification is received, to carry out the matching ad hoc network of the certification between the bluetooth equipment;
Step S11:Received signal strength between the bluetooth equipment according to any two calculates bluetooth equipment described in any two Between distance;
Step S12:The shortest path of the bluetooth equipment ad hoc network connection is planned according to the minimum range between the bluetooth equipment Route;
Step S13:The bluetooth equipment ad hoc network connection is carried out according to the shortest path route.
2. bluetooth equipment ad hoc network method according to claim 1, which is characterized in that between bluetooth equipment described in any two The calculation formula of distance be:
D=10^ ((abs (RSSI)-A)/(10*n));
Wherein, d is the distance between two bluetooth equipments;RSSI is the received signal strength between two bluetooth equipments;A For the bluetooth equipment as transmitting terminal and as signal strength when being separated by 1 meter between the bluetooth equipment of receiving end;n For the environmental attenuation factor.
3. bluetooth equipment ad hoc network method according to claim 2, which is characterized in that the step S12 includes:
Step S121:Minimum range is selected from the distance between bluetooth equipment described in any two, the minimum range is connected The bluetooth equipment as first object equipment;
Step S122:The distance between other each described bluetooth equipments and each first object equipment are compared, are selected most The bluetooth equipment of small distance connection is as the new first object equipment;
Step S123:Judge the minimum range whether less than the first given threshold;
If it is, executing the step S122;If not, thening follow the steps S124:The shortest path layout of roads terminates;
Step S125:It connects each first object equipment to form the shortest path route according to the minimum range.
4. bluetooth equipment ad hoc network method according to claim 3, which is characterized in that in the step S122, work as institute State other equal described bluetooth equipments of minimum range there are two it is above when, from wherein selecting the bluetooth for first receiving signal Equipment is as the new first object equipment.
5. bluetooth equipment ad hoc network method according to claim 1, which is characterized in that further include:It judges whether there is new The bluetooth equipment enters the bluetooth equipment ad hoc network;If it is, executing the step S10~step S13;
Judge the received signal strength of the bluetooth equipment in the bluetooth equipment ad hoc network whether less than the second given threshold;
If it is, executing the step S10~step S13.
6. a kind of bluetooth equipment self-organizing network system, which is characterized in that including:
Receiving module, for receiving the key of ad hoc network certification, to carry out the matching ad hoc network of the certification between the bluetooth equipment;
Computing module calculates bluetooth described in any two for the received signal strength between the bluetooth equipment according to any two The distance of equipment room;
Planning module, for planning the most short of the bluetooth equipment ad hoc network connection according to the minimum range between the bluetooth equipment Path lines;
Ad hoc network module is connected for carrying out the bluetooth equipment ad hoc network according to the shortest path route.
7. bluetooth equipment self-organizing network system according to claim 6, which is characterized in that between bluetooth equipment described in any two The calculation formula of distance be:
D=10^ ((abs (RSSI)-A)/(10*n));
Wherein, d is the distance between two bluetooth equipments;RSSI is the received signal strength between two bluetooth equipments;A Signal strength when being separated by 1 meter between transmitting equipment and receiving device;N is the environmental attenuation factor.
8. bluetooth equipment self-organizing network system according to claim 7, which is characterized in that the planning module includes:
First comparison selecting unit will be described for selecting minimum range from the distance between bluetooth equipment described in any two The bluetooth equipment of minimum range connection is as first object equipment;
Second comparison selecting unit, for comparing between other each described bluetooth equipments and each first object equipment Distance selects the bluetooth equipment of minimum range connection as the new first object equipment;
Whether planning terminates judging unit, for judging the minimum range less than the first given threshold;
Shortest path route forms unit, for connecting to form institute each first object equipment according to the minimum range State shortest path route.
9. bluetooth equipment self-organizing network system according to claim 8, which is characterized in that the second comparison selecting unit is also For other equal described bluetooth equipments of the minimum range there are two it is above when, first receive signal from wherein selecting The bluetooth equipment is as the new first object equipment.
10. bluetooth equipment self-organizing network system according to claim 6, which is characterized in that further include first judgment module, use Enter the bluetooth equipment ad hoc network in judging whether there is the new bluetooth equipment;
Second judgment module, for judge the bluetooth equipment in the bluetooth equipment ad hoc network received signal strength whether Less than the second given threshold.
CN201810707935.1A 2018-07-02 2018-07-02 Bluetooth device ad hoc network method and system Active CN108834121B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810707935.1A CN108834121B (en) 2018-07-02 2018-07-02 Bluetooth device ad hoc network method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810707935.1A CN108834121B (en) 2018-07-02 2018-07-02 Bluetooth device ad hoc network method and system

Publications (2)

Publication Number Publication Date
CN108834121A true CN108834121A (en) 2018-11-16
CN108834121B CN108834121B (en) 2021-04-02

Family

ID=64133470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810707935.1A Active CN108834121B (en) 2018-07-02 2018-07-02 Bluetooth device ad hoc network method and system

Country Status (1)

Country Link
CN (1) CN108834121B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111060901A (en) * 2019-11-05 2020-04-24 安徽工程大学 AGV (automatic guided vehicle) distance measuring system based on low-power consumption
CN113259860A (en) * 2021-06-15 2021-08-13 四川九通智路科技有限公司 Ad hoc network method based on Bluetooth broadcast communication
CN113766473A (en) * 2021-08-23 2021-12-07 珠海格力电器股份有限公司 Wireless Mesh ad hoc network method and device, electronic equipment and storage medium
CN113784455A (en) * 2021-09-18 2021-12-10 深圳市久通物联科技股份有限公司 Bluetooth matrix networking method, system, terminal and storage medium
CN115225121A (en) * 2022-07-04 2022-10-21 维沃移动通信有限公司 Bluetooth data output method and device, electronic equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1564514A (en) * 2004-03-26 2005-01-12 中兴通讯股份有限公司 Self arranged net mode shared key authentication and conversation key consulant method of radio LAN
CN1642144A (en) * 2004-01-13 2005-07-20 通用汽车公司 Efficient lightweight information dissemination method and system for mobile wireless ad hoc networks
US20120213307A1 (en) * 2011-02-17 2012-08-23 Massachusetts Institute Of Technology Rateless and Rated Coding Using Spinal Codes
CN102724729A (en) * 2012-06-29 2012-10-10 浙江大学 Shortest neighbor node path energy-saving communication method for agricultural Internet of things
US20130099941A1 (en) * 2011-10-20 2013-04-25 At&T Intellectual Property I, L.P. Vehicular communications using a scalable ad hoc geographic routing protocol
CN103906299A (en) * 2012-12-30 2014-07-02 青岛海尔软件有限公司 Home lighting control system and home lighting control method
CN104244170A (en) * 2014-09-28 2014-12-24 成都金海鼎盛科技有限公司 Low-power-consumption Bluetooth node independent networking method
CN104243423A (en) * 2013-06-19 2014-12-24 中兴通讯股份有限公司 Ad-hoc network encryption and authentication method and system and terminals
EP2999297A2 (en) * 2014-09-19 2016-03-23 Broadcom Corporation Bluetooth low energy automation mesh network
CN105611490A (en) * 2016-01-20 2016-05-25 南京工程学院 Bluetooth networking based positioning system
CN108199905A (en) * 2018-02-01 2018-06-22 乐鑫信息科技(上海)有限公司 MESH network and its MESH equipment and with network method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1642144A (en) * 2004-01-13 2005-07-20 通用汽车公司 Efficient lightweight information dissemination method and system for mobile wireless ad hoc networks
CN1564514A (en) * 2004-03-26 2005-01-12 中兴通讯股份有限公司 Self arranged net mode shared key authentication and conversation key consulant method of radio LAN
US20120213307A1 (en) * 2011-02-17 2012-08-23 Massachusetts Institute Of Technology Rateless and Rated Coding Using Spinal Codes
US20130099941A1 (en) * 2011-10-20 2013-04-25 At&T Intellectual Property I, L.P. Vehicular communications using a scalable ad hoc geographic routing protocol
CN102724729A (en) * 2012-06-29 2012-10-10 浙江大学 Shortest neighbor node path energy-saving communication method for agricultural Internet of things
CN103906299A (en) * 2012-12-30 2014-07-02 青岛海尔软件有限公司 Home lighting control system and home lighting control method
CN104243423A (en) * 2013-06-19 2014-12-24 中兴通讯股份有限公司 Ad-hoc network encryption and authentication method and system and terminals
EP2999297A2 (en) * 2014-09-19 2016-03-23 Broadcom Corporation Bluetooth low energy automation mesh network
CN104244170A (en) * 2014-09-28 2014-12-24 成都金海鼎盛科技有限公司 Low-power-consumption Bluetooth node independent networking method
CN105611490A (en) * 2016-01-20 2016-05-25 南京工程学院 Bluetooth networking based positioning system
CN108199905A (en) * 2018-02-01 2018-06-22 乐鑫信息科技(上海)有限公司 MESH network and its MESH equipment and with network method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
任 雄 伟: "无线移动自组网中路由度量和路由策略的研究", 《信息科技辑》 *
刘军: "支持网络编码的认知无线自组网拓扑控制算法", 《通信学报》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111060901A (en) * 2019-11-05 2020-04-24 安徽工程大学 AGV (automatic guided vehicle) distance measuring system based on low-power consumption
CN113259860A (en) * 2021-06-15 2021-08-13 四川九通智路科技有限公司 Ad hoc network method based on Bluetooth broadcast communication
CN113766473A (en) * 2021-08-23 2021-12-07 珠海格力电器股份有限公司 Wireless Mesh ad hoc network method and device, electronic equipment and storage medium
CN113766473B (en) * 2021-08-23 2022-12-20 珠海格力电器股份有限公司 Wireless Mesh ad hoc network method and device, electronic equipment and storage medium
CN113784455A (en) * 2021-09-18 2021-12-10 深圳市久通物联科技股份有限公司 Bluetooth matrix networking method, system, terminal and storage medium
CN115225121A (en) * 2022-07-04 2022-10-21 维沃移动通信有限公司 Bluetooth data output method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108834121B (en) 2021-04-02

Similar Documents

Publication Publication Date Title
CN108834121A (en) A kind of bluetooth equipment ad hoc network method and system
CN1863122B (en) Wireless communication system, wireless communication apparatus, wireless communication method
CN101242649B (en) Wireless network, client device, access point and operation method in communication structure
CN110300039B (en) Network access method, agent coordination equipment and site equipment for hybrid networking
CN105165070B (en) System, program and the method for wireless terminal discovery access point
USRE47488E1 (en) Method, apparatus, and computer program product for wireless device discovery process
CN102355738B (en) Cognitive SIMO (Single Input Multiple Output) network access method on basis of cooperative relay
CN103491569A (en) Method, apparatus, and computer program product for wireless short-range communication disconnection
CN103889011A (en) Wireless bandwidth selecting method and system based on WLAN wireless bandwidth assessment
CN102550107A (en) Method and apparatus for controlling switching between resources and/or communicating resource change information in a wireless communications system
CN104918298B (en) A kind of network connection control method, device and mobile terminal
CN1937437B (en) Short-distance wireless communication method and its communication terminal
CN106211279A (en) Wireless network method of network entry and wireless device
CN109788576A (en) Accidental access method, device and equipment
CN110267271A (en) A kind of car-mounted terminal network automatic switching method
CN105634554A (en) Carrier wave communication networking method, nodes and system
CN109495389A (en) A kind of double-channel mixed logic dynamic algorithm based on water heater intelligent control application
CN104661282A (en) Ad-hoc network access, data transmission and construction method
WO2014097674A1 (en) Wireless communication device, connection control method and connection control program
CN111954274B (en) Cellular network communication method and system based on LoRa technology
CN103596249B (en) The system and method for setting wireless network
JP2015138996A (en) Communication device, communication program, communication system, and communication method
CN103987073B (en) Control method based on wireless protocols extension
CN111432504B (en) Communication system, electronic device thereof and communication method applying same
CN112702748A (en) Data transmission method and device for hybrid networking

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant