Intelligent cabinet monitoring system based on color code sensor
Real-time monitoring of server indicators through color mark sensors and graphic recognition algorithms solves the problems of low efficiency and poor accuracy of traditional monitoring methods, enables efficient and accurate server status monitoring and fault warning, and reduces the risk of business interruption.
Patent Information
- Application Number
- CN202410790177.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-19
AI Technical Summary
Traditional server monitoring methods have low efficiency, slow response speed, and are easily affected by human factors. Especially when the number of servers increases and distributed deployment occurs, it is difficult to achieve accurate real-time monitoring and fault warning.
The color mark sensor is used to monitor the server indicator lights. Through high-resolution color recognition and graphic recognition algorithms, the color changes of the indicator lights are captured in real time, the status is automatically analyzed and alarm notifications are triggered to achieve accurate monitoring of server status and fault warning.
It improves the efficiency and response speed of server management, reduces the risk of business interruption due to failures, ensures the accuracy and timeliness of status information, reduces the need for manual intervention, and is easy to expand and maintain.
Smart Images

Figure CN118363822B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an intelligent cabinet monitoring system based on a color mark sensor, belonging to the technical field of server status monitoring. Background Art
[0002] In the field of information technology, servers are increasingly used in various enterprises and institutions, carrying critical business and massive amounts of data. Therefore, ensuring the stable operation of servers and timely discovering and handling potential problems are of great significance to ensuring business continuity and preventing data loss.
[0003] However, traditional server monitoring methods often rely on manual inspections and simple status indicator light checks, which are inefficient, slow to respond, and easily affected by human factors. At the same time, with the increase in the number of servers and distributed deployment, the limitations of traditional monitoring methods are becoming more and more obvious.
[0004] There are several technologies that can monitor the running status of servers in real time and provide fault warnings:
[0005] 1. Server monitoring solution based on out-of-band management port:
[0006] The out-of-band management port is a dedicated interface on a rack-mounted server that is used to remotely manage and monitor the server. This interface provides a network connection independent of the device's main data channel, allowing server administrators to remotely manage it over the network without occupying the device's main data transmission channel. The out-of-band management port is usually used to manage and configure the device when the device fails or the network is congested.
[0007] Usually, the out-of-band management port of the server provides Agent and Trap services based on the SNMP protocol. The monitoring system can actively collect the server's SNMP data through the client, or passively receive abnormal status information pushed from the server through the SNMP Trap receiver.
[0008] This technical solution requires the establishment of a dedicated out-of-band management and operation network. At the same time, the monitoring system must also be deployed in this network to achieve mutual access with the out-of-band management address of the monitored server.
[0009] 2. Monitoring solutions based on infrared sensing or image recognition:
[0010] Use infrared sensors or image recognition technology to monitor the status of server indicators. Infrared sensors can determine the status of indicators by detecting infrared signals emitted by them, while image recognition technology can identify the color or blinking pattern of indicators by analyzing their images.
[0011] However, due to possible data conversion or interpretation errors in out-of-band management and monitoring solutions based on the SNMP protocol, the accuracy of status information is sometimes not guaranteed.
[0012] However, infrared sensors can only be deployed in front of or on the side of the cabinet because they occupy a large space. Their scanning line of sight is easily blocked, which affects their accuracy.
[0013] Based on this, the present invention is proposed. Summary of the invention
[0014] The technical problem solved by the present invention is real-time monitoring of the server's operating status and fault warning. By adopting a color code sensor, the present invention can accurately identify the color changes of the server indicator light and convert this information into the server's operating status data. This allows the system administrator or remote monitoring center to understand the server's health status and performance in real time, thereby promptly discovering potential problems or faults and taking appropriate measures to intervene and repair them. The present invention improves the efficiency and response speed of server management and reduces the risk of business interruption caused by server failures.
[0015] Specifically, the present invention solves the technical problem in the following ways:
[0016] Timeliness: The color sensor can monitor the color changes of the server indicator lights in a timely manner to ensure that any status changes can be captured and processed in a short time.
[0017] Accuracy: The color mark sensor has high resolution and color recognition capabilities, which can accurately identify indicator lights of different colors, avoiding misjudgment and omissions.
[0018] Automation: Through preset rules and algorithms, the controller can automatically parse sensor data, determine server status, and trigger alarm notifications when anomalies are detected, reducing the need for human intervention.
[0019] Scalability: The monitoring module of the present invention can be easily integrated into the existing cabinet and server management system, and supports the expansion deployment of multiple servers and multiple cabinets.
[0020] The specific technical solutions are as follows:
[0021] The intelligent cabinet monitoring system based on color mark sensor is used to monitor the indicator lights on the servers. All servers are installed in the cabinets, and the cabinets include cabinet doors. The intelligent cabinet monitoring system based on color mark sensor includes a color mark sensor and a monitoring module for scanning the indicator lights of the servers on each cabinet.
[0022] The monitoring module is used to configure the server information of each cabinet and the running track of the color mark sensor. The monitoring module controls the color mark sensor to scan the indicator light of the server; when an abnormality is found in the indicator light, an alarm message is generated and pushed.
[0023] As a further improvement, the server information includes the number of servers, server locations, and indicator light locations.
[0024] As a further improvement, a graphic recognition algorithm is used to identify the server location and the indicator light location, and the graphic recognition algorithm includes the following steps:
[0025] Step a: The equipment room maintenance personnel take photos of the cabinet and obtain at least three photo samples;
[0026] Step b: The maintenance personnel of the computer room upload three randomly selected photos to the monitoring module, and locate the positions of the server and the indicator light through the monitoring module;
[0027] Step c: The monitoring module calculates the running track of the color mark sensor and presents the calculation result to the computer room maintenance personnel in a graphical form. The computer room maintenance personnel confirms the running track, and the configuration is completed.
[0028] As a further improvement, in step b, the monitoring module locates the server position and the indicator light position through an intelligent recognition algorithm, and the intelligent recognition algorithm includes the following steps:
[0029] Step b1: compare the similarity of the three photo samples by using the cosine similarity algorithm. If the similarity reaches or exceeds the similarity threshold, the photo sample is determined to be a valid photo.
[0030] Step b2: Locate the server using the Canny edge detection algorithm
[0031] Use a Gaussian filter to smooth the effective photo to obtain a smoothed image; calculate the gradient of the smoothed image, use non-maximum suppression technology to refine the edge, and compare the gradient of the current pixel with the gradient of its adjacent pixels along the gradient direction. If the gradient of the current pixel is not the largest, set it to zero, otherwise keep its value;
[0032] Use the double threshold technology to determine the true edge, set the first edge threshold high value and the first edge threshold low value, if the gradient of a pixel point is greater than the first edge threshold high value, then the point is considered to be an edge point; if the gradient of a pixel point is less than the first edge threshold low value, it is excluded as an edge point; if the gradient of a pixel point is between the first edge threshold high value and the first edge threshold low value, it is regarded as a potential edge point and needs further judgment;
[0033] Finally, the identified edge points are connected by an edge tracking algorithm; for potential edge points, if they are connected to the identified edge points, they are considered edge points; otherwise, they are considered non-edge points;
[0034] thresh_high_1 = peak_gray_level + k×std_dev_1;
[0035] thresh_low_1 = peak_gray_level - L×std_dev_1;
[0036] Wherein, thresh_high_1 is the high value of the first edge threshold, thresh_low_1 is the low value of the first edge threshold; peak_gray_level is the gray level of the peak of the black background in the histogram, std_dev_1 is the standard deviation of the gray level near the peak of the black background in the histogram, and k and L are empirical parameters;
[0037] Step b3: Use the Canny edge detection algorithm to find the area where the photoelectric brightness changes in the three valid photos, and identify the position of the server indicator light in the valid photos;
[0038] thresh_high_2 = peak_brightness + P×std_dev_2;
[0039] thresh_low_2 = peak_brightness - Q×std_dev_2;
[0040] Among them, thresh_high_2 is the second edge threshold high value, thresh_low_2 is the second edge threshold low value, std_dev_2 is the standard deviation of the brightness level near the peak in the brightness histogram, and P and Q are empirical parameters.
[0041] As a further improvement, in step b1, the similarity threshold is 0.85.
[0042] As a further improvement, in step b1, the specific steps of the cosine similarity algorithm are as follows:
[0043] Select two photo samples to be compared, grayscale, resize and normalize the photo samples to obtain two first pictures, and then calculate the inner product of the vectors:
[0044] The feature vectors of the two first images are vector A and vector B respectively, and the inner product of vector A and vector B is calculated;
[0045] ,
[0046] Where A is vector A, B is vector B, a i are the components of vector A, b i are the components of vector B, i represents different components, and N is the total number of components;
[0047] For a vector A, its norm |A| is:
[0048] , |A| is the norm of vector A;
[0049] For a vector B, its norm |B| is:
[0050] , |B| is the norm of vector B;
[0051] Calculate cosine similarity :
[0052] .
[0053] Further improvement, k=9.33, L=3.33.
[0054] Further improvement, P = 0.06, Q = 1.61.
[0055] As a further improvement, a transverse track for limiting the moving direction of the color mark sensor is set up at the U position of the cabinet door facing the cabinet, and a longitudinal track for limiting the moving direction of the color mark sensor is set up on one side of the cabinet door.
[0056] As a further improvement, the monitoring module controls the movement of the color mark sensor according to a predefined movement trajectory, including the following steps:
[0057] Step s1, resetting the position of the color mark sensor to the top of the longitudinal track;
[0058] Step s2, the monitoring module controls the color mark sensor to move to the indicator light position of the first server and scans;
[0059] Step s3: The color mark sensor moves to the next server and scans the position of the indicator light of the server.
[0060] The color sensor can accurately and quickly identify the color changes of the indicator lights of the server, and by converting these changes into specific status information, it can realize real-time monitoring of the server's operating status and fault warning. This technology not only improves the efficiency and accuracy of monitoring, but also reduces maintenance costs, bringing great convenience to server management.
[0061] The monitoring module based on color mark sensor can be easily integrated into the existing IT infrastructure and achieve seamless connection with other monitoring systems, thus providing strong support for enterprises to build a more comprehensive and efficient server monitoring system.
[0062] Compared with other server status monitoring solutions, the present invention has the following advantages:
[0063] 1. The color sensor is directly aimed at the server indicator light, which can accurately and quickly identify subtle changes in color. This avoids possible data conversion or interpretation errors in indirect monitoring methods (such as out-of-band management monitoring solutions based on the SNMP protocol) and ensures the accuracy of status information.
[0064] 2. The color mark sensor is deployed in the cabinet and slides back and forth in front of the server panel through a slide rail to periodically scan the status of the server indicator light. Compared with the infrared sensor, the color mark sensor has better accuracy.
[0065] 3. Since the color mark sensor is constantly scanning the server's status indicator light, it is able to detect and respond when the indicator light status changes; this provides near real-time monitoring capabilities, which is essential for timely detection and handling of server failures.
[0066] 4. Good independence. The present invention does not rely on the support of the server operating system or specific software because it directly monitors the physical indicator light. This means that even if the server software fails or cannot be accessed, the monitoring module can still provide valid status information.
[0067] 5. Easy to deploy and maintain. Color mark sensors are usually small and easy to install and deploy in existing cabinets. The slide rails required for the solution can be directly installed on the cabinet door without changing the physical structure of the cabinet itself. In addition, since the monitoring module is independent of the server software, its maintenance is relatively simple and does not require frequent software updates or configuration adjustments.
[0068] 6. Compared with some dedicated hardware monitoring solutions, the monitoring module based on color sensor has lower cost. At the same time, due to its high efficiency and accuracy, it can save a lot of maintenance costs and avoid potential business losses in long-term operation.
[0069] 7. Good flexibility. The color code sensor can be easily customized to adapt to different types of server indicators and deployment environments. In addition, the output signal of the monitoring module can also be configured as needed to facilitate integration with various existing monitoring systems.
[0070] In summary, the present invention provides an efficient, reliable and cost-effective intelligent cabinet monitoring system based on a color code sensor by directly, accurately and in real time monitoring the color changes of the server indicator lights. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] Figure 1 This is a schematic diagram of the distribution of the transverse track, the longitudinal track, the color mark sensor and the cabinet door of the present invention;
[0072] Figure 2 is the trend line of the mean similarity of the photos in Table 1;
[0073] Figure 3 It is a curve trend chart between k and edge loss rate;
[0074] Figure 4 It is a curve trend chart between k and edge misrecognition rate;
[0075] Figure 5 It is a curve trend chart between L and edge loss rate;
[0076] Figure 6 It is a curve trend chart between L and edge misrecognition rate;
[0077] Figure 7 It is a curve trend chart between P and edge loss rate;
[0078] Figure 8 It is a curve trend chart between P and edge error recognition rate;
[0079] Fig. 9 The curve trend between Q and edge loss rate is shown in the figure;
[0080] Fig.10 It is the reset state of the color mark sensor. DETAILED DESCRIPTION
[0081] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0082] Definitions of Abbreviations and Key Terms
[0083] SNMP: Simple Network Management Protocol, Simple Network Management Protocol;
[0084] Agent: is a process or task residing on the managed device;
[0085] Trap: In the Simple Network Management Protocol, the SNMP protocol operates at the application layer (layer 7) of the OSI model. Since the first version, Trap has been defined as one of the core PDU messages;
[0086] Canny edge detection algorithm: It is a multi-level edge detection algorithm developed by John F. Canny in 1986 and is used in the field of image processing;
[0087] IT: refers to Internet technology. Example 1
[0088] 1. Installation of color mark sensor
[0089] There are many servers in the cabinet, and each server has many indicator lights. At the same time, the acquisition distance of the color code sensor is limited, and the distance between the cabinet door and the server is small. It is very difficult to cover the indicator lights of all servers. Therefore, the present invention adopts the method of establishing a sliding track to solve this problem.
[0090] At the U position of the cabinet door facing the cabinet, a horizontal track (a sliding track arranged horizontally) is set up every 2 U positions (for example, each U position is 4.445 cm). At the same time, a vertical track (a sliding track arranged vertically) is set up on one side of the cabinet door to realize the row-by-row movement of the color mark sensor from top to bottom, such as Figure 1 shown.
[0091] 2. Monitoring module
[0092] The monitoring module needs to implement three functions:
[0093] (1) Configure the server information of each cabinet and the running track of the color mark sensor.
[0094] (2) Use the program to control the color mark sensor to scan the indicator light of the server.
[0095] (3) When an abnormality is detected in the indicator light, an alarm message is generated and pushed to the user via SMS.
[0096] The following is a detailed description of the design of each function
[0097] (1) Configure the server information and the running track of the color sensor on each cabinet
[0098] The server information includes the number of servers, server locations, and indicator light locations;
[0099] Since the number of servers on each cabinet is different, it is necessary to configure the number of servers, server positions, and indicator light positions in the cabinet, thereby fully shortening the movement time of the color mark sensor on the guide rail and achieving timely scanning.
[0100] In the invention, a graphic recognition algorithm is used to identify the server position and the indicator light position, which can improve efficiency as much as possible and reduce the probability of configuration errors.
[0101] The pattern recognition algorithm comprises the following steps:
[0102] a. The maintenance personnel in the computer room take photos of the cabinets and obtain photo samples. To ensure accuracy, three photo samples are taken for each cabinet (the cabinet door must be open, the server layout inside the cabinet can be clearly seen, and the servers to be inspected are all powered on normally).
[0103] b. The maintenance personnel in the computer room upload the three photos to the monitoring module. The monitoring module uses intelligent recognition algorithms to locate the server and indicator light positions.
[0104] Implementation of intelligent recognition algorithm:
[0105] The first step is to compare the similarity of the three photo samples using the cosine similarity algorithm. If the similarity reaches or exceeds the similarity threshold (the similarity threshold is preferably 0.85), the photo sample is considered to be a valid photo.
[0106] In order to determine the appropriate similarity threshold, photo samples were taken under different illuminations, different offset distances (ranging from 0.5 to 5 cm), and the lens running speed was 0.5 cm / s. The number of samples in each group was 300, and the average similarity of the photos was calculated. The results are shown in Table 1:
[0107] Table 1
[0108] Illuminance (lx) Number of samples Mean photo similarity 303.5 300 0.8932 318.2 300 0.9055 299.4 300 0.8821 302.6 300 0.8828 323.9 300 0.8744 304.9 300 0.6733 315.5 300 0.4821 306.9 300 0.5159 280.1 300 0.7871 339.3 300 0.6762
[0109] Add a trend line to the mean similarity of the photos in Table 1, such as Figure 2 As shown, according to Figure 2 According to the trend line direction in , 0.85 is selected as the similarity threshold for photo similarity judgment.
[0110] The specific steps of the cosine similarity algorithm are as follows:
[0111] Select two photo samples to be compared, grayscale, resize and normalize the photo samples to obtain two first pictures, and then calculate the inner product of the vectors:
[0112] The feature vectors of the two first images are vector A and vector B, respectively, and the inner product of vector A and vector B is calculated. The calculation formula of the inner product is:
[0113] ,
[0114] Where A is vector A, B is vector B, a i are the components of vector A, b i are the components of vector B, i represents different components, and N is the total number of components;
[0115] Calculate the norm (length) of vector A and vector B: For vector A, its norm |A| is:
[0116] ,
[0117] |A| is the norm of vector A; similarly, the norm of vector B can be calculated as:
[0118] ,
[0119] |B| is the norm of vector B;
[0120] Calculate cosine similarity :
[0121] ,
[0122] This value is also the similarity threshold, which is between [-1,1]. The closer the value is to 1, the more similar the two photos are.
[0123] When calculating image similarity, in addition to the cosine similarity algorithm, there are also calculation methods such as Euclidean distance and Manhattan distance. The present invention adopts the cosine similarity algorithm, which takes into account the application scenario of the present invention. When the color mark sensor takes photos while moving slowly, its size and proportion will change to a certain extent, and these changes will cause greater errors for similarity algorithms such as Euclidean distance and Manhattan distance. At the same time, the cosine similarity algorithm is based on the measurement of the vector angle, which can better handle the nonlinear relationship between vectors.
[0124] Step 2: Use the Canny edge detection algorithm to locate the server position (server location)
[0125] First, use a Gaussian filter to smooth the valid photo to obtain a smoothed image. The purpose of this step is to reduce the noise and details in the image so that the main edges can be better identified. The Gaussian filter smoothes the image by calculating the weighted average of the pixel and its neighborhood, where the weight is determined by the Gaussian function.
[0126] Next, calculate the gradient of the smoothed image. This usually involves the change in intensity and direction of each pixel in the image. The Canny edge detection algorithm uses finite differences of first-order partial derivatives to calculate the magnitude and direction of the gradient. The magnitude of the gradient indicates the strength of the edge, while the direction of the gradient indicates the direction of the edge.
[0127] After calculating the gradient, the non-maximum suppression technique is used to refine the edge, that is, only the points with the largest local gradient are retained, thereby suppressing non-edge points. By comparing the gradient of the current pixel with the gradient of its adjacent pixels along the gradient direction, if the gradient of the current pixel is not the largest, it is set to zero, otherwise its value is retained.
[0128] The Canny edge detection algorithm uses a dual threshold technology to determine the true edge. Two thresholds are set: the first edge threshold high value and the first edge threshold low value. If the gradient of a pixel point is greater than the first edge threshold high value, the point is considered an edge point; if the gradient of a pixel point is less than the first edge threshold low value, it is excluded as an edge point; if the gradient of a pixel point is between the first edge threshold high value and the first edge threshold low value, it is considered a potential edge point and needs further judgment.
[0129] Finally, the identified edge points are connected by an edge tracking algorithm. For potential edge points, if they are connected to the identified edge points, they are considered edge points; otherwise, they are considered non-edge points. This step helps to form continuous and complete edge lines.
[0130] Since the server usually has a black edge, the first edge threshold high value or the first edge threshold low value of its edge is determined by the following formula:
[0131] thresh_high_1 = peak_gray_level + k×std_dev_1;
[0132] thresh_low_1 = peak_gray_level - L×std_dev_1;
[0133] Among them, thresh_high_1 is the high value of the first edge threshold, thresh_low_1 is the low value of the first edge threshold; peak_gray_level is the gray level of the peak of the black background in the histogram, std_dev_1 is the standard deviation of the gray level near the peak of the black background in the histogram, and k and L are empirical parameters.
[0134] In the process of determining k and L, a feedback mechanism needs to be established to make adjustments based on the experimental feedback data. Taking the computer room experimental environment with an illumination of 277 as an example, an initial first edge threshold high value (thresh_high_1) is set to 78, and an initial first edge threshold low value (thresh_low_1) is set to 40. When the gray level (peak_greay_levels) of the peak of the black background in the histogram is 54 and the standard deviation of the gray level near the peak (std_dev_1) is 1.5, by adjusting the first edge threshold high value (thresh_high_1) and the first edge threshold low value (thresh_low_1), the corresponding k, L, edge loss rate, and edge misrecognition rate all change accordingly. The detection result data is shown in Table 2:
[0135] Table 2
[0136] thresh_high_1 thresh_low_1 peak_greay_levels std_dev_1 k L Edge loss rate (%) Edge misrecognition rate (%) 60 49 54 1.5 4 3.33 5.69 3.56 61 49 54 1.5 4.67 3.33 5.66 4.03 62 49 54 1.5 5.33 3.33 5.5 3.85 63 49 54 1.5 6 3.33 5.48 4.12 64 49 54 1.5 6.67 3.33 5.42 4 65 49 54 1.5 7.33 3.33 5.45 4.23 66 49 54 1.5 8 3.33 5.42 4.06 67 49 54 1.5 8.67 3.33 5.42 4.12 68 40 54 1.5 9.33 9.33 5.74 4.57 68 41 54 1.5 9.33 8.67 5.63 4.63 68 42 54 1.5 9.33 8 5.61 4.65 68 43 54 1.5 9.33 7.33 5.51 4.54 68 44 54 1.5 9.33 6.67 5.45 4.45 68 45 54 1.5 9.33 6 5.45 4.29 68 46 54 1.5 9.33 5.33 5.46 4.28 68 47 54 1.5 9.33 4.67 5.48 4.38 68 48 54 1.5 9.33 4 5.43 4.08 68 49 54 1.5 9.33 3.33 5.24 4.01 68 50 54 1.5 9.33 2.67 5.31 4.28 69 49 54 1.5 10 3.33 5.21 4.2 70 49 54 1.5 10.67 3.33 5.36 4.06 71 49 54 1.5 11.33 3.33 5.32 4.24 72 49 54 1.5 12 3.33 5.35 4.36 73 49 54 1.5 12.67 3.33 5.51 4.28 74 49 54 1.5 13.33 3.33 5.5 4.32 75 49 54 1.5 14 3.33 5.43 4.76 76 49 54 1.5 14.67 3.33 5.63 4.53 77 49 54 1.5 15.33 3.33 5.62 4.56 78 49 54 1.5 16 3.33 5.58 4.93
[0137] In Table 2, when L is a constant, the curve trend between k and edge loss rate is shown in Figure 3 The curve trend between k and edge error rate is shown in Figure 4 ; When k is a constant, the curve trend between L and edge loss rate is shown in Figure 5 , the curve trend between L and edge error rate is shown in Figure 6 ; From Table 2, Figures 3 to 6 It can be seen that k=9.33 and L=3.33 are finally determined.
[0138] The third step is to use the Canny edge detection algorithm to find the area where the photoelectric brightness changes in the three valid photos and identify the position of the server indicator light in the valid photos.
[0139] Since the indicator lights of the server are usually red, green and yellow, the highlight level in the brightness level needs to be obtained through the brightness histogram. Here, the brightness level in the brightness histogram is defined as peak_brightness.
[0140] Then the edge threshold is determined by the following formula:
[0141] thresh_high_2 = peak_brightness + P×std_dev_2;
[0142] thresh_low_2 = peak_brightness - Q×std_dev_2;
[0143] Among them, thresh_high_2 is the second edge threshold high value, thresh_low_2 is the second edge threshold low value, std_dev_2 is the standard deviation of the brightness level near the peak in the brightness histogram, and P and Q are empirical parameters.
[0144] In the process of determining P and Q, a feedback mechanism needs to be established to make adjustments based on the experimental feedback data. Taking the computer room experimental environment with an illumination of 277 as an example, an initial second edge threshold high value (thresh_high_2) is set to 223, and an initial second edge threshold low value (thresh_low_2) is set to 172. When the brightness level (peak_brightness) in the brightness histogram is 205 and the standard deviation of the brightness level near the peak in the brightness histogram (std_dev_2) is 18, by adjusting the second edge threshold high value (thresh_high_2) and the second edge threshold low value (thresh_low_2), the corresponding P, Q, edge loss rate, and edge misrecognition rate all change accordingly. The detection result data obtained is shown in Table 3:
[0145] Table 3
[0146] thresh_high_2 thresh_low_2 peak_brightness std_dev_2 P Q Edge loss rate (%) Edge misrecognition rate (%) 206 173 205 18 0.06 1.78 3.91 4.95 206 176 205 18 0.06 1.61 3.92 4.74 206 175 205 18 0.06 1.67 3.99 4.69 206 178 205 18 0.06 1.5 4 4.53 206 174 205 18 0.06 1.72 4 4.86 206 179 205 18 0.06 1.44 4.04 4.74 206 182 205 18 0.06 1.28 4.17 4.52 206 172 205 18 0.06 1.83 4.19 4.85 206 177 205 18 0.06 1.56 4.21 4.6 206 181 205 18 0.06 1.33 4.4 4.29 206 183 205 18 0.06 1.22 4.47 4.21 206 185 205 18 0.06 1.11 4.51 4.17 206 187 205 18 0.06 1 4.52 4.14 206 180 205 18 0.06 1.39 4.52 4.73 206 188 205 18 0.06 0.94 4.56 4.2 206 184 205 18 0.06 1.17 4.66 4.46 206 189 205 18 0.06 0.89 4.74 4.23 206 186 205 18 0.06 1.06 4.76 4.38 206 190 205 18 0.06 0.83 4.79 4.18 207 176 205 18 0.11 1.61 4.38 4.86 208 172 205 18 0.17 1.83 3.91 5.17 208 176 205 18 0.17 1.61 4.29 4.88 209 176 205 18 0.22 1.61 4.04 5.04 210 176 205 18 0.28 1.61 4.36 5.05 211 176 205 18 0.33 1.61 4.23 5.12 212 176 205 18 0.39 1.61 4.43 5.19 213 176 205 18 0.44 1.61 4.31 4.95 214 176 205 18 0.5 1.61 4.52 5.33 215 176 205 18 0.56 1.61 4.54 5.26 216 176 205 18 0.61 1.61 4.5 5.23 217 176 205 18 0.67 1.61 4.8 5.27 218 176 205 18 0.72 1.61 4.65 5.25 219 176 205 18 0.78 1.61 4.6 5.62 220 176 205 18 0.83 1.61 4.59 5.66 221 176 205 18 0.89 1.61 4.87 5.36 222 176 205 18 0.94 1.61 4.92 5.37 223 176 205 18 1 1.61 4.78 5.77
[0147] In Table 3, when Q is a constant, the curve trend between P and edge loss rate is shown in Figure 7 The curve trend between P and edge error rate is shown in Figure 8 ; When P is a constant, the curve trend between Q and edge loss rate is shown in Fig. 9 ; From Table 3, Figures 7-9 It can be seen that the final determination is that P=0.06, Q=1.61.
[0148] c. The monitoring module calculates the running track of the color mark sensor and presents the calculation results to the computer room maintenance personnel in a graphical form. The computer room maintenance personnel confirms the running track, and the configuration is completed.
[0149] (2) Use the program to control the color sensor to scan the indicator light of the server
[0150] The monitoring module controls the movement of the color mark sensor according to the predefined movement trajectory. The design scheme is as follows:
[0151] a. Color mark sensor reset
[0152] To ensure that the color mark sensor can still work normally without human intervention after an abnormality (such as power failure, failure, etc.) occurs and is restored, it is necessary to reset the position first. That is, reset the position of the color mark sensor to the top of the longitudinal track, see Fig.10 , Fig.10It is the homing state of the color mark sensor.
[0153] b. The monitoring module controls the color mark sensor to move to the indicator light position of the first server and scan it. To ensure that the correct indicator light information can be collected, the color mark sensor will stay at the indicator light for three seconds.
[0154] c. The color mark sensor moves to the next server and scans the indicator light position of the server.
[0155] After completing the scanning of the indicator light of the first server, determine the position of the indicator light of the next server and decide whether it needs to be moved horizontally or vertically. If horizontal movement is required, control the color mark sensor to move along the horizontal track. If vertical movement is required, control the color mark indicator to return to the vertical track, and then move up and down to the specified horizontal track to scan the indicator light of the next server.
[0156] (3) When an abnormality is detected in the indicator light, an alarm message is generated and pushed to the user via SMS.
[0157] The color sensor will continuously scan the indicator light of each server for three seconds. If the indicator light of the server is always in a normal color (such as green) during these three seconds, the "normal" information will be sent back to the monitoring module. If it is an abnormal color (such as yellow), the "abnormal" information will be sent back to the monitoring module. If it is an alarm color (such as red), the "alarm" information will be sent back to the monitoring module.
[0158] After receiving "abnormal" or "alarm" information, the monitoring system pushes the relevant alarm information to the computer room maintenance personnel through the SMS push platform.
[0159] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. An intelligent cabinet monitoring system based on a color code sensor is used to monitor indicator lights on servers. All servers are installed on a cabinet, and the cabinet includes a cabinet door. The system is characterized in that: The intelligent cabinet monitoring system based on color mark sensor includes a color mark sensor for scanning the indicator light of the server on each cabinet and a monitoring module. The monitoring module is used to configure the server information of each cabinet and the running track of the color mark sensor, and the monitoring module controls the color mark sensor to scan the indicator light of the server; When an indicator light is found to be abnormal, an alarm message is generated and pushed; The server information includes the number of servers, server locations, and indicator light locations; A graphic recognition algorithm is used to identify the server position and the indicator light position, and the graphic recognition algorithm includes the following steps: Step a: The equipment room maintenance personnel take photos of the cabinet and obtain at least three photo samples; Step b: The maintenance personnel of the computer room upload three randomly selected photos to the monitoring module, and locate the positions of the server and the indicator light through the monitoring module; Step c: The monitoring module calculates the running track of the color mark sensor and presents the calculation result to the computer room maintenance personnel in a graphical form. The computer room maintenance personnel confirms the running track, and the configuration is completed; In step b, the monitoring module locates the server position and the indicator light position through an intelligent recognition algorithm, and the intelligent recognition algorithm includes the following steps: Step b1: compare the similarity of the three photo samples by using the cosine similarity algorithm. If the similarity reaches or exceeds the similarity threshold, the photo sample is determined to be a valid photo. Step b2: Locate the server using the Canny edge detection algorithm Use a Gaussian filter to smooth the effective photo to obtain a smoothed image; calculate the gradient of the smoothed image, use non-maximum suppression technology to refine the edge, and compare the gradient of the current pixel with the gradient of its adjacent pixels along the gradient direction. If the gradient of the current pixel is not the largest, set it to zero, otherwise keep its value; Use the double threshold technology to determine the true edge, set the first edge threshold high value and the first edge threshold low value, if the gradient of a pixel point is greater than the first edge threshold high value, then the point is considered to be an edge point; if the gradient of a pixel point is less than the first edge threshold low value, it is excluded as an edge point; if the gradient of a pixel point is between the first edge threshold high value and the first edge threshold low value, it is regarded as a potential edge point and needs further judgment; Finally, the identified edge points are connected by an edge tracking algorithm; for potential edge points, if they are connected to the identified edge points, they are considered edge points; otherwise, they are considered non-edge points; thresh_high_1 = peak_gray_level + k×std_dev_1; thresh_low_1 = peak_gray_level - L×std_dev_1; Wherein, thresh_high_1 is the high value of the first edge threshold, thresh_low_1 is the low value of the first edge threshold; peak_gray_level is the gray level of the peak of the black background in the histogram, std_dev_1 is the standard deviation of the gray level near the peak of the black background in the histogram, and k and L are empirical parameters; Step b3: Use the Canny edge detection algorithm to find the area where the photoelectric brightness changes in the three valid photos, and identify the position of the server indicator light in the valid photos; thresh_high_2 = peak_brightness + P×std_dev_2; thresh_low_2 = peak_brightness - Q×std_dev_2; Among them, thresh_high_2 is the second edge threshold high value, thresh_low_2 is the second edge threshold low value, std_dev_2 is the standard deviation of the brightness level near the peak in the brightness histogram, and P and Q are empirical parameters.
2. The intelligent cabinet monitoring system based on color code sensor according to claim 1 is characterized in that: In step b1, the similarity threshold is 0.
85.
3. The intelligent cabinet monitoring system based on color code sensor according to claim 1 is characterized in that: In step b1, the specific steps of the cosine similarity algorithm are as follows: Select two photo samples to be compared, grayscale, resize and normalize the photo samples to obtain two first pictures, and then calculate the inner product of the vectors: The feature vectors of the two first images are vector A and vector B respectively, and the inner product of vector A and vector B is calculated; , Among them, A is vector A, B is vector B, a i are the components of vector A, b i are the components of vector B, i represents different components, and N is the total number of components; For a vector A, its norm |A| is: , |A| is the norm of vector A; For a vector B, its norm |B| is: , |B| is the norm of vector B; Calculate cosine similarity : 。 4. The intelligent cabinet monitoring system based on color code sensor according to claim 1 is characterized in that: k=9.33,L=3.
33.
5. The intelligent cabinet monitoring system based on color code sensor according to claim 1 is characterized in that: P=0.06, Q=1.
61.
6. The intelligent cabinet monitoring system based on color code sensor according to claim 1 is characterized in that: A transverse track for limiting the moving direction of the color mark sensor is set up at the U position of the cabinet door facing the cabinet, and a longitudinal track for limiting the moving direction of the color mark sensor is set up on one side of the cabinet door.
7. The intelligent cabinet monitoring system based on color code sensor according to claim 6 is characterized in that: The monitoring module controls the movement of the color mark sensor according to a predefined movement trajectory, including the following steps: Step s1, resetting the position of the color mark sensor to the top of the longitudinal track; Step s2, the monitoring module controls the color mark sensor to move to the indicator light position of the first server and scans; Step s3: The color mark sensor moves to the next server and scans the position of the indicator light of the server.
Citation Information
Patent Citations
Method for accurately detecting fault information of IT equipment in machine room
CN111626139A
