CN111479227A - B L E Mesh node state synchronization method - Google Patents
B L E Mesh node state synchronization method Download PDFInfo
- Publication number
- CN111479227A CN111479227A CN202010403168.2A CN202010403168A CN111479227A CN 111479227 A CN111479227 A CN 111479227A CN 202010403168 A CN202010403168 A CN 202010403168A CN 111479227 A CN111479227 A CN 111479227A
- Authority
- CN
- China
- Prior art keywords
- node
- state
- network
- state information
- access port
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
- H04W56/001—Synchronization between nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention relates to a B L E Mesh node state synchronization method which comprises the steps of S1, allocating different short addresses for nodes by a distribution network user, S2, initiating broadcast information for reading state information of each node in a network by an access port at a rated time interval, S3, reporting the state information corresponding to the node to the access port within a rated reporting time period after the node receives the broadcast information, S4, judging whether the state information of all the nodes is received by the access port, if so, entering S6, and if not, waiting for the rated time interval T by the distribution network usernThen, recording the short address of the node corresponding to the unreceived state information and the synchronization failure times of the node, and entering S5; s5: judging whether the synchronization failure times of the node are larger than a time threshold value, if so, setting the state of the node as an offline state, and entering S6; otherwise, returning to S2; s6: the access port updates the state information of all nodes. The invention can quickly synchronize the state information of all nodes in the network and has high real-time performance.
Description
Technical Field
The invention relates to the field of intelligent home furnishing, in particular to a B L E Mesh node state synchronization method.
Background
At present, more and more intelligent lamp control entries based on the B L E MESH are provided, such as mobile phone APP control, Alexa voice control, sensor control and the like, so that the problem of unsynchronized lamp states among different devices is more and more prominent, for example, when a lamp is changed from a light-off state to a light-on state, a cloud terminal needs a certain time to synchronize information of different devices or the synchronization fails.
In order to solve the above problems, there are two conventional methods (1) in the B L E Mesh network, a special device (e.g., a gateway) periodically and alternately reads the state information of each node, and the method has low synchronization efficiency and takes a long time, (2) when the node state sends a change, the node actively reports the state information to the cloud.
Disclosure of Invention
In order to solve the above problems, the present invention provides a method for synchronizing the states of B L E Mesh nodes, the specific scheme is as follows:
a method for synchronizing the state of a B L E Mesh node comprises the following steps:
s1, when the distributor distributes the network to the B L E MESH device, the distributor distributes a different short address to the node corresponding to each device in the network according to the UUID of each device in the network;
s2: the access port starts to read the broadcast information of the state information of each node in the network at a rated time interval;
s3: after receiving the broadcast information, the node reports the state information corresponding to the node to the access port within a rated reporting time period;
s4: the access port judges whether the state information of all the nodes is received, if so, the access port enters S6; otherwise, the distribution network person waits for the rated time interval TnThen, recording the short address of the node corresponding to the unreceived state information and the synchronization failure times of the node, and entering S5;
s5: judging whether the synchronization failure times of the node are larger than a time threshold value, if so, setting the state of the node as an offline state, and entering S6; otherwise, returning to S2;
s6: and the access port updates the state information of all the nodes into the storage addresses of all the access ports corresponding to the network.
Further, a nominal time interval TnThe calculation formula of (2) is as follows: t isn=n0T, wherein n0For the total number of nodes contained in the network, T is the time required for each node to reply to the broadcast message.
Further, the nominal reporting time period t of the Nth nodenSatisfies the following conditions:
(N-1)*T<tn<N*T
where T is the time required for each node to reply to the broadcast message.
By adopting the technical scheme, the state information of all the nodes in the network can be quickly synchronized, the accuracy is high, the method is not limited by the number of the network nodes, and the real-time performance is high.
Drawings
FIG. 1 is a flow chart of an embodiment of the present invention.
Detailed Description
The invention is further illustrated by the accompanying drawings. The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the embodiments. Those skilled in the art will appreciate still other possible embodiments and advantages of the present invention with reference to these figures.
The invention will now be further described with reference to the accompanying drawings and detailed description.
The embodiment of the invention provides a B L E Mesh node state synchronization method, as shown in figure 1, the method comprises the following steps:
and S1, when the network distributor distributes the network to the B L E MESH equipment, the network distributor distributes a different short address to the node corresponding to each equipment in the network according to the UUID (Universal unique identifier) of the equipment.
The network distributor is one of the access ports of the B L E MESH equipment, the B L E MESH equipment in the embodiment is a lamp, the access ports of the equipment comprise a mobile phone APP control port, an Alexa voice control port and a local gateway control port, and the network distributor is the mobile phone APP control port.
S2: the access ports are arranged at a nominal time interval TnAnd initiating to read the broadcast information of the state information of the B L E MESH device.
In this embodiment, T is setn=n0T; wherein n is0For the total number of nodes contained in the network, T is the time required for each node to reply to the broadcast message.
S3: after receiving the broadcast information, the node reports the state information corresponding to the node to the access port within a rated reporting time period.
In this embodiment, a nominal reporting time period t of the nth node is setnComprises the following steps:
(N-1)*T<tn<N*T
s4: the access port judges whether the state information of all the nodes is received, if so, the access port enters S6; otherwise, the distribution network person waits for the rated time interval TnThen, the short address of the node corresponding to the status information that has not been received and the number of times of synchronization failures of the node are recorded, and the process proceeds to S5.
Waiting for a nominal time interval TnIn order to ensure that all nodes report.
S5: judging whether the synchronization failure times of the node are larger than a time threshold value, if so, setting the state of the node as an offline state, and entering S6; otherwise, return to S2.
The number threshold can be set by the skilled person empirically, in this example set to 3.
S6: and the access port updates the state information of all the nodes into the storage addresses of all the access ports corresponding to the network.
The B L E Mesh node state synchronization method provided by the embodiment of the invention can quickly synchronize the state information of all nodes in the network, has high accuracy, is not limited by the number of network nodes, and has high instantaneity.
While the invention has been particularly shown and described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (3)
1. A method for synchronizing the state of a B L E Mesh node is characterized by comprising the following steps:
s1, when the distributor distributes the network to the B L E MESH device, the distributor distributes a different short address to the node corresponding to each device in the network according to the UUID of each device in the network;
s2: the access port starts to read the broadcast information of the state information of each node in the network at a rated time interval;
s3: after receiving the broadcast information, the node reports the state information corresponding to the node to the access port within a rated reporting time period;
s4: the access port judges whether the state information of all the nodes is received, if so, the access port enters S6; otherwise, the distribution network person waits for the rated time interval TnThen, recording the short address of the node corresponding to the unreceived state information and the synchronization failure times of the node, and entering S5;
s5: judging whether the synchronization failure times of the node are larger than a time threshold value, if so, setting the state of the node as an offline state, and entering S6; otherwise, returning to S2;
s6: and the access port updates the state information of all the nodes into the storage addresses of all the access ports corresponding to the network.
2. The B L E Mesh node state synchronization method of claim 1, wherein the nominal time interval T isnThe calculation formula of (2) is as follows: t isn=n0T, wherein n0For the total number of nodes contained in the network, T is the time required for each node to reply to the broadcast message.
3. The B L E Mesh node state synchronization method of claim 1, wherein the N-th node's nominal reporting time period tnSatisfies the following conditions:
(N-1)*T<tn<N*T
where T is the time required for each node to reply to the broadcast message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010403168.2A CN111479227B (en) | 2020-05-13 | 2020-05-13 | BLE Mesh node state synchronization method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010403168.2A CN111479227B (en) | 2020-05-13 | 2020-05-13 | BLE Mesh node state synchronization method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111479227A true CN111479227A (en) | 2020-07-31 |
CN111479227B CN111479227B (en) | 2022-02-01 |
Family
ID=71757367
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010403168.2A Active CN111479227B (en) | 2020-05-13 | 2020-05-13 | BLE Mesh node state synchronization method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111479227B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103052032A (en) * | 2012-12-25 | 2013-04-17 | 上海桑锐电子科技有限公司 | Methods for networking and data communicating of broadcast wireless network |
CN106375979A (en) * | 2016-05-30 | 2017-02-01 | 深圳市美贝壳科技有限公司 | Method for finding states of intelligent devices in LAN rapidly |
US20170163477A1 (en) * | 2015-12-03 | 2017-06-08 | Telink Semiconductor (Shanghai) Co., Ltd. | Nodes of Wireless Network and Status Updating Method Thereof |
CN107205210A (en) * | 2017-05-18 | 2017-09-26 | 欧普照明股份有限公司 | Collocation method, device, system and the computer program of wireless network node |
CN108173966A (en) * | 2018-01-23 | 2018-06-15 | 南京邮电大学 | BLEMesh automatic network-building methods based on user collaboration |
CN109168150A (en) * | 2018-08-24 | 2019-01-08 | 欧普照明股份有限公司 | A kind of bluetooth rapid networking method |
CN110324790A (en) * | 2019-07-03 | 2019-10-11 | 浙江大华技术股份有限公司 | A kind of method for connecting network, node device, network system and storage medium |
CN111147352A (en) * | 2019-12-23 | 2020-05-12 | 杭州米络星科技(集团)有限公司 | Distributed data synchronization method |
-
2020
- 2020-05-13 CN CN202010403168.2A patent/CN111479227B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103052032A (en) * | 2012-12-25 | 2013-04-17 | 上海桑锐电子科技有限公司 | Methods for networking and data communicating of broadcast wireless network |
US20170163477A1 (en) * | 2015-12-03 | 2017-06-08 | Telink Semiconductor (Shanghai) Co., Ltd. | Nodes of Wireless Network and Status Updating Method Thereof |
CN106375979A (en) * | 2016-05-30 | 2017-02-01 | 深圳市美贝壳科技有限公司 | Method for finding states of intelligent devices in LAN rapidly |
CN107205210A (en) * | 2017-05-18 | 2017-09-26 | 欧普照明股份有限公司 | Collocation method, device, system and the computer program of wireless network node |
CN108173966A (en) * | 2018-01-23 | 2018-06-15 | 南京邮电大学 | BLEMesh automatic network-building methods based on user collaboration |
CN109168150A (en) * | 2018-08-24 | 2019-01-08 | 欧普照明股份有限公司 | A kind of bluetooth rapid networking method |
CN110324790A (en) * | 2019-07-03 | 2019-10-11 | 浙江大华技术股份有限公司 | A kind of method for connecting network, node device, network system and storage medium |
CN111147352A (en) * | 2019-12-23 | 2020-05-12 | 杭州米络星科技(集团)有限公司 | Distributed data synchronization method |
Also Published As
Publication number | Publication date |
---|---|
CN111479227B (en) | 2022-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101820435B (en) | Synchronization method and device for MAC (Media Access Control) address table information of distributed network processing system | |
CN100450053C (en) | Apparatus and method for detecting duplicate IP addresses in mobile ad hoc network environment | |
CN111279766B (en) | Reducing power consumption of all types of terminal devices | |
US10624057B2 (en) | Telecommunications apparatus and methods | |
RU2469475C2 (en) | Method of generating random access reply message group identifier and random access method | |
US20120220325A1 (en) | Method for random access of machine to machine (m2m) terminals | |
US20100267390A1 (en) | Fault-tolerant, multi-network detour router system for text messages, data, and voice | |
CN106453657A (en) | Status information update method and device of smart home equipment | |
WO2014170631A1 (en) | Telecommunications apparatus and methods | |
CN107404509B (en) | Distributed service configuration system and information management method | |
CN104679796A (en) | Selecting method, selecting device and database mirror image cluster node | |
CN105554142A (en) | Method, apparatus and system for pushing messages | |
CN101488977B (en) | Multi-point processor resource scheduling method and multi-point control unit | |
CN106416328B (en) | Method, node and device for controlling sending of beacon frame | |
CN111935314A (en) | Block chain system, message transmission method and device | |
CN110460535B (en) | Concurrent data transmission method between sensing devices of Internet of things | |
KR100273979B1 (en) | System and methods for optimizing communicationl | |
CN111479227A (en) | B L E Mesh node state synchronization method | |
CN111131054A (en) | Method for realizing intermittent connection of routers by a large number of terminals and router | |
CN105141687A (en) | Message producing method | |
CN108599984B (en) | Method for sharing port state, access equipment and system for supporting dual-homing protection | |
JP2008011041A (en) | System information setting method and apparatus | |
CN100589628C (en) | Method of maintaining node state | |
CN109450517B (en) | RDSS communication transmission control method and system | |
CN101854718A (en) | Paging method, device and base station of cluster communication |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210323 Address after: No.88 HouXiang Road, Haicang District, Xiamen City, Fujian Province Applicant after: XIAMEN YANKON ENERGETIC LIGHTING Co.,Ltd. Address before: 8-9 / F, scientific research building, 88 HouXiang Road, Haicang District, Xiamen City, Fujian Province, 361000 Applicant before: Xiamen sunshine IOT Technology Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |