CN117155940B - Control communication method and device suitable for load peak regulation scene of central air conditioning system - Google Patents

Control communication method and device suitable for load peak regulation scene of central air conditioning system Download PDF

Info

Publication number
CN117155940B
CN117155940B CN202311423842.3A CN202311423842A CN117155940B CN 117155940 B CN117155940 B CN 117155940B CN 202311423842 A CN202311423842 A CN 202311423842A CN 117155940 B CN117155940 B CN 117155940B
Authority
CN
China
Prior art keywords
terminal
address
port number
control instruction
node
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
CN202311423842.3A
Other languages
Chinese (zh)
Other versions
CN117155940A (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.)
Shanghai Shilian Energy Saving Technology Co ltd
Original Assignee
Shanghai Shilian Energy Saving Technology 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 Shanghai Shilian Energy Saving Technology Co ltd filed Critical Shanghai Shilian Energy Saving Technology Co ltd
Priority to CN202311423842.3A priority Critical patent/CN117155940B/en
Publication of CN117155940A publication Critical patent/CN117155940A/en
Application granted granted Critical
Publication of CN117155940B publication Critical patent/CN117155940B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution
    • H04W28/09Management thereof
    • H04W28/0958Management thereof based on metrics or performance parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Medical Informatics (AREA)
  • Cardiology (AREA)
  • Computing Systems (AREA)
  • Human Computer Interaction (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a control communication method and device suitable for a load peak regulation scene of a central air conditioning system, and relates to the technical field of load peak regulation. The method is executed by a server which is based on UDP protocol and is connected with an intelligent control terminal through at least one intermediate node in a communication way, after receiving heartbeat packets which come from the terminal and are forwarded through each intermediate node in turn, the method firstly binds and caches the IP address and port number of the last transmitting node carried in the heartbeat packets and the unique identifier of the terminal into a local memory, then reads the IP address and the port number which are bound with the unique identifier of the terminal and are cached latest from the local memory when a control instruction is required to be transmitted, and finally transmits the control instruction to the last transmitting node according to the read result, so that the instruction is transmitted to the terminal by each intermediate node, the heavy burden caused by maintaining long-term connection can be skillfully lightened, the real-time responsiveness of the server is enhanced, and the method is particularly suitable for the load peak regulation scene of a central air conditioning system.

Description

Control communication method and device suitable for load peak regulation scene of central air conditioning system
Technical Field
The invention belongs to the technical field of load peak regulation, and particularly relates to a control communication method and device suitable for a load peak regulation scene of a central air conditioning system.
Background
In modern society, energy supply, energy conservation and environmental protection have been one of the key challenges in the power field. With the continuous development of urban areas, a large-scale central air conditioning system is one of main energy consumption sources in commercial and residential buildings, and the energy consumption and the power demand of the system tend to rise year by year. Central air conditioning systems are often in a high-load state during high-temperature seasons and during peak periods of specific electricity consumption, resulting in the problems of supply and demand pressure and energy waste of the power system.
In order to effectively solve the challenges of energy waste and power system stability caused by the peak load of the central air conditioning system, it becomes particularly critical to find an efficient control communication method. The traditional air conditioner control method is often limited by factors such as communication delay, energy efficiency, user comfort and the like, and fine load peak regulation is difficult to realize in practical application. Therefore, there is a need for an innovative communication method that can implement efficient and real-time control communication in a central air conditioning system load peak shaving scenario to optimize operation and energy utilization of the power system.
The load peak regulation system is an application system based on an Internet of things system, and comprises an intelligent control terminal and a server, wherein the intelligent control terminal is communicated with a central air conditioning system downwards and is communicated with the server upwards. The conventional load peak regulation system generally makes the server and the intelligent control terminal keep real-time connection through an MQTT (Message Queuing Telemetry Transport, message queue telemetry transmission protocol) protocol or a TCP (Transmission Control Protocol ) long connection protocol, and this way needs to consume a large amount of server resources to maintain long connection, which is an extra overhead for the server and the intelligent control terminal, so that the response speed of the connection of a large amount of intelligent control terminals in thread scheduling is difficult to be ensured, and especially under the condition of poor network environment, the TCP reconnection mechanism can seriously reduce the real-time performance of communication. Therefore, how to provide a high-efficiency control communication method suitable for the load peak regulation scene of the central air conditioning system so as to issue control instructions to the intelligent control terminal in real time and improve the concurrency capability of the server is a subject to be researched by those skilled in the art.
Disclosure of Invention
The invention aims to provide a control communication method, a device, computer equipment and a computer readable storage medium suitable for a load peak regulation scene of a central air conditioning system, which are used for solving the problems that a large amount of server resources are required to be consumed to maintain long connection, and the response speed is difficult to be ensured when a large amount of intelligent control terminals are connected for thread scheduling.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
in a first aspect, a control communication method applicable to a load peak regulation scenario of a central air conditioning system is provided, which is executed by a server based on a UDP protocol and sequentially connected to an intelligent control terminal through at least one intermediate node in a communication manner, and includes:
receiving a heartbeat packet which is from the intelligent control terminal and is sequentially forwarded by each intermediate node in the at least one intermediate node, wherein the heartbeat packet carries an IP address and a port number of a corresponding sending node in each sending process, and each intermediate node binds and caches the IP address and the port number of a previous sending node and a terminal unique identifier of the intelligent control terminal in a local node in the forwarding process of the heartbeat packet;
binding and caching the IP address and port number of the last sending node carried in the heartbeat packet and in the at least one intermediate node and the unique terminal identifier into a local memory;
when a control instruction is required to be sent to the intelligent control terminal, reading an IP address and a port number which are bound with the unique terminal identifier and are cached latest from the local memory;
and sending the control instruction to the final sending node according to the latest cached IP address and port number, so that each intermediate node forwards the control instruction to the corresponding previous sending node according to the latest cached IP address and port number which are bound with the unique terminal identifier and are cached in the local node until the control instruction is sent to the intelligent control terminal.
Based on the above summary, a new scheme for issuing control instructions based on a UDP protocol is provided, that is, the method is executed by a server based on the UDP protocol and sequentially connected to an intelligent control terminal through at least one intermediate node in a communication manner, after receiving heartbeat packets from the intelligent control terminal and sequentially forwarded by each intermediate node, the method firstly binds and records an IP address and a port number of a last transmitting node carried in the heartbeat packets and a unique identifier of the terminal into a local memory, then reads the IP address and the port number bound and newly cached with the unique identifier of the terminal from the local memory when the control instructions need to be sent, and finally sends the control instructions to the last transmitting node according to a read result, so that each intermediate node forwards the control instructions to a corresponding previous transmitting node according to the IP address and the port number bound and newly cached with the unique identifier of the terminal until the control instructions are sent to the intelligent control terminal.
In one possible design, the at least one intermediate node includes a 4G/5G base station, a primary router, and/or a secondary router.
In one possible design, the heartbeat packet is sent periodically by the intelligent control terminal.
In one possible design, the transmission period of the heartbeat packet is greater than or equal to 8 seconds and less than or equal to 15 seconds.
In one possible design, after the control instruction is sent to the last sending node according to the latest cached IP address and port number, the method further includes:
if the timing value of the timer reaches the preset duration threshold, the instruction receipt confirmation message from the intelligent control terminal and sequentially forwarded by the intermediate nodes is not received yet, the latest cached IP address and port number bound with the unique terminal identifier are read from the local memory again, and then the control instruction is sent to the last sending node again according to the reading result, wherein the timer is started when the control instruction is sent, and the instruction receipt confirmation message is sent immediately by the intelligent control terminal when the control instruction is received.
In one possible design, re-reading the latest cached IP address and port number bound to the unique terminal identifier from the local memory includes:
and judging whether the retransmission times of the control instruction reach a preset times threshold value, if not, re-reading the latest cached IP address and port number which are bound with the unique terminal identifier from the local memory.
In one possible design, when the control instruction is from the client, after determining whether the number of retransmissions of the control instruction reaches a preset number of times threshold, the method further includes:
and when the retransmission times of the control instruction reach the preset times threshold, feeding back a failure prompt message to the client.
The second aspect provides a control communication device suitable for a load peak regulation scene of a central air conditioning system, which is arranged in a server based on a UDP protocol and sequentially connected with an intelligent control terminal through at least one intermediate node in a communication way, and comprises a receiving module, a cache module, a reading module and a sending module which are sequentially connected in a communication way;
the receiving module is configured to receive a heartbeat packet from the intelligent control terminal and sequentially forwarded via each intermediate node in the at least one intermediate node, where the heartbeat packet carries an IP address and a port number of a corresponding sending node in each sending process, and each intermediate node binds and caches an IP address and a port number of a previous sending node with a terminal unique identifier of the intelligent control terminal in a local node in a forwarding process of the heartbeat packet;
the buffer module is used for binding and buffering the IP address and the port number of the last sending node carried in the heartbeat packet and in the at least one intermediate node and the unique identifier of the terminal into a local memory;
the reading module is used for reading the latest cached IP address and port number which are bound with the unique terminal identifier from the local memory when a control instruction is required to be sent to the intelligent control terminal;
and the sending module is used for sending the control instruction to the final sending node according to the latest cached IP address and port number, so that each intermediate node forwards the control instruction to the corresponding previous sending node according to the latest cached IP address and port number which are bound with the unique terminal identifier and are cached in the local node until the control instruction is sent to the intelligent control terminal.
In a third aspect, the present invention provides a computer device comprising a memory, a processor and a transceiver in communication connection in sequence, wherein the memory is adapted to store a computer program, the transceiver is adapted to receive and transmit messages, and the processor is adapted to read the computer program and to perform a control communication method as described in the first aspect or any of the possible designs of the first aspect.
In a fourth aspect, the present invention provides a computer readable storage medium having instructions stored thereon which, when run on a computer, perform a control communication method as described in the first aspect or any of the possible designs of the first aspect.
In a fifth aspect, the invention provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the control communication method as described in the first aspect or any of the possible designs of the first aspect.
The beneficial effect of above-mentioned scheme:
(1) The invention creatively provides a new scheme for issuing control instructions based on UDP protocol, namely, the method is executed by a server which is based on UDP protocol and is sequentially connected with an intelligent control terminal through at least one intermediate node in a communication way, after receiving heartbeat packets which come from the intelligent control terminal and are sequentially forwarded through each intermediate node, the IP address and the port number of the last transmitting node carried in the heartbeat packets are firstly recorded in a local memory in a binding cache with a unique terminal identifier, then when the control instructions are required to be sent, the IP address and the port number which are bound with the unique terminal identifier and are newly cached are read from the local memory, finally, the control instructions are sent to the last transmitting node according to the reading result, so that each intermediate node can conveniently read the IP address and the port number which are bound with the unique terminal identifier and are newly cached in the local node, forwarding the control instruction to the corresponding previous sending node until the control instruction is sent to the intelligent control terminal, so that the method not only skillfully lightens the heavy load caused by long-term connection maintenance of the server and the intelligent control terminal, but also can utilize the characteristic of relatively simple data packet of the UDP protocol to promote the concurrency processing capability of the server, so that the control instruction can be more quickly transmitted, further strengthen the real-time responsiveness, be particularly suitable for the load peak regulation scene of the central air conditioning system (namely, when facing to the huge number of air conditioning system equipment in urban areas, the method obviously lightens the load of the server, simultaneously shows excellent load peak regulation instantaneity, and injects powerful power for the stability and efficiency of the whole system), is convenient for practical application and popularization.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a control communication method suitable for a load peak regulation scenario of a central air conditioning system according to an embodiment of the present application.
Fig. 2 is a schematic diagram of a flow chart for reporting a heartbeat packet according to an embodiment of the present application.
Fig. 3 is a schematic diagram of a control instruction issuing flow provided in an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a control communication device suitable for a load peak regulation scenario of a central air conditioning system according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the present invention will be briefly described below with reference to the accompanying drawings and the description of the embodiments or the prior art, and it is obvious that the following description of the structure of the drawings is only some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art. It should be noted that the description of these examples is for aiding in understanding the present invention, but is not intended to limit the present invention.
It should be understood that although the terms first and second, etc. may be used herein to describe various objects, these objects should not be limited by these terms. These terms are only used to distinguish one object from another. For example, a first object may be referred to as a second object, and similarly a second object may be referred to as a first object, without departing from the scope of example embodiments of the invention.
It should be understood that for the term "and/or" that may appear herein, it is merely one association relationship that describes an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: three cases of A alone, B alone or both A and B exist; as another example, A, B and/or C, can represent the presence of any one of A, B and C or any combination thereof; for the term "/and" that may appear herein, which is descriptive of another associative object relationship, it means that there may be two relationships, e.g., a/and B, it may be expressed that: the two cases of A and B exist independently or simultaneously; in addition, for the character "/" that may appear herein, it is generally indicated that the context associated object is an "or" relationship.
Examples
As shown in fig. 1, the control communication method provided in the first aspect of the present embodiment and applicable to the load peak regulation scenario of the central air conditioning system may be, but is not limited to, executed by a server based on UDP (User Datagram Protocol ) protocol and sequentially connected to the intelligent control terminal through at least one intermediate node in a communication manner. Considering that the UDP protocol is a stateless communication protocol, it is not necessary to keep a long connection between the server and the intelligent control terminal (i.e. it means that both ends do not need to be equipped with dedicated threads to maintain a long connection), but there is also a disadvantage, for example, that the server cannot find the intelligent control terminal without knowing the IP address and port, and therefore it is necessary to overcome the disadvantage by combining the control communication methods as shown in fig. 1 to 3. Specifically, the control communication method may include, but is not limited to, the following steps S1 to S4.
S1, receiving heartbeat packets which come from the intelligent control terminal and are sequentially forwarded by each intermediate node in the at least one intermediate node, wherein the heartbeat packets carry IP addresses and port numbers of corresponding sending nodes in each sending process, and each intermediate node binds and caches the IP address and port number of the previous sending node and the unique terminal identifier of the intelligent control terminal in a local node in the forwarding process of the heartbeat packets.
In step S1, the heartbeat packet is used to continuously update and maintain the cache records of the respective intermediate nodes and the server, so as to ensure the stability and the persistence of the network connection. As shown in fig. 2, specifically, the heartbeat packet is periodically sent by the intelligent control terminal (i.e., the # 1 intelligent control terminal in fig. 2), where a specific sending period is greater than or equal to 8 seconds and less than or equal to 15 seconds (10 seconds is illustrated in fig. 2). Specifically, the at least one intermediate node includes, but is not limited to, a 4G/5G base station, a primary router, a secondary router, and/or the like. As shown in fig. 2, the server is sequentially communicatively connected to the intelligent control terminal through a secondary router, a primary router and a 4G base station, where the 4G base station is communicatively connected to the intelligent control terminal based on a UDP protocol, and the 4G base station binds and caches an IP address and a port number (i.e., IP:192.168.1.10 and port: 18012 in fig. 2) of the intelligent control terminal and a terminal unique identifier of the intelligent control terminal when receiving the heartbeat packet, and makes the heartbeat packet carry an IP address and a port number (i.e., IP:192.168.2.101 and port: 27012 in fig. 2) of the 4G base station when forwarding the heartbeat packet; the primary router is also in communication connection with the 4G base station based on UDP protocol, and can bind and cache the IP address and port number (namely IP:192.168.2.101 and port: 27012 in figure 2) of the 4G base station and the unique terminal identification of the intelligent control terminal when receiving the heartbeat packet, and enable the heartbeat packet to carry the IP address and port number (namely IP:192.168.3.201 and port: 31012 in figure 2) of the primary router when forwarding the heartbeat packet; the secondary router is also in communication connection with the primary router based on the UDP protocol, and can bind and cache the IP address and port number (namely IP:192.168.3.201 and port: 31012 in figure 2) of the primary router and the unique terminal identification of the intelligent control terminal when the heartbeat packet is received, and enable the secondary router to carry the IP address and port number (namely IP:192.168.4.105 and port: 21012 in figure 2) of the secondary router when the heartbeat packet is forwarded. Furthermore, the server is also communicatively connected to the secondary router based on the UDP protocol.
S2, binding and caching the IP address and port number of the last sending node carried in the heartbeat packet and in the at least one intermediate node and the unique terminal identifier into a local memory.
In the step S2, as shown in fig. 2, the secondary router is the last sending node, and the server will bind and record the IP address and port number (i.e. IP:192.168.4.105 and port: 21012 in fig. 2) of the secondary router and the unique terminal identifier of the intelligent control terminal into the local memory.
S3, when a control instruction is required to be sent to the intelligent control terminal, reading the latest cached IP address and port number which are bound with the unique terminal identifier from the local memory.
In the step S3, as shown in fig. 3, the control instruction may be, but is not limited to, from a client communicatively connected to the server.
S4, according to the latest cached IP address and port number, the control instruction is sent to the final sending node, so that each intermediate node forwards the control instruction to the corresponding previous sending node according to the latest cached IP address and port number of the local node, which are bound with the unique terminal identifier, until the control instruction is sent to the intelligent control terminal.
In step S4, the latest cached IP address and port number are the target address of the control instruction. As shown in fig. 3, the server may send the control instruction to the secondary router according to the IP address and port number (i.e., IP:192.168.4.105 and port: 21012 in fig. 3) of the secondary router; the secondary router forwards the control instruction to the primary router according to the IP address and port number (i.e. IP:192.168.3.201 and port: 31012 in FIG. 3) which are bound with the unique terminal identifier and are newly cached at the local node; the primary router forwards the control instruction to the 4G base station according to the IP address and port number (i.e. IP:192.168.2.101 and port: 27012 in FIG. 3) which are bound with the unique terminal identifier and are newly cached at the local node; the 4G base station forwards the control instruction to the intelligent control terminal according to the IP address and the port number (i.e., IP:192.168.1.10 and port: 18012 in fig. 3) which are bound to the unique identifier of the terminal and are newly cached in the local node, so that the control instruction reaches a final destination, and finally the intelligent control terminal executes the control instruction.
After the step S4, in order to ensure that the control command is successfully issued, the intelligent control terminal immediately uploads a command receipt acknowledgement message when receiving the control command, and forwards the command receipt acknowledgement message to the server sequentially through the intermediate nodes, where it is preferable that, after the control command is sent to the last sending node according to the latest cached IP address and port number, the method further includes, but is not limited to, the following step S5.
S5, if the timing value of the timer reaches the preset duration threshold, the instruction receipt confirmation message from the intelligent control terminal and sequentially forwarded by the intermediate nodes is not received, the latest cached IP address and port number bound with the unique terminal identifier are read again from the local memory, and then the control instruction is sent to the last sending node again according to the reading result, wherein the timer is started when the control instruction is sent, and the instruction receipt confirmation message is sent immediately by the intelligent control terminal when the control instruction is received.
In the step S5, the preset time period threshold may be set in advance based on the number of intermediate nodes (in general, the larger the number is, the longer the preset time period threshold is), and for the case shown in fig. 2 and 3, the preset time period threshold may be set to 3 seconds by way of example. The uploading mode of the instruction receipt confirmation message is the same as that of the heartbeat packet, and the instruction receipt confirmation message can be used as the heartbeat packet so as to update the cache records of each intermediate node and the server.
In step S5, in order to achieve the purpose of limited retransmission, it is preferable to re-read the latest cached IP address and port number bound to the unique identifier of the terminal from the local memory, including but not limited to: and judging whether the retransmission times of the control instruction reach a preset times threshold value, if not, re-reading the latest cached IP address and port number which are bound with the unique terminal identifier from the local memory. The aforementioned preset number of times threshold may be exemplified by 3 times. In addition, when the control instruction is from the client, after judging whether the number of retransmissions of the control instruction reaches a preset number threshold, the method further includes: when it is determined that the number of retransmissions of the control command reaches the preset number of times threshold, a failure prompt message is sent back to the client, for example, the client is notified that the intelligent control terminal # 1 may be offline or the network is not smooth, and the terminal is checked or retried later (i.e. the intelligent control terminal # 1 is used as the failure prompt message).
The control communication method is executed by a server which is based on UDP protocol and is connected with an intelligent control terminal through at least one intermediate node in a communication way, after receiving heartbeat packets which come from the intelligent control terminal and are sequentially forwarded through each intermediate node, the IP address and port number of the last transmitting node carried in the heartbeat packets are firstly bound and cached with the unique terminal identifier to be recorded in a local memory, then when the control command is required to be transmitted, the IP address and port number which are bound with the unique terminal identifier and are newly cached are read from the local memory, finally, the control command is transmitted to the last transmitting node according to the reading result, so that each intermediate node forwards the control instruction to the corresponding previous sending node according to the IP address and port number which are bound with the unique identifier of the terminal and are newly cached in the local node until the control instruction is sent to the intelligent control terminal, thereby not only smartly reducing the heavy burden caused by the maintenance of long-term connection between the server and the intelligent control terminal while realizing the equivalent real-time communication mechanism based on the long-term connection protocol, but also improving the concurrency processing capability of the server by utilizing the characteristic of relatively simple data packet of the UDP protocol, so that the control instruction can be more quickly conveyed, further strengthening the real-time responsiveness, being particularly suitable for the load peak regulation scene of the central air conditioning system (namely, when facing the huge number of air conditioning system equipment in urban level, the method obviously reduces the load of the server and simultaneously shows excellent load peak regulation instantaneity, and powerful power is injected into the stability and the efficiency of the whole system, so that the method is convenient for practical application and popularization.
As shown in fig. 4, a second aspect of the present embodiment provides a virtual device implementing the control communication method described in the first aspect, where the virtual device is disposed in a server based on a UDP protocol and sequentially connected to an intelligent control terminal by at least one intermediate node in a communication manner, and includes a receiving module, a buffering module, a reading module, and a sending module that are sequentially connected in a communication manner;
the receiving module is configured to receive a heartbeat packet from the intelligent control terminal and sequentially forwarded via each intermediate node in the at least one intermediate node, where the heartbeat packet carries an IP address and a port number of a corresponding sending node in each sending process, and each intermediate node binds and caches an IP address and a port number of a previous sending node with a terminal unique identifier of the intelligent control terminal in a local node in a forwarding process of the heartbeat packet;
the buffer module is used for binding and buffering the IP address and the port number of the last sending node carried in the heartbeat packet and in the at least one intermediate node and the unique identifier of the terminal into a local memory;
the reading module is used for reading the latest cached IP address and port number which are bound with the unique terminal identifier from the local memory when a control instruction is required to be sent to the intelligent control terminal;
and the sending module is used for sending the control instruction to the final sending node according to the latest cached IP address and port number, so that each intermediate node forwards the control instruction to the corresponding previous sending node according to the latest cached IP address and port number which are bound with the unique terminal identifier and are cached in the local node until the control instruction is sent to the intelligent control terminal.
The working process, working details and technical effects of the foregoing apparatus provided in the second aspect of the present embodiment may refer to the control communication method described in the first aspect, which are not described herein again.
As shown in fig. 5, a third aspect of the present embodiment provides a computer device for executing the control communication method according to the first aspect, which includes a memory, a processor and a transceiver that are sequentially connected in communication, where the memory is configured to store a computer program, the transceiver is configured to send and receive a message, and the processor is configured to read the computer program, and execute the control communication method according to the first aspect. By way of specific example, the Memory may include, but is not limited to, random-Access Memory (RAM), read-Only Memory (ROM), flash Memory (Flash Memory), first-in first-out Memory (First Input First Output, FIFO), and/or first-in last-out Memory (First Input Last Output, FILO), etc.; the processor may be, but is not limited to, a microprocessor of the type STM32F105 family. In addition, the computer device may include, but is not limited to, a power module, a display screen, and other necessary components.
The working process, working details and technical effects of the foregoing computer device provided in the third aspect of the present embodiment may refer to the control communication method described in the first aspect, which are not described herein again.
A fourth aspect of the present embodiment provides a computer-readable storage medium storing instructions containing the control communication method according to the first aspect, i.e. the computer-readable storage medium has instructions stored thereon which, when run on a computer, perform the control communication method according to the first aspect. The computer readable storage medium refers to a carrier for storing data, and may include, but is not limited to, a floppy disk, an optical disk, a hard disk, a flash Memory, and/or a Memory Stick (Memory Stick), where the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
The working process, working details and technical effects of the foregoing computer readable storage medium provided in the fourth aspect of the present embodiment may refer to the control communication method as described in the first aspect, and are not repeated herein.
A fifth aspect of the present embodiment provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the control communication method according to the first aspect. Wherein the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus.
Finally, it should be noted that: the foregoing description is only of the preferred embodiments of the invention and is not intended to limit the scope of the invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. The control communication method suitable for the load peak regulation scene of the central air conditioning system is characterized by being executed by a server which is based on the UDP protocol and is sequentially communicated with an intelligent control terminal through at least one intermediate node, and comprises the following steps:
receiving a heartbeat packet which is from the intelligent control terminal and is sequentially forwarded by each intermediate node in the at least one intermediate node, wherein the heartbeat packet carries an IP address and a port number of a corresponding sending node in each sending process, and each intermediate node binds and caches the IP address and the port number of a previous sending node and a terminal unique identifier of the intelligent control terminal in a local node in the forwarding process of the heartbeat packet;
binding and caching the IP address and port number of the last sending node carried in the heartbeat packet and in the at least one intermediate node and the unique terminal identifier into a local memory;
when a control instruction is required to be sent to the intelligent control terminal, reading an IP address and a port number which are bound with the unique terminal identifier and are cached latest from the local memory;
according to the latest cached IP address and port number, the control instruction is sent to the final sending node, so that the control instruction is forwarded to the corresponding previous sending node by each intermediate node according to the latest cached IP address and port number which are bound with the unique terminal identifier and are cached in the local node until the control instruction is sent to the intelligent control terminal;
after sending the control instruction to the last sending node according to the latest cached IP address and port number, the method further includes:
if the timing value of the timer reaches the preset duration threshold, the instruction receipt confirmation message from the intelligent control terminal and sequentially forwarded by the intermediate nodes is not received yet, the latest cached IP address and port number bound with the unique terminal identifier are read from the local memory again, and then the control instruction is sent to the last sending node again according to the reading result, wherein the timer is started when the control instruction is sent, and the instruction receipt confirmation message is sent immediately by the intelligent control terminal when the control instruction is received.
2. The control communication method according to claim 1, wherein the at least one intermediate node comprises a 4G/5G base station, a primary router and/or a secondary router.
3. The control communication method according to claim 1, wherein the heartbeat packet is periodically transmitted by the intelligent control terminal.
4. The control communication method according to claim 3, wherein the transmission cycle of the heartbeat packet is 8 seconds or more and 15 seconds or less.
5. The control communication method according to claim 1, wherein re-reading the latest cached IP address and port number bound to the terminal unique identifier from the local memory includes:
and judging whether the retransmission times of the control instruction reach a preset times threshold value, if not, re-reading the latest cached IP address and port number which are bound with the unique terminal identifier from the local memory.
6. The control communication method according to claim 5, wherein when the control instruction is from a client, after judging whether or not the number of retransmissions of the control instruction reaches a preset number threshold, the method further comprises:
and when the retransmission times of the control instruction reach the preset times threshold, feeding back a failure prompt message to the client.
7. The control communication device suitable for the load peak regulation scene of the central air conditioning system is characterized by being arranged in a server which is based on a UDP protocol and is sequentially in communication connection with an intelligent control terminal through at least one intermediate node, and comprising a receiving module, a cache module, a reading module and a sending module which are sequentially in communication connection;
the receiving module is configured to receive a heartbeat packet from the intelligent control terminal and sequentially forwarded via each intermediate node in the at least one intermediate node, where the heartbeat packet carries an IP address and a port number of a corresponding sending node in each sending process, and each intermediate node binds and caches an IP address and a port number of a previous sending node with a terminal unique identifier of the intelligent control terminal in a local node in a forwarding process of the heartbeat packet;
the buffer module is used for binding and buffering the IP address and the port number of the last sending node carried in the heartbeat packet and in the at least one intermediate node and the unique identifier of the terminal into a local memory;
the reading module is used for reading the latest cached IP address and port number which are bound with the unique terminal identifier from the local memory when a control instruction is required to be sent to the intelligent control terminal;
the sending module is configured to send the control instruction to the last sending node according to the latest cached IP address and port number, so that the control instruction is forwarded to the corresponding previous sending node by each intermediate node according to the latest cached IP address and port number bound with the unique identifier of the terminal and at the local node until the control instruction is sent to the intelligent control terminal;
and the sending module is further configured to, after sending the control instruction to the last sending node according to the latest cached IP address and port number, if an acknowledgement message is not received yet from the intelligent control terminal and is sequentially forwarded via each intermediate node when the timing value of the timer reaches a preset duration threshold, re-read the latest cached IP address and port number bound to the unique identifier of the terminal from the local memory, and then re-send the control instruction to the last sending node according to the read result, where the timer is started when the control instruction is sent, and the acknowledgement message is immediately sent by the intelligent control terminal when the control instruction is received.
8. A computer device comprising a memory, a processor and a transceiver in communication connection in sequence, wherein the memory is adapted to store a computer program and the transceiver is adapted to send and receive messages, and the processor is adapted to read the computer program and to perform the control communication method according to any one of claims 1-6.
9. A computer readable storage medium having instructions stored thereon which, when executed on a computer, perform the control communication method of any of claims 1 to 6.
CN202311423842.3A 2023-10-31 2023-10-31 Control communication method and device suitable for load peak regulation scene of central air conditioning system Active CN117155940B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311423842.3A CN117155940B (en) 2023-10-31 2023-10-31 Control communication method and device suitable for load peak regulation scene of central air conditioning system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311423842.3A CN117155940B (en) 2023-10-31 2023-10-31 Control communication method and device suitable for load peak regulation scene of central air conditioning system

Publications (2)

Publication Number Publication Date
CN117155940A CN117155940A (en) 2023-12-01
CN117155940B true CN117155940B (en) 2024-01-30

Family

ID=88901165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311423842.3A Active CN117155940B (en) 2023-10-31 2023-10-31 Control communication method and device suitable for load peak regulation scene of central air conditioning system

Country Status (1)

Country Link
CN (1) CN117155940B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103812947A (en) * 2014-02-28 2014-05-21 深圳市创梦天地科技有限公司 Data interaction system and method
CN104038322A (en) * 2014-06-16 2014-09-10 北京邮电大学 Intermediate node, communication network and data transmission control method
CN106973303A (en) * 2017-03-20 2017-07-21 重庆邮电大学 A kind of D2D video distributions and pre-cache method based on network code
CN110971701A (en) * 2019-12-10 2020-04-07 广州番禺职业技术学院 Internet of things communication method and device
CN116866429A (en) * 2022-03-28 2023-10-10 华为技术有限公司 Data access method and related device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8369212B2 (en) * 2006-08-29 2013-02-05 Hewlett-Packard Development Company, L.P. Network path validation based on user-specified criteria

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103812947A (en) * 2014-02-28 2014-05-21 深圳市创梦天地科技有限公司 Data interaction system and method
CN104038322A (en) * 2014-06-16 2014-09-10 北京邮电大学 Intermediate node, communication network and data transmission control method
CN106973303A (en) * 2017-03-20 2017-07-21 重庆邮电大学 A kind of D2D video distributions and pre-cache method based on network code
CN110971701A (en) * 2019-12-10 2020-04-07 广州番禺职业技术学院 Internet of things communication method and device
CN116866429A (en) * 2022-03-28 2023-10-10 华为技术有限公司 Data access method and related device

Also Published As

Publication number Publication date
CN117155940A (en) 2023-12-01

Similar Documents

Publication Publication Date Title
CN103906207B (en) Wireless sensor network data transmission method based on self adaptation awakening technology on demand
US8488501B2 (en) Network assisted power management
CN106059951B (en) A kind of transfer control method for based on multilevel congestion feedback in DCN
US7852872B2 (en) System and method for message queue management in a power-save network
CN101951370A (en) Reliable file transmission method based on UDP
CN101212401B (en) Grid-oriented configurable data transmission method and system
CN112261142B (en) RDMA network data retransmission method, device and FPGA
CN107395471A (en) A kind of smart home energy-saving control system
CN104283800B (en) Gateway apparatus, communication system and flow control methods
CN103338158B (en) A kind of GOOSE message transmission delay jitter suppression method
CN101997775A (en) Method for improving utility route in delay tolerant network
CN107071067B (en) Cgo-based high-performance stock market access system and method
CN117155940B (en) Control communication method and device suitable for load peak regulation scene of central air conditioning system
Cass A robust parallel implementation of 2D model-based recognition
CN112367409B (en) Internet of things node data transmission control method and device
CN112637962A (en) Bluetooth gateway optimization method applied to feeding environment monitoring
CN202206412U (en) Full duplex RS485 bus communication device on basis of collision-free protocol
An Medium access control protocol with dynamic duty cycle in wireless sensor network
CN104378778A (en) Method and system for communication between master station and slave station in Internet of Things and conversion gateway
CN113612737A (en) Long message reliable transmission method based on grouping and retransmission mechanism
JP7052865B2 (en) Servers, communication systems, communication methods and programs
CN204217129U (en) Wireless selective multi-relay self-cooperation transmission device
CN112866079B (en) Method, device and equipment for transmitting regular messages based on Internet of things and storage medium
CN114363999B (en) Method, device and storage medium for sending downlink instructions of Internet of things
CN107181696A (en) A kind of method for saving parcel data network resources and energy consumption

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