Model attribute configuration method and device, equipment, storage medium and computer program

By identifying the device type of the target model and building a device identification selection interface, combining the pre-configured attribute group and inheritance mechanism, the problem of inefficient model attribute configuration in the existing technology is solved, and efficient attribute group configuration and multiple applications are realized.

CN119861980APending Publication Date: 2025-04-22CHINA PETROLEUM & CHEMICAL CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411780633.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-05
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

In the prior art, model attribute configuration requires developers to drag and drop text tags in turn to configure attributes, resulting in low configuration efficiency.

Method used

By identifying the device type of the target model, a device identification selection interface is built, and the attribute group corresponding to the pre-configured device identification is bound to the target model to realize the configuration and inheritance of the attribute group.

Benefits of technology

The efficiency of attribute group configuration of device identification is improved, and the attribute group configuration can be applied multiple times at a time, reducing the need for individual configuration of each attribute, thereby improving the efficiency of model attribute configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119861980A_ABST
    Figure CN119861980A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent control, in particular to a model attribute configuration method and device, equipment, a storage medium and a computer program.The method comprises the steps that for each equipment identifier corresponding to the same equipment type, if the equipment identifier is the first equipment identifier corresponding to the equipment type, the first equipment identifier is the first equipment identifier corresponding to the equipment type; if so, sequentially configuring each attribute included in an attribute group corresponding to the equipment identifier through an attribute configuration page; if the equipment identifier is not the first equipment identifier corresponding to the equipment type, the attribute group corresponding to the first equipment identifier corresponding to the equipment type is configured as the attribute group corresponding to the equipment identifier, and each attribute does not need to be configured in sequence, so that the attribute group configuration efficiency of the equipment identifier is improved; according to the method, the attribute group corresponding to the equipment identifier can be directly obtained through matching based on the equipment identifier under the condition that the attribute configuration of the model exists, and then the attribute configuration of the model can be realized by binding the equipment identifier and the attribute group obtained through matching, so that the attribute configuration efficiency of the model is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of intelligent control technology, and in particular to a model attribute configuration method, device, equipment, storage medium and computer program. Background Art

[0002] The smart park building management and control system includes power system, lighting system, environmental control system, cold source system, etc. Each system needs to realize the mapping of physical equipment to model configuration diagram display during monitoring, so as to facilitate the timely response and disposal of problems and events by operation and maintenance monitoring personnel. In the process of mapping physical equipment to model configuration diagram display, it is necessary to configure the attributes of the model corresponding to the physical equipment.

[0003] In the prior art, for each attribute of a model to be configured, a developer is required to first drag out a text label and then configure the attribute using the text label, which results in low efficiency in the attribute configuration of the model. Summary of the invention

[0004] The present disclosure provides a model attribute configuration method, apparatus, device, storage medium and computer program to solve the problem that the existing model attribute configuration requires developers to drag text tags one by one to configure the attributes, resulting in low efficiency of model attribute configuration.

[0005] In a first aspect, the present disclosure provides a model attribute configuration method, comprising:

[0006] After the target model is dragged to the editing page, the device type of the device to be configured corresponding to the target model is identified; the target model is the model corresponding to the device to be configured;

[0007] Based on the pre-stored device identifiers corresponding to the plurality of device types, respectively, constructing a device identifier selection interface including the device identifiers corresponding to the identified device types;

[0008] Among the attribute groups corresponding to the pre-configured multiple device identifiers, the attribute group corresponding to the target device identifier is bound to the target model; the target device identifier is the device identifier selected for the target model through the device identifier selection interface; the pre-configuration process of the attribute groups corresponding to the multiple device identifiers includes: for each device identifier corresponding to the same device type, if the device identifier is the first device identifier corresponding to the device type, then sequentially configuring the attributes included in the attribute group corresponding to the device identifier through the attribute configuration page; if the device identifier is not the first device identifier corresponding to the device type, then configuring the attribute group corresponding to the first device identifier corresponding to the device type as the attribute group corresponding to the device identifier.

[0009] In some embodiments, identifying the device type of the to-be-configured device corresponding to the target model includes:

[0010] In response to the attribute configuration instruction for the target model, generating an attribute configuration interface;

[0011] In response to a selection instruction for a specific button in the property configuration interface, the device type of the device to be configured corresponding to the target model is identified from the device types corresponding to the pre-stored models; the property button is a button for instructing to bind properties to the target model.

[0012] In some embodiments, configuring each attribute included in the attribute group corresponding to the device identifier in sequence through the attribute configuration page includes:

[0013] Generate an attribute configuration page, obtain attribute configuration information of multiple attributes sequentially input through the attribute configuration page, and perform attribute configuration on the device identification based on the currently received attribute configuration information each time the attribute configuration information is obtained.

[0014] The configured attributes are packaged into an attribute group corresponding to the device identification.

[0015] In some embodiments, configuring the attribute group corresponding to the first device identification corresponding to the device type as the attribute group corresponding to the device identification includes:

[0016] Based on the device type to which the device identifier belongs, determining a first device identifier corresponding to the device type;

[0017] An inheritance algorithm is called to make the device identification inherit the attribute group corresponding to the first device identification.

[0018] In some embodiments, after binding the attribute group corresponding to the target device identifier among the attribute groups corresponding to the pre-configured plurality of device identifiers to the target model, the method further includes:

[0019] Generate a binding relationship code based on the binding relationship between the attribute group corresponding to the target device identifier and the target model;

[0020] Based on the binding relationship code, rendering the model configuration diagram of the target model in the monitoring front-end page;

[0021] Calling a backend service to obtain in real time the attribute parameter values ​​of the dynamic attributes in each attribute bound to the target model;

[0022] The attribute parameter values ​​are displayed in the model configuration diagram.

[0023] In some embodiments, after displaying the attribute parameter value in the model configuration diagram, the method further includes:

[0024] If the attribute parameter value meets the preset alarm rule, an alarm message is generated.

[0025] In a second aspect, the present disclosure provides a model attribute configuration device, comprising:

[0026] An identification unit, used to identify the device type of the device to be configured corresponding to the target model after the target model is dragged to the editing page; the target model is a model corresponding to the device to be configured;

[0027] A construction unit, configured to construct a device identification selection interface including each device identification corresponding to the identified device type based on each device identification corresponding to each of the plurality of pre-stored device types;

[0028] A configuration unit is used to bind the attribute group corresponding to the target device identifier among the attribute groups corresponding to the pre-configured multiple device identifiers to the target model; the target device identifier is the device identifier selected for the target model through the device identifier selection interface; the pre-configuration process of the attribute groups corresponding to the multiple device identifiers includes: for each device identifier corresponding to the same device type, if the device identifier is the first device identifier corresponding to the device type, then sequentially configure the various attributes included in the attribute group corresponding to the device identifier through the attribute configuration page; if the device identifier is not the first device identifier corresponding to the device type, then configure the attribute group corresponding to the first device identifier corresponding to the device type as the attribute group corresponding to the device identifier.

[0029] In a third aspect, the present disclosure provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method described in the above aspects.

[0030] In a fourth aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the method described in the above aspects when executed by a processor.

[0031] In a fifth aspect, the present disclosure provides a computer program product, including a computer program, which implements the steps of the method described in the above aspects when executed by a processor.

[0032] The present disclosure provides a model attribute configuration method, apparatus, device, storage medium and computer program. For configuring attribute groups for multiple device identifiers of the same device type, it is only necessary to sequentially configure the attributes included in the attribute group corresponding to the first device identifier included in the device type. For a non-first device identifier, the attribute group corresponding to the first device identifier under the device type to which it belongs can be directly configured as the attribute group corresponding to the device identifier, that is, the attribute group configuration can be implemented multiple times without configuring each attribute in sequence, thereby improving the attribute group configuration efficiency of the device identifier; and, since the attribute groups corresponding to multiple device identifiers are pre-configured, when there is a need for model attribute configuration, the attribute group corresponding to the device identifier can be directly matched based on the device identifier, and then the device identifier and the matched attribute group can be bound to implement the attribute configuration of the model, thereby improving the attribute configuration efficiency of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The present disclosure will be described in more detail below based on embodiments and with reference to the accompanying drawings:

[0035] Figure 1 A flowchart of a model attribute configuration method provided in an embodiment of the present disclosure.

[0036] Figure 2 This is an example diagram of a device identification selection interface provided in an embodiment of the present disclosure.

[0037] Figure 3 Another flowchart of a model attribute configuration method provided by an embodiment of the present disclosure.

[0038] Figure 4 This is an example diagram of a property configuration interface provided in an embodiment of the present disclosure.

[0039] Figure 5 Another flowchart of a model attribute configuration method provided by an embodiment of the present disclosure.

[0040] Figure 6 This is an example diagram of an alarm chart provided in an embodiment of the present disclosure.

[0041] Figure 7 Another flowchart of a model attribute configuration method provided by an embodiment of the present disclosure.

[0042] Figure 8 An example diagram of a model attribute configuration method provided in an embodiment of the present disclosure.

[0043] In the drawings, the same reference numerals are used for the same components, and the drawings are not drawn to scale. DETAILED DESCRIPTION

[0044] In order to enable those skilled in the art to better understand the technical solution of the present disclosure, and to fully understand and implement how the present disclosure applies technical means to solve technical problems and achieve the corresponding technical effects, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only embodiments of a part of the present disclosure, not all of the embodiments. The embodiments of the present disclosure and the various features in the embodiments can be combined with each other without conflict, and the technical solutions formed are all within the scope of protection of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of the present disclosure.

[0045] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure 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 interchangeable where appropriate, so that the embodiments of the present disclosure 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.

[0046] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0047] Embodiment 1

[0048] Figure 1 The following is a flow chart of a method for configuring model attributes provided by an embodiment of the present disclosure. Figure 1 As shown, a property configuration method includes:

[0049] S101. After a target model is dragged to an editing page, a device type of a device to be configured corresponding to the target model is identified.

[0050] In this embodiment, for the target device, a model of the target device is pre-constructed in the smart park building management and control system. The target device is the device to be configured, that is, the physical device to be configured. By way of example, the target device includes but is not limited to a generator, a transformer, an electric meter or an air conditioner. The model of the target device includes but is not limited to a two-dimensional model or a three-dimensional model.

[0051] Specifically, the model of the target device can be directly drawn in the smart park building management and control system, or the pre-drawn model of the target device can be directly imported into the smart park building management and control system.

[0052] In this embodiment, after constructing the model of the target device, the device type to which the target device belongs is set, and the model of the target device and the device type corresponding to the model are stored in the smart park building management and control system. The device type includes one of the device specifications and placement location and the implemented function to classify the device. It should be noted that devices of different brands and models but with the same functions belong to the same device type, for example, large generators of brand A and model A, large generators of brand A and model B, and large generators of brand B and model C all belong to the device type of large generators.

[0053] In this embodiment, if it is necessary to configure properties for the target model, the target model is first dragged and dropped into the editing page of the smart park building control system.

[0054] After the target model is dragged to the editing page, the smart park building management and control system identifies the device type of the target model. Specifically, the device type of the target model is obtained by pre-storing the correspondence between the model and the device type. For example, after the large engine is dragged to the editing page, the smart park building management and control system obtains the target model, and obtains the device type of the target model as a large generator through the pre-stored correspondence between the model and the device type.

[0055] S102: Based on the pre-stored device identifiers corresponding to the plurality of device types, construct a device identifier selection interface including the device identifiers corresponding to the identified device type.

[0056] In this embodiment, according to the equipment identification setting rules, multiple equipment identifications are pre-set for each equipment type, wherein the equipment identification equipment rules include serial number information and equipment type fields, that is, the equipment identification can be a device name containing serial number information and equipment type fields. For example, the equipment identifications corresponding to the generators can be large generator No. 1, large generator No. 2, large generator No. 3, large generator No. 4, large generator No. 5 and large generator No. 6, wherein No. 1, No. 2, No. 3, No. 4, No. 5 and No. 6 are serial number information, and "large generator" is the equipment type field.

[0057] After a plurality of device identifiers are set for each device type, the device identifiers corresponding to each device type are stored.

[0058] In this embodiment, based on the identified device type, each device identifier corresponding to the identified device type is obtained from each device identifier corresponding to each pre-stored device type. It should be noted that after obtaining each device identifier corresponding to the identified device type, it is also necessary to obtain status information of each device identifier, and the status information is used to indicate whether the device identifier is in a selected state. Among them, for a device identifier selected by a user through a device identifier selection interface, the status information of the device identifier indicates that the device identifier is in a selected state; otherwise, the status information indicates that the device identifier is in a non-selected state.

[0059] Based on the acquired device identifiers, a device identifier selection interface including the acquired device identifiers is constructed. Specifically, based on the status information of the device identifiers, device identifiers in a non-selected state are filtered out, and based on the filtered device identifiers, a device identifier selection interface is constructed. In other words, each device identifier included in the device identifier selection interface is in a non-selected state, so that the user can select a device identifier for the target model through the device identifier selection interface.

[0060] Optionally, the backup identification selection interface may be an interface including a drop-down box.

[0061] For example, if the device type of the target model is an engine, the device identification selection interface can be as follows: Figure 2 As shown, it includes large generator No. 1, large generator No. 2, large generator No. 3, large generator No. 4, large generator No. 5 and large generator No. 6, among which No. 1, No. 2, No. 3, No. 4, No. 5 and No. 6 are serial number information.

[0062] In this embodiment, by acquiring each device identifier corresponding to the target model, a device identifier selection interface including each device identifier corresponding to the target model is constructed, instead of displaying all device identifiers corresponding to all models, thereby improving user selection efficiency and reducing user selection error rate.

[0063] S103: Bind the attribute group corresponding to the target device identifier among the attribute groups corresponding to the plurality of pre-configured device identifiers to the target model.

[0064] In this implementation, a property group is pre-configured for each device identifier corresponding to the configured device type, wherein the property group includes a static property group and a dynamic property group. For example, the static properties include but are not limited to name, number, brand and merchant, and the dynamic property group includes but is not limited to temperature and switch.

[0065] The pre-configuration process of the attribute groups corresponding to multiple device identifiers includes: for each device identifier corresponding to the same device type, if the device identifier is the first device identifier corresponding to the device type, then the various attributes included in the attribute group corresponding to the device identifier are configured in sequence through the attribute configuration page; if the device identifier is not the first device identifier corresponding to the device type, then the attribute group corresponding to the first device identifier corresponding to the device type is configured as the attribute group corresponding to the device identifier.

[0066] Specifically, for each device identifier, determine the device type to which the device identifier belongs, and determine whether the device identifier is the first device identifier of the device type to which it belongs. Specifically, determine whether the serial number information in the device identifier indicates that the device identifier is the first device identifier of the device type to which it belongs. For example, if the device identifier is large generator No. 1, then the serial number information "No. 1" indicates that the device identifier is the first device identifier of the device type to which it belongs. If the device identifier is large generator No. 5, then the serial number information "No. 5" indicates that the device identifier is the fifth device identifier of the device type to which it belongs, that is, it is not the first device identifier of the device type to which it belongs.

[0067] For each device identification, if the device identification is the first device type under the device type to which it belongs, the various attributes corresponding to the device identification are configured in sequence through the device configuration page, and the configured attributes are grouped into attribute groups, thereby configuring the attribute group for the device identification; if the device identification is not the first device type under the device type to which it belongs, the attribute group is configured for the device identification by inheriting the attribute group corresponding to the first device type under the device type to which it belongs, without the need to configure the various attributes corresponding to the device identification in sequence, thereby improving the efficiency of configuring the attribute group for the device identification.

[0068] In this embodiment, to configure attribute groups for multiple device identifiers of the same device type, it is only necessary to configure the attributes included in the attribute group corresponding to the first device identifier included in the device type in sequence, and the attribute groups corresponding to non-first device identifiers can directly inherit the attribute group corresponding to the first device identifier without configuring each attribute in sequence, thereby improving the efficiency of configuring attribute groups for device identifiers.

[0069] It should be noted that after completing the configuration of the attribute group corresponding to the device identification, the attribute group corresponding to the device identification and the corresponding relationship between the device identification and the attribute group are stored, so as to facilitate subsequent search and call.

[0070] In this embodiment, after selecting a device identifier for the target model through the device identifier selection interface, the device identifier selected for the target model is determined as the target device identifier, wherein selecting a device identifier for the target model through the device identifier selection interface can be done by clicking a drop-down box to select the device identifier.

[0071] Based on the target device identifier, the attribute group corresponding to the target device identifier is searched from the attribute groups corresponding to the pre-configured multiple device identifiers. Specifically, based on the target device identifier, the corresponding relationship corresponding to the target device identifier is determined from the pre-stored corresponding relationships between the device identifiers and the attribute groups, so as to obtain the attribute group related to the corresponding relationship based on the corresponding relationship, wherein the attribute group related to the corresponding relationship is the attribute group corresponding to the found target device identifier.

[0072] The attribute group corresponding to the found target device identifier is bound to the target model, so as to configure the attribute group for the target model, that is, to configure the attribute for the target model.

[0073] In the model attribute configuration method provided by the embodiment of the present disclosure, for configuring attribute groups for multiple device identifiers of the same device type, it is only necessary to configure the various attributes included in the attribute group corresponding to the first device identifier included in the device type in sequence, and non-first device identifiers can directly inherit the attribute group corresponding to the first device identifier without configuring each attribute in sequence, thereby improving the attribute group configuration efficiency of the device identifier; and, since the attribute groups corresponding to multiple device identifiers are pre-configured, when there is a need for model attribute configuration, the attribute group corresponding to the device identifier can be matched directly based on the device identifier, and then the device identifier and the matched attribute group can be bound to achieve attribute configuration of the model, thereby improving the attribute configuration efficiency of the model.

[0074] Embodiment 2

[0075] Based on the above embodiment, the specific implementation process of step S101 is as follows: Figure 3 As shown, including:

[0076] S301. In response to an attribute configuration instruction for a target model, generate an attribute configuration interface.

[0077] In this embodiment, after the target model is dragged to the editing page, the property configuration instructions for the target model are obtained, wherein the property configuration instructions for the target model may be generated by right-clicking the mouse, by clicking a preset button in the menu bar on the editing page, or by other methods. It should be noted that the embodiment of the present disclosure does not limit the specific method of generating the property configuration instructions.

[0078] In response to the attribute configuration instruction of the target model, the interface generation algorithm is called to generate the attribute configuration interface, which includes at least a specific button, which is a button for indicating attribute binding to the target model, wherein the specific button can be bound to an attribute button.

[0079] For example, the property configuration interface can be as follows Figure 4 As shown, the property configuration interface may include style, text and behavior property menu bars, and the property menu bar includes binding property buttons. The property menu bar may also be used to set the target model size, position, flip and state rules, as well as copy size and edit links.

[0080] S302: In response to a selection instruction for a specific button in the property configuration interface, identify the device type of the to-be-configured device corresponding to the target model from the pre-stored device types corresponding to the models.

[0081] In this embodiment, after a specific button in the property configuration interface is triggered, a selection instruction for the specific button in the property interface is obtained, and a response is given to the selection instruction, and a model matching the target model is determined from the pre-stored models, thereby identifying the device type corresponding to the matching model from the device types corresponding to the pre-stored models as the device type of the device to be configured corresponding to the target model.

[0082] Among them, the process of determining a model that matches the target model from the pre-stored models specifically includes: using a model matching algorithm to calculate the matching degree between each pre-stored model and the target model, and when the matching degree satisfies a preset first threshold, determining the model corresponding to the maximum matching degree as the model that matches the target model, or, using a model matching algorithm, traversing each pre-stored model in turn, and when traversing to any model, calculating the matching degree of the model with the target model, and when the calculated matching degree is greater than a preset second threshold, determining the model as the model that matches the target model, and stopping the traversal operation.

[0083] In the model attribute configuration method provided by the embodiment of the present disclosure, by generating an attribute configuration interface, the size, position, flip and state rule settings of the target model, as well as the copy size and edit link can be realized to meet personalized operations. At the same time, by responding to the selection instructions of specific buttons in the attribute configuration interface, the device type of the device to be configured corresponding to the target model is identified from the device types corresponding to the pre-stored models, which facilitates the subsequent construction of a device identification selection interface including various device identifications corresponding to the identified device types.

[0084] Embodiment 3

[0085] Based on the above embodiment, step S103 involves a pre-configuration process of attribute groups corresponding to multiple device identifiers, such as Figure 5 As shown:

[0086] S501. For each device identifier, determine the device type to which the device identifier belongs, and judge whether the device identifier is the first device identifier of the device type to which it belongs. If so, execute S502; if not, execute S503.

[0087] In this embodiment, for each device identifier, the device type to which the device identifier belongs is determined. Specifically, the device type to which the device identifier belongs is determined based on the respective device identifiers corresponding to each stored device type, or the device type to which the device identifier belongs is determined by identifying the device type field in the device identifier.

[0088] In this embodiment, for each device identifier, it is determined whether the device identifier is the first device identifier of the device type to which it belongs. Specifically, it is determined whether the serial number information in the device identifier indicates that the device identifier is the first device identifier of the device type to which it belongs. For example, if the device identifier is large generator No. 1, the serial number information "No. 1" indicates that the device identifier is the first device identifier of the device type to which it belongs. If the device identifier is large generator No. 3, the serial number information "No. 3" indicates that the device identifier is the third device identifier of the device type to which it belongs, that is, it is not the first device identifier of the device type to which it belongs.

[0089] S502: Generate an attribute configuration page, obtain attribute configuration information of multiple attributes sequentially input through the attribute configuration page, and perform attribute configuration on the device identifier based on the currently received attribute configuration information each time the attribute configuration information is obtained.

[0090] In this embodiment, if it is determined that the device identifier is the first device identifier under the device type to which it belongs, an attribute configuration page is generated so that the user can enter the attribute information of multiple attributes in sequence through the attribute configuration page, for example, the brand name, temperature warning rules, merchant-related information, etc.

[0091] Optionally, the attribute configuration page may include attribute configuration items of multiple attributes, and the attribute configuration information of multiple attributes is input in sequence through the attribute configuration page, specifically including: pulling each attribute configuration item in sequence according to the demand, and inputting the corresponding attribute configuration information for the currently pulled attribute configuration item. For example, pull the attribute configuration item of the brand attribute, for which the user can enter the name of the brand, pull the attribute configuration item of the temperature attribute, for which the user can enter the temperature alarm rule, for example, the alarm rule of the air conditioner temperature can be to set the temperature over-high alarm threshold for the air conditioner outlet and bind the corresponding alarm icon, as shown in Table 1 and Figure 6 As shown, for sequence number 1, the air conditioner in the computer room, the first alarm threshold is set to 23, the alarm mode is yellow alarm, and the icon is as follows Figure 6As shown in Figure a, the area between the triangle and the exclamation mark is filled with yellow, the second alarm threshold is set to 26, and the alarm mode is red alarm. Figure 7 As shown in Figure b, the area between the inner triangle and the exclamation mark is filled with red.

[0092] Serial number Device Type Numeric Alarm method 1 Computer room air conditioning Greater than 23 Yellow Alarm 2 Computer room air conditioning Greater than 26 Red Alarm

[0093] Table 1

[0094] The attribute configuration items of multiple attributes entered in sequence through the attribute configuration page are obtained. Since the attribute configuration information is entered for one attribute each time, when the currently entered attribute configuration information is obtained, the attribute of the device identifier can be directly configured based on the currently entered attribute configuration information.

[0095] In this embodiment, after step S502 is executed, step S504 is executed.

[0096] S503: Based on the device type to which the device identifier belongs, determine a first device identifier corresponding to the device type.

[0097] In this embodiment, if it is determined that the device identifier is not the first device identifier of the device type to which it belongs, then based on the device type to which the device identifier belongs, the first device identifier corresponding to the device type is determined, that is, the first device identifier of the device type to which it belongs is determined. Specifically, based on the device type to which the device identifier belongs and the device identifier setting rules, the first device identifier of the device type to which the device identifier belongs is determined. For example, the device type is air conditioning, and the device identifier setting rules include serial number information and device type fields, so that it can be determined that the first device identifier corresponding to the air conditioner is "Air Conditioner No. 1".

[0098] In this embodiment, after step S503 is executed, step S505 is executed.

[0099] S504: Pack the configured attributes into an attribute group corresponding to the device identifier.

[0100] In this embodiment, in order to facilitate other device identifiers of the same device type to directly inherit all attributes of the device identifier, the configured attributes are packaged. For the specific implementation method of packaging the configured attributes, please refer to the existing data packaging solution, which will not be repeated here.

[0101] The configured attributes are packaged to obtain an attribute group, which is the attribute group corresponding to the device identifier.

[0102] S505: Calling an inheritance algorithm to make the device identification inherit the attribute group corresponding to the first device identification.

[0103] In this embodiment, based on the determined first device identification, an inheritance algorithm is called to make the device identification inherit the property group corresponding to the first device identification, thereby configuring the property group for the device identification, that is, the property group configured for the device identification is the same property group as the property group corresponding to the first device identification under the device type to which it belongs.

[0104] In the model attribute configuration method provided by the embodiment of the present disclosure, when configuring attribute groups for multiple device identifiers of the same device type, it is only necessary to sequentially configure the attributes included in the attribute group corresponding to the first device identifier included in the device type, and non-first device identifiers can directly inherit the attribute group corresponding to the first device identifier without sequentially configuring each attribute, thereby improving the attribute group configuration efficiency of the device identifier

[0105] Embodiment 4

[0106] Based on the above embodiment, after step S103, as Figure 7 As shown, it also includes:

[0107] S701: Generate a binding relationship code based on the binding relationship between the attribute group corresponding to the target device identifier and the target model.

[0108] In this embodiment, based on the binding relationship between the attribute group corresponding to the target device identifier and the target model, a code generation algorithm is called to generate a binding relationship code, preferably, an XML code with a binding relationship is generated. The code generation algorithm can refer to the existing code generation algorithm, which will not be described here.

[0109] In this embodiment, after the binding relationship code is generated, the binding relationship code is stored in a database.

[0110] S702: Based on the binding relationship code, a model configuration diagram of the target model is rendered in the monitoring front-end page.

[0111] In this embodiment, based on the binding relationship code, the front-end page rendering algorithm is called to render the model configuration diagram of the target model in the monitoring front-end page of the smart park building management and control system, that is, the target model is rendered and displayed in the monitoring front-end page.

[0112] Among them, the front-end page rendering algorithm please refer to the existing algorithm, which will not be repeated here.

[0113] S703: Call the backend service to obtain the attribute parameter values ​​of the dynamic attributes in each attribute bound to the target model in real time.

[0114] In this embodiment, the device ID of the target model is obtained, specifically, the device ID stored in the device model configuration diagram is obtained, the device ID of the target model is sent to the backend service, specifically, the device ID of the target model is sent to the backend socket service, the backend service is called, and the attribute parameter values ​​of the dynamic attributes in each attribute bound to the target model are collected in real time. For example, for the computer room air conditioner, the backend service can be called to collect the attribute parameter values ​​of the temperature attributes of the computer room air conditioner in real time, that is, to collect the temperature value of the computer room.

[0115] The backend service feeds back the attribute parameter values ​​of the dynamic attributes collected in real time, thereby achieving real-time acquisition of the attribute parameter values ​​of the dynamic attributes in each attribute of the target model.

[0116] S704. Display attribute parameter values ​​in the model configuration diagram.

[0117] In this embodiment, the attribute parameter values ​​acquired in real time are written into the model configuration diagram, so that the attribute parameter values ​​are displayed in real time in the model configuration diagram.

[0118] In this embodiment, after the attribute parameter value is displayed in the model configuration diagram, the method further includes: if the attribute parameter value satisfies a preset alarm rule, generating alarm information.

[0119] In this embodiment, after the attribute parameter value is displayed in the model configuration diagram, it is determined in real time whether the attribute parameter displayed in the model configuration diagram meets the preset alarm rules. If so, an alarm message is generated. For example, if an alarm icon corresponding to the alarm threshold is set in the alarm rule, then when the alarm threshold is met, the alarm icon corresponding to the satisfied alarm threshold is displayed in the model configuration diagram.

[0120] In the model attribute configuration method provided in the embodiment of the present disclosure, by rendering the model configuration diagram on the monitoring front-end page and obtaining the attribute parameter values ​​in real time for display, it is convenient for monitoring personnel to view the attribute parameter values ​​corresponding to each device, and by setting early warning rules, alarm information is generated when the early warning rules are met, which is convenient for rapid response processing.

[0121] Embodiment 5

[0122] Based on the above embodiments, this embodiment provides an application example. Figure 8 As shown, specifically including:

[0123] 1. Bind data to equipment and generate equipment model configuration diagram

[0124] 1) Create a device graphics library and basic device data in the system

[0125] 2) Match the relationship between device graphics and basic data of device types, such as matching relevant air conditioner images to basic data of air conditioners

[0126] The matched basic data is loaded into the front-end editor, the device image, device type, and device attributes are bound according to the logical relationship, and the XML code snippet with the binding relationship is generated and stored in the database to generate the device model configuration diagram.

[0127] 2. Setting of alarm rules

[0128] Set alarm rules for the device, such as setting the high temperature alarm threshold for the air conditioner outlet and binding the corresponding alarm icon. For rules, see Table 1 and Figure 6 .

[0129] 3. Build configuration scenarios and logic:

[0130] 1) The operation monitoring front end loads the XML code snippet of the device configuration diagram in the database to the operation monitoring front end and renders it into the device model configuration diagram.

[0131] 2) The operation monitoring front end sends the device ID stored in the device model configuration diagram to the back-end socket service. The socket service pushes the collected actual values ​​of the air conditioner to the operation monitoring front end in real time according to the device ID.

[0132] 3) After running the monitoring front end to match the device ID and attribute value in the socket service with the device ID rendered in the configuration diagram, the attribute value of the device can be displayed in real time in the air conditioning equipment model.

[0133] When the device attribute value is greater than the alarm threshold, the corresponding alarm information is prompted according to the set alarm threshold rules. After the device ID in the device configuration model diagram is associated with the device ID in the alarm information, the corresponding alarm icon, such as yellow or red, can be displayed on the device configuration model diagram according to the threshold.

[0134] In the model attribute configuration method provided by the embodiment of the present disclosure, only one configuration is required in the attribute configuration, and it can be applied multiple times. The inventor of the present disclosure found through experiments that the configuration workload can be reduced by 60%, and it is also convenient for the maintenance and adjustment of the model attributes in the later stage. In the field of real-time monitoring of equipment, it is suitable for many scenarios and has strong universality.

[0135] Embodiment 6

[0136] On the basis of the above embodiments, this embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method described in the above embodiments.

[0137] In some implementations of this embodiment, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps of the method described in the above embodiment are implemented.

[0138] In some implementations of this embodiment, a computer program product is provided, including a computer program, characterized in that when the computer program is executed by a processor, the steps of the method described in the above embodiment are implemented.

[0139] The processor may include, but is not limited to, one or more processors or microprocessors. Each processor may be an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components to execute the method in the above embodiments.

[0140] The computer-readable storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, and the computer-readable storage medium may include but is not limited to, for example, random access memory (RAM), read-only memory (ROM), flash memory, EPROM memory, EEPROM memory, registers, computer storage media (e.g., hard disk, floppy disk, solid-state drive, removable disk, CD-ROM, DVD-ROM, Blu-ray disc, etc.).

[0141] The computer-readable storage medium may also store at least one computer executable program, such as a computer-readable instruction. The computer-readable storage medium includes, but is not limited to, for example, a volatile memory and / or a non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The computer-readable storage medium may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. For example, a non-transitory computer-readable storage medium may be connected to a computing device such as a computer, and then, when the computing device runs the computer-readable instructions stored on the computer-readable storage medium, the various methods described above may be performed.

[0142] In addition, the computer device may also include (but not limited to) a data bus, an input / output (I / O) bus, a display, and input / output devices (eg, keyboard, mouse, speaker, etc.), etc.

[0143] The processor may communicate with external devices via an I / O bus via a wired or wireless network.

[0144] In one embodiment, the at least one computer executable instruction may also be compiled into or constitute a software product / computer program product, wherein one or more computer executable instructions are executed by a processor to perform the various functions and / or method steps in the embodiments described in the present technology.

[0145] In the embodiments provided in the present disclosure, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0146] It should be noted that in the present disclosure, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element limited by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0147] Although the embodiments disclosed in the present disclosure are as above, the above contents are only embodiments adopted for facilitating the understanding of the present disclosure and are not intended to limit the present disclosure. Any technician in the technical field to which the present disclosure belongs can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in the present disclosure, but the scope of patent protection of the present disclosure shall still be subject to the scope defined in the attached claims.

Claims

1. A model attribute configuration method, characterized in that: include: After the target model is dragged to the editing page, the device type of the device to be configured corresponding to the target model is identified; The target model is a model corresponding to the device to be configured; Based on the pre-stored device identifiers corresponding to the plurality of device types, respectively, constructing a device identifier selection interface including the device identifiers corresponding to the identified device types; Binding the attribute group corresponding to the target device identifier among the attribute groups corresponding to the pre-configured plurality of device identifiers to the target model; The target device identifier is the device identifier selected for the target model through the device identifier selection interface; The pre-configuration process of the attribute groups corresponding to multiple device identifiers includes: for each device identifier corresponding to the same device type, if the device identifier is the first device identifier corresponding to the device type, then the various attributes included in the attribute group corresponding to the device identifier are configured in sequence through the attribute configuration page; if the device identifier is not the first device identifier corresponding to the device type, then the attribute group corresponding to the first device identifier corresponding to the device type is configured as the attribute group corresponding to the device identifier.

2. The method according to claim 1, characterized in that: Identifying the device type of the device to be configured corresponding to the target model includes: In response to the attribute configuration instruction for the target model, generating an attribute configuration interface; In response to a selection instruction for a specific button in the property configuration interface, the device type of the device to be configured corresponding to the target model is identified from the device types corresponding to the pre-stored models; the property button is a button for instructing to bind properties to the target model.

3. The method according to claim 1, characterized in that The attribute configuration page sequentially configures the attributes of the attribute group corresponding to the device identifier, including: Generate an attribute configuration page, obtain attribute configuration information of multiple attributes sequentially input through the attribute configuration page, and perform attribute configuration on the device identification based on the currently received attribute configuration information each time the attribute configuration information is obtained. The configured attributes are packaged into an attribute group corresponding to the device identification.

4. The method according to claim 1 or 3, characterized in that: The configuring the attribute group corresponding to the first device identification corresponding to the device type as the attribute group corresponding to the device identification includes: Based on the device type to which the device identifier belongs, determining a first device identifier corresponding to the device type; An inheritance algorithm is called to make the device identification inherit the attribute group corresponding to the first device identification.

5. The method according to claim 4, characterized in that After binding the attribute group corresponding to the target device identifier among the attribute groups corresponding to the pre-configured plurality of device identifiers to the target model, the method further includes: Generate a binding relationship code based on the binding relationship between the attribute group corresponding to the target device identifier and the target model; Based on the binding relationship code, rendering the model configuration diagram of the target model in the monitoring front-end page; Calling a backend service to obtain in real time the attribute parameter values ​​of the dynamic attributes in each attribute bound to the target model; The attribute parameter values ​​are displayed in the model configuration diagram.

6. The method according to claim 5, characterized in that After displaying the attribute parameter value in the model configuration diagram, the method further includes: If the attribute parameter value meets the preset alarm rule, an alarm message is generated.

7. A model attribute configuration, characterized in that: include: An identification unit, used to identify the device type of the to-be-configured device corresponding to the target model after the target model is dragged to the editing page; The target model is a model corresponding to the device to be configured; A construction unit, configured to construct a device identification selection interface including each device identification corresponding to the identified device type based on each device identification corresponding to each of the plurality of pre-stored device types; A configuration unit, configured to bind the attribute group corresponding to the target device identifier among the attribute groups corresponding to the plurality of pre-configured device identifiers to the target model; The target device identifier is the device identifier selected for the target model through the device identifier selection interface; The pre-configuration process of the attribute groups corresponding to multiple device identifiers includes: for each device identifier corresponding to the same device type, if the device identifier is the first device identifier corresponding to the device type, then the various attributes included in the attribute group corresponding to the device identifier are configured in sequence through the attribute configuration page; if the device identifier is not the first device identifier corresponding to the device type, then the attribute group corresponding to the first device identifier corresponding to the device type is configured as the attribute group corresponding to the device identifier.

8. A computer device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.