Controller and equipment model matching method and device, equipment, medium and product

By unifying the naming rules of the controller in the building automation control system and using the prefix information tree search method, the problem of low matching efficiency between the device model and the controller is solved, and fast matching and efficient binding are achieved.

CN119960426APending Publication Date: 2025-05-09WUXI YANQI INTELLIGENT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510047201.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-13
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

In the existing building automation control system, the matching efficiency between the equipment model and the controller is low, making it difficult to achieve batch identification and binding.

Method used

By unifying the naming rules of the controller, using the prefix information tree search method, the description identification of the device model and the controller are generated, and the rapid matching of the device model and the controller is achieved.

Benefits of technology

It greatly reduces the matching complexity, improves the matching efficiency, and realizes the rapid mapping of the device model and the controller.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119960426A_ABST
    Figure CN119960426A_ABST
Patent Text Reader

Abstract

The invention discloses a controller and equipment model matching method and device, electronic equipment, a storage medium and a program product. The method comprises the following steps: acquiring model description information of each equipment model in a target building and point location description information of each controller; generating a model description identifier according to the model description information and a first naming rule; generating a point location description identifier according to the point location description information and a second naming rule; and according to the model description identifier of each equipment model and the point position description identifier of each controller, based on a prefix information tree search mode, determining a matching result of the controller and the equipment model. According to the technical scheme, the problem of low matching efficiency of the equipment model and the controller is solved, rapid matching of the equipment model and the controller is realized by unifying the naming rule of the controller and based on a prefix information tree search mode, and the matching complexity is greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of building automatic control, and in particular to a method, device, electronic equipment, storage medium and program product for matching a controller with a device model. Background Art

[0002] Building automation control systems are used to monitor the operating status of electromechanical equipment in a building. Building automation control systems usually configure one or more controllers for each electromechanical equipment to obtain operating status data of the electromechanical equipment, such as voltage, power, temperature, humidity and other operating status data.

[0003] In order to better manage electromechanical equipment in buildings, building automation control systems can build digital twin models of electromechanical equipment. The digital twin model can synchronize the operating status of electromechanical equipment and predict the operating status of electromechanical equipment in the future based on the operating status at historical moments. The digital twin model of electromechanical equipment needs to be mapped with the controller configured for the electromechanical equipment to obtain the operating status of the electromechanical equipment in real time and simulate the operation of the electromechanical equipment.

[0004] At present, the mapping relationship between device models and controllers is mainly verified and bound manually one by one. The matching process is very time-consuming, inefficient, and difficult to achieve batch identification and binding. Therefore, a matching method for controllers and device models is needed to achieve fast mapping of device models and controls and improve matching efficiency. Summary of the invention

[0005] The present invention provides a controller and device model matching method, apparatus, electronic device, storage medium and program product to solve the problem of low matching efficiency between device models and controllers. By unifying the naming rules of controllers and searching based on prefix information trees, fast matching between device models and controllers is achieved, greatly reducing the matching complexity.

[0006] According to one aspect of the present invention, a method for matching a controller with a device model is provided, the method comprising:

[0007] Obtain model description information of each device model in the target building and point description information of each controller; wherein the model description information is description information of the digital twin model of the electromechanical equipment; and the point description information is description information of the controller associated with the electromechanical equipment;

[0008] According to the model description information, a model description identifier is generated according to a first naming rule; according to the point description information, a point description identifier is generated according to a second naming rule;

[0009] According to the model description identifier of each device model and the point description identifier of each controller, the matching result between the controller and the device model is determined based on the prefix information tree search method.

[0010] According to another aspect of the present invention, a device for matching a controller with a device model is provided, the device comprising:

[0011] A description information acquisition module, used to acquire model description information of each device model in the target building and point description information of each controller; wherein the model description information is the description information of the digital twin model of the electromechanical equipment; and the point description information is the description information of the controller associated with the electromechanical equipment;

[0012] A description identifier generating module, used to generate a model description identifier according to the model description information and a first naming rule; and to generate a point description identifier according to the point description information and a second naming rule;

[0013] The matching result determination module is used to determine the matching result between the controller and the device model based on the prefix information tree search method according to the model description identifier of each device model and the point description identifier of each controller.

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

[0015] 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 method for matching a controller and a device model as described in any embodiment of the present invention.

[0016] 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 method for matching a controller and a device model described in any embodiment of the present invention when executed.

[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 method for matching a controller with a device model according to any embodiment of the present invention is implemented.

[0018] The technical solution of the embodiment of the present invention obtains the model description information of each device model in the target building and the point description information of each controller, generates a model description identifier according to the model description information and the first naming rule, generates a point description identifier according to the point description information and the second naming rule, and then determines the matching result of the controller and the device model based on the prefix information tree search method according to the model description identifier of each device model and the point description identifier of each controller. This technical solution solves the problem of low matching efficiency between device models and controllers, and realizes fast matching between device models and controllers by unifying the naming rules of controllers and based on the prefix information tree search method, greatly reducing the matching complexity.

[0019] 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

[0020] 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.

[0021] Figure 1 is a flow chart of a method for matching a controller and a device model provided according to Embodiment 1 of the present invention;

[0022] Figure 2 is a flow chart of a method for matching a controller and a device model provided according to a second embodiment of the present invention;

[0023] Figure 3 is a schematic diagram of the structure of a matching device between a controller and a device model provided according to Embodiment 3 of the present invention;

[0024] Figure 4 It is a structural schematic diagram of an electronic device for implementing the method for matching a controller and a device model according to an embodiment of the present invention. DETAILED DESCRIPTION

[0025] 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.

[0026] 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 interchangeable 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 of their variations 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. The acquisition, storage, use, processing, etc. of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.

[0027] Embodiment 1

[0028] Figure 1 A flowchart of a controller and device model matching method is provided for the first embodiment of the present invention. This embodiment can be applied to the matching scenario of the digital twin model of electromechanical equipment and the controller in a building automation control system. The method can be executed by a controller and device model matching device, which can be implemented in the form of hardware and / or software, and can be configured in an electronic device. Figure 1 As shown, the method includes:

[0029] S110. Obtain model description information of each device model in the target building and point description information of each controller; wherein the model description information is the description information of the digital twin model of the electromechanical equipment; and the point description information is the description information of the controller associated with the electromechanical equipment.

[0030] This solution can be executed by a building automation control system, which can store model description information of each device model in the target building and point description information of each controller. The target building can be one of the buildings monitored by the building automation control system. The target building can include multiple buildings, each building can include multiple floors, each floor can include multiple rooms, and each room can deploy multiple electromechanical equipment. The electromechanical equipment can include industrial electromechanical equipment such as mechanical processing equipment, automated production lines, and textile machinery, and can also include information electromechanical equipment such as computers, printers, and switches, and can also include livelihood electromechanical equipment such as air conditioners, refrigerators, and microwave ovens.

[0031] The building automation control system can configure controllers for the electromechanical equipment that needs to be monitored to obtain the perception signals of the operating status of the electromechanical equipment. The building automation control system can build a digital twin model for the electromechanical equipment to simulate the operation of the electromechanical equipment. The building automation control system can use the operating status information of the electromechanical equipment actually obtained through the controller to periodically update the digital twin model to ensure the reliability of the digital twin model.

[0032] The model description information is the description information of the digital twin model of the electromechanical device, which may include the spatial location information of the electromechanical device to which the digital twin model belongs, the device identification of the electromechanical device, and the input signal characteristics and output signal characteristics of the digital twin model. Among them, the input signal characteristics may include the type, quantity, table identification and other characteristics of the input signal of the digital twin model, and the output signal characteristics may include the type, quantity, table identification and other characteristics of the output signal of the digital twin model. The point description information is the description information of the controller associated with the electromechanical device, which may include the spatial location information of the electromechanical device to which the controller belongs, the device identification of the electromechanical device, and the controller identification, point type and network address of the controller. Among them, the point type may be the type of sensory signal collected by the controller for the electromechanical device, such as temperature, pressure and other point types. The network address of the controller may be the communication address for the controller to transmit the operation status information to the building automation control system.

[0033] S120. Generate a model description identifier according to the model description information and a first naming rule; and generate a point description identifier according to the point description information and a second naming rule.

[0034] After obtaining the model description information and the point description information, the building automation control system can name the digital twin model and the controller respectively. Specifically, the model description information may include multiple information items, and the first naming rule may include the arrangement order of each information item, and may also include the simplified method of each information item. The building automation control system may simplify each information item according to the simplified method of each information item, and then arrange the simplified information items according to the arrangement order of each information item to obtain the model description identifier. Similarly, the point description information may also include multiple information items, and the second naming rule may include the arrangement order of each information item and the simplified method of each information item. The building automation control system may simplify each information item in the point description information according to the simplified method of each information item, and then arrange the simplified information items according to the arrangement order of each information item to obtain the point description identifier.

[0035] It should be noted that the model description information and the point description information may have the same information items, and the arrangement order of the same information items in the first naming rule and the second naming rule may be the same. Since the model description information and the point description information are description information of different objects, the simplification methods of the same information items in the first naming rule and the second naming rule may be the same or different.

[0036] S130 : According to the model description identifier of each device model and the point description identifier of each controller, a matching result between the controller and the device model is determined based on a prefix information tree search method.

[0037] After obtaining the model description identifier of each device model and the point description identifier of each controller, the building automation control system can construct a prefix information tree to search and match the model description identifier of each device model with the point description identifier of each controller, thereby obtaining the matching result between the controller and the device model. It is easy to understand that the prefix information tree is an ordered tree used to store associative arrays, in which the key can be a string, and the key is determined by the position of the node in the tree. All descendant nodes of a node have the same prefix string, and the root node is an empty string. Specifically, the building automation control system can construct a prefix information tree based on the model description identifier of each device model, and search the point description identifier of each controller in the prefix information tree in turn to obtain the matching result between the controller and the device model. The building automation control system can also construct a prefix information tree based on the point description identifier of each controller, and search the model description identifier of each device model in the prefix information tree in turn to obtain the matching result between the controller and the device model.

[0038] The technical solution of the embodiment of the present invention obtains the model description information of each device model in the target building and the point description information of each controller, generates a model description identifier according to the model description information and the first naming rule, generates a point description identifier according to the point description information and the second naming rule, and then determines the matching result of the controller and the device model based on the prefix information tree search method according to the model description identifier of each device model and the point description identifier of each controller. This technical solution solves the problem of low matching efficiency between device models and controllers, and realizes fast matching between device models and controllers by unifying the naming rules of controllers and based on the prefix information tree search method, greatly reducing the matching complexity.

[0039] Embodiment 2

[0040] Figure 2 This is a flow chart of a controller and device model matching method provided in Embodiment 2 of the present invention. This embodiment refines the above embodiment. Figure 2 As shown, the method includes:

[0041] S210. Obtain model description information of each device model in the target building and point description information of each controller; wherein the model description information is the description information of the digital twin model of the electromechanical equipment; and the point description information is the description information of the controller associated with the electromechanical equipment.

[0042] In this solution, the model description information includes the spatial position and device identification of the electromechanical equipment to which the digital twin model belongs. The point description information includes the spatial position and device identification of the electromechanical equipment to which the controller belongs. After obtaining the model description information of each device model in the target building and the point description information of each controller, the building automation control system can execute S220-S230 and S240-S250 at the same time.

[0043] S220. Generate a first spatial position identifier according to the spatial position of the electromechanical equipment to which the digital twin model belongs, in accordance with the spatial hierarchy from large to small.

[0044] It can be understood that the spatial location of the electromechanical equipment can be described by multiple spatial levels, such as the digital twin model corresponding to the electromechanical equipment in Room 8, Floor 3, Building 1. The building automation control system can generate a first spatial location identifier for the spatial location of the electromechanical equipment belonging to the digital twin model according to the spatial levels from large to small. The building automation control system can use a unified separator to segment the location information of different spatial levels. Taking the electromechanical equipment in Room 8, Floor 3, Building 1 as an example, the first spatial location identifier can be expressed in the form of 1-3-8, 1->3->8, and [1]. [3]. [8]. The building automation control system can also set a fixed number of characters for the location information of each spatial level. For example, the building level, floor level, and room level are all represented by 3 characters, and the first spatial location identifier can be expressed in the form of 001003008. In order to more clearly distinguish the spatial levels, the building automation control system can use a unified identification symbol to represent the same spatial level. For example, B represents the building, F represents the floor, and R represents the room. The above-mentioned first spatial position identification can be expressed in the form of 1B-3F-8R, B1->F3->R8, [B1]. [F3]. [R8] and B01F03R08.

[0045] S230: Generate a model description identifier according to the first spatial position identifier and the device identifier.

[0046] In order to achieve accurate identification of the device model, the building automation control system can add the device identification on the basis of the first spatial position identification to obtain a complete model description identification. Specifically, the device identification can be arranged after the first spatial position identification.

[0047] S240. Generate a second spatial position identifier according to the spatial position of the electromechanical device to which the controller belongs and in descending spatial hierarchy.

[0048] Similar to the model description identifier, the building automation control system can generate a second spatial location identifier for the spatial location of the electromechanical equipment to which the controller belongs according to the spatial hierarchy from large to small. The building automation control system can use a unified separator to segment the location information of different spatial hierarchies. Taking the electromechanical equipment in room 11 on the 4th floor of building 2 as an example, the second spatial location identifier can be expressed in the form of 2 / 4 / 11, 2; 4; 11, and 2&4&11. The building automation control system can also set a fixed number of characters for the location information of each spatial hierarchy. For example, the building hierarchy, floor hierarchy, and room hierarchy are all represented by 3 characters, and the second spatial location identifier can be expressed in the form of 002004011. In order to more clearly distinguish the spatial hierarchy, the building automation control system can use a unified identifier to represent the same spatial hierarchy. For example, J represents the building, L represents the floor, and F represents the room. The above second spatial location identifier can be expressed in the form of J2 / L4 / F11, J2; L4; F11, J2&L4&F11, and J02L04F11.

[0049] S250: Generate a point description identifier according to the second spatial position identifier and the device identifier.

[0050] In order to achieve accurate identification of the controller, the building automation control system can add the device identification on the basis of the second spatial position identification to obtain a complete point description identification. Specifically, the device identification can be arranged after the second spatial position identification.

[0051] S260: According to the model description identifier of each device model and the point description identifier of each controller, based on the prefix information tree search method, determine the matching result between the controller and the device model.

[0052] Before constructing the prefix information tree, if the naming rules of the model description identifier and the point description identifier are the same, the prefix information tree can be directly constructed to perform the identifier search. If the naming rules of the model description identifier and the point description identifier are different, the building automation control system can unify the naming rules of the model description identifier and the point description identifier to ensure the accuracy of the identifier search. In a specific example, both the model description identifier and the point description identifier have spatial hierarchy identifiers, but the identifiers for the same spatial hierarchy are different. For example, in the model description identifier, B represents a building, F represents a floor, and R represents a room, while in the point description identifier, J represents a building, L represents a floor, and F represents a room. The building automation control system can unify the identifiers representing the same spatial hierarchy in the model description identifier and the point description identifier, for example, replacing J with B, L with F, and F with R in the point description identifier.

[0053] In a feasible solution, the matching result between the controller and the device model is determined based on the prefix information tree search method according to the model description identifier of each device model and the point description identifier of each controller, including:

[0054] According to the model description identifier of each device model and the preset character segmentation principle, a first prefix information tree is constructed;

[0055] Determine the search results of each controller in the first prefix information tree according to the point description identifier of each controller;

[0056] According to the search results of each controller, the matching result between the controller and the device model is determined.

[0057] It is easy to understand that each model description identifier can be used as a string, and the building automation control system can formulate a character segmentation principle based on the model description identifier of each device model. The character segmentation principle can be to segment the string of the model description identifier according to the delimiter, for example, to perform a segmentation every time a delimiter is encountered. The character segmentation principle can also be to segment the string of the model description identifier according to the number of characters, for example, to perform a segmentation every 3 characters. After the model description identifier is segmented according to the character segmentation principle, multiple groups of strings can be obtained. The building automation control system can take each group of strings as a node in turn, and sequentially connect the nodes to form a model description identifier. Based on the segmentation results of each model description identifier, the building automation control system can construct a first prefix information tree.

[0058] Similar to the segmentation of the model description identifier, the building automation control system can segment the point description identifier of each controller according to the character segmentation principle of the point description identifier matching. After each point description identifier is segmented, multiple groups of strings can be obtained, and the building automation control system can compare each group of strings with the nodes in the first prefix information tree in turn. If the current group string is equal to or similar to the current node, the next group of strings is updated to the current group string, and the lower nodes connected to the current node are taken as the current nodes in turn, and the current group string is returned to determine whether it is equal to or similar to the current node, until the current node does not have a lower node or the current node has only one lower node, and the model description identifier matched by the current node is output, and the device model corresponding to the model description identifier is used as the search result of the controller. If the current group string is neither equal to nor similar to the current node, the target node is determined in the nodes that are not matched in the current layer, and the target node is taken as the current node, and it is determined whether the current group string is equal to or similar to the current node, until the current group string is equal to or similar to the current node.

[0059] Whether the current group string is similar to the current node can be determined by calculating the character similarity between the current group string and the current node. If the similarity is greater than or equal to a preset threshold, the current group string is determined to be similar to the current node, or if the similarity is less than a preset threshold, the current group string is determined to be dissimilar to the current node. After obtaining the search results of each controller, the building automation control system can obtain the matching results of the controller and the device model in the target building.

[0060] In another feasible solution, the matching result between the controller and the device model is determined based on the prefix information tree search method according to the model description identifier of each device model and the point description identifier of each controller, including:

[0061] According to the point description identifiers of each controller and the preset character segmentation principle, a second prefix information tree is constructed;

[0062] Determining search results for each device model in the second prefix information tree according to the model description identifier of each device model;

[0063] According to the search results of each device model, the matching result between the controller and the device model is determined.

[0064] In this solution, each point description identifier can be used as a character string, and the building automation control system can formulate a character segmentation principle based on the point description identifiers of each controller. The character segmentation principle can be to segment the character string of the model description identifier according to the separator, for example, to perform a segmentation every time a separator is encountered. The character segmentation principle can also be to segment the character string of the model description identifier according to the number of characters, for example, to perform a segmentation every 3 characters. After the point description identifier is segmented according to the character segmentation principle, multiple groups of character strings can be obtained. The building automation control system can take each group of character strings as a node in turn, and sequentially connect the nodes to form a point description identifier. Based on the segmentation results of each point description identifier, the building automation control system can construct a second prefix information tree.

[0065] The building automation control system can segment the model description identifier of each device model according to the character segmentation principle of the model description identifier matching. After each model description identifier is segmented, multiple groups of strings can be obtained, and the building automation control system can compare each group of strings with the nodes in the second prefix information tree in turn. If the current group of strings is equal to or similar to the current node, the next group of strings is updated to the current group of strings, and the lower nodes connected to the current node are taken as the current nodes in turn, and the current group of strings is returned to determine whether the current group of strings is equal to or similar to the current node, until the current node does not have a lower node or the current node has only one lower node, and the point description identifier matched by the current node is output, and the controller corresponding to the point description identifier is used as the search result of the device model. If the current group of strings is neither equal to nor similar to the current node, the target node is determined in the nodes that are not matched in the current layer, and the target node is taken as the current node, and it is determined whether the current group of strings is equal to or similar to the current node, until the current group of strings is equal to or similar to the current node.

[0066] Whether the current group string is similar to the current node can be determined by calculating the character similarity between the current group string and the current node. If the similarity is greater than or equal to a preset threshold, the current group string is determined to be similar to the current node, or if the similarity is less than a preset threshold, the current group string is determined to be dissimilar to the current node. After obtaining the search results of each device model, the building automation control system can obtain the matching results of the controller in the target building and the device model.

[0067] In this embodiment, optionally, the model description information also includes input and output signal characteristics;

[0068] The step of generating a model description identifier according to the first spatial position identifier and the device identifier includes:

[0069] A model description identifier is generated according to the first spatial position identifier, the device identifier, and the input and output signal characteristics.

[0070] In order to describe the digital twin model of electromechanical equipment more finely, the building automation control system can, after obtaining the first spatial position identifier, sequentially add the device identifier and the input and output signal characteristics to the first spatial position identifier to obtain the model description identifier.

[0071] Based on the above solution, the point description information also includes the point type and the network address of the controller;

[0072] The generating a point description identifier according to the second spatial position identifier and the device identifier includes:

[0073] A point description identifier is generated according to the second spatial position identifier, the device identifier, the point type, and the network address.

[0074] In order to describe the controller more finely, the building automation control system can, after obtaining the second spatial location identifier, sequentially add the device identifier, the point type and the network address to the second spatial location identifier to obtain the point description identifier.

[0075] This solution can achieve fast matching between controllers and device models by unifying the naming rules of controllers and building a prefix information tree. Compared with the existing matching method, the complexity of matching is greatly reduced. In a specific example, a prefix information tree is built with the model description identifier of each device model. The number of controllers and the number of device models are both N, the average length of the string of the point description identifier of each controller is M, and the length of the query string is K. The number of calculations of the existing matching method is N. 2 , and the number of calculations according to the above scheme is N×M+N×K. If N=10 4 , M = 16, K = 4, the query efficiency of this scheme is about 10 times that of the existing scheme 3 times.

[0076] The technical solution of the embodiment of the present invention obtains the model description information of each device model in the target building and the point description information of each controller, generates a model description identifier according to the model description information and the first naming rule, generates a point description identifier according to the point description information and the second naming rule, and then determines the matching result of the controller and the device model based on the prefix information tree search method according to the model description identifier of each device model and the point description identifier of each controller. This technical solution solves the problem of low matching efficiency between device models and controllers, and realizes fast matching between device models and controllers by unifying the naming rules of controllers and based on the prefix information tree search method, greatly reducing the matching complexity.

[0077] Embodiment 3

[0078] Figure 3 This is a schematic diagram of a matching device between a controller and a device model provided in the third embodiment of the present invention. Figure 3 As shown, the device comprises:

[0079] The description information acquisition module 310 is used to acquire the model description information of each device model in the target building and the point description information of each controller; wherein the model description information is the description information of the digital twin model of the electromechanical device; and the point description information is the description information of the controller associated with the electromechanical device;

[0080] A description identifier generating module 320 is used to generate a model description identifier according to the model description information and the first naming rule; and to generate a point description identifier according to the point description information and the second naming rule;

[0081] The matching result determination module 330 is used to determine the matching result between the controller and the device model based on the prefix information tree search method according to the model description identifier of each device model and the point description identifier of each controller.

[0082] In this solution, optionally, the model description information includes the spatial position and device identification of the electromechanical equipment to which the digital twin model belongs; the point description information includes the spatial position and device identification of the electromechanical equipment to which the controller belongs;

[0083] The description identifier generation module 320 includes a model identifier generation unit and a point identifier generation unit, wherein the model identifier generation unit is used to:

[0084] According to the spatial position of the electromechanical equipment to which the digital twin model belongs, a first spatial position identifier is generated according to the spatial hierarchy from large to small;

[0085] Generate a model description identifier according to the first spatial position identifier and the device identifier;

[0086] The point identification generating unit is used for:

[0087] According to the spatial position of the electromechanical equipment to which the controller belongs, a second spatial position identifier is generated according to the spatial hierarchy from large to small;

[0088] A point description identifier is generated according to the second spatial position identifier and the device identifier.

[0089] In a feasible solution, the matching result determination module 330 is specifically used to:

[0090] According to the model description identifier of each device model and the preset character segmentation principle, a first prefix information tree is constructed;

[0091] Determine the search results of each controller in the first prefix information tree according to the point description identifier of each controller;

[0092] According to the search results of each controller, the matching result between the controller and the device model is determined.

[0093] In another feasible solution, the matching result determination module 330 is specifically used to:

[0094] According to the point description identifiers of each controller and the preset character segmentation principle, a second prefix information tree is constructed;

[0095] Determining search results for each device model in the second prefix information tree according to the model description identifier of each device model;

[0096] According to the search results of each device model, the matching result between the controller and the device model is determined.

[0097] Based on the above solution, the model description information also includes input and output signal characteristics;

[0098] The model identification generating unit is specifically used for:

[0099] A model description identifier is generated according to the first spatial position identifier, the device identifier, and the input and output signal characteristics.

[0100] In this embodiment, optionally, the point description information also includes the point type and the network address of the controller;

[0101] The point identification generating unit is specifically used for:

[0102] A point description identifier is generated according to the second spatial position identifier, the device identifier, the point type, and the network address.

[0103] The controller and device model matching device provided in the embodiment of the present invention can execute the controller and device model matching method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0104] Embodiment 4

[0105] Figure 4A schematic diagram of an electronic device 410 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 may 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.

[0106] like Figure 4 As shown, the electronic device 410 includes at least one processor 411, and a memory connected to the at least one processor 411 in communication, such as a read-only memory (ROM) 412, a random access memory (RAM) 413, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 411 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 412 or the computer program loaded from the storage unit 418 to the random access memory (RAM) 413. In the RAM 413, various programs and data required for the operation of the electronic device 410 can also be stored. The processor 411, the ROM 412, and the RAM 413 are connected to each other via a bus 414. An input / output (I / O) interface 415 is also connected to the bus 414.

[0107] Multiple components in the electronic device 410 are connected to the I / O interface 415, including: an input unit 416, such as a keyboard, a mouse, etc.; an output unit 417, such as various types of displays, speakers, etc.; a storage unit 418, such as a disk, an optical disk, etc.; and a communication unit 419, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 419 allows the electronic device 410 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0108] The processor 411 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 411 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 411 performs the various methods and processes described above, such as a controller and a device model matching method.

[0109] In some embodiments, the controller and device model matching method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 418. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 410 via the ROM 412 and / or the communication unit 419. When the computer program is loaded into the RAM 413 and executed by the processor 411, one or more steps of the controller and device model matching method described above can be performed. Alternatively, in other embodiments, the processor 411 can be configured to perform the controller and device model matching method in any other appropriate manner (for example, by means of firmware).

[0110] 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), complex 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.

[0111] The 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 controller and device model matching 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.

[0112] 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 combination 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.

[0113] 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).

[0114] 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.

[0115] 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.

[0116] 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.

[0117] 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 method for matching a controller and a device model, characterized in that: The method comprises: Obtain model description information of each device model in the target building and point description information of each controller; wherein the model description information is description information of the digital twin model of the electromechanical equipment; and the point description information is description information of the controller associated with the electromechanical equipment; According to the model description information, a model description identifier is generated according to a first naming rule; according to the point description information, a point description identifier is generated according to a second naming rule; According to the model description identifier of each device model and the point description identifier of each controller, the matching result between the controller and the device model is determined based on the prefix information tree search method.

2. The method according to claim 1, characterized in that The model description information includes the spatial position and device identification of the electromechanical equipment to which the digital twin model belongs; the point description information includes the spatial position and device identification of the electromechanical equipment to which the controller belongs; Generating a model description identifier according to the model description information and a first naming rule includes: According to the spatial position of the electromechanical equipment to which the digital twin model belongs, a first spatial position identifier is generated according to the spatial hierarchy from large to small; Generate a model description identifier according to the first spatial position identifier and the device identifier; The step of generating a point description identifier according to the point description information and the second naming rule includes: According to the spatial position of the electromechanical equipment to which the controller belongs, a second spatial position identifier is generated according to the spatial hierarchy from large to small; A point description identifier is generated according to the second spatial position identifier and the device identifier.

3. The method according to claim 2, characterized in that The method of determining the matching result between the controller and the device model based on the prefix information tree search method according to the model description identifier of each device model and the point description identifier of each controller includes: According to the model description identifier of each device model and the preset character segmentation principle, a first prefix information tree is constructed; Determine the search results of each controller in the first prefix information tree according to the point description identifier of each controller; According to the search results of each controller, the matching result between the controller and the device model is determined.

4. The method according to claim 2, characterized in that: The method of determining the matching result between the controller and the device model based on the prefix information tree search method according to the model description identifier of each device model and the point description identifier of each controller includes: According to the point description identifiers of each controller and the preset character segmentation principle, a second prefix information tree is constructed; Determining search results for each device model in the second prefix information tree according to the model description identifier of each device model; According to the search results of each device model, the matching result between the controller and the device model is determined.

5. The method according to claim 2, characterized in that: The model description information also includes input and output signal characteristics; The step of generating a model description identifier according to the first spatial position identifier and the device identifier includes: A model description identifier is generated according to the first spatial position identifier, the device identifier, and the input and output signal characteristics.

6. The method according to claim 2, characterized in that The point description information also includes the point type and the network address of the controller; The generating a point description identifier according to the second spatial position identifier and the device identifier includes: A point description identifier is generated according to the second spatial position identifier, the device identifier, the point type, and the network address.

7. A controller and device model matching device, characterized in that: The device comprises: A description information acquisition module, used to acquire model description information of each device model in the target building and point description information of each controller; wherein the model description information is the description information of the digital twin model of the electromechanical equipment; and the point description information is the description information of the controller associated with the electromechanical equipment; A description identifier generating module, used to generate a model description identifier according to the model description information and a first naming rule; and to generate a point description identifier according to the point description information and a second naming rule; The matching result determination module is used to determine the matching result between the controller and the device model based on the prefix information tree search method according to the model description identifier of each device model and the point description identifier of each controller.

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 controller and device model matching method described in any one of claims 1-6.

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 method for matching a controller and a device model according to any one of claims 1 to 6 when executed.

10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method for matching a controller with a device model according to any one of claims 1 to 6.