Equipment control method and device, server, system and storage medium
By dynamically delegating control logic to the local controller on the edge side when the network connection between the digital base and the protocol gateway device is abnormal, a seamless transition is achieved, solving the problem of control failure caused by network interruption and ensuring continuous and reliable control of the device.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GREE ELECTRIC APPLIANCE INC OF ZHUHAI
- Filing Date
- 2025-12-24
- Publication Date
- 2026-05-01
AI Technical Summary
In existing technologies, network connection interruptions between the digital base station and the protocol gateway device prevent control commands from being issued, affecting the continuity and reliability of the system.
The digital dock intelligently detects network connection status. When an anomaly is detected, the target control logic is dynamically delegated to the local controller on the edge side, allowing the local controller to take over control instead of the digital dock, thus achieving a seamless transition from centralized control to autonomous edge takeover.
When network connectivity is abnormal, it ensures continuous and reliable control of devices, solves the problem of control command loss and system loss of control caused by network latency and interruption in traditional IoT architecture, and improves the control continuity and reliability of the system under abnormal network conditions.
Smart Images

Figure CN121967452A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of air conditioning control technology, and in particular to a control method, device, server, system and storage medium for a device. Background Technology
[0002] In current smart building, industrial automation, and smart energy management systems, IoT (protocol gateway) devices are widely used in scenarios such as environmental monitoring, equipment control, and data acquisition. These devices are typically connected to a "digital base"—that is, a higher-level management system or cloud platform—through a network. The digital base centrally executes device management, policy distribution, and control logic calculations, achieving centralized control, visual monitoring, and intelligent decision-making. When the network is unobstructed, it operates stably and efficiently.
[0003] However, this centralized architecture heavily relies on a continuous and reliable network connection. When network anomalies occur, such as network outages, high latency, or packet loss, communication between the protocol gateway device and the digital base station will be interrupted. This will prevent control commands from being issued, leading to control failure, or even device malfunctions or partial system paralysis, severely impacting the continuity and reliability of the system. Summary of the Invention
[0004] This application provides a device control method, apparatus, server, system, and storage medium to solve the technical problem in the prior art where, during the process of controlling a protocol gateway device via a digital dock, when the network connection between the digital dock and the protocol gateway device is interrupted, control commands cannot be issued, resulting in control failure and affecting the continuity and reliability of the system.
[0005] In a first aspect, this application provides a device control method applied to a digital dock, wherein the digital dock controls multiple protocol gateway devices via a network connection, the method comprising: If an anomaly is detected in the network connection with the target protocol gateway device, the target control logic and target local controller corresponding to the target protocol gateway device are determined; wherein, the target protocol gateway device is any protocol gateway device controlled by the digital dock. The target control logic is sent to the target local controller, so that the target local controller replaces the digital base station and controls the target protocol gateway device according to the target control logic.
[0006] As an optional implementation, the digital dock periodically sends heartbeat packets to the protocol gateway device. The determination that there is an anomaly in the network connection with the target protocol gateway device includes: For each protocol gateway device, obtain the round-trip delay time corresponding to each heartbeat packet in N consecutive heartbeat packets sent to the protocol gateway device; where N is a positive integer. If the round-trip delay time exceeds a preset time threshold in each case, the protocol gateway device is identified as the target protocol gateway device, and it is determined that there is an anomaly in the network connection between the target protocol gateway device and the target protocol gateway device. And / or, Determine the time difference between the round-trip delay times of any two adjacent heartbeat packets; if the absolute value of multiple time differences is greater than a preset time difference threshold, determine the protocol gateway device as the target protocol gateway device, and determine that there is an anomaly in the network connection with the target protocol gateway device.
[0007] As an optional implementation, sending the target control logic to the target local controller, so that the target local controller replaces the digital dock and controls the target protocol gateway device according to the target control logic, includes: The target control logic and the preset control takeover command are simultaneously sent to the target local controller, so that the target local controller performs the following operations: The system receives the target control logic and the control takeover command, and in response to the control takeover command, controls the target protocol gateway device according to the target control logic.
[0008] As an optional implementation, sending the target control logic to the target local controller, so that the target local controller replaces the digital dock and controls the target protocol gateway device according to the target control logic, includes: In the event of an anomaly in the network connection that is not interrupted, the target control logic is sent to the target local controller; the target local controller is used to store the received target control logic; If it is determined that the network connection with the target protocol gateway device is interrupted, a preset takeover control command is sent to the target local controller; the target local controller is used to control the target protocol gateway device according to the stored target control logic in response to the received takeover control command.
[0009] As an optional implementation, after the target local controller controls the target protocol gateway device in place of the digital dock, the method further includes: The system receives control status data sent by the target local controller; wherein, during the process of controlling the target protocol gateway device, the target local controller acquires control status data of the target protocol gateway device and sends the control status data to the digital dock. Once it is determined that the network connection with the target protocol gateway device has been restored to normal, control over the target protocol gateway device is regained based on the control status data.
[0010] As an optional implementation, the step of regaining control of the target protocol gateway device based on the control status data includes: Based on the control status data, determine the current control progress of the target protocol gateway device; Based on the control progress, control of the target protocol gateway device is regained.
[0011] As an optional implementation, after determining the current control progress of the target protocol gateway device and before resuming control of the target protocol gateway device according to the control progress, the method further includes: Determine whether the control progress is accurate; If the control progress is confirmed to be accurate, a preset takeover control command is sent to the target local controller, and the step of retaking control of the target protocol gateway device according to the control progress is executed. The target local controller is configured to relinquish control of the target protocol gateway device upon receiving the takeover control command.
[0012] As an optional implementation, determining whether the control progress is accurate includes: Based on the control progress, generate theoretical control commands for the target protocol gateway device; The theoretical control command is sent to the target local controller; the target local controller is used to send a notification message to the digital base station that the theoretical control command is accurate when it receives the theoretical control command and determines that the theoretical control command is consistent with the control command it currently generates for the target protocol gateway device. Upon receiving the notification message sent by the target local controller, it is determined that the control progress is accurate.
[0013] Secondly, this application provides a control device for a device applied to a digital dock, wherein the digital dock controls multiple protocol gateway devices via a network connection, and the device includes: The determination module is used to determine the target control logic and target local controller corresponding to the target protocol gateway device when it is determined that there is an anomaly in the network connection between the target protocol gateway device and the target protocol gateway device; wherein, the target protocol gateway device is any protocol gateway device controlled by the digital dock; The control module is used to send the target control logic to the target local controller, so that the target local controller replaces the digital base station and controls the target protocol gateway device according to the target control logic.
[0014] Thirdly, this application provides a server, including: a digital base, a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; The digital base station controls multiple protocol gateway devices via network connection; The memory is used to store computer programs; the processor is used to implement the control method of the device according to any one of the first aspects when executing the computer programs.
[0015] Fourthly, this application provides a control system for a device, comprising: a server, at least one local controller, and multiple protocol gateway devices; The server, as described in the third aspect, is used to control multiple protocol gateway devices via a network connection; The local controller is used to control the target protocol gateway device according to the target control logic sent by the server, replacing the digital dock in the server; the target protocol gateway device is any one of a plurality of protocol gateway devices.
[0016] Fifthly, this application provides a storage medium having a computer program stored thereon, which, when executed by a processor, implements the control method of the device described in any of the first aspects.
[0017] Compared with the prior art, the technical solution provided in this application has the following advantages: The method provided in this application, through the digital base controlling multiple protocol gateway devices via network connection, intelligently detects and predicts the network connection status between the digital base and the protocol gateway devices. When an abnormal network connection is detected, the central control logic corresponding to the protocol gateway device with the abnormal network connection is dynamically and accurately delegated to the edge local controller, so that the local controller can replace the digital base to control the protocol gateway device. This achieves a seamless and smooth transition from "centralized control" to "edge autonomous takeover", effectively solving the problems of control command loss, system response lag, and even loss of control caused by network latency and interruption in traditional IoT architecture. It ensures continuous and reliable control of devices when there is an abnormal network connection, significantly improving the continuity and reliability of device control under abnormal network conditions. Attached Figure Description
[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0021] Figure 1 This application provides a schematic diagram of the structure of a device control system. Figure 2 A flowchart illustrating an embodiment of a device control method provided in this application; Figure 3 A flowchart illustrating an embodiment of another device control method provided in this application; Figure 4 A flowchart illustrating an embodiment of a device control method provided in this application; Figure 5 A flowchart illustrating an embodiment of a device control method provided in this application; Figure 6 This is a schematic diagram of the structure of a digital dock provided in an embodiment of this application; Figure 7 A schematic diagram of the control system of another device provided in an embodiment of this application; Figure 8 A flowchart illustrating an embodiment of a device control method provided in this application; Figure 9 A block diagram illustrating an embodiment of a control device for a device provided in this application; Figure 10 This application provides a schematic diagram of the structure of a server according to an embodiment of the present application. Figure 11 This is a schematic diagram of the control system of another device provided in an embodiment of this application. Detailed Implementation
[0022] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0023] The following disclosure provides numerous different embodiments or examples for implementing various structures of the invention. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of the invention. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.
[0024] To address the technical problem in existing technologies where network connectivity between a digital dock and a protocol gateway device is interrupted during control via a digital dock, resulting in the inability to issue control commands and thus control failure, affecting system continuity and reliability, this application provides a device control method. This method intelligently detects and predicts the network connection status between the digital dock and the protocol gateway devices during control of multiple protocol gateway devices via a network connection. Upon detecting an anomaly in the network connection, it dynamically and precisely delegates the central control logic corresponding to the protocol gateway device with the abnormal network connection to the edge-side local controller. This allows the local controller to control the protocol gateway device in place of the digital dock, achieving a seamless transition from "centralized control" to "edge autonomous takeover." This effectively solves the problems of lost control commands, delayed system response, and even loss of control caused by network latency and interruptions in traditional IoT architectures. It ensures continuous and reliable control of devices even when network connectivity is abnormal, significantly improving the continuity and reliability of device control under abnormal network conditions.
[0025] To facilitate understanding of the control method of the device provided in this application, the control system of the device corresponding to this method will be described exemplarily below.
[0026] See Figure 1 This is a schematic diagram of the structure of a control system for a device provided in an embodiment of this application. Figure 1 As shown, the control system 10 of the device may include: a server 11, at least one local controller 12, and multiple protocol gateway devices 13: protocol gateway device 131, protocol gateway device 132, and protocol gateway device 133.
[0027] The aforementioned server 11 can be a locally deployed server or a cloud server. It can be a single server or a cluster of multiple servers. This application embodiment does not impose any restrictions on this.
[0028] The aforementioned local controller 12 is an intelligent control node deployed at the equipment site. It can perform temporary autonomous control of the protocol gateway device to ensure continuous system operation.
[0029] The aforementioned protocol gateway device 13 is an intelligent interface connecting physical devices and the upper-level control system. It is responsible for protocol conversion, data acquisition, and passively executing received control commands. The protocol gateway device 13 can be installed on an air conditioning unit or on other devices; this embodiment does not impose any limitations on this.
[0030] Furthermore, the protocol gateway devices 131, 132, and 133 included in the protocol gateway device 13 may be different protocol gateway devices installed on the same device, the same protocol gateway device installed on different devices, or different protocol gateway devices installed on different devices. This application embodiment does not limit this.
[0031] Furthermore, this application embodiment does not limit the number of protocol gateway devices 13. Figure 1 The following description uses only the protocol gateway device 13, which includes protocol gateway device 131, protocol gateway device 132, and protocol gateway device 133, as an example.
[0032] In this embodiment of the application, based on Figure 1 In the system architecture shown, a digital docking station can be deployed within the server 11. This digital docking station can establish a network connection with each protocol gateway device 13 and control multiple protocol gateway devices 13 through the network connection. During this process, the network connection may become abnormal due to signal issues, power outages, or other factors, which would prevent the digital docking station from continuing to control the protocol gateway device experiencing the network malfunction.
[0033] In response, this application provides a device control method that allows the local server 12 to continue controlling the gateway protocol device 13 in place of the server 11 when the network connection between the server 11 and the gateway protocol device 13 is abnormal, thereby ensuring continuous and stable control of the protocol gateway device 13 by the digital dock.
[0034] The control method of the device provided in this application will be further explained below with reference to the accompanying drawings and specific embodiments. The embodiments do not constitute a limitation on the embodiments of this application.
[0035] See Figure 2 This is a flowchart illustrating an embodiment of a device control method provided in this application. As one embodiment, Figure 2 The illustrated process can be applied to a digital docking station, which can control multiple protocol gateway devices via a network connection. This digital docking station can provide... Figure 1 The digital docking station deployed in server 11 shown. Figure 2 As shown, the process may include the following steps: Step 201: If it is determined that there is an anomaly in the network connection between the target protocol gateway devices, determine the target control logic and target local controller corresponding to the target protocol gateway device; wherein, the target protocol gateway device is any protocol gateway device controlled by the digital dock.
[0036] The aforementioned target protocol gateway device refers to any protocol gateway device controlled by the digital dock.
[0037] The aforementioned protocol gateway device refers to the intelligent interface that connects physical devices and the upper-level control system. It is responsible for protocol conversion, data acquisition, and passively executing received control commands. For example, the protocol gateway device can be a smart meter, a temperature and humidity sensor, or an air conditioner indoor unit control module.
[0038] The aforementioned network connection anomaly indicates that the communication link between the digital base station and the protocol gateway device is in an abnormal state, including not only complete interruption, but also high latency, severe packet loss, intermittent interruption, etc., which prevent control commands from being reliably and timely issued.
[0039] Target control logic refers to a series of rules, algorithms, or strategies pre-configured or dynamically generated within the digital base for the target protocol gateway device, used to guide its operation. For example, for an indoor air conditioner unit, its control logic might include temperature setpoints, fan speed adjustment algorithms, and energy-saving mode switching conditions.
[0040] The aforementioned target local controller refers to a device deployed at the edge, possessing certain computing and control capabilities, and physically or logically adjacent to the target protocol gateway device (usually connected via a reliable wired or wireless LAN).
[0041] This step serves as the decision-making and preparation phase for the transfer of control. During the control of multiple protocol gateway devices, the digital base continuously monitors the connection status between the device and all its subordinate protocol gateway devices. If an anomaly is detected in the network connection with any protocol gateway device, that device can be identified as the target protocol gateway device with the abnormal network connection.
[0042] In one embodiment, the aforementioned network connection anomaly may be a network connection interruption, in which case the digital dock cannot transmit control commands to the protocol gateway device.
[0043] Therefore, as an optional implementation, when a network connection anomaly is detected, the digital dock can send heartbeat packets to each protocol gateway device in real time or at regular intervals. Subsequently, if no heartbeat packet is received within a preset time period, it can be determined that the network connection has been interrupted.
[0044] As an alternative implementation, the digital dock can detect the TCP (Transmission Control Protocol) connection status with each protocol gateway device in real time or periodically. If a TCP connection is detected to be broken, it can be determined that the network connection with the corresponding protocol gateway device has been interrupted.
[0045] In another embodiment, the aforementioned network connection anomaly can be a network anomaly state where high latency, severe packet loss, intermittent network connection, etc., prevent the reliable transmission of control commands, but the network connection has not yet been interrupted.
[0046] Based on this, as an optional implementation, the digital base station sends heartbeat packets to each protocol gateway device in real time or periodically, and for each protocol gateway device, obtains the round-trip delay for each heartbeat packet sent to the protocol gateway device in N consecutive heartbeat packets. The aforementioned round-trip delay refers to the total time elapsed from when the digital base station sends a probe data packet (such as a heartbeat packet) to the protocol gateway device until the digital base station receives the corresponding response packet returned by the protocol gateway device. It directly reflects the communication latency and health status of the current network link.
[0047] Subsequently, if it is determined that the delay time of each round trip exceeds the preset time threshold, it indicates that there is anomaly such as delay or packet loss in the network connection. Therefore, the protocol gateway device can be identified as the target protocol gateway device, and it can be determined that there is anomaly in the network connection with the target protocol gateway device.
[0048] As an alternative implementation, the digital base station sends heartbeat packets to each protocol gateway device in real time or periodically. For each protocol gateway device, the round-trip delay (RTD) for each heartbeat packet sent in N consecutive attempts is obtained. The RTD refers to the total time elapsed from when the digital base station sends a probe data packet (such as a heartbeat packet) to the protocol gateway device until the digital base station receives the corresponding response packet from the protocol gateway device. It directly reflects the communication latency and health status of the current network link.
[0049] Then, the time difference between the round-trip delay of any two adjacent heartbeat packets can be determined; and if the absolute value of multiple time differences is greater than the preset time difference threshold, the instruction manual indicates that the network connection is in an intermittent abnormal state. Therefore, the protocol gateway device can be identified as the target protocol gateway device, and the network connection between the target protocol gateway device and the target protocol gateway device can be identified as abnormal.
[0050] As another optional implementation, the digital base station sends heartbeat packets to each protocol gateway device in real time or periodically, and for each protocol gateway device, obtains the round-trip delay for each heartbeat packet sent to the protocol gateway device in N consecutive attempts. The round-trip delay refers to the total time elapsed from when the digital base station sends a probe data packet (such as a heartbeat packet) to the protocol gateway device until the digital base station receives the corresponding response packet returned by the protocol gateway device. It directly reflects the communication latency and health status of the current network link.
[0051] Subsequently, if it is determined that the round-trip delay time exceeds the preset duration threshold, the duration difference between the round-trip delay times of any two adjacent heartbeat packets is determined, and the absolute value of multiple duration differences is greater than the preset duration difference threshold, the instruction manual indicates that the network connection is experiencing delay, packet loss, and intermittent abnormal states. Therefore, the protocol gateway device can be identified as the target protocol gateway device, and the network connection with the target protocol gateway device can be identified as abnormal.
[0052] In this step, if an anomaly is found in the network connection with the target protocol gateway device, in order to continue controlling the target protocol gateway device, the digital base station can further determine the target control logic and target local controller corresponding to the target protocol gateway device.
[0053] In one embodiment, different protocol gateway devices may be controlled by the same local controller or by different local controllers. Therefore, in order to accurately distinguish the local controller corresponding to each protocol gateway device, the digital dock may pre-store a first mapping relationship between the protocol gateway device and the local controller.
[0054] Based on this, after determining that there is an anomaly in the network connection between the digital base station and the target protocol gateway device, it can search for the target local controller corresponding to the target protocol gateway device from the first mapping relationship.
[0055] In one embodiment, different protocol gateway devices may have corresponding control logic. Therefore, in order to accurately distinguish the control logic corresponding to each protocol gateway device, the digital base can pre-store a second mapping relationship between the protocol gateway device and the control logic.
[0056] Based on this, after determining that there is an anomaly in the network connection between the digital base station and the target protocol gateway device, it can look up the target control logic corresponding to the target protocol gateway device from the second mapping relationship mentioned above.
[0057] In one embodiment, the digital dock may pre-store a third mapping relationship between the protocol gateway device, control logic, and local controller.
[0058] Based on this, after determining that there is an anomaly in the network connection between the digital base station and the target protocol gateway device, it can look up the target control logic and target local controller corresponding to the target protocol gateway device from the third mapping relationship mentioned above.
[0059] Step 202: Send the above target control logic to the target local controller so that the target local controller replaces the digital base station and controls the target protocol gateway device according to the above target control logic.
[0060] In this step, after determining the target control logic and target local controller corresponding to the target protocol gateway device, the digital base station can send the aforementioned target control logic to the target local controller in order to continue controlling the target protocol gateway device.
[0061] Based on this, the target local controller can continue to control the target protocol gateway device according to the target control logic, replacing the digital base station, based on the received target control logic.
[0062] As to how the target local controller specifically replaces the digital dock to continue controlling the target protocol gateway device, this will be explained in detail below. Figure 3 and Figure 4 The process shown will be explained in detail here.
[0063] The technical solution provided in this application, when an anomaly is detected in the network connection between target protocol gateway devices, determines the target control logic and target local controller corresponding to the target protocol gateway device. The target protocol gateway device can be any protocol gateway device controlled by the digital dock. The target control logic is sent to the target local controller, allowing the target local controller to control the target protocol gateway device in place of the digital dock. This technical solution, through the digital dock's intelligent detection and prediction of the network connection status between the digital dock and the protocol gateway devices during network connection control of multiple protocol gateway devices, and upon detecting an anomaly in the network connection, dynamically and accurately delegating the central control logic corresponding to the protocol gateway device with the abnormal network connection to the edge-side local controller, allows the local controller to control the protocol gateway device in place of the digital dock. This achieves a seamless transition from "centralized control" to "edge autonomous takeover," effectively solving the problems of control command loss, system response lag, and even loss of control caused by network latency and interruptions in traditional IoT architectures. It ensures continuous and reliable control of devices even when network connections are abnormal, significantly improving the continuity and reliability of device control under abnormal network conditions.
[0064] See Figure 3 This is a flowchart illustrating an embodiment of another device control method provided in this application. Figure 3 The process shown is in Figure 2 Based on the illustrated process, this section describes how the target local controller specifically replaces the digital docking station and controls the target protocol gateway device according to the target control logic. For example... Figure 3 As shown, the process may include the following steps: Step 301: The digital base station simultaneously sends the target control logic and the preset control takeover command to the target local controller.
[0065] Step 302: The target local controller receives the target control logic and the control takeover command, and in response to the control takeover command, controls the target protocol gateway device according to the target control logic.
[0066] The following provides a unified explanation of steps 301 and 302: The aforementioned control takeover command refers to the command used to instruct the target local controller to begin controlling the target protocol gateway device in place of the digital dock.
[0067] In this step, when the digital base detects an abnormal network connection with the target protocol gateway device, in order to efficiently control the target protocol gateway device, it can directly send the determined target control logic and the preset control takeover command to the target local server at the same time.
[0068] In this case, after receiving the aforementioned target control logic and control takeover command, the local controller can respond to the aforementioned control takeover command and control the target protocol gateway device according to the target control logic.
[0069] For example, taking an air conditioning system as an example, suppose the digital dock is monitoring multiple indoor unit protocol gateways in a smart building, with each gateway responsible for controlling the air conditioning terminal equipment in its corresponding room. When the system detects a network anomaly (such as continuous heartbeat timeout) in the air conditioning protocol gateway connected to the "5th floor data center server room," the digital dock immediately triggers a takeover mechanism: First, it extracts the "target control logic" for the server room from the policy engine. This logic not only includes operating parameters such as set temperature (e.g., 22°C) and humidity range (e.g., 40%-60%), but more importantly, it contains a complete "precision environmental control algorithm." This algorithm can dynamically calculate and adjust the coordinated control strategy of compressor frequency, fan speed, and chilled water valve opening based on real-time collected data on rack inlet / outlet air temperatures and server room heat load trends.
[0070] Subsequently, the digital dock encapsulates the control algorithm (in the form of a lightweight model or configuration rules) along with an "immediate takeover control" command, and sends it to the "local controller" deployed in the data center via the remaining network path. Upon receiving the command, the local controller first parses and responds to the takeover command, then immediately loads and runs the sent control algorithm, and begins to independently execute closed-loop control based on local sensor data. This achieves a smooth and instantaneous switch from centralized cloud control to autonomous intelligent edge control before the network connection between the digital dock and the equipment is completely severed, ensuring the strict stability of the data center's temperature and humidity environment.
[0071] The technical solution provided in this application sends the target control logic and the preset control takeover command to the target local controller simultaneously via a digital base station. The target local controller receives the target control logic and the control takeover command, and responds to the control takeover command by controlling the target protocol gateway device according to the target control logic. This technical solution, by synchronously sending the target control logic and the takeover command to the edge controller, achieves deterministic and seamless transfer of control triggered instantaneously when a network anomaly occurs. Compared to the step-by-step sending (sending the logic first, and then sending the command after a complete network outage) or the mode that relies on the controller's autonomous judgment, this "logic and command binding, one-time delivery" mechanism greatly shortens the overall response delay from detecting the anomaly to realizing the takeover, avoiding the "time window risk" of command failure and takeover failure due to further deterioration of the network situation after the logic is sent. At the same time, it strengthens the authority and consistency of the transfer of control, ensuring that the local controller only starts the takeover process after obtaining explicit authorization, preventing accidental triggering or logic execution conflicts, thereby providing a higher level of immediacy, reliability, and control determinism guarantee for the entire system in the event of a sudden network failure.
[0072] See Figure 4 This is a flowchart illustrating an embodiment of a device control method provided in this application. Figure 4 The process shown is in Figure 2 Based on the illustrated process, this section describes how the target local controller specifically replaces the digital docking station and controls the target protocol gateway device according to the target control logic. For example... Figure 4 As shown, the process may include the following steps: Step 401: If there is an abnormality in the network connection but it is not interrupted, send the target control logic to the target local controller; wherein, the target local controller is used to store the received target control logic.
[0073] In this step, to ensure the timely control of the target protocol gateway device by the target local controller on behalf of the digital dock, the digital dock can send the aforementioned target control logic to the target local controller if it detects an abnormal and uninterrupted network connection with the target protocol gateway device. Upon receiving the target control logic, the target local controller can store it.
[0074] In one embodiment, the aforementioned abnormal but uninterrupted network connection can indicate an abnormal state such as network connection delay, packet loss, or intermittent connection. Upon detecting this network connection anomaly, the digital docking station can determine the target control logic and target local controller of the target protocol gateway device, and time the transmission of the target control logic to the target local controller for storage, thus preparing the target local controller to control the target protocol gateway device in place of the digital docking station. The specific method for determining the abnormal but uninterrupted network connection is described in step 201, and will not be repeated here.
[0075] In one embodiment, the target control logic may include a device identifier of the corresponding target protocol gateway device. Based on this, the target local controller may associate and store the target control logic with the device identifier of the target protocol gateway device so that in subsequent steps, it can directly control the target protocol gateway device according to the device identifier and the target control logic.
[0076] Step 402: If it is determined that the network connection with the target protocol gateway device is interrupted, a preset takeover control command is sent to the target local controller; wherein, the target local controller is used to control the target protocol gateway device according to the stored target control logic in response to the received takeover control command.
[0077] In this step, after sending the target control logic to the target local controller, the digital base station can monitor the network connection status with the target protocol gateway device in real time. If a network connection interruption is detected, it sends a preset takeover control command to the target local controller. Upon receiving the takeover control command, the target local controller can respond by controlling the target protocol gateway device according to the stored target control logic.
[0078] For example, consider an air conditioning system. Suppose a digital docking station manages the air conditioning protocol gateways for each room in a hotel, controlling fan coil units and temperature and humidity sensors. When the digital docking station detects network quality degradation in communication with the gateway of the "top presidential suite" (e.g., increased latency fluctuations but not complete interruption), it pre-deploys and stores the suite's current "target control logic" in the suite's "local smart thermostat." At this time, the local thermostat only stores the logic and is still controlled by the digital docking station. If the network connection is completely interrupted later, the digital docking station will immediately send a "takeover control command" to the local smart thermostat. The local smart thermostat responds to this command, immediately activates and runs the pre-stored target control logic, and begins to independently adjust the fan coil unit water temperature and fan speed based on local sensor data, achieving a seamless switch to autonomous operation.
[0079] The technical solution provided in this application sends target control logic to a target local controller when the network connection is abnormal but not interrupted. The target local controller stores the received target control logic and, upon determining that the network connection with the target protocol gateway device is interrupted, sends a preset takeover control command to the target local controller. The target local controller responds to the received takeover control command and controls the target protocol gateway device according to the stored target control logic. This technical solution, through a strategy of pre-planning in the early stages of network anomalies and precise triggering during complete outages, avoids the oscillation risk of repeated switching during periods of network instability and ensures zero-delay takeover initiation at the final network outage, significantly improving the system's robustness and smooth transition capability in gradual network failure scenarios.
[0080] See Figure 5 This is a flowchart illustrating another embodiment of a device control method provided in this application. Figure 5 The process shown is in Figure 2 Based on the illustrated process, this section describes how the digital dock takes over control of the target protocol gateway device after the target local controller replaces the digital dock in controlling the target protocol gateway device. For example... Figure 5 As shown, the process may include the following steps: Step 501: After the target local controller controls the target protocol gateway device in place of the digital base, receive the control status data sent by the target local controller; wherein, during the process of controlling the target protocol gateway device, the target local controller acquires the control status data of the target protocol gateway device in real time and sends the control status data to the digital base.
[0081] The aforementioned control status data refers to the set of data collected and generated in real time by the target local controller during the process of controlling the target protocol gateway device in place of the digital base station. This data reflects the operating status of the controlled device and the execution of control commands. It includes at least the real-time operating parameters of the device (such as temperature and current) and the sequence of control commands output by the controller. This data is used to provide the digital base station with the system context and synchronization basis required for re-taking over after the network is restored.
[0082] In this step, the target local controller acts as a temporary control device to replace the digital base station in controlling the target protocol gateway device. In order to synchronize the control progress of the target protocol gateway device with the digital base station in a timely manner, the target local controller can obtain the control status data of the target protocol gateway device and send the control status data to the digital base station.
[0083] In one embodiment, in order to ensure that the control progress of the target protocol gateway is synchronized to the digital base in a timely manner, the target local controller can acquire the control status data of the target protocol gateway device in real time and send the target control status data to the digital base.
[0084] In another embodiment, in order to save system resources, the target local controller can periodically acquire control status data of the target protocol gateway device and send the target control status data to the digital base station.
[0085] Based on this, the digital base can receive control status data sent by the target local controller and store the control status data in a preset storage medium.
[0086] Step 502: Once it is determined that the network connection with the target protocol gateway device has been restored to normal, take back control of the target protocol gateway device based on the control status data.
[0087] In this step, after the digital dock transfers control of the target protocol gateway device to the target local controller, it can detect in real time whether the network connection with the target protocol gateway device has been restored in order to take over control of the target protocol gateway device promptly after network recovery. Then, if it is determined that the network connection with the target protocol gateway device has been restored, it can regain control of the target protocol gateway device based on the received control status data.
[0088] In one embodiment, the digital base station can send probe data packets (e.g., heartbeat packets) to the target protocol gateway device in real time or at regular intervals, and determine whether it receives a response from the target protocol mesh device in response to the probe data packets.
[0089] Optionally, upon receiving a response from the target protocol gateway device and determining that the round-trip delay is less than a preset time threshold, the network connection with the target protocol gateway device can be preliminarily restored.
[0090] Furthermore, in order to determine that the network connection with the target protocol gateway device can transmit stably, the digital base station can obtain the round-trip delay time corresponding to the M consecutively sent probe data packets.
[0091] Optionally, the time difference between any two or any two adjacent round-trip delays can be determined. If the proportion of time differences less than a preset difference threshold is greater than a preset proportion threshold (e.g., 60%), the network connection with the target protocol gateway device is determined to have returned to normal.
[0092] Optionally, if it is determined that the network connection with the target protocol gateway device has been restored to normal, the network connection may be determined to be restored if any round-trip delay is greater than a preset duration threshold, or if the proportion of round-trip delays greater than the preset duration threshold is greater than a preset proportion threshold.
[0093] Optionally, the duration difference between any two or any two adjacent round-trip delays can be determined. If the proportion of duration differences less than a preset difference threshold is greater than a preset proportion threshold (e.g., 60%), and each round-trip delay is greater than the preset duration threshold, then the network connection with the target protocol gateway device is determined to have returned to normal.
[0094] In one embodiment, when the digital base station regains control of the target protocol gateway device based on the aforementioned control status data, it can determine the current control progress of the target protocol gateway device based on the control status data. The aforementioned control progress refers to the current completion stage or execution status of the control tasks performed by the target local controller on the target protocol gateway device based on the target control logic during the control substitution period. It is a status indicator used to quantify or describe the progress of the control process, providing crucial context for the digital base station to achieve accurate and smooth control recovery after network restoration.
[0095] Afterwards, control of the target protocol gateway device can be regained based on the aforementioned control progress.
[0096] As an optional implementation, after determining the current control progress of the target protocol gateway device based on the received control status data, the digital base station can send control commands to the target protocol gateway device in a gradual, command-aligned manner. For example, at the beginning of the next control cycle, it can output a command identical to the current command of the target local controller to ensure stable device status. Subsequently, in subsequent cycles, the control source is gradually switched to new commands directly calculated by the digital base station. During this process, the digital base station continuously compares its own output with the "control status data" reported by the controller until it confirms that the two are completely consistent and the device is operating stably. Only then does it formally notify the local controller to exit the control mode, thereby completing a smooth, disturbance-free relinquishment of control based on state synchronization.
[0097] In one embodiment, in order to accurately regain control of the target protocol gateway device, after determining the current control progress of the target protocol gateway device, the digital base station can first determine whether the control progress is accurate before regaining control of the target protocol gateway device according to the aforementioned control progress. Then, if the control progress is determined to be accurate, a preset takeover control command can be sent to the target local controller, and control of the target protocol gateway device can be regained according to the aforementioned control progress.
[0098] Upon receiving the aforementioned takeover control command and confirming that the digital base station is providing stable control over the target gateway protocol device, the target local controller relinquishes control over the target protocol gateway device.
[0099] As an optional implementation, when determining whether the aforementioned control progress is accurate, a theoretical control command for the target protocol gateway device can be generated based on the control progress. This theoretical control command refers to the ideal control command that should have been issued to the target protocol gateway device under the corresponding progress, calculated by the digital dock before regaining control based on control status data obtained from the local controller and the target control logic corresponding to the target protocol gateway device. This theoretical control command is not used to control the target protocol gateway device; instead, it serves as a benchmark for comparison with the commands actually executed by the local controller to verify the accuracy of state synchronization and ensure a safe and uninterrupted control handover process.
[0100] The digital base station can then send the aforementioned theoretical control commands to the target local controller. Upon receiving the theoretical control commands, the target local controller can verify their accuracy.
[0101] Optionally, the target local controller can compare the aforementioned theoretical control commands with the control commands it currently generates for the target protocol gateway device, and if the two are consistent, send a notification message to the digital base station indicating that the theoretical control commands are accurate.
[0102] The digital base station can determine that the control progress is accurate upon receiving a notification message from the target local controller that indicates the accuracy of the theoretical control command.
[0103] Furthermore, in one embodiment, to more accurately regain control of the target protocol gateway device, the digital docking station, after initially determining that the control progress is accurate, may not immediately take over control of the target protocol gateway device. Instead, it may repeatedly execute the steps described above: determining the control progress based on control status data and verifying the accuracy of the control progress. Subsequently, after repeatedly confirming that the control progress is accurate, a preset takeover control command may be sent to the target local controller, thereby regaining control of the target protocol gateway device.
[0104] The technical solution provided in this application involves receiving control status data sent by the target local controller after it controls the target protocol gateway device in place of the digital base. During the control process, the target local controller acquires control status data of the target protocol gateway device in real time and sends this data to the digital base. Once the network connection with the target protocol gateway device is restored, the controller regains control based on the control status data. This technical solution, by constructing an intelligent closed-loop management mechanism of "state synchronization, decision traceability, and smooth recovery," fundamentally solves the problems of takeover conflicts, command oscillations, or service interruptions caused by asynchronous control status information after network recovery in traditional systems. It requires the local controller to continuously transmit control status data during autonomous operation, and the digital base can maintain "visual perception" of the field operation during network interruptions, accumulating the complete context required for re-takeover. When the network is restored, the digital dock does not need to perform a rigid "blind switch" or reset. Instead, it performs differential analysis based on accurate status data and formulates a takeover strategy that is perfectly matched with the current operating phase of the device. This achieves an unobstructed, accurate and smooth transfer of control, improving the reliability and stability of the system when returning from edge autonomous mode to centralized management mode, while ensuring the continuity of business experience.
[0105] To facilitate understanding of the control method of the device provided in this application, the following example illustrates the interaction between the digital dock, the controller, and the protocol gateway: To facilitate understanding of the digital dock, the structure of the digital dock involved in this application will be described by way of example below.
[0106] See Figure 6 This is a schematic diagram of the structure of a digital base provided in an embodiment of this application. Figure 6As shown, this structure adopts a layered modular architecture, which may include a scalable set of control logic (control logic 1 to n), representing the diverse strategies and algorithms it can support; and a core functional layer, which consists of logic modules, storage modules, parsing modules, and access modules, with each module working collaboratively. The unified digital platform integrates and schedules all the above modules, forming a complete processing chain from logic management, data storage, instruction parsing to device access.
[0107] The logic module is responsible for loading, executing, and scheduling control logic. It can call control logic within the logic module (such as control logic 2), transforming it into executable computational tasks or rule-based decisions. It is the core computing unit for the digital foundation to achieve intelligent decision-making and real-time control.
[0108] The aforementioned storage module is responsible for the persistence and caching management of various types of data within the system. It may include storage control logic configuration, device historical status, real-time acquired data, session logs, and other information, providing data support for logic execution, status tracing, and system recovery.
[0109] The aforementioned parsing module is responsible for protocol conversion and data decoding. It can parse heterogeneous data uploaded from different protocol gateway devices into a unified format for processing by the logic module; at the same time, it encodes the issued control commands into protocol messages that the device can recognize, which is a key link in realizing multi-protocol adaptation and interconnection.
[0110] The aforementioned access module is responsible for communication connections and session management with external devices or systems. It can maintain network links with various protocol gateways and local controllers, handle communication tasks such as connection establishment, heartbeat maintenance, and data transmission and reception, and serves as the interface and bridge between the digital base and the physical device layer.
[0111] Based on this, see Figure 7 This is a schematic diagram of the control system of another device provided in an embodiment of this application. Figure 7 As shown, the system may include a digital base, a controller (local controller), multiple protocol gateways (protocol gateway devices): protocol gateway 1, protocol gateway 2, and protocol gateway 3, as well as a communication network.
[0112] In this system architecture, the digital base can be deployed in the cloud or on a local server, responsible for global policy management, data aggregation and visualization; the controller is an edge device with computing and control capabilities, deployed in the field, and connected to the protocol gateway device via wired or wireless means (such as Modbus, BACnet, MQTT and other protocols); the protocol gateway device includes sensors, actuators, smart meters, etc.
[0113] Based on the above structural system, this application provides the following: Figure 8The control method for the device shown. See also Figure 8 The above is a flowchart illustrating an embodiment of a device control method provided in this application. Figure 8 As shown, the process may include the following: During normal system operation, the digital dock sends control policies (such as temperature regulation logic, lighting control rules, energy consumption optimization models, etc.) to the protocol gateway device via the communication network. When the system detects a network interruption of a protocol gateway device (determined by heartbeat timeout, TCP connection disconnection, etc.), the digital dock will notify the controller to immediately initiate the "network outage takeover process": the protocol gateway device's operating logic, which should be executed in the digital dock, is transmitted to the controller, and the local controller takes over the control of the offline device to ensure that the device does not enter an uncontrolled state.
[0114] During autonomous operation, the controller continuously collects operational data from the protocol gateway device (such as temperature, humidity, current, and switch status) and makes real-time decisions based on the control logic transmitted from the digital dock. For example, in a multi-split air conditioning intelligent control system, the controller executes the control algorithm transmitted from the digital dock based on local temperature and humidity sensor data to adjust the fan speed and valve opening, maintaining environmental parameters within the set range.
[0115] To ensure control consistency, the controller uploads the status and control information of offline devices in real time during operation. Once the network is restored, the system enters the "control handover" phase. The digital docking station assesses the current system status based on received log data. After confirming there are no anomalies, it sends a "control reclaim" command to the controller. Upon receiving the command, the controller gradually exits local control mode, reverting to the "controlled agent" role, and is then uniformly scheduled by the digital docking station. This process employs a smooth switching mechanism to avoid device oscillations caused by sudden changes in control commands.
[0116] The technical solution provided in this application, through the dynamic delegation and reclamation of control logic, achieves "seamless degradation" and "orderly recovery" of the system during network outages, significantly improving the system's robustness and availability. It is particularly suitable for scenarios with high requirements for continuous operation, such as hospitals, data centers, and production lines.
[0117] See Figure 9 This is a block diagram illustrating an embodiment of a control device for a device provided in this application. As one embodiment, this... Figure 9 The device shown can be applied to a digital docking station, which can control multiple protocol gateway devices via a network connection. For example... Figure 9 As shown, the device may include: The determination module 91 is used to determine the target control logic and target local controller corresponding to the target protocol gateway device when it is determined that there is an anomaly in the network connection with the target protocol gateway device; wherein, the target protocol gateway device is any protocol gateway device controlled by the digital base station; The control module 92 is used to send the target control logic to the target local controller, so that the target local controller replaces the digital base station and controls the target protocol gateway device according to the target control logic.
[0118] like Figure 10 The diagram shown is a structural schematic of a server according to an embodiment of this application, including a processor 1001, a communication interface 1002, a memory 1003, and a communication bus 1004. The processor 1001, communication interface 1002, and memory 1003 communicate with each other via the communication bus 1004. Memory 1003 is used to store computer programs; In one embodiment of this application, the processor 1001, when executing a program stored in the memory 1003, implements the device control method provided in any of the foregoing method embodiments, including: If an anomaly is detected in the network connection with the target protocol gateway device, the target control logic and target local controller corresponding to the target protocol gateway device are determined; wherein, the target protocol gateway device is any protocol gateway device controlled by the digital dock. The target control logic is sent to the target local controller, so that the target local controller replaces the digital base station and controls the target protocol gateway device according to the target control logic.
[0119] See Figure 11 This is a schematic diagram of the control system of another device provided in an embodiment of this application. Figure 11 As shown, the control system 11 of the device may include: a server 1101, at least one local controller 1102, and multiple protocol gateway devices 1103 (protocol gateway device 11031, protocol gateway device 11032, and protocol gateway device 11033).
[0120] Among them, the aforementioned server 1101 can be Figure 10 The server shown can be used to control multiple protocol gateway devices via a network connection.
[0121] The aforementioned local controller 1102 can be used to control the target protocol gateway device according to the target control logic sent by the server, replacing the digital dock in the server; wherein the aforementioned target protocol gateway device can be any one of multiple protocol gateway devices 1103, such as protocol gateway device 11031, protocol gateway device 11032, or protocol gateway device 11033.
[0122] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the device control method provided in any of the foregoing method embodiments.
[0123] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0124] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software plus a general-purpose hardware platform, or of course, using hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0125] It should be understood that the terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “described” as used herein may also include the plural forms. The terms “comprising,” “including,” “containing,” and “having” are inclusive and therefore indicate the presence of the stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not construed as requiring them to be performed in a particular order described or illustrated unless the order of performance is explicitly indicated. It should also be understood that additional or alternative steps may be used.
[0126] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for controlling a device, characterized in that, Applied to a digital docking station, which controls multiple protocol gateway devices via a network connection, the method includes: If an anomaly is detected in the network connection with the target protocol gateway device, the target control logic and target local controller corresponding to the target protocol gateway device are determined; wherein, the target protocol gateway device is any protocol gateway device controlled by the digital dock. The target control logic is sent to the target local controller, so that the target local controller replaces the digital base station and controls the target protocol gateway device according to the target control logic.
2. The method according to claim 1, characterized in that, The digital dock periodically sends heartbeat packets to the protocol gateway device. The determination that there is an anomaly in the network connection with the target protocol gateway device includes: For each protocol gateway device, obtain the round-trip delay time corresponding to each heartbeat packet in N consecutive heartbeat packets sent to the protocol gateway device; where N is a positive integer. If the round-trip delay time exceeds a preset time threshold in each case, the protocol gateway device is identified as the target protocol gateway device, and it is determined that there is an anomaly in the network connection between the target protocol gateway device and the target protocol gateway device. And / or, Determine the time difference between the round-trip delay times of any two adjacent heartbeat packets; if the absolute value of multiple time differences is greater than a preset time difference threshold, determine the protocol gateway device as the target protocol gateway device, and determine that there is an anomaly in the network connection with the target protocol gateway device.
3. The method according to claim 1, characterized in that, The step of sending the target control logic to the target local controller, so that the target local controller replaces the digital dock and controls the target protocol gateway device according to the target control logic, includes: The target control logic and the preset control takeover command are simultaneously sent to the target local controller, so that the target local controller performs the following operations: The system receives the target control logic and the control takeover command, and in response to the control takeover command, controls the target protocol gateway device according to the target control logic.
4. The method according to claim 1, characterized in that, The step of sending the target control logic to the target local controller, so that the target local controller replaces the digital dock and controls the target protocol gateway device according to the target control logic, includes: In the event of an anomaly in the network connection that is not interrupted, the target control logic is sent to the target local controller; the target local controller is used to store the received target control logic; If it is determined that the network connection with the target protocol gateway device is interrupted, a preset takeover control command is sent to the target local controller; the target local controller is used to control the target protocol gateway device according to the stored target control logic in response to the received takeover control command.
5. The method according to claim 1, characterized in that, After the target local controller controls the target protocol gateway device in place of the digital dock, the method further includes: The system receives control status data sent by the target local controller; wherein, during the process of controlling the target protocol gateway device, the target local controller acquires control status data of the target protocol gateway device and sends the control status data to the digital dock. Once it is determined that the network connection with the target protocol gateway device has been restored to normal, control over the target protocol gateway device is regained based on the control status data.
6. The method according to claim 5, characterized in that, The step of regaining control of the target protocol gateway device based on the control status data includes: Based on the control status data, determine the current control progress of the target protocol gateway device; Based on the control progress, control of the target protocol gateway device is regained.
7. The method according to claim 6, characterized in that, After determining the current control progress of the target protocol gateway device, and before resuming control of the target protocol gateway device according to the control progress, the method further includes: Determine whether the control progress is accurate; If the control progress is confirmed to be accurate, a preset takeover control command is sent to the target local controller, and the step of retaking control of the target protocol gateway device according to the control progress is executed. The target local controller is configured to relinquish control of the target protocol gateway device upon receiving the takeover control command.
8. The method according to claim 7, characterized in that, Determining whether the control progress is accurate includes: Based on the control progress, generate theoretical control commands for the target protocol gateway device; The theoretical control command is sent to the target local controller; the target local controller is used to send a notification message to the digital base station that the theoretical control command is accurate when it receives the theoretical control command and determines that the theoretical control command is consistent with the control command it currently generates for the target protocol gateway device. Upon receiving the notification message sent by the target local controller, it is determined that the control progress is accurate.
9. A control device for an equipment, characterized in that, An application in a digital docking station, which controls multiple protocol gateway devices via a network connection, the device includes: The determination module is used to determine the target control logic and target local controller corresponding to the target protocol gateway device when it is determined that there is an anomaly in the network connection between the target protocol gateway device and the target protocol gateway device; wherein, the target protocol gateway device is any protocol gateway device controlled by the digital dock; The control module is used to send the target control logic to the target local controller, so that the target local controller replaces the digital base station and controls the target protocol gateway device according to the target control logic.
10. A server, characterized in that, include: The system includes a digital base, a processor, a communication interface, a memory, and a communication bus. The processor, communication interface, and memory communicate with each other via the communication bus. The digital base station controls multiple protocol gateway devices via network connection; The memory is used to store computer programs; the processor is used to execute the computer programs to implement the control method of the device according to any one of claims 1-8.
11. A control system for a device, characterized in that, include: Server, at least one local controller, and multiple protocol gateway devices; The server is the server described in claim 10, used to control multiple protocol gateway devices via a network connection; The local controller is used to control the target protocol gateway device according to the target control logic sent by the server, replacing the digital dock in the server. The target protocol gateway device is any one of a plurality of protocol gateway devices.
12. A storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the control method of the device according to any one of claims 1-8.