Method and device for generating scene temperature cloud map, storage medium and electronic device
By setting up temperature sensors in the computer room and applying their data to the virtual space model to generate a scene temperature cloud map, the problem of difficulty in intuitively grasping the temperature distribution of the computer room in the existing technology is solved, and more efficient temperature monitoring is achieved.
Patent Information
- Application Number
- CN202210163421.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-22
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2042-02-22
AI Technical Summary
It is difficult for the prior art to intuitively grasp the temperature distribution in the computer room, resulting in poor temperature monitoring effect.
By setting a temperature sensor in the computer room to collect temperature data, and applying the color values corresponding to these data to the virtual space model, the scene temperature cloud map is obtained through rendering, and the temperature distribution is visually displayed.
It has enabled technicians to intuitively grasp the temperature distribution in the computer room, and improve the effect and efficiency of temperature monitoring.
Smart Images

Figure CN114529677B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method and device for generating a scene temperature cloud map, a storage medium and an electronic device. Background Art
[0002] Temperature data is one of the important indicators that characterize the operating status of the computer room. Monitoring the temperature data of the computer room is of great significance to ensuring the normal operation of the computer room.
[0003] In the prior art, temperature data in the room is usually collected by arranging temperature sensors inside the computer room. After the temperature data is collected, it is reported to the system platform in the form of alarms or charts for monitoring.
[0004] However, as the power of a single cabinet in a data center continues to increase, the corresponding cooling power of the computer room is also increasing, causing the temperature environment in the computer room to become increasingly complex. Although the existing method can obtain the temperature data transmitted by each sensor in real time, it is unable to perceive the temperature distribution in the computer room, and the temperature monitoring effect is poor. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a method for generating a scene temperature cloud map, which can facilitate technical personnel to intuitively grasp the temperature distribution in the machine room.
[0006] The present invention also provides a device for generating a scene temperature cloud map to ensure the implementation and application of the above method in practice.
[0007] A method for generating a scene temperature cloud map, comprising:
[0008] Collecting temperature data in the computer room through various temperature sensors pre-installed in the computer room;
[0009] Determine a color value corresponding to the temperature data collected by each of the temperature sensors;
[0010] The color value corresponding to the temperature data collected by each temperature sensor is used as the color value of the position corresponding to each temperature sensor in the pre-constructed virtual space model of the computer room; the layout of the virtual objects in the virtual space model is consistent with the layout of the real objects in the computer room;
[0011] Calculating the color values of each intermediate position between each of the positions in the virtual space model according to the color values of each of the positions;
[0012] The virtual space model is rendered based on the color value of each of the positions and the color values of each of the intermediate positions to obtain a scene temperature cloud map of the computer room.
[0013] In the above method, optionally, the step of calculating the color values of each intermediate position between each of the positions in the virtual space model according to the color values of each of the positions includes:
[0014] Determine a plurality of position pairs based on each of the positions; each of the position pairs comprises a first position and a second position;
[0015] For each of the position pairs, at least one intermediate position is selected from each point on the line between the first position and the second position of the position pair, and the color value of the intermediate position is calculated based on the first distance between the intermediate position and the first position in the position pair, the second distance between the intermediate position and the second position in the position pair, the third distance between the first position and the second position, the color value of the first position, and the color value of the second position.
[0016] The above method may optionally include using the color value corresponding to the temperature data collected by the temperature sensor as the color value of the position corresponding to the temperature sensor in the pre-constructed virtual space model of the computer room, including:
[0017] Determining a twin identity of each of the temperature sensors;
[0018] Determine, in the virtual space model, a virtual temperature sensor corresponding to each temperature sensor according to the twin identifier of each temperature sensor;
[0019] The color value corresponding to the temperature data collected by each temperature sensor is used as the color value of the position where the virtual temperature sensor corresponding to each temperature sensor is located in the virtual space model.
[0020] In the above method, optionally, determining the color value corresponding to the temperature data collected by each temperature sensor includes:
[0021] Obtaining a preset configuration file; the configuration file records the color value of each target temperature data;
[0022] Determining whether the temperature data collected by each of the temperature sensors is consistent with the target temperature data;
[0023] If there is temperature data that is consistent with the target temperature data, then the color value of the target temperature data is determined as the color value corresponding to the temperature data;
[0024] If there is temperature data inconsistent with the target temperature data, then when the size of the temperature data is between the two target temperature data, the color value corresponding to the temperature data is calculated according to the temperature difference between the two target temperature data, the temperature difference between the temperature data and the two target temperature data, and the color values corresponding to the two target temperature data respectively; when the temperature data is greater than each of the target temperature data, the color value corresponding to the largest target temperature data among the target temperature data is determined as the color value of the temperature data; when the temperature data is less than each of the target temperature data, the color value corresponding to the smallest target temperature data among the target temperature data is determined as the color value of the temperature data.
[0025] The above method may, optionally, after obtaining the scene temperature cloud map of the equipment room, further include:
[0026] The scene temperature cloud map is displayed on a preset display interface.
[0027] A device for generating a scene temperature cloud map, comprising:
[0028] A collection unit, used to collect temperature data in the computer room through various temperature sensors pre-set in the computer room;
[0029] a determination unit, configured to determine a color value corresponding to the temperature data collected by each of the temperature sensors;
[0030] An execution unit, configured to use a color value corresponding to the temperature data collected by each temperature sensor as a color value of a position corresponding to each temperature sensor in a pre-constructed virtual space model of the computer room; the layout of virtual objects in the virtual space model is consistent with the layout of real objects in the computer room;
[0031] A calculation unit, configured to calculate, according to the color values of the respective positions, the color values of the respective intermediate positions between the respective positions in the virtual space model;
[0032] A rendering unit is used to render the virtual space model based on the color value of each position and the color value of each intermediate position to obtain a scene temperature cloud map of the computer room.
[0033] In the above device, optionally, the computing unit comprises:
[0034] A first determining subunit, configured to determine a plurality of position pairs based on each of the positions; each of the position pairs comprises a first position and a second position;
[0035] A calculation subunit is used to select at least one intermediate position from each point on the line between the first position and the second position of the position pair for each of the position pairs, and calculate the color value of the intermediate position based on a first distance between the intermediate position and the first position in the position pair, a second distance between the intermediate position and the second position in the position pair, a third distance between the first position and the second position, the color value of the first position, and the color value of the second position.
[0036] In the above device, optionally, the execution unit includes:
[0037] A second determination subunit, configured to determine a twin identifier of each of the temperature sensors;
[0038] A third determining subunit, configured to determine a virtual temperature sensor corresponding to each temperature sensor in the virtual space model according to a twin identifier of each temperature sensor;
[0039] The execution subunit is used to use the color value corresponding to the temperature data collected by each temperature sensor as the color value of the position where the virtual temperature sensor corresponding to each temperature sensor is located in the virtual space model.
[0040] A storage medium includes storage instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the method for generating a scene temperature cloud map as described above.
[0041] An electronic device includes a memory and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to perform the method for generating a scene temperature cloud map as described above.
[0042] Based on the above-mentioned implementation of the present invention, a method and device for generating a scene temperature cloud map, a storage medium and an electronic device are provided, the method comprising: collecting temperature data in the machine room through various temperature sensors pre-set in the machine room; determining the color value corresponding to the temperature data collected by each temperature sensor; using the color value corresponding to the temperature data collected by each temperature sensor as the color value of the position corresponding to each temperature sensor in the pre-constructed virtual space model of the machine room; the layout of the virtual objects in the virtual space model is consistent with the layout of the real objects in the machine room; according to the color value of each position, the color value of each intermediate position between each position in the virtual space model is calculated; based on the color value of each position and the color value of each intermediate position, the virtual space model is rendered to obtain the scene temperature cloud map of the machine room. It is convenient for technicians to intuitively grasp the temperature distribution in the machine room. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] 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 embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0044] Figure 1 A method flow chart of a method for generating a scene temperature cloud map provided by the present invention;
[0045] Figure 2 A flowchart of a process for calculating the color values of each intermediate position between each position in a virtual space model provided by the present invention;
[0046] Figure 3 A schematic diagram of a temperature monitoring process provided by the present invention;
[0047] Figure 4 An example diagram of a scene temperature cloud map provided by the present invention;
[0048] Figure 5 A schematic diagram of the structure of a device for generating a scene temperature cloud map provided by the present invention;
[0049] Figure 6 The present invention provides a schematic structural diagram of an electronic device. DETAILED DESCRIPTION
[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0052] An embodiment of the present invention provides a method for generating a scene temperature cloud map, which can be applied to electronic devices. The method flow chart of the method is as follows: Figure 1 As shown, specifically including:
[0053] S101: collecting temperature data in the computer room through various temperature sensors pre-installed in the computer room.
[0054] In this embodiment, the computer room may be a data center computer room, and each temperature sensor may be disposed on the top of the computer room; in some embodiments, each temperature sensor may be on the same plane.
[0055] S102: Determine a color value corresponding to the temperature data collected by each temperature sensor.
[0056] In this embodiment, different temperature data corresponds to different color values RGBA, and the color value is composed of values of multiple channels, which may include the value of the red R channel, the value of the green G channel, the value of the blue B channel, and the value of the transparent channel A.
[0057] Optionally, the color value corresponding to each temperature data may be determined according to a preset configuration file.
[0058] S103: Using the color value corresponding to the temperature data collected by each temperature sensor as the color value of the position corresponding to each temperature sensor in the pre-constructed virtual space model of the computer room; the layout of the virtual objects in the virtual space model is consistent with the layout of the real objects in the computer room.
[0059] In this embodiment, a virtual space model of the computer room can be constructed based on the CampusBuilder tool and the actual non-graphic layout in the computer room. The position corresponding to the temperature sensor in the virtual space model can be the position of the virtual temperature sensor corresponding to the temperature sensor in the virtual space model, and the position can be a pixel position.
[0060] Optionally, the virtual space model is consistent with the size, shape, appearance material, etc. of the computer room.
[0061] S104: Calculate the color values of each intermediate position between each of the positions in the virtual space model according to the color values of each of the positions.
[0062] In this embodiment, the color value corresponding to the middle position can be obtained by linear difference calculation based on the color value of each position, the distance between each position, and the distance from each position to the middle position.
[0063] Optionally, the intermediate position may be a position point between two positions.
[0064] S105: Rendering the virtual space model based on the color value of each of the positions and the color values of each of the intermediate positions to obtain a scene temperature cloud map of the computer room.
[0065] In this embodiment, the virtual space model can be rendered by a rendering engine based on the color value of each position and the color value of each intermediate position to obtain a scene temperature cloud map of the computer room. The scene temperature cloud map contains color information of each pixel in the virtual space model. Different color information represents different temperature information. Different temperature zones can be marked in the scene temperature cloud map according to different color ranges. For example, the blue area in the scene temperature cloud map can be marked as a low temperature zone, the green area can be marked as a normal temperature zone, and the red area can be marked as a low temperature zone.
[0066] By applying the method provided in the embodiment of the present invention, it is possible for technicians to intuitively grasp the temperature distribution in the equipment room.
[0067] In an embodiment of the present invention, based on the above implementation process, optionally, the process of calculating the color values of each intermediate position between each position in the virtual space model according to the color value of each position is as follows: Figure 2 As shown, specifically including:
[0068] S201: Determine a plurality of position pairs based on the respective positions; each of the position pairs includes a first position and a second position.
[0069] In this embodiment, each position may be combined with other different positions to form different position pairs, and one position may be included in multiple position pairs.
[0070] S202: For each of the position pairs, select at least one intermediate position from each point between the first position and the second position of the position pair, and calculate the color value of the intermediate position based on a first distance between the intermediate position and the first position in the position pair, a second distance between the intermediate position and the second position in the position pair, a third distance between the first position and the second position, the color value of the first position, and the color value of the second position.
[0071] In this embodiment, in one position pair, the first position Q, the middle position O and the second position P may be on the same straight line.
[0072] Optionally, the coordinates of the first position may be Q(x1, y1), the coordinates of the second position P may be P(x2, y2), and the coordinates of the middle position O may be (x, y); the first distance may be The second distance can be The third distance can be
[0073] Furthermore, a linear difference method may be used to calculate the color value of the middle position; a feasible method of calculating the color value of the middle position according to the first distance D(QO), the second distance D(OP), the third distance D(QP), the color value of the first position, and the color value of the second position is as follows:
[0074] O(r)=Q(r)+(Q(r)-P(r))*D(QO) / D(QP);
[0075] O(g)=Q(g)+(Q(g)-P(g))*D(QO) / D(QP);
[0076] O(b)=Q(b)+(Q(b)-P(b))*D(QO) / D(QP);
[0077] O(a)=Q(a)+(Q(a)-P(a))*D(QO) / D(QP);
[0078] O(rgba)=(O(r), O(g), O(b), O(a)).
[0079] Among them, O(r) is the value of the R channel of the middle position O, O(g) is the value of the G channel of the middle position O, O(b) is the value of the B channel of the middle position O, O(a) is the value of the A channel of the middle position O, and O(rgba) is the color value of the middle position O.
[0080] By using the method provided in this embodiment, the color value of each intermediate position can be accurately calculated, so that the temperature distribution of each intermediate position can be determined.
[0081] In an embodiment provided by the present invention, based on the above implementation process, optionally, using the color value corresponding to the temperature data collected by the temperature sensor as the color value of the position corresponding to the temperature sensor in the pre-constructed virtual space model of the computer room includes:
[0082] Determining a twin identity of each of the temperature sensors;
[0083] Determine, in the virtual space model, a virtual temperature sensor corresponding to each temperature sensor according to the twin identifier of each temperature sensor;
[0084] The color value corresponding to the temperature data collected by each temperature sensor is used as the color value of the position where the virtual temperature sensor corresponding to each temperature sensor is located in the virtual space model.
[0085] In this embodiment, the virtual objects in the virtual space model are pre-bound with the real objects in the computer room through the twin identifier, and the virtual object corresponding to the real object can be determined in the virtual space model through the twin identifier of the real object.
[0086] In an embodiment provided by the present invention, based on the above implementation process, optionally, determining the color value corresponding to the temperature data collected by each temperature sensor includes:
[0087] Obtaining a preset configuration file; the configuration file records the color value of each target temperature data;
[0088] Determining whether the temperature data collected by each of the temperature sensors is consistent with the target temperature data;
[0089] If there is temperature data that is consistent with the target temperature data, then the color value of the target temperature data is determined as the color value corresponding to the temperature data;
[0090] If there is temperature data inconsistent with the target temperature data, then when the size of the temperature data is between the two target temperature data, the color value corresponding to the temperature data is calculated according to the temperature difference between the two target temperature data, the temperature difference between the temperature data and the two target temperature data, and the color values corresponding to the two target temperature data respectively; when the temperature data is greater than each of the target temperature data, the color value corresponding to the largest target temperature data among the target temperature data is determined as the color value of the temperature data; when the temperature data is less than each of the target temperature data, the color value corresponding to the smallest target temperature data among the target temperature data is determined as the color value of the temperature data.
[0091] In this embodiment, the configuration file may record the color value of each target temperature data, and different temperature data corresponds to different pixel colors, as shown in Table 1:
[0092] Temperature(℃) Color value (hexadecimal) 15 #0000ff 20 #05C9FA 25 #00FF66 30 #AEFF00 35 #66FF00 40 #FF4200
[0093] Table 1
[0094] The target temperature data can be 15°, 20°, 25°, 30°, 35°, 40°, etc. If the temperature data is less than 15°, the color value corresponding to 15° is used by default. If the temperature data is greater than 40°, the temperature value of 40° is used by default. The color corresponding to the intermediate temperature value is calculated using the linear difference calculation method.
[0095] In an embodiment provided by the present invention, based on the above implementation process, optionally, after obtaining the scene temperature cloud map of the computer room, the method further includes:
[0096] The scene temperature cloud map is displayed on a preset display interface.
[0097] The method for generating a scene temperature cloud map provided by the embodiment of the present invention can be applied to the temperature monitoring of a data center computer room. In the actual application process, for example Figure 3As shown, it is a flow chart of a temperature monitoring process provided by an embodiment of the present invention. Specifically, the CampusBuilder tool can be used to realize a one-to-one restoration of the physical space in the virtual space, and the layout in the virtual space is set according to the position of the temperature sensor in the real physical space. Through the twin ID, the relationship between the virtual space object and the physical space object is bound. The temperature data of the physical space temperature sensor is collected in real time through the collector. Turn on the 3D monitoring system so that the 3D monitoring system obtains the collected data in real time and transmits it to the calculation module. The calculation module calculates and outputs the coordinates of the virtual space temperature sensor and the corresponding color value, and finally draws a 3D virtual space temperature cloud map in real time through the rendering module. After receiving the shutdown of the monitoring system, turn off the 3D monitoring system.
[0098] In some embodiments, temperature sensors can be evenly arranged on the top of the data center room according to the size of the room, and can be appropriately densely arranged in places where cabinets are concentrated.
[0099] In this embodiment, the temperature sensor is linked to the data collection device to collect temperature sensor data in real time. The 3D virtual space diagram of the room is drawn according to the actual size of the computer room through the CampusBuilder tool. The drawn 3D model diagram of the room should be consistent with the size, shape, and appearance material of the real room. According to the actual temperature sensor position of the room, the temperature and humidity sensors are placed in the 3D virtual space to the corresponding position in the real space through the CampusBuilder layout tool, and the objects in the 3D scene are bound to the real objects through the twin ID. The room temperature setting value represents the overall default temperature value of the room, which is presented on the view interface as the default icon of the temperature field map background, and the system defaults to 20°. Get the sensor temperature module, collect the room temperature data values collected by the sensors arranged in the computer room in real time, and the collected values are automatically reported to the system. After the 3D system obtains the data collected in real time by the sensor temperature module, according to the unique ID of the device, the position of the sensor in the 3D scene can be obtained in 3D. According to the distance between the two temperature points, the temperature value corresponding to the middle point is obtained by linear difference calculation. After calculating the color values corresponding to each position in the room, the scene temperature cloud map is drawn in real time by calling the T3D engine rendering API, such as Figure 4 As shown, it is an example diagram of a scene temperature cloud map provided by an embodiment of the present invention, in which different colors are used to represent the temperature distribution in the computer room.
[0100] By applying the method provided in the embodiment of the present invention, the layout and scenario in the scene are restored through 3D visualization technology, so that the temperature conditions in the real world can be completely restored in a completely simulated digital space, allowing technicians to more intuitively grasp the temperature distribution status information of the computer room.
[0101] and Figure 1Corresponding to the method described above, the embodiment of the present invention further provides a device for generating a scene temperature cloud map, for Figure 1 The specific implementation of the method in the embodiment of the present invention is that the scene temperature cloud map generation device provided by the embodiment of the present invention can be applied to electronic devices, and its structural schematic diagram is as shown in FIG. Figure 5 As shown, specifically including:
[0102] The collecting unit 501 is used to collect the temperature data in the computer room through various temperature sensors pre-set in the computer room;
[0103] A determination unit 502, configured to determine a color value corresponding to the temperature data collected by each temperature sensor;
[0104] The execution unit 503 is used to use the color value corresponding to the temperature data collected by each temperature sensor as the color value of the position corresponding to each temperature sensor in the pre-constructed virtual space model of the computer room; the layout of the virtual objects in the virtual space model is consistent with the layout of the real objects in the computer room;
[0105] A calculation unit 504, configured to calculate, according to the color values of the respective positions, the color values of the respective intermediate positions between the respective positions in the virtual space model;
[0106] The rendering unit 505 is used to render the virtual space model based on the color value of each position and the color value of each intermediate position to obtain a scene temperature cloud map of the computer room.
[0107] In an embodiment provided by the present invention, based on the above solution, optionally, the calculation unit 504 includes:
[0108] A first determining subunit, configured to determine a plurality of position pairs based on each of the positions; each of the position pairs comprises a first position and a second position;
[0109] A calculation subunit is used to select at least one intermediate position from each point on the line between the first position and the second position of the position pair for each of the position pairs, and calculate the color value of the intermediate position based on a first distance between the intermediate position and the first position in the position pair, a second distance between the intermediate position and the second position in the position pair, a third distance between the first position and the second position, the color value of the first position, and the color value of the second position.
[0110] In an embodiment provided by the present invention, based on the above solution, optionally, the execution unit 503 includes:
[0111] A second determination subunit, configured to determine a twin identifier of each of the temperature sensors;
[0112] A third determining subunit, configured to determine a virtual temperature sensor corresponding to each temperature sensor in the virtual space model according to a twin identifier of each temperature sensor;
[0113] The execution subunit is used to use the color value corresponding to the temperature data collected by each temperature sensor as the color value of the position where the virtual temperature sensor corresponding to each temperature sensor is located in the virtual space model.
[0114] In an embodiment of the present invention, based on the above solution, optionally, the determining unit 502 is configured to:
[0115] Obtaining a preset configuration file; the configuration file records the color value of each target temperature data;
[0116] Determining whether the temperature data collected by each of the temperature sensors is consistent with the target temperature data;
[0117] If there is temperature data that is consistent with the target temperature data, then the color value of the target temperature data is determined as the color value corresponding to the temperature data;
[0118] If there is temperature data inconsistent with the target temperature data, then when the size of the temperature data is between the two target temperature data, the color value corresponding to the temperature data is calculated according to the temperature difference between the two target temperature data, the temperature difference between the temperature data and the two target temperature data, and the color values corresponding to the two target temperature data respectively; when the temperature data is greater than each of the target temperature data, the color value corresponding to the largest target temperature data among the target temperature data is determined as the color value of the temperature data; when the temperature data is less than each of the target temperature data, the color value corresponding to the smallest target temperature data among the target temperature data is determined as the color value of the temperature data.
[0119] In an embodiment provided by the present invention, based on the above solution, optionally, the device for generating the scene temperature cloud map further includes:
[0120] The display unit is used to display the scene temperature cloud map on a preset display interface.
[0121] The specific principles and execution processes of each unit and module in the scene temperature cloud map generation device disclosed in the above embodiment of the present invention are the same as the scene temperature cloud map generation method disclosed in the above embodiment of the present invention. Please refer to the corresponding parts of the scene temperature cloud map generation method provided in the above embodiment of the present invention, and will not be repeated here.
[0122] An embodiment of the present invention further provides a storage medium, which includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned method for generating the scene temperature cloud map.
[0123] The embodiment of the present invention further provides an electronic device, the structural diagram of which is shown in FIG. Figure 6 As shown, it specifically includes a memory 601 and one or more instructions 602, wherein the one or more instructions 602 are stored in the memory 601 and are configured to be executed by one or more processors 603 to perform the following operations:
[0124] Collecting temperature data in the computer room through various temperature sensors pre-installed in the computer room;
[0125] Determine a color value corresponding to the temperature data collected by each of the temperature sensors;
[0126] The color value corresponding to the temperature data collected by each temperature sensor is used as the color value of the position corresponding to each temperature sensor in the pre-constructed virtual space model of the computer room; the layout of the virtual objects in the virtual space model is consistent with the layout of the real objects in the computer room;
[0127] Calculating the color values of each intermediate position between each of the positions in the virtual space model according to the color values of each of the positions;
[0128] The virtual space model is rendered based on the color value of each of the positions and the color values of each of the intermediate positions to obtain a scene temperature cloud map of the computer room.
[0129] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0130] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0131] For the convenience of description, the above device is described as being divided into various units according to their functions. Of course, when implementing the present invention, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0132] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention or certain parts of the embodiments.
[0133] The above is a detailed introduction to a method for generating a scene temperature cloud map provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for generating a scene temperature cloud map, characterized in that: include: Collecting temperature data in the computer room through various temperature sensors pre-installed in the computer room; Determine a color value corresponding to the temperature data collected by each of the temperature sensors; Using the color value corresponding to the temperature data collected by each temperature sensor as the color value of the position corresponding to each temperature sensor in the pre-constructed virtual space model of the computer room; The layout of the virtual objects in the virtual space model is consistent with the layout of the real objects in the computer room; Calculating the color values of each intermediate position between each of the positions in the virtual space model according to the color values of each of the positions; Rendering the virtual space model based on the color value of each position and the color value of each intermediate position to obtain a scene temperature cloud map of the computer room; The step of calculating the color values of each intermediate position between each of the positions in the virtual space model according to the color values of each of the positions comprises: determining a plurality of position pairs based on each of the positions; each of the position pairs comprises a first position and a second position; for each of the position pairs, selecting at least one intermediate position from each point on a line connecting the first position and the second position of the position pair, and calculating the color value of the intermediate position according to a first distance between the intermediate position and the first position in the position pair, a second distance between the intermediate position and the second position in the position pair, a third distance between the first position and the second position, the color value of the first position, and the color value of the second position; The method of using the color value corresponding to the temperature data collected by each temperature sensor as the color value of the position corresponding to each temperature sensor in the pre-built virtual space model of the computer room includes: determining the twin identifier of each temperature sensor; determining the virtual temperature sensor corresponding to each temperature sensor in the virtual space model according to the twin identifier of each temperature sensor; and using the color value corresponding to the temperature data collected by each temperature sensor as the color value of the position where the virtual temperature sensor corresponding to each temperature sensor is located in the virtual space model.
2. The method according to claim 1, characterized in that The determining of the color value corresponding to the temperature data collected by each temperature sensor includes: Obtaining a preset configuration file; the configuration file records the color value of each target temperature data; Determining whether the temperature data collected by each of the temperature sensors is consistent with the target temperature data; If there is temperature data that is consistent with the target temperature data, then the color value of the target temperature data is determined as the color value corresponding to the temperature data; If there is temperature data inconsistent with the target temperature data, then when the size of the temperature data is between the two target temperature data, the color value corresponding to the temperature data is calculated according to the temperature difference between the two target temperature data, the temperature difference between the temperature data and the two target temperature data, and the color values corresponding to the two target temperature data respectively; when the temperature data is greater than each of the target temperature data, the color value corresponding to the largest target temperature data among the target temperature data is determined as the color value of the temperature data; when the temperature data is less than each of the temperature data, the color value corresponding to the smallest target temperature data among the target temperature data is determined as the color value of the temperature data.
3. The method according to claim 1, characterized in that After obtaining the scene temperature cloud map of the equipment room, the method further includes: The scene temperature cloud map is displayed on a preset display interface.
4. A device for generating a scene temperature cloud map, characterized in that: include: A collection unit, used to collect temperature data in the computer room through various temperature sensors pre-set in the computer room; a determination unit, configured to determine a color value corresponding to the temperature data collected by each of the temperature sensors; An execution unit, configured to use a color value corresponding to the temperature data collected by each temperature sensor as a color value of a position corresponding to each temperature sensor in a pre-constructed virtual space model of the computer room; The layout of the virtual objects in the virtual space model is consistent with the layout of the real objects in the computer room; A calculation unit, configured to calculate, according to the color values of the respective positions, the color values of the respective intermediate positions between the respective positions in the virtual space model; A rendering unit, configured to render the virtual space model based on the color value of each of the positions and the color value of each of the intermediate positions, to obtain a scene temperature cloud map of the computer room; The calculation unit specifically includes: a first determining subunit and a calculation subunit, wherein the first determining subunit is used to determine a plurality of position pairs based on each of the positions; each of the position pairs includes a first position and a second position; the calculation subunit is used to select at least one intermediate position from each point on a line connecting the first position and the second position of the position pair for each of the position pairs, and calculate the color value of the intermediate position according to a first distance between the intermediate position and the first position in the position pair, a second distance between the intermediate position and the second position in the position pair, a third distance between the first position and the second position, a color value of the first position, and a color value of the second position; The execution unit specifically includes: a second determination subunit, a third determination subunit and an execution subunit, the second determination subunit is used to determine the twin identifier of each of the temperature sensors; the third determination subunit is used to determine the virtual temperature sensor corresponding to each of the temperature sensors in the virtual space model according to the twin identifier of each of the temperature sensors; the execution subunit is used to use the color value corresponding to the temperature data collected by each of the temperature sensors as the color value of the position of the virtual temperature sensor corresponding to each of the temperature sensors in the virtual space model.
5. A storage medium, characterized in that: The storage medium includes storage instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the method for generating a scene temperature cloud map according to any one of claims 1 to 3.
6. An electronic device, characterized in that: The system comprises a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by one or more processors to perform the method for generating a scene temperature cloud map as claimed in any one of claims 1 to 3.
Citation Information
Patent Citations
Scene object information presentation method and system
CN105786178A
Machine room temperature cloud chart drawing method and device
CN111190793A