CN108954696B - Air conditioner control system and method based on Thread protocol - Google Patents

Air conditioner control system and method based on Thread protocol Download PDF

Info

Publication number
CN108954696B
CN108954696B CN201811083246.4A CN201811083246A CN108954696B CN 108954696 B CN108954696 B CN 108954696B CN 201811083246 A CN201811083246 A CN 201811083246A CN 108954696 B CN108954696 B CN 108954696B
Authority
CN
China
Prior art keywords
node
routing
network
nodes
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811083246.4A
Other languages
Chinese (zh)
Other versions
CN108954696A (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.)
Guangzhou Tewo Energy Management Co ltd
Original Assignee
Guangzhou Tewo Energy Management 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 Guangzhou Tewo Energy Management Co ltd filed Critical Guangzhou Tewo Energy Management Co ltd
Priority to CN201811083246.4A priority Critical patent/CN108954696B/en
Publication of CN108954696A publication Critical patent/CN108954696A/en
Application granted granted Critical
Publication of CN108954696B publication Critical patent/CN108954696B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/56Remote control
    • F24F11/58Remote control using Internet communication
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/89Arrangement or mounting of control or safety devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an air conditioner control system based on a Thread protocol, which comprises: the wireless communication system comprises a plurality of routing nodes, boundary routers and terminal nodes, wherein the routing nodes, the boundary routers and the terminal nodes are arranged in a preset area, the routing nodes form a mesh network, the terminal nodes are connected to the mesh network through corresponding routing nodes, communication is carried out among the terminal nodes, the routing nodes and the boundary routers through wireless links, the routing nodes are air conditioner indoor units, and the terminal nodes are one or more of air conditioner outdoor units, air conditioner peripheral equipment and sensor nodes. The invention also discloses an air conditioner control method based on the Thread protocol. According to the invention, the wireless control network of the air conditioning system is built through the Thread network, and the complexity of the design of the air conditioning control system is reduced by the simplified Thread network, so that the control system is more stable and reliable.

Description

Air conditioner control system and method based on Thread protocol
Technical Field
The invention relates to the technical field of wireless networking, in particular to an air conditioner control system and method based on a Thread protocol.
Background
The wireless control network of the existing air conditioning system is generally networked through a Zigbee protocol, which is a short-distance and low-power consumption mesh network communication protocol taking IEEE802.15.4 as a standard, defines network layer and application layer specifications, and has wide application in industrial fields, commercial lighting and intelligent home fields. However, the Zigbee protocol does not define a network layer, and the application layer protocol is chaotic, that is, the protocol standards used by the respective manufacturers are not necessarily consistent, so that products between the manufacturers cannot be commonly used before, thereby causing a certain limitation on use thereof.
The network access request sent by the new network access node is required to be sent to the management node through the corresponding routing node, the unified verification is carried out by the management node, the verification mode is complex, the waiting time is long, the Zigbee mesh network communication mode is mostly realized by adopting a dynamic routing table mode, the dynamic routing table stores routing paths, and the nodes for transmitting data are communicated according to the dynamic routing table.
Disclosure of Invention
In order to overcome the defects of the prior art, one of the purposes of the invention is to provide an air conditioner control system based on a Thread protocol, which establishes a wireless control network of the air conditioner system through the Thread protocol, is easy to network, automatically allocates addresses and automatically addresses, and the simplified Thread network reduces the design complexity of the air conditioner control system, so that the control system is more stable and reliable.
The second object of the present invention is to provide an air conditioner control method based on a Thread protocol, which constructs a wireless control network of an air conditioner system through a Thread network, is easy to network, automatically distributes addresses and automatically addresses, and the simplified Thread network reduces the complexity of the design of the air conditioner control system, so that the control system is more stable and reliable, and simultaneously, by issuing verification information to each network routing node, when a newly-accessed node is connected with any network routing node, the network routing node connected with the newly-accessed node can directly verify, thereby saving verification time and being fast and convenient; and each routing node only stores and maintains a neighbor table for connecting links with other routing nodes and the boundary router, thereby saving the resource waste for maintaining the dynamic routing table of the whole mesh network.
In order to achieve one of the above objects, the present invention provides the following technical solutions:
the utility model provides an air conditioner control system based on Thread protocol, its includes a plurality of routing nodes, boundary router and the terminal node that set up in predetermineeing the region, the mesh network is constituteed to the routing node, and any one or more routing node communicates with the server of high in the clouds through boundary router, terminal node is connected to the mesh network through corresponding routing node, communicate through wireless link between terminal node, routing node and the boundary router, the routing node is air conditioning indoor unit, terminal node is one or more of air conditioning off-premises station, air conditioning peripheral equipment and sensor node.
Preferably, the preset area is a building or a cell, and at least one boundary router is set on each floor.
Preferably, the sensor node is one or more of a temperature sensor node, a humidity sensor node, a current transformer node, a voltage transformer node and an electric energy collector; the air conditioner peripheral equipment is one or more of a control panel, a remote controller, a frequency converter and a power supply.
In order to achieve the second purpose, the invention provides the following technical scheme:
a method for air conditioning control using a Thread protocol based air conditioning control system according to one of the above objects, comprising the steps of:
creating a mesh network to which at least one border router is connected, routing nodes that have been connected to the mesh network being referred to as on-network routing nodes;
the boundary router sends an authentication request to the server, wherein the authentication request requires the server to respond and return user information and verification information, and the boundary router directly or indirectly sends the information to all network routing nodes after receiving the returned information;
when a network access request exists, the node sending the network access request is called a node to be accessed, the network routing node receiving the network access request is called a verification route, the verification route is compared according to user information, verification information and network access request information sent by the node to be accessed, and when the comparison is passed, the node to be accessed is allowed to join the mesh network;
each on-network routing node creates and maintains (i.e., periodically updates) a neighbor table that records the on-network routing node (single-hop routing) or/and the border router of each on-network routing node's neighbors;
when data is transmitted between any node in the mesh network or between any node and a server, a network protocol stack creates a target routing path according to the neighbor table and the signal strength, and the data is transmitted through the target routing path.
Preferably, the node to be network-accessed is a routing node or a terminal node.
Preferably, when the node to be network-connected sends out the network-connection request, the signal intensity, the routing depth and the number of connected nodes of each network-connection node are detected, one of the network-connection nodes is selected as the verification route according to one or more of the signal intensity, the routing depth and the number of connected nodes, the routing depth is the minimum number of hops when each network-connection node is connected with the boundary router, and the number of connected nodes is the number of terminal nodes which are already connected with each routing node.
Preferably, the verification route compares user information with verification information and network access request information sent by a node to be accessed to the network, and includes:
the method comprises the steps that a verification route receives network access request information sent by a network access node, wherein the network access request information comprises a node name and an authentication code;
verifying route traversal user information, searching user information corresponding to the node name, and if the user information is not found, not allowing the network access node to join the mesh network;
if so, the searched user information corresponding to the node name is called target user information, verification information corresponding to the target user information is obtained from the verification information, and the verification information corresponding to the target user information is called target verification information;
and the verification route decodes the authentication code, compares the decoded authentication code with target verification information, allows the network access node to join the mesh network if the authentication code and the target verification information are consistent, and does not allow the network access node to join the mesh network if the authentication code and the target verification information are inconsistent.
Preferably, when transmitting data to the server at the network routing node or the terminal node, if the data is transmitted at the network routing node, the network routing node which transmits the data is defined as the start node, if the data is transmitted at the terminal node, the parent of the terminal node which transmits the data is defined as the start node, the parent is the network routing node with the maximum signal strength between the network routing node and the terminal node which transmits the data, the terminal node which transmits the data is defined as the end node, and the server is defined as the end node:
the method comprises the steps that an initial node sends a routing path request to a network protocol stack, and the network protocol stack generates all feasible routing paths from the initial node to a termination node according to a neighbor table;
acquiring the total number of routing nodes passing through each feasible routing path, and selecting the feasible routing path with the minimum total number of passing routing nodes as a target routing path;
if the number of the feasible route paths passing through the network route node is the smallest, defining the feasible route paths as initial target route paths, calculating the signal intensity sum of each initial target route path, and taking the initial target route path with the largest signal intensity sum as the target route path;
data sent at the network routing node or end node is transferred from the originating node to the terminating node via the target routing path.
Preferably, when the server transmits data to the terminal node or the network routing node, the server is defined as a termination node, if the data is received by the network routing node, the network routing node is defined as a start node, if the data is received by the terminal node, a parent of the terminal node receiving the data is defined as the start node, the parent is the network routing node with the maximum signal strength with the terminal node receiving the data, and the terminal node receiving the data receives the data through the parent at the network routing node:
the method comprises the steps that a termination node sends a routing path request to a network protocol stack through any boundary router, and the network protocol stack generates all feasible routing paths from a starting node to the termination node according to a neighbor table;
acquiring the total number of routing nodes passing through each feasible routing path, and selecting the feasible routing path with the minimum total number of passing routing nodes as a target routing path;
if the number of the feasible route paths passing through the network route node is the smallest, defining the feasible route paths as initial target route paths, calculating the signal intensity sum of each initial target route path, and taking the initial target route path with the largest signal intensity sum as the target route path;
and transmitting the data sent by the server to the terminal node or the network routing node through the target routing path.
Preferably, before calculating the sum of the signal strengths of each initial target routing path, the method further includes:
and filtering the initial target routing path when the signal strength between any two adjacent network routing nodes in the initial target routing path is smaller than a set threshold value.
Compared with the prior art, the air conditioner control system and method based on the Thread protocol have the beneficial effects that:
1. the wireless control network of the air conditioning system is built through the Thread network, networking is easy, address and addressing are automatically distributed, and the simplified Thread network reduces the design complexity of the air conditioning control system, so that the control system is more stable and reliable.
2. According to the invention, the verification information is issued to each network routing node, so that when the newly-accessed network node is connected with any network routing node, the network routing node connected with the newly-accessed network node can directly verify, the verification time is saved, and the method is quick and convenient.
3. Each routing node only stores and maintains a neighbor table for connecting links with other routing nodes and the boundary router, and when data transmission is carried out, a routing path request is sent to a network protocol stack, and the network protocol stack generates a routing path according to each neighbor table, so that resource waste for maintaining a dynamic routing table of the whole mesh network is avoided.
Drawings
FIG. 1 is a block diagram of an air conditioner control system based on a Thread protocol according to the present invention;
FIG. 2 is a flow chart of the air conditioner control method based on the Thread protocol of the present invention;
fig. 3 is a diagram of a data transfer architecture of a mesh network based on the Thread protocol.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and detailed description, wherein it is to be understood that, on the premise of no conflict, the following embodiments or technical features may be arbitrarily combined to form new embodiments.
Referring to fig. 1, an air conditioner control system based on a Thread protocol includes a plurality of routing nodes, a border router and a terminal node, wherein the routing nodes are arranged in a preset area, the routing nodes form a mesh structure, any one or more routing nodes communicate with a cloud server through the border router, the terminal node is connected to the corresponding routing node, the terminal node, the routing nodes and the border router communicate through a wireless link of the Thread protocol, and the border router is used for forwarding data of the Thread wireless network constructed by the routing nodes, the border router and the terminal node to the server or forwarding a data packet transmitted by the server to the Thread wireless network. The Thread wireless network belongs to a mesh network in which a terminal node has no relay and networking functions and can be connected to only one of routing nodes for receiving and transmitting data.
In the air conditioner control system, the routing node may be an air conditioner indoor unit, the terminal node is one or more of an air conditioner outdoor unit, air conditioner peripheral equipment and a sensor node, and in some cases, the air conditioner outdoor unit may also be used as the routing node, that is, a part of the terminal nodes may be converted with the routing node.
The preset area is a building or a district, the district can be a residential district, an industrial park, a hospital, a school and a government functional area, and of course, the district can also be a resident or a room, and for a building or a district, at least one boundary router is arranged on each floor for smooth data transmission.
The sensor node is one or more of a temperature sensor node, a humidity sensor node, a current transformer node, a voltage transformer node and an electric energy collector; the air conditioner peripheral equipment is one or more of a control panel, a remote controller, a frequency converter and a power supply.
In the preferred embodiment of the present invention, the sensor node mainly sends the collected data to the server, and of course, the collected time can also be sent to the corresponding routing node, i.e. the indoor unit, and the indoor unit controls itself and the peripheral equipment of the air conditioner. The air conditioner peripheral equipment can receive the control instruction sent by the server to control the corresponding indoor unit, and can also directly control the indoor unit. The server may directly control the indoor unit.
As an embodiment, in the structure of fig. 1, the server is to control the indoor unit of the 2018 room, the server firstly sends a control instruction to the boundary router of the 20 th floor, the boundary router of the 20 th floor forwards the ethernet packet sent by the server to the Thread network, then the ethernet packet is forwarded to the indoor unit of the 2018 room through the indoor unit of the 2019 room, the indoor unit of the 2018 room executes the control instruction, and the result is returned to the server in the original path.
With the Thread mesh network architecture, after networking is completed, there is a leader routing node that automatically and randomly allocates an IP address to each of the on-network nodes in the Thread mesh network architecture, where the leader routing nodes may designate or act as each other, and in general, the first routing node connected to the Thread mesh network is identified as the first leader routing node. Therefore, the mode is easier to network, address and address are automatically allocated, and the simplified Thread protocol reduces the complexity of the design of the air conditioner control system, so that the control system is more stable and reliable.
Referring to fig. 2, the method for performing air conditioning control by using the air conditioning control system based on the Thread protocol includes the following steps:
210. a mesh network is created to which at least one border router is connected, and routing nodes that have been connected to the mesh network are referred to as on-network routing nodes for convenience of description.
220. Each on-network routing node creates and maintains a neighbor table that records the on-network routing node or/and the border router of each on-network routing node's neighbors.
For data transfer within a mesh network, if each routing node maintains a complete dynamic routing table, such as that described in fig. 3, involving A, B, C, D, E five routing nodes in the network (including end node 1, border router G and server F), if node a is to maintain its routing path with node D, it is necessary to maintain a-C-D, A-C-B-D, A-C-B-E-D, A-B-D, A-B-E-D and a-E-D, etc., if the routing path maintenance is performed in this way, it is necessary to consume a large amount of memory to store this routing table, the above is merely node a is to maintain the routing path of a-D, and also maintain the routing tables with other nodes, which may lead to paralysis of the mesh network if the mesh network reaches a certain scale, there are more routing nodes.
Therefore, in the present invention, each routing node creates and maintains (i.e. periodically updates the neighbor table) a neighbor table, where the neighbor table records the relationships between the neighbor routing node and other routing nodes or/and boundary routers forming a direct wireless link, and only needs to maintain three relationship tables, namely a-B, A-C and a-E, in the node a of fig. 3 to form the neighbor table.
230. The boundary router sends an authentication request to the server, wherein the authentication request requires the server to respond and return the user information and the verification information, and the boundary router directly or indirectly sends the information to all the routing nodes in the network after receiving the returned information.
The authentication information is stored in a server (generally, a cloud server) by a manager in advance, all nodes (routing nodes or terminal nodes) associated with the target mesh wireless sensor network (i.e., mesh wireless sensor network to be authenticated for the newly-accessed node) are stored, and if there are newly purchased nodes to be accessed or unused nodes, the manager is required to log in the server to perform setting (adding authentication information or deleting authentication information). The user information is the user information of each node associated with the target mesh wireless sensor network, and each user information corresponds to one piece of verification information, and of course, other verification aspects can be set as required.
Because of a certain variability of the content of the verification information, the boundary router is required to send the verification information authentication request to the server at regular time, then the boundary router directly or indirectly sends the received verification information to all the network routing nodes, and the direct sending indicates that the boundary router has direct wireless link connection with the network routing nodes, and the indirect sending is forwarded through other network routing nodes. The authentication information received later at the network routing node need only be updated (added or subtracted) based on the previously received authentication information.
240. When a network access request exists, the node sending the network access request is called a node to be accessed, the network routing node receiving the network access request is called a verification route, the verification route is compared according to user information, verification information and network access request information sent by the node to be accessed, and when the comparison is passed, the node to be accessed is allowed to join the mesh network.
When the network node to be accessed sends out a network access request, the network node to be accessed is used as a routing node or a terminal node, the signal intensity, the routing depth and the number of connected nodes of each network routing node are detected, one of the network routing nodes is selected as a verification route according to one or more of the signal intensity, the routing depth and the number of connected nodes, the routing depth is the minimum number of hops when each network routing node is connected with a boundary router (one hops when each network routing node passes through), and the number of connected nodes is the number of the terminal nodes which are connected to each routing node.
If the signal intensity (marked as X) is selected, detecting the signal intensity between each network routing node and the node to be network-accessed, and selecting the network routing node with the maximum signal intensity as a verification route; if the routing depth (denoted as Y) is selected, the routing depth of each node routed in the network is detected, the one with the smallest routing depth is selected as the verification route, and if the number of connected nodes is selected, the number (denoted as Z) of each terminal node connected with the network routing node is detected, and the one with the smallest number of connected terminal nodes is selected as the verification route.
Because there is no connection signal between the verification route selected by the routing depth and the number of connected nodes and the node to be connected, in the preferred embodiment of the present invention, the verification route is preferentially selected by combining the signal strength with one or two of the other nodes, taking the verification route selected by the three nodes together as an example, setting a weight for each parameter, setting the weight according to specific selection requirement, generally, the weight of the signal strength is larger, so as to obtain a relation t=max (aXi + bYi + cZi), xi, yi, zi are respectively the signal strength (the signal strength between the nodes to be connected) corresponding to the network routing node, the routing depth, and the number of connected nodes, a, b, c are respectively the signal strength, the routing depth, and the weight of the number of connected nodes, and T is the verification route.
The verification route compares the user information with verification information according to network access request information sent by a node to be accessed to the network, and the verification route specifically comprises the following steps:
A. the method comprises the steps that a verification route receives network access request information sent by a network access node, wherein the network access request information comprises a node name and an authentication code;
B. verifying the route traversal user information, searching the user information corresponding to the node name, and if the user information is not found, not allowing the network access node to join the mesh network, and ending the verification;
C. if so, the searched user information corresponding to the node name is called target user information, verification information corresponding to the target user information is obtained from the verification information, and the verification information corresponding to the target user information is called target verification information;
D. and the verification route decodes the authentication code, compares the decoded authentication code with target verification information, allows the network access node to join the mesh network if the authentication code and the target verification information are consistent, and does not allow the network access node to join the mesh network if the authentication code and the target verification information are inconsistent.
The node name, that is, definition of the user information of the node, may be the MAC address of the corresponding node or the unique certification information of other corresponding nodes, which is used for distinguishing from other nodes, and the node name is used for performing early screening and then verification by the authentication code. The authentication code of the network access request information is sent to the verification route after being encrypted, so that an encryption mode is set to prevent other nodes from achieving the network access purpose through a tampering mode, and certainly, the verification route needs to be decrypted by a key of the encryption mode.
The above procedure completes the networking of the mesh network.
250. When data is transmitted between any node in the mesh network or between any node and a server, a network protocol stack creates a target routing path according to the neighbor table and the signal strength, and the data is transmitted through the target routing path.
Any node mentioned here is a routing node or a terminal node in the network, because the border router is mainly used for data format conversion and data forwarding, and does not have the execution capability after receiving data and the acquisition capability for sending data. When data transmission is carried out between any nodes or between any nodes and a server in a mesh network, a routing path request needs to be sent to a network protocol stack, the network protocol stack can acquire neighbor tables of all routing nodes, planning of the routing paths is carried out based on the neighbor tables, and target routing paths of both data transmission sides are established by combining an optimal routing path algorithm to finish data transmission. In general, a routing path request sent to a network protocol stack should be initiated by a data sender, and for a terminal node to send data outwards, it does not have the capability of initiating the routing path request, so that its parent is initiated by a network routing node instead, and for a server to send data of an execution instruction outwards, it may be initiated by a server, and then forwarded to the network protocol stack by any one of boundary routers, and then the network protocol stack reads a neighbor table of a routing node receiving the data or a neighbor table of a terminal node receiving the data in the network routing node, thereby generating a target routing path.
Since the air conditioner control system generally transmits a control command to any node in the mesh network through the server, or the server receives collected data or execution data transmitted by any node in the mesh network, in the preferred embodiment of the present invention, only data transmitted from the node or the terminal node to the server in the network and data transmitted from the server to the node or the terminal node in the network are described, and the data transmission manner between any nodes in the mesh network is similar.
1. When data is transmitted to a server at a network routing node or a terminal node, if the data is transmitted at the network routing node, the network routing node for transmitting the data is defined as an initial node, if the data is transmitted at the terminal node, a parent of the terminal node for transmitting the data is defined as the initial node, the parent is the network routing node with the maximum signal strength between the network routing node and the terminal node for transmitting the data, the terminal node for transmitting the data transmits the data at the network routing node through the parent, and the server is defined as the terminal node, and then:
the method comprises the steps that an initial node sends a routing path request to a network protocol stack, and the network protocol stack generates all feasible routing paths from the initial node to a termination node according to a neighbor table; because the network protocol stack is clear of the neighbor table of each routing node in the network, it is easy to obtain all the possible routing paths, and still taking the example of data transmission from the terminal node 1 to the server F in fig. 3, it is first determined that the parent of the terminal node 1 is in the routing node in the network, i.e. node a, and then the network protocol stack determines that the possible routing paths from node a to the server G include a-C-D-G-F, A-C-B-D-G-F, A-C-B-E-D-G-F, A-B-D-G-F, A-B-E-D-G-F, a-E-D-G-F, etc.
Acquiring the total number of routing nodes passing through each feasible routing path, and selecting the feasible routing path with the minimum total number of passing routing nodes as a target routing path;
if the number of feasible routing paths passing through the network routing nodes with the smallest total number is a plurality of (A-C-D-G-F, A-B-D-G-F and A-E-D-G-F), defining the plurality of feasible routing paths as initial target routing paths, calculating the sum of the signal strengths of each initial target routing path (the sum of the signal strengths of three initial target routing paths of A-C-D-G-F, A-B-D-G-F and A-E-D-G-F is 34, 40 and 35 respectively), and taking the initial target routing path with the largest sum of the signal strengths as the target routing path (namely A-B-D-G-F).
Data sent at the network routing node or end node is transferred from the originating node to the terminating node via the target routing path.
2. When a server transmits data to a terminal node or an on-line routing node, defining the server as a termination node, if the on-line routing node receives the data, defining the on-line routing node as a start node, if the terminal node receives the data, defining a parent on-line routing node of the terminal node receiving the data as the start node, wherein the parent on-line routing node is the on-line routing node with the maximum signal strength with the terminal node receiving the data, and the terminal node receiving the data receives the data on the network routing node through the parent, and:
the termination node sends a routing path request to a network protocol stack through any boundary router (if one boundary router is arranged on each floor, the terminal node which receives data or the boundary router on the floor where the network routing node is located is preferably adopted), and the network protocol stack generates all feasible routing paths from the starting node to the termination node according to a neighbor table;
acquiring the total number of routing nodes passing through each feasible routing path, and selecting the feasible routing path with the minimum total number of passing routing nodes as a target routing path;
if the number of the feasible route paths passing through the network route node is the smallest, defining the feasible route paths as initial target route paths, calculating the signal intensity sum of each initial target route path, and taking the initial target route path with the largest signal intensity sum as the target route path;
and transmitting the data sent by the server to the terminal node or the network routing node through the target routing path.
The feasible routing paths may be exhaustive, and the above procedure may result in a final target routing path, but in order to further shorten the procedure of obtaining a target routing path, the following procedure may be adopted:
firstly, a network protocol stack generates a feasible route path from a starting node to a terminating node according to a neighbor table, then calculates the number of network route nodes through which the feasible route path passes, the generated feasible route path only needs to be compared with the number of network route nodes through which the former feasible route path passes, one feasible route path (if equal, all the feasible route paths are reserved) with the minimum reserved number is reserved after comparison, and the feasible route path is compared with the feasible route path generated later to obtain an initial target route path, and finally judges whether signal strength sum needs to be calculated according to the initial target route path to obtain the target route path.
In addition, attention is paid to the following: 1. because the network routing nodes or the boundary routers can continuously enter or exit the network, the neighbor table of each network routing node needs to traverse the mesh network for updating in a preset period (10 min, 20min, 1h, etc.); 2. if the signal strength between any two adjacent network routing nodes in the initial target routing paths is smaller than the set threshold, the initial target routing paths are filtered (for example, if the threshold of the signal strength between the two adjacent network routing nodes is set to be 15 in fig. 3, when the terminal node 1 sends data to the server F, the initial target routing paths of a-C-D-G-F are filtered), which is because interruption or loss of data transmission between nodes with too weak signal strength is prevented.
In order to prevent network storm, in the preferred embodiment of the present invention, in the process of determining the destination routing path, the data sender carries source address information (i.e. the address of the sender) and destination address (i.e. the address of the receiver), and then each time a routing path request is passed through a node or a border router, it is detected whether the address of the node itself is contained, if not, the corresponding address information is added, these address information together form a routing path request packet, if the address of the node itself is contained, the routing path request packet is not forwarded, the father of the termination node or the termination node receives routing path request packets of a plurality of different paths at the node of the network, and then a routing path request packet of one path is selected preferentially according to the selection mode of the sum of the node number and the signal strength, and the address and the path in the routing path request packet are the final destination routing path.
The above embodiments are only preferred embodiments of the present invention, and the scope of the present invention is not limited thereto, but any insubstantial changes and substitutions made by those skilled in the art on the basis of the present invention are intended to be within the scope of the present invention as claimed.

Claims (8)

1. The method for controlling the air conditioner by the air conditioner control system based on the Thread protocol is characterized in that the air conditioner control system based on the Thread protocol comprises a plurality of routing nodes, a boundary router and terminal nodes, wherein the routing nodes are arranged in a preset area, the routing nodes form a mesh network, any one or more routing nodes communicate with a cloud server through the boundary router, the terminal nodes are connected to the mesh network through corresponding routing nodes, the terminal nodes, the routing nodes and the boundary router communicate through wireless links, the routing nodes are air conditioner indoor units, and the terminal nodes are one or more of an air conditioner outdoor unit, air conditioner peripheral equipment and sensor nodes;
the method comprises the following steps:
creating a mesh network to which at least one border router is connected, routing nodes that have been connected to the mesh network being referred to as on-network routing nodes;
creating and maintaining a neighbor table by each routing node in the network, wherein the neighbor table records the neighbor routing nodes or/and boundary routers of each routing node in the network;
the boundary router sends an authentication request to the server, wherein the authentication request requires the server to respond and return user information and verification information, and the boundary router directly or indirectly sends the information to all network routing nodes after receiving the returned information;
when a network access request exists, a node sending the network access request is called a node to be accessed, a network routing node receiving the network access request is called a verification route, the verification route is compared according to user information, verification information and network access request information sent by the node to be accessed, and when the comparison is passed, the node to be accessed is allowed to join the mesh network;
when data transmission is carried out between any node in the mesh network or between any node and a server, a network protocol stack creates a target routing path according to the neighbor table and the signal intensity, and the data is transmitted through the target routing path;
the verification route compares the user information with verification information according to network access request information sent by a node to be accessed to the network, and comprises the following steps:
the method comprises the steps that a verification route receives network access request information sent by a network access node, wherein the network access request information comprises a node name and an authentication code;
verifying route traversal user information, searching user information corresponding to the node name, and if the user information is not found, not allowing the network access node to join the mesh network;
if so, the searched user information corresponding to the node name is called target user information, verification information corresponding to the target user information is obtained from the verification information, and the verification information corresponding to the target user information is called target verification information;
and the verification route decodes the authentication code, compares the decoded authentication code with target verification information, allows the network access node to join the mesh network if the authentication code and the target verification information are consistent, and does not allow the network access node to join the mesh network if the authentication code and the target verification information are inconsistent.
2. The method of claim 1, wherein the predetermined area is a building or a cell, and at least one border router is provided for each floor.
3. The method of claim 1, wherein the sensor node is one or more of a temperature sensor node, a humidity sensor node, a current transformer node, a voltage transformer node, and an electrical energy harvester; the air conditioner peripheral equipment is one or more of a control panel, a remote controller, a frequency converter and a power supply.
4. The method according to claim 1, characterized in that: the node to be network-accessed is a routing node or a terminal node.
5. The method according to claim 1, characterized in that: when the node to be network-accessed sends out a network access request, detecting the signal intensity, the routing depth and the number of connected nodes of each network routing node, selecting one of the network routing nodes as a verification route according to one or more of the signal intensity, the routing depth and the number of connected nodes, wherein the routing depth is the minimum number of hops when each network routing node is connected with a boundary router, and the number of connected nodes is the number of terminal nodes connected to each routing node.
6. The method according to claim 1, characterized in that: when data is transmitted to a server at a network routing node or a terminal node, if the data is transmitted at the network routing node, the network routing node for transmitting the data is defined as an initial node, if the data is transmitted at the terminal node, a parent of the terminal node for transmitting the data is defined as the initial node, the parent is the network routing node with the maximum signal strength between the network routing node and the terminal node for transmitting the data, the terminal node for transmitting the data transmits the data at the network routing node through the parent, and the server is defined as the terminal node, and then:
the method comprises the steps that an initial node sends a routing path request to a network protocol stack, and the network protocol stack generates all feasible routing paths from the initial node to a termination node according to a neighbor table;
acquiring the total number of routing nodes passing through each feasible routing path, and selecting the feasible routing path with the minimum total number of passing routing nodes as a target routing path;
if the number of the feasible route paths passing through the network route node is the smallest, defining the feasible route paths as initial target route paths, calculating the signal intensity sum of each initial target route path, and taking the initial target route path with the largest signal intensity sum as the target route path;
data sent at the network routing node or end node is transferred from the originating node to the terminating node via the target routing path.
7. The method according to claim 1, characterized in that: when a server transmits data to a terminal node or an on-line routing node, defining the server as a termination node, if the on-line routing node receives the data, defining the on-line routing node as a start node, if the terminal node receives the data, defining a parent on-line routing node of the terminal node receiving the data as the start node, wherein the parent on-line routing node is the on-line routing node with the maximum signal strength with the terminal node receiving the data, and the terminal node receiving the data receives the data on the network routing node through the parent, and:
the method comprises the steps that a termination node sends a routing path request to a network protocol stack through any boundary router, and the network protocol stack generates all feasible routing paths from a starting node to the termination node according to a neighbor table;
acquiring the total number of routing nodes passing through each feasible routing path, and selecting the feasible routing path with the minimum total number of passing routing nodes as a target routing path;
if the number of the feasible route paths passing through the network route node is the smallest, defining the feasible route paths as initial target route paths, calculating the signal intensity sum of each initial target route path, and taking the initial target route path with the largest signal intensity sum as the target route path;
and transmitting the data sent by the server to the terminal node or the network routing node through the target routing path.
8. The method according to claim 6 or 7, characterized in that: before the calculating of the sum of the signal strengths of each initial target route path, the method further comprises:
and filtering the initial target routing path when the signal strength between any two adjacent network routing nodes in the initial target routing path is smaller than a set threshold value.
CN201811083246.4A 2018-09-17 2018-09-17 Air conditioner control system and method based on Thread protocol Active CN108954696B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811083246.4A CN108954696B (en) 2018-09-17 2018-09-17 Air conditioner control system and method based on Thread protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811083246.4A CN108954696B (en) 2018-09-17 2018-09-17 Air conditioner control system and method based on Thread protocol

Publications (2)

Publication Number Publication Date
CN108954696A CN108954696A (en) 2018-12-07
CN108954696B true CN108954696B (en) 2023-04-25

Family

ID=64470943

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811083246.4A Active CN108954696B (en) 2018-09-17 2018-09-17 Air conditioner control system and method based on Thread protocol

Country Status (1)

Country Link
CN (1) CN108954696B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916464A (en) * 2014-03-19 2014-07-09 广东志高空调有限公司 Dual-mode cloud air-conditioner system based on Wi-Fi communication mode

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130219482A1 (en) * 2006-01-31 2013-08-22 Sigma Designs, Inc. Method for uniquely addressing a group of network units in a sub-network
US20150131485A1 (en) * 2006-01-31 2015-05-14 Sigma Designs, Inc. Mapping connected devices in a home area network to ip addresses in a local area network
CN102393701A (en) * 2011-10-13 2012-03-28 无锡大麦创意设计有限公司 Automatic building air-conditioning monitoring system
AU2014344788A1 (en) * 2013-10-29 2016-05-26 Kortek Industries Pty Ltd Adaptable multi-mode wireless power, light and automation
CN104613589B (en) * 2013-11-05 2017-12-26 海尔集团公司 A kind of air conditioner wireless network-building method and device
US9510347B2 (en) * 2014-05-08 2016-11-29 Cisco Technology, Inc. Timeslot distribution in a distributed routing protocol for deterministic wireless networks
CN104954457B (en) * 2015-06-05 2018-05-25 中国电力科学研究院 A kind of Internet of Things intelligent grid cruising inspection system based on IPv6 technologies
CN106559348A (en) * 2015-09-25 2017-04-05 中国电力科学研究院 A kind of intelligent 6LoWPAN border routings implementation method and border router
US10231108B2 (en) * 2015-12-11 2019-03-12 Google Llc Virtual addressing for mesh networks
CN106302058A (en) * 2016-10-20 2017-01-04 深圳市丰巨泰科电子有限公司 The coordination system and method for intelligent domestic system based on Zigbee wireless communication technology
CN209279348U (en) * 2018-09-17 2019-08-20 广州市特沃能源管理有限公司 Air-conditioner control system based on Thread agreement

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916464A (en) * 2014-03-19 2014-07-09 广东志高空调有限公司 Dual-mode cloud air-conditioner system based on Wi-Fi communication mode

Also Published As

Publication number Publication date
CN108954696A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN109348463B (en) Bluetooth Mesh network, networking method thereof and electric equipment
JP5503643B2 (en) Network interface unit for nodes in a wireless multihop network and method for establishing a network path between nodes in a wireless multihop network
CN105515853B (en) The node and its state updating method of wireless network
CN107148069B (en) Self-networking and low-power-consumption data collection method of tree sensor network
CN105262687B (en) A kind of power information acquisition system group-net communication method based on WIA-PA technologies
US10057130B2 (en) D2HCP protocol in ad hoc networks: merging of sub-networks and address conflict resolution
CN109257834B (en) Networking method of mesh wireless sensor network based on Thread protocol
CN105338595B (en) Intelligent terminal Adding Way, apparatus and system based on intelligent terminal system
JP2023551375A (en) Wireless communication method and system for node equipment in the Internet of Things for power transmission and substation equipment
CN108828979A (en) Intelligent home control system and method based on Thread agreement
CN102612110A (en) Distributive self-organized routing method in electric carrier wave illumination control system
JP7450762B2 (en) Efficient commissioning of radio control systems
CN106302058A (en) The coordination system and method for intelligent domestic system based on Zigbee wireless communication technology
CN110248320A (en) Wireless self-organization network management method based on time synchronization and Frequency Synchronization
CN102594916B (en) Networking method for deeper depth self-organizing wireless sensing network
CN114125005A (en) Data processing method and device based on intelligent building system
WO2012051777A1 (en) Access control method and device for wireless sensor network (wsn) to access telecommunication network via multiple gateways
CN108954696B (en) Air conditioner control system and method based on Thread protocol
Rabarijaona et al. Enabling Layer 2 Routing in IEEE std 802.15. 4 Networks with IEEE std 802.15. 10
CN209279348U (en) Air-conditioner control system based on Thread agreement
CN208705678U (en) Intelligent home control system based on Thread agreement
WO2023279708A1 (en) Automatic networking method for intelligent lighting system
CN113347682B (en) Power distribution terminal method and equipment with adaptive communication obstacle avoidance capability
CN112995043B (en) Information processing method and device in wireless mesh network and electronic equipment
TWI551179B (en) Establishing method for self-organization network of wireless nodes

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