CN106507273B - Bluetooth BLE communication device and the method for carrying out communication control using the device - Google Patents
Bluetooth BLE communication device and the method for carrying out communication control using the device Download PDFInfo
- Publication number
- CN106507273B CN106507273B CN201610885404.2A CN201610885404A CN106507273B CN 106507273 B CN106507273 B CN 106507273B CN 201610885404 A CN201610885404 A CN 201610885404A CN 106507273 B CN106507273 B CN 106507273B
- Authority
- CN
- China
- Prior art keywords
- ble
- bluetooth
- communication device
- bluetooth ble
- ble communication
- 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
- 238000004891 communication Methods 0.000 title claims abstract description 159
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000001914 filtration Methods 0.000 claims abstract description 10
- 238000001514 detection method Methods 0.000 claims abstract description 9
- 230000002776 aggregation Effects 0.000 claims abstract description 5
- 238000004220 aggregation Methods 0.000 claims abstract description 5
- 230000008569 process Effects 0.000 claims abstract description 5
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 238000012544 monitoring process Methods 0.000 description 8
- 238000010276 construction Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 235000013399 edible fruits Nutrition 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 241000196324 Embryophyta Species 0.000 description 1
- 241001062009 Indigofera Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 208000019116 sleep disease Diseases 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- H04B5/48—
-
- 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
Abstract
The invention discloses a kind of bluetooth BLE communication device and the methods for carrying out communication control using the device, device includes CPU module, at least one BLE communication module, power supply power supply detection circuit, RS485 interface circuit and LAN interface, bluetooth BLE in coverage area that bluetooth BLE communication device the is monitored BLE broadcast packet issued from equipment is transmitted to CPU module by BLE communication module, CPU module falls the data filtering that setting format is not met in BLE broadcast packet, and the data for meeting setting format are screened, after classification and aggregation process, host computer or Internet of Things cloud platform are uploaded to by RS485 interface circuit or LAN interface.The present invention realize bluetooth BLE from equipment do not need smart phone yet and can will be sent in data Internet of Things cloud platform, reduce cost, can with other BLE from equipment establish connection, realize double-direction control, efficiency it is higher, compared with flexibly.
Description
Technical field
The present invention relates to bluetooth BLE from equipment medical monitoring arts, in particular to a kind of bluetooth BLE communication device and utilization
The method of device progress communication control.
Background technique
It is universal with Internet of Things, bluetooth BLE4.X and the above technology being more widely applied in daily life.As
The wireless communication technique that Internet of Things cloud platform is connect with people, object, bluetooth BLE4.X technology provide just for more and more applications
Benefit, demand of the various battery powered systems in Internet of Things is more obvious, for the acquisition terminals such as bluetooth bracelet, even more
Unlimited possibility: its input that can be used as smart home, such as: the bracelet wearer of music is listened, after sleeping, the bracelet of wearing
The sleep info of user is broadcast out, after music control device receives this information, by parsing and handling, is used
The information that person falls asleep automatically gradually closes musical sound.
Bluetooth BLE beacon communication refers to that the base station beacon/ibeacon (broadcast base station) sends a string of BLE broadcast packets, hand
Machine receives, and by cell phone application software, inquires cloud platform, obtains the positioning where mobile phone, cellie is to know oneself
Position where mobile phone.But in practice, if without mobile phone, whole system is just had no way work, in the occasion of special fixation, example
Such as: home for destitute, hospital, sanatorium, school etc. have no idea using because such occasion is mainly the pendant for monitoring bracelet
Wearer is not or not administrative region.If making gateway using mobile phone, and there are cost of equipment height and the possibility for being easy to be diverted.
In bluetooth BLE monitoring system, Bluetooth slave devices work most of the time acquisition and on send data mode, Internet of Things
The probability of platform courses Bluetooth slave devices (i.e. monitoring state) is very low, i.e., the company of foundation between Bluetooth slave devices and bluetooth master
It connects, so that the probability of " one-to-one " communication is low, it is bluetooth BLE base station operation under uplink mode when so most of.Currently
In bluetooth BLE broadcast communication, the operating mode that bluetooth BLE equipment is all made of certain fixation works always, can be only done single function
Can, inefficient, use is inflexible, and it is limited to be applicable in scene.
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 realization bluetooth BLE
Do not need smart phone from equipment yet and can will be sent in data Internet of Things cloud platform, reduce cost, can be with other BLE from equipment
It establishes connection, realize that double-direction control, efficiency are higher, carry out using more flexible bluetooth BLE communication device and using the device
The method of communication control.
The technical solution adopted by the present invention to solve the technical problems is: a kind of bluetooth BLE communication device is constructed, including
CPU module, at least one BLE communication module, power supply power supply detection circuit, RS485 interface circuit and LAN interface, the BLE are logical
The BLE broadcast packet transmission that letter module issues the bluetooth BLE in coverage area that the bluetooth BLE communication device is monitored from equipment
To the CPU module, the CPU module falls the data filtering that setting format is not met in the BLE broadcast packet, and to meeting
It is described setting format data screened, classify and aggregation process after, by the RS485 interface circuit or LAN interface
Host computer or Internet of Things cloud platform are passed to, the power supply power supply detection circuit is connect, for providing power supply simultaneously with the CPU module
The power input and working condition of the bluetooth BLE communication device, the BLE communication are determined after progress electric resistance partial pressure ADC conversion
Module and RS485 interface circuit pass through I/O port (general input/output interface) and connect with the CPU module, and the LAN connects
Mouth is connect by SPI (Serial Peripheral Interface (SPI)) interface with the CPU module.
In bluetooth BLE communication device of the present invention, the setting format includes data length, broadcast type, sets
Standby number, data type, data content, timestamp and data check bit.
In bluetooth BLE communication device of the present invention, further include connect with the CPU module, for it is described
The wifi interface circuit that position machine or Internet of Things cloud platform are communicated.
Bluetooth BLE is equipped in bluetooth BLE communication device of the present invention, in the CPU module from list of devices, institute
State bluetooth BLE from list of devices record coverage area in bluetooth BLE from the MAC Address of equipment, device numbering, current information and
The time that nearest data obtain.
In bluetooth BLE communication device of the present invention, mould is being monitored by the BLE communication module and CPU module
Switching at runtime is carried out between formula and principal and subordinate's BLE communication pattern.
In bluetooth BLE communication device of the present invention, when the bluetooth BLE communication device to some bluetooth BLE from
When equipment sends data, it is switched to the principal and subordinate BLE communication pattern, has communicated and has switched back into the listening mode.
In bluetooth BLE communication device of the present invention, the number of the BLE communication module is 1~3.
The invention further relates to a kind of method for carrying out communication control using any one of the above bluetooth BLE communication device, packets
Include following steps:
A) judge whether the bluetooth BLE communication device has data distributing to bluetooth BLE from equipment, if so, being switched to BLE
Master-slave equipment mode executes step B);Otherwise, step E is executed);
B) from equipment, find needs the bluetooth BLE on bluetooth BLE communication device transmission BLE SCAN broadcast packet scanning periphery
The bluetooth BLE of data is issued from equipment and is established a connection;
C) the bluetooth BLE communication device carries out BLE communication from equipment with the bluetooth BLE found;
D) judge whether the BLE communication is completed, if so, return step A);Otherwise, return step C);
E) judge whether the bluetooth BLE communication device works in listening mode, if so, executing step F);Otherwise, switch
To listening mode, step F is executed);
F) judge whether other bluetooths BLE has data broadcasting to come out from equipment, if so, executing step G);Otherwise, step is returned
Rapid A);
G after) the BLE broadcast packet listened to is filtered, screens, classifies and is summarized, host computer or Internet of Things cloud are waited
Platform inquiry, return step A).
In the method for the present invention for carrying out communication control using any one of the above bluetooth BLE communication device, institute
State step G) further comprise:
G1) to listen in the BLE broadcast packet do not meet setting format data filtering fall, reservation meet the setting
The data of format;The BLE broadcast packet includes heart rate, amount of exercise, temperature, sleep, battery capacity and key value instantly;
G2 useful information) is filtered out according to data type;The useful information includes heart rate, amount of exercise, sleep and key
Value;
G3) according to data type and timestamp, data duplicate in the useful information are weeded out, obtain final having
Data are imitated, and the valid data are uploaded into the host computer or Internet of Things cloud platform.
In the method for the present invention for carrying out communication control using any one of the above bluetooth BLE communication device, institute
State bluetooth BLE from equipment be bluetooth bracelet or the base station ibeacon bluetooth BLE.
The method implemented bluetooth BLE communication device of the invention and carry out communication control using the device, has with following
Beneficial effect: since this bluetooth BLE communication device monitors the BLE broadcast packet that bluetooth BLE is issued from equipment, by filtering, screening, divide
After class and aggregation process, it is sent to Internet of Things cloud platform, completes data acquisition function of the bluetooth BLE from equipment, realizes bluetooth BLE
The function of Internet of Things cloud platform can be gone up by not needing smart phone also from equipment, while can also be established and be connected from equipment with other BLE
It connects, and then realizes two-way communication and control, reduce the construction cost and operation expense of system;So it realizes bluetooth BLE
Do not need smart phone from equipment yet and can will be sent in data Internet of Things cloud platform, reduce cost, can be with other BLE from equipment
Establish connection, realize double-direction control, efficiency it is higher, using relatively flexibly.
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 bluetooth BLE communication device of the present invention and is carried out in method one embodiment of communication control using the device
The structural schematic diagram of device;
Fig. 2 is the flow chart of method in the embodiment;
Fig. 3 is after the BLE broadcast packet listened to is filtered, screens, classifies and is summarized in the embodiment, in waiting
Position machine or the specific flow chart of Internet of Things cloud platform inquiry.
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.
In bluetooth BLE communication device of the present invention and the embodiment of the method for carrying out communication control using the device, bluetooth
The structural schematic diagram of BLE communication device is as shown in Figure 1.In Fig. 1, bluetooth BLE communication device include CPU module 1, at least one
BLE communication module 2, power supply power supply detection circuit 3, RS485 interface circuit 4 and LAN interface 5, the number of BLE communication module 2 are 1
~3, it is defaulted as 1, depicts 3 BLE communication modules 2 in Fig. 1 as an example, bluetooth BLE communication device operates mainly in
Listening mode, monitors the BLE broadcast packet that other bluetooths BLE is issued from equipment, collect other bluetooths BLE in institute's coverage area from
The BLE broadcast packet that equipment issues, the bluetooth BLE in coverage area that BLE communication module 2 monitors bluetooth BLE communication device
The BLE broadcast packet issued from equipment is transmitted to CPU module 1, and CPU module 1 will not meet setting format (setting in BLE broadcast packet
Format be system support BLE broadcast packet format) data filtering fall, and to meet setting format data screened, point
After class and aggregation process, host computer or Internet of Things cloud platform are uploaded to (in figure not by RS485 interface circuit 4 or LAN interface 5
It shows).
As long as it is noted that there is a BLE communication module 1 that can work, when factory, has determined that outfit BLE is communicated
The quantity of module 2.Efficiency of the monitored bluetooth BLE from equipment can be promoted by being equipped with more BLE communication modules 2, promote the present invention
Bluetooth BLE communication device downlink (bluetooth BLE communication device of the invention to bluetooth BLE from equipment send data) speed
Degree.
In the present embodiment, uplink refers to data flow uplink, i.e. bluetooth BLE issues data, bluetooth of the invention from equipment
BLE communication device receive data, after processing on be sent to host computer or Internet of Things cloud platform, the i.e. flow direction of data flow from the bottom up.
Downlink refers to data flow downlink, i.e., host computer or Internet of Things cloud platform have data to be handed down to some specific bluetooth BLE from
Equipment, to bluetooth BLE from equipment, the direction of data flow is bluetooth BLE communication device data to be transmitted through the invention
From the top down.
In the present embodiment, power supply power supply detection circuit 3 is exactly LDO power supply and input voltage detection circuit module, electricity in fact
Source connect for power detection circuit 3 with CPU module 1, for providing power supply and determining the bluetooth after carrying out electric resistance partial pressure ADC conversion
The power input and working condition of BLE communication device, such as: it is whether under-voltage, if whether over-voltage, voltage are stable.Bluetooth BLE
Communication device is unattended type equipment, and remotely obtaining its operating condition facilitates the analysis and judgement of system, improves its exception
When treatment effeciency.
BLE communication module 2 and RS485 interface circuit 4 are connect by I/O port with CPU module 1, and CPU module 1 is utilized
General UART (universal synchronous/asynchronous serial reception/transmitter) function, to improve communication efficiency;LAN interface 5 passes through SPI (string
Row Peripheral Interface) interface connect with CPU module 1, complete wired ethernet communication.
It is noted that bluetooth BLE is a kind of low-power consumption bluetooth standard, i.e. Bluetooth Low Energy, it is
Low cost, short distance, interoperable robustness wireless technology, work exempt from license 2.4GHz ISM radio frequency band.This indigo plant
The tooth BLE communication device most of the time is to monitor other bluetooths BLE from device broadcasts;Can also be used as bluetooth master, SCAN its
His bluetooth BLE establishes bluetooth BLE connection from equipment, or to other bluetooths BLE from equipment initiation, realizes that two-way bluetooth BLE is communicated.
Bluetooth BLE from equipment be the equipment used as bluetooth BLE slave, can active transmission bluetooth BLE broadcast packet outward equipment, such as
Bluetooth bracelet, base station ibeacon bluetooth BLE etc..
The equipment that this bluetooth BLE communication device can substitute mobile phone B LE communication monitors the BLE that bluetooth BLE is issued from equipment
Broadcast packet after being filtered, screen, classify and summarizing, is preferentially sent to host computer or Internet of Things by RS485 interface circuit 4
Cloud platform, complete data acquisition function of the bluetooth BLE from equipment, realize bluetooth BLE from equipment do not need smart phone also can on
The function of Internet of Things cloud platform.Connection can also be established from equipment with other BLE simultaneously, and then realize two-way communication and control,
The construction cost and operation expense of reduction system.
This bluetooth BLE communication device does not need not needing timing by establishing connection from equipment with bluetooth BLE yet and issue
SCAN broadcast packet, is monitored emphatically, compatible " one-to-many ", " many-one " and " multi-to-multi ".The present invention can solve in bluetooth BLE communication
" one-to-many ", " many-one ", " multi-to-multi " and the problem of " one-to-one ".
It is wide that this bluetooth BLE communication device that above-mentioned " many-one " refers to can receive the BLE that multiple bluetooth BLE are issued from equipment
Packet is broadcast, and " one-to-many " refers to that the BLE broadcast packet that a bluetooth BLE is issued from equipment can be by multiple bluetooths of the invention
BLE communication device receives;" multi-to-multi " refers to that the BLE broadcast packet that multiple bluetooth BLE are issued from equipment can be by multiple
The bluetooth BLE communication device of invention receives.
For the situation for being equipped with a BLE communication module 2, the bluetooth work of switching at runtime bluetooth BLE communication device is carried out
Mode is a kind of special case.For the situation of multiple BLE communication modules 2, it is only necessary to which one of BLE communication module 2 carries out
" one-to-one " establish connection BLE communication can (i.e. the bluetooth operating mode of switching at runtime bluetooth BLE communication device), wait communication
After, automatically switch back into monitoring;Other BLE communication modules 2 are constantly in monitoring operating mode.Above-mentioned switching at runtime bluetooth
The bluetooth operating mode of BLE communication device refers to realizing " one-to-many ", " many-one ", " multi-to-multi " and " one-to-one " foundation
Variation between connection communication.
In the present embodiment, above-mentioned setting format include data length, broadcast type, device numbering, data type, in data
Appearance, timestamp and data check bit.This is also the BLE broadcast packet format that bluetooth BLE communication device is supported.
In the present embodiment, bluetooth BLE communication device further includes wifi interface circuit 6, and wifi interface circuit 6 passes through UART
Interface is connect, for being communicated with host computer or Internet of Things cloud platform with CPU module 1.
In the present embodiment, RS485 interface circuit 4, LAN interface 5 and wifi interface circuit 6 are communication interfaces, and being used for should
Bluetooth BLE communication device and host computer or Internet of Things cloud platform etc. realize data communication, and wherein wifi interface circuit 6 is optional portion
Point, it is not necessary to part can further provide for high reliability by increasing wifi interface circuit 6, improve bluetooth of the invention
The construction efficiency of BLE communication device.LAN interface 5 or wifi interface circuit 6 are as RS485 interface circuit 4, regardless of active and standby, no
Divide primary and secondary, works at the same time, be all real-time communication interface.
Bluetooth BLE is equipped in the present embodiment, in CPU module 1 from list of devices, bluetooth BLE is recorded from list of devices to be covered
The time that bluetooth BLE is obtained from the MAC Address of equipment, device numbering, current information and nearest data within the scope of lid.Wait net
It closes, host computer or Internet of Things cloud platform are inquired.The sequencing for the BLE broadcast packet that bluetooth BLE communication device receives is arranged
Column, reject duplicate data, then this bluetooth BLE is at least successively transmitted 1 time to issuer from the data in list of devices.
In the present embodiment, bluetooth BLE communication device has listening mode and principal and subordinate's BLE communication pattern, is communicated by BLE
Module 2 and CPU module 1 carry out switching at runtime between listening mode and principal and subordinate's BLE communication pattern.It is filled when bluetooth BLE is communicated
Set to some bluetooth BLE from equipment send data when, can be quickly switched into " pairing " connection principal and subordinate's BLE communication pattern, realization
High-speed traffic has communicated and has switched back into listening mode.When bluetooth BLE communication device no data issues, it is constantly in listening mode.
In the listen mode, itself is not sent out bluetooth BLE SCAN broadcast packet to the groundwork of bluetooth BLE communication device, thus
BLE broadcast bandwidth resource can be saved.
The present embodiment further relates to a kind of method for carrying out communication control using above-mentioned bluetooth BLE communication device, flow chart
As shown in Fig. 2, this method comprises the following steps in Fig. 2:
Step S01 judges whether bluetooth BLE communication device has data distributing to bluetooth BLE from equipment: in this step, judgement
Whether bluetooth BLE communication device has data distributing to bluetooth BLE from equipment, if it is determined that result be it is yes, then follow the steps
S02;Otherwise, step S06 is executed.Above-mentioned bluetooth BLE from equipment be bluetooth bracelet or the base station ibeacon bluetooth BLE.
Step S02 is switched to BLE master-slave equipment mode: if the judging result of above-mentioned steps S01 be it is yes, execute this step
Suddenly.In this step, when communicating with bluetooth BLE from equipment, it is switched to BLE master-slave equipment mode.At this point, bluetooth BLE is communicated
Device is bluetooth BLE main equipment.
Step S03 bluetooth BLE communication device sends the bluetooth BLE on BLE SCAN broadcast packet scanning periphery from equipment, finds
Need to issue the bluetooth BLE of data from equipment and establish a connection: in this step, this bluetooth BLE communication device sends BLE
SCAN broadcast packet scans the bluetooth BLE on periphery from equipment, find need to issue the bluetooth BLE of data from equipment and with its company of foundation
It connects, exactly establishes connection according to the connection control logic and method of master-slave equipment.
Step S04 bluetooth BLE communication device carries out BLE communication from equipment with the bluetooth BLE found: in this step, bluetooth
BLE communication device carries out BLE communication from equipment with the bluetooth BLE found.
Step S05 judge BLE communication whether completes: in this step, judge BLE communication whether complete, if it is determined that knot
Fruit is yes, then return step S01;Otherwise, return step S04.
Step S06 judges whether bluetooth BLE communication device works in listening mode: if the judgement knot of above-mentioned steps S01
Fruit be it is no, then execute this step.In this step, judge whether bluetooth BLE communication device works in listening mode, if it is determined that
As a result be it is yes, then follow the steps S08;Otherwise, step S07 is executed.
Step S07 is switched to listening mode: if the judging result of above-mentioned steps S06 be it is no, execute this step.This step
In rapid, it is switched to listening mode.This step has been executed, step S08 is executed.
Step S08 judges whether other bluetooths BLE has data to broadcast from equipment: in this step, judging other bluetooths BLE
Whether have data to broadcast from equipment, if it is determined that result be it is yes, then follow the steps S09;Otherwise, return step S01.
After step S09 is filtered, screens, classifies and summarizes to the BLE broadcast packet listened to, host computer or Internet of Things are waited
Net cloud platform inquiry: if the judging result of above-mentioned steps S08 be it is yes, execute this step.In this step, to what is listened to
After BLE broadcast packet is filtered, screens, classifies and summarizes, host computer or the inquiry of Internet of Things cloud platform are waited.This step is executed
Suddenly, return step S01.
The present invention passes through under switching at runtime to different bluetooth operating modes, completes corresponding communication function, defers to bluetooth
The standard of BLE, and will not be clashed with similar bluetooth BLE communication equipment with blue-tooth intelligence Mobile phone conflict.By dynamic
State switches the bluetooth operating mode of bluetooth BLE communication device, realizes " one-to-many ", " many-one ", " multi-to-multi " and " one-to-one "
The dynamic change between connection communication is established, so that bluetooth BLE communication device is in medical monitoring or the communication efficiency of monitoring field
It is greatly improved with reliability.
For the present embodiment, above-mentioned steps S09 can also be refined further, and the flow chart after refinement is as shown in Figure 3.
In Fig. 3, above-mentioned steps S09 further comprises:
Step S91 falls to the data filtering for not meeting setting format is listened in BLE broadcast packet, and reservation meets setting format
Data: in this step, to listen in BLE broadcast packet do not meet setting format data filtering fall, reservation meet setting lattice
The data of formula.The BLE broadcast packet includes heart rate, amount of exercise, temperature, sleep, battery capacity and key value etc. instantly.
Step S92 filters out useful information according to data type: in this step, filtering out useful letter according to data type
Breath, above-mentioned useful information includes heart rate, amount of exercise, sleep and key value.
Step S93 weeds out data duplicate in useful information according to data type and timestamp, obtains final having
Data are imitated, and valid data are uploaded into host computer or Internet of Things cloud platform: in this step, according to data type and timestamp,
Data duplicate in useful information are weeded out, obtain final valid data, and valid data are uploaded into host computer or object
Networking cloud platform.
In short, the present invention monitors the BLE broadcast packet that bluetooth BLE is issued from equipment, it is filtered, screens, classifies and summarizes
Afterwards, host computer or Internet of Things cloud platform are preferentially sent to by RS485 interface circuit 4, complete bluetooth BLE and is adopted from the data of equipment
Collect function, realizes that bluetooth BLE does not need smart phone from equipment yet and can upload the data to the function of Internet of Things cloud platform.Simultaneously
Connection can also be established from equipment with other BLE, and then realize two-way communication, reduce system construction cost and operation and maintenance at
This.
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 (10)
1. a kind of bluetooth BLE communication device, which is characterized in that including CPU module, at least one BLE communication module, power supply power supply
Detection circuit, RS485 interface circuit and LAN interface, the BLE communication module are covered what the bluetooth BLE communication device was monitored
The BLE broadcast packet that bluetooth BLE within the scope of lid is issued from equipment is transmitted to the CPU module, and the CPU module is by the BLE
Do not met in broadcast packet setting format data filtering fall, and to meet it is described setting format data screened, classify and
After aggregation process, host computer or Internet of Things cloud platform are uploaded to by the RS485 interface circuit or LAN interface, specifically included
Following steps:
A) judge whether the bluetooth BLE communication device has data distributing to bluetooth BLE from equipment, if so, being switched to BLE principal and subordinate
Equipment mode executes step B);Otherwise, step E is executed);
B) the bluetooth BLE that the bluetooth BLE communication device sends BLE SCAN broadcast packet scanning periphery is found under needs from equipment
The bluetooth BLE of hair data from equipment and is established a connection;
C) the bluetooth BLE communication device carries out BLE communication from equipment with the bluetooth BLE found;
D) judge whether the BLE communication is completed, if so, return step A);Otherwise, return step C);
E) judge whether the bluetooth BLE communication device works in listening mode, if so, executing step F);Otherwise, it is switched to prison
Mode is listened, step F is executed);
F) judge whether other bluetooths BLE has data broadcasting to come out from equipment, if so, executing step G);Otherwise, return step
A);
G after) the BLE broadcast packet listened to is filtered, screens, classifies and is summarized, host computer or Internet of Things cloud platform are waited
Inquiry, return step A);
The power supply power supply detection circuit connect with the CPU module, for providing power supply and carrying out electric resistance partial pressure ADC conversion after
Determine the power input and working condition of the bluetooth BLE communication device, the BLE communication module and RS485 interface circuit are equal
It is connect by I/O port with the CPU module, the LAN interface is connect by SPI interface with the CPU module.
2. bluetooth BLE communication device according to claim 1, which is characterized in that the setting format include data length,
Broadcast type, device numbering, data type, data content, timestamp and data check bit.
3. bluetooth BLE communication device according to claim 2, which is characterized in that further include connect with the CPU module,
Wifi interface circuit for being communicated with the host computer or Internet of Things cloud platform.
4. according to claim 1 to bluetooth BLE communication device described in 3 any one, which is characterized in that in the CPU module
Equipped with bluetooth BLE from list of devices, the bluetooth BLE is from bluetooth BLE is recorded in coverage area from the MAC of equipment in list of devices
The time that address, device numbering, current information and nearest data obtain.
5. bluetooth BLE communication device according to claim 1, which is characterized in that pass through the BLE communication module and CPU
Module carries out switching at runtime between listening mode and principal and subordinate's BLE communication pattern.
6. bluetooth BLE communication device according to claim 5, which is characterized in that when the bluetooth BLE communication device to certain
When a bluetooth BLE sends data from equipment, it is switched to the principal and subordinate BLE communication pattern, has communicated and has switched back into the listening mode.
7. bluetooth BLE communication device according to claim 6, which is characterized in that the number of the BLE communication module is 1
~3.
8. a kind of method for carrying out communication control using the bluetooth BLE communication device as described in claim 1 to 7 any one,
It is characterized in that, includes the following steps:
A) judge whether the bluetooth BLE communication device has data distributing to bluetooth BLE from equipment, if so, being switched to BLE principal and subordinate
Equipment mode executes step B);Otherwise, step E is executed);
B) the bluetooth BLE that the bluetooth BLE communication device sends BLE SCAN broadcast packet scanning periphery is found under needs from equipment
The bluetooth BLE of hair data from equipment and is established a connection;
C) the bluetooth BLE communication device carries out BLE communication from equipment with the bluetooth BLE found;
D) judge whether the BLE communication is completed, if so, return step A);Otherwise, return step C);
E) judge whether the bluetooth BLE communication device works in listening mode, if so, executing step F);Otherwise, it is switched to prison
Mode is listened, step F is executed);
F) judge whether other bluetooths BLE has data broadcasting to come out from equipment, if so, executing step G);Otherwise, return step
A);
G after) the BLE broadcast packet listened to is filtered, screens, classifies and is summarized, host computer or Internet of Things cloud platform are waited
Inquiry, return step A).
9. according to claim 8 led to using the bluetooth BLE communication device as described in claim 1 to 7 any one
Believe the method for control, which is characterized in that the step G) further comprise:
G1) to listen in the BLE broadcast packet do not meet setting format data filtering fall, reservation meet the setting format
Data;The BLE broadcast packet includes heart rate, amount of exercise, temperature, battery capacity and key value instantly;
G2 useful information) is filtered out according to data type;The useful information includes heart rate, amount of exercise and key value;
G3) according to data type and timestamp, data duplicate in the useful information is weeded out, final significant figure is obtained
According to, and the valid data are uploaded into the host computer or Internet of Things cloud platform.
10. according to claim 8 led to using the bluetooth BLE communication device as described in claim 1 to 7 any one
Believe control method, which is characterized in that the bluetooth BLE from equipment be bluetooth bracelet or the base station ibeacon bluetooth BLE.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610885404.2A CN106507273B (en) | 2016-10-09 | 2016-10-09 | Bluetooth BLE communication device and the method for carrying out communication control using the device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610885404.2A CN106507273B (en) | 2016-10-09 | 2016-10-09 | Bluetooth BLE communication device and the method for carrying out communication control using the device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106507273A CN106507273A (en) | 2017-03-15 |
CN106507273B true CN106507273B (en) | 2019-10-08 |
Family
ID=58293938
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610885404.2A Active CN106507273B (en) | 2016-10-09 | 2016-10-09 | Bluetooth BLE communication device and the method for carrying out communication control using the device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106507273B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106899927B (en) * | 2017-03-16 | 2019-09-13 | 北京神州视翰科技有限公司 | A kind of non-matching rapid data transmission method suitable for bluetooth low energy device |
CN107071717A (en) * | 2017-06-15 | 2017-08-18 | 重庆智石网络科技有限公司 | A kind of collecting method and device based on Bluetooth technology |
CN108513283A (en) * | 2018-03-13 | 2018-09-07 | 青岛海尔科技有限公司 | One kind matching network method, equipment, terminal, medium and computer equipment |
CN108601006A (en) * | 2018-04-28 | 2018-09-28 | 上海与德通讯技术有限公司 | Instruction transmission method based on blueteeth network and system |
CN110519731A (en) * | 2018-05-22 | 2019-11-29 | 袁功胜 | Data communications method and system, BLE Bluetooth gateway based on BLE bluetooth, BLE equipment |
CN108449746B (en) * | 2018-06-14 | 2021-06-01 | 歌尔科技有限公司 | BT connection establishing method, wireless earphone and TWS earphone |
CN109199354B (en) * | 2018-09-17 | 2021-06-25 | 山东思迈教育科技有限公司 | Heart rate data acquisition method and heart rate measuring equipment |
CN110418387A (en) * | 2019-07-23 | 2019-11-05 | 广东乐之康医疗技术有限公司 | A kind of wearable device data uploading method |
CN110958594B (en) * | 2019-12-18 | 2023-05-12 | 深圳市芯中芯科技有限公司 | Effectiveness filtering method for searching Bluetooth BLE equipment |
CN113453158B (en) * | 2020-03-25 | 2023-03-28 | 广州波通通信有限公司 | Connection and reverse broadcast confirmation method for carrying out rapid small-amount data transmission based on BLE |
WO2021223167A1 (en) * | 2020-05-07 | 2021-11-11 | 深圳市大疆创新科技有限公司 | Control method and device, mobile platform, and computer-readable storage medium |
CN111669714A (en) * | 2020-05-19 | 2020-09-15 | 刘全武 | Method and device for controlling other terminals based on multiple Bluetooth terminals |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1455523A (en) * | 2003-05-28 | 2003-11-12 | 王平 | Method and system of controlling network communication of automation based on blue-tooth technique |
CN2626139Y (en) * | 2003-05-28 | 2004-07-14 | 王平 | Onsite Blue-Tooth communication apparatus |
CN103813477A (en) * | 2012-11-08 | 2014-05-21 | 无锡津天阳激光电子有限公司 | Method and device of automobile Bluetooth Internet of Things |
CN203759648U (en) * | 2014-03-07 | 2014-08-06 | 李海啸 | Bluetooth converter of man-machine interface equipment |
CN105852854A (en) * | 2016-05-10 | 2016-08-17 | 华南理工大学 | Wearable multimode brain function detection device based on NIRS-EEG |
-
2016
- 2016-10-09 CN CN201610885404.2A patent/CN106507273B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1455523A (en) * | 2003-05-28 | 2003-11-12 | 王平 | Method and system of controlling network communication of automation based on blue-tooth technique |
CN2626139Y (en) * | 2003-05-28 | 2004-07-14 | 王平 | Onsite Blue-Tooth communication apparatus |
CN103813477A (en) * | 2012-11-08 | 2014-05-21 | 无锡津天阳激光电子有限公司 | Method and device of automobile Bluetooth Internet of Things |
CN203759648U (en) * | 2014-03-07 | 2014-08-06 | 李海啸 | Bluetooth converter of man-machine interface equipment |
CN105852854A (en) * | 2016-05-10 | 2016-08-17 | 华南理工大学 | Wearable multimode brain function detection device based on NIRS-EEG |
Also Published As
Publication number | Publication date |
---|---|
CN106507273A (en) | 2017-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106507273B (en) | Bluetooth BLE communication device and the method for carrying out communication control using the device | |
Piyare et al. | Ultra low power wake-up radios: A hardware and networking survey | |
Chen et al. | A survey of recent developments in home M2M networks | |
Suresh et al. | Powering the IoT through embedded machine learning and LoRa | |
CN101442459B (en) | Networking scheme with high expansibility for wireless sensor network | |
CN104205853B (en) | It is used for method, equipment and the computer program product of data distribution in wireless network | |
CN102715891B (en) | Wearable real-time wounded vital sign monitoring system based on radio frequency technology | |
CN102857992B (en) | ZigBee network based multi-gateway transmission system | |
CN203838871U (en) | System for nursing crowd moving in specified area | |
Zhang et al. | Enabling computational intelligence for green Internet of Things: Data-driven adaptation in LPWA networking | |
CN203057531U (en) | Multiple gateway transmission system based on ZigBee network | |
CN105516338B (en) | A kind of Intelligent hardware networking method, gateway and system for wearing | |
Touati et al. | A real-time ble enabled ecg system for remote monitoring | |
CN110419066A (en) | Sensor device and sensor network system | |
Chang et al. | A smart lighting system for greenhouses based on Narrowband-IoT communication | |
CN102340667A (en) | Distributed image transmission method oriented to wireless multimedia sensor network | |
CN103490509A (en) | Electric energy monitoring method and system for household appliances | |
CN202068585U (en) | Data acquisition and transmission system based on ZigBee protocol | |
CN1879551A (en) | A wireless medical monitoring method and device | |
CN104640159A (en) | Semi-static scheduling method | |
CN103813479A (en) | Method for constructing temporary communication network | |
CN106604410A (en) | Method for realizing wireless self-organizing network building based on collision detection and competitive mode | |
CN205490624U (en) | A intelligent hardware gateway and system for dress | |
CN103813287A (en) | Emergency communication network construction method | |
Manna et al. | Implementation of energy efficient WBAN using IEEE 802.15. 6 scheduled access MAC for e-healthcare |
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 | ||
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 |
|
GR01 | Patent grant | ||
GR01 | Patent grant |