Method and device for establishing equipment model library, electronic equipment and storage medium
By building and storage device topological connection model, the problem of difficulty in visually managing smart device connection relationships in the existing technology is solved, and intuitive display and management of device connection relationships is realized, which is convenient to support a variety of practical business needs.
Patent Information
- Application Number
- CN202311354578.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-18
- Publication Date
- 2025-04-18
AI Technical Summary
The prior art is difficult to visually manage the connection relationship of smart devices, which makes it difficult to analyze device application scenarios.
By obtaining the data to be introduced and its corresponding basic information, a device topology connection model is built and stored in a preset second database to visually display the connection relationship between devices.
It realizes the intuitive display of the device connection relationship, facilitates model file management from the mechanism modeling level, and provides technical support for actual business needs, such as fault diagnosis and prediction, comprehensive energy conservation, group control, etc.
Smart Images

Figure CN119848013A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of modeling technology, for example, to a method, apparatus, electronic device and storage medium for establishing a device model library. Background Art
[0002] At present, with the rapid development of information and communication technology, the world's industrial technology is accelerating its transformation towards intelligence. How to manage smart devices is a technical problem that needs to be solved urgently. At present, devices are usually managed by establishing a database, but the management content is relatively simple and the connection relationship between devices cannot be visualized. This makes it inconvenient to analyze the application scenarios of devices.
[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0004] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0005] The embodiments of the present disclosure provide a method, an apparatus, an electronic device, and a storage medium for establishing a device model library, so as to intuitively display the connection relationship between devices.
[0006] In some embodiments, the method for establishing a device model library includes: obtaining the data to be introduced and basic information corresponding to the data to be introduced; constructing a device topology connection model corresponding to the data to be introduced based on the basic information corresponding to the data to be introduced; and storing the device topology connection model corresponding to the data to be introduced in a preset second database.
[0007] In some embodiments, obtaining basic information corresponding to the data to be introduced includes: determining whether the basic information corresponding to the data to be introduced exists in a preset first database; if the basic information corresponding to the data to be introduced exists in the first database, obtaining the basic information corresponding to the data to be introduced from the first database.
[0008] In some embodiments, the device topology connection model corresponding to the data to be introduced is stored in a preset second database, including: obtaining the device corresponding to the data to be introduced; if the device corresponding to the data to be introduced exists in the second database, determining the device model database corresponding to the data to be introduced in the second database; and storing the device topology connection model corresponding to the data to be introduced in the device model database corresponding to the data to be introduced.
[0009] In some embodiments, determining in the second database a device model database corresponding to the data to be introduced includes: obtaining basic information corresponding to the data to be introduced; performing a matching operation in the second database according to the basic information to obtain a device model database corresponding to the data to be introduced.
[0010] In some embodiments, the device for establishing a device model library includes: an acquisition module, configured to acquire the data to be introduced and basic information corresponding to the data to be introduced; a construction module, configured to construct a device topology connection model corresponding to the data to be introduced based on the basic information corresponding to the data to be introduced; and a storage module, configured to store the device topology connection model corresponding to the data to be introduced in a preset second database.
[0011] In some embodiments, the acquisition module is configured to acquire basic information corresponding to the data to be introduced in the following manner: determine whether basic information corresponding to the data to be introduced exists in a preset first database; if basic information corresponding to the data to be introduced exists in the first database, acquire the basic information corresponding to the data to be introduced from the first database.
[0012] In some embodiments, the storage module is configured to store the device topology connection model corresponding to the data to be introduced into a preset second database in the following manner: obtaining the device corresponding to the data to be introduced; if the device corresponding to the data to be introduced exists in the second database, determining the device model database corresponding to the data to be introduced in the second database; and storing the device topology connection model corresponding to the data to be introduced in the device model database corresponding to the data to be introduced.
[0013] In some embodiments, determining in the second database a device model database corresponding to the data to be introduced includes: obtaining basic information corresponding to the data to be introduced; performing a matching operation in the second database according to the basic information to obtain a device model database corresponding to the data to be introduced.
[0014] In some embodiments, the electronic device includes a processor and a memory storing program instructions, and the processor is configured to execute the above-mentioned method for establishing a device model library when running the program instructions.
[0015] In some embodiments, the storage medium stores program instructions, and when the program instructions are run, the above-mentioned method for establishing a device model library is executed.
[0016] The method, apparatus, electronic device and storage medium for establishing a device model library provided by the embodiments of the present disclosure can achieve the following technical effects: by constructing a device topology connection model corresponding to the data to be introduced based on the basic information corresponding to the data to be introduced, and storing the device topology connection model corresponding to the data to be introduced in a preset second database. Thus, the data to be introduced can be converted into a device topology connection model for storage. Then, the connection relationship between devices can be intuitively displayed.
[0017] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0019] Figure 1 is a schematic diagram of a method for establishing a device model library provided by an embodiment of the present disclosure;
[0020] Figure 2 is a schematic diagram of a topological connection structure of a central air conditioning system according to an embodiment of the present disclosure;
[0021] Figure 3 is a schematic diagram of another method for establishing a device model library provided by an embodiment of the present disclosure;
[0022] Figure 4 is a schematic diagram of a device for establishing a device model library provided by an embodiment of the present disclosure;
[0023] Figure 5 It is a schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0024] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0025] The terms "first", "second", etc. in the specification and claims of the embodiments 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 terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0026] Unless otherwise stated, the term "plurality" means two or more.
[0027] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0028] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0029] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0030] Combination Figure 1 As shown, the embodiment of the present disclosure provides a method for establishing a topology connection model, including:
[0031] Step S101: the electronic device obtains data to be imported and basic information corresponding to the data to be imported.
[0032] Step S102: The electronic device constructs a device topology connection model corresponding to the data to be introduced according to basic information corresponding to the data to be introduced.
[0033] Step S103: the electronic device stores the device topology connection model corresponding to the data to be introduced into a preset second database.
[0034] The method for constructing a topological connection model provided by the embodiment of the present disclosure is adopted, and a device topological connection model corresponding to the data to be introduced is constructed according to the basic information corresponding to the data to be introduced, and the device topological connection model corresponding to the data to be introduced is stored in a preset second database. The data to be introduced can thus be converted into a device topological connection model for storage. The connection relationship between devices is intuitively displayed, which facilitates model file management from the mechanism modeling level. Moreover, this makes it easier for twin building equipment to simulate and generate parameters close to the actual ones through the device topological connection model, providing technical support for actual business needs. Actual needs include fault diagnosis prediction, comprehensive energy saving, group control, etc.
[0035] The basic information corresponding to the data to be introduced includes a rule file and a device connection relationship. The rule file includes: one or more of the data type used by the data to be introduced, the data range used by the data to be introduced, the collection frequency when collecting the data to be introduced, the source device of the data to be introduced, and the data type of the data to be introduced. The data type is, for example, a floating point number. The data range is, for example, 0 to 20. The collection frequency when collecting the data to be introduced is, for example, once every 10 minutes. The device source of the data to be introduced is, for example, a host, and the brand of the host is, for example, A. The data type of the data to be introduced is input or output. The device connection relationship includes the device that has a connection relationship with the source device of the data to be introduced. The data to be introduced is, for example, the chilled water outlet temperature, and the source device of the chilled water outlet temperature is a chilled pump. Devices that have a connection relationship with the chilled pump are, for example, refrigeration hosts, fan coils, and terminal water valves.
[0036] Optionally, a device topology connection model corresponding to the data to be introduced is constructed based on basic information corresponding to the data to be introduced, including: connecting devices that have a connection relationship with source devices of the data to be introduced according to device connection relationships to obtain a device topology connection model corresponding to the data to be introduced.
[0037] Combination Figure 2 As shown, the embodiment of the present disclosure provides a topological connection structure of a central air-conditioning system. The central air-conditioning system includes a cooling tower 201, a chiller 202, a cooling pump 203, a freezing pump 204, an air-conditioning unit 205, a terminal water valve 206, and a terminal coil 207. The cooling tower is connected to the cooling tower and the chiller, and the cooling pump is connected to the chiller. The chiller is connected to the freezing pump. The freezing pump is connected to the terminal water valve and the air-conditioning unit. The terminal coil is connected to the terminal water valve and the air-conditioning unit.
[0038] Optionally, obtaining basic information corresponding to the data to be introduced includes: determining whether the basic information corresponding to the data to be introduced exists in a preset first database. If the basic information corresponding to the data to be introduced exists in the first database, obtaining the basic information corresponding to the data to be introduced from the first database. In this way, the basic information corresponding to the data to be introduced can be obtained.
[0039] Optionally, after determining whether there is basic information corresponding to the data to be introduced in the preset first database, the method further includes: if the basic information corresponding to the data to be introduced does not exist in the first database, sending first prompt information to the user terminal. The first prompt information is used to prompt the user to feedback the basic information corresponding to the data to be introduced.
[0040] Optionally, the basic information corresponding to the data to be introduced is sent by a user terminal. When the basic information corresponding to the data to be introduced sent by the user terminal is received, it is determined whether the basic information corresponding to the data to be introduced exists in a preset first database. When the basic information corresponding to the data to be introduced does not exist in the first database, the data to be introduced, the basic information, and the corresponding relationship between the data to be introduced and the basic information are stored in the first database. In this way, when the data to be introduced is received again in the future, data related to the data to be introduced can be directly obtained from the first database.
[0041] Combination Figure 3 As shown, the embodiment of the present disclosure provides a method for establishing a topology connection model, including:
[0042] Step S301: the electronic device obtains data to be imported and basic information corresponding to the data to be imported.
[0043] Step S302: The electronic device determines whether basic information corresponding to the data to be introduced exists in a preset first database.
[0044] Step S303: When the basic information corresponding to the data to be introduced does not exist in the first database, the electronic device stores the data to be introduced, the basic information, and the corresponding relationship between the data to be introduced and the basic information in the first database.
[0045] The method for establishing a topological connection model provided by the embodiment of the present disclosure is adopted. When the basic information corresponding to the data to be introduced does not exist in the first database, the corresponding relationship between the data to be introduced and the basic information is stored in the first database. In this way, when the data to be introduced is received again in the future, the data related to the data to be introduced can be directly obtained from the first database. In this way, the device topological connection model corresponding to the data to be introduced can be constructed more quickly.
[0046] Optionally, storing the device topology connection model corresponding to the data to be introduced in a preset second database includes: obtaining the device corresponding to the data to be introduced. If the device corresponding to the data to be introduced exists in the second database, determining the device model database corresponding to the data to be introduced in the second database. Storing the device topology connection model corresponding to the data to be introduced in the device model database corresponding to the data to be introduced.
[0047] Optionally, after obtaining the device corresponding to the data to be introduced, the method further includes: if the device corresponding to the data to be introduced does not exist in the second database, the device corresponding to the data to be introduced, the basic information corresponding to the data to be introduced, and the device topology connection model corresponding to the data to be introduced are stored in the second database from top to bottom. In this way, the device corresponding to the data to be introduced, the basic information corresponding to the data to be introduced, and the device topology connection model corresponding to the data to be introduced are stored in the second database from top to bottom, so that when the device topology connection model is needed, the device topology connection model can be quickly found from the second database.
[0048] Combination Figure 4 As shown, the embodiment of the present disclosure provides a device 400 for establishing a device model library, including: an acquisition module 401, a construction module 402 and a storage module 403. The acquisition module 401 is configured to acquire the data to be introduced and the basic information corresponding to the data to be introduced. The construction module 402 is configured to construct a device topology connection model corresponding to the data to be introduced according to the basic information corresponding to the data to be introduced. The storage module 403 is configured to store the device topology connection model corresponding to the data to be introduced in a preset second database.
[0049] The device for constructing a topological connection model provided by the embodiment of the present disclosure is adopted, and the device topological connection model corresponding to the data to be introduced is constructed according to the basic information corresponding to the data to be introduced, and the device topological connection model corresponding to the data to be introduced is stored in a preset second database. Thereby, the data to be introduced can be converted into a device topological connection model for storage. The connection relationship between devices is intuitively displayed, which facilitates model file management from the mechanism modeling level. Moreover, this makes it easy for the twin building equipment to simulate and generate parameters close to the actual ones through the device topological connection model, providing technical support for actual business needs. Actual needs include fault diagnosis prediction, comprehensive energy saving, group control, etc.
[0050] Optionally, the acquisition module is configured to acquire basic information corresponding to the data to be introduced by: determining whether the basic information corresponding to the data to be introduced exists in a preset first database. If the basic information corresponding to the data to be introduced exists in the first database, the basic information corresponding to the data to be introduced is acquired from the first database.
[0051] Optionally, the storage module is configured to store the device topology connection model corresponding to the data to be introduced into a preset second database in the following manner: obtaining the device corresponding to the data to be introduced. If the device corresponding to the data to be introduced exists in the second database, determining the device model database corresponding to the data to be introduced in the second database. The device topology connection model corresponding to the data to be introduced is stored in the device model database corresponding to the data to be introduced.
[0052] Optionally, determining in the second database the device model database corresponding to the data to be introduced includes: acquiring basic information corresponding to the data to be introduced, performing a matching operation in the second database according to the basic information, and obtaining the device model database corresponding to the data to be introduced.
[0053] Combination Figure 5 As shown, an embodiment of the present disclosure provides a device 500 for establishing a device model library, including a processor 501 and a memory 502. Optionally, the device may also include a communication interface 503 and a bus 504. The processor 501, the communication interface 503, and the memory 502 may communicate with each other through the bus 504. The communication interface 503 may be used for information transmission. The processor 501 may call the logic instructions in the memory 502 to execute the method for establishing a device model library of the above embodiment.
[0054] By adopting the electronic device provided by the embodiment of the present disclosure, a device topology connection model corresponding to the data to be introduced is constructed according to the basic information corresponding to the data to be introduced, and the device topology connection model corresponding to the data to be introduced is stored in a preset second database. The data to be introduced can be converted into a device topology connection model for storage. The connection relationship between devices is intuitively displayed, which facilitates model file management from the mechanism modeling level. Moreover, this makes it easier for twin building equipment to simulate and generate parameters close to the actual ones through the device topology connection model, providing technical support for actual business needs. Actual needs include fault diagnosis prediction, comprehensive energy saving, group control, etc.
[0055] The electronic device is, for example, a computer or a tablet computer.
[0056] In addition, the logic instructions in the memory 502 described above can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0057] The memory 502 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 501 executes the function application and data processing by running the program instructions / modules stored in the memory 502, that is, the method for establishing the device model library in the above embodiment is implemented.
[0058] The memory 502 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 502 may include a high-speed random access memory and may also include a non-volatile memory.
[0059] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned method for establishing a device model library.
[0060] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0061] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, and other media that can store program codes, or a transient storage medium.
[0062] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0063] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0064] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0065] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment 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 the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. 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, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for establishing a device model library, characterized in that: include: Obtain the data to be imported and the basic information corresponding to the data to be imported; Construct a device topology connection model corresponding to the data to be introduced according to the basic information corresponding to the data to be introduced; The device topology connection model corresponding to the data to be introduced is stored in a preset second database.
2. The method according to claim 1, characterized in that: Obtain the basic information corresponding to the data to be imported, including: Determine whether basic information corresponding to the data to be introduced exists in the preset first database; In a case where basic information corresponding to the data to be introduced exists in the first database, the basic information corresponding to the data to be introduced is acquired from the first database.
3. The method according to claim 1, characterized in that Storing the device topology connection model corresponding to the data to be introduced into a preset second database includes: Obtain the device corresponding to the data to be imported; If there is a device corresponding to the data to be introduced in the second database, determining in the second database a device model database corresponding to the data to be introduced; The device topology connection model corresponding to the data to be introduced is stored in the device model database corresponding to the data to be introduced.
4. The method according to claim 3, characterized in that Determining in the second database a device model database corresponding to the data to be introduced includes: A matching operation is performed in the second database according to basic information corresponding to the data to be introduced, so as to obtain a device model database corresponding to the data to be introduced.
5. A device for establishing a device model library, characterized in that: include: An acquisition module is configured to acquire the data to be imported and basic information corresponding to the data to be imported; A construction module is configured to construct a device topology connection model corresponding to the data to be introduced according to basic information corresponding to the data to be introduced; The storage module is configured to store the device topology connection model corresponding to the data to be introduced into a preset second database.
6. The device according to claim 5, characterized in that The acquisition module is configured to acquire basic information corresponding to the data to be imported in the following manner: Determine whether basic information corresponding to the data to be introduced exists in the preset first database; In a case where basic information corresponding to the data to be introduced exists in the first database, the basic information corresponding to the data to be introduced is acquired from the first database.
7. The device according to claim 5, characterized in that The storage module is configured to store the device topology connection model corresponding to the data to be introduced into a preset second database in the following manner: Obtain the device corresponding to the data to be imported; If there is a device corresponding to the data to be introduced in the second database, determining in the second database a device model database corresponding to the data to be introduced; The device topology connection model corresponding to the data to be introduced is stored in the device model database corresponding to the data to be introduced.
8. The device according to claim 7, characterized in that Determining in the second database a device model database corresponding to the data to be introduced includes: Obtain the basic information corresponding to the data to be introduced; A matching operation is performed in the second database according to the basic information to obtain a device model database corresponding to the data to be introduced.
9. An electronic device comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for establishing a device model library according to any one of claims 1 to 4 when running the program instructions.
10. A storage medium storing program instructions, characterized in that: When the program instructions are executed, the method for establishing a device model library as described in any one of claims 1 to 4 is executed.