CN116524136B - Computer room three-dimensional visualization method, system, electronic equipment and readable storage medium - Google Patents

Computer room three-dimensional visualization method, system, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN116524136B
CN116524136B CN202310817340.2A CN202310817340A CN116524136B CN 116524136 B CN116524136 B CN 116524136B CN 202310817340 A CN202310817340 A CN 202310817340A CN 116524136 B CN116524136 B CN 116524136B
Authority
CN
China
Prior art keywords
machine room
real
dimensional
picture
time data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310817340.2A
Other languages
Chinese (zh)
Other versions
CN116524136A (en
Inventor
周高登
陈立军
桂伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Barda Technology Co ltd
Original Assignee
Wuhan Barda Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Barda Technology Co ltd filed Critical Wuhan Barda Technology Co ltd
Priority to CN202310817340.2A priority Critical patent/CN116524136B/en
Publication of CN116524136A publication Critical patent/CN116524136A/en
Application granted granted Critical
Publication of CN116524136B publication Critical patent/CN116524136B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts

Abstract

The embodiment of the invention discloses a three-dimensional visualization method, a system, electronic equipment and a readable storage medium for a machine room, wherein the method comprises the following steps: a three-dimensional model of the machine room is built in advance by adopting a three.js technology; the machine room is provided with a plurality of cabinets, and a plurality of electronic devices are arranged in the cabinets; acquiring real-time data of a machine room; the real-time data comprise real-time operation data of a plurality of electronic devices and real-time environment data of a machine room; transmitting the real-time data and the three-dimensional model to a Web end; mapping the real-time data to the three-dimensional model in the Web end to display a three-dimensional picture of the machine room; the three-dimensional picture comprises at least one of a real-time picture of the cabinet in the machine room, a real-time picture of the electronic equipment in the cabinet and a real-time environment picture of the machine room, so that the equipment in the cabinet can be subjected to real-time three-dimensional visual display, and the use experience of a user is greatly improved.

Description

Computer room three-dimensional visualization method, system, electronic equipment and readable storage medium
Technical Field
The invention relates to the technical field of data visualization, in particular to a three-dimensional visualization method, a system, electronic equipment and a readable storage medium for a machine room.
Background
In the related art, the cabinet can be visually displayed in a browser in a two-dimensional diagram or a three-dimensional diagram. However, the two-dimensional diagram is abstract, and a user cannot imagine the layout and the position of the cabinet in the machine room according to the plan diagram; the three-dimensional graph generally adopts a d3.Js (Data-Driven Documents) technology to draw a rough frame of the cabinet, so that clear visual display cannot be performed on the internal equipment, the operation is relatively simple, and real-time monitoring cannot be performed on the equipment.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides the three-dimensional visualization method, the system, the electronic equipment and the readable storage medium for the machine room, which can clearly and visually display equipment in the cabinet and greatly improve the use experience of users.
In order to solve the above problems, in a first aspect, an embodiment of the present invention provides a three-dimensional visualization method for a machine room, including:
a three-dimensional model of the machine room is built in advance by adopting a three.js technology; the machine room is provided with a plurality of cabinets, and a plurality of electronic devices are arranged in the cabinets;
acquiring real-time data of the machine room; the real-time data comprise real-time operation data of a plurality of electronic devices and real-time environment data of the machine room;
Transmitting the real-time data and the three-dimensional model to a Web end;
mapping the real-time data to the three-dimensional model in the Web end so as to display a three-dimensional picture of the machine room; the three-dimensional picture comprises at least one of a real-time picture of the cabinet in the machine room, a real-time picture of the electronic equipment in the cabinet and a real-time environment picture of the machine room.
In a second aspect, an embodiment of the present invention further provides a three-dimensional visualization system for a machine room, including:
the building unit is used for building a three-dimensional model of the machine room by adopting a three.js technology in advance; the machine room is provided with a plurality of cabinets, and a plurality of electronic devices are arranged in the cabinets;
the acquisition unit is used for acquiring real-time data of the machine room; the real-time data comprise real-time operation data of a plurality of electronic devices and real-time environment data of the machine room;
the sending unit is used for sending the real-time data and the three-dimensional model to a Web end;
the display unit is used for mapping the real-time data into the three-dimensional model in the Web end so as to display a three-dimensional picture of the machine room; the three-dimensional picture comprises at least one of a real-time picture of the cabinet in the machine room, a real-time picture of the electronic equipment in the cabinet and a real-time environment picture of the machine room.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the computer program when executed by the processor implements the three-dimensional visualization method of a machine room according to the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, where the computer program when executed by a processor causes the processor to perform the three-dimensional visualization method of a machine room described in the first aspect.
The embodiment of the invention provides a three-dimensional visualization method, a system, electronic equipment and a readable storage medium of a machine room, wherein a three-dimensional model of the machine room is built in advance by adopting a three-dimensional technology, after real-time data of the machine room are acquired, the real-time data and the three-dimensional model are sent to a Web end, and the real-time data are mapped into the three-dimensional model in the Web end to display a three-dimensional picture of the machine room, so that at least one of a cabinet, electronic equipment in the cabinet and a real-time environment of the machine room can be displayed in real time in the three-dimensional picture of the machine room, real-time three-dimensional visualization display of equipment in the cabinet is realized, and the use experience of a user is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a three-dimensional visualization method for a machine room provided by an embodiment of the invention;
fig. 2 is another flow chart of a three-dimensional visualization method for a machine room according to an embodiment of the present invention;
fig. 3 is another flow chart of a three-dimensional visualization method for a machine room according to an embodiment of the present invention;
fig. 4 is another flow chart of a three-dimensional visualization method for a machine room according to an embodiment of the present invention;
fig. 5 is another flow chart of a three-dimensional visualization method for a machine room according to an embodiment of the present invention;
fig. 6 is another flow chart of a three-dimensional visualization method for a machine room according to an embodiment of the present invention;
fig. 7 is another flow chart of a three-dimensional visualization method for a machine room according to an embodiment of the present invention;
FIG. 8 is a schematic block diagram of a machine room three-dimensional visualization system provided by an embodiment of the present invention;
Fig. 9 is a schematic block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
The machine room three-dimensional visualization method provided by the embodiment of the application is applied to the terminal equipment, and the machine room three-dimensional visualization method is executed through application software installed in the terminal equipment. The terminal equipment can be electronic equipment such as a desktop computer, a notebook computer, a tablet computer or a mobile phone.
It should be noted that, the application scenario of the foregoing embodiment is merely an example, and the services and scenarios described in the embodiments of the present application are for more clearly describing the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application, and those skilled in the art can know that, with the evolution of the system and the appearance of the new service scenario, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems. The following will describe in detail.
The following description of the embodiments is not intended to limit the preferred embodiments. The three-dimensional visualization method of the machine room is described in detail below.
Referring to fig. 1, fig. 1 is a flow chart of a three-dimensional visualization method for a machine room according to an embodiment of the application.
As shown in FIG. 1, the method includes the following steps S110 to S140.
S110, constructing a three-dimensional model of a machine room by adopting a three.js technology in advance; the machine room is provided with a plurality of cabinets, and a plurality of electronic devices are arranged in the cabinets;
s120, acquiring real-time data of the machine room; the real-time data comprise real-time operation data of a plurality of electronic devices and real-time environment data of the machine room;
s130, sending the real-time data and the three-dimensional model to a Web end;
s140, mapping the real-time data to the three-dimensional model in the Web end so as to display a three-dimensional picture of the machine room; the three-dimensional picture comprises at least one of a real-time picture of the cabinet in the machine room, a real-time picture of the electronic equipment in the cabinet and a real-time environment picture of the machine room.
The cabinet referred to herein is an apparatus for mounting and organizing computer equipment, which is typically a self-contained metallic structure, consisting of one or more removable panels and one or more internal shelves. The cabinet may house various electronic devices, such as servers, switches, routers, storage devices, etc., as well as various accessories, such as power supplies, fans, cables, etc.
The three.js is a WebGL engine, can write 3D programs by adopting JavaScript, can directly run GPU-driven games and graphic drivers to be applied to a browser, and can provide a large number of characteristics and APIs to draw 3D scenes and be applied to the browser as WebGL third party libraries written by the three.js as JavaScript. The JavaScript is a script language running on the webpage end.
In this embodiment, the three-dimensional model of the machine room is built by adopting the three-dimensional technology in advance, that is, if only the three-dimensional model of the machine room is subjected to 3D visual display, only the specific frame in which the cabinet is placed in the machine room and the specific frame in which the equipment is placed in the cabinet are displayed, and the real-time simulation display of the cabinet and the electronic equipment in the machine room cannot be displayed on the Web end, so that after the three-dimensional model of the machine room is built by adopting the three-dimensional technology, the real-time data of the machine room also needs to be obtained, the real-time data and the three-dimensional model of the machine room are both sent to the Web end, and the real-time data is fused into the three-dimensional model of the machine room in the Web end, so that at least one of the real-time picture of the cabinet in the machine room, the real-time picture of the electronic equipment in the corresponding cabinet and the picture of the real-time environment of the machine room can be displayed on the Web end, and the use experience of a user is greatly improved.
The real-time picture of the cabinet in the machine room can be a real-time picture of the electronic equipment which is partially or completely placed in the cabinet, the real-time picture of the electronic equipment in the cabinet can be a real-time picture of the operation of the partial or complete electronic equipment in the machine room, the real-time environment picture of the machine room is at least one display picture of the current humidity, the current temperature and the current smoke feeling of the machine room, and the specific real-time display of the real-time picture can be displayed in real time at the Web end according to the acquired real-time data.
In other inventive embodiments, as shown in fig. 2, step S110 includes steps S111 and S112.
S111, acquiring equipment information for constructing the three-dimensional model; the equipment information comprises position information and structure information, wherein the position information is data information of the cabinet, the electronic equipment and accessories for running the electronic equipment in the machine room, and the structure information is data information for forming the cabinet, the electronic equipment and the accessories;
s112, processing the position information and the structure information by adopting a three.js technology to obtain the three-dimensional model.
In this embodiment, a machine room scene may be created in advance, and after determining the number of cabinets, electronic devices and accessories in the machine room, and determining the placement positions of each cabinet, electronic device and accessory in the machine room, specific structural information, such as an appearance, an internal space, and a required device slot position in the cabinet, of each cabinet, electronic device and accessory is collected, so that device information for constructing a three-dimensional model of the machine room may be obtained, and thus the three-dimensional model of the machine room may be drawn by using a three.js technology.
In other inventive embodiments, as shown in fig. 3, step S111 includes steps S1111, S1112, and S1113.
S1111, acquiring the type, brand, purpose and number of the electronic equipment; the type of the electronic equipment comprises a switch and a virtual machine;
s1112, determining structural information of the electronic equipment according to the type, brand and purpose of the electronic equipment;
s1113, determining the position information of the electronic equipment according to the number of the electronic equipment.
In this embodiment, the placement position of each cabinet in the machine room can be determined according to the size of the machine room, and the structural difference between each cabinet in the machine room and between the accessories required by each cabinet is small, which is just that the electronic equipment placed in each cabinet has large difference, so that the structural information of the cabinet and the accessories can be directly obtained from the third party library. Each electronic device in the machine room has a fixed type, brand, use and number, the structural information of each electronic device can be obtained by acquiring the type, brand, use and number of each electronic device, and the number of each electronic device is usually the number after the electronic device is placed in the cabinet, so that the position information of each electronic device can be determined directly through the number of the electronic device.
In other inventive embodiments, as shown in fig. 4, step S130 includes steps S131, S132, and S133.
S131, determining the number of the cabinets, the electronic equipment and the accessories in the machine room;
s132, updating the three-dimensional model according to the number of the cabinet, the electronic equipment and the accessories to obtain an updated three-dimensional model;
and S133, sending the real-time data and the updated three-dimensional model to the Web terminal.
In this embodiment, the three-dimensional model of the machine room is built by adopting the three-dimensional technology in advance, only one standard three-dimensional model of the machine room is built, when the layout of the machine room is changed, namely, the cabinet, the electronic equipment and the accessories in the machine room are changed, the pre-built three-dimensional model is required to be updated to form the three-dimensional model matched with the real-time data of the machine room, so that the three-dimensional model is required to be updated once before the real-time data is mapped into the three-dimensional model at the Web end, the number of the cabinet, the electronic equipment and the accessories in the machine room can be determined through the real-time data, the three-dimensional model is updated after the number of the cabinet, the electronic equipment and the accessories in the machine room is determined, and finally, the real-time data and the updated three-dimensional model are sent to the Web end to display the three-dimensional picture of the machine room at the Web end.
In other inventive embodiments, as shown in fig. 5, step S133 includes steps S1331, S1332, and S1333.
S1331, classifying the real-time data to obtain classified real-time data;
s1332, updating the three-dimensional model according to the classified real-time data to obtain a plurality of updated three-dimensional models;
s1333, sending the classified real-time data and the updated three-dimensional models to the Web terminal.
Specifically, the application can also perform three-dimensional visual monitoring on multiple machine rooms, that is, the real-time data of the machine rooms can be real-time data of the multiple machine rooms, so when three-dimensional visual display is performed on each machine room, the real-time data of each machine room needs to be classified in advance to determine the real-time data of each machine room, namely, the classified real-time data, and the actual conditions of each machine room are different, so that the three-dimensional model corresponding to each machine room also has variability, the three-dimensional model of each machine room also needs to be updated through the classified real-time data, and further, the three-dimensional model matched with each machine room, namely, the multiple updated three-dimensional models, are obtained, finally, the classified real-time data and the multiple updated three-dimensional models are sent to the Web end, and fusion is performed on the Web end, so that the three-dimensional picture of each machine room can be displayed in real time.
In other inventive embodiments, as shown in fig. 6, step S140 includes steps S141 and S142.
S141, if alarm information exists in the real-time data, determining a machine room of the alarm information;
s142, mapping the real-time data of the machine room of the alarm information into the three-dimensional model of the machine room of the alarm information so as to display the three-dimensional picture of the machine room of the alarm information.
Specifically, when three-dimensional visual monitoring is performed on a plurality of machine rooms, the machine rooms with alarm information are displayed on the Web end in advance, namely, when the acquired real-time data of the machine rooms have the alarm information, the machine rooms with the alarm information need to be determined in advance, then the real-time data of the machine rooms with the alarm information are mapped into a three-dimensional model of the machine rooms with the alarm information on the Web end, so that three-dimensional pictures of the machine rooms with the alarm information are preferentially displayed on the Web end, and further users can be reminded to perform timely processing. The alarm information comprises information such as abnormal operation of the electronic equipment, abnormal current environment of the machine room and the like. When the alarm information in the machine room is detected, the machine room can be monitored by setting a corresponding threshold value. Meanwhile, the application can also interact data with other systems, such as CMDB, monitoring system, etc. through API interface.
In other embodiments of the invention, as shown in fig. 7, step S140 is followed by steps S150, S160 and S170.
S150, if a first switching instruction for displaying the three-dimensional picture of the machine room is received, displaying the three-dimensional picture of the machine room matched with the first switching instruction on the Web end;
s160, if a second switching instruction for displaying the three-dimensional picture of the switch is received, displaying the three-dimensional picture of the switch matched with the second switching instruction on the Web terminal; the three-dimensional picture of the switch comprises at least one of a three-dimensional structure picture and a labeling picture of the switch, and the labeling picture of the switch comprises at least one of basic information and identification information of the switch;
s170, if a third switching instruction for displaying the three-dimensional picture of the virtual machine is received, displaying the three-dimensional picture of the virtual machine matched with the third switching instruction on the Web end; the three-dimensional picture of the virtual machine comprises at least one of a three-dimensional structure picture and a labeling picture of the virtual machine, and the labeling picture of the virtual machine comprises at least one of basic information and identification information of the virtual machine.
In this embodiment, the Web terminal may display three-dimensional images of different machine rooms in real time, may display three-dimensional images of different cabinets in the machine room, and may display three-dimensional images of each electronic device in the cabinet. The first switching instruction is instruction information for switching the current screen of the Web end to a three-dimensional screen of a corresponding machine room, for example, the three-dimensional screen of the machine room with the number 021, the three-dimensional screen of the machine room with the number 002, or the three-dimensional screen of the machine room with the number 022 can be displayed on the Web end through the first switching instruction. The second switching instruction and the third switching instruction are instruction information for switching the current picture of the Web end to a three-dimensional picture of the electronic equipment in the cabinet corresponding to the machine room, wherein the second switching instruction is mainly used for switching the current picture of the Web end to the three-dimensional picture of the electronic equipment serving as a switch, the third switching instruction is mainly used for switching the current picture of the Web end to the three-dimensional picture of the electronic equipment serving as a virtual machine, the three-dimensional picture of the switch comprises at least one of a three-dimensional structure picture and a labeling picture of the switch, the labeling picture of the switch comprises at least one of basic information and identification information of the switch, the three-dimensional picture of the virtual machine comprises at least one of the three-dimensional structure picture and the labeling picture of the virtual machine, and the labeling picture of the virtual machine comprises at least one of basic information and identification information of the virtual machine. The labeling pictures of the virtual machine and the switch are pictures for displaying the corresponding basic information and the alarm information.
In the machine room three-dimensional visualization method provided by the embodiment of the invention, a three-dimensional model of the machine room is built by adopting a three.js technology in advance; the machine room is provided with a plurality of cabinets, and a plurality of electronic devices are arranged in the cabinets; acquiring real-time data of the machine room; the real-time data comprise real-time operation data of a plurality of electronic devices and real-time environment data of the machine room; transmitting the real-time data and the three-dimensional model to a Web end; mapping the real-time data to the three-dimensional model in the Web end so as to display a three-dimensional picture of the machine room; the three-dimensional picture comprises at least one of a real-time picture of the cabinet in the machine room, a real-time picture of the electronic equipment in the cabinet and a real-time environment picture of the machine room. The invention adopts a visual mode, so that a user can easily know the position, model, type, contained equipment, equipment details and monitoring information of the cabinet, and simultaneously, the states of the equipment such as alarming and the like can be displayed more intuitively, thereby not only improving the use experience of the user, but also being more convenient for the user to acquire the required information.
The embodiment of the invention also provides a machine room three-dimensional visualization system 100, which is used for executing any embodiment of the machine room three-dimensional visualization method.
Specifically, referring to fig. 8, fig. 8 is a schematic block diagram of a machine room three-dimensional visualization system 100 according to an embodiment of the present invention.
As shown in fig. 8, the machine room three-dimensional visualization system 100 includes: a construction unit 110, an acquisition unit 120, a transmission unit 130 and a display unit 140.
A construction unit 110, configured to construct a three-dimensional model of the machine room by adopting a three.js technology in advance; the machine room is provided with a plurality of cabinets, and a plurality of electronic devices are arranged in the cabinets;
an acquiring unit 120, configured to acquire real-time data of the machine room; the real-time data comprise real-time operation data of a plurality of electronic devices and real-time environment data of the machine room;
a sending unit 130, configured to send the real-time data and the three-dimensional model to a Web terminal;
the display unit 140 is configured to map the real-time data to the three-dimensional model in the Web terminal, so as to display a three-dimensional picture of the machine room; the three-dimensional picture comprises at least one of a real-time picture of the cabinet in the machine room, a real-time picture of the electronic equipment in the cabinet and a real-time environment picture of the machine room.
The machine room three-dimensional visualization system 100 provided by the embodiment of the invention is used for executing the construction of the three-dimensional model of the machine room by adopting the three.js technology in advance; the machine room is provided with a plurality of cabinets, and a plurality of electronic devices are arranged in the cabinets; acquiring real-time data of the machine room; the real-time data comprise real-time operation data of a plurality of electronic devices and real-time environment data of the machine room; transmitting the real-time data and the three-dimensional model to a Web end; mapping the real-time data to the three-dimensional model in the Web end so as to display a three-dimensional picture of the machine room; the three-dimensional picture comprises at least one of a real-time picture of the cabinet in the machine room, a real-time picture of the electronic equipment in the cabinet and a real-time environment picture of the machine room.
It should be noted that, as will be clearly understood by those skilled in the art, the specific implementation process of the machine room three-dimensional visualization system 100 and each unit may refer to the corresponding description in the foregoing method embodiments, and for convenience and brevity of description, the description is omitted here.
The machine room three-dimensional visualization system described above may be implemented in the form of a computer program that can be run on an electronic device as shown in fig. 9.
Referring to fig. 9, fig. 9 is a schematic block diagram of an electronic device according to an embodiment of the present invention.
Referring to fig. 9, the device 500 includes a processor 502, a memory, and a network interface 505, which are connected by a system bus 501, wherein the memory may include a storage medium 503 and an internal memory 504.
The storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, causes the processor 502 to perform a machine room three-dimensional visualization method.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall device 500.
The internal memory 504 provides an environment for the execution of a computer program 5032 in the non-volatile storage medium 503, which computer program 5032, when executed by the processor 502, causes the processor 502 to perform a machine room three-dimensional visualization method.
The network interface 505 is used for network communication, such as providing for transmission of data information, etc. It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely a block diagram of a portion of the structure associated with the present inventive arrangements and is not limiting of the apparatus 500 to which the present inventive arrangements are applied, and that a particular apparatus 500 may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to execute a computer program 5032 stored in a memory to perform the following functions: a three-dimensional model of the machine room is built in advance by adopting a three.js technology; the machine room is provided with a plurality of cabinets, and a plurality of electronic devices are arranged in the cabinets; acquiring real-time data of the machine room; the real-time data comprise real-time operation data of a plurality of electronic devices and real-time environment data of the machine room; transmitting the real-time data and the three-dimensional model to a Web end; mapping the real-time data to the three-dimensional model in the Web end so as to display a three-dimensional picture of the machine room; the three-dimensional picture comprises at least one of a real-time picture of the cabinet in the machine room, a real-time picture of the electronic equipment in the cabinet and a real-time environment picture of the machine room.
In one embodiment, when the processor 502 implements the three-dimensional model of the machine room previously constructed by using the three.js technology, the following steps are specifically implemented: acquiring equipment information for constructing the three-dimensional model; the equipment information comprises position information and structure information, wherein the position information is data information of the cabinet, the electronic equipment and accessories for running the electronic equipment in the machine room, and the structure information is data information for forming the cabinet, the electronic equipment and the accessories; and processing the position information and the structure information by adopting a three.js technology to obtain the three-dimensional model.
In one embodiment, the processor 502, when implementing the obtaining the device information for constructing the three-dimensional model, specifically implements the following steps: acquiring the type, brand, purpose and number of the electronic equipment; the type of the electronic equipment comprises a switch and a virtual machine; determining structural information of the electronic equipment according to the type, brand and purpose of the electronic equipment; and determining the position information of the electronic equipment according to the number of the electronic equipment.
In an embodiment, when the processor 502 implements the sending the real-time data and the three-dimensional model to the Web terminal, the following steps are specifically implemented: determining the number of the cabinets, the electronic equipment and the accessories in the machine room; updating the three-dimensional model according to the number of the cabinet, the electronic equipment and the accessories to obtain an updated three-dimensional model; and sending the real-time data and the updated three-dimensional model to the Web terminal.
In an embodiment, when the processor 502 implements the sending the real-time data and the updated three-dimensional model to the Web terminal, the following steps are specifically implemented: classifying the real-time data to obtain classified real-time data; updating the three-dimensional model according to the classified real-time data to obtain a plurality of updated three-dimensional models; and sending the classified real-time data and the plurality of updated three-dimensional models to the Web terminal.
In an embodiment, when the processor 502 maps the real-time data to the three-dimensional model in the Web terminal to display a three-dimensional image of the machine room, the following steps are specifically implemented: if the real-time data contains the alarm information, determining a machine room of the alarm information; and mapping the real-time data of the machine room of the alarm information into a three-dimensional model of the machine room of the alarm information so as to display a three-dimensional picture of the machine room of the alarm information.
In an embodiment, after the processor 502 maps the real-time data to the three-dimensional model in the Web terminal to display a three-dimensional image of the machine room, the following steps are specifically implemented: if a first switching instruction for displaying the three-dimensional picture of the machine room is received, displaying the three-dimensional picture of the machine room matched with the first switching instruction on the Web end; if a second switching instruction for displaying the three-dimensional picture of the switch is received, displaying the three-dimensional picture of the switch matched with the second switching instruction on the Web end; the three-dimensional picture of the switch comprises at least one of a three-dimensional structure picture and a labeling picture of the switch, and the labeling picture of the switch comprises at least one of basic information and identification information of the switch; if a third switching instruction for displaying the three-dimensional picture of the virtual machine is received, displaying the three-dimensional picture of the virtual machine matched with the third switching instruction on the Web end; the three-dimensional picture of the virtual machine comprises at least one of a three-dimensional structure picture and a labeling picture of the virtual machine, and the labeling picture of the virtual machine comprises at least one of basic information and identification information of the virtual machine.
Those skilled in the art will appreciate that the embodiment of the apparatus 500 shown in fig. 9 is not limiting of the specific construction of the apparatus 500, and in other embodiments, the apparatus 500 may include more or less components than illustrated, or certain components may be combined, or a different arrangement of components. For example, in some embodiments, the device 500 may include only the memory and the processor 502, and in such embodiments, the structure and the function of the memory and the processor 502 are consistent with the embodiment shown in fig. 9, and will not be described herein.
It should be appreciated that in an embodiment of the invention, the processor 502 may be a central processing unit (Central Processing Unit, CPU), the processor 502 may also be other general purpose processors 502, digital signal processors 502 (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor 502 may be the microprocessor 502 or the processor 502 may be any conventional processor 502 or the like.
In another embodiment of the present invention, a computer storage medium is also provided. The storage medium may be a nonvolatile computer-readable storage medium or a volatile storage medium. The storage medium stores a computer program 5032, wherein the computer program 5032 when executed by the processor 502 performs the steps of: a three-dimensional model of the machine room is built in advance by adopting a three.js technology; the machine room is provided with a plurality of cabinets, and a plurality of electronic devices are arranged in the cabinets; acquiring real-time data of the machine room; the real-time data comprise real-time operation data of a plurality of electronic devices and real-time environment data of the machine room; transmitting the real-time data and the three-dimensional model to a Web end; mapping the real-time data to the three-dimensional model in the Web end so as to display a three-dimensional picture of the machine room; the three-dimensional picture comprises at least one of a real-time picture of the cabinet in the machine room, a real-time picture of the electronic equipment in the cabinet and a real-time environment picture of the machine room.
In an embodiment, when the processor executes the program instruction to implement the pre-building of the three-dimensional model of the machine room by adopting the three.js technology, the following steps are specifically implemented: acquiring equipment information for constructing the three-dimensional model; the equipment information comprises position information and structure information, wherein the position information is data information of the cabinet, the electronic equipment and accessories for running the electronic equipment in the machine room, and the structure information is data information for forming the cabinet, the electronic equipment and the accessories; and processing the position information and the structure information by adopting a three.js technology to obtain the three-dimensional model.
In one embodiment, when the processor executes the program instructions to obtain the device information for constructing the three-dimensional model, the following steps are specifically implemented: acquiring the type, brand, purpose and number of the electronic equipment; the type of the electronic equipment comprises a switch and a virtual machine; determining structural information of the electronic equipment according to the type, brand and purpose of the electronic equipment; and determining the position information of the electronic equipment according to the number of the electronic equipment.
In an embodiment, when the processor executes the program instructions to implement the sending the real-time data and the three-dimensional model to the Web terminal, the following steps are specifically implemented: determining the number of the cabinets, the electronic equipment and the accessories in the machine room; updating the three-dimensional model according to the number of the cabinet, the electronic equipment and the accessories to obtain an updated three-dimensional model; and sending the real-time data and the updated three-dimensional model to the Web terminal.
In an embodiment, when the processor executes the program instructions to implement the sending the real-time data and the updated three-dimensional model to the Web terminal, the following steps are specifically implemented: classifying the real-time data to obtain classified real-time data; updating the three-dimensional model according to the classified real-time data to obtain a plurality of updated three-dimensional models; and sending the classified real-time data and the plurality of updated three-dimensional models to the Web terminal.
In an embodiment, when the processor executes the program instructions to map the real-time data to the three-dimensional model in the Web terminal to display a three-dimensional image of the machine room, the processor specifically implements the following steps: if the real-time data contains the alarm information, determining a machine room of the alarm information; and mapping the real-time data of the machine room of the alarm information into a three-dimensional model of the machine room of the alarm information so as to display a three-dimensional picture of the machine room of the alarm information.
In an embodiment, after the processor executes the program instructions to map the real-time data to the three-dimensional model in the Web terminal to display a three-dimensional image of the machine room, the following steps are specifically implemented: if a first switching instruction for displaying the three-dimensional picture of the machine room is received, displaying the three-dimensional picture of the machine room matched with the first switching instruction on the Web end; if a second switching instruction for displaying the three-dimensional picture of the switch is received, displaying the three-dimensional picture of the switch matched with the second switching instruction on the Web end; the three-dimensional picture of the switch comprises at least one of a three-dimensional structure picture and a labeling picture of the switch, and the labeling picture of the switch comprises at least one of basic information and identification information of the switch; if a third switching instruction for displaying the three-dimensional picture of the virtual machine is received, displaying the three-dimensional picture of the virtual machine matched with the third switching instruction on the Web end; the three-dimensional picture of the virtual machine comprises at least one of a three-dimensional structure picture and a labeling picture of the virtual machine, and the labeling picture of the virtual machine comprises at least one of basic information and identification information of the virtual machine.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus, device and unit described above may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein. Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the units is merely a logical function division, there may be another division manner in actual implementation, or units having the same function may be integrated into one unit, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices, or elements, or may be an electrical, mechanical, or other form of connection.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment of the present invention.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units may be stored in a storage medium if implemented in the form of software functional units and sold or used as stand-alone products. Based on such understanding, the technical solution of the present invention may be essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing an apparatus 500 (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (8)

1. The three-dimensional visualization method for the machine room is characterized by comprising the following steps of:
a three-dimensional model of the machine room is built in advance by adopting a three.js technology; the machine room is provided with a plurality of cabinets, and a plurality of electronic devices are arranged in the cabinets; the three-dimensional model is a standard three-dimensional model of the machine room;
acquiring real-time data of a plurality of machine rooms; the real-time data comprise real-time operation data of a plurality of electronic devices and real-time environment data of a plurality of machine rooms;
transmitting the real-time data and the three-dimensional model to a Web end; specifically, determining the number of cabinets, electronic equipment and accessories in each machine room; updating the three-dimensional model according to the number of the cabinet, the electronic equipment and the accessories to obtain an updated three-dimensional model; classifying the real-time data to obtain classified real-time data; the classified real-time data are real-time data of each machine room; updating the updated three-dimensional model again according to the classified real-time data to obtain a plurality of updated three-dimensional models; the classified real-time data and the updated three-dimensional models are sent to the Web end; wherein, one updated three-dimensional model corresponds to one machine room;
Mapping the classified real-time data to a corresponding updated three-dimensional model in the Web end so as to display a three-dimensional picture of each machine room; the three-dimensional picture comprises at least one of a real-time picture of the cabinet in the machine room, a real-time picture of the electronic equipment in the cabinet and a real-time environment picture of the machine room.
2. The method for three-dimensional visualization of a machine room according to claim 1, wherein the constructing a three-dimensional model of the machine room by using three.js technology in advance comprises:
acquiring equipment information for constructing the three-dimensional model; the equipment information comprises position information and structure information, wherein the position information is data information of the cabinet, the electronic equipment and accessories for running the electronic equipment in the machine room, and the structure information is data information for forming the cabinet, the electronic equipment and the accessories;
and processing the position information and the structure information by adopting a three.js technology to obtain the three-dimensional model.
3. The machine room three-dimensional visualization method according to claim 2, wherein the obtaining the device information for constructing the three-dimensional model includes:
Acquiring the type, brand, purpose and number of the electronic equipment; the type of the electronic equipment comprises a switch and a virtual machine;
determining structural information of the electronic equipment according to the type, brand and purpose of the electronic equipment;
and determining the position information of the electronic equipment according to the number of the electronic equipment.
4. The method for three-dimensional visualization of machine room according to claim 1, wherein mapping the classified real-time data to a corresponding updated three-dimensional model in the Web terminal to display a three-dimensional picture of each machine room comprises:
if the real-time data contains the alarm information, determining a machine room of the alarm information;
and mapping the real-time data of the machine room of the alarm information into a three-dimensional model of the machine room of the alarm information so as to display a three-dimensional picture of the machine room of the alarm information.
5. The machine room three-dimensional visualization method according to claim 1, wherein after mapping the classified real-time data into the corresponding updated three-dimensional model in the Web terminal to display the three-dimensional picture of each machine room, further comprising:
if a first switching instruction for displaying the three-dimensional picture of the machine room is received, displaying the three-dimensional picture of the machine room matched with the first switching instruction on the Web end;
If a second switching instruction for displaying the three-dimensional picture of the switch is received, displaying the three-dimensional picture of the switch matched with the second switching instruction on the Web end; the three-dimensional picture of the switch comprises at least one of a three-dimensional structure picture and a labeling picture of the switch, and the labeling picture of the switch comprises at least one of basic information and identification information of the switch;
if a third switching instruction for displaying the three-dimensional picture of the virtual machine is received, displaying the three-dimensional picture of the virtual machine matched with the third switching instruction on the Web end; the three-dimensional picture of the virtual machine comprises at least one of a three-dimensional structure picture and a labeling picture of the virtual machine, and the labeling picture of the virtual machine comprises at least one of basic information and identification information of the virtual machine.
6. A machine room three-dimensional visualization system, comprising:
the building unit is used for building a three-dimensional model of the machine room by adopting a three.js technology in advance; the machine room is provided with a plurality of cabinets, and a plurality of electronic devices are arranged in the cabinets; the three-dimensional model is a standard three-dimensional model of the machine room;
The acquisition unit is used for acquiring real-time data of a plurality of machine rooms; the real-time data comprise real-time operation data of a plurality of electronic devices and real-time environment data of a plurality of machine rooms;
the sending unit is used for sending the real-time data and the three-dimensional model to a Web end; specifically, determining the number of cabinets, electronic equipment and accessories in each machine room; updating the three-dimensional model according to the number of the cabinet, the electronic equipment and the accessories to obtain an updated three-dimensional model; classifying the real-time data to obtain classified real-time data; the classified real-time data are real-time data of each machine room; updating the updated three-dimensional model again according to the classified real-time data to obtain a plurality of updated three-dimensional models; the classified real-time data and the updated three-dimensional models are sent to the Web end; wherein, one updated three-dimensional model corresponds to one machine room;
the display unit is used for mapping the classified real-time data into the corresponding updated three-dimensional model in the Web end so as to display the three-dimensional picture of the machine room; the three-dimensional picture comprises at least one of a real-time picture of the cabinet in the machine room, a real-time picture of the electronic equipment in the cabinet and a real-time environment picture of the machine room.
7. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps in the machine room three-dimensional visualization method of any one of claims 1 to 5 when the computer program is executed.
8. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, implements the steps in the machine room three-dimensional visualization method of any one of claims 1 to 5.
CN202310817340.2A 2023-07-05 2023-07-05 Computer room three-dimensional visualization method, system, electronic equipment and readable storage medium Active CN116524136B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310817340.2A CN116524136B (en) 2023-07-05 2023-07-05 Computer room three-dimensional visualization method, system, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310817340.2A CN116524136B (en) 2023-07-05 2023-07-05 Computer room three-dimensional visualization method, system, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN116524136A CN116524136A (en) 2023-08-01
CN116524136B true CN116524136B (en) 2023-10-10

Family

ID=87406814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310817340.2A Active CN116524136B (en) 2023-07-05 2023-07-05 Computer room three-dimensional visualization method, system, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN116524136B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597219A (en) * 2019-10-28 2019-12-20 国网安徽省电力有限公司黄山供电公司 Intelligent machine room system
US10769718B1 (en) * 2020-02-19 2020-09-08 Nicom Living LLC Method, medium, and system for live preview via machine learning models
CN112073474A (en) * 2020-08-19 2020-12-11 深圳市国鑫恒运信息安全有限公司 Js-based intelligent data center management method and system
CN112685195A (en) * 2020-12-21 2021-04-20 交控科技股份有限公司 Unattended machine room management method, server and system based on micro-service technology
CN114282021A (en) * 2021-12-20 2022-04-05 湖北智信优服信息技术有限公司 Three-dimensional big data visualization system
CN114356269A (en) * 2022-01-07 2022-04-15 中国工商银行股份有限公司 Screen picture switching method and device, electronic equipment and storage medium
CN114662714A (en) * 2022-02-25 2022-06-24 南京邮电大学 Machine room operation and maintenance management system and method based on AR equipment
CN115857863A (en) * 2022-12-21 2023-03-28 深圳市康必达控制技术有限公司 Machine room configuration split-screen rendering method and device based on monitoring software and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9064213B2 (en) * 2013-02-05 2015-06-23 International Business Machines Corporation Dynamic model-based analysis of data centers

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597219A (en) * 2019-10-28 2019-12-20 国网安徽省电力有限公司黄山供电公司 Intelligent machine room system
US10769718B1 (en) * 2020-02-19 2020-09-08 Nicom Living LLC Method, medium, and system for live preview via machine learning models
CN112073474A (en) * 2020-08-19 2020-12-11 深圳市国鑫恒运信息安全有限公司 Js-based intelligent data center management method and system
CN112685195A (en) * 2020-12-21 2021-04-20 交控科技股份有限公司 Unattended machine room management method, server and system based on micro-service technology
CN114282021A (en) * 2021-12-20 2022-04-05 湖北智信优服信息技术有限公司 Three-dimensional big data visualization system
CN114356269A (en) * 2022-01-07 2022-04-15 中国工商银行股份有限公司 Screen picture switching method and device, electronic equipment and storage medium
CN114662714A (en) * 2022-02-25 2022-06-24 南京邮电大学 Machine room operation and maintenance management system and method based on AR equipment
CN115857863A (en) * 2022-12-21 2023-03-28 深圳市康必达控制技术有限公司 Machine room configuration split-screen rendering method and device based on monitoring software and terminal

Also Published As

Publication number Publication date
CN116524136A (en) 2023-08-01

Similar Documents

Publication Publication Date Title
CN106980510B (en) Window self-adaption method and device of player
US20160217616A1 (en) Method and System for Providing Virtual Display of a Physical Environment
CN108721898B (en) Frame rate determination method and apparatus, storage medium, and electronic apparatus
US20170163958A1 (en) Method and device for image rendering processing
CN107704154B (en) Navigation bar transition method and system
US20130044137A1 (en) Selective map marker aggregation
JP2014106681A5 (en)
CN108920037B (en) Method and device for displaying virtual three-dimensional space of house
CN111324275B (en) Broadcasting method and device for elements in display picture
CN109395387B (en) Three-dimensional model display method and device, storage medium and electronic device
KR20150080430A (en) Method for displaying a content through either a head mounted display device or a display device, corresponding head mounted display device and computer program product
CN113014934A (en) Product display method, product display device, computer equipment and storage medium
CN111228801A (en) Rendering method and device of game scene, storage medium and processor
CN109045694A (en) Virtual scene display method, apparatus, terminal and storage medium
US20220215581A1 (en) Method for displaying three-dimensional augmented reality
CN109660508A (en) Data visualization method, electronic device, computer equipment and storage medium
CN113504964B (en) Page component height determination method, page component height determination device, computer equipment and storage medium
CN111179438A (en) AR model dynamic fixing method and device, electronic equipment and storage medium
CN113064689A (en) Scene recognition method and device, storage medium and electronic equipment
CN116524136B (en) Computer room three-dimensional visualization method, system, electronic equipment and readable storage medium
CN114693893B (en) Data processing method and device, electronic equipment and storage medium
CN108919951B (en) Information interaction method and device
CN110929187A (en) Method and device for visually displaying threat events, storage device and computer equipment
CN110719415A (en) Video image processing method and device, electronic equipment and computer readable medium
CN113946221A (en) Eye driving control method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant