A test method, device, equipment and medium for building control system

The method constructs a topological diagram for building control systems to test parent nodes before child nodes, addressing the challenges of manual debugging and incomplete testing, thereby enhancing efficiency and quality.

CN118631672BActive Publication Date: 2025-01-03TONGFANG SMART ENERGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411117450.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2025-01-03
Estimated Expiration
2044-08-15

AI Technical Summary

Technical Problem

Current building control system testing methods face challenges with low matching with upper-layer software customization, requiring manual debugging and are difficult to troubleshoot due to complex data coupling and lack of comprehensive testing.

Method used

A method and device for building control system testing that constructs a topological diagram, identifies associated nodes, and generates a test process where parent nodes are tested before child nodes, ensuring comprehensive testing and minimizing backtracking.

Benefits of technology

Enhances testing efficiency by ensuring dependent modules are not missed, allowing early detection of faults affecting multiple nodes, reducing the need for retesting and improving overall test quality and customization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118631672B_ABST
    Figure CN118631672B_ABST
Patent Text Reader

Abstract

This invention discloses a testing method, apparatus, device, and medium for a building control system. The method includes: selecting at least one current node to be tested from a topology diagram of the building control system; the topology diagram includes a management layer, a data monitoring layer, and an equipment control layer; the current node belongs to either the data monitoring layer or the equipment control layer; if there are associated nodes of the current node in the topology diagram, generating a selection reminder message for the associated nodes; in response to confirmation feedback of the selection reminder message, designating both the current node and the associated nodes as nodes to be tested, and obtaining the parent nodes that each node to be tested depends on in the topology diagram; generating a current test flow for the building control system based on the nodes to be tested and their dependent parent nodes; and testing the building control system according to the current test flow. This invention improves the testing efficiency of building control systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of software testing, and in particular to a testing method, device, equipment and medium for a building control system. Background Art

[0002] In intelligent building software, from bottom-level data collection to platform display, there are many modules and data coupling is strong. After the production environment is deployed, it is impossible to ensure that basic configuration, bottom-level data collection communication, object model comparison and other basic issues are complete in the on-site deployment test phase, which seriously affects the debugging time. Summary of the invention

[0003] The present invention provides a testing method, device, equipment and medium for a building control system to solve the problems that the current equipment has a low degree of matching with upper-layer software customization, requires manual debugging, has many points, and is difficult to troubleshoot.

[0004] According to one aspect of the present invention, a method for testing a building control system is provided, comprising:

[0005] Obtain at least one current node to be tested from a topology diagram of a building control system; wherein the topology diagram includes a management layer, a data monitoring layer, and a device control layer; the current node belongs to the data monitoring layer or the device control layer; the data monitoring layer includes at least one of the following nodes: power consumption monitoring, energy consumption monitoring, environmental monitoring, cold and heat source monitoring, air conditioning monitoring, lighting monitoring, power distribution monitoring, elevator monitoring, fire monitoring, video monitoring, access control monitoring, anti-theft monitoring, or parking monitoring; the device control layer includes at least one of the following nodes: cold and heat source control, air conditioning control, lighting control, power distribution control, elevator control, fire alarm control, video control, access control, anti-theft control, or parking control;

[0006] If there is an associated node of the current node in the topology map, generating a selection reminder message for the associated node;

[0007] In response to a confirmation feedback of the selection reminder message, the current node and the associated node are both used as nodes to be tested, and the parent node that each of the nodes to be tested depends on in the topology graph is obtained;

[0008] Generate a current test process of the building control system according to the node to be tested and the dependent parent node; wherein the test order of the parent node precedes the test order of the node to be tested;

[0009] The building control system is tested according to the current test process.

[0010] According to another aspect of the present invention, there is provided a testing device for a building control system, comprising:

[0011] A current node acquisition module, used to acquire at least one current node to be tested selected from a topology diagram of a building control system; wherein the topology diagram includes a management layer, a data monitoring layer and a device control layer; the current node belongs to the data monitoring layer or the device control layer; the data monitoring layer includes at least one of the following nodes: power consumption monitoring, energy consumption monitoring, environmental monitoring, cold and heat source monitoring, air conditioning monitoring, lighting monitoring, power distribution monitoring, elevator monitoring, fire monitoring, video monitoring, access control monitoring, anti-theft monitoring or parking monitoring; the device control layer includes at least one of the following nodes: cold and heat source control, air conditioning control, lighting control, power distribution control, elevator control, fire alarm control, video control, access control, anti-theft control or parking control;

[0012] The associated node acquisition module includes: an associated node prompting unit and an associated node determining unit;

[0013] The associated node prompting unit is used to generate a selection prompting message of the associated node if there is an associated node of the current node in the topological map;

[0014] The associated node determination unit is used to respond to the confirmation feedback of the selection reminder message, take both the current node and the associated node as nodes to be tested, and obtain the parent node that each of the nodes to be tested depends on in the topology map;

[0015] A test process determination module, used to generate a current test process of the building control system according to the node to be tested and the dependent parent node; wherein the test order of the parent node precedes the test sequence of the node to be tested;

[0016] The test module is used to test the building control system according to the current test process.

[0017] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the building control system testing method according to any embodiment of the present invention.

[0018] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0019] at least one processor; and

[0020] a memory communicatively connected to the at least one processor; wherein,

[0021] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the building control system testing method described in any embodiment of the present invention.

[0022] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the building control system testing method described in any embodiment of the present invention when executed.

[0023] The embodiment of the present invention constructs a topological diagram of a building control system, obtains the associated nodes of the current node, generates a selection reminder message of the associated nodes, and assists the tester in selecting the nodes to be tested; and obtains the parent node of each node to be tested, and generates a test process for the building control system according to the node to be tested and the parent node it depends on; and tests the building control system according to the test process. It can assist the tester in customizing the selection of nodes to be tested from many points of the building control system according to actual needs, construct a test process, and troubleshoot problems, thereby realizing the customization of the test process arrangement, avoiding the overall detection of the building control system, and at the same time providing the tester with a selection reminder of the associated nodes to ensure that the dependent modules of the current node will not be missed; the test order of the parent node precedes the node to be tested, so that the fault that may affect multiple child nodes can be discovered as early as possible, and there is no need to discover the fault of the parent node when testing the child node, avoiding the need to backtrack and retest all child nodes that depend on the parent node, thereby improving the test efficiency of the building control system.

[0024] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0026] Figure 1 is a first flow chart of a testing method for a building control system provided by an embodiment of the present invention;

[0027] Figure 2 is a second flow chart of a building control system testing method provided by an embodiment of the present invention;

[0028] Figure 3 is a third flow chart of a building control system testing method provided by an embodiment of the present invention;

[0029] Figure 4 is a structural schematic diagram of a testing device for a building control system provided by an embodiment of the present invention;

[0030] Figure 5 It is a schematic diagram of the structure of an electronic device implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0033] Figure 1 This is the first flow chart of the test method of the building control system provided by the embodiment of the present invention. This embodiment can be applied to the situation where a test process is arranged for the building control system and the building control system is tested according to the test process. The method can be executed by a test device of the building control system. The device can be implemented in the form of hardware and / or software. The device can be configured in an electronic device with corresponding data processing capabilities. Figure 1 As shown, the method includes:

[0034] S110: Acquire at least one current node that needs to be tested from a topology diagram of the building control system.

[0035] Among them, the topology map includes a management layer, a data monitoring layer and a device control layer; the current node belongs to the data monitoring layer or the device control layer; the data monitoring layer includes at least one of the following nodes: electricity consumption monitoring, energy consumption monitoring, environmental monitoring, cold and heat source monitoring, air conditioning monitoring, lighting monitoring, power distribution monitoring, elevator monitoring, fire monitoring, video monitoring, access control monitoring, anti-theft monitoring or parking monitoring; the device control layer includes at least one of the following nodes: cold and heat source control, air conditioning control, lighting control, power distribution control, elevator control, fire alarm control, video control, access control, anti-theft control or parking control.

[0036] Specifically, the network dependency relationship of the content to be detected is constructed in the form of a two-dimensional network topology diagram (for example, a directed graph). The first layer of the topology diagram is the management layer, which includes four nodes: system management, equipment management, personnel and organization management, and space management. It is the basic architecture that supports the entire building control system. Among them, system management is the management of the operation of the building control system, such as the operation status of the system, that is, whether the building control system is operating normally, the system's CPU usage, the server's operation status, etc. Equipment management is used to manage the equipment in the building control system, for example, whether each device is started, whether it is operating normally, and whether the data of the device can be obtained, such as PLC (Programmable Logic Controller) point data. Personnel and organization management is used to identify the personnel in the building and assign corresponding permissions according to their roles and responsibilities. Space management is used to reasonably plan the spatial layout and use of different areas according to the actual situation and usage requirements of the building, and dynamically allocate and adjust the space in the building.

[0037] The second layer of the topology is the data monitoring layer, which can include nodes such as power consumption monitoring, energy consumption monitoring, environmental monitoring, and cold and heat source monitoring, which are used to collect and monitor various key data in real time to ensure the safe, efficient and comfortable operation of the building. For example, power consumption monitoring monitors the voltage, current, power factor and other parameters of each electrical equipment in the building in real time, as well as total power consumption, time-sharing power consumption and other data to help managers understand the power consumption, timely discover power anomalies and waste, optimize power distribution and use, and improve power efficiency; energy consumption monitoring is used to monitor the use of other energy sources (such as water, gas, etc.) in addition to electricity in the building, to help managers fully understand energy consumption and provide data support for energy saving and consumption reduction. The third layer of the topology is the equipment control layer, which can include nodes such as cold and heat source control and air conditioning control, which are used to send control instructions to the equipment to realize the start, stop, speed regulation and other functions of the equipment.

[0038] According to the relationship between each module in the building control system, connections are established for each node in the topology diagram. The topology diagram presents a mesh relationship. A child node can have at least one parent node, and a parent node can also have at least one child node. Provide the function of selecting nodes in the second layer (data monitoring layer) and the third layer (device control layer) in the topology diagram, and support manual selection of nodes in the data monitoring layer or device control layer as the current node to test the building control system.

[0039] S120: If there is an associated node of the current node in the topology map, generate a selection reminder message for the associated node.

[0040] Specifically, according to the position of the current node in the topology map, the characteristics of the topology map are used to determine the dependency relationship between the current node and other nodes in the topology map. Starting from the current node, all directly and indirectly dependent nodes are tracked until all reachable nodes have been visited, that is, nodes that no longer have other dependencies, such as leaf nodes, are tracked. The optimal dependency path is sought to determine the necessary associated nodes, and a selection reminder message for the associated nodes is generated to prompt the user to select other nodes associated with the current node.

[0041] S130 . In response to a confirmation feedback of the selection reminder message, both the current node and the associated node are used as nodes to be tested, and a parent node that each of the nodes to be tested depends on in the topology graph is obtained.

[0042] Specifically, after obtaining the user's confirmation feedback on the selection reminder message, the current node and the associated node confirmed by the user are both used as the nodes to be tested. After the node to be tested is selected, the parent nodes of all levels on which it depends are automatically checked. The dependency relationship between nodes is determined through the topological map, and the tester is provided with a selection reminder for the associated node, ensuring the comprehensiveness and accuracy of the current test.

[0043] S140. Generate a current test process of the building control system according to the node to be tested and the dependent parent node; wherein the test order of the parent node precedes the test order of the node to be tested.

[0044] The current test process of the building control system is generated according to the node to be tested and its dependent parent node, as well as the dependency relationship of each node in the topology diagram.

[0045] S150: Test the building control system according to the current test process.

[0046] Among them, the test order of the parent node precedes the node to be tested, that is, when testing the node to be tested, the test of the parent node must be completed first. For example, when testing the air-conditioning control, the test of the first-level nodes such as system management and equipment management must be completed first to test whether the building control system is operating normally and whether the air-conditioning equipment to be tested in the current space is normal; then test the second-level nodes to test whether the air-conditioning monitoring, environmental monitoring and other functions in the building control system are normal; detect whether the air-conditioning control functions such as opening, closing, and temperature adjustment of the air-conditioning are normal, and complete the test of the air-conditioning control.

[0047] If the parent node functions abnormally, the test of the child node will be affected due to the dependency, resulting in inaccurate test results or failure to correctly evaluate the function of the child node. By testing the parent node first, faults that may affect multiple child nodes can be discovered as early as possible, without having to discover the parent node's fault when testing the child node, avoiding the need to backtrack and retest all child nodes that depend on the parent node, thereby improving test efficiency.

[0048] Test priorities can also be set between nodes on the same layer. For example, nodes with a wider impact range can be tested first with other nodes on the same layer to ensure that nodes with a wider impact range are tested first, thereby ensuring their functionality and stability and reducing the negative impact caused by node failures. Generate test reports from multiple aspects such as control, process tasks, stress testing, response timeliness, and task completion, and record all faults found during the test. Start the automatic repair function of the building control system and update the monitoring report of the building control system. Archive documents such as test plans, test cases, test reports, and fault records for subsequent reference and audit.

[0049] The embodiment of the present invention constructs a topological diagram of a building control system, obtains the associated nodes of the current node, generates a selection reminder message of the associated nodes, and assists the tester in selecting the nodes to be tested; and obtains the parent node of each node to be tested, and generates a test process for the building control system according to the node to be tested and the parent node it depends on; and tests the building control system according to the test process. It can assist the tester to customize the selection of nodes to be tested from many points of the building control system according to actual needs, build a test process, and conduct problem troubleshooting, thereby realizing the customization of the test process arrangement and avoiding the overall detection of the building control system. At the same time, it reminds the tester to select the associated nodes to ensure that the dependent modules of the current node will not be missed. The test order of the parent node precedes the node to be tested, so that the faults that may affect multiple child nodes can be discovered as early as possible, and there is no need to discover the faults of the parent node when testing the child node, avoiding the need to backtrack and retest all child nodes that depend on the parent node, thereby improving the test efficiency of the building control system.

[0050] Figure 2This is the second flow chart of the building control system test method provided by the embodiment of the present invention. Based on the above embodiment, this embodiment further defines "if there is an associated node of the current node in the topology map, a selection reminder message of the associated node is generated". Figure 2 As shown, the method includes:

[0051] S210: Acquire at least one current node that needs to be tested from a topology diagram of the building control system.

[0052] Among them, the topology map includes a management layer, a data monitoring layer and a device control layer; the current node belongs to the data monitoring layer or the device control layer; the data monitoring layer includes at least one of the following nodes: electricity consumption monitoring, energy consumption monitoring, environmental monitoring, cold and heat source monitoring, air conditioning monitoring, lighting monitoring, power distribution monitoring, elevator monitoring, fire monitoring, video monitoring, access control monitoring, anti-theft monitoring or parking monitoring; the device control layer includes at least one of the following nodes: cold and heat source control, air conditioning control, lighting control, power distribution control, elevator control, fire alarm control, video control, access control, anti-theft control or parking control.

[0053] S220. For the current node in the data monitoring layer, obtain the child nodes of the current node from the device control layer, and obtain the historical test records of the current node and the child nodes.

[0054] Specifically, when the current node is located in the data monitoring layer of the topology map, the child nodes of the current node in the topology map are obtained, and the child nodes are located in the device control layer of the topology map. The historical test records of the current node and its child nodes are obtained.

[0055] S230: Determine the degree of state synchronization between the current node and the child nodes according to the historical test records.

[0056] Analyze the historical test records of the current node and its child nodes to determine the synchronization status between the current node and its child nodes. Exemplarily, the test records are cleaned and format converted, and the test records are aggregated according to nodes and time series for comparison and analysis. Existing data analysis methods can be used to analyze the historical test records of the current node and its child nodes, and the synchronization status between the current node and its child nodes is evaluated. The synchronization status between nodes includes: fully synchronized, partially synchronized, not synchronized, or cannot be determined, which characterizes the degree of state synchronization between nodes.

[0057] S240: If the state synchronization degree satisfies a preset synchronization test condition, a test selection reminder message is generated for the subnode according to the state synchronization degree.

[0058] If the state synchronization degree between the current node and its child nodes meets the preset synchronization test conditions, a selection reminder message is generated for the child nodes according to the state synchronization degree. The state synchronization degree between the current node and its child nodes is determined through the historical test records of the current node and its child nodes. When the state synchronization degree meets the preset synchronization test conditions, a selection reminder message is generated for the child nodes. The associated child nodes of the current node are screened according to the state synchronization degree to reduce the interference of nodes that are not synchronized with the current node and simplify the test process; a selection reminder message is generated for the screened child nodes according to the state synchronization degree, so that the test personnel can confirm whether to use the child node as the node to be tested according to the state synchronization degree between the nodes, avoiding the omission of the child nodes synchronized with the current node.

[0059] S250 . In response to a confirmation feedback of the selection reminder message, both the current node and the associated nodes are used as nodes to be tested, and the parent node that each of the nodes to be tested depends on in the topology graph is obtained.

[0060] S260, generating a current test process of the building control system according to the node to be tested and the dependent parent node; wherein the test order of the parent node is prior to the node to be tested;

[0061] S270. Test the building control system according to the current test process.

[0062] The embodiment of the present invention constructs a topological diagram of a building control system, obtains the associated nodes of the current node, generates a selection reminder message of the associated nodes, and assists the tester in selecting the nodes to be tested; and obtains the parent node of each node to be tested, and generates a test process for the building control system according to the node to be tested and the parent node it depends on; and tests the building control system according to the test process. It can assist the tester in customizing the selection of nodes to be tested from many points of the building control system according to actual needs, construct a test process, and troubleshoot problems, thereby realizing the customization of the test process arrangement, avoiding the overall detection of the building control system, and at the same time providing the tester with a selection reminder of the associated nodes to ensure that the dependent modules of the current node will not be missed; the test order of the parent node precedes the node to be tested, so that the fault that may affect multiple child nodes can be discovered as early as possible, and there is no need to discover the fault of the parent node when testing the child node, avoiding the need to backtrack and retest all child nodes that depend on the parent node, thereby improving the test efficiency of the building control system.

[0063] On the basis of the above embodiment, optionally, if there is an associated node of the current node in the topology map, a selection reminder message of the associated node is generated, including: based on a pre-set same-layer dependency, determining whether there is a dependent associated node in the data monitoring layer or the device control layer to which the current node belongs; if so, generating a selection reminder message of the associated node.

[0064] Specifically, the current node is located in the data monitoring layer or the device control layer of the topology map, and the dependency relationship between the current node and the nodes in the same layer in the topology map is obtained. The dependency relationship between the nodes in the same layer is preset and can exist in the form of a table in a graph database, a relational database, or a dependency list in a configuration file. Based on the preset same-layer dependency relationship, determine whether there is a dependent associated node in the data monitoring layer or the device control layer to which the current node belongs. If so, generate a selection reminder message for the associated node.

[0065] According to the preset dependency relationship between nodes in the same layer, nodes associated with the current node are selected from the nodes in the same layer, and a selection reminder message is generated for the associated nodes in the same layer, so that the tester can select the node to be tested according to the selection reminder message, thereby avoiding the omission of nodes in the same layer associated with the current node. It should be noted that the above-mentioned determination of the associated nodes of the current node based on the state synchronization degree and the determination of the associated nodes of the current node based on the same layer dependency relationship are in parallel relationship, and can be used together, that is, the associated nodes are determined based on the state synchronization degree and the same layer dependency relationship.

[0066] Figure 3 FIG. 3 is a third flow chart of a test method for a building control system provided by an embodiment of the present invention. This embodiment further illustrates how to test a building control system according to the current test process based on the above embodiments. Figure 3 As shown, the method includes:

[0067] S310: Obtain at least one current node that needs to be tested from a topology diagram of the building control system.

[0068] Among them, the topology map includes a management layer, a data monitoring layer and a device control layer; the current node belongs to the data monitoring layer or the device control layer; the data monitoring layer includes at least one of the following nodes: electricity consumption monitoring, energy consumption monitoring, environmental monitoring, cold and heat source monitoring, air conditioning monitoring, lighting monitoring, power distribution monitoring, elevator monitoring, fire monitoring, video monitoring, access control monitoring, anti-theft monitoring or parking monitoring; the device control layer includes at least one of the following nodes: cold and heat source control, air conditioning control, lighting control, power distribution control, elevator control, fire alarm control, video control, access control, anti-theft control or parking control.

[0069] S320: If there is an associated node of the current node in the topology map, generate a selection reminder message for the associated node.

[0070] S330: In response to a confirmation feedback of the selection reminder message, the current node and the associated nodes are both used as nodes to be tested, and the parent node that each of the nodes to be tested depends on in the topology graph is obtained.

[0071] S340. Generate a current test process of the building control system according to the node to be tested and the dependent parent node; wherein the test order of the parent node precedes the test order of the node to be tested.

[0072] S350: If it is determined according to the historical test records that there is a faulty node in the current test process, a first test process is generated according to the faulty node, and the faulty node is removed from the current test process to obtain a second test process.

[0073] The test sequence of the first test process is prior to that of the second test process. The nodes with faults in the historical test are separated from the current test process, the first test process is generated according to the faulty nodes, and the faulty nodes are removed from the current test process. The test process is adjusted according to the dependency relationship of the remaining nodes to ensure that the second test process is logically coherent and feasible.

[0074] Separately testing nodes that have faults in the historical test process avoids the problem that the faulty nodes in the historical test process are still in a faulty state, causing the overall execution of the current test process to fail, and thus failing to cover other nodes to be tested. The test sequence of the first test process precedes the second test process, which can ensure that the key fault problems are solved before continuing other tests. This helps reduce uncertainty in the test process and improve the overall efficiency and quality of the test.

[0075] In an optional embodiment, the testing of the building control system according to the current test process includes: obtaining PLC point data of the node to be tested in the current test process; parsing the PLC point data to obtain a parsing result based on the description information and / or control rules in the physical model of the node to be tested; and testing the node to be tested according to the parsing result.

[0076] In a building control system, PLC is responsible for controlling various devices. The physical model is an abstract description of a physical device or node in the digital world, including information such as the properties, services, and events of the device or node. The point data of the node to be tested is read from the PLC. The point data may include switch status, analog readings, counter values, etc. The descriptive information in the physical model of the node to be tested, such as the point name, data type, unit, range, etc., is obtained, and the point data of the node to be tested is parsed according to the descriptive information in the physical model of the node to be tested; the control rules in the physical model of the node to be tested are obtained, and these rules are applied to the parsed point data, and the parsed point data is compared with the expected value or standard to determine whether the data meets specific conditions or standards to obtain the parsing results, such as normal, abnormal, warning, etc.

[0077] In existing building control systems, there may already be multiple physical models. For example, an air-conditioning system may correspond to a physical model that includes attributes such as temperature, humidity, and wind speed; a lighting system may correspond to a physical model that includes attributes such as switch status and brightness level. Existing physical models can be used directly. If the physical model in the existing system cannot meet the test requirements, the physical model can be rebuilt or expanded to ensure that the hardware equipment corresponds to the software parameters one by one, and a parameter-driven mechanism is set up. Functional transactions are dynamically customized with different parameters. For example, when the sensor detects that the indoor temperature is too high, the software system can automatically adjust the operating parameters of the air-conditioning system to lower the indoor temperature.

[0078] By introducing the physical model, the one-to-one correspondence between the hardware equipment and the software parameters is ensured. The physical model is dynamically acquired by the test system corresponding to this method, eliminating the need for a large amount of manual basic debugging work during the building control system test.

[0079] In an optional implementation, the testing of the building control system according to the current test process includes: if the current test result of any node to be tested in the current test process is a fault, removing the node to be tested and the sub-nodes of the test node from the current test process to obtain a new current test process; and continuing to test the new current test process.

[0080] If any node to be tested in the current test process fails, the failed node and all its subnodes will be removed from the current test process to avoid interruption of the entire test process or misleading test results due to a single failed node. The problem of the failed node can be discovered and solved in time during the test process, while maintaining the continuity and effectiveness of the test. It also helps to reduce the waste of test resources and the extension of the test cycle caused by a single failed node.

[0081] The above-mentioned scheme of testing according to historical test records, the scheme of testing based on PLC point data analysis results, and the scheme of testing according to the current test results of the node to be tested are in parallel and can be used together, that is, testing according to historical test records, testing based on PLC point data analysis results, and / or testing according to the current test results of the node to be tested.

[0082] The embodiment of the present invention constructs a topological diagram of a building control system, obtains the associated nodes of the current node, generates a selection reminder message of the associated nodes, and assists the tester in selecting the nodes to be tested; and obtains the parent node of each node to be tested, and generates a test process for the building control system according to the node to be tested and the parent node it depends on; and tests the building control system according to the test process. It can assist the tester in customizing the selection of nodes to be tested from many points of the building control system according to actual needs, construct a test process, and troubleshoot problems, thereby realizing the customization of the test process arrangement and avoiding the comprehensive detection of the building control system. At the same time, it reminds the tester to select the associated nodes to ensure that the dependent modules of the current node will not be missed; the test order of the parent node precedes the node to be tested, so that the faults that may affect multiple child nodes can be discovered as early as possible, and there is no need to discover the faults of the parent node when testing the child node, avoiding the need to backtrack and retest all child nodes that depend on the parent node, thereby improving the test efficiency of the building control system.

[0083] Figure 4 is a schematic diagram of the structure of a testing device for a building control system provided by an embodiment of the present invention; Figure 4 As shown, the device comprises:

[0084] The current node acquisition module 410 is used to acquire at least one current node to be tested from the topology diagram of the building control system; wherein the topology diagram includes a management layer, a data monitoring layer and a device control layer; the current node belongs to the data monitoring layer or the device control layer; the data monitoring layer includes at least one of the following nodes: power consumption monitoring, energy consumption monitoring, environmental monitoring, cold and heat source monitoring, air conditioning monitoring, lighting monitoring, power distribution monitoring, elevator monitoring, fire monitoring, video monitoring, access control monitoring, anti-theft monitoring or parking monitoring; the device control layer includes at least one of the following nodes: cold and heat source control, air conditioning control, lighting control, power distribution control, elevator control, fire alarm control, video control, access control, anti-theft control or parking control;

[0085] The associated node acquisition module 420 includes: an associated node prompting unit and an associated node determining unit;

[0086] The associated node prompting unit is used to generate a selection prompting message of the associated node if there is an associated node of the current node in the topological map;

[0087] The associated node determination unit is used to respond to the confirmation feedback of the selection reminder message, take both the current node and the associated node as nodes to be tested, and obtain the parent node that each of the nodes to be tested depends on in the topology map;

[0088] The test process determination module 430 is used to generate the current test process of the building control system according to the node to be tested and the dependent parent node; wherein the test order of the parent node precedes the test node to be tested;

[0089] The testing module 440 is used to test the building control system according to the current testing process.

[0090] The testing device for a building control system provided in an embodiment of the present invention can execute the testing method for a building control system provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

[0091] Optionally, the associated node prompting unit is specifically used to:

[0092] For the current node in the data monitoring layer, the child nodes of the current node are obtained from the device control layer, and the historical test records of the current node and the child nodes are obtained; based on the historical test records, the degree of state synchronization between the current node and the child nodes is determined; if the state synchronization degree meets the preset synchronization test conditions, a selection reminder message is generated for the child node based on the state synchronization degree.

[0093] Optionally, the associated node prompting unit is further used to:

[0094] Based on the preset same-layer dependency relationship, determine whether there is a dependent associated node in the data monitoring layer or the device control layer to which the current node belongs;

[0095] If so, a selection reminder message for the associated node is generated.

[0096] Optionally, the test module includes a first test unit, which is used to generate a first test process based on the faulty node if it is determined according to historical test records that there is a faulty node in the current test process, and to obtain a second test process by removing the faulty node from the current test process; wherein the test order of the first test process precedes that of the second test process.

[0097] Optionally, the test module includes a second test unit, which is used to obtain PLC point data of the node to be tested in the current test process; based on the descriptive information and / or control rules in the physical model of the node to be tested, parse the PLC point data to obtain a parsing result; and test the node to be tested according to the parsing result.

[0098] Optionally, the test module includes a third test unit, which is used to remove the node to be tested and the sub-nodes of the test node from the current test process if the current test result of any node to be tested in the current test process is a failure, to obtain a new current test process; and continue testing the new current test process.

[0099] The test device for the building control system further described can also execute the test method for the building control system provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0100] Figure 5 A schematic diagram of an electronic device 50 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0101] like Figure 5 As shown, the electronic device 50 includes at least one processor 51, and a memory connected to the at least one processor 51 in communication, such as a read-only memory (ROM) 52, a random access memory (RAM) 53, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 51 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 52 or the computer program loaded from the storage unit 58 to the random access memory (RAM) 53. In the RAM 53, various programs and data required for the operation of the electronic device 50 can also be stored. The processor 51, the ROM 52, and the RAM 53 are connected to each other through a bus 54. An input / output (I / O) interface 55 is also connected to the bus 54.

[0102] A number of components in the electronic device 50 are connected to the I / O interface 55, including: an input unit 56, such as a keyboard, a mouse, etc.; an output unit 57, such as various types of displays, speakers, etc.; a storage unit 58, such as a disk, an optical disk, etc.; and a communication unit 59, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 59 allows the electronic device 50 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0103] The processor 51 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 51 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 51 executes the various methods and processes described above, such as a test method for a building control system.

[0104] In some embodiments, the test method for a building control system may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 58. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 50 via the ROM 52 and / or the communication unit 59. When the computer program is loaded into the RAM 53 and executed by the processor 51, one or more steps of the test method for a building control system described above may be performed. Alternatively, in other embodiments, the processor 51 may be configured to execute the test method for a building control system in any other appropriate manner (e.g., by means of firmware).

[0105] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0106] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0107] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0108] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0109] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0110] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0111] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0112] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A testing method for a building control system, characterized in that: include: Obtain at least one current node to be tested selected from a topology diagram of a building control system; wherein the topology diagram includes a management layer, a data monitoring layer, and a device control layer; the current node belongs to the data monitoring layer or the device control layer; the data monitoring layer includes at least one of the following nodes: power consumption monitoring, energy consumption monitoring, environmental monitoring, cold and heat source monitoring, air conditioning monitoring, lighting monitoring, power distribution monitoring, elevator monitoring, fire monitoring, video monitoring, access control monitoring, anti-theft monitoring, or parking monitoring; the device control layer includes at least one of the following nodes: cold and heat source control, air conditioning control, lighting control, power distribution control, elevator control, fire alarm control, video control, access control, anti-theft control, or parking control; If there is an associated node of the current node in the topology map, generating a selection reminder message for the associated node; In response to a confirmation feedback of the selection reminder message, the current node and the associated node are both used as nodes to be tested, and the parent node that each of the nodes to be tested depends on in the topology graph is obtained; Generate a current test process of the building control system according to the node to be tested and the dependent parent node; wherein the test order of the parent node precedes the test order of the node to be tested; Testing of building control systems according to the current test process described includes: Obtaining PLC point data of the node to be tested in the current test process; Based on the description information and / or control rules in the physical model of the node to be tested, the PLC point data is parsed to obtain a parsing result; The node to be tested is tested according to the analysis result.

2. The method according to claim 1, characterized in that If there is an associated node of the current node in the topology map, a selection reminder message of the associated node is generated, including: For the current node in the data monitoring layer, obtain the child nodes of the current node from the device control layer, and obtain the historical test records of the current node and the child nodes; Determine the degree of state synchronization between the current node and the child nodes according to the historical test records; If the state synchronization degree meets the preset synchronization test condition, a selection reminder message is generated for the child node according to the state synchronization degree.

3. The method according to claim 1, characterized in that If there is an associated node of the current node in the topology map, generating a selection reminder message of the associated node includes: Based on the preset same-layer dependency relationship, determine whether there is a dependent associated node in the data monitoring layer or the device control layer to which the current node belongs; If so, a selection reminder message for the associated node is generated.

4. The method according to claim 1, characterized in that: The testing of the building control system according to the current test process further includes: If it is determined according to historical test records that there is a faulty node in the current test process, a first test process is generated according to the faulty node, and the faulty node is removed from the current test process to obtain a second test process; wherein the test order of the first test process precedes that of the second test process.

5. The method according to claim 1, characterized in that The testing of the building control system according to the current test process further includes: If the current test result of any node to be tested in the current test process is a fault, the node to be tested and the child nodes of the test node are removed from the current test process to obtain a new current test process; Continue testing the new current test process.

6. A test device for a building control system, characterized in that: The device comprises: A current node acquisition module is used to acquire at least one current node to be tested selected from a topology map of a building control system; wherein the topology map includes a management layer, a data monitoring layer and a device control layer; the current node belongs to the data monitoring layer or the device control layer; the data monitoring layer includes at least one of the following nodes: power consumption monitoring, energy consumption monitoring, environmental monitoring, cold and heat source monitoring, air conditioning monitoring, lighting monitoring, power distribution monitoring, elevator monitoring, fire monitoring, video monitoring, access control monitoring, anti-theft monitoring or parking monitoring; the device control layer includes at least one of the following nodes: cold and heat source control, air conditioning control, lighting control, power distribution control, elevator control, fire alarm control, video control, access control, anti-theft control or parking control; The associated node acquisition module includes: an associated node prompting unit and an associated node determining unit; The associated node prompting unit is used to generate a selection prompting message of the associated node if there is an associated node of the current node in the topological map; The associated node determination unit is used to respond to the confirmation feedback of the selection reminder message, take both the current node and the associated node as nodes to be tested, and obtain the parent node that each of the nodes to be tested depends on in the topology map; A test process determination module, used to generate a current test process of the building control system according to the node to be tested and the dependent parent node; wherein the test order of the parent node precedes the test sequence of the node to be tested; A testing module, used to test the building control system according to the current testing process; The test module is specifically used to obtain the PLC point data of the node to be tested in the current test process; based on the description information and / or control rules in the physical model of the node to be tested, parse the PLC point data to obtain a parsing result; and test the node to be tested according to the parsing result.

7. The device according to claim 6, characterized in that The associated node prompting unit is specifically used for: For the current node in the data monitoring layer, obtain the child nodes of the current node from the device control layer, and obtain the historical test records of the current node and the child nodes; Determine the degree of state synchronization between the current node and the child nodes according to the historical test records; If the state synchronization degree meets the preset synchronization test condition, a selection reminder message is generated for the child node according to the state synchronization degree.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the building control system testing method according to any one of claims 1 to 5.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the building control system testing method according to any one of claims 1 to 5 when executed.