CN106535323B - The method and device of bluetooth BLE communication device where selecting bluetooth bracelet - Google Patents
The method and device of bluetooth BLE communication device where selecting bluetooth bracelet Download PDFInfo
- Publication number
- CN106535323B CN106535323B CN201610940100.1A CN201610940100A CN106535323B CN 106535323 B CN106535323 B CN 106535323B CN 201610940100 A CN201610940100 A CN 201610940100A CN 106535323 B CN106535323 B CN 106535323B
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- ble communication
- communication device
- signal strength
- bracelet
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W64/00—Locating users or terminals or network equipment for network management purposes, e.g. mobility management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/023—Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of method and devices of bluetooth BLE communication device where selection bluetooth bracelet, and method includes: E) judge the broadcast data that multiple bluetooth BLE communication device transmission whether are received in nearest setting time, if so, executing F);Otherwise, the bluetooth BLE communication device of broadcast data will be received as website where bluetooth bracelet;F) judge whether the signal strength of nearest timestamp bluetooth BLE communication device is greater than into website signal strength threshold, if so, position is switched to the strongest bluetooth BLE communication device of signal strength;Otherwise, the location updating time is greater than or equal to position switching minimum time threshold value, and signal strength takes the strongest bluetooth BLE communication device of signal strength as bluetooth bracelet position less than when leaving website signal strength threshold.Energy accurate judgement bluetooth bracelet of the present invention position can accurately and steadily select bluetooth BLE communication device and be communicated and be controlled to it.
Description
Technical field
The present invention relates to wireless communication field, in particular to bluetooth BLE communication device where a kind of selection bluetooth bracelet
Method and device.
Background technique
With popularizing for Internet of Things, bluetooth bracelet is applied in medical industry, not only as the acquisition of human body physical sign
It inputs, while the acquisition also as user position inputs, so that the use of bluetooth bracelet is more extensively and flexible.Implement
When, it is all that multiple bluetooth bracelets correspond to multiple bluetooth BLE (Bluetooth Low Energy, low-power consumption bluetooth standard) device
Situation, host computer/monitoring cloud platform need the position to some bluetooth bracelet to judge, control communication etc..In practice, hold very much
Easily occur guarding the cloud platform problem inaccurate to the judgement of some bluetooth bracelet position, especially some bluetooth bracelet is located at two
When among a or more bluetooth BLE communication device, beat, to monitoring cloud platform control bluetooth bracelet band come it is uncertain because
Element, such as: first 1 minute or bluetooth BLE communication device A, bluetooth of arriving for lower 1 minute BLE communication device B, in multiple bluetooths
Beat back and forth between BLE communication device, can actual conditions be that position where the bluetooth bracelet does not change;It easilys lead to control
Instruction failure loses bluetooth bracelet and guards the control information between cloud platform, ensure the stability of whole system cannot.
Summary of the invention
The technical problem to be solved in the present invention is that in view of the above drawbacks of the prior art, providing a kind of energy accurate judgement
Bluetooth bracelet position, the selection that can accurately and steadily select bluetooth BLE communication device and it is communicated and is controlled
The method and device of bluetooth BLE communication device where bluetooth bracelet.
The technical solution adopted by the present invention to solve the technical problems is: constructing a kind of selection bluetooth bracelet place bluetooth
The method of BLE communication device, includes the following steps:
A multiple bluetooth BLE communication devices) are connected respectively to respective gateway, and each gateway is passed through into ether
Net or LAN connection are to monitoring cloud platform;
B) it is described by being sent on one or more bluetooth BLE communication devices to be broadcasted data for current Bluetooth bracelet
Guard cloud platform;
C the broadcast packet in the broadcast data of the current Bluetooth bracelet in nearest setting time) is obtained, and according to described wide
The timestamp for broadcasting packet is ranked up;
D) judge whether the monitoring cloud platform receives the wide of the current Bluetooth bracelet in the nearest setting time
Multicast data, if so, executing step E);Otherwise, the position of the current Bluetooth bracelet is invalid, and all bluetooth BLE are led to
The signal strength of T unit is set to 0X88;
E) judge whether the monitoring cloud platform receives multiple bluetooth BLE communication dresses in the nearest setting time
The broadcast data of the current Bluetooth bracelet transmitted is set, if so, executing step F);Otherwise, the current Bluetooth will be received
The bluetooth BLE communication device of the broadcast data of bracelet is as the website where the current Bluetooth bracelet, and it is strong to save its signal
Degree, in case compare next time;
F) judge whether the signal strength of the bluetooth BLE communication device of nearest timestamp is greater than into website signal strength threshold
Value, if so, the position of the current Bluetooth bracelet is switched to the strongest bluetooth BLE communication device of signal strength, described in preservation
The signal strength of the strongest bluetooth BLE communication device of signal strength, in case compare next time;Otherwise, step G is executed);
G) judge whether the location updating time of the current Bluetooth bracelet is less than position switching minimum time threshold value, such as
It is to execute step L);Otherwise, step H is executed);
H) judge whether the signal strength of the bluetooth BLE communication device where the current Bluetooth bracelet is less than and leave website
Signal strength threshold, if so, taking position of the strongest bluetooth BLE communication device of signal strength as the current Bluetooth bracelet
It sets, executes step J);Otherwise, step I is executed);
I) judge the previous bluetooth BLE of signal intensity ratio of the bluetooth BLE communication device where the current Bluetooth bracelet
The whether big position switching signal difference threshold value of the signal strength of communication device, if so, executing step J);Otherwise, step L is executed);
J renewal time) is recorded, step K is executed);
K the signal strength for) saving the bluetooth BLE communication device where the current Bluetooth bracelet, executes step L);
L) terminate this operation.
Where selection bluetooth bracelet of the present invention in the method for bluetooth BLE communication device, when the nearest setting
Between be 30~120 seconds.
It is selected where bluetooth bracelet in the method for bluetooth BLE communication device of the present invention, the website that enters is believed
Number intensity threshold is the signal strength threshold into the bluetooth BLE communication device region.
It is selected where bluetooth bracelet in the method for bluetooth BLE communication device of the present invention, the position switching is most
Small time threshold is the bluetooth bracelet minimum time threshold value that position switches between more than two bluetooth BLE communication devices.
It is selected where bluetooth bracelet in the method for bluetooth BLE communication device of the present invention, the position switching letter
Number poor threshold value is the signal that the bluetooth bracelet is switched to another bluetooth BLE communication device from a bluetooth BLE communication device
The threshold value of intensity difference.
The invention further relates to it is a kind of realize above-mentioned selection bluetooth bracelet where bluetooth BLE communication device method device,
Include:
Connection unit: for multiple bluetooth BLE communication devices to be connected respectively to respective gateway, and by each net
It closes and passes through Ethernet or LAN connection to monitoring cloud platform;
Unit is sent on broadcast data: passing through one or more bluetooths for making current Bluetooth bracelet be broadcasted data
The monitoring cloud platform is sent on BLE communication device;
Broadcast packet obtains sequencing unit: in the broadcast data for obtaining the current Bluetooth bracelet in nearest setting time
Broadcast packet, and be ranked up according to the timestamp of the broadcast packet;
Broadcast data judging unit: for judging whether the monitoring cloud platform receives institute in the nearest setting time
The broadcast data of current Bluetooth bracelet is stated, if so, receiving judging unit into broadcast data;Otherwise, the current Bluetooth bracelet
Position be it is invalid, the signal strength of all bluetooth BLE communication devices is set to 0X88;
Broadcast data receives judging unit: for judging whether the monitoring cloud platform is received in the nearest setting time
The broadcast data of the current Bluetooth bracelet transmitted to multiple bluetooth BLE communication devices, if so, entry time stamp letter
Number intensity judging unit;Otherwise, the bluetooth BLE communication device of the broadcast data of the current Bluetooth bracelet will be received as described in
Website where current Bluetooth bracelet, and its signal strength is saved, in case compare next time;
Time stamp signal intensity judging unit: for judging the signal strength of the bluetooth BLE communication device of nearest timestamp
Whether it is greater than and enters website signal strength threshold, if so, it is most strong that the position of the current Bluetooth bracelet is switched to signal strength
Bluetooth BLE communication device, the signal strength of the strongest bluetooth BLE communication device of the signal strength is saved, in case next time
Compare;Otherwise, in-position renewal time judging unit;
Location updating time judging unit: for judging whether the location updating time of the current Bluetooth bracelet is less than position
Switching minimum time threshold value is set, if so, into end unit;Otherwise, into the first signal strength judging unit;
First signal strength judging unit: for judging the bluetooth BLE communication device where the current Bluetooth bracelet
Whether signal strength, which is less than, is left website signal strength threshold, if so, taking the strongest bluetooth BLE communication device of signal strength
As the position of the current Bluetooth bracelet, into recording unit;Otherwise, into second signal intensity judging unit;
Second signal intensity judging unit: for judging the bluetooth BLE communication device where the current Bluetooth bracelet
The whether big position switching signal difference threshold value of the signal strength of the previous bluetooth BLE communication device of signal intensity ratio, if so, entering note
Record unit;Otherwise, into end unit;
Recording unit: for recording renewal time;
Storage unit: for saving the signal strength of the bluetooth BLE communication device where the current Bluetooth bracelet;
End unit: for terminating this operation.
It is realized where above-mentioned selection bluetooth bracelet in the device of the method for bluetooth BLE communication device of the present invention,
The nearest setting time is 30~120 seconds.
It is realized where above-mentioned selection bluetooth bracelet in the device of the method for bluetooth BLE communication device of the present invention,
It is described into website signal strength threshold be signal strength threshold into the bluetooth BLE communication device region.
It is realized where above-mentioned selection bluetooth bracelet in the device of the method for bluetooth BLE communication device of the present invention,
The position switching minimum time threshold value is that bluetooth bracelet position between more than two bluetooth BLE communication devices switches most
Small time threshold.
It is realized where above-mentioned selection bluetooth bracelet in the device of the method for bluetooth BLE communication device of the present invention,
The position switching signal difference threshold value is switched to another bluetooth BLE from a bluetooth BLE communication device for the bluetooth bracelet
The threshold value of the difference in signal strength of communication device.
The method and device of bluetooth BLE communication device, has beneficial below where implementing selection bluetooth bracelet of the invention
Effect: since bluetooth BLE communication device is connected to gateway, gateway is connected to monitoring cloud platform by Ethernet or wide area network, blue
The information that tooth bracelet is broadcast out can receive by multiple bluetooth BLE communication devices, and by respectively with monitoring cloud platform
Monitoring cloud platform is sent in transmission channel, monitoring cloud platform obtains the information of some bluetooth bracelet, according to bluetooth BLE communication device
The timestamp of broadcast packet in nearest setting time is ranked up by the temporal information of its obtained signal strength, is then carried out
Judgement and control processing, energy accurate judgement bluetooth bracelet position can accurately and steadily select bluetooth BLE communication device
And it is communicated and is controlled.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art
To obtain other drawings based on these drawings.
Fig. 1 is square in method and device one embodiment of bluetooth BLE communication device where present invention selection bluetooth bracelet
The flow chart of method;
Fig. 2 is the structural schematic diagram of medical monitoring system in the embodiment;
Fig. 3 is the structural schematic diagram of device in the embodiment.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
It is selected where bluetooth bracelet in the method and device embodiment of bluetooth BLE communication device in the present invention, selection is blue
The flow chart of the method for bluetooth BLE communication device is as shown in Figure 1 where tooth bracelet.In Fig. 1, bluetooth where the selection bluetooth bracelet
The method of BLE communication device includes the following steps:
Multiple bluetooth BLE communication devices are connected respectively to respective gateway by step S01, and each gateway is passed through ether
Net or LAN connection are to monitoring cloud platform: in this step, multiple bluetooth BLE communication devices being connected respectively to respective net
It closes, and each gateway is passed through into Ethernet or LAN connection to monitoring cloud platform, can be formed by medical monitoring system in this way,
Fig. 2 is the structural schematic diagram of medical monitoring system.It is noted that bluetooth BLE has low cost, short distance in the present embodiment
From the robustness feature with interoperable, work in the 2.4GHz ISM radio frequency band for exempting from license.
It is noted that the website that the present invention describes, refers to the geographical location of bluetooth BLE communication device installation, prison
Whether shield cloud platform judges bluetooth bracelet in the geographic vicinity where this website, and manager distinguishes the position where bluetooth bracelet
Mark.
It is noted that can be set by guarding cloud platform into website signal strength threshold, position in the present embodiment
It sets switching minimum time threshold value, leave website signal strength threshold and position switching signal difference threshold value, for the convenience of description, this reality
It applies in example, website signal strength threshold will be entered and be labeled as IN_Threshold_value, position is switched into minimum time threshold value
Labeled as T, website signal strength threshold will be left labeled as OUT_Threshold_value, by position switching signal difference threshold value
Labeled as VAL2.Into website signal strength threshold, position switching minimum time threshold value, leave website signal strength threshold and position
Setting switching signal difference threshold value is all when installing bluetooth BLE communication device, and engineering staff sets, and uploads to monitoring cloud
Platform.
Wherein, into the signal strength threshold that website signal strength threshold is into bluetooth BLE communication device region, position
Switching minimum time threshold value is the bluetooth bracelet minimum time threshold value that position switches between more than two bluetooth BLE communication devices,
Meaning be if bluetooth bracelet all signal strengths IN_Threshold_value and OUT_Threshold_value it
Between, it must be kept after switching T seconds, just can be carried out and judge next time, otherwise skipped, position switching signal difference threshold value is bluetooth bracelet
The threshold value of the difference in signal strength of another bluetooth BLE communication device is switched to from a bluetooth BLE communication device.
Step S02 current Bluetooth bracelet is broadcasted data by being sent to prison on one or more bluetooth BLE communication devices
Protect cloud platform: in this step, the information that current Bluetooth bracelet is broadcast out, i.e. broadcast data can be by one or more bluetooths
BLE communication device receives, and by being respectively sent to monitoring cloud platform in the transmission channel of monitoring cloud platform.Guard cloud platform
The broadcast data for obtaining current Bluetooth bracelet is rejected most according to the temporal information for the signal strength that bluetooth BLE communication device obtains
Nearly a period of time (being typically provided to 30~120 seconds, the present embodiment is arranged to 60 seconds) pervious data.
It is noted that the bluetooth BLE communication device most of the time is all to monitor other bluetooth hands in the present embodiment
The broadcast of ring;It can also be used as bluetooth master: other Bluetooth Bluetooth bracelets of SCAN, or bluetooth is established to the initiation of other bluetooth bracelets
Two-way bluetooth BLE communication is realized in BLE connection.Bluetooth bracelet work is the equipment used as bluetooth BLE slave, can outward actively
Send bluetooth BLE broadcast data.
Step S03 obtains the broadcast packet in the broadcast data of current Bluetooth bracelet in nearest setting time, and according to broadcast
The timestamp of packet is ranked up: in this step, obtaining the broadcast in the broadcast data of current Bluetooth bracelet in nearest setting time
Packet, and be ranked up according to the timestamp of broadcast packet.In the present embodiment, nearest setting time is 30~120 seconds.Certainly, at this
Under some cases of embodiment, the size of nearest setting time can be accordingly arranged as the case may be.
Step S04 judges to guard the broadcast data whether cloud platform receives current Bluetooth bracelet in nearest setting time:
In this step, judge to guard the broadcast data whether cloud platform receives current Bluetooth bracelet in nearest setting time, if sentenced
Disconnected result be it is yes, then follow the steps S06;Otherwise, step S05 is executed.
The position of step S05 current Bluetooth bracelet be it is invalid, the signal strength of all bluetooth BLE communication devices is set to
0X88: if the judging result of above-mentioned steps S04 is no, that is, then executes this step without broadcast data in nearest setting time
Suddenly.In this step, the position of current Bluetooth bracelet is invalid, that is, the bluetooth bracelet is not in the monitoring model of this monitoring cloud platform
It encloses, then the signal strength of all bluetooth BLE communication devices is set to 0X88.
Step S06 judges whether monitoring cloud platform receives multiple bluetooth BLE communication devices in nearest setting time and passed
The broadcast data of the current Bluetooth bracelet sent: if the judging result of above-mentioned steps S04 be it is yes, execute this step.This step
In, judge to guard whether cloud platform receives the current Bluetooth that multiple bluetooth BLE communication devices are transmitted in nearest setting time
The broadcast data of bracelet, if it is determined that result be it is yes, then follow the steps S08;Otherwise, step S07 is executed.
Step S07 will receive the bluetooth BLE communication device of the broadcast data of current Bluetooth bracelet as current Bluetooth bracelet
The website at place, and save its signal strength, in case compare next time: if the judging result of above-mentioned steps S06 be it is no, hold
This step of row.In this step, when only one bluetooth BLE communication device obtains the current Bluetooth bracelet in nearest setting time
When broadcast data, then it is assumed that the current Bluetooth bracelet will then receive current Bluetooth bracelet near bluetooth BLE communication device
The bluetooth BLE communication device of broadcast data saves its signal strength as the website where current Bluetooth bracelet, in case next
Secondary comparison.It is handed down to the bluetooth bracelet if any control instruction, then is built by this unique bluetooth BLE communication device with bluetooth bracelet
Vertical connection communication, and update bluetooth BLE communication device and timer.
Step S08 judges whether the signal strength of the bluetooth BLE communication device of nearest timestamp is greater than into website signal
Intensity threshold: in this step, judge whether the signal strength of the bluetooth BLE communication device of nearest timestamp is greater than into website and believe
Number intensity threshold, that is to say, that when there is multiple bluetooth BLE communication devices to collect the current Bluetooth bracelet in nearest setting time
Broadcast data when, then by each signal strength compared with IN_Threshold_value, while judging the indigo plant of nearest timestamp
Whether the signal strength of tooth BLE communication device is greater than into website signal strength threshold, if it is determined that result be yes, that is,
It is stronger than the signal strength of IN_Threshold_value, then it is assumed that the bluetooth BLE communication device is where current Bluetooth bracelet
Website, control command are issued by this bluetooth BLE communication device, update bluetooth BLE communication device and timer, and execute step
S09;Otherwise, step S10 is executed.
The position of current Bluetooth bracelet is switched to the strongest bluetooth BLE communication device of signal strength by step S09, saves letter
The signal strength of number strongest bluetooth BLE communication device of intensity, in case compare next time: if the judgement knot of above-mentioned steps S08
Fruit be to execute this step.In this step, the position of current Bluetooth bracelet is switched to the strongest bluetooth BLE of signal strength and is led to
T unit, saves the signal strength of the strongest bluetooth BLE communication device of signal strength, in case compare next time.
Step S10 judges whether the location updating time of current Bluetooth bracelet is less than position switching minimum time threshold value: such as
The judging result of fruit above-mentioned steps S08 be it is no, then execute this step.In this step, the location updating of current Bluetooth bracelet is judged
Time whether be less than position switching minimum time threshold value, if it is determined that result be it is yes, then follow the steps S16;Otherwise, step is executed
Rapid S11.
Step S11 judges whether the signal strength of the bluetooth BLE communication device where current Bluetooth bracelet is less than and leaves station
Point signal strength threshold: if the judging result of above-mentioned steps S10 be it is no, execute this step.In this step, judge current blue
Whether the signal strength of the bluetooth BLE communication device where tooth bracelet is less than OUT_Threshold_value, if it is determined that knot
Fruit be it is yes, then follow the steps S12;Otherwise, step S13 is executed.
It is noted that if all signal strengths of bluetooth bracelet are in IN_Threshold_ in nearest setting time
Between value and OUT_Threshold_value, then first judge whether last bluetooth bracelet position switching has been more than T, if
It is, then judges the difference of strongest two signal strengths in setting time, it is strongest will then obtains signal by VAL2 if more than
Bluetooth BLE communication device updates bluetooth BLE communication device and timer as the website where current Bluetooth bracelet, control
Order is issued by this bluetooth BLE communication device;If the difference of strongest two signal strengths is not above in setting time
VAL2, then using the website where bluetooth BLE communication device as bluetooth bracelet before, control command is communicated by this bluetooth BLE
Device issues.
Step S12 takes position of the strongest bluetooth BLE communication device of signal strength as current Bluetooth bracelet: if
The judging result of above-mentioned steps S11 be it is yes, then execute this step.In this step, take the strongest bluetooth BLE of signal strength logical
Position of the T unit as current Bluetooth bracelet.That is, in nearest setting time bluetooth bracelet all signal strengths
Below OUT_Threshold_value, then strongest that bluetooth BLE communication device of the number of winning the confidence is as where bluetooth bracelet
Website, and remind bluetooth bracelet that will leave the website, it no longer supports to establish connection between monitoring cloud platform and bluetooth bracelet at this time
Communication, no longer issue control command, the display state that monitoring cloud platform obtains information is uncontrollable.But signal strength is below
The bluetooth bracelet of OUT_Threshold_value is all that can pass through indigo plant as long as the format of broadcast data is correct, verification is correct
What tooth BLE communication device uploaded, do not support only monitoring cloud platform downlink to communicate with bluetooth bracelet.
Step S13 judges the previous bluetooth BLE of signal intensity ratio of the bluetooth BLE communication device where current Bluetooth bracelet
The whether big position switching signal difference threshold value of the signal strength of communication device: in this step, judge the indigo plant where current Bluetooth bracelet
Whether big the signal strength position switching signal of the previous bluetooth BLE communication device of the signal intensity ratio of tooth BLE communication device be poor
Threshold value, if it is determined that result be it is yes, then follow the steps S14;Otherwise, step S16 is executed.
Step S14 record renewal time: if the judging result of above-mentioned steps S13 be it is yes, execute this step.This step
In, record renewal time.This step has been executed, step S15 is executed.
Step S15 saves the signal strength of the bluetooth BLE communication device where current Bluetooth bracelet: in this step, saving
The signal strength of bluetooth BLE communication device where current Bluetooth bracelet.This step has been executed, step S16 is executed.
Step S16 terminates this operation: in this step, terminating this operation.
The present invention is individually for the processing of some bluetooth bracelet, and when for multiple bluetooth bracelets, execution is multiple processes
It repeats alone, is independent of each other between multiple bluetooth bracelets.
Wherein, in the system that bluetooth BLE communication device guards cloud platform at one, quantity is unlimited, reception bluetooth
The broadcast data of bracelet be also it is unlimited, all bluetooth bracelet number broadcast datas can be received, and be uploaded to monitoring cloud platform, supervise
Cloud platform is protected to the bluetooth bracelet broadcast data received, is classified by bluetooth bracelet, the independent list of data of same bluetooth bracelet,
And the sequencing arrangement obtained by monitoring quantity, to calculate the latest position of bluetooth bracelet.In some feelings of the present embodiment
Under condition, bluetooth BLE communication device can be Bluetooth base. station, be also possible to other equipment for using bluetooth BLE broadcast mode communication.
The present invention is for above-mentioned bluetooth bracelet in medical institutions, medical institutions, school, home for destitute, wisdom garden and family
The application scenarios of equal specific occasions, multiple bluetooth bracelets correspond to multiple bluetooth BLE communication devices, solve multiple bluetooth bracelets more
The problem of switching is communicated between a bluetooth BLE communication device (cell).
A kind of dress of method for realizing above-mentioned selection bluetooth bracelet place bluetooth BLE communication device is further related in the present embodiment
It sets, as shown in figure 3, in Fig. 3, which includes connection unit 1, send unit 2, broadcast packet to obtain on broadcast data structural schematic diagram
Take sequencing unit 3, broadcast data judging unit 4, broadcast data receive judging unit 5, time stamp signal intensity judging unit 6,
Location updating time judging unit 7, the first signal strength judging unit 8, second signal intensity judging unit 9, recording unit 10,
Storage unit 11 and end unit 12;Wherein, multiple bluetooth BLE communication devices for being connected respectively to respectively by connection unit 1
Gateway, and by each gateway by Ethernet or LAN connection to guarding cloud platform;Send unit 2 for making on broadcast data
Current Bluetooth bracelet is broadcasted data by being sent to monitoring cloud platform on one or more bluetooth BLE communication devices;Broadcast packet
The broadcast packet in broadcast data of the sequencing unit 3 for obtaining current Bluetooth bracelet in nearest setting time is obtained, and according to wide
The timestamp for broadcasting packet is ranked up;Broadcast data judging unit 4 for judge monitoring cloud platform in nearest setting time whether
The broadcast data of current Bluetooth bracelet is received, if so, receiving judging unit into broadcast data;Otherwise, current Bluetooth bracelet
Position be it is invalid, the signal strength of all bluetooth BLE communication devices is set to 0X88.
In the present embodiment, broadcast data receive judging unit 5 for judge guard cloud platform be in nearest setting time
The no broadcast data for receiving the current Bluetooth bracelet that multiple bluetooth BLE communication devices are transmitted, if so, entry time stamp signal is strong
Spend judging unit 6;Otherwise, the bluetooth BLE communication device of the broadcast data of current Bluetooth bracelet will be received as current Bluetooth hand
Website where ring, and its signal strength is saved, in case compare next time;Time stamp signal intensity judging unit 6 is for judging
Whether the signal strength of the bluetooth BLE communication device of nearest timestamp is greater than into website signal strength threshold, if so, by current
The position of bluetooth bracelet is switched to the strongest bluetooth BLE communication device of signal strength, and it is logical to save the strongest bluetooth BLE of signal strength
The signal strength of T unit, in case compare next time;Otherwise, in-position renewal time judging unit 7;The location updating time is sentenced
Disconnected unit 7 switches minimum time threshold value for judging whether the location updating time of current Bluetooth bracelet is less than position, if so, into
Enter end unit;Otherwise, into the first signal strength judging unit.
In the present embodiment, the first signal strength judging unit 8 is used to judge the bluetooth BLE communication where current Bluetooth bracelet
Whether the signal strength of device, which is less than, is left website signal strength threshold, if so, taking the strongest bluetooth BLE of signal strength logical
Position of the T unit as current Bluetooth bracelet, into recording unit 10;Otherwise, into second signal intensity judging unit 9;The
Binary signal intensity judging unit 9 is used to judge that the signal intensity ratio of the bluetooth BLE communication device where current Bluetooth bracelet to be previous
The whether big position switching signal difference threshold value of the signal strength of a bluetooth BLE communication device, if so, into recording unit 10;Otherwise,
Into end unit 12;Recording unit 10 is for recording renewal time;Storage unit 11 is for saving current Bluetooth bracelet place
Bluetooth BLE communication device signal strength;End unit 12 is for terminating this operation.Energy accurate judgement bluetooth hand of the present invention
Ring position can accurately and steadily select bluetooth BLE communication device and be communicated and be controlled to it.
It is noted that above-mentioned nearest setting time is 30~120 seconds, certainly, in the present embodiment in the present embodiment
Under some cases, the size of above-mentioned setting time can also adjust accordingly according to the actual situation.It is above-mentioned to enter website signal
Intensity threshold is the signal threshold value into bluetooth BLE communication device.It is bluetooth bracelet at two that position, which switches minimum time threshold value,
The minimum time threshold value that position switches between the above bluetooth BLE communication device.Position switching signal difference threshold value is the bluetooth bracelet
The threshold value of the difference in signal strength of another bluetooth BLE communication device is switched to from a bluetooth BLE communication device.
In short, the present invention is blue based on monitoring cloud platform selection communication of more bluetooth bracelets to more bluetooth BLE communication devices
The method of tooth BLE communication device,
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (8)
1. a kind of method of bluetooth BLE communication device where selection bluetooth bracelet, which comprises the steps of:
A multiple bluetooth BLE communication devices) are connected respectively to respective gateway, and by each gateway by Ethernet or
LAN connection to monitoring cloud platform;
B) current Bluetooth bracelet is broadcasted data by being sent to the monitoring on one or more bluetooth BLE communication devices
Cloud platform;
C the broadcast packet in the broadcast data of the current Bluetooth bracelet in nearest setting time) is obtained, and according to the broadcast packet
Timestamp be ranked up;
D) judge whether the monitoring cloud platform receives the broadcast number of the current Bluetooth bracelet in the nearest setting time
According to if so, executing step E);Otherwise, the position of the current Bluetooth bracelet is invalid, by all bluetooth BLE communication dresses
The signal strength set is set to 0X88;
E) judge whether the monitoring cloud platform receives multiple bluetooth BLE communication device institutes in the nearest setting time
The broadcast data of the current Bluetooth bracelet of transmission, if so, executing step F);Otherwise, the current Bluetooth bracelet will be received
Broadcast data bluetooth BLE communication device as the website where the current Bluetooth bracelet, and save its signal strength, with
It is standby to compare next time;
F) judge whether the signal strength of the bluetooth BLE communication device of nearest timestamp is greater than into website signal strength threshold,
If so, the position of the current Bluetooth bracelet is switched to the strongest bluetooth BLE communication device of signal strength, the signal is saved
The signal strength of the strongest bluetooth BLE communication device of intensity, in case compare next time;Otherwise, step G is executed);
G) judge whether the location updating time of the current Bluetooth bracelet is less than position switching minimum time threshold value, if so, holding
Row step L);Otherwise, step H is executed);
H) judge whether the signal strength of the bluetooth BLE communication device where the current Bluetooth bracelet is less than and leave website signal
Intensity threshold, if so, position of the strongest bluetooth BLE communication device of signal strength as the current Bluetooth bracelet is taken,
Execute step J);Otherwise, step I is executed);
I) judge the previous bluetooth BLE communication of the signal intensity ratio of the bluetooth BLE communication device where the current Bluetooth bracelet
Whether the signal strength of device is greater than position switching signal difference threshold value, if so, executing step J);Otherwise, step L is executed);It is described
Position switching signal difference threshold value is switched to another bluetooth BLE communication from a bluetooth BLE communication device for the bluetooth bracelet
The threshold value of the difference in signal strength of device;
J renewal time) is recorded, step K is executed);
K the signal strength for) saving the bluetooth BLE communication device where the current Bluetooth bracelet, executes step L);
L) terminate this operation.
2. the method for bluetooth BLE communication device where selection bluetooth bracelet according to claim 1, which is characterized in that institute
Stating nearest setting time is 30~120 seconds.
3. the method for bluetooth BLE communication device where selection bluetooth bracelet according to claim 1 or 2, which is characterized in that
It is described into website signal strength threshold be signal strength threshold into the bluetooth BLE communication device region.
4. the method for bluetooth BLE communication device where selection bluetooth bracelet according to claim 1, which is characterized in that institute
It is the bluetooth bracelet minimum that position switches between more than two bluetooth BLE communication devices that rheme, which sets switching minimum time threshold value,
Time threshold.
5. a kind of device for the method for realizing selection bluetooth bracelet as described in claim 1 place bluetooth BLE communication device,
It is characterized in that, comprising:
Connection unit: for multiple bluetooth BLE communication devices to be connected respectively to respective gateway, and each gateway is led to
Ethernet or LAN connection are crossed to monitoring cloud platform;
Unit is sent on broadcast data: passing through one or more bluetooth BLE for making current Bluetooth bracelet be broadcasted data
The monitoring cloud platform is sent on communication device;
Broadcast packet obtains sequencing unit: wide in nearest setting time in the broadcast data for obtaining the current Bluetooth bracelet
Packet is broadcast, and is ranked up according to the timestamp of the broadcast packet;
Broadcast data judging unit: described work as whether is received in the nearest setting time for judging the monitoring cloud platform
The broadcast data of preceding bluetooth bracelet, if so, receiving judging unit into broadcast data;Otherwise, the position of the current Bluetooth bracelet
It is invalid to be set to, and the signal strength of all bluetooth BLE communication devices is set to 0X88;
Whether broadcast data receives judging unit: receiving for judging the monitoring cloud platform in the nearest setting time more
The broadcast data for the current Bluetooth bracelet that a bluetooth BLE communication device is transmitted, if so, entry time stamp signal is strong
Spend judging unit;Otherwise, the bluetooth BLE communication device of the broadcast data of the current Bluetooth bracelet will be received as described current
Website where bluetooth bracelet, and its signal strength is saved, in case compare next time;
Time stamp signal intensity judging unit: for judge nearest timestamp bluetooth BLE communication device signal strength whether
Greater than website signal strength threshold is entered, if so, the position of the current Bluetooth bracelet is switched to the strongest indigo plant of signal strength
Tooth BLE communication device saves the signal strength of the strongest bluetooth BLE communication device of the signal strength, in case compare next time;
Otherwise, in-position renewal time judging unit;
Location updating time judging unit: for judging whether the location updating time of the current Bluetooth bracelet cuts less than position
Minimum time threshold value is changed, if so, into end unit;Otherwise, into the first signal strength judging unit;
First signal strength judging unit: for judging the signal of the bluetooth BLE communication device where the current Bluetooth bracelet
Whether intensity, which is less than, is left website signal strength threshold, if so, taking the strongest bluetooth BLE communication device conduct of signal strength
The position of the current Bluetooth bracelet, into recording unit;Otherwise, into second signal intensity judging unit;
Second signal intensity judging unit: for judging the signal of the bluetooth BLE communication device where the current Bluetooth bracelet
Whether intensity is greater than the poor threshold value of position switching signal than the signal strength of previous bluetooth BLE communication device, if so, entering record
Unit;Otherwise, into end unit;The position switching signal difference threshold value is that the bluetooth bracelet is communicated from a bluetooth BLE
Device is switched to the threshold value of the difference in signal strength of another bluetooth BLE communication device;
Recording unit: for recording renewal time;
Storage unit: for saving the signal strength of the bluetooth BLE communication device where the current Bluetooth bracelet;
End unit: for terminating this operation.
6. device according to claim 5, which is characterized in that the nearest setting time is 30~120 seconds.
7. device according to claim 5 or 6, which is characterized in that the website signal strength threshold that enters is into institute
State the signal strength threshold in bluetooth BLE communication device region.
8. device according to claim 5, which is characterized in that the position switching minimum time threshold value is the bluetooth hand
The ring minimum time threshold value that position switches between more than two bluetooth BLE communication devices.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610940100.1A CN106535323B (en) | 2016-10-25 | 2016-10-25 | The method and device of bluetooth BLE communication device where selecting bluetooth bracelet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610940100.1A CN106535323B (en) | 2016-10-25 | 2016-10-25 | The method and device of bluetooth BLE communication device where selecting bluetooth bracelet |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106535323A CN106535323A (en) | 2017-03-22 |
CN106535323B true CN106535323B (en) | 2019-10-08 |
Family
ID=58292034
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610940100.1A Active CN106535323B (en) | 2016-10-25 | 2016-10-25 | The method and device of bluetooth BLE communication device where selecting bluetooth bracelet |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106535323B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106918338A (en) * | 2017-04-07 | 2017-07-04 | 重庆智石网络科技有限公司 | Indoor locating system and method based on Bluetooth gateway |
WO2018209555A1 (en) * | 2017-05-16 | 2018-11-22 | 深圳市创客工场科技有限公司 | Bluetooth device connection method and terminal device |
CN111669714A (en) * | 2020-05-19 | 2020-09-15 | 刘全武 | Method and device for controlling other terminals based on multiple Bluetooth terminals |
CN111757275B (en) * | 2020-06-05 | 2022-06-03 | 海尔优家智能科技(北京)有限公司 | Device connection method and device, storage medium and electronic device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104207426A (en) * | 2014-09-05 | 2014-12-17 | 深圳奇沃智联科技有限公司 | Intelligent bracelet with target tracking function |
CN104735624A (en) * | 2015-04-21 | 2015-06-24 | 北京云迹科技有限公司 | Method, device and server for querying locations |
CN104768123A (en) * | 2015-03-18 | 2015-07-08 | 广东欧珀移动通信有限公司 | Bluetooth connection method, device and system |
CN205123788U (en) * | 2015-11-16 | 2016-03-30 | 广州甲子智能科技有限公司 | Wisdom monitor system based on bluetooth |
CN105681328A (en) * | 2016-02-26 | 2016-06-15 | 安徽华米信息科技有限公司 | Electronic device controlling method and device as well as electronic device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7420472B2 (en) * | 2005-10-16 | 2008-09-02 | Bao Tran | Patient monitoring apparatus |
-
2016
- 2016-10-25 CN CN201610940100.1A patent/CN106535323B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104207426A (en) * | 2014-09-05 | 2014-12-17 | 深圳奇沃智联科技有限公司 | Intelligent bracelet with target tracking function |
CN104768123A (en) * | 2015-03-18 | 2015-07-08 | 广东欧珀移动通信有限公司 | Bluetooth connection method, device and system |
CN104735624A (en) * | 2015-04-21 | 2015-06-24 | 北京云迹科技有限公司 | Method, device and server for querying locations |
CN205123788U (en) * | 2015-11-16 | 2016-03-30 | 广州甲子智能科技有限公司 | Wisdom monitor system based on bluetooth |
CN105681328A (en) * | 2016-02-26 | 2016-06-15 | 安徽华米信息科技有限公司 | Electronic device controlling method and device as well as electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN106535323A (en) | 2017-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106535323B (en) | The method and device of bluetooth BLE communication device where selecting bluetooth bracelet | |
CN107948296B (en) | Indoor positioning system and method based on Bluetooth | |
CN106814345B (en) | It is easy to data acquisition and high-precision indoor orientation method | |
KR101770510B1 (en) | Auto Sensing System and Method for Leaving and Entering of the Interesting Area | |
EP2526724B1 (en) | Acquiring a signal parameter for a neighboring access point | |
Lemic et al. | Infrastructure for benchmarking rf-based indoor localization under controlled interference | |
CN109151849A (en) | Realize method and device, base station and the user equipment of page monitoring | |
WO2017084427A1 (en) | Method and device for positioning terminal | |
CN104936273B (en) | A kind of Mesh ad-hoc wireless Sensor Network synchronizes suspend mode and the low-power consumption means of communication | |
CN104992575B (en) | S-mode secondary radar roll-call querying method by taking ADS-B information as background | |
JP2005045637A5 (en) | ||
KR101830379B1 (en) | Method and apparatus for recognizing space based of environmental information, space recognizing system | |
CN106793131B (en) | Channel selection method and system of wireless router | |
EP3688544B1 (en) | Controlling the operation of aerial ues | |
CN104812050B (en) | A kind of method that realizing air interface synchronization, cell and system | |
US11832199B2 (en) | Over-the-air synchronization of radio nodes in a radio access network | |
CN108535743A (en) | One kind putting herding positioning system and method in a suitable place to breed | |
JP6114942B2 (en) | Position detection system and position detection method | |
CN108566625A (en) | WiFi localization methods based on software defined network | |
CN106604410A (en) | Method for realizing wireless self-organizing network building based on collision detection and competitive mode | |
CN101137174B (en) | Method for implementing base station position information automatic detection | |
CN110351792A (en) | A kind of method and apparatus determining Target cell during triggering cell switches | |
CN101091409A (en) | Mobile communication system and a controller, mobile station and method for use therein | |
CN105338616B (en) | The localization method and positioning system of mobile terminal | |
CN105911517A (en) | Device, system and method of location searching |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 510000 Tianhe District, Guangzhou, Zhongshan, No. 89 Guangdong Avenue, building A, room 3, room 02 Applicant after: Guangzhou creation cloud Technology Co., Ltd. Address before: 510000 Tianhe District, Guangzhou, Zhongshan, No. 89 Guangdong Avenue, building A, room 3, room 02 Applicant before: Guangzhou Chuangxiang Science & Technology Co Ltd |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |