CN112866963A - Concentrator and node using method and device - Google Patents

Concentrator and node using method and device Download PDF

Info

Publication number
CN112866963A
CN112866963A CN202011633967.5A CN202011633967A CN112866963A CN 112866963 A CN112866963 A CN 112866963A CN 202011633967 A CN202011633967 A CN 202011633967A CN 112866963 A CN112866963 A CN 112866963A
Authority
CN
China
Prior art keywords
deviation value
time deviation
time
node
offset value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011633967.5A
Other languages
Chinese (zh)
Other versions
CN112866963B (en
Inventor
吴翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
RDA Microelectronics Shanghai Co Ltd
Original Assignee
RDA Microelectronics Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by RDA Microelectronics Shanghai Co Ltd filed Critical RDA Microelectronics Shanghai Co Ltd
Priority to CN202011633967.5A priority Critical patent/CN112866963B/en
Publication of CN112866963A publication Critical patent/CN112866963A/en
Application granted granted Critical
Publication of CN112866963B publication Critical patent/CN112866963B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

In the technical scheme of the method and the device for using the concentrator and the node provided by the embodiment of the invention, acquiring a distributed network equipment list, acquiring a mesh address and a communication channel corresponding to each distributed network node, calculating a first time deviation value according to the obtained number of the paired nodes, playing a time deviation value broadcast according to a preset period, wherein the time deviation value broadcast carries the corresponding first time deviation value, so that the node determines whether the first time offset value is equal to the second time offset value according to whether the first time offset value is equal to the second time offset value, replacing a second time offset value with the first time offset value and storing the first time offset value to the non-volatile memory, by determining the communication channel of each node and setting the time offset value, channel collision can be avoided.

Description

Concentrator and node using method and device
[ technical field ] A method for producing a semiconductor device
The invention relates to the field of Mesh network technology application, in particular to a method and a device for using a concentrator and a node.
[ background of the invention ]
At present, 40 wireless frequency channels are used for low-power-consumption Bluetooth (BLE) communication and logically divided into 0-39 channels, wherein 37, 38 and 39 are broadcast channels, all devices can receive data on the 3 channels, the 0-36 channels are provided for two connected devices for communication, and through a frequency hopping algorithm, when the two connected devices are kept to communicate each time, a certain channel can be dynamically selected from the 0-36 channels for data receiving and sending, so that interference can be effectively avoided.
Mesh is a bluetooth networking protocol designed based on BLE transmission channel, its transmission layer uses BLE broadcast channel, i.e. data is transmitted on 37, 38, 39 channels, because the number of networking nodes can be as high as 32767, when the number of nodes in the network exceeds a certain number, the problem that normal communication can not be performed any more is caused. While the conflicting data basically comes from the forwarded mesh packet, because the mesh needs to extend the network range by means of the forwarding function of the nodes, when there are many forwarding nodes, channel conflict is unavoidable.
In the related art, the scheme for avoiding the conflict is mainly to arrange forwarding nodes manually or set a certain node as a forwarding node through an algorithm, the manual mode is complicated, a user does not know how to operate, if the algorithm is realized, the node distance is roughly calculated based on an RSSI value, but the RSSI value can only be used as a reference, the actual error ratio is large, and the algorithm has no direction data, so that a plurality of nodes with similar distances in the same direction are likely to be set as the forwarding nodes, and the problem of network congestion is also caused.
[ summary of the invention ]
In view of the above, the present invention provides a method and an apparatus for using a concentrator and nodes, which can avoid channel collision by determining a communication channel of each node and setting a time offset value.
On one hand, the embodiment of the invention provides a using method of a concentrator, which is applied to the concentrator;
the method comprises the following steps:
acquiring a distributed network equipment list, wherein the distributed network equipment list comprises a plurality of distributed network nodes;
acquiring a mesh address and a communication channel corresponding to each configured network node;
calculating a first time offset value according to the number of the obtained paired nodes;
and playing a time deviation value broadcast according to a preset period, wherein the time deviation value broadcast carries a corresponding first time deviation value, so that the node replaces the second time deviation value with the first time deviation value according to whether the first time deviation value is equal to the acquired second time deviation value or not, and stores the first time deviation value to the nonvolatile memory.
Optionally, the obtaining a mesh address and a communication channel corresponding to each configured network node includes:
and determining the mesh address and the communication channel of each node according to the number of the pre-divided channels and the network access sequence of the nodes.
Optionally, the number of pre-divided channels includes 37.
Optionally, the calculating a first time offset value according to the obtained number of paired nodes includes:
taking nodes on a plurality of communication channels as a group of paired nodes to determine the number of the paired nodes;
and determining and calculating a first time offset value according to the number of the paired nodes.
Optionally, the determining and calculating a first time offset value according to the number of the paired nodes includes:
by the formula one: and calculating a first time offset value, wherein a is the first time offset value, (b) is the number of paired nodes, and 5 is a unit defining a time window of 5 milliseconds.
Optionally, after determining and calculating the first time offset value according to the obtained number of paired nodes, the method further includes:
calculating a time point of data transmission of the node according to the mesh address and the first time deviation value;
and determining the time point of the subsequent sending data based on the time point and the first time deviation value.
Optionally, the calculating a time point when the node sends data according to the mesh address and the first time offset value includes:
by the formula two: and c is (d-1)/37 a, and the time point of the data transmission of the node is calculated, wherein a is indicated as a first time offset value, c is indicated as the time point of the data transmission of the node, d is indicated as a mesh address, and 37 is indicated as the number of channels.
In another aspect, an embodiment of the present invention provides a method for using a node, including:
receiving a time offset value broadcast sent by a concentrator, wherein the time offset value broadcast carries a corresponding first time offset value;
judging whether the first time deviation value is equal to the obtained second time deviation value or not;
and if the first time deviation value and the second time deviation value are judged to be not equal, replacing the second time deviation value with the first time deviation value, and storing the first time deviation value to the nonvolatile memory.
In another aspect, an embodiment of the present invention provides an apparatus for using a concentrator, including:
the device comprises an acquisition module, a distribution network processing module and a distribution network processing module, wherein the acquisition module is used for acquiring a distribution network device list which comprises a plurality of distribution network nodes; acquiring a mesh address and a communication channel corresponding to each configured network node;
the determining module is used for calculating a first time offset value according to the obtained paired node number;
and the playing module is used for playing a time deviation value broadcast according to a preset period, wherein the time deviation value broadcast carries a corresponding first time deviation value, so that the node replaces the second time deviation value with the first time deviation value if judging that the first time deviation value is not equal to the second time deviation value according to whether the first time deviation value is equal to the acquired second time deviation value or not, and stores the first time deviation value to the nonvolatile memory.
In another aspect, an embodiment of the present invention provides an apparatus for using a node, including:
the device comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a time deviation value broadcast sent by a concentrator, and the time deviation value broadcast carries a corresponding first time deviation value;
the judging module is used for judging whether the first time deviation value is equal to the acquired second time deviation value or not;
and the processing module is used for replacing the second time deviation value with the first time deviation value and storing the first time deviation value to the nonvolatile memory if the first time deviation value is judged to be not equal to the second time deviation value.
On the other hand, the embodiment of the present invention provides a storage medium, where the storage medium includes a stored program, and when the program runs, a device in which the storage medium is located is controlled to execute the method for using the concentrator.
On the other hand, the embodiment of the present invention provides a storage medium, where the storage medium includes a stored program, and when the program runs, a device in which the storage medium is located is controlled to execute the above-mentioned method for using a node.
In another aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, where the memory is used to store information including program instructions, and the processor is used to control execution of the program instructions, and the program instructions are loaded by the processor and execute the steps of the concentrator using method.
In another aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, where the memory is used to store information including program instructions, and the processor is used to control execution of the program instructions, and the program instructions are loaded by the processor and execute the steps of the above-mentioned node using method.
In the technical scheme provided by the embodiment of the invention, a distributed network equipment list is obtained, a mesh address and a communication channel corresponding to each distributed network node are obtained, a first time deviation value is calculated according to the number of the obtained distributed nodes, a time deviation value broadcast is played according to a preset period, the time deviation value broadcast carries the corresponding first time deviation value, so that the nodes are enabled to be equal to an obtained second time deviation value according to the first time deviation value, if the first time deviation value is judged to be not equal to the second time deviation value, the second time deviation value is replaced by the first time deviation value, the first time deviation value is stored in a nonvolatile memory, and channel conflict can be avoided by determining the communication channel of each node and setting the time deviation value.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is an architecture diagram of a system for using a concentrator according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for using a concentrator according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method for using a node according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an apparatus for using a concentrator according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a computer device according to an embodiment of the present invention.
[ detailed description ] embodiments
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of associative relationship that describes an associated object, meaning that three types of relationships may exist, e.g., A and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Before the technical scheme of the invention is explained in detail, the technology related to the invention is briefly introduced:
(1)Mesh
mesh Network (Mesh for short) is a kind of networking topology structure. In the Mesh network, data can be sent to the whole network from any node, and when a certain node in the network breaks down, the whole network still can keep normal communication, and the Mesh network has the advantages of convenience in networking, high anti-interference capability and the like.
(2)Ble mesh
The Ble mesh standard, which is released in 2017 in 7 months, is a new standard based on Ble (bluetooth Low energy) protocol, and uses Ble broadcasting and GATT for packet transmission, mainly broadcast transmission. Because BLE broadcast channels are 3 fixed frequency points, when the number of nodes in the mesh network is large, communication collision is very easy to occur, and communication failure is caused.
The mesh data transmission method and the mesh data transmission device solve the problem of communication channel conflict by using the non-broadcast channel of BLE to transmit and receive the mesh data, and simultaneously utilize the channels 0-36 of BLE to avoid data communication conflict on the broadcast channel.
Fig. 1 is an architecture diagram of a system for using a concentrator according to an embodiment of the present invention, as shown in fig. 1, the system is applied to a Mesh network, and the system includes: concentrator 10 and a plurality of nodes 20, wherein the number of nodes may be 32767 at the most.
The concentrator 10 is responsible for controlling the whole Mesh network, and there is only one concentrator in one Mesh network. The node 20 belongs to the controlled device. An offset value is also maintained in the Mesh network, which is the basis for all nodes to calculate their own transmission windows, and is notified by the concentrator 10 according to oak periodic broadcasts.
In the embodiment of the present invention, the concentrator 10 is configured to obtain a distributed network device list, where the distributed network device list includes a plurality of distributed network nodes. The distributed network device list can be stored in the cloud or locally.
The concentrator 10 is further configured to determine a mesh address and a communication channel of each node according to the number of pre-divided channels and a network access sequence of the nodes; taking nodes on a plurality of communication channels as a group of paired nodes to determine the number of the paired nodes; and determining and calculating a first time offset value according to the number of the paired nodes.
The concentrator 10 is further configured to play a time offset broadcast according to a preset period, where the time offset broadcast carries a corresponding first time offset.
The node 20 is configured to replace the second time offset value with the first time offset value and store the first time offset value in the nonvolatile memory if it is determined that the first time offset value is not equal to the obtained second time offset value.
Based on the system, the communication channel of each node can be determined, and the mesh data is transmitted and received through the communication channel, so that data communication conflict on the broadcast channel is avoided, and in addition, a time offset value is also set, so that channel conflict can be avoided. The following describes a method for using a concentrator according to an embodiment of the present invention:
fig. 2 is a flowchart of a method for using a concentrator according to an embodiment of the present invention, as shown in fig. 2, the method includes:
the method comprises the following steps:
step 101, a distributed network equipment list is obtained, wherein the distributed network equipment list comprises a plurality of distributed network nodes.
In this step, the distributed network device list includes node information in addition to the plurality of distributed network nodes. It should be noted that, if the node does not distribute the network, the node broadcasts an unpassing beacon, where the unpairing beacon is a broadcast defined in the mesh standard, and when the nodes are unpaired, the node may notify the concentrator by sending the broadcasting unpassing beacon, and the concentrator may send a pairing invitation to the node to wait for the concentrator to distribute the network, and the concentrator generates a distributed network device list according to a plurality of distributed network nodes.
In the embodiment of the present invention, the process of acquiring the list of distributed devices may include: and after the concentrator is started, acquiring a distributed network equipment list from a local or cloud end. It should be noted that, because the embedded device resources are limited, the distributed network device list is usually stored in the cloud, and may also be stored locally if the local storage resources are sufficient.
And 102, acquiring a mesh address and a communication channel corresponding to each configured network node.
In the embodiment of the present invention, step 102 may specifically include: and determining the mesh address and the communication channel of each node according to the number of the pre-divided channels and the network access sequence of the nodes.
Wherein, the number of the pre-divided channels may include 37.
For example, taking the number of nodes as 32767, the number of pre-divided channels may include 37, for example, it may be set that Mesh address allocation starts from 1 and ends at 32767, and the Mesh address may be used to enable the node to select a channel for sending data by itself, and the allocation is sequentially cycled from 0 to 36 (37), for example, if the Mesh address allocated to the node a in the first network is 1, the communication channel of the node a is 0 channel, and the Mesh address allocated to the node B in the second network is 2, the communication channel of the node B is 1 channel, until the Mesh address allocated to the thirty-seventh node is 37, and the communication channel is 36. After the thirty-eighth node is networked, the mesh address is 38, the communication channel is 0, and so on for the following nodes, it can be understood that, after the communication channels 0 to 36 are sequentially allocated, the communication channels are reallocated from the communication channel 0.
And 103, calculating a first time offset value according to the acquired paired node number.
In the embodiment of the present invention, step 103 may specifically include: node a node may be represented by formula one: and calculating a first time offset value, wherein a is the first time offset value, (b) is the number of paired nodes, and 5 is a unit defining a time window of 5 milliseconds.
In the embodiment of the present invention, since there may still be collisions between nodes communicating on the same channel, a time window is introduced to avoid channel collisions, where the time window is defined as one unit of 5 milliseconds, and the first time offset value is (number of paired nodes/38) × 5. For example, when the number of currently paired nodes obtained by the concentrator is less than 38, the calculated first time offset value is 0. When the number of the paired nodes is 50, the first time offset value is calculated to be 5 msec. In addition, in the limit case, when the number of paired nodes reaches the maximum value 32767, the calculated first time offset value is 4310 ms, that is, in the limit case, in the network with the maximum number of nodes, the average response time of each node is about 4.3 s, and compared with the communication failure caused by collision, the time value is acceptable.
It should be noted that the root of the communication conflict existing in the network in the prior art is that only 3 broadcast channels exist, so that the current communication conflict state can be effectively avoided by using 0-36 channels in the scheme of the embodiment of the present invention, the communication success rate is improved, and the network forwarding data is not affected.
Further, after step 1032, the method further includes:
and 1033, calculating a time point of data transmission of the node according to the mesh address and the first time offset value.
In this step, as an alternative, by formula two: and c is (d-1)/37 a, and the time point of the data transmission of the node is calculated, wherein a is indicated as a first time offset value, c is indicated as the time point of the data transmission of the node, d is indicated as a mesh address, and 37 is indicated as the number of channels.
In this embodiment of the present invention, for example, if there are 100 nodes in the current network, the first time offset value is 15 milliseconds, and the mesh address is 7, the time point when the node sends data is: (7-1)/37 × 15 ═ 0 msec. And if the Mesh address is 80, the time point of sending data by the node is as follows: (80-1)/37 × 15 ═ 30 milliseconds.
Step 1034, determining a time point of subsequent data transmission based on the time point and the first time offset value.
In this step, taking the above example that there are 100 nodes in the current network, the first time offset value is 15 ms, and the node with the mesh address of 7 as an example, when the node sends data, the time point is: when (7-1)/37 × 15 is 0, the subsequent time points at which data is transmitted are 0 msec, 15 msec, and 30 msec in this order. The data sending time points of the nodes are as follows: when (80-1)/37 × 15 is 30, the subsequent time point of transmitting data is 30 msec and 45 msec in this order.
And step 104, playing a time deviation value broadcast according to a preset period, wherein the time deviation value broadcast carries a corresponding first time deviation value, so that the node replaces the second time deviation value with the first time deviation value according to whether the first time deviation value is equal to the acquired second time deviation value or not, and stores the first time deviation value in the nonvolatile memory.
In this step, fig. 3 is a flowchart of a method for using a node according to an embodiment of the present invention, and as shown in fig. 3, an execution process of the node may include:
step 201, receiving a time offset value broadcast sent by a concentrator, where the time offset value broadcast carries a corresponding first time offset value.
Step 202, determining whether the first time offset value is equal to the obtained second time offset value, if not, executing step 203; if yes, the process is ended.
Step 203, replacing the second time offset value with the first time offset value and storing the first time offset value to the non-volatile memory.
In this step, the first time offset value at that time is taken as the second time offset value to be calculated next time by storing the first time offset value to the nonvolatile memory. In other words, the first time offset value may be understood as a current time offset value, and the second time offset value is a local time offset value, and when the current time offset value is determined to be inconsistent with the local time offset value, the local time offset value is updated, that is, the local time offset value is updated to the current time offset value, and the current time offset value is already used as the local time offset value. In addition, the node is also used for waiting for processing the control command of the concentrator or reporting the node data periodically.
In the embodiment of the present invention, the time offset value may be filled in by using a vendor-defined data format, for example, the vendor-defined data format belongs to a bluetooth standard specified format, and the data type is 0 xFF. It should be noted that in the embodiment of the present invention, a complex network setting command is not needed to set the node sending windows in turn, and only the time offset value needs to be broadcasted periodically, and if a node newly accessing the network in the network is not frequent, the broadcast time period can be set to be longer, so that power consumption can be effectively reduced.
Further, the concentrator is also used for opening data in the scan listening network and waiting for processing the user instruction or the data reported by the node.
Further, because the nodes distributed on different channels can not transmit data in a collision manner, the nodes scattered on 37 channels are taken as a group, if the number of the paired nodes in the current network is only 2, 0-5 milliseconds are the transmission window period of the first group of nodes, 5-10 milliseconds are the transmission window period of the second group of nodes, and 10-15 milliseconds return to the transmission window period of the first group of nodes. If the number of the paired nodes in the current network is 5, then 0-5 milliseconds are the sending window period of the first group of nodes, 5-10 milliseconds are the sending window period of the second group of nodes, 10-15 milliseconds are the sending window period of the third group of nodes, 15-20 milliseconds are the sending window period of the fourth group of nodes, 20-25 milliseconds are the sending window period of the fifth group of nodes, and 25-30 are the sending windows of the first group of nodes, and the steps are cycled sequentially.
In the embodiment of the invention, the time offset value is dynamically adjusted according to the number of the nodes of the distributed network, so that the situation that the time offset value is still 4310 milliseconds when the network has only 2 nodes and the addresses are respectively 1 and 32767 is avoided.
In the technical scheme provided by the embodiment of the invention, a distributed network equipment list is obtained, a mesh address and a communication channel corresponding to each distributed network node are obtained, a first time deviation value is calculated according to the number of the obtained distributed nodes, a time deviation value broadcast is played according to a preset period, the time deviation value broadcast carries the corresponding first time deviation value, so that the nodes are enabled to be equal to an obtained second time deviation value according to the first time deviation value, if the first time deviation value is judged to be not equal to the second time deviation value, the second time deviation value is replaced by the first time deviation value, the first time deviation value is stored in a nonvolatile memory, and channel conflict can be avoided by determining the communication channel of each node and setting the time deviation value.
Fig. 4 is a schematic structural diagram of an apparatus for using a concentrator according to an embodiment of the present invention, as shown in fig. 4, the apparatus includes:
an obtaining module 11, configured to obtain a distributed network device list, where the distributed network device list includes a plurality of distributed network nodes; acquiring a mesh address and a communication channel corresponding to each configured network node;
a calculating module 12, configured to calculate a first time offset value according to the obtained number of paired nodes;
the playing module 13 is configured to play a time offset broadcast according to a preset period, where the time offset broadcast carries a corresponding first time offset value, so that the node replaces the second time offset value with the first time offset value according to whether the first time offset value is equal to the obtained second time offset value, and stores the first time offset value in the nonvolatile memory.
In the embodiment of the present invention, the obtaining module 11 of the apparatus is specifically configured to determine a mesh address and a communication channel of each node according to the number of pre-divided channels and a network access sequence of the nodes.
In this embodiment of the present invention, the number of the pre-divided channels includes 37.
In the embodiment of the present invention, the calculating module 12 of the apparatus is specifically configured to use a formula one: and calculating a first time offset value, wherein a is the first time offset value, (b) is the number of paired nodes, and 5 is a unit defining a time window of 5 milliseconds.
In the embodiment of the present invention, the calculating module 12 of the apparatus is specifically configured to calculate a time point when the node sends data according to the mesh address and the first time offset value; and determining the time point of the subsequent sending data based on the time point and the first time deviation value.
In the embodiment of the present invention, the calculating module 14 of the apparatus is specifically configured to use the formula two: and c is (d-1)/37 a, and the time point of the data transmission of the node is calculated, wherein a is indicated as a first time offset value, c is indicated as the time point of the data transmission of the node, d is indicated as a mesh address, and 37 is indicated as the number of channels.
In the technical scheme provided by the embodiment of the invention, a distributed network equipment list is obtained, a mesh address and a communication channel corresponding to each distributed network node are obtained, a first time deviation value is calculated according to the number of the obtained distributed nodes, a time deviation value broadcast is played according to a preset period, the time deviation value broadcast carries the corresponding first time deviation value, so that the nodes are enabled to be equal to an obtained second time deviation value according to the first time deviation value, if the first time deviation value is judged to be not equal to the second time deviation value, the second time deviation value is replaced by the first time deviation value, the first time deviation value is stored in a nonvolatile memory, and channel conflict can be avoided by determining the communication channel of each node and setting the time deviation value.
The embodiment of the present invention provides a schematic structural diagram of a device using a node, which is used for executing each step of the embodiment of the method for using the upper node.
An embodiment of the present invention provides a storage medium, where the storage medium includes a stored program, where, when the program runs, a device on which the storage medium is located is controlled to execute each step of the above-mentioned embodiment of the method for using a concentrator, and for a specific description, reference may be made to the above-mentioned embodiment of the method for using a concentrator.
An embodiment of the present invention provides a storage medium, where the storage medium includes a stored program, where, when the program runs, a device on which the storage medium is located is controlled to execute each step of the above-described embodiment of the method for using a concentrator, and for a specific description, reference may be made to the above-described embodiment of the method for using a node.
An embodiment of the present invention provides a computer device, including a memory and a processor, where the memory is used to store information including program instructions, and the processor is used to control execution of the program instructions, and the program instructions are loaded by the processor and executed to implement the steps of the method for using the concentrator. The detailed description may refer to an embodiment of a method of use of the concentrator described above.
An embodiment of the present invention provides a computer device, including a memory and a processor, where the memory is used to store information including program instructions, and the processor is used to control execution of the program instructions, and the program instructions are loaded by the processor and executed to implement the steps of the method for using the concentrator. For a detailed description, reference may be made to embodiments of methods of use of the above-described nodes.
Fig. 5 is a schematic diagram of a computer device according to an embodiment of the present invention. As shown in fig. 5, the computer device 4 of this embodiment includes: processor 41, memory 42, and computer program 43 stored in memory 42 and capable of running on processor 41, where when executed by processor 41, computer program 43 implements the use method applied to the concentrator in the embodiment, and in order to avoid repetition, it is not described herein repeatedly. Alternatively, the computer program is executed by the processor 41 to implement the functions of each model/unit in the using apparatus applied to the concentrator in the embodiment, and in order to avoid repetition, the description is omitted here.
The computer device 4 includes, but is not limited to, a processor 41, a memory 42. Those skilled in the art will appreciate that fig. 5 is merely an example of computer device 4 and is not intended to limit computer device 4 and may include more or fewer components than shown, or some of the components may be combined, or different components, e.g., computer device 4 may also include input-output devices, network access devices, buses, etc.
The Processor 41 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 42 may be an internal storage unit of the computer device 4, such as a hard disk or a memory of the computer device 4. The memory 42 may also be an external storage device of the computer device 4, such as a plug-in hard disk provided on the computer device 4, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 42 may also include both internal storage units of the computer device 4 and external storage devices. The memory 42 is used for storing computer programs and other programs and data required by the computer device 4. The memory 42 may also be used to temporarily store data that has been output or is to be output.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (13)

1. A method of using a concentrator, comprising:
acquiring a distributed network equipment list, wherein the distributed network equipment list comprises a plurality of distributed network nodes;
acquiring a mesh address and a communication channel corresponding to each configured network node;
calculating a first time offset value according to the number of the obtained paired nodes;
and playing a time deviation value broadcast according to a preset period, wherein the time deviation value broadcast carries a corresponding first time deviation value, so that the node replaces the second time deviation value with the first time deviation value according to whether the first time deviation value is equal to the acquired second time deviation value or not, and stores the first time deviation value to the nonvolatile memory.
2. The method according to claim 1, wherein the obtaining the mesh address and the communication channel corresponding to each configured network node comprises:
and determining the mesh address and the communication channel of each node according to the number of the pre-divided channels and the network access sequence of the nodes.
3. The method of claim 2, wherein the pre-partitioned number of channels comprises 37.
4. The method of claim 1, wherein calculating the first time offset value according to the obtained number of paired nodes comprises:
by the formula one: and calculating a first time offset value, wherein a is the first time offset value, (b) is the number of paired nodes, and 5 is a unit defining a time window of 5 milliseconds.
5. The method of claim 4, wherein after determining and calculating the first time offset value based on the obtained number of paired nodes, further comprising:
calculating a time point of data transmission of the node according to the mesh address and the first time deviation value;
and determining the time point of the subsequent sending data based on the time point and the first time deviation value.
6. The method according to claim 5, wherein said calculating a time point of data transmission from a node according to the mesh address and the first time offset value comprises:
by the formula two: and c is (d-1)/37 a, and the time point of the data transmission of the node is calculated, wherein a is indicated as a first time offset value, c is indicated as the time point of the data transmission of the node, d is indicated as a mesh address, and 37 is indicated as the number of channels.
7. A method for using a node, comprising:
receiving a time offset value broadcast sent by a concentrator, wherein the time offset value broadcast carries a corresponding first time offset value;
judging whether the first time deviation value is equal to the obtained second time deviation value or not;
and if the first time deviation value and the second time deviation value are judged to be not equal, replacing the second time deviation value with the first time deviation value, and storing the first time deviation value to the nonvolatile memory.
8. A concentrator applicator, comprising:
the device comprises an acquisition module, a distribution network processing module and a distribution network processing module, wherein the acquisition module is used for acquiring a distribution network device list which comprises a plurality of distribution network nodes; acquiring a mesh address and a communication channel corresponding to each configured network node;
the determining module is used for calculating a first time offset value according to the obtained paired node number;
and the playing module is used for playing a time deviation value broadcast according to a preset period, wherein the time deviation value broadcast carries a corresponding first time deviation value, so that the node replaces the second time deviation value with the first time deviation value if judging that the first time deviation value is not equal to the second time deviation value according to whether the first time deviation value is equal to the acquired second time deviation value or not, and stores the first time deviation value to the nonvolatile memory.
9. An apparatus for using a node, comprising:
the device comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a time deviation value broadcast sent by a concentrator, and the time deviation value broadcast carries a corresponding first time deviation value;
the judging module is used for judging whether the first time deviation value is equal to the acquired second time deviation value or not;
and the processing module is used for replacing the second time deviation value with the first time deviation value and storing the first time deviation value to the nonvolatile memory if the first time deviation value is judged to be not equal to the second time deviation value.
10. A storage medium comprising a stored program, wherein the apparatus on which the storage medium is located is controlled to perform the method of using the concentrator of any one of claims 1 to 6 when the program is run.
11. A storage medium comprising a stored program, wherein a device on which the storage medium is located is controlled to perform the method of using the node of claim 7 when the program is run.
12. A computer device comprising a memory for storing information including program instructions and a processor for controlling execution of the program instructions, characterized in that: the program instructions when loaded and executed by a processor implement a method of use of the concentrator of any one of claims 1 to 6.
13. A computer device comprising a memory for storing information including program instructions and a processor for controlling execution of the program instructions, characterized in that: the program instructions when loaded and executed by a processor implement a method for using the node of claim 7.
CN202011633967.5A 2020-12-31 2020-12-31 Concentrator and node using method and device Active CN112866963B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011633967.5A CN112866963B (en) 2020-12-31 2020-12-31 Concentrator and node using method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011633967.5A CN112866963B (en) 2020-12-31 2020-12-31 Concentrator and node using method and device

Publications (2)

Publication Number Publication Date
CN112866963A true CN112866963A (en) 2021-05-28
CN112866963B CN112866963B (en) 2023-01-20

Family

ID=76000074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011633967.5A Active CN112866963B (en) 2020-12-31 2020-12-31 Concentrator and node using method and device

Country Status (1)

Country Link
CN (1) CN112866963B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101485138A (en) * 2006-06-23 2009-07-15 Bae系统信息和电子系统集成公司 Supporting mobile ad-hoc network (manet) and point to multi-point (pmp) communications among nodes in a wireless network
CN105282851A (en) * 2015-09-28 2016-01-27 浪潮(北京)电子信息产业有限公司 Channel distribution method and system
CN105451290A (en) * 2014-08-20 2016-03-30 北京南瑞智芯微电子科技有限公司 Micropower wireless network self-organizing method and micropower wireless network
CN106717030A (en) * 2014-09-26 2017-05-24 阿尔卡特朗讯 Method and apparatus for preventing message collision
CN107018173A (en) * 2016-01-27 2017-08-04 海能达通信股份有限公司 Method, terminal device, network side equipment and the system of data transfer
CN107371231A (en) * 2016-05-13 2017-11-21 北京信威通信技术股份有限公司 The synchronous method and device of wireless Mesh netword
CN107889185A (en) * 2017-11-29 2018-04-06 长沙师范学院 A kind of network-building method of ammeter wireless data acquisition system
US20190387499A1 (en) * 2018-06-15 2019-12-19 Landis + Gyr Innovations, Inc. Channel Hopping Sequence Generation with Variable Channel Width
CN111988827A (en) * 2020-08-28 2020-11-24 苏州永联芯电子有限公司 Route optimization method and system of Bluetooth mesh network with mobile node

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101485138A (en) * 2006-06-23 2009-07-15 Bae系统信息和电子系统集成公司 Supporting mobile ad-hoc network (manet) and point to multi-point (pmp) communications among nodes in a wireless network
CN105451290A (en) * 2014-08-20 2016-03-30 北京南瑞智芯微电子科技有限公司 Micropower wireless network self-organizing method and micropower wireless network
CN106717030A (en) * 2014-09-26 2017-05-24 阿尔卡特朗讯 Method and apparatus for preventing message collision
CN105282851A (en) * 2015-09-28 2016-01-27 浪潮(北京)电子信息产业有限公司 Channel distribution method and system
CN107018173A (en) * 2016-01-27 2017-08-04 海能达通信股份有限公司 Method, terminal device, network side equipment and the system of data transfer
CN107371231A (en) * 2016-05-13 2017-11-21 北京信威通信技术股份有限公司 The synchronous method and device of wireless Mesh netword
CN107889185A (en) * 2017-11-29 2018-04-06 长沙师范学院 A kind of network-building method of ammeter wireless data acquisition system
US20190387499A1 (en) * 2018-06-15 2019-12-19 Landis + Gyr Innovations, Inc. Channel Hopping Sequence Generation with Variable Channel Width
CN111988827A (en) * 2020-08-28 2020-11-24 苏州永联芯电子有限公司 Route optimization method and system of Bluetooth mesh network with mobile node

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张轩等: "一种无线传感器网络动态多信道MAC协议", 《东南大学学报(自然科学版)》 *
马小铁等: "周期性数据采集无线传感器网络的设计", 《北京服装学院学报(自然科学版)》 *

Also Published As

Publication number Publication date
CN112866963B (en) 2023-01-20

Similar Documents

Publication Publication Date Title
US20220272632A1 (en) Method For Indicating Downlink Service Data and Device
JP6974454B2 (en) Data communication method and equipment
CN107465588B (en) State control method and device of multi-channel bus network and network management system
CN104025691A (en) Dynamic channel reuse in multi-access communication systems
US20150146742A1 (en) Data Transmitting and Receiving Method, Data Transmitting and Receiving System, Master Device, and Slave Device
US20060291432A1 (en) Methods and apparatus to perform dynamic channel management and dynamic bandwidth changes in wireless local area networks
US9445407B2 (en) Dynamic setting of transmission time in a contention based wireless system
CN110062347B (en) Low-power-consumption data active reporting method and system
JP3414244B2 (en) Communication control method and transmission device
US9426738B2 (en) Systems and methods for multi-channel concurrency
CN113261261A (en) Prioritized low power neighbor node discovery in IOT networks
JP2016511583A (en) System and method for power saving of multicast and broadcast data
CN112866963B (en) Concentrator and node using method and device
US8855693B2 (en) Method and apparatus for controlling wireless devices
KR20080008196A (en) Wireless network system and method for transmitting/receiving data under the wireless network
CN111278140A (en) Resource scheduling method and related product
CN113766520A (en) Networking method, networking device, storage medium and networking nodes of power Internet of things
CN104053218A (en) Wireless Communication Method, Wireless Device And Wireless Coordinator
CN111965988A (en) Control method and device of intelligent equipment, intelligent control switch and storage medium
US10251035B2 (en) Control method and apparatus for carrier sensing in wireless sensor communication
CN111885588A (en) Method and device for executing electronic card management service
US8554139B2 (en) Transmission method and related apparatus for reducing radio resource overhead
CN117377056A (en) Method and device for executing synchronous event
CN110391923A (en) The method and the network equipment of multicast message processing
CN114650587B (en) Method and device for monitoring wireless link, wireless terminal and 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
GR01 Patent grant
GR01 Patent grant