Search

CN-121984753-A - Bidirectional communication and remote control method between Internet of things equipment and cloud platform

CN121984753ACN 121984753 ACN121984753 ACN 121984753ACN-121984753-A

Abstract

The invention relates to the technical field of communication and remote control of the Internet of things, and discloses a two-way communication and remote control method between equipment and a cloud platform of the Internet of things, which comprises the following modules and components that S1, equipment identity authentication and reference configuration stage; the method comprises the steps of S2, establishing bidirectional encryption communication, S3, adapting dynamic bandwidth, S4, processing a remote control instruction, S5, closing a loop by state feedback, S6, monitoring abnormality and fault tolerance, S7, archiving data and optimizing iteration, wherein the safety and reliability of bidirectional communication between the Internet of things equipment and a cloud platform are greatly improved through multiple safety mechanisms and stable communication design, illegal access and data tampering risks are blocked by an encryption protocol and identity authentication mechanism from the source, the control instruction and state data transmission are not lost and delayed by a double-link transmission and link maintenance mechanism, the communication requirement in a complex network environment is effectively adapted, and deviation after the equipment executes the instruction can be automatically corrected by closed loop control logic.

Inventors

  • ZHANG MINGYANG
  • YANG XUENING

Assignees

  • 沈阳宝石金卡信息技术股份有限公司

Dates

Publication Date
20260505
Application Date
20260202

Claims (8)

  1. 1. The two-way communication and remote control method between the Internet of things equipment and the cloud platform is characterized by comprising the following steps of: S1, equipment identity authentication and reference configuration stage, namely entering equipment basic information to construct a white list database, completing equipment access through double-factor authentication and digital signature, issuing communication parameter references and calibrating equipment and a cloud platform clock; s2, in a two-way encryption communication establishment stage, an MQTT-SN industrial enhancement protocol is adopted to establish a communication link, data transmission safety is guaranteed through AES-256-GCM encryption and CRC32 check, and the link is maintained to be communicated through a heartbeat packet and hierarchical reconnection mechanism; S3, in a dynamic bandwidth adaptation stage, acquiring network bandwidth utilization rate packet loss rate transmission delay parameters, calculating an adaptation transmission rate through a bandwidth adaptation algorithm, and scheduling bandwidth and reserving redundancy by a cloud platform according to a priority strategy; s4, in a remote control instruction processing stage, analyzing the control instruction, converting the control instruction into a binary format, adopting a main and standby double-chain parallel issuing instruction, orderly executing by a device end through a buffer queue, and returning an ACK receipt; s5, in a state feedback closed loop stage, acquiring running state data after the equipment executes the instruction, feeding back the running state data to the cloud platform through a double mode, calculating deviation between an actual value and a target value, and generating an automatic correction instruction; S6, in an abnormality monitoring and fault-tolerant stage, monitoring three-dimensional abnormality of a communication link, equipment operation and instruction execution results, triggering fault-tolerant measures such as automatic retry of audible and visual alarm operation and maintenance work order pushing of a local cache; and S7, in the data archiving and iterative optimization stage, structured and unstructured data are stored in a classified mode, communication parameters are optimized in an iterative mode through a gradient descent method, and joint loss function guiding parameter adjustment is calculated.
  2. 2. The two-way communication and remote control method between the Internet of things equipment and the cloud platform is characterized in that the equipment identity authentication and reference configuration stage comprises the steps of enabling an equipment information input terminal to read equipment model communication protocol type rated control parameter threshold values, enabling an equipment white list database to store unique identification of authorized equipment, enabling a double-factor authentication unit and a digital signature engine to complete identity authentication by means of a pre-stored key verification and digital signature mechanism, generating a temporary session key with a validity period of 1 hour, supporting 24-hour offline cache authentication information of the equipment, enabling a temporary session key generator to negotiate and generate a temporary session key based on an RSA-4096 algorithm, enabling a reference parameter configuration tool to issue communication parameter references such as a transmission baud rate heartbeat packet interval retransmission threshold value, and enabling a clock synchronization unit to calibrate equipment and a cloud platform clock through an NTP protocol, and guaranteeing a time error to be less than or equal to 10ms.
  3. 3. The method for two-way communication and remote control between the Internet of things equipment and the cloud platform according to claim 1 is characterized in that the two-way encryption communication establishment phase comprises the following steps that an MQTT-SN industrial enhancement protocol adaptation unit is optimized based on a standard MQTT-SN protocol, intermittent transmission and message priority ordering are supported, control instruction priority is higher than state data, an AES-256-GCM encryption unit encrypts transmission data to provide data encryption integrity check sum anti-replay attack capability, an RSA-4096 key negotiation unit adopts an RSA-4096 algorithm to achieve temporary session key negotiation, a public key is stored in a cloud platform white list database, a private key is solidified in the equipment local, a CRC32 integrity check unit calculates CRC32 check codes of the transmission data to achieve two-way check between the equipment end and the cloud platform, a heartbeat packet management unit sends heartbeat packets containing signal strength of the state codes at preset intervals, a hierarchical reconnection engine returns a confirmation response after receiving the heartbeat packets, and three-time hierarchical failure interrupt links are marked according to 500ms, 1s and 3 s.
  4. 4. The method for two-way communication and remote control between the Internet of things equipment and the cloud platform according to claim 1, wherein the dynamic bandwidth adaptation stage comprises the following steps that a network state acquisition sensor acquires network bandwidth utilization rate packet loss rate transmission delay parameters, acquisition frequency is 1 time/second, and a bandwidth adaptation algorithm unit passes the formula based on the network state parameters: Calculating an adapted transmission rate, wherein In order to adapt the post-transmission rate, As a reference bandwidth of the band-width, In order for the packet loss rate to be the same, The method comprises the steps of providing a control instruction priority state data queuing management module, providing a control instruction with a bandwidth utilization rate, providing a control instruction priority state data queuing management module with a control instruction priority state data queuing management module, providing a control instruction with 20% bandwidth redundancy, and providing a control instruction burst or network congestion scene by a bandwidth redundancy reservation unit with 20% total bandwidth.
  5. 5. The two-way communication and remote control method between the Internet of things equipment and the cloud platform according to claim 1 is characterized in that the remote control instruction processing stage comprises the following steps of controlling an instruction analysis engine to analyze operation type target parameter execution time limit information of a control instruction, a binary instruction conversion unit to encode the analyzed instruction into a binary format, wherein the instruction length is less than or equal to 32 bytes, a main and standby double-link transmission unit is used for transmitting the instruction in parallel by adopting a 4G/5G main channel and a LoRa standby channel, the equipment can execute the instruction after receiving any channel instruction, the switching delay is less than or equal to 10ms, an instruction buffer queue is used for storing the instruction to be executed by adopting a FIFO, the instruction with the highest priority can be inserted into the front end of the queue for priority execution, and an ACK receipt generation unit is used for generating the 1-byte ACK receipt and comprises three states in successful and failed execution.
  6. 6. The two-way communication and remote control method between the Internet of things equipment and the cloud platform according to claim 1 is characterized in that the state feedback closed-loop stage comprises the following steps that a state data acquisition unit acquires actual parameter load rate energy consumption data after the equipment executes an instruction, a result feedback unit adopts a double mode of immediately feeding back and periodically reporting the state after the instruction is executed, the execution result feedback delay is less than or equal to 50ms, the periodic reporting interval is 1s-60s self-adaptive adjustment, and a deviation calculation unit passes through the formula: calculating a deviation of the actual value from the target value, wherein As a result of the value of the deviation, As a function of the actual parameters, The automatic correction instruction generator generates a correction instruction when the deviation value exceeds the threshold value, and the correction target parameter is that 。
  7. 7. The bidirectional communication and remote control method between the Internet of things equipment and the cloud platform is characterized in that the abnormality monitoring and fault tolerance stage comprises the following steps that a multidimensional monitoring unit monitors abnormality of three dimensions of an operation instruction execution result of communication link equipment, a local caching unit caches the latest 100 control instructions and state data when communication is interrupted, non-volatile storage is adopted, batch synchronization is carried out according to time stamps after connection is restored, an automatic retry unit triggers at most 3 retries when instruction execution fails, retry intervals are sequentially 500ms1s2s, an audible and visual alarm device triggers audible and visual alarm when serious abnormality occurs, sound intensity is not less than 85dB, lamp flashing frequency is 2 times/second, and an operation and maintenance work sheet pushing unit pushes abnormal information to an operation and maintenance management platform to generate an operation and maintenance work sheet containing abnormal grades.
  8. 8. The two-way communication and remote control method between the Internet of things equipment and the cloud platform according to claim 1 is characterized in that the data archiving and iterative optimization stage comprises the following steps that a MySQL structured storage unit stores control instructions to record structured data such as state deviation data exception logs, a MongoDB unstructured storage unit stores unstructured data such as original state data of the running track of the communication link log equipment, a data retrieval engine supports multi-dimensional retrieval according to the type of the equipment ID time range data, the retrieval response time is less than or equal to 1s, and a gradient descent parameter optimization unit passes the formula on the basis of data of nearly 30 days per month: iteratively optimizing communication parameters, wherein As a parameter after the iteration, For pre-iteration parameters, 0.001 is the learning rate, To a gradient of the loss function, the loss function , In order to average the communication delay, And the loss function calculation unit calculates a joint loss function value of the communication delay and the packet loss rate.

Description

Bidirectional communication and remote control method between Internet of things equipment and cloud platform Technical Field The invention relates to the technical field of communication and remote control of the Internet of things, in particular to a bidirectional communication and remote control method between Internet of things equipment and a cloud platform. Background Along with the rapid development of the technology of the Internet of things, various intelligent devices gradually realize networking coordination, and the bidirectional communication and remote control between the devices and the cloud platform become the core links of the application of the Internet of things, wherein the production devices in industrial scenes are remotely scheduled, the operation and maintenance management of intelligent infrastructures and the equipment linkage control in the intelligent home are dependent on the stable and safe data stream transmission between the devices and the cloud platform, and the accurate and timely control instruction execution is realized; In the prior art, in the two-way communication and remote control of the Internet of things equipment and the cloud platform, the technology has various limitations, namely, a single identity authentication or a simple encryption mode is adopted in the aspect of safety protection, the risks of illegal access, data tampering and eavesdropping are easily suffered, and the safety of communication data is difficult to ensure; At present, the number of the devices of the internet of things is continuously increased, the application environment is increasingly complex, the influence of network fluctuation, illegal invasion, control deviation and other problems on communication and control performance is increasingly prominent, and a set of technical scheme capable of considering safety, reliability, accuracy and environment suitability is needed to meet the actual application demands under different scenes. Disclosure of Invention The invention aims to provide a two-way communication and remote control method between Internet of things equipment and a cloud platform, so as to solve the problems in the background technology. In order to achieve the above purpose, the present invention adopts the following technical scheme: A two-way communication and remote control method between Internet of things equipment and a cloud platform comprises the following steps: S1, equipment identity authentication and reference configuration stage, namely entering equipment basic information to construct a white list database, completing equipment access through double-factor authentication and digital signature, issuing communication parameter references and calibrating equipment and a cloud platform clock; s2, in a two-way encryption communication establishment stage, an MQTT-SN industrial enhancement protocol is adopted to establish a communication link, data transmission safety is guaranteed through AES-256-GCM encryption and CRC32 check, and the link is maintained to be communicated through a heartbeat packet and hierarchical reconnection mechanism; S3, in a dynamic bandwidth adaptation stage, acquiring network bandwidth utilization rate packet loss rate transmission delay parameters, calculating an adaptation transmission rate through a bandwidth adaptation algorithm, and scheduling bandwidth and reserving redundancy by a cloud platform according to a priority strategy; s4, in a remote control instruction processing stage, analyzing the control instruction, converting the control instruction into a binary format, adopting a main and standby double-chain parallel issuing instruction, orderly executing by a device end through a buffer queue, and returning an ACK receipt; s5, in a state feedback closed loop stage, acquiring running state data after the equipment executes the instruction, feeding back the running state data to the cloud platform through a double mode, calculating deviation between an actual value and a target value, and generating an automatic correction instruction; S6, in an abnormality monitoring and fault-tolerant stage, monitoring three-dimensional abnormality of a communication link, equipment operation and instruction execution results, triggering fault-tolerant measures such as automatic retry of audible and visual alarm operation and maintenance work order pushing of a local cache; and S7, in the data archiving and iterative optimization stage, structured and unstructured data are stored in a classified mode, communication parameters are optimized in an iterative mode through a gradient descent method, and joint loss function guiding parameter adjustment is calculated. The technical scheme is further improved in that the equipment identity authentication and reference configuration stage comprises the following steps that equipment information is input into a terminal to read a rated control parameter threshold of an equipment model communication pro