Cabinet control simulation method, device, equipment and computer-readable storage medium
By constructing a three-dimensional model of the cabinet and performing simulation operations, the safety and effectiveness problems of existing training methods are solved, and a safe and efficient training experience is achieved.
Patent Information
- Application Number
- CN202011434932.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-10
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-12-10
AI Technical Summary
The existing cabinet operation training methods have problems such as poor training effect, easy damage to cabinet components, and low training safety.
By obtaining the two-dimensional dimensional drawing of the cabinet hardware, a three-dimensional model is constructed, and the preset simulation architecture and operation control information are used to perform three-dimensional simulation of the configuration process, simulate the operation scenario of the cabinet, display hardware status information, and avoid damage to the real cabinet. Risk of electric shock.
It improves the safety and effectiveness of training, enables trainees to experience the practical operating environment, understand the connection between cabinet hardware, and avoids damage to real cabinets and the risk of electric shock.
Smart Images

Figure CN112541967B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer application technology, and in particular to a cabinet control simulation method, device, equipment and computer-readable storage medium. Background Art
[0002] In the process of cabinet operation training, operation learning and safety training, the existing learning and training methods for cabinet control are mostly divided into two types. One is that the teaching staff demonstrates manual operation and the trainees listen in and receive training; the other is that the trainees take turns to learn and train on the cabinet.
[0003] However, both of the above two training methods have their own shortcomings. First, the trainees only receive training by listening and cannot really participate in the actual operation, so the training effect is poor. Secondly, since the cabinet is expensive and the internal wiring of the cabinet is complicated, if the operation is improper, it is easy to cause damage to the cabinet components and there may be a risk of electric shock, so the training safety is low.
[0004] In summary, how to effectively solve the problems of poor training effect, easy damage to cabinet components, and low training safety in existing cabinet operation training methods is an issue that technical personnel in this field urgently need to solve. Summary of the invention
[0005] The purpose of the present invention is to provide a cabinet control simulation method, which avoids damage to the real cabinet, improves the safety of training, and greatly improves the training effect; another purpose of the present invention is to provide a cabinet control simulation device, equipment and computer-readable storage medium.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] A cabinet control simulation method, comprising:
[0008] Obtain the two-dimensional dimension drawing of each hardware of the cabinet to be simulated;
[0009] Constructing three-dimensional models of the hardware according to the two-dimensional dimension drawings to obtain three-dimensional models of the targets;
[0010] Using a pre-established target simulation framework, and in accordance with preset on-site hardware installation rules, a configuration process three-dimensional simulation is performed on each of the target three-dimensional models;
[0011] The operation control information is read, and the status information of each hardware is displayed in three-dimensional simulation according to the operation control information.
[0012] In a specific implementation of the present invention, a three-dimensional model is constructed for each of the hardware according to each of the two-dimensional dimension diagrams to obtain each target three-dimensional model, including:
[0013] Using 3dsmax to construct three-dimensional models of the hardware according to the two-dimensional dimension drawings to obtain basic three-dimensional models;
[0014] Using the UV mapping tool in the 3dsmax to perform UV splitting operations on each of the basic three-dimensional models to obtain each splitting result;
[0015] Obtaining real hardware photos corresponding to each of the hardware;
[0016] Using PBR rendering technology, combining the split results and the real hardware photos, generating target maps corresponding to the basic three-dimensional models;
[0017] Each of the target maps is pasted onto the corresponding basic three-dimensional model to obtain each of the target three-dimensional models.
[0018] In a specific embodiment of the present invention, after each of the target maps is pasted to the corresponding basic three-dimensional model, the method further includes:
[0019] LOD technology is used to display the textures of the tiles according to the preset display level. Figure 3 dimensional model for LOD model making.
[0020] In a specific implementation of the present invention, performing a three-dimensional simulation of the configuration process on each of the target three-dimensional models according to a preset on-site hardware installation rule includes:
[0021] When the cabinet is in the installation configuration mode in the configuration process, performing installation operations on each of the target three-dimensional models according to the preset on-site hardware installation rules;
[0022] When the cabinet is in the viewing roaming mode during the configuration process, obtaining a target distance between the cabinet and a simulated viewing terminal;
[0023] Determine the target display level corresponding to each of the hardware in the cabinet according to the target distance;
[0024] The target three-dimensional models corresponding to the target display levels are selected, and display operations are performed on the target three-dimensional models.
[0025] In a specific implementation of the present invention, after performing three-dimensional simulation of the configuration process on each of the target three-dimensional models according to the preset on-site hardware installation rules, it also includes:
[0026] Get the cabinet configuration results;
[0027] A configuration verification operation is performed on the cabinet configuration result.
[0028] In a specific implementation of the present invention, performing three-dimensional simulation display on the status information of each of the hardware according to the operation control information includes:
[0029] Sending the operation control information to a logic operation end so that the logic operation end performs a logic operation on the operation control information;
[0030] The status information of each hardware in the two-dimensional hardware diagram of the upper control system is read, and a three-dimensional simulation display is performed on each status information; wherein, the status information is information generated by the upper control system according to the logic operation result uploaded by the logic operation end.
[0031] In a specific implementation of the present invention, after reading the status information of each hardware in the two-dimensional hardware diagram of the upper control system, it also includes:
[0032] Convert the status information of each hardware into corresponding LED light status display information;
[0033] Performing three-dimensional simulation display on each of the state information includes:
[0034] The status display information of each LED lamp is displayed in three dimensions by simulation.
[0035] A cabinet control simulation device, comprising:
[0036] A two-dimensional dimension drawing acquisition module is used to obtain a two-dimensional dimension drawing of each hardware of the cabinet to be simulated;
[0037] A model building module, used to build a three-dimensional model of each of the hardware according to each of the two-dimensional dimension drawings to obtain each target three-dimensional model;
[0038] A configuration process simulation module, used to perform a configuration process three-dimensional simulation on each of the target three-dimensional models according to preset on-site hardware installation rules using a pre-established target simulation architecture;
[0039] The three-dimensional simulation display module is used to read the operation control information and perform three-dimensional simulation display on the status information of each hardware according to the operation control information.
[0040] A cabinet control simulation device, comprising:
[0041] Memory for storing computer programs;
[0042] The processor is used to implement the steps of the cabinet control simulation method as described above when executing the computer program.
[0043] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the cabinet control simulation method described above are implemented.
[0044] The cabinet control simulation method provided by the present invention obtains a two-dimensional dimension diagram of each hardware of the cabinet to be simulated; constructs a three-dimensional model of each hardware according to each two-dimensional dimension diagram to obtain each target three-dimensional model; uses a pre-established target simulation architecture to perform a three-dimensional simulation of the configuration process of each target three-dimensional model according to preset on-site hardware installation rules; reads operation control information, and performs a three-dimensional simulation display of the status information of each hardware according to the operation control information.
[0045] Through the above technical solution, it can be seen that by constructing models of each hardware of the cabinet, and using the target simulation architecture to perform three-dimensional simulation of the configuration process of each target three-dimensional model according to the preset on-site hardware installation rules, it is convenient for trainees to understand the connection between the hardware in the cabinet. And by reading the operation control information, the status information of each hardware is displayed in three dimensions, simulating the operation scene of the real cabinet, so that the trainees can experience the actual operation effect. It avoids damage to the real cabinet, avoids the occurrence of electric shock hazards, improves the safety of training, and greatly improves the training effect.
[0046] Correspondingly, the present invention also provides a cabinet control simulation device, equipment and computer-readable storage medium corresponding to the above-mentioned cabinet control simulation method, which have the above-mentioned technical effects and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying creative work.
[0048] Figure 1 A flowchart of an implementation of the cabinet control simulation method in an embodiment of the present invention;
[0049] Figure 2 Another implementation flow chart of the cabinet control simulation method in an embodiment of the present invention;
[0050] Figure 3 It is a structural block diagram of a cabinet control simulation device in an embodiment of the present invention;
[0051] Figure 4 The present invention is a structural block diagram of a cabinet control simulation device in an embodiment of the present invention. DETAILED DESCRIPTION
[0052] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0053] Embodiment 1:
[0054] See also Figure 1 , Figure 1 This is an implementation flow chart of a cabinet control simulation method in an embodiment of the present invention. The method may include the following steps:
[0055] S101: Obtain a two-dimensional dimension drawing of each hardware of the cabinet to be simulated.
[0056] Each cabinet is composed of multiple hardware. When a cabinet needs to be controlled and simulated, a two-dimensional dimension diagram of each hardware of the cabinet to be simulated is obtained.
[0057] S102: constructing three-dimensional models of various hardware according to the two-dimensional dimension drawings to obtain three-dimensional models of various targets.
[0058] After obtaining the two-dimensional dimension drawings of each hardware of the cabinet, three-dimensional models of each hardware are constructed according to each two-dimensional dimension drawing to obtain each target three-dimensional model. For example, 3dsmax software can be used to construct three-dimensional models of each hardware according to each two-dimensional dimension drawing at a 1:1 ratio.
[0059] S103: Using the pre-established target simulation framework, perform three-dimensional simulation of the configuration process on each target three-dimensional model according to preset on-site hardware installation rules.
[0060] The target simulation architecture is established in advance, and the target simulation architecture can include a simulation human-machine interface, a simulation server, a relational database management system, an authorization component, and a remote call server (RPCServer). The interface control part of the simulation human-machine interface is responsible for the interface control, 3D display, 3D operation, and interaction management of the simulation server; the simulation server is used for the background control of the simulation system, and is responsible for the external communication, logic management, control management, and database management functions of the simulation system; the relational database management system is used as a data persistence entity; the authorization component is used for simulation authorization operations; and the remote call server is used for the encapsulation of the 32-bit remote call server.
[0061] The on-site hardware installation rules are set in advance. After each target three-dimensional model is constructed, the configuration process three-dimensional simulation of each target three-dimensional model is performed according to the preset on-site hardware installation rules by using the pre-established target simulation architecture.
[0062] S104: Reading the operation control information, and performing three-dimensional simulation display on the status information of each hardware according to the operation control information.
[0063] After performing three-dimensional simulation of the configuration process of each target three-dimensional model according to the preset on-site hardware installation rules, when the operation control information of the simulation system is detected, the operation control information is read, and the status information of each hardware is three-dimensionally simulated and displayed according to the operation control information.
[0064] The operable hardware devices in the simulation system may include circuit breakers, AC power distribution boards, DC power distribution boards, power supplies, main controls, gateways, modules, DIP switches on the main control backplane, DIP switches on the module backplane, etc.
[0065] You can also view the basic information of various types of hardware devices. In the basic information interface, you can rotate 360 degrees to view the hardware device, and when the mouse moves to the key position of the hardware, the right side will display the device information of the key position. This information is consistent with the real hardware information.
[0066] Through the above technical solution, it can be seen that by constructing models of each hardware of the cabinet, and using the target simulation architecture to perform three-dimensional simulation of the configuration process of each target three-dimensional model according to the preset on-site hardware installation rules, it is convenient for trainees to understand the connection between the hardware in the cabinet. And by reading the operation control information, the status information of each hardware is displayed in three dimensions, simulating the operation scene of the real cabinet, so that the trainees can experience the actual operation effect. It avoids damage to the real cabinet, avoids the occurrence of electric shock hazards, improves the safety of training, and greatly improves the training effect.
[0067] It should be noted that, based on the above-mentioned embodiment 1, the embodiment of the present invention also provides a corresponding improvement scheme. In the subsequent embodiments, the same steps or corresponding steps as those in the above-mentioned embodiment 1 can be referenced to each other, and the corresponding beneficial effects can also be referenced to each other, and will not be repeated one by one in the following improved embodiments.
[0068] Embodiment 2:
[0069] See also Figure 2 , Figure 2 Another implementation flow chart of the cabinet control simulation method in an embodiment of the present invention, the method may include the following steps:
[0070] S201: Obtain a two-dimensional dimension drawing of each hardware of the cabinet to be simulated.
[0071] S202: Using 3dsmax to construct three-dimensional models of various hardware according to the two-dimensional dimension drawings to obtain various basic three-dimensional models.
[0072] After obtaining the two-dimensional dimension drawings of each hardware of the cabinet to be simulated, 3dsmax is used to construct three-dimensional models of each hardware according to each two-dimensional dimension drawing to obtain each basic three-dimensional model.
[0073] S203: Using the UV mapping tool in 3dsmax to perform UV splitting operations on each basic three-dimensional model to obtain each splitting result.
[0074] After obtaining each basic 3D model, use the UV mapping tool in 3dsmax to perform reasonable UV splitting operations on each basic 3D model to obtain each splitting result.
[0075] S204: Acquire real hardware photos corresponding to each hardware.
[0076] When it is necessary to map the basic three-dimensional models corresponding to the hardware in the constructed cabinet, the real hardware photos corresponding to the hardware are obtained.
[0077] S205: Using PBR rendering technology, combining each split result and each real hardware photo, generating target maps corresponding to each basic three-dimensional model.
[0078] After UV splitting of each basic 3D model and obtaining the real hardware photos corresponding to each hardware, use PBR rendering technology, combine the split results and the real hardware photos, and generate the target maps corresponding to each basic 3D model. For example, the model materials of each hardware are reasonably distributed by color, and color ID maps are made to distinguish hardware materials in Substance Printer software. Export the 3D model file in FBX format, enter SubstancePrinter to make PBR material maps, and use them to make hardware effects in Unity3d engine. Export the prepared PBR material. Generate the UI logo map on the basic 3D model in Photoshop according to the real hardware photos.
[0079] S206: Paste each target map onto the corresponding basic three-dimensional model.
[0080] After generating the target maps corresponding to the basic 3D models, the target maps are pasted to the corresponding basic 3D models, such as pasting the target maps to the surface of the basic 3D models by using the Alpha patch method, for making detailed labels for the hardware.
[0081] S207: Using LOD technology according to the preset display level, the textures obtained by the texture operation are Figure 3 The LOD model is produced based on the 3D model to obtain the 3D model of each target.
[0082] After pasting each target map to the corresponding basic 3D model, LOD technology is used to display each map obtained by the mapping operation according to the preset display level. Figure 3 The LOD model is made by using the 3D model to obtain the target 3D model. For example, it can be divided into three levels of clarity display. The first level model has 3483 triangles, the second level model has 1227 triangles, and the third level model has 44 triangles. Finally, the three levels of LOD models, textures and materials are exported respectively. The output files are saved in three file types: basic 3D model, 3D model with only textures, and 3D model after display classification.
[0083] S208: When the cabinet is in the installation configuration mode during the configuration process, the pre-established target simulation framework is used to perform installation operations on each target three-dimensional model according to preset on-site hardware installation rules.
[0084] The configuration process of the model can be divided into configuration mode and roaming mode. When the cabinet is in the installation configuration mode during the configuration process, the pre-established target simulation architecture is used to install each 3D model according to the preset on-site hardware installation rules.
[0085] S209: When the cabinet is in the viewing roaming mode during the configuration process, the target distance between the cabinet and the simulation viewing end is obtained.
[0086] After the installation of each 3D model is completed, a simulation viewing terminal is pre-set, and the simulation viewing terminal views the cabinet by moving in a 3D room containing one or more cabinets. When the cabinet is in a viewing roaming mode during the configuration process, the target distance between the cabinet and the simulation viewing terminal is obtained.
[0087] S210: Determine target display levels corresponding to the hardware in the cabinet according to the target distance.
[0088] The correspondence between each distance range and each display level is preset. After the target distance between the cabinet and the simulation viewing terminal is obtained, the target display level corresponding to each hardware in the cabinet is determined according to the target distance.
[0089] S211: Select target three-dimensional models corresponding to each target display level, and perform display operations on each target three-dimensional model.
[0090] After determining the target display levels corresponding to the hardware, select the target 3D models corresponding to the target display levels from the pre-generated target 3D models, and perform display operations on the target 3D models. For example, if the distance is far, the display level is low and fewer triangles are displayed; if the distance is close, the display level is high and more triangles are displayed, so that details can be viewed.
[0091] S212: Obtain cabinet configuration results.
[0092] After completing the configuration process of the cabinet, obtain the cabinet configuration result.
[0093] S213: Perform configuration verification operation on the cabinet configuration result.
[0094] After obtaining the cabinet configuration result, perform configuration verification on the cabinet configuration result. For example, the configuration verification can be performed in the following order:
[0095] (1) Obtain a preset verification sequence and perform verification according to the verification sequence;
[0096] (2) First check whether the hardware device type is missing;
[0097] (3) Traverse the backplane in reverse order, starting from the module backplane: module backplane -> BUS backplane -> main control backplane -> DC distribution -> power supply -> AC distribution -> circuit breaker;
[0098] (4) Whether the power distribution is legal, for example, K_PW01 matches K_PW11, not K_PW13;
[0099] (5) Check whether the module backplane matches the module;
[0100] (6) Basic wiring verification: various neutral wires, live wires, ground wires, positive wires and negative wires.
[0101] (7) After verification is completed, the result is returned.
[0102] For the cabinets that have passed the configuration verification, when the circuit breaker in the cabinet is turned on, the current will be connected inside the cabinet, and the simulation system will transmit the real hardware signal virtualized by the simulation environment.
[0103] S214: Read the operation control information, and send the operation control information to the logic operation end, so that the logic operation end performs a logic operation on the operation control information.
[0104] When an operation control action is detected, the operation control information is read and sent to the logic operation end, which performs a logic operation on the operation control information. The logic operation end determines whether the current operation will cause a fault by performing a logic operation on the operation control information. If so, the fault type is further analyzed and reported to the upper control system.
[0105] S215: Read the status information of each hardware in the two-dimensional hardware diagram of the upper control system.
[0106] The status information is information generated by the upper control system according to the logic operation result uploaded by the logic operation terminal.
[0107] After obtaining the result of the logic operation, the logic operation end generates the status information of each hardware and uploads the status information to the upper control system. The simulation system reads the status information of each hardware in the two-dimensional hardware diagram of the upper control system. The data interaction process between the simulation system, the logic operation end, and the upper control system can include handshake, execution failure, and business processing failure result feedback, thereby completing the data interaction closed loop between the three.
[0108] S216: Convert the status information of each hardware into corresponding LED light status display information.
[0109] After reading the status information of each hardware, the simulation system converts the status information of each hardware into corresponding LED light status display information.
[0110] S217: Perform three-dimensional simulation display on the status display information of each LED lamp.
[0111] After the status information of each hardware is converted into corresponding LED light status display information, the status display information of each LED light is displayed in three dimensions. By using the LED light status display to reflect the status information of the hardware, the status information of each hardware can be more intuitively reflected, and the readability is enhanced.
[0112] The LED lights of all hardware devices with LED lights will be displayed according to the actual signal status. For example, when the device plugged into the backplane is unplugged, the LED light status of the device will also simulate the real situation and turn off. At the same time, the status of the hardware devices that are redundant with this device will switch between master and slave according to the real situation. This mechanism is consistent with the performance of real hardware devices.
[0113] This embodiment is different from the embodiment 1 corresponding to the technical solution claimed for protection by the independent claim 1, and further adds the technical solutions claimed for protection by the dependent claims 2 to 7. Of course, according to different actual conditions and requirements, the technical solutions claimed for protection by the dependent claims can be flexibly combined without affecting the integrity of the solutions, so as to better meet the requirements of different usage scenarios. This embodiment only provides one of the solutions with the most solutions and the best effects. Due to the complexity of the situation, it is impossible to list all possible solutions one by one. Those skilled in the art should be able to realize that there can be many examples based on the basic method principles provided by this application in combination with actual conditions, and they should all be within the scope of protection of this application without sufficient creative work.
[0114] Corresponding to the above method embodiment, the present invention further provides a cabinet control simulation device. The cabinet control simulation device described below and the cabinet control simulation method described above can be referred to each other.
[0115] See also Figure 3 , Figure 3 This is a structural block diagram of a cabinet control simulation device in an embodiment of the present invention, and the device may include:
[0116] A two-dimensional dimension drawing acquisition module 31 is used to acquire a two-dimensional dimension drawing of each hardware of the cabinet to be simulated;
[0117] A model building module 32 is used to build a three-dimensional model of each hardware according to each two-dimensional dimension diagram to obtain each target three-dimensional model;
[0118] The configuration process simulation module 33 is used to perform configuration process three-dimensional simulation on each target three-dimensional model according to preset on-site hardware installation rules by using a pre-established target simulation framework;
[0119] The three-dimensional simulation display module 34 is used to read the operation control information and perform three-dimensional simulation display on the status information of each hardware according to the operation control information.
[0120] Through the above technical solution, it can be seen that by constructing models of each hardware of the cabinet, and using the target simulation architecture to perform three-dimensional simulation of the configuration process of each target three-dimensional model according to the preset on-site hardware installation rules, it is convenient for trainees to understand the connection between the hardware in the cabinet. And by reading the operation control information, the status information of each hardware is displayed in three dimensions, simulating the operation scene of the real cabinet, so that the trainees can experience the actual operation effect. It avoids damage to the real cabinet, avoids the occurrence of electric shock hazards, improves the safety of training, and greatly improves the training effect.
[0121] In a specific embodiment of the present invention, the model building module 32 includes:
[0122] The model building submodule is used to build three-dimensional models of various hardware according to various two-dimensional dimension drawings using 3dsmax to obtain various basic three-dimensional models;
[0123] The splitting submodule is used to perform UV splitting operations on each basic 3D model using the UV mapping tool in 3dsmax to obtain each splitting result;
[0124] The photo acquisition submodule is used to obtain the real hardware photos corresponding to each hardware;
[0125] The texture generation submodule is used to generate target textures corresponding to each basic 3D model by using PBR rendering technology, combining each split result and each real hardware photo;
[0126] The target three-dimensional model acquisition submodule is used to paste each target map onto the corresponding basic three-dimensional model to obtain each target three-dimensional model.
[0127] In a specific embodiment of the present invention, the model building module 32 may also include:
[0128] The model making submodule is used to paste each target map to the corresponding basic 3D model, and then use LOD technology to display each map obtained by the mapping operation according to the preset display level. Figure 3 dimensional model for LOD model making.
[0129] In a specific embodiment of the present invention, the configuration process simulation module 33 includes:
[0130] The model installation submodule is used to install each target three-dimensional model according to the preset on-site hardware installation rules when the cabinet is in the installation configuration mode during the configuration process;
[0131] The distance acquisition submodule is used to obtain the target distance between the cabinet and the simulated viewing end when the cabinet is in the viewing roaming mode during the configuration process;
[0132] The display level determination submodule is used to determine the target display level corresponding to each hardware in the cabinet according to the target distance;
[0133] The model display submodule is used to select the target three-dimensional models corresponding to each target display level and perform display operations on each target three-dimensional model.
[0134] In a specific embodiment of the present invention, the device may further include:
[0135] A configuration result acquisition module is used to obtain the cabinet configuration result after performing three-dimensional simulation of the configuration process on each target three-dimensional model according to preset on-site hardware installation rules;
[0136] The configuration verification module is used to perform configuration verification operations on the cabinet configuration results.
[0137] In a specific embodiment of the present invention, the three-dimensional simulation display module 34 includes:
[0138] A logic operation submodule, used for sending the operation control information to the logic operation end so that the logic operation end performs a logic operation on the operation control information;
[0139] The three-dimensional simulation display submodule is used to read the status information of each hardware in the two-dimensional hardware diagram of the upper control system, and perform three-dimensional simulation display of each status information; wherein the status information is the information generated by the upper control system according to the logic operation result uploaded by the logic operation terminal.
[0140] In a specific implementation of the present invention, the three-dimensional simulation display module 34 may further include:
[0141] The display conversion submodule is used to convert the status information of each hardware into corresponding LED light status display information after reading the status information of each hardware in the two-dimensional hardware diagram of the upper control system;
[0142] The three-dimensional simulation display submodule is specifically a module for performing three-dimensional simulation display on the status display information of each LED lamp.
[0143] Corresponding to the above method embodiment, see Figure 4 , Figure 4 This is a schematic diagram of a cabinet control simulation device provided by the present invention, and the device may include:
[0144] A memory 41, used for storing computer programs;
[0145] The processor 42, when used to execute the computer program stored in the memory 41, can implement the following steps:
[0146] Obtain two-dimensional dimension drawings of each hardware of the cabinet to be simulated; construct three-dimensional models of each hardware according to each two-dimensional dimension drawing to obtain each target three-dimensional model; use the pre-established target simulation architecture to perform three-dimensional simulation of the configuration process of each target three-dimensional model according to the preset on-site hardware installation rules; read the operation control information, and perform three-dimensional simulation display of the status information of each hardware according to the operation control information.
[0147] For an introduction to the device provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.
[0148] Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:
[0149] Obtain two-dimensional dimension drawings of each hardware of the cabinet to be simulated; construct three-dimensional models of each hardware according to each two-dimensional dimension drawing to obtain each target three-dimensional model; use the pre-established target simulation architecture to perform three-dimensional simulation of the configuration process of each target three-dimensional model according to the preset on-site hardware installation rules; read the operation control information, and perform three-dimensional simulation display of the status information of each hardware according to the operation control information.
[0150] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0151] For an introduction to the computer-readable storage medium provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.
[0152] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the devices, equipment and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0153] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the technical solution and core ideas of the present invention. It should be pointed out that for ordinary technicians in this technical field, the present invention can also be improved and modified without departing from the principles of the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Claims
1. A cabinet control simulation method, characterized in that: include: Obtain the two-dimensional dimension drawing of each hardware of the cabinet to be simulated; Constructing three-dimensional models of the hardware according to the two-dimensional dimension drawings to obtain three-dimensional models of the targets; Using a pre-established target simulation framework, and in accordance with preset on-site hardware installation rules, a configuration process three-dimensional simulation is performed on each of the target three-dimensional models; Get the cabinet configuration results; Performing a configuration verification operation on the cabinet configuration result; The order of configuration verification is to verify whether the hardware device type is missing, verify whether the power distribution is legal, and verify basic wiring. Among them, the order of verifying whether the hardware device type is missing is to verify whether the hardware device type is missing in the order of module backplane, BUS backplane, main control backplane, DC distribution, power supply, AC distribution, and circuit breaker. Reading the operation control information and sending the operation control information to the logic operation end, so that the logic operation end performs a logic operation on the operation control information to determine whether the current operation will cause a fault to occur. If so, analyzing the fault type and reporting the fault type to the upper control system; The status information of each hardware in the two-dimensional hardware diagram of the upper control system is read, and a three-dimensional simulation display is performed on each status information; wherein, the status information is information generated by the upper control system according to the logic operation result uploaded by the logic operation end.
2. The cabinet control simulation method according to claim 1, characterized in that: Constructing a three-dimensional model of each of the hardware according to each of the two-dimensional dimension drawings to obtain each target three-dimensional model includes: Using 3dsmax to construct three-dimensional models of the hardware according to the two-dimensional dimension drawings to obtain basic three-dimensional models; Using the UV mapping tool in the 3dsmax to perform UV splitting operations on each of the basic three-dimensional models to obtain each splitting result; Obtaining real hardware photos corresponding to each of the hardware; Using PBR rendering technology, combining the split results and the real hardware photos, generating target maps corresponding to the basic three-dimensional models; Each of the target maps is pasted onto the corresponding basic three-dimensional model to obtain each of the target three-dimensional models.
3. The cabinet control simulation method according to claim 2, characterized in that: After pasting each of the target maps to the corresponding basic three-dimensional model, the method further includes: LOD technology is used to produce LOD models for each textured 3D model obtained through the texture operation according to the preset display level.
4. The cabinet control simulation method according to claim 3, characterized in that: Performing a three-dimensional simulation of the configuration process of each target three-dimensional model according to the preset on-site hardware installation rules includes: When the cabinet is in the installation configuration mode in the configuration process, performing installation operations on each of the target three-dimensional models according to the preset on-site hardware installation rules; When the cabinet is in the viewing roaming mode during the configuration process, obtaining a target distance between the cabinet and a simulated viewing terminal; Determine the target display level corresponding to each of the hardware in the cabinet according to the target distance; The target three-dimensional models corresponding to the target display levels are selected, and display operations are performed on the target three-dimensional models.
5. The cabinet control simulation method according to claim 1, characterized in that: After reading the status information of each hardware in the two-dimensional hardware diagram of the upper control system, it also includes: Convert the status information of each hardware into corresponding LED light status display information; Performing three-dimensional simulation display on each of the state information includes: The status display information of each LED lamp is displayed in three dimensions by simulation.
6. A cabinet control simulation device, characterized in that: include: A two-dimensional dimension drawing acquisition module is used to obtain a two-dimensional dimension drawing of each hardware of the cabinet to be simulated; A model building module, used to build a three-dimensional model of each of the hardware according to each of the two-dimensional dimension drawings to obtain each target three-dimensional model; A configuration process simulation module, used to perform configuration process three-dimensional simulation on each of the target three-dimensional models according to preset on-site hardware installation rules using a pre-established target simulation architecture; A configuration result acquisition module is used to obtain the cabinet configuration result; A configuration verification module is used to perform configuration verification operations on the cabinet configuration results; the order of configuration verification is to verify whether the hardware device type is missing, to verify whether the power distribution is legal, and to verify basic wiring; wherein, to verify whether the hardware device type is missing is to verify whether the hardware device type is missing in the order of module backplane, BUS backplane, main control backplane, DC distribution, power supply, AC distribution, and circuit breaker; A three-dimensional simulation display module is used to read operation control information and send the operation control information to a logic operation end so that the logic operation end performs a logic operation on the operation control information to determine whether the current operation will cause a fault to occur. If so, the fault type is analyzed and reported to the upper control system; the status information of each hardware in the two-dimensional hardware diagram of the upper control system is read, and a three-dimensional simulation display of each status information is performed; wherein the status information is information generated by the upper control system based on the logic operation result uploaded by the logic operation end.
7. A cabinet control simulation device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the cabinet control simulation method according to any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the cabinet control simulation method according to any one of claims 1 to 5 are implemented.
