Method and system for adjusting BMC (Baseboard Management Controller) to output image data

By monitoring the BMC transmission rate and the amount of backlogged data in the cache queue, and adjusting the image format, frame rate and resolution, the problem of untimely image processing in the KVM function is solved, the user experience and system efficiency are improved, and the efficient transmission of image data is ensured. quality.

CN118695029APending Publication Date: 2024-09-24SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411007646.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In the KVM function, the BMC processing speed is too slow, resulting in untimely image processing. Especially when the image data gap between two adjacent frames is large, traditional methods cannot effectively optimize the user experience.

Method used

By monitoring the BMC transmission rate and the amount of backlogged data in the cache queue, the data optimization setting interface is triggered, and the image format, frame rate, and resolution are adjusted according to the optimization method input by the user to ensure the real-time nature and quality of the image data, and ensure the real-time performance and quality of the image data, and adjust the transmission rate and cache status. When good, package the output directly to avoid unnecessary processing overhead.

Benefits of technology

It achieves the optimal image data output performance in different application scenarios, ensures the real-time and quality of data, improves system resource utilization efficiency, and reduces resource waste and delay and lag problems in user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118695029A
    Figure CN118695029A
Patent Text Reader

Abstract

The invention belongs to the technical field of image display, and particularly provides a method and system for adjusting BMC output image data, and the method comprises the following steps: obtaining image data; monitoring the transmission rate of image data transmitted by the BMC, and checking the volume of accumulated data in the cache queue; when the transmission rate is smaller than a first transmission threshold value, and / or the backlog data volume in the cache queue is larger than a first data threshold value, a setting interface used for setting a data optimization mode is triggered and displayed; when the data optimization mode input through the setting interface is received within the set time, processing the image data according to the received data optimization mode; the data optimization mode comprises image format modification, frame rate modification and image resolution modification; and after processing is completed, packaging and outputting the image data. And when the transmission rate is low or the cache data is seriously overstocked, the data optimization setting is actively triggered, so that the data transmission delay is effectively reduced, and the overall response speed of the system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] KVM is the abbreviation of Keyboard, Video, Mouse, which means remotely controlling multiple computers through a local set of keyboard, monitor and mouse. The principle is that KVM obtains and displays the image information of the remote server, and sends the local keyboard and mouse operations to the server to realize the function of local remote operation of the server. In server products, due to different server usage scenarios, in some cases it is required to operate only remotely without connecting to a monitor locally. This requires that when the monitor is not connected locally, the server motherboard graphics card still has output.

[0003] The current server can use BMC to obtain graphics card data to implement the KVM function. When the network is poor or the BMC itself is designed with too many functions, the BMC processing speed will be too slow when the KVM function is running, resulting in untimely image processing, delays in the KVM function, and poor user experience. The traditional processing method compares two adjacent frames of data of the server graphics card obtained by the BMC and only transmits the difference data, thereby reducing the amount of data transmitted. At the same time, the display area where the mouse is located is updated first to optimize the user experience to prevent the situation where the user moves the mouse but the image is not updated, resulting in a poor experience. However, in this processing method, if the difference between the data of two adjacent frames of images is large, the expected effect cannot be achieved. Summary of the invention

[0004] In view of the problem that the expected effect cannot be achieved when the difference between two adjacent frames of image data is large in the traditional processing method, the present invention provides a method and system for adjusting the BMC output image data.

[0005] In a first aspect, the technical solution of the present invention provides a method for adjusting BMC output image data, comprising the following steps: Get image data; Monitor the transmission rate of BMC image data and check the amount of backlogged data in the cache queue; When the transmission rate is less than the first transmission threshold, and / or the amount of backlog data in the cache queue is greater than the first data threshold, triggering display of a setting interface for setting a data optimization method; When a data optimization method input through a setting interface is received within a set time, the image data is processed according to the received data optimization method; the data optimization method includes modifying the image format, modifying the frame rate, and modifying the image resolution; After processing, the image data is packaged and output; When the transmission rate is greater than or equal to the first transmission threshold, and the amount of backlog data in the cache queue is less than or equal to the first data threshold, the image data is directly packaged and output.

[0006] The user is allowed to flexibly select optimization methods such as image format, frame rate and resolution through the setting interface according to actual needs. This personalized data optimization strategy can ensure that the system can output image data with optimal performance in different application scenarios, which not only ensures the real-time nature of the data, but also takes into account the quality and clarity of the image. When the transmission rate and cache status are good, the image data is directly packaged and output, avoiding unnecessary processing overhead and improving the utilization efficiency of system resources.

[0007] As a preferred embodiment of the technical solution of the present invention, the step of processing the image data according to the received data optimization method includes: Parse the information entered through the settings interface; Determine whether the image format needs to be modified; If so, perform image data format conversion; Reconstruct the converted image; Execution steps: Pack and output the image data; If not, determine whether to modify the image frame rate; If yes, modify the image frame rate; Get image data; Determine whether the image resolution needs to be modified; If yes, modify the image resolution; Obtain image data; Execution steps: monitor the transmission rate of the BMC transmitting image data and check the amount of backlog data in the cache queue.

[0008] By analyzing the information entered by the user through the setting interface in detail, the system can accurately identify and apply the data optimization method specified by the user. This precise execution mechanism ensures the accuracy and efficiency of image data processing and avoids unnecessary errors or waste of resources. In the processing steps, the system first determines whether the image format needs to be modified, and performs format conversion and reconstruction accordingly. If the format does not need to be modified, the adjustment requirements of the frame rate and resolution are further determined. This sequential and logical processing flow ensures that each step of the operation is carried out on the basis of the previous step, improving the consistency and efficiency of the processing.

[0009] That is, the modified image data processing steps further improve the efficiency and quality of the BMC system's output image data through precise execution, sequential processing, balancing image quality and performance, reducing resource waste, and enhancing user experience.

[0010] As a preferred embodiment of the technical solution of the present invention, the method further comprises: When the data optimization method input through the setting interface is not received within the set time, it is determined whether the amount of backlog data is greater than the first data threshold; If so, perform image data format conversion; Reconstruct the converted image; Execution steps: Pack and output the image data; If not, modify the image frame rate; Get image data; Determining whether the transmission rate is greater than or equal to a first transmission threshold; If yes, execute the steps: package and output the image data; If not, modify the image resolution; Get image data; Determining whether the transmission rate is greater than or equal to a first transmission threshold; If yes, execute the steps: package and output the image data; If not, perform image data format conversion; Reconstruct the converted image; execution steps: package and output the image data.

[0011] When the method does not receive the data optimization mode input by the user within the set time, it can automatically make intelligent adjustments based on the current system transmission rate and the amount of backlog data in the cache queue. This adaptive mechanism ensures that the system can maintain efficient operation under different load and network conditions, reducing the need for manual intervention.

[0012] Since this method can automatically and intelligently adjust the optimization mode of image data to ensure smooth transmission and high-quality display of image data, it can significantly improve user experience and satisfaction. Users do not need to worry about problems such as image freeze, blur or delay caused by network fluctuations or excessive system load. Through reasonable optimization strategy selection and execution order, this method can maximize the use of system resources and reduce unnecessary computing and storage overhead. This helps to reduce the overall energy consumption and cost of the system and improve the economy and sustainability of the system.

[0013] As a preferred embodiment of the technical solution of the present invention, the step of converting the image data format includes: The acquired image data is input into a preset image data conversion mapping table to convert the RGB888 / RGB565 data into 256-color data.

[0014] The number of colors in the image is significantly reduced, from about 16.7 million colors in the original RGB888 or about 32,000 colors in RGB565 to 256 colors. Due to the reduction in the number of colors, some subtle color differences in the original image may become indistinguishable in the converted image, resulting in a certain degree of color distortion. However, through reasonable mapping table selection and optimization algorithms, this distortion can be minimized so that the converted image is still visually close to the original image. The converted 256-color image file is usually much smaller than the original RGB888 or RGB565 image file because each pixel only needs one byte to represent the color index (instead of three bytes for RGB888 or two bytes for RGB565). This is very useful for application scenarios that need to save storage space or reduce network transmission bandwidth. In some cases, processing the converted 256-color image may be faster than processing the original image due to the reduction in the number of colors and the reduction in file size.

[0015] As a preferred embodiment of the technical solution of the present invention, the step of converting the image data format includes: Select or generate a palette of 256 colors from the original image; Map each pixel in the image to a color in the palette, where for each pixel in the image, find the closest color in the palette and store its index in the image data.

[0016] As a preferred embodiment of the technical solution of the present invention, for each pixel in the image, the step of finding the closest color in the color palette includes: Calculate the Euclidean distance between the pixel color and each color in the palette; The color with the smallest distance is chosen as the closest color.

[0017] As a preferred embodiment of the technical solution of the present invention, the step of reconstructing the converted image includes: Get the converted image file; Embed metadata information in the file header and set the image check bit to complete the reconstruction of the image data.

[0018] By embedding metadata information, key information such as the creator, time, and copyright of the image can be retained, which helps protect intellectual property, track the source of the image, and ensure the accuracy of information. Setting an image check digit can detect and report possible data damage during storage or transmission, thereby avoiding the display of erroneous or unrecognizable images. The standard metadata format and check mechanism enable the converted images to be correctly read and processed by a variety of image viewers, editors, and processing software, enhancing the interoperability and portability of the image. Although the addition of metadata and check digits may slightly increase the size of the image file, they are essential to ensure the integrity and correctness of the image data. In the long run, this optimization helps reduce the need for retransmission or reprocessing due to data corruption, thereby improving overall efficiency. When viewing or processing images with complete metadata and check digits, users can get more information and assurance about the image, thereby enhancing their trust and satisfaction. In addition, for professional users who need to process a large number of images, this optimization can also improve their work efficiency.

[0019] As a preferred embodiment of the technical solution of the present invention, the step of acquiring image data includes: Get the server image data from the VGA module.

[0020] In a second aspect, the technical solution of the present invention further provides a system for adjusting the image data output by the BMC, including a server and a client connected to the server for communication, the BMC is arranged in the server, and the server includes an image data acquisition module, a monitoring module, a decision module, an image processing module and a data sending module; An image data acquisition module, for acquiring image data; Monitoring module, monitoring the transmission rate of BMC image data and checking the amount of backlog data in the cache queue; A decision module, which triggers the client to display a setting interface for setting a data optimization method when the transmission rate is less than a first transmission threshold and / or the amount of backlog data in the cache queue is greater than a first data threshold; The image processing module processes the image data according to the received data optimization method when receiving the data optimization method input through the setting interface of the client within the set time; the data optimization method includes modifying the image format, modifying the frame rate, and modifying the image resolution; The data sending module packages and outputs the image data after the image processing module completes the processing; when the transmission rate is greater than or equal to the first transmission threshold, and the amount of backlog data in the cache queue is less than or equal to the first data threshold, the image data is directly packaged and output.

[0021] As a preferred embodiment of the technical solution of the present invention, the client includes a receiving module, a parsing module, a display module and a setting information feedback module; A receiving module receives image data sent by the server through a data sending terminal; The parsing module parses the received image data and displays the parsed image data through the display module; The display module is also used to display a setting interface for setting the data optimization method after receiving the trigger information of the server decision module; The setting information feedback module is used to feed back the data optimization method set by the user through the setting interface to the server.

[0022] As a preferred embodiment of the technical solution of the present invention, the image processing module parses the information input through the setting interface; determines whether the image format needs to be modified; if so, converts the image data format; reconstructs the converted image; if not, determines whether to modify the image frame rate; if so, modifies the image frame rate; obtains image data; determines whether the image resolution needs to be modified; if so, modifies the image resolution; obtains image data; triggers the monitoring module to monitor the transmission rate of the BMC transmitting image data and check the amount of backlog data in the cache queue.

[0023] As a preferred embodiment of the technical solution of the present invention, the image processing module is also used to determine whether the amount of backlog data is greater than a first data threshold when the data optimization method input through the setting interface is not received within a set time; if so, perform image data format conversion; reconstruct the converted image; if not, modify the image frame rate; obtain image data; determine whether the transmission rate is greater than or equal to the first transmission threshold; if so, package the image data for output; if not, modify the image resolution; obtain image data; determine whether the transmission rate is greater than or equal to the first transmission threshold; if so, execute the steps: package the image data for output; if not, perform image data format conversion; reconstruct the converted image.

[0024] As a preferred embodiment of the technical solution of the present invention, the image processing module inputs the acquired image data into a preset image data conversion mapping table to convert the RGB888 / RGB565 data into 256-color data. Specifically, a color palette containing 256 colors is selected or generated from the original image; each pixel in the image is mapped to a color in the color palette, wherein for each pixel in the image, the closest color in the color palette is found, and its index is stored in the image data. For each pixel in the image, the specific process of finding the closest color in the color palette includes: calculating the Euclidean distance between the pixel color and each color in the color palette; selecting the color with the smallest distance as the closest color.

[0025] From the above technical solutions, it can be seen that the present invention has the following advantages: by real-time monitoring of the transmission rate of BMC image data transmission and the amount of data accumulated in the cache queue, the present invention can intelligently identify and respond to system performance bottlenecks. When the transmission rate is low or the cache data is seriously backlogged, the data optimization setting is actively triggered, thereby effectively reducing data transmission delays, improving the overall response speed of the system, and thus improving the user experience.

[0026] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0028] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention.

[0029] Figure 2 is a schematic block diagram of a system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.

[0031] like Figure 1 As shown, an embodiment of the present invention provides a method for adjusting BMC output image data, comprising the following steps: Step 1: Get image data; Step 2: Monitor the transmission rate of the BMC image data and check the amount of backlog data in the cache queue; Step 3: Determine whether the transmission rate is less than a first transmission threshold, and / or whether the amount of backlog data in the cache queue is greater than a first data threshold; If yes, go to step 4; if no, go to step 7; Step 4: Trigger the display of the setting interface for setting the data optimization method; Step 5: Whether to receive the data optimization method input through the setting interface within the set time; If yes, go to step 6; if no, go to step 8; Step 6: Process the image data according to the received data optimization method; the data optimization method includes modifying the image format, modifying the frame rate, and modifying the image resolution; Step 7: Pack and output the image data; Step 8: Determine whether the amount of backlog data is greater than a first data threshold; If yes, go to step 9; if no, go to step 11; Step 9: Convert the image data format; Step 10: Reconstruct the converted image; execute step 7; Step 11: Modify the image frame rate; Step 12: Obtain image data; Step 13: Determine whether the transmission rate is greater than or equal to a first transmission threshold; If yes, go to step 7; If not, go to step 14; Step 14: Modify the image resolution; Step 15: Obtain image data; obtain server image data from the VGA module.

[0032] Step 16: Determine whether the transmission rate is greater than or equal to a first transmission threshold; If yes, go to step 7; If not, go to step 9.

[0033] The method provided by the present invention allows the user to flexibly select optimization methods such as image format, frame rate and resolution through the setting interface according to actual needs. This personalized data optimization strategy can ensure that the system can output image data with optimal performance in different application scenarios, which not only ensures the real-time nature of the data, but also takes into account the quality and clarity of the image. When the transmission rate and cache status are good, the image data is directly packaged and output, avoiding unnecessary processing overhead and improving the utilization efficiency of system resources. When necessary, by adjusting the image parameters to adapt to the network bandwidth or cache limitations, the waste of resources in the data transmission process is reduced, and the overall performance of the system is further improved. Through real-time monitoring and intelligent adjustment, the present invention effectively prevents system crashes or performance degradation caused by poor data transmission or cache overflow. This preventive management mechanism enhances the stability and reliability of the system and reduces operation and maintenance costs and maintenance difficulties.

[0034] When the method does not receive the data optimization mode input by the user within the set time, it can automatically make intelligent adjustments according to the current system transmission rate and the amount of backlog data in the cache queue. This adaptive mechanism ensures that the system can maintain an efficient operating state under different load and network conditions, reducing the need for manual intervention. In the processing flow, the system first determines whether to convert the image data format based on the size of the backlog data, which is usually a more radical but effective optimization method. If the backlog data is not large, it tries to balance image quality and transmission efficiency by modifying the frame rate. If the frame rate adjustment still cannot meet the requirements, it further considers modifying the image resolution. This clear priority processing flow ensures that the system can select the most appropriate optimization strategy according to the actual situation. After modifying the frame rate or resolution, the system will re-evaluate the transmission rate and decide whether further optimization is needed based on the evaluation results. This dynamic adjustment and instant feedback mechanism enables the system to flexibly adjust the optimization strategy according to the actual situation to ensure that the image data can be smoothly transmitted and processed. Through timely image data format conversion, frame rate adjustment and resolution modification, this method can significantly reduce the jamming and delay during data transmission. This is particularly important for application scenarios that require real-time transmission of image data, such as remote monitoring and video conferencing.

[0035] Since this method can automatically and intelligently adjust the optimization mode of image data to ensure smooth transmission and high-quality display of image data, it can significantly improve user experience and satisfaction. Users do not need to worry about problems such as image freeze, blur or delay caused by network fluctuations or excessive system load. Through reasonable optimization strategy selection and execution order, this method can maximize the use of system resources and reduce unnecessary computing and storage overhead. This helps to reduce the overall energy consumption and cost of the system and improve the economy and sustainability of the system.

[0036] In some embodiments, the step of processing the image data in accordance with the received data optimization method includes: Step 61: Parsing the information input through the setting interface; Step 62: Determine whether the image format needs to be modified; If yes, go to step 63; if no, go to step 65; Step 63: Convert the image data format; Step 64: reconstruct the converted image; execute step 7; Step 65: Determine whether to modify the image frame rate; If yes, go to step 67; if no, go to step 69; Step 67: Modify the image frame rate; Step 68: Acquire image data; Step 69: Determine whether the image resolution needs to be modified; If yes, go to step 70; if no, go to step 7; Step 70: Modify the image resolution; execute step 1.

[0037] By analyzing the information entered by the user through the setting interface in detail, the system can accurately identify and apply the data optimization method specified by the user. This precise execution mechanism ensures the accuracy and efficiency of image data processing and avoids unnecessary errors or waste of resources. In the processing steps, the system first determines whether the image format needs to be modified, and performs format conversion and reconstruction accordingly. If the format does not need to be modified, the adjustment requirements of the frame rate and resolution are further determined. This sequential and logical processing flow ensures that each step of the operation is carried out on the basis of the previous step, improving the consistency and efficiency of the processing.

[0038] By modifying parameters such as image format, frame rate and resolution, the system can adjust the performance of data transmission according to the needs of actual application scenarios while ensuring image quality. For example, lowering the frame rate or resolution can reduce the amount of data transmission and improve transmission efficiency; while choosing the appropriate image format can reduce the file size while maintaining image clarity, making it easier to store and transmit.

[0039] During the processing, the system reacquires or processes image data only when necessary. For example, after modifying the frame rate or resolution, there is no need to determine and convert the image format again, thus avoiding unnecessary repeated processing and data redundancy. This optimization reduces the waste of system resources and improves the overall processing efficiency. Users can adjust the optimization method of image data through a simple setting interface according to actual needs. This flexibility not only meets the needs of different application scenarios, but also improves the user's sense of participation and satisfaction. At the same time, because the system can quickly respond to and apply the user's settings, users can experience a smoother and more efficient operation experience during use.

[0040] That is, the modified image data processing steps further improve the efficiency and quality of the BMC system's output image data through precise execution, sequential processing, balancing image quality and performance, reducing resource waste, and enhancing user experience.

[0041] In some embodiments, the step of converting the image data format includes: inputting the acquired image data into a preset image data conversion mapping table to convert the RGB888 / RGB565 data into 256-color data.

[0042] Read the image data and use an image processing library (such as Python's Pillow library, MATLAB's ImageProcessing Toolbox, etc.) to read the original image file and obtain its RGB data. For the conversion from RGB888 to 256 colors, since the 256-color palette is far less than the number of colors that RGB888 can represent (about 16.7 million), a mapping table needs to be built to define which RGB888 colors should be mapped to which color in the 256-color palette. The mapping table can be generated by a variety of algorithms, such as color quantization (such as K-means clustering), color reduction (such as median segmentation), etc. These algorithms can automatically select colors in the palette to represent the color distribution in the original image as accurately as possible. For the conversion from RGB565 to 256 colors, although RGB565 itself is already a lower-bit color representation (about 32,000 colors), the conversion to the 256-color palette still requires a similar mapping process. Traverse each pixel in the image and convert its RGB value to the corresponding 256-color palette index according to the mapping table. For RGB888 data, this step involves mapping the 24-bit RGB value of each pixel to an 8-bit index value that corresponds to a color in the 256-color palette. For RGB565 data, since it is already in 16-bit format, the conversion process may require expanding it back to 24-bit RGB (if necessary) before mapping. But it is more common to perform color reduction and mapping directly based on the 16-bit value of RGB565. Use the converted palette index and the corresponding image processing library function to generate a new 256-color image file. Save the converted image file for subsequent use or display.

[0043] The most direct effect is that the number of colors in the image is significantly reduced, from about 16.7 million colors in the original RGB888 or about 32,000 colors in RGB565 to 256 colors. Due to the reduction in the number of colors, some subtle color differences in the original image may become indistinguishable in the converted image, resulting in a certain degree of color distortion. However, through reasonable mapping table selection and optimization algorithms, this distortion can be minimized so that the converted image is still visually close to the original image. The converted 256-color image file is usually much smaller than the original RGB888 or RGB565 image file, because each pixel only needs one byte to represent the color index (instead of three bytes for RGB888 or two bytes for RGB565). This is very useful for application scenarios that need to save storage space or reduce network transmission bandwidth. In some cases, processing the converted 256-color image may be faster than processing the original image due to the reduction in the number of colors and the reduction in file size.

[0044] Specifically, a color palette containing 256 colors is selected or generated from the original image; each pixel in the image is mapped to a color in the color palette, wherein for each pixel in the image, the closest color in the color palette is found, and its index is stored in the image data. Among them, for each pixel in the image, the step of finding the closest color in the color palette includes: calculating the Euclidean distance between the pixel color and each color in the color palette; and selecting the color with the smallest distance as the closest color.

[0045] In some embodiments, the step of reconstructing the converted image includes: obtaining the converted image file; embedding metadata information in the file header part, and setting the image check bit to complete the reconstruction of the image data. Read the image file that has been converted to 256-color format. Before embedding metadata and setting the check bit, it is necessary to understand the current structure of the image file, including the file format (such as BMP, PNG, GIF, etc.), palette information (if any), pixel data, etc. Collect and prepare metadata information to be embedded in the image file header as needed. This information may include the creation time, author, copyright information, color mode (such as indexed color), palette content (if it is an indexed color image), image size, resolution, etc. of the image. Metadata is stored in the form of key-value pairs to ensure that they can be correctly identified by the software that reads and parses it. Reserve or find a suitable position in the header of the image file, and embed the prepared metadata information in a specific format (such as binary, text, or encoding specific to the file format). Ensure that the embedding process does not destroy the pixel data or other important information of the image. In order to ensure the integrity and consistency of the image data, a check bit (such as CRC checksum, checksum, etc.) is set at an appropriate position in the image file. Calculates a checksum for the entire image file (or a specific portion) and stores it at the specified location in the file. The checksum is verified while reading the image to detect any potential data corruption. After embedding metadata and setting the checksum, checks that the overall structure of the image file still complies with its format specifications.

[0046] By embedding metadata information, key information such as the creator, time, and copyright of the image can be retained, which helps protect intellectual property, track the source of the image, and ensure the accuracy of information. Setting an image check digit can detect and report possible data damage during storage or transmission, thereby avoiding the display of erroneous or unrecognizable images. The standard metadata format and check mechanism enable the converted images to be correctly read and processed by a variety of image viewers, editors, and processing software, enhancing the interoperability and portability of the image. Although the addition of metadata and check digits may slightly increase the size of the image file, they are essential to ensure the integrity and correctness of the image data. In the long run, this optimization helps reduce the need for retransmission or reprocessing due to data corruption, thereby improving overall efficiency. When viewing or processing images with complete metadata and check digits, users can get more information and assurance about the image, thereby enhancing their trust and satisfaction. In addition, for professional users who need to process a large number of images, this optimization can also improve their work efficiency.

[0047] During the BMC monitoring server process, users operate the server through KVM, and have high requirements for the real-time performance of the image. However, the amount of video image data is large, so how to reduce the amount of image data is the key to improving performance. The present invention proposes a method for adjusting image data under special circumstances, such as poor network conditions, high BMC occupancy rate, and slow data processing, thereby reducing the amount of data, improving processing speed, and enhancing user experience. In view of the fact that BMC users are mainly concerned about image fluency and operability when using the KVM function, and have low requirements for image quality (especially low requirements for color display), image data can be reduced in a variety of ways, such as reducing resolution, reducing frame rate, and changing the image data format. Among them, the method of changing the image data format can greatly reduce the amount of data while ensuring resolution and frame rate, but only reducing color saturation, which can meet customer needs to the greatest extent.

[0048] In RGB888, each pixel is represented by 24 bits (8 bits of red, 8 bits of green, and 8 bits of blue), totaling 3 bytes. In the RGB565 format, each pixel is represented by 16 bits (5 bits of red, 6 bits of green, and 5 bits of blue), totaling 3 bytes. In 256-color mode, each pixel is represented by 8 bits (1 byte). Therefore, after the image is converted from RGB888 to RGB565, the image data volume becomes 2 / 3 of the previous amount, and after it is converted to 256-color data, the data volume becomes 1 / 3 of the previous amount, which can greatly reduce the data volume without reducing the image resolution. Taking an image with a resolution of 1024*768 as an example, the frame rate is 30f / s. When the image is in RGB888 format data, the amount of image data that needs to be transmitted per second is 1024*768*30*24bit=540Mbit=67.5MByte. When converted to RGB565 format data, the data volume is 1024*768*30*16bit=360Mbit=45Mbyte. When it is 256-color data, the data volume is 1024*768*30*8bit= 180Mbit=22.5Mbyte. Through comparative calculation, it is found that the data volume is greatly reduced.

[0049] like Figure 2 As shown, an embodiment of the present invention further provides a system for adjusting the image data output by the BMC, including a server and a client connected to the server for communication, the BMC is arranged in the server, and the server includes an image data acquisition module, a monitoring module, a decision module, an image processing module and a data sending module; An image data acquisition module, for acquiring image data; Monitoring module, monitoring the transmission rate of BMC image data and checking the amount of backlog data in the cache queue; A decision module, which triggers the client to display a setting interface for setting a data optimization method when the transmission rate is less than a first transmission threshold and / or the amount of backlog data in the cache queue is greater than a first data threshold; The image processing module processes the image data according to the received data optimization method when receiving the data optimization method input through the setting interface of the client within the set time; the data optimization method includes modifying the image format, modifying the frame rate, and modifying the image resolution; The data sending module packages and outputs the image data after the image processing module completes the processing; when the transmission rate is greater than or equal to the first transmission threshold, and the amount of backlog data in the cache queue is less than or equal to the first data threshold, the image data is directly packaged and output.

[0050] The client includes a receiving module, a parsing module, a display module and a setting information feedback module; A receiving module receives image data sent by the server through a data sending terminal; The parsing module parses the received image data and displays the parsed image data through the display module; The display module is also used to display a setting interface for setting the data optimization method after receiving the trigger information of the server decision module; The setting information feedback module is used to feed back the data optimization method set by the user through the setting interface to the server.

[0051] When the data transmission speed is low, a large amount of video data is accumulated, which will cause the video image displayed on the client to freeze. In this case, reducing the amount of video data can improve the processing speed and enhance the user experience. After the KVM function of BMC is turned on, BMC automatically monitors the image data transmission rate and checks the amount of accumulated data. When it finds that there is too much accumulated data, it prompts the user that the network is not good. It is recommended that the user improve it through the following three methods: 1) Adjust the image resolution; 2) Adjust the frame rate; 3) Change the format of the image data from RGB888 to RGB565 or 256-color data. The above three methods can effectively reduce video data, thereby achieving a smoother display of video images. Among them, the method of changing the image data format can greatly reduce the amount of data while ensuring the resolution and frame rate, but only reducing the color saturation.

[0052] The KVM function consists of two parts: the BMC Server and the client. The implementation of the present invention also requires modification of both parts.

[0053] The image processing module parses the information input through the setting interface; determines whether the image format needs to be modified; if so, converts the image data format; reconstructs the converted image; if not, determines whether the image frame rate needs to be modified; if so, modifies the image frame rate; obtains image data; determines whether the image resolution needs to be modified; if so, modifies the image resolution; obtains image data; triggers the monitoring module to monitor the transmission rate of the BMC transmitting image data and check the amount of backlog data in the cache queue.

[0054] The image processing module is also used to determine whether the amount of backlog data is greater than a first data threshold when the data optimization method input through the setting interface is not received within a set time; if so, perform image data format conversion; reconstruct the converted image; if not, modify the image frame rate; obtain image data; determine whether the transmission rate is greater than or equal to the first transmission threshold; if so, package the image data for output; if not, modify the image resolution; obtain image data; determine whether the transmission rate is greater than or equal to the first transmission threshold; if so, execute the steps: package the image data for output; if not, perform image data format conversion; reconstruct the converted image.

[0055] The image processing module inputs the acquired image data into a preset image data conversion mapping table to convert RGB888 / RGB565 data into 256-color data. Specifically, a palette containing 256 colors is selected or generated from the original image; each pixel in the image is mapped to a color in the palette, wherein for each pixel in the image, the closest color in the palette is found, and its index is stored in the image data. For each pixel in the image, the specific process of finding the closest color in the palette includes: calculating the Euclidean distance between the pixel color and each color in the palette; selecting the color with the smallest distance as the closest color.

[0056] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0057] The following is an embodiment of a system for adjusting BMC output image data provided by an embodiment of the present disclosure. The system and the method for adjusting BMC output image data in the above-mentioned embodiments belong to the same inventive concept. For details not fully described in the embodiment of the system for adjusting BMC output image data, reference can be made to the embodiment of the method for adjusting BMC output image data.

[0058] The system for adjusting the BMC output image data is a unit and algorithm step of each example described in combination with the embodiments disclosed herein, and can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0059] Those skilled in the art will appreciate that various aspects of the method for adjusting the BMC output image data can be implemented as a system, method or program product. Therefore, various aspects of the present disclosure can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which can be collectively referred to as "circuit", "module" or "system" herein.

[0060] Although the present invention has been described in detail with reference to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention.

Claims

1. A method for adjusting BMC output image data, characterized in that: The steps include: Get image data; Monitor the transmission rate of BMC image data and check the amount of backlogged data in the cache queue; When the transmission rate is less than the first transmission threshold, and / or the amount of backlog data in the cache queue is greater than the first data threshold, triggering display of a setting interface for setting a data optimization method; When a data optimization method input through a setting interface is received within a set time, the image data is processed according to the received data optimization method; the data optimization method includes modifying the image format, modifying the frame rate, and modifying the image resolution; After processing, the image data is packaged and output; When the transmission rate is greater than or equal to the first transmission threshold, and the amount of backlog data in the cache queue is less than or equal to the first data threshold, the image data is directly packaged and output.

2. The method for adjusting BMC output image data according to claim 1, characterized in that: The steps of processing the image data in accordance with the received data optimization method include: Parse the information entered through the settings interface; Determine whether the image format needs to be modified; If so, perform image data format conversion; Reconstruct the converted image; Execution steps: Pack and output the image data; If not, determine whether to modify the image frame rate; If yes, modify the image frame rate; Get image data; Determine whether the image resolution needs to be modified; If yes, modify the image resolution; Obtain image data; Execution steps: monitor the transmission rate of the BMC transmitting image data and check the amount of backlog data in the cache queue.

3. The method for adjusting BMC output image data according to claim 1, characterized in that: The method further includes: When the data optimization method input through the setting interface is not received within the set time, it is determined whether the amount of backlog data is greater than the first data threshold; If so, perform image data format conversion; Reconstruct the converted image; Execution steps: Pack and output the image data; If not, modify the image frame rate; Get image data; Determining whether the transmission rate is greater than or equal to a first transmission threshold; If yes, execute the steps: package and output the image data; If not, modify the image resolution; Get image data; Determining whether the transmission rate is greater than or equal to a first transmission threshold; If yes, execute the steps: package and output the image data; If not, perform image data format conversion; Reconstruct the converted image; execution steps: package and output the image data.

4. The method for adjusting BMC output image data according to claim 3, characterized in that: The steps for image data format conversion include: The acquired image data is input into a preset image data conversion mapping table to convert the RGB888 / RGB565 data into 256-color data.

5. The method for adjusting BMC output image data according to claim 3, characterized in that: The steps for image data format conversion include: Select or generate a palette of 256 colors from the original image; Map each pixel in the image to a color in the palette, where for each pixel in the image, find the closest color in the palette and store its index in the image data.

6. The method for adjusting BMC output image data according to claim 5, characterized in that: For each pixel in the image, the steps to find the closest color in the palette are: Calculate the Euclidean distance between the pixel color and each color in the palette; The color with the smallest distance is chosen as the closest color.

7. The method for adjusting BMC output image data according to claim 4 or 6, characterized in that: The steps to reconstruct the transformed image include: Get the converted image file; Embed metadata information in the file header and set the image check bit to complete the reconstruction of the image data.

8. The method for adjusting BMC output image data according to claim 7, characterized in that: The steps to obtain image data include: Get the server image data from the VGA module.

9. A system for adjusting BMC output image data, characterized in that: It includes a server and a client connected to the server for communication, the BMC is arranged in the server, and the server includes an image data acquisition module, a monitoring module, a decision module, an image processing module and a data sending module; An image data acquisition module, for acquiring image data; Monitoring module, monitoring the transmission rate of BMC image data and checking the amount of backlog data in the cache queue; A decision module, which triggers the client to display a setting interface for setting a data optimization method when the transmission rate is less than a first transmission threshold and / or the amount of backlog data in the cache queue is greater than a first data threshold; The image processing module processes the image data according to the received data optimization method when receiving the data optimization method input through the setting interface of the client within the set time; the data optimization method includes modifying the image format, modifying the frame rate, and modifying the image resolution; The data sending module packages and outputs the image data after the image processing module completes the processing; when the transmission rate is greater than or equal to the first transmission threshold, and the amount of backlog data in the cache queue is less than or equal to the first data threshold, the image data is directly packaged and output.

10. The system for adjusting BMC output image data according to claim 9, characterized in that: The client includes a receiving module, a parsing module, a display module and a setting information feedback module; A receiving module receives image data sent by the server through a data sending terminal; The parsing module parses the received image data and displays the parsed image data through the display module; The display module is also used to display a setting interface for setting the data optimization method after receiving the trigger information of the server decision module; The setting information feedback module is used to feed back the data optimization method set by the user through the setting interface to the server.