CN110958162A - BLE cascade network, link detection method, equipment and terminal thereof - Google Patents
BLE cascade network, link detection method, equipment and terminal thereof Download PDFInfo
- Publication number
- CN110958162A CN110958162A CN201911241084.7A CN201911241084A CN110958162A CN 110958162 A CN110958162 A CN 110958162A CN 201911241084 A CN201911241084 A CN 201911241084A CN 110958162 A CN110958162 A CN 110958162A
- Authority
- CN
- China
- Prior art keywords
- ble
- link
- heartbeat
- detection method
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
- H04L43/106—Active monitoring, e.g. heartbeat, ping or trace-route using time related information in packets, e.g. by adding timestamps
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
-
- 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 BLE cascade network and a link detection method, equipment and a terminal thereof, and relates to the technical field of wireless data transmission. The link detection method comprises the following steps: the BLE equipment collects preset information and packages the preset information into a heartbeat packet; and the BLE equipment sends the heartbeat packet to the server according to a preset period. The BLE-level networking network simplifies the link structure to form relatively independent links, so that repeated transmission of messages among devices can be reduced, and message broadcasting is reduced; and when the heartbeat packet is sent to detect the link state, other information is carried in the heartbeat packet, so that the data transmission pressure of the link can be effectively reduced, and data congestion and network delay are avoided.
Description
Technical Field
The invention relates to the technical field of wireless data transmission, in particular to a BLE cascade network, a link detection method, link detection equipment and a link detection terminal thereof.
Background
In the current wireless communication BLE (bluetooth low energy) application, heartbeat detection is sent in a single packet, and other information statistics collection needs to pass through an additional message carrier. The communication device is far away from the service end, and when the BLE-Mesh network is used for various reasons (such as poor mobile network signal, low power consumption and low cost requirement), it may be necessary to send through a multi-hop BLE broadcast channel. When the heartbeat and the statistical message amount are huge, great pressure may be brought to the system, and BLE network congestion and packet loss phenomena are easily caused.
Disclosure of Invention
The invention aims to provide a BLE cascade network, a link detection method, equipment and a terminal thereof, wherein when link detection is carried out through a heartbeat packet, the heartbeat packet carries other information, and the transmission quantity of data packets in a link is reduced.
In order to achieve the purpose, the invention adopts the following technical scheme:
the invention provides a link detection method of a BLE cascade network, which comprises the following steps:
the BLE equipment collects preset information and packages the preset information into a heartbeat packet, wherein the preset information comprises data statistical information;
and the BLE equipment sends the heartbeat packet to the server according to a preset period.
Wherein the BLE device collects preset information, including:
and the BLE equipment carries out uplink data statistics and downlink data statistics to form data statistics information.
Wherein the BLE device collects preset information, including:
the BLE device collects link information of a link where the BLE device is located;
the link information includes a device ID of the BLE device and a parent node device ID.
Wherein encapsulating the preset message into a heartbeat packet comprises:
and the BLE equipment assembles the preset information into a message in a preset format and adds a timestamp to form a heartbeat packet.
Further, after the BLE device sends the heartbeat packet to the service end according to the preset period, the method further includes:
and the server judges whether the BLE equipment is connected overtime or not according to the timestamp of the heartbeat packet and the preset period, and if so, indicates the BLE equipment to be restarted.
Wherein, the server judges whether the BLE equipment is connected overtime according to the timestamp of the heartbeat packet and the preset period, and the method comprises the following steps:
the server side calculates the heartbeat duration according to the received time stamps of the two adjacent heartbeat packets;
and if the continuous heartbeat durations exceed the preset period, determining that the BLE equipment is connected overtime.
The invention also provides a BLE cascade network, which comprises a plurality of independent links, wherein each link comprises a plurality of BLE devices connected step by step, and the first-stage device and the service end establish link connection in a wireless communication mode;
and the BLE equipment sends the collected preset information to a server side in the form of heartbeat packets according to the link according to a preset period.
Further, the BLE cascade network further includes a heartbeat statistic timer, and is configured to trigger the BLE device to send a heartbeat packet when the timing is timed out.
Furthermore, the present invention also provides a BLE device, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the link detection method as described above.
Moreover, the present invention also provides a service terminal, including:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the link detection method as described above.
The invention has the beneficial effects that:
the BLE-level networking network simplifies the link structure to form relatively independent links, so that repeated transmission of messages among devices can be reduced, and message broadcasting is reduced; and when the heartbeat packet is sent to detect the link state, other information is carried in the heartbeat packet, so that the data transmission pressure of the link can be effectively reduced, and data congestion and network delay are avoided.
Drawings
Figure 1 is a schematic structural diagram of a BLE cascaded network according to an embodiment of the present invention;
fig. 2 is a flowchart of a link detection method for a BLE tandem network according to a second embodiment of the present invention.
Detailed Description
In order to make the technical problems solved, technical solutions adopted and technical effects achieved by the present invention clearer, the technical solutions of the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments.
Example one
In this embodiment, as shown in fig. 1, a topology of the cascade network includes a plurality of independent links, each link includes a plurality of BLE devices connected stage by stage, where a first-stage device and a service end establish link connection through a wireless communication manner; the message sent by the server is transmitted to the next level device of the link step by step through the first level device to the destination device.
In this embodiment, the service end may be an intelligent terminal, an intelligent device central controller, or the like, and may issue a command or configuration to any BLE device in the networking.
The BLE equipment sends heartbeat packets to the server at fixed time, and the server judges the connection state of the BLE equipment through the received heartbeat packets; and meanwhile, the BLE equipment sends the collected preset information to the server side in the form of heartbeat packets according to the link according to a preset period.
Further, the BLE cascade network further includes a heartbeat statistic timer, configured to define the preset period; triggering the BLE equipment to send a heartbeat packet when the timing of the heartbeat counting timer is overtime; and after the heartbeat packet is sent, timing again by the heartbeat counting timer.
In different embodiments, the heartbeat statistic timer may be integrated in the BLE device, may be separately disposed on each link, or may be disposed in other feasible manners.
The BLE cascade network of this embodiment is different from the Mesh topology structure of BLE Mesh network among the prior art, simplifies the link structure, forms relatively independent link, and the repeated transmission of reducible message between equipment also need not to arrange bluetooth router in the network, and is with low costs, removes the loaded down with trivial details of configuration gateway from, and node equipment increases and decreases in a flexible way in the network, convenient management.
Example two
The present embodiment provides a link detection method for a BLE cascade network, which is suitable for the BLE cascade network and can reduce data packet transmission pressure in the network.
As shown in fig. 2, the link detection method includes the following steps:
and S11, the BLE equipment collects preset information and encapsulates the preset information into a heartbeat packet.
The BLE communication connection is established between the BLE devices to form a link, the BLE devices are registered to access the network, and the service end is connected with the first-level BLE devices in the link in a wireless communication mode.
In this embodiment, the preset message includes link information. The BLE device collects link information of a link where the BLE device is located, wherein the link information comprises a device ID and a parent node device ID of the BLE device, and the link information also comprises a role ID and a parent node role ID of the BLE device. In one link, adjacent BLE equipment is in a parent-child node relationship, and through link information collection, a server side can conveniently and clearly master the topological structure of the network.
In other embodiments, the preset message may further include data statistics information, and specifically, the BLE device performs uplink data statistics and downlink data statistics to form the data statistics information. And each BLE device counts the data flow of the BLE device, so that the real-time flow monitoring is realized conveniently.
And the BLE equipment assembles the preset information into a message in a preset format and adds a timestamp to form a heartbeat packet. Generally, a heartbeat packet is composed of a timestamp, link information and data statistical information, and a message format is designed according to protocol requirements.
And S12, the BLE equipment sends the heartbeat packet to the server according to a preset period.
The heartbeat counting timer carries out timing, when the timing is overtime, a heartbeat packet sending process is entered, and BLE equipment is triggered to upwards transmit the encapsulated heartbeat packets to a server side step by step according to a link; and restarting timing by the heartbeat counting timer, and entering the next period.
And S13, the server judges whether the BLE equipment is connected overtime according to the timestamp of the heartbeat packet and the preset period, and if so, the BLE equipment is indicated to be restarted.
And the server judges whether the BLE equipment is connected overtime or not according to the timestamp of the heartbeat packet and the preset period, and if so, indicates the BLE equipment to be restarted.
Specifically, the server calculates the heartbeat duration according to the received timestamps of two adjacent heartbeat packets; and if the continuous heartbeat durations exceed the preset period, determining that the BLE equipment is connected overtime. At this time, the service end may restart the BLE device through other standby channels.
In this embodiment, the BLE device collects link information, grasps a network topology relationship, and combines the link information into a heartbeat packet to transmit; similarly, the BLE equipment counts the data traffic of the BLE equipment and combines data statistical information into the heartbeat packet, so that the heartbeat packet simultaneously realizes multiple functions of link detection, link information collection and real-time traffic monitoring, the number of the data packets transmitted in the link is reduced, the network pressure is relieved, and data congestion and network delay are avoided.
EXAMPLE III
This embodiment provides a BLE device, configured to construct the BLE cascaded network of the first embodiment, including:
one or more processors; storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the link detection method as described in the above embodiment two steps S11-S12.
Meanwhile, this embodiment further provides a service terminal, where link connection is established with the BLE device in the BLE cascade network in the first embodiment, where the link connection includes:
one or more processors; storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the link detection method as described in step S13 above.
The technical principle of the present invention is described above in connection with specific embodiments. The description is made for the purpose of illustrating the principles of the invention and should not be construed in any way as limiting the scope of the invention. Based on the explanations herein, those skilled in the art will be able to conceive of other embodiments of the present invention without inventive effort, which would fall within the scope of the present invention.
Claims (10)
1. A link detection method of a BLE cascade network is characterized by comprising the following steps:
the BLE equipment collects preset information and packages the preset information into a heartbeat packet, wherein the preset information comprises data statistical information;
and the BLE equipment sends the heartbeat packet to the server according to a preset period.
2. The link detection method according to claim 1, wherein the BLE device collects preset information, including:
and the BLE equipment carries out uplink data statistics and downlink data statistics to form data statistics information.
3. The link detection method according to claim 1 or 2, wherein the BLE device collects preset information, including:
the BLE device collects link information of a link where the BLE device is located;
the link information includes a device ID of the BLE device and a parent node device ID.
4. The link detection method according to claim 1, wherein encapsulating the preset message into a heartbeat packet comprises:
and the BLE equipment assembles the preset information into a message in a preset format and adds a timestamp to form a heartbeat packet.
5. The link detection method according to claim 4, wherein after the BLE device sends the heartbeat packet to the serving end according to a preset period, the method further comprises:
and the server judges whether the BLE equipment is connected overtime or not according to the timestamp of the heartbeat packet and the preset period, and if so, indicates the BLE equipment to be restarted.
6. The link detection method according to claim 1 or 5, wherein the step of judging, by the server, whether the BLE device is connected for a timeout according to the timestamp of the heartbeat packet and the preset period includes:
the server side calculates the heartbeat duration according to the received time stamps of the two adjacent heartbeat packets;
and if the continuous heartbeat durations exceed the preset period, determining that the BLE equipment is connected overtime.
7. A BLE cascade network is characterized by comprising a plurality of independent links, wherein each link comprises a plurality of BLE devices connected step by step, and the first-stage device and a service end establish link connection in a wireless communication mode;
and the BLE equipment sends the collected preset information to a server side in the form of heartbeat packets according to the link according to a preset period.
8. The BLE cascade network of claim 7, further comprising a heartbeat statistics timer for triggering the BLE device to send heartbeat packets when a timing expires.
9. A BLE device, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the link detection method of any one of claims 1-4.
10. A service terminal, characterized in that the service terminal comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the link detection method of any one of claims 5-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911241084.7A CN110958162A (en) | 2019-12-06 | 2019-12-06 | BLE cascade network, link detection method, equipment and terminal thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911241084.7A CN110958162A (en) | 2019-12-06 | 2019-12-06 | BLE cascade network, link detection method, equipment and terminal thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110958162A true CN110958162A (en) | 2020-04-03 |
Family
ID=69980159
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911241084.7A Pending CN110958162A (en) | 2019-12-06 | 2019-12-06 | BLE cascade network, link detection method, equipment and terminal thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110958162A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113630168A (en) * | 2021-09-17 | 2021-11-09 | 广东博智林机器人有限公司 | Test method and system of wireless test equipment and wireless test equipment |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102036349A (en) * | 2009-09-29 | 2011-04-27 | 联想(北京)有限公司 | Method for maintaining connection of terminal and network server, terminal and network server |
CN104348522A (en) * | 2013-07-23 | 2015-02-11 | 普天信息技术研究院有限公司 | Method suitable for heartbeat keeping of low-power consumption Bluetooth device |
CN107231661A (en) * | 2016-03-24 | 2017-10-03 | 中国移动通信集团山东有限公司 | The method and micro-base station of a kind of flow equalization |
CN107800585A (en) * | 2016-09-07 | 2018-03-13 | 腾讯科技(深圳)有限公司 | The method and apparatus of network service, the method and apparatus of PUSH message |
CN107995024A (en) * | 2017-10-30 | 2018-05-04 | 北京奇虎科技有限公司 | A kind of device management method, device, server and storage medium |
US20180150291A1 (en) * | 2016-11-25 | 2018-05-31 | Shenzhen GOODIX Technology Co., Ltd. | Bluetooth low energy device, and data update system and method |
CN108809676A (en) * | 2017-05-02 | 2018-11-13 | 北京米文动力科技有限公司 | A kind of fault detection method and robot |
CN109005528A (en) * | 2018-07-06 | 2018-12-14 | 杭州涂鸦信息技术有限公司 | A kind of bluetooth mesh gateway data polymerization report method |
CN109274749A (en) * | 2018-09-30 | 2019-01-25 | 新华三技术有限公司 | A kind of User Status detection method, apparatus and system |
CN109981776A (en) * | 2019-03-26 | 2019-07-05 | 佛山市顺德区美的洗涤电器制造有限公司 | Intelligent control equipment, the networking control method of household appliance and system |
-
2019
- 2019-12-06 CN CN201911241084.7A patent/CN110958162A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102036349A (en) * | 2009-09-29 | 2011-04-27 | 联想(北京)有限公司 | Method for maintaining connection of terminal and network server, terminal and network server |
CN104348522A (en) * | 2013-07-23 | 2015-02-11 | 普天信息技术研究院有限公司 | Method suitable for heartbeat keeping of low-power consumption Bluetooth device |
CN107231661A (en) * | 2016-03-24 | 2017-10-03 | 中国移动通信集团山东有限公司 | The method and micro-base station of a kind of flow equalization |
CN107800585A (en) * | 2016-09-07 | 2018-03-13 | 腾讯科技(深圳)有限公司 | The method and apparatus of network service, the method and apparatus of PUSH message |
US20180150291A1 (en) * | 2016-11-25 | 2018-05-31 | Shenzhen GOODIX Technology Co., Ltd. | Bluetooth low energy device, and data update system and method |
CN108809676A (en) * | 2017-05-02 | 2018-11-13 | 北京米文动力科技有限公司 | A kind of fault detection method and robot |
CN107995024A (en) * | 2017-10-30 | 2018-05-04 | 北京奇虎科技有限公司 | A kind of device management method, device, server and storage medium |
CN109005528A (en) * | 2018-07-06 | 2018-12-14 | 杭州涂鸦信息技术有限公司 | A kind of bluetooth mesh gateway data polymerization report method |
CN109274749A (en) * | 2018-09-30 | 2019-01-25 | 新华三技术有限公司 | A kind of User Status detection method, apparatus and system |
CN109981776A (en) * | 2019-03-26 | 2019-07-05 | 佛山市顺德区美的洗涤电器制造有限公司 | Intelligent control equipment, the networking control method of household appliance and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113630168A (en) * | 2021-09-17 | 2021-11-09 | 广东博智林机器人有限公司 | Test method and system of wireless test equipment and wireless test equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110572481B (en) | Intelligent electromechanical equipment data interaction method based on LoRa communication | |
EP3026964B1 (en) | Method for configuring parameters, base station and user equipment | |
KR101617888B1 (en) | Method and apparatus of paging for high power saving reception mode m2m/mtc device communication in a mobile communication system | |
JP6084979B2 (en) | Communication terminal, method and program | |
CN103262597A (en) | Enhancement for scheduling request triggering based on traffic condition | |
CN103380653A (en) | Methods of UE providing speed information to network | |
KR20070046647A (en) | Method of transmitting and receiving control information in wireless mobile communications system | |
CN101682885A (en) | A method and a device for saving power in a wireless user terminal | |
CN104811919B (en) | A kind of network parameter acquisition methods, device and equipment | |
KR20220140709A (en) | Method and device for sidelink communication | |
CN103430602B (en) | The method that flow relevant information is supplied to network by subscriber equipment | |
KR20090099511A (en) | Method of transitioning reception level to monitor scheduling channel in wireless communication system | |
CN109842919A (en) | A kind of communication of terminal and base station, terminal method of network entry and device | |
CN104349363A (en) | Method, equipment and system for determining auxiliary parameters of connecting state | |
CN102857971A (en) | Method for data transmission, diverging point device, user terminal and system thereof | |
EP2749099B1 (en) | Method in a base station, a base station, computer programs and computer readable means | |
CN105120529A (en) | Long-term evolutional cellular network based D2D (Device to Device) communication establishing device and method | |
CN113784392A (en) | Communication method, device and system | |
CN110958162A (en) | BLE cascade network, link detection method, equipment and terminal thereof | |
CN103997793A (en) | Short wave network data access method based on service statistical property in data communication | |
CN101772194B (en) | General packet radio service tunnel user plane path keep-alive method and system | |
CN103167028A (en) | User convergence method capable of saving transmission bandwidth and increasing concurrency | |
CN102711254B (en) | Resource release control method of network side and radio network controller (RNC) | |
CN107484255A (en) | Preferred channels number determines method in a kind of multichannel CSMA agreements based on frequency packet | |
CN114245317B (en) | Data processing method, device and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200403 |
|
RJ01 | Rejection of invention patent application after publication |