Control logic clouding operation method, device and equipment and computer readable medium

By connecting the end devices of the building control system to the cloud server and generating a virtual digital hardware interface, and deploying control logic to the cloud server, the problem that the building control system cannot efficiently run large algorithm models due to hardware performance limitations and enclosure is solved, and high-precision and high-efficiency intelligent regulation is achieved.

CN120010370APending Publication Date: 2025-05-16GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411991665.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

The building control system is limited by the controller hardware performance and enclosure, and cannot efficiently run large algorithm models and realize real-time online intelligent regulation, resulting in low control accuracy and small control range.

Method used

By connecting the end devices of the building control system to the cloud server, generating a virtual digital hardware interface, and deploying the control logic to the cloud server, binding it with the gateway identifier, building a data pool and a virtual gateway, realizing the operation of the control logic in the cloud server.

Benefits of technology

It solves the problem of hardware performance limitations, realizes the operation of large-scale algorithm models, improves the system's intelligent regulation accuracy and efficiency, simplifies system networking and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120010370A_ABST
    Figure CN120010370A_ABST
Patent Text Reader

Abstract

The invention relates to a control logic clouding operation method, device and equipment and a computer readable medium. The method comprises the following steps: connecting end equipment of a building control system to a cloud server through a gateway, and generating a virtual digital hardware interface corresponding to a hardware interface of the building control system in the cloud server; deploying a control logic of the building control system to a cloud server and binding the control logic with gateway identifiers of all gateways corresponding to the control system; constructing a data pool according to the gateway identifier, the equipment parameter identifier of the end equipment and the equipment parameter value, and classifying the data pool through the gateway identifier to construct a virtual gateway; and the virtual digital hardware interface generates a protocol data table according to a protocol interface requirement corresponding to the control logic of the building control system, and the control logic of the building control system is operated in the cloud server through the virtual gateway in combination with the protocol data table. According to the invention, the problem that the building automatic control system is limited by the hardware performance and closure of the controller and is difficult to realize cloud control is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of device control technology, and in particular to a control logic cloud operation method, device, equipment and computer-readable medium. Background Art

[0002] With the rapid development of information technology and the advent of the intelligent era, building automation systems, as the core components of modern buildings, are undergoing a profound transformation from traditional control modes to digitalization and intelligence. Traditional building automation systems usually adopt a three-layer network architecture of "management platform-controller-terminal equipment", in which the control logic is mainly pre-set in the controller. This architecture can better meet the basic building control needs in the early stage, but with the continuous advancement of technologies such as the Internet of Things, big data, and cloud computing, the demand for intelligent control of building automation systems in the information age is increasing, and the limitations of traditional architecture are gradually emerging.

[0003] In traditional building automation systems, the hardware performance of the controller directly affects the control capability and intelligence level of the system. Due to the limitation of the hardware performance of the controller, the system is generally unable to run large algorithm models, which limits the system's adaptability to complex environmental changes and the accuracy of intelligent control. The mid-term transition technology attempts to achieve intelligent control of the controller by adding brain-computer at the controller level and building large algorithm models into the brain-computer for operation. However, this solution is relatively closed and cannot obtain data online in real time to optimize and upgrade the algorithm model, resulting in limited control effect and failure to fully tap the potential of the algorithm model. In the prior art, the control logic is usually developed for a specific controller hardware platform and is tightly bound to the hardware platform. This makes it difficult to directly migrate the control logic to the cloud for operation, limiting the flexibility of the system's transformation to cloud intelligence. In existing building automation systems, due to the coupling of control logic and hardware platform, the cloud is usually only used as a background support for data sampling and algorithm model tuning, and cannot obtain and process the data required for the control logic in real time, resulting in the inability to optimize and upgrade the algorithm model in a timely manner, affecting the intelligent control effect of the system.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The present application provides a method for balancing the power of multiple lasers of a lidar to solve the above-mentioned technical problem that "the building control system is limited by the hardware performance and closedness of the controller, and cannot efficiently run large algorithm models and realize real-time online intelligent regulation, resulting in low control accuracy and small control range of the building control system."

[0006] According to one aspect of an embodiment of the present application, the present application provides a control logic cloud operation method, including: connecting the terminal device of the building control system to the cloud server through a gateway, and generating a virtual digital hardware interface corresponding to the hardware interface of the building control system in the cloud server; deploying the control logic of the building control system to the cloud server and binding it with the gateway identifier of all gateways corresponding to the control system; building a data pool according to the gateway identifier, the device parameter identifier of the terminal device and the device parameter value, and classifying all data in the data pool through the gateway identifier to construct a virtual gateway; the virtual digital hardware interface generates a protocol data table according to the protocol interface requirements corresponding to the control logic of the building control system, and runs the control logic of the building control system in the cloud server through the virtual gateway in combination with the protocol data table.

[0007] Optionally, the terminal device of the building control system is connected to the cloud server through a gateway, and a virtual digital hardware interface corresponding to the hardware interface of the building control system is generated in the cloud server, including: performing network configuration on the gateway according to the communication protocol between the terminal device of the building control system and the cloud server; constructing a virtual digital hardware interface on the cloud server according to the interface specification corresponding to the hardware interface of the building control system; and setting a polling mechanism for the virtual digital hardware interface, wherein the polling mechanism is used to periodically send request frames to the gateway.

[0008] Optionally, the control logic of the building control system is deployed to the cloud server and bound to the gateway identifiers of all gateways corresponding to the control system, including: obtaining the control logic corresponding to the building control system, the control logic including a logic algorithm and a protocol interface; configuring a logic container for deploying the control logic on the cloud server, and deploying the logic algorithm and the protocol interface into the logic container; obtaining the gateway identifiers corresponding to all gateways between the terminal devices of the building control system and the cloud server; and binding all the obtained gateways to the corresponding control logic on the cloud server.

[0009] Optionally, building a data pool according to the gateway identifier, the device parameter identifier and the device parameter value of the terminal device, and classifying all the data in the data pool through the gateway identifier to build a virtual gateway, includes: determining the gateway identifiers of all gateways between the terminal device and the cloud server, the device parameter values ​​and corresponding device parameter identifiers that the terminal device needs to upload to the cloud server; setting the format of the device parameters reported by the gateway according to the gateway identifier, the device parameter identifier and the device parameter value sequence; building a data pool in the cloud server according to all the device parameters reported by the gateway, the data pool including a plurality of data consisting of the gateway identifier, the device parameter identifier and the device parameter value; classifying all the data in the data pool through the correspondence between different types of gateway identifiers and device parameter identifiers in the data pool to build a virtual gateway.

[0010] Optionally, the method of classifying all the data in the data pool through the correspondence between different types of gateway identifiers and device parameter identifiers in the data pool to construct a virtual gateway includes: obtaining all different types of gateway identifiers in the data pool; determining the device parameter identifiers corresponding to all different types of gateway identifiers; classifying multiple device parameter identifiers corresponding to the same type of gateway identifiers; and constructing a virtual gateway according to the correspondence between multiple device parameter identifiers and gateway identifiers, wherein the virtual gateway provides a data source for the virtual digital hardware interface.

[0011] Optionally, the virtual digital hardware interface generates a protocol data table according to the protocol interface requirements corresponding to the control logic of the building control system, including: obtaining protocol configuration information based on the protocol interface of the control logic of the building control system, the protocol configuration information at least including device information and parameter information; obtaining device parameter identifiers corresponding to all gateway identifiers bound to the control logic in the data pool; comparing the device parameter identifiers obtained from the data pool with the parameter information in the protocol configuration information one by one to determine the protocols, devices and device parameters to which all parameters reported by the gateway belong; and establishing a corresponding protocol data table according to the protocols, devices and device parameters.

[0012] Optionally, the control logic of the building control system is run in the cloud server through a virtual gateway in combination with the protocol data table, including: when the control logic needs to read the device parameter value, sending a request to the virtual gateway through the protocol interface of the control logic to poll the virtual interface; based on the protocol data table, the value of the corresponding parameter address is composed of a response frame of the corresponding protocol and returned to the protocol interface; when the control logic needs to control the device parameter value, the control request frame is sent to the virtual digital hardware interface through the protocol interface through the virtual gateway; after receiving the control request frame, the virtual digital hardware interface obtains the device parameter identifier corresponding to the device parameter value in the protocol data table; determines the target gateway where the target device is located through the correspondence between the device parameter identifier and the gateway identifier, and sends a control instruction to the target gateway.

[0013] According to another aspect of an embodiment of the present application, the present application provides a control logic cloud operation device, including: a virtual interface construction module, used to connect the terminal device of the building control system to the cloud server through a gateway, and generate a virtual digital hardware interface corresponding to the hardware interface of the building control system in the cloud server; a control logic deployment module, used to deploy the control logic of the building control system to the cloud server and bind it with the gateway identifier of all gateways corresponding to the control system; a virtual gateway construction module, used to build a data pool according to the gateway identifier, the device parameter identifier and the device parameter value of the terminal device, and classify all data in the data pool through the gateway identifier to construct a virtual gateway; a control logic operation module, used for the virtual digital hardware interface to generate a protocol data table according to the protocol interface requirements corresponding to the control logic of the building control system, and run the control logic of the building control system in the cloud server through the virtual gateway in combination with the protocol data table.

[0014] According to another aspect of an embodiment of the present application, the present application provides an electronic device, including a memory, a processor, a communication interface and a communication bus, wherein the memory stores a computer program that can be run on the processor, the memory and the processor communicate through the communication bus and the communication interface, and the steps of the above method are implemented when the processor executes the computer program.

[0015] According to another aspect of an embodiment of the present application, the present application also provides a computer-readable medium having a non-volatile program code executable by a processor, and the program code enables the processor to execute the above method.

[0016] The above technical solution provided by the embodiment of the present application has the following advantages compared with the related art:

[0017] This application solves the problem that the locally deployed controller cannot run large algorithm models due to hardware performance limitations by directly deploying the control logic to the cloud. The powerful computing power of the cloud server makes it possible to build in large algorithm models without the need for additional hardware devices such as brain-computers. It not only simplifies the system networking, but also greatly reduces the cost, so that the building automation system can respond to complex and changeable control requirements more flexibly, and significantly improve the accuracy and efficiency of the system's intelligent control. The algorithm model is migrated to the cloud to achieve real-time online operation and data collection. The cloud server can continuously receive real-time data from the terminal device, providing sufficient sample data support for large algorithm models, thereby achieving accurate tuning of the algorithm model. In addition, the tuning data results between different projects can be shared in the cloud, further improving the accuracy and generalization ability of system control. In response to the incompatibility issues that the control logic of the controller may encounter in the cloud operating environment, this application provides the same interface environment as the local hardware environment for the control logic to run in the cloud through the hardware interface of the virtual digital controller. At the same time, combined with automatic mapping, the seamless connection between the cloud control logic and the physical device status data is achieved, ensuring the stability and reliability of the control logic running in the cloud. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0020] Figure 1 A schematic diagram of a hardware environment for a control logic cloud operation method provided according to an embodiment of the present application;

[0021] Figure 2 A schematic diagram of a control logic cloud operation method according to an embodiment of the present application;

[0022] Figure 3 A basic structural diagram of a controller provided according to an embodiment of the present application;

[0023] Figure 4 A logical control architecture diagram provided according to an embodiment of the present application;

[0024] Figure 5 A basic structure diagram of the logic operation provided according to an embodiment of the present application;

[0025] Figure 6 A flowchart of automatic data mapping provided according to an embodiment of the present application;

[0026] Figure 7 A schematic diagram of a protocol data table template provided according to an embodiment of the present application;

[0027] Figure 8 A block diagram of a control logic cloud operation device provided according to an embodiment of the present application;

[0028] Fig. 9 A schematic diagram of an optional electronic device structure provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0030] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present application and have no specific meaning. Therefore, "module" and "component" can be used interchangeably.

[0031] In related technologies, building control systems usually control equipment through control logic pre-set in the controller. Due to the limited hardware performance of the controller, it is often impossible to run large algorithm models, which limits the accuracy and scope of intelligent control of the building control system. In addition, this control logic is relatively closed and cannot obtain and process sufficient data online in real time, resulting in limited algorithm model tuning and the inability to share the tuning data results of different projects.

[0032] In order to solve the problems mentioned in the background technology, according to one aspect of an embodiment of the present application, an embodiment of a control logic cloud operation method is provided.

[0033] Optionally, in the embodiment of the present application, the above method can be applied to Figure 1 In the hardware environment composed of the terminal 101 and the server 103 shown in FIG. Figure 1As shown, the server 103 is connected to the terminal 101 via a network, and can be used to provide services for the terminal or a client installed on the terminal. A database 105 can be set on the server or independently of the server to provide data storage services for the server 103. The above-mentioned network includes but is not limited to: a wide area network, a metropolitan area network or a local area network, and the terminal 101 includes but is not limited to a PC, a mobile phone, a tablet computer, etc.

[0034] A control logic cloud operation method in the embodiment of the present application can be executed by the server 103, or can be executed by the server 103 and the terminal 101 together, such as Figure 2 As shown, the method may include the following steps:

[0035] Step S202, connecting the terminal device of the building control system to the cloud server through the gateway, and generating a virtual digital hardware interface corresponding to the hardware interface of the building control system in the cloud server;

[0036] Optionally, the terminal device of the building control system is connected to the cloud server through a gateway, and a virtual digital hardware interface corresponding to the hardware interface of the building control system is generated in the cloud server, including:

[0037] Configure the network of the gateway according to the communication protocol between the terminal equipment of the building control system and the cloud server;

[0038] Construct a virtual digital hardware interface on the cloud server according to the interface specifications corresponding to the hardware interface of the building control system;

[0039] Set the polling mechanism of the virtual digital hardware interface. The polling mechanism is used to periodically send request frames to the gateway.

[0040] refer to Figure 3 The figure shows the basic structure diagram of the controller of the building control system in this embodiment. The controller is composed of a hardware interface and a control logic. The control logic includes a logic algorithm and a protocol interface. The protocol interface stores a protocol driver and a protocol configuration information. The protocol configuration information indicates the device parameters associated with the input nodes and output nodes of the control logic. The device parameters include air conditioner on / off and temperature settings. When the control logic is operated in the controller, the protocol driver in the protocol interface is used for the analysis of device communication. After the device parameter value establishes communication with the actual physical device through a communication protocol such as Modbus or BACnet, the device parameter is periodically polled to obtain the device parameter. Polling the device means requesting the device specified parameters according to the frame format specified by the communication protocol. This is achieved by writing the corresponding hardware interface. After receiving the request frame, the device returns a response frame to the hardware interface. The protocol interface can obtain the requested parameter value by reading the hardware interface. The obtained parameter value is used as the input value of the logic algorithm to participate in the operation to achieve the purpose of various logic controls.

[0041] In the above implementation, the terminal device of the building control system is connected to the cloud server through the gateway, and a virtual digital hardware interface corresponding to the hardware interface of the building control system is constructed on the cloud server, realizing the digitization and virtualization of the hardware interface on the cloud server. The control logic of the building control system can be directly run through the cloud server, and the cloud server can deploy a large algorithm model without adding new hardware such as brain-computer, which is low-cost. According to the communication protocol between the terminal device of the building control system and the cloud server, the network configuration of the gateway is carried out, so that different control logics can share data directly in the cloud server, and sample data is provided for the large algorithm model of the cloud server, ensuring the accuracy and reliability of the data during the transmission process, reducing errors and delays in data transmission, and improving the overall performance of the system. A polling mechanism is set on the virtual digital hardware interface, and request frames are sent to the gateway regularly to obtain the status and data of the terminal device, so that equipment failures or abnormal conditions can be discovered and handled in a timely manner to ensure the stable operation of the system.

[0042] Step S204, deploying the control logic of the building control system to the cloud server and binding it with the gateway identifiers of all gateways corresponding to the control system;

[0043] Optionally, the control logic of the building control system is deployed to the cloud server and bound to the gateway identifiers of all gateways corresponding to the control system, including:

[0044] Obtain the control logic corresponding to the building control system, which includes logic algorithms and protocol interfaces;

[0045] Configure a logic container for deploying control logic on the cloud server, and deploy the logic algorithm and protocol interface into the logic container;

[0046] Obtain the gateway identifiers corresponding to all gateways between the terminal devices of the building control system and the cloud server;

[0047] Bind all the acquired gateways to the corresponding control logic on the cloud server.

[0048] In the above implementation, by deploying the control logic of the building control system to the cloud server, centralized management of the control logic is achieved, which not only simplifies the system structure and reduces maintenance costs, but also improves the reliability and security of the control logic. The powerful computing power of the cloud server ensures the efficient execution of the control logic. No matter how complex the control logic is, the cloud server can quickly process and respond, thereby improving the overall performance of the system. By obtaining the gateway identifiers corresponding to all gateways between the terminal devices of the building control system and the cloud server, and binding all the obtained gateways to the corresponding control logic on the cloud server, a flexible association between the gateway and the control logic is achieved, so that the system can quickly adjust the correspondence between the gateway and the control logic according to different business needs, thereby achieving maximum resource utilization and rapid business response.

[0049] Step S206, constructing a data pool according to the gateway identifier, the device parameter identifier of the terminal device and the device parameter value, and classifying all the data in the data pool according to the gateway identifier to construct a virtual gateway;

[0050] Optionally, a data pool is constructed according to the gateway identifier, the device parameter identifier of the terminal device, and the device parameter value, and all data in the data pool are classified by the gateway identifier to construct a virtual gateway, including:

[0051] Determine the gateway identifiers of all gateways between the terminal device and the cloud server, the device parameter values ​​and corresponding device parameter identifiers that the terminal device needs to upload to the cloud server;

[0052] Set the format of the device parameters reported by the gateway according to the sequence of the gateway identifier, device parameter identifier and device parameter value;

[0053] A data pool is built on the cloud server based on all device parameters reported by the gateway. The data pool includes several data consisting of gateway identifiers, device parameter identifiers, and device parameter values.

[0054] All data in the data pool are classified according to the correspondence between different types of gateway identifiers and device parameter identifiers in the data pool to construct a virtual gateway.

[0055] Combination Figure 4The figure shows the control architecture diagram when the control logic is deployed on the cloud server. The entire control architecture consists of a monitoring terminal, a cloud server, multiple control systems (taking control system 1 and control system 2 as examples) and the terminal devices connected to them. The monitoring terminal is connected to the cloud server through the network. The cloud server, as the core processing unit, receives and processes data from each control system and issues control instructions to the control system. Connection between the control system and the cloud server Each control system is connected to the cloud server through a Lianyun gateway. The Lianyun gateway is responsible for uploading the data of the terminal device to the cloud server and receiving the control instructions issued by the cloud server. For example, control system 1 is connected through one Lianyun gateway, and control system 2 is connected through multiple Lianyun gateways, which are connected to different terminal devices respectively. The terminal devices of this embodiment include various industrial equipment, such as pumps, fans, etc. These terminal devices are connected to the control system through the Lianyun gateway, and then interact with the cloud server for data.

[0056] In the above implementation, the format of the device parameters reported by the gateway is set according to the order of the gateway identifier, device parameter identifier and device parameter value, so as to realize the standardization and normalization of the data, which not only improves the readability and understandability of the data, but also helps to reduce data errors and ambiguities. A data pool is constructed on the cloud server, which contains a number of data composed of gateway identifiers, device parameter identifiers and device parameter values. The composed data can be quickly retrieved and accessed according to the gateway and device parameters, thereby improving the efficiency of data processing. The design of the data pool also takes into account the scalability and flexibility of the data, so that the system can easily cope with new gateways or device parameters that may be added in the future. Through the correspondence between the gateway identifier and the device parameter identifier in the data pool, all data are classified, thereby constructing a virtual gateway, so that the virtual gateway can accurately reflect the topology and device status of the actual network.

[0057] Optionally, all data in the data pool are classified according to the correspondence between different types of gateway identifiers and device parameter identifiers in the data pool to construct a virtual gateway, including:

[0058] Get all different types of gateway identifiers in the data pool;

[0059] Determine the device parameter identifiers corresponding to all different types of gateway identifiers;

[0060] Classify multiple device parameter identifiers corresponding to the same type of gateway identifiers;

[0061] A virtual gateway is constructed according to the correspondence between multiple device parameter identifiers and gateway identifiers, and the virtual gateway provides a data source for the virtual digital hardware interface.

[0062] In the above implementation, by obtaining all gateway identifiers in the data pool and determining their corresponding device parameter identifiers, effective data integration is achieved, which not only simplifies the data processing process, but also improves the efficiency of data management. Multiple device parameter identifiers corresponding to the same type of gateway identifiers are classified, further optimizing the data structure, making the data more orderly and easy to manage. This helps to quickly locate the device parameters under a specific type of gateway and improves the efficiency of data query and processing.

[0063] Furthermore, the data pool in the cloud server classifies all data by gateway identifier to form a virtual gateway, which provides a data source for the virtual digital hardware interface. For example, when multiple cloud gateways (such as GW1, GW2, etc.) report data, the data pool will classify the data according to the gateway identifier. If GW1 reports parameter data of multiple devices, the data pool will classify the data into the virtual gateway data set corresponding to GW1.

[0064] Combination Figure 5The figure shows a schematic diagram of the basic structure of the control logic of this embodiment when it is running on the cloud server, including a data pool with data sending and receiving functions and a plurality of containers for deploying control logic, wherein the basic format of the device parameter value when reporting data to the data pool through the gateway is to set "gateway identifier + device parameter identifier + device parameter value". For example, when the Lianyun gateway in the control system 1 reports the operating parameters of the pump to which it is connected, it will report in this format. Assuming that the gateway identifier is GW1, the speed parameter identifier of the pump is SPD, and the current speed value is 1500 rpm, the reported data is "GW1+SPD+1500". The identifier of the parameter reported by the gateway of the same control system must correspond one-to-one to the input and output nodes of the control logic, and the identifier is unique in the same control system, ensuring that the cloud server can accurately distribute the data to the corresponding control logic processing unit. The control logic implements logical operations in the container, obtains output nodes after logical operations on multiple input nodes, and interacts with the protocol interface, including the value of the input node and the issuance of the output node. The protocol interface interacts with the virtual digital hardware interface for data, and the protocol interface sends a polling instruction to the virtual digital hardware interface to read the parameter value. The virtual digital hardware interface sends a control instruction to the protocol interface to write the parameter value. The interaction between the read and write interface and the protocol data table is controlled by the virtualized digital hardware interface to realize the reading and writing of the protocol data table. The virtual digital hardware interface uses a virtual Ethernet interface, a virtual RS485 interface, etc. The logical container of this embodiment provides a basic system operating environment for the control logic. When the control logic is deployed in the container, the identifiers of all gateways involved in the control logic must be bound. For example, in control system 2, control logic A is responsible for regulating the operation of multiple wind turbines. Control logic A will be deployed in a logical container, and the identifiers of the cloud gateways connected to these wind turbines (such as GW3, GW4, etc.) will be bound when deployed. In this way, the control logic A in the logical container can accurately obtain and process data from these wind turbines and issue control instructions. When the fan reports the operating parameters (such as the air volume parameter marked as VOL, and the current air volume value is 5000 cubic meters / hour) to the cloud server through the Lianyun gateway (such as GW3), the data pool will classify the data according to the GW3 identifier. The virtual digital hardware interface obtains the VOL data of GW3 from the data pool and passes it to the control logic in the corresponding logical container. The control logic calculates according to the preset algorithm (such as adjusting the fan speed according to the air volume demand) and generates control instructions. The control instructions are sent to the fan through the cloud server and GW3 to adjust the fan air volume.

[0065] Step S208, the virtual digital hardware interface generates a protocol data table according to the protocol interface requirements corresponding to the control logic of the building control system, and runs the control logic of the building control system in the cloud server through the virtual gateway in combination with the protocol data table.

[0066] Optionally, the virtual digital hardware interface generates a protocol data table according to the protocol interface requirements corresponding to the control logic of the building control system, including:

[0067] Acquire protocol configuration information based on the protocol interface of the control logic of the building control system, where the protocol configuration information includes at least device information and parameter information;

[0068] Obtain device parameter identifiers corresponding to all gateway identifiers bound to the control logic in the data pool;

[0069] Compare the device parameter identifiers obtained from the data pool with the parameter information in the protocol configuration information one by one to determine the protocols, devices, and device parameters to which all parameters reported by the gateway belong;

[0070] Create corresponding protocol data tables based on protocols, devices, and device parameters.

[0071] In this embodiment, the protocol interface is first extracted from the control logic of the building control system, and the protocol interface is responsible for communicating with the control logic. The protocol configuration information is obtained through the protocol interface. The protocol configuration information includes device information, accesses the data pool, and extracts the corresponding device parameter identifier from the data pool according to the gateway identifier bound to the control logic. The device parameter identifier obtained from the data pool is compared one by one with the parameter information in the protocol configuration information. During the comparison process, the protocol, device and device parameter to which all parameters reported by the gateway belong are determined according to the device information, parameter name and other information. According to the comparison results, corresponding entries are established for each protocol, device and device parameter to form a protocol data table. The protocol data table can realize the mapping of parameter address, device parameter value, gateway identifier and device parameter identifier, which can ensure the accuracy and consistency of data. Assume that there is a control logic in the building control system for adjusting the temperature of the air-conditioning system. The control logic communicates with the air-conditioning system through the protocol interface, and the protocol configuration information includes air-conditioning device information (such as device number "AC001", device type "air-conditioning system") and temperature parameter information (such as parameter name "temperature", parameter type "floating point number", parameter range "16-30℃"). The data pool stores the data reported by the gateway (such as the gateway identifier "GW001") connected to the air conditioning system, including the temperature parameter identifier (such as "TEMP") and the corresponding temperature value (such as "25°C"). By comparing the device parameter identifier "TEMP" with the parameter name "temperature" in the protocol configuration information, it can be determined that the parameter belongs to the temperature parameter of the air conditioning device "AC001". Finally, the following entries are established in the protocol data table: protocol name (assuming it is "air conditioning control protocol"), device number ("AC001"), device type ("air conditioning system"), parameter name ("temperature"), parameter type ("floating point number"), parameter value ("25°C").

[0072] In the above implementation, by setting the protocol data table, the logical input and output nodes of the control logic can be automatically mapped to the gateway data, which significantly reduces the workload of manual configuration. The virtual interface can automatically generate the protocol data table according to the requirements of the protocol interface, and realize the fast and accurate mapping from the protocol configuration information to the device parameters. This embodiment can intelligently process the data mapping relationship, so that the system can automatically identify and respond to the communication requirements between different protocols and different devices, and improve the overall intelligence level of the system. By establishing the protocol data table, fast matching and communication between device parameters and the gateway are achieved.

[0073] Optionally, the control logic of the building control system is run in the cloud server through the virtual gateway in combination with the protocol data table, including:

[0074] When the control logic needs to read the device parameter value, it sends a request to the virtual gateway through the protocol interface of the control logic to poll the virtual interface;

[0075] Based on the protocol data table, the values ​​of the corresponding parameter addresses are combined into a response frame of the corresponding protocol and returned to the protocol interface;

[0076] When the control logic needs to control the device parameter value, the protocol interface sends a control request frame to the virtual digital hardware interface through the virtual gateway;

[0077] After receiving the control request frame, the virtual digital hardware interface obtains the device parameter identifier corresponding to the device parameter value in the protocol data table;

[0078] The target gateway where the target device is located is determined through the correspondence between the device parameter identifier and the gateway identifier, and a control instruction is sent to the target gateway.

[0079] In the above implementation, by combining the protocol data to run the control logic of the building control system through the virtual gateway, when the protocol interface needs to read or control the device parameters, it can directly obtain the required information from the protocol data table, avoiding the cumbersome query and conversion process, thereby improving the communication efficiency. The data pool, as an intermediate layer, ensures the reliability and consistency of the data. The data pool stores and forwards device parameter values ​​and control instructions, effectively avoiding the problem of data loss or erroneous transmission.

[0080] Combination Figure 6 As shown, in step S208 of this embodiment, the protocol configuration information of the protocol interface in the control logic is extracted through the control logic container on the cloud server, a virtual interface template is generated according to the hardware interface corresponding to the protocol interface, the device and device parameters in the protocol configuration information are extracted, a protocol data table is generated according to the extracted device and device parameters, and each device parameter identifier in the protocol data table is bound to the bound gateway identifier, see Figure 7The protocol data table template is shown. The protocol data table template includes protocol standard data, and is provided with a mapping between parameter address and device parameter value to network management representation and device parameter identification. When using the protocol data table, the corresponding parameter address, device parameter value, gateway identification or device parameter identification can be directly determined through the mapping relationship in the protocol data table. When it is determined that the virtual digital hardware interface receives a control instruction, the gateway identification and device parameter identification corresponding to the device parameter corresponding to the control instruction are obtained from the protocol data table, and sent to the data pool in the data format of [gateway identification + device parameter identification + device parameter value], and the control instruction is sent to the corresponding gateway through the data pool. When it is determined that the data pool receives data, the received data is compared with the gateway identification bound to the container. If the gateway identification is consistent, the device reference identification is compared in the virtual digital hardware interface of the corresponding control logic container. If the comparison result of the device reference identification is consistent, the received data is filled into the data protocol table. For example, in an intelligent building control system, multiple air-conditioning systems communicate with the cloud server through the BACnet protocol. In the configuration stage, the control logic container extracts the protocol configuration information of the BACnet protocol and generates a protocol data table containing air-conditioning system parameters (such as temperature, humidity, etc.). When the temperature of an air conditioning system needs to be read, the virtual digital hardware interface sends a request to the data pool according to the device parameter identifier and gateway identifier in the protocol data table. The data pool receives the temperature data from the corresponding gateway and compares the gateway identifier and the device parameter identifier. If the comparison is consistent, the temperature data is filled into the protocol data table and the corresponding device parameter value is updated.

[0081] In the above implementation, the protocol configuration information is extracted through the control logic container on the cloud server, and a virtual interface template and a protocol data table are generated, thereby realizing efficient management and configuration of multiple protocols and devices. The data transmission between the cloud server and the gateway adopts a specific data format, which improves the accuracy and efficiency of data transmission. It supports multiple protocol interfaces and can generate virtual interface templates according to the hardware interface corresponding to the protocol interface, which increases the flexibility and scalability of the system. Through the protocol data table, the system can easily add, modify or delete device parameters to meet the needs of different devices and systems. The virtual digital hardware interface receives control instructions and determines the corresponding device parameters and gateway according to the mapping relationship in the protocol data table, thereby realizing precise control of the device.

[0082] According to another aspect of the embodiment of the present application, Figure 8 As shown, a control logic cloud operation device is provided, including:

[0083] A virtual interface construction module 801 is used to connect the terminal device of the building control system to the cloud server through the gateway, and generate a virtual digital hardware interface corresponding to the hardware interface of the building control system in the cloud server;

[0084] The control logic deployment module 803 is used to deploy the control logic of the building control system to the cloud server and bind it with the gateway identifiers of all gateways corresponding to the control system;

[0085] The virtual gateway construction module 805 is used to construct a data pool according to the gateway identifier, the device parameter identifier of the terminal device and the device parameter value, and classify all the data in the data pool according to the gateway identifier to construct a virtual gateway;

[0086] The control logic operation module 807 is used to generate a protocol data table according to the protocol interface requirements corresponding to the control logic of the building control system through the virtual digital hardware interface, and run the control logic of the building control system in the cloud server through the virtual gateway in combination with the protocol data table.

[0087] It should be noted that the virtual interface construction module 801 in this embodiment can be used to execute step S202 in the embodiment of the present application, the control logic deployment module 803 in this embodiment can be used to execute step S204 in the embodiment of the present application, the virtual gateway construction module 805 in this embodiment can be used to execute step S206 in the embodiment of the present application, and the control logic operation module 807 in this embodiment can be used to execute step S208 in the embodiment of the present application.

[0088] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be run in Figure 1 In the hardware environment shown, it can be implemented by software or by hardware.

[0089] According to another aspect of the embodiments of the present application, the present application provides an electronic device, such as Fig. 9 As shown, it includes a memory 901, a processor 903, a communication interface 905 and a communication bus 907. The memory 901 stores a computer program that can be run on the processor 903. The memory 901 and the processor 903 communicate through the communication interface 905 and the communication bus 907. When the processor 903 executes the computer program, the steps of the above method are implemented.

[0090] The memory and processor in the above electronic device communicate through the communication bus and the communication interface. The communication bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus can be divided into an address bus, a data bus, a control bus, etc.

[0091] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0092] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0093] According to another aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any of the above embodiments.

[0094] Optionally, in an embodiment of the present application, the computer-readable medium is configured to store program codes for the processor to execute the following steps:

[0095] Step S202, connecting the terminal device of the building control system to the cloud server through the gateway, and generating a virtual digital hardware interface corresponding to the hardware interface of the building control system in the cloud server.

[0096] Step S204, deploying the control logic of the building control system to the cloud server and binding it with the gateway identifiers of all gateways corresponding to the control system;.

[0097] Step S206, constructing a data pool according to the gateway identifier, the device parameter identifier of the terminal device and the device parameter value, and classifying all the data in the data pool according to the gateway identifier to construct a virtual gateway.

[0098] Step S208, the virtual digital hardware interface generates a protocol data table according to the protocol interface requirements corresponding to the control logic of the building control system, and runs the control logic of the building control system in the cloud server through the virtual gateway in combination with the protocol data table.

[0099] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.

[0100] When the embodiments of the present application are specifically implemented, reference may be made to the above-mentioned embodiments, which have corresponding technical effects.

[0101] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.

[0102] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0103] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0104] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0105] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0106] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0107] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0108] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk. It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.

[0109] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.

Claims

1. A control logic cloud operation method, characterized in that: include: Connecting the terminal device of the building control system to the cloud server through the gateway, and generating a virtual digital hardware interface corresponding to the hardware interface of the building control system in the cloud server; Deploy the control logic of the building control system to the cloud server and bind it with the gateway identifiers of all gateways corresponding to the control system; Building a data pool according to the gateway identifier, the device parameter identifier of the terminal device and the device parameter value, and classifying all the data in the data pool according to the gateway identifier to build a virtual gateway; The virtual digital hardware interface generates a protocol data table according to the protocol interface requirements corresponding to the control logic of the building control system, and runs the control logic of the building control system in the cloud server through the virtual gateway in combination with the protocol data table.

2. The control logic cloud operation method according to claim 1, characterized in that: The terminal device of the building control system is connected to the cloud server through the gateway, and a virtual digital hardware interface corresponding to the hardware interface of the building control system is generated in the cloud server, including: Configure the network of the gateway according to the communication protocol between the terminal equipment of the building control system and the cloud server; Constructing a virtual digital hardware interface on a cloud server according to an interface specification corresponding to the hardware interface of the building control system; A polling mechanism of the virtual digital hardware interface is set, and the polling mechanism is used to periodically send a request frame to the gateway.

3. The control logic cloud operation method according to claim 1, characterized in that: The step of deploying the control logic of the building control system to the cloud server and binding it with the gateway identifiers of all gateways corresponding to the control system includes: Acquire control logic corresponding to the building control system, wherein the control logic includes a logic algorithm and a protocol interface; Configure a logic container for deploying the control logic on a cloud server, and deploy the logic algorithm and the protocol interface into the logic container; Obtaining gateway identifiers corresponding to all gateways between the terminal devices of the building control system and the cloud server; All the acquired gateways are bound to the corresponding control logic on the cloud server.

4. The control logic cloud operation method according to claim 1, characterized in that: The step of constructing a data pool according to the gateway identifier, the device parameter identifier and the device parameter value of the terminal device, and classifying all data in the data pool by the gateway identifier to construct a virtual gateway includes: Determine the gateway identifiers of all gateways between the terminal device and the cloud server, the device parameter values ​​and corresponding device parameter identifiers that the terminal device needs to upload to the cloud server; Setting the format of the device parameters reported by the gateway according to the gateway identifier, the device parameter identifier and the device parameter value sequence; Building a data pool in the cloud server according to all device parameters reported by the gateway, the data pool including a plurality of data consisting of the gateway identifier, the device parameter identifier, and the device parameter value; All data in the data pool are classified according to the correspondence between different types of gateway identifiers and device parameter identifiers in the data pool to construct a virtual gateway.

5. The control logic cloud operation method according to claim 4, characterized in that: The classifying all the data in the data pool to construct a virtual gateway by the correspondence between different types of gateway identifiers and device parameter identifiers in the data pool includes: Get all different types of gateway identifiers in the data pool; Determine the device parameter identifiers corresponding to all different types of gateway identifiers; Classify multiple device parameter identifiers corresponding to the same type of gateway identifiers; A virtual gateway is constructed according to the correspondence between a plurality of device parameter identifiers and gateway identifiers, and the virtual gateway provides a data source for the virtual digital hardware interface.

6. The control logic cloud operation method according to claim 1, characterized in that: The virtual digital hardware interface generates a protocol data table according to the protocol interface requirements corresponding to the control logic of the building control system, including: Acquire protocol configuration information based on a protocol interface of the control logic of the building control system, wherein the protocol configuration information includes at least device information and parameter information; Obtaining device parameter identifiers corresponding to all gateway identifiers bound to the control logic in the data pool; Compare the device parameter identifiers obtained from the data pool with the parameter information in the protocol configuration information one by one to determine the protocols, devices, and device parameters to which all parameters reported by the gateway belong; A corresponding protocol data table is established according to the protocol, device and device parameters.

7. The control logic cloud operation method according to claim 6, characterized in that: The control logic of the building control system is run in the cloud server through a virtual gateway in combination with the protocol data table, including: When the control logic needs to read the device parameter value, it sends a request to the virtual gateway through the protocol interface of the control logic to poll the virtual interface; Based on the protocol data table, the values ​​of the corresponding parameter addresses are combined into a response frame of the corresponding protocol and returned to the protocol interface; When the control logic needs to control the device parameter value, the protocol interface sends a control request frame to the virtual digital hardware interface through the virtual gateway; After receiving the control request frame, the virtual digital hardware interface obtains the device parameter identifier corresponding to the device parameter value in the protocol data table; The target gateway where the target device is located is determined according to the correspondence between the device parameter identifier and the gateway identifier, and a control instruction is sent to the target gateway.

8. A control logic cloud operation device, characterized in that: include: A virtual interface construction module, used to connect the terminal device of the building control system to the cloud server through the gateway, and generate a virtual digital hardware interface corresponding to the hardware interface of the building control system in the cloud server; A control logic deployment module, used to deploy the control logic of the building control system to the cloud server and bind it with the gateway identifiers of all gateways corresponding to the control system; A virtual gateway construction module, used to construct a data pool according to the gateway identifier, the device parameter identifier of the terminal device and the device parameter value, and classify all the data in the data pool according to the gateway identifier to construct a virtual gateway; The control logic operation module is used to generate a protocol data table according to the protocol interface requirements corresponding to the control logic of the building control system through the virtual digital hardware interface, and run the control logic of the building control system in the cloud server through the virtual gateway in combination with the protocol data table.

9. An electronic device, comprising a memory, a processor, a communication interface and a communication bus, wherein the memory stores a computer program that can be run on the processor, and the memory and the processor communicate through the communication bus and the communication interface, characterized in that: When the processor executes the computer program, the control logic cloud operation method described in any one of claims 1 to 7 is implemented.

10. A computer readable medium having a non-volatile program code executable by a processor, characterized in that: The program code enables the processor to execute the control logic cloud operation method described in any one of claims 1 to 7.