Adaptive display method based on ambient light data of mobile equipment
By collecting ambient light data on mobile devices and calculating target display parameters, and generating brightness and color temperature adjustment instructions, the problem of neglected ambient light color temperature impact in the prior art is solved, intelligent adjustment and efficient matching of display parameters are achieved, and user experience is improved.
Patent Information
- Application Number
- CN202510142816.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-10
- Publication Date
- 2025-03-07
- Estimated Expiration
- 2045-02-10
AI Technical Summary
When adjusting the display brightness and color temperature of existing mobile device display technology, it ignores the impact of ambient light color temperature, and cannot meet the personalized needs of different users in different scenarios. It lacks real-time and accuracy, resulting in inconsistent display effects with the actual environment and causing visual fatigue.
Ambient light data is collected through the ambient light sensor of the mobile device, the target display parameters are calculated, and the brightness and color temperature adjustment instructions are generated through the calculation center, and the brightness and color temperature of the display device are adjusted in real time to match the ambient light conditions.
It realizes intelligent adjustment of display parameters, improves the adaptability and accuracy of display effects, reduces user visual fatigue, and meets the personalized needs of different users in different scenarios.
Smart Images

Figure CN119580668A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to display technology, and in particular to an adaptive display method based on ambient light data of a mobile device. Background Art
[0002] With the rapid development of display technology, the display effect of mobile devices has attracted more and more attention from users. In daily use, the ambient light conditions of mobile devices often change, which puts higher requirements on the brightness and color temperature adjustment of display devices. At present, most mobile devices are equipped with ambient light sensors to detect the lighting conditions of the surrounding environment and automatically adjust the brightness of the display accordingly.
[0003] Traditional display device brightness adjustment technology mainly relies on simple ambient light brightness detection and directly adjusts the display brightness through a preset mapping relationship. Although this method improves the display effect to a certain extent, it still has some obvious shortcomings.
[0004] First, the existing technology only considers the ambient light brightness factor, ignoring the important impact of the ambient light color temperature on the visual experience. In lighting environments with different color temperatures, the display content with the same brightness will give users different visual experiences, which may cause the display effect to not match the actual viewing experience.
[0005] Secondly, traditional brightness adjustment solutions often use fixed mapping algorithms, which do not take into account the personalized needs of different users in different scenarios. This one-size-fits-all adjustment method cannot meet the differentiated needs of users for display effects in different usage scenarios.
[0006] Finally, existing display parameter adjustments lack real-time and accuracy. Because ambient light conditions may change rapidly, traditional technologies have delays in data collection, processing, and display parameter adjustment, making it difficult to respond to environmental changes in a timely manner, affecting the user's viewing experience. This lag may cause the display effect to be inconsistent with the actual environment, causing visual fatigue. Summary of the invention
[0007] The embodiment of the present invention provides an adaptive display method based on ambient light data of a mobile device, which can solve the problems in the prior art.
[0008] A first aspect of an embodiment of the present invention provides an adaptive display method based on ambient light data of a mobile device, comprising: Performing a brightness and color temperature range calibration of a display device, controlling the display brightness of the display device to gradually change from a minimum brightness value to a maximum brightness value; controlling the display color temperature to gradually change from a minimum color temperature value to a maximum color temperature value at each display brightness value of the display device; and collecting actual display brightness data and actual display color temperature data of the display device at different display brightness and display color temperature combinations through an ambient light sensor of a mobile device; Collecting ambient light data and calculating target display parameters, collecting ambient light brightness data, ambient light color temperature data and screen brightness data of the mobile device in real time through the ambient light sensor of the mobile device; the mobile device sends the ambient light brightness data, the ambient light color temperature data and the screen brightness data of the mobile device to the computing center through the wireless communication module; the computing center determines the ambient light brightness mapping relationship and the ambient light color temperature mapping relationship according to preset parameters, wherein the ambient light brightness mapping relationship is used to map the ambient light brightness data to between the minimum brightness value and the maximum brightness value, and the ambient light color temperature mapping relationship is used to map the ambient light color temperature data to between the minimum color temperature value and the maximum color temperature value; the computing center obtains the average brightness value and the average color temperature value of the mobile device under the current ambient light; the computing center calculates the target display brightness value and the target display color temperature value; The computing center generates a brightness adjustment instruction according to the target display brightness value, and generates a color temperature adjustment instruction according to the target display color temperature value; the computing center sends the brightness adjustment instruction and the color temperature adjustment instruction to the display device through a display control interface; the display device receives and executes the brightness adjustment instruction to adjust the display brightness to the target display brightness value; the display device receives and executes the color temperature adjustment instruction to adjust the display color temperature to the target display color temperature value.
[0009] The computing center determines an ambient light brightness mapping relationship and an ambient light color temperature mapping relationship according to preset parameters, wherein the ambient light brightness mapping relationship is used to map the ambient light brightness data to between the minimum brightness value and the maximum brightness value, and the ambient light color temperature mapping relationship is used to map the ambient light color temperature data to between the minimum color temperature value and the maximum color temperature value, and includes: The computing center constructs an ambient light brightness data set based on the ambient light brightness data, constructs an ambient light color temperature data set based on the ambient light color temperature data, normalizes the ambient light brightness data set to obtain brightness mapping parameters, and normalizes the ambient light color temperature data set to obtain color temperature mapping parameters; Execute data mapping, wherein the computing center linearly maps the brightness mapping parameter with the minimum brightness value and the maximum brightness value to obtain a target display brightness value, and linearly maps the color temperature mapping parameter with the minimum color temperature value and the maximum color temperature value to obtain a target display color temperature value; A brightness adjustment instruction is generated according to the target display brightness value, and a color temperature adjustment instruction is generated according to the target display color temperature value, and the brightness adjustment instruction and the color temperature adjustment instruction are sent to the display device through a display control interface, and the display device is controlled to adjust display parameters according to the brightness adjustment instruction and the color temperature adjustment instruction.
[0010] The calculation center calculates the target display brightness value according to the formula L=(maximum brightness value-minimum brightness value)*[ambient light brightness mapping relationship+(screen brightness data-average brightness value)*brightness adjustment coefficient]+minimum brightness value; The calculation center calculates the target display color temperature value according to the formula C=(maximum color temperature value-minimum color temperature value)*[ambient light color temperature mapping relationship+(ambient light color temperature data-average color temperature value)*color temperature adjustment coefficient]+minimum color temperature value.
[0011] The computing center generates a brightness adjustment instruction according to the target display brightness value, and generates a color temperature adjustment instruction according to the target display color temperature value; the computing center sends the brightness adjustment instruction and the color temperature adjustment instruction to the display device through a display control interface; the display device receives and executes the brightness adjustment instruction to adjust the display brightness to the target display brightness value; the display device receives and executes the color temperature adjustment instruction to adjust the display color temperature to the target display color temperature value, including: Receiving target display parameters, the computing center receives a target display brightness value and a target display color temperature value, and obtains a display control protocol type supported by the display device; Generate a display parameter adjustment instruction, the computing center converting the target display brightness value into a display brightness control field and converting the target display color temperature value into a display color temperature control field according to the display control protocol type; Constructing an adjustment instruction, the computing center encapsulates the display brightness control field into a brightness adjustment instruction that complies with the display control protocol type, and encapsulates the display color temperature control field into a color temperature adjustment instruction that complies with the display control protocol type; Establishing a communication connection with the display device, the computing center selecting a display control interface matching the display device according to the display control protocol type, and establishing a communication connection with the display device; Sending an adjustment instruction, the computing center sends the brightness adjustment instruction and the color temperature adjustment instruction to the display device through the display control interface according to the communication timing specified by the display control protocol type.
[0012] The method further comprises: Verify the instruction execution status, the computing center receives the instruction execution status information fed back by the display device, and when it is detected that the instruction execution status information indicates execution failure, re-execute the sending operation of the brightness adjustment instruction and the color temperature adjustment instruction.
[0013] The method further comprises: Acquire display device protocol information, the computing center detecting the display control protocol type supported by the display device, the display control protocol type including DDC / CI protocol, MCU protocol and graphics card driver API protocol; Establishing a protocol mapping table, wherein the computing center constructs a protocol parameter mapping table according to the display control protocol type, wherein the protocol parameter mapping table includes display parameter control field formats, communication timing parameters, and instruction frame formats for different display control protocol types; Receiving target display parameters, the computing center receives a target display brightness value and a target display color temperature value, and determines a parameter conversion rule corresponding to the current display control protocol type according to the protocol parameter mapping table; Performing protocol conversion, the computing center converts the target display brightness value into a display brightness control field corresponding to the current display control protocol type, and converts the target display color temperature value into a display color temperature control field corresponding to the current display control protocol type according to the parameter conversion rule; Constructing an adjustment instruction, the computing center obtains the instruction frame format of the current display control protocol type according to the protocol parameter mapping table, encapsulates the display brightness control field into a brightness adjustment instruction that complies with the instruction frame format, and encapsulates the display color temperature control field into a color temperature adjustment instruction that complies with the instruction frame format; Selecting a control interface, the computing center selecting a matching display control interface from a preset interface list according to the display control protocol type, the interface list including an I2C interface, a USB interface, and a graphics card driver interface; Sending an adjustment instruction, the computing center sending the brightness adjustment instruction and the color temperature adjustment instruction to the display device according to the communication timing parameters through the display control interface; Perform protocol switching. When it is detected that the display device does not respond to the adjustment instruction of the current display control protocol type, the computing center switches to other display control protocol types and re-executes the operations of protocol conversion, constructing adjustment instructions, and sending adjustment instructions.
[0014] A second aspect of an embodiment of the present invention provides an adaptive display system based on ambient light data of a mobile device, including: The first unit is used to perform a brightness and color temperature range calibration of a display device, control the display brightness of the display device to gradually change from a minimum brightness value to a maximum brightness value; control the display color temperature to gradually change from a minimum color temperature value to a maximum color temperature value at each display brightness value of the display device; and collect actual display brightness data and actual display color temperature data of the display device under different display brightness and display color temperature combinations through an ambient light sensor of a mobile device; The second unit is used to collect ambient light data and calculate target display parameters, and collects ambient light brightness data, ambient light color temperature data and screen brightness data of the mobile device in real time through the ambient light sensor of the mobile device; the mobile device sends the ambient light brightness data, the ambient light color temperature data and the screen brightness data of the mobile device to the computing center through the wireless communication module; the computing center determines the ambient light brightness mapping relationship and the ambient light color temperature mapping relationship according to preset parameters, wherein the ambient light brightness mapping relationship is used to map the ambient light brightness data to between the minimum brightness value and the maximum brightness value, and the ambient light color temperature mapping relationship is used to map the ambient light color temperature data to between the minimum color temperature value and the maximum color temperature value; the computing center obtains the average brightness value and the average color temperature value of the mobile device under the current ambient light; the computing center calculates the target display brightness value and the target display color temperature value; The third unit is used for the computing center to generate a brightness adjustment instruction according to the target display brightness value, and to generate a color temperature adjustment instruction according to the target display color temperature value; the computing center sends the brightness adjustment instruction and the color temperature adjustment instruction to the display device through the display control interface; the display device receives and executes the brightness adjustment instruction to adjust the display brightness to the target display brightness value; the display device receives and executes the color temperature adjustment instruction to adjust the display color temperature to the target display color temperature value.
[0015] A third aspect of the embodiments of the present invention An electronic device is provided, comprising: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the aforementioned method.
[0016] A fourth aspect of the embodiments of the present invention is: A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the aforementioned method is implemented.
[0017] The beneficial effects of this application are as follows: The present invention collects actual display data of a display device under different combinations of display brightness and display color temperature through an ambient light sensor of a mobile device, establishes accurate calibration data of the brightness and color temperature range of the display device, provides a reliable data basis for subsequent adaptive adjustment of display parameters, and improves the accuracy of display parameter adjustment.
[0018] The present invention establishes a mapping relationship according to the ambient light brightness data and the ambient light color temperature data through a computing center, and calculates the target display parameters in combination with the screen brightness data of the mobile device, thereby realizing intelligent adjustment of the display parameters and enabling the display effect to better adapt to changes in ambient light.
[0019] The present invention adopts a method in which a computing center uniformly processes ambient light data and generates adjustment instructions, thereby reducing the computing burden of mobile devices. At the same time, automatic adjustment of brightness and color temperature is achieved through a display control interface, thereby improving the operating efficiency of the system and enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is a schematic flow chart of an adaptive display method based on ambient light data of a mobile device according to an embodiment of the present invention; Figure 2 It is a schematic diagram of the structure of an adaptive display system based on ambient light data of a mobile device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 are within the scope of protection of the present invention.
[0022] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0023] Figure 1 FIG. 1 is a flow chart of an adaptive display method based on ambient light data of a mobile device according to an embodiment of the present invention. Figure 1As shown, the method includes: S101. Execute a brightness and color temperature range calibration of the display device, control the display brightness of the display device to gradually change from a minimum brightness value to a maximum brightness value; control the display color temperature to gradually change from a minimum color temperature value to a maximum color temperature value at each display brightness value of the display device; collect actual display brightness data and actual display color temperature data of the display device at different display brightness and display color temperature combinations through an ambient light sensor of a mobile device; S102. Collecting ambient light data and calculating target display parameters, collecting ambient light brightness data, ambient light color temperature data and screen brightness data of the mobile device in real time through the ambient light sensor of the mobile device; the mobile device sends the ambient light brightness data, the ambient light color temperature data and the screen brightness data of the mobile device to the computing center through the wireless communication module; the computing center determines the ambient light brightness mapping relationship and the ambient light color temperature mapping relationship according to preset parameters, wherein the ambient light brightness mapping relationship is used to map the ambient light brightness data to between the minimum brightness value and the maximum brightness value, and the ambient light color temperature mapping relationship is used to map the ambient light color temperature data to between the minimum color temperature value and the maximum color temperature value; the computing center obtains the average brightness value and the average color temperature value of the mobile device under the current ambient light; the computing center calculates the target display brightness value and the target display color temperature value; S103. The computing center generates a brightness adjustment instruction according to the target display brightness value, and generates a color temperature adjustment instruction according to the target display color temperature value; the computing center sends the brightness adjustment instruction and the color temperature adjustment instruction to the display device through the display control interface; the display device receives and executes the brightness adjustment instruction to adjust the display brightness to the target display brightness value; the display device receives and executes the color temperature adjustment instruction to adjust the display color temperature to the target display color temperature value.
[0024] In an optional implementation, the computing center determines an ambient light brightness mapping relationship and an ambient light color temperature mapping relationship according to preset parameters, wherein the ambient light brightness mapping relationship is used to map the ambient light brightness data to between the minimum brightness value and the maximum brightness value, and the ambient light color temperature mapping relationship is used to map the ambient light color temperature data to between the minimum color temperature value and the maximum color temperature value, and includes: The computing center constructs an ambient light brightness data set based on the ambient light brightness data, constructs an ambient light color temperature data set based on the ambient light color temperature data, normalizes the ambient light brightness data set to obtain brightness mapping parameters, and normalizes the ambient light color temperature data set to obtain color temperature mapping parameters; Execute data mapping, wherein the computing center linearly maps the brightness mapping parameter with the minimum brightness value and the maximum brightness value to obtain a target display brightness value, and linearly maps the color temperature mapping parameter with the minimum color temperature value and the maximum color temperature value to obtain a target display color temperature value; A brightness adjustment instruction is generated according to the target display brightness value, and a color temperature adjustment instruction is generated according to the target display color temperature value, and the brightness adjustment instruction and the color temperature adjustment instruction are sent to the display device through a display control interface, and the display device is controlled to adjust display parameters according to the brightness adjustment instruction and the color temperature adjustment instruction.
[0025] The computing center first receives the ambient light brightness data and ambient light color temperature data collected by the ambient light sensor. The collection range of ambient light brightness data is 0-1000 lux, and the collection range of ambient light color temperature data is 2000K-7000K. Taking sampling once per second as an example, continuous sampling for 60 seconds will obtain the ambient light brightness data set and ambient light color temperature data set.
[0026] The collected ambient light brightness data set is normalized, specifically by dividing the ambient light brightness data by the maximum sampling value of 1000 lux to obtain the brightness mapping parameter. For example, when the collected ambient light brightness value is 500 lux, the normalized brightness mapping parameter is 0.5. Similarly, the ambient light color temperature data set is normalized, by subtracting the minimum sampling value 2000K from the ambient light color temperature data and dividing it by the sampling range of 5000K to obtain the color temperature mapping parameter. For example, when the collected ambient light color temperature value is 4500K, the normalized color temperature mapping parameter is 0.5.
[0027] Next, the data mapping process is performed. The brightness adjustment range of the display is from a minimum brightness value of 50 nits to a maximum brightness value of 400 nits, and the color temperature adjustment range is from a minimum color temperature value of 3000K to a maximum color temperature value of 6500K. The computing center linearly maps the normalized brightness mapping parameters with the display brightness adjustment range to obtain the target display brightness value. Specifically: when the brightness mapping parameter is 0.5, the target display brightness value is 225 nits. Similarly, the normalized color temperature mapping parameters are linearly mapped with the display color temperature adjustment range to obtain the target display color temperature value. Specifically: when the color temperature mapping parameter is 0.5, the target display color temperature value is 4750K.
[0028] The computing center generates corresponding adjustment instructions based on the target display brightness value and color temperature value. The brightness adjustment instruction uses an 8-bit data format to convert the target display brightness value into an adjustment range of 0-255. The color temperature adjustment instruction also uses an 8-bit data format to convert the target display color temperature value into an adjustment range of 0-255. The computing center sends these adjustment instructions to the display device through the display control interface. After receiving the adjustment instructions, the display device adjusts the backlight brightness and color temperature parameters of the display panel accordingly.
[0029] This application can achieve: By normalizing and linearly mapping the ambient light data, accurate conversion of ambient light parameters to display parameters is achieved, ensuring a good match between the display effect and the ambient light conditions and improving the viewing comfort of the displayed content.
[0030] The data set method is used to collect and process ambient light parameters, which avoids data fluctuations that may be caused by single sampling, improves the stability and reliability of ambient light adaptation adjustment, and reduces the frequent fluctuations of display parameters.
[0031] Coordinated adjustment of brightness and color temperature is achieved based on the display control interface, ensuring the real-time and accuracy of display parameter adjustment, while simplifying the complexity of system implementation and improving system operation efficiency.
[0032] In an optional implementation, the calculation center calculates the target display brightness value according to the formula L=(maximum brightness value-minimum brightness value)*[ambient light brightness mapping relationship+(screen brightness data-average brightness value)*brightness adjustment coefficient]+minimum brightness value; The calculation center calculates the target display color temperature value according to the formula C=(maximum color temperature value-minimum color temperature value)*[ambient light color temperature mapping relationship+(ambient light color temperature data-average color temperature value)*color temperature adjustment coefficient]+minimum color temperature value.
[0033] First, the basic parameter information of the display is obtained, including the maximum brightness value, the minimum brightness value, the maximum color temperature value and the minimum color temperature value. These parameters are inherent properties of the display and can be obtained through the display driver or hardware interface.
[0034] The ambient light sensor collects ambient light data in real time, including ambient light brightness data and ambient light color temperature data. The sampling frequency of the ambient light sensor can be set to once per second to ensure the real-time nature of the data. For example, in an office environment, the ambient light brightness may be 500 lux and the color temperature may be about 4000 Kelvin.
[0035] Preprocess the collected ambient light data to calculate the average brightness and color temperature over a period of time. The arithmetic mean of the most recent 10 sampling data can be taken to avoid the impact of instantaneous fluctuations in ambient light.
[0036] Establish a mapping relationship between ambient light brightness and display brightness. When the ambient light is dark, the display brightness should be appropriately reduced; when the ambient light is bright, the display brightness should be increased accordingly. The mapping relationship can be achieved through a piecewise linear function. For example, when the ambient light is in the range of 0-200 lux, the mapping coefficient is 0.3; in the range of 200-800 lux, the mapping coefficient is 0.5; above 800 lux, the mapping coefficient is 0.7.
[0037] Similarly, the mapping relationship between the ambient light color temperature and the display color temperature is established. When the ambient light color temperature is low (yellowish), the display color temperature should be appropriately reduced; when the ambient light color temperature is high (bluish), the display color temperature should be increased accordingly. The color temperature can be divided into a cold color temperature range (above 5000K) and a warm color temperature range (below 5000K) for mapping.
[0038] Brightness adjustment coefficients and color temperature adjustment coefficients are introduced to fine-tune the display effect. These coefficients range from 0 to 1 and can be set according to user preferences. Larger coefficient values make the display more sensitive to changes in ambient light.
[0039] According to the above mapping relationship and adjustment coefficient, combined with real-time ambient light data, the target display brightness value and color temperature value are calculated. The calculation results are sent down through the display driver for execution, realizing automatic adjustment of display parameters.
[0040] This application can achieve: By establishing a dynamic mapping relationship between ambient light and display parameters, intelligent adjustment of display brightness and color temperature is achieved, improving display effects and user viewing experience.
[0041] The combination of segmented mapping and adjustment coefficients ensures the smoothness of display parameter adjustment and provides the flexibility of personalized adjustment to meet the viewing needs of different users.
[0042] The system has good real-time performance and stability. It effectively suppresses the impact of instantaneous fluctuations in ambient light through multiple sampling and averaging, so that the display effect is always kept within an appropriate range, effectively reducing user visual fatigue.
[0043] In an optional implementation, the computing center generates a brightness adjustment instruction according to the target display brightness value, and generates a color temperature adjustment instruction according to the target display color temperature value; the computing center sends the brightness adjustment instruction and the color temperature adjustment instruction to the display device through a display control interface; the display device receives and executes the brightness adjustment instruction to adjust the display brightness to the target display brightness value; the display device receives and executes the color temperature adjustment instruction to adjust the display color temperature to the target display color temperature value, including: Receiving target display parameters, the computing center receives a target display brightness value and a target display color temperature value, and obtains a display control protocol type supported by the display device; Generate a display parameter adjustment instruction, the computing center converting the target display brightness value into a display brightness control field and converting the target display color temperature value into a display color temperature control field according to the display control protocol type; Constructing an adjustment instruction, the computing center encapsulates the display brightness control field into a brightness adjustment instruction that complies with the display control protocol type, and encapsulates the display color temperature control field into a color temperature adjustment instruction that complies with the display control protocol type; Establishing a communication connection with the display device, the computing center selecting a display control interface matching the display device according to the display control protocol type, and establishing a communication connection with the display device; Sending an adjustment instruction, the computing center sends the brightness adjustment instruction and the color temperature adjustment instruction to the display device through the display control interface according to the communication timing specified by the display control protocol type.
[0044] The specific implementation process of the brightness and color temperature adjustment method of the display device is as follows: First, the computing center receives the target display parameters. Specifically, the target display brightness value is received, ranging from 0 to 100, where 0 represents the darkest and 100 represents the brightest; the target display color temperature value is received, ranging from 2700K to 6500K, where 2700K is yellowish and 6500K is bluish. At the same time, the display control protocol type supported by the display device is obtained. Common protocol types include DDC / CI protocol, USB protocol, etc.
[0045] Secondly, the computing center generates display parameter adjustment instructions. For the DDC / CI protocol, the target display brightness value 0-100 is linearly mapped to the hexadecimal value 0x00-0xFF as the display brightness control field; the target display color temperature value 2700K-6500K is linearly mapped to the hexadecimal value 0x00-0xFF as the display color temperature control field. For the USB protocol, the brightness and color temperature values are transmitted in ASCII code.
[0046] Next, the computing center constructs the adjustment instruction. Taking the DDC / CI protocol as an example, the format of the brightness adjustment instruction is: start bit (0x6E), command code (0x10), brightness control field, checksum; the format of the color temperature adjustment instruction is: start bit (0x6E), command code (0x14), color temperature control field, checksum. The checksum is obtained by performing an XOR operation on all bytes in the instruction except the start bit.
[0047] Then, the computing center establishes a communication connection with the display device. For the DDC / CI protocol, the connection is established with the display device through the I2C bus, and the I2C address is 0x37; for the USB protocol, the connection is established with the display device through the virtual serial port, and the baud rate is 9600bps.
[0048] Finally, the computing center sends the adjustment command. Taking the DDC / CI protocol as an example, the brightness adjustment command is sent first, and the color temperature adjustment command is sent after the display device returns the confirmation frame (0x6E). If the confirmation frame is not received within 500ms, the command is resent, up to 3 times.
[0049] Specific data case: When the target display brightness value is 80 and the target display color temperature value is 5000K, the processing process using the DDC / CI protocol is: the brightness value 80 is mapped to 0xCC, and the color temperature value 5000K is mapped to 0xA0; the constructed brightness adjustment instruction is 0x6E-0x10-0xCC-0xDC, and the color temperature adjustment instruction is 0x6E-0x14-0xA0-0xB4; these two instructions are sent through the I2C bus, and the display device can achieve the expected display effect after execution.
[0050] This application can achieve: The method realizes the precise adjustment of the brightness and color temperature of the display device, supports multiple display control protocols, and has strong versatility and compatibility.
[0051] By performing display parameter adjustment in steps and adopting standard protocol format and communication timing, the reliable transmission and execution of adjustment instructions are guaranteed, and the success rate of display effect adjustment is improved.
[0052] The method can select appropriate control protocols and interfaces according to the characteristics of different display devices, and perform corresponding parameter conversion and instruction encapsulation, making the display effect adjustment more flexible and intelligent.
[0053] In an optional implementation, the method further includes: Verify the instruction execution status, the computing center receives the instruction execution status information fed back by the display device, and when it is detected that the instruction execution status information indicates execution failure, re-execute the sending operation of the brightness adjustment instruction and the color temperature adjustment instruction.
[0054] After the computing center sends the brightness adjustment command and the color temperature adjustment command to the display device, it needs to verify the execution status of the command. After receiving the adjustment command, the display device will perform the corresponding brightness adjustment or color temperature adjustment operation and generate the command execution status information to be fed back to the computing center.
[0055] The computing center receives the execution status information fed back by the display device through the communication interface. The execution status information includes key information such as the instruction identifier, the execution result identifier, and the timestamp. The instruction identifier is used to distinguish whether it is the execution status of the brightness adjustment instruction or the color temperature adjustment instruction, the execution result identifier is used to indicate whether the instruction is executed successfully, and the timestamp is used to record the specific time point of the instruction execution.
[0056] Specifically, when the display device executes the adjustment instruction, it first parses the received instruction content and extracts the target brightness value or the target color temperature value. Taking brightness adjustment as an example, when the target brightness value is 300 nits, the display device will gradually adjust the current brightness value to the target value. During the adjustment process, the value of the brightness sensor will be monitored in real time until the target brightness value is reached. After the adjustment is completed, the display device generates execution status information, sets the instruction identifier to the brightness adjustment instruction identifier, sets the execution result identifier to the success identifier, and records the timestamp of execution completion.
[0057] After receiving the execution status information, the computing center first parses the execution result identifier in the status information. When the execution result identifier indicates that the execution failed, the computing center will start the retransmission mechanism. The retransmission mechanism includes regenerating the adjustment instruction, setting the retransmission limit, and controlling the retransmission time interval. For example, the maximum number of retransmissions is set to 3 times, and the time interval between each retransmission is 1 second. When the execution failure is detected, the computing center will resend the adjustment instruction after 1 second until the execution is successful or the maximum number of retransmissions is reached.
[0058] To ensure the reliability of command execution, the computing center will also set up an execution timeout judgment mechanism. By comparing the command sending time and the status feedback time, when the preset timeout threshold is exceeded, the command resending operation will also be triggered. For example, if the timeout threshold is set to 5 seconds, if no execution status feedback is received for more than 5 seconds, it is considered that the execution has failed and will be resent.
[0059] This application can achieve: By setting up the instruction execution status verification mechanism, the failure of the adjustment instruction execution can be discovered in time, ensuring the normal operation of the brightness and color temperature adjustment functions of the display device, thereby improving the reliability of the system.
[0060] By establishing a state feedback mechanism between the computing center and the display device, closed-loop control of the adjustment process is achieved, making the entire adjustment process controllable and monitorable, thereby improving the stability and maintainability of the system.
[0061] By setting up an instruction resending mechanism and a timeout judgment mechanism, compensation control can be automatically performed when an execution failure is detected, avoiding the problem of regulation function failure due to a single instruction execution failure, and enhancing the system's fault tolerance and robustness.
[0062] In an optional implementation, the method further includes: Acquire display device protocol information, the computing center detecting the display control protocol type supported by the display device, the display control protocol type including DDC / CI protocol, MCU protocol and graphics card driver API protocol; Establishing a protocol mapping table, wherein the computing center constructs a protocol parameter mapping table according to the display control protocol type, wherein the protocol parameter mapping table includes display parameter control field formats, communication timing parameters, and instruction frame formats for different display control protocol types; Receiving target display parameters, the computing center receives a target display brightness value and a target display color temperature value, and determines a parameter conversion rule corresponding to the current display control protocol type according to the protocol parameter mapping table; Performing protocol conversion, the computing center converts the target display brightness value into a display brightness control field corresponding to the current display control protocol type, and converts the target display color temperature value into a display color temperature control field corresponding to the current display control protocol type according to the parameter conversion rule; Constructing an adjustment instruction, the computing center obtains the instruction frame format of the current display control protocol type according to the protocol parameter mapping table, encapsulates the display brightness control field into a brightness adjustment instruction that complies with the instruction frame format, and encapsulates the display color temperature control field into a color temperature adjustment instruction that complies with the instruction frame format; Selecting a control interface, the computing center selecting a matching display control interface from a preset interface list according to the display control protocol type, the interface list including an I2C interface, a USB interface, and a graphics card driver interface; Sending an adjustment instruction, the computing center sending the brightness adjustment instruction and the color temperature adjustment instruction to the display device according to the communication timing parameters through the display control interface; Perform protocol switching. When it is detected that the display device does not respond to the adjustment instruction of the current display control protocol type, the computing center switches to other display control protocol types and re-executes the operations of protocol conversion, constructing adjustment instructions, and sending adjustment instructions.
[0063] In the process of obtaining the display device protocol information, the computing center first scans the connected display device through the system interface and reads the EDID information block of the display device. By parsing the function support bit in the EDID information block, it can be determined whether the display device supports the DDC / CI protocol. At the same time, it is detected whether the display device has an MCU communication interface and whether the current system has loaded the graphics driver. For example, if a certain model of display supports the DDC / CI protocol and has an MCU interface, these two protocol types are recorded.
[0064] In the establishment of the protocol mapping table, for the DDC / CI protocol, the brightness control field uses a value range of 0-100, the color temperature control field uses Kelvin units such as 3000K-10000K, and the communication uses the I2C bus standard timing. For the MCU protocol, the brightness field uses a range of 0-255, the color temperature uses the RGB three-primary color ratio value, and the communication is based on the USB serial port 9600 baud rate. For the graphics card driver API, the parameter format defined by the standard Windows Display Control interface is used.
[0065] When receiving the target display parameters, the computing center obtains the target brightness value set by the user, such as 75% and the target color temperature value, such as 6500K. By querying the protocol mapping table, it can be seen that the DDC / CI protocol is currently used, and the percentage brightness value needs to be converted to an integer value of 75 in the range of 0-100, and the color temperature value remains unchanged at 6500K.
[0066] In the protocol conversion phase, the computing center converts the brightness value 75 into the brightness control field 0x4B of the DDC / CI protocol and the color temperature value 6500K into the color temperature control field 0x196C according to the mapping rules. If it is an MCU protocol, it needs to be converted into the corresponding RGB ratio value.
[0067] When constructing the adjustment command, according to the frame format of the DDC / CI protocol, 0x4B is encapsulated into a complete brightness adjustment command frame, including the start bit, address bit, command code, data bit and check bit. Similarly, the color temperature control field is encapsulated into a color temperature adjustment command frame.
[0068] In the control interface selection, the I2C interface is selected as the communication interface because the DDC / CI protocol is used. The computing center configures the clock frequency, address bit width and other parameters of the I2C interface.
[0069] During the adjustment command sending phase, the computing center sends brightness and color temperature adjustment commands in sequence through the I2C interface at a clock frequency of 100kHz. After each command is sent, it waits for the response signal of the display device, and the timeout period is set to 100ms.
[0070] When it is detected that the display device has not responded to the DDC / CI protocol command for three consecutive times, the protocol switching mechanism is triggered. The computing center switches to the MCU protocol and re-executes the parameter conversion, command packaging and sending process until the display device correctly responds to the adjustment command.
[0071] This application can achieve: By building a protocol parameter mapping table, unified management of different display control protocols is achieved, improving the compatibility and scalability of display parameter adjustment. The automatic protocol switching mechanism ensures that other available protocols can be switched in real time to continue to complete display parameter adjustment when the current protocol communication is abnormal, improving the fault tolerance and reliability of the system. Based on standardized interface selection and communication timing control, accurate adjustment of display parameters is achieved, ensuring the consistency of display effects, while reducing development difficulty and maintenance costs.
[0072] Figure 2 FIG. 1 is a schematic diagram of a structure of an adaptive display system based on ambient light data of a mobile device according to an embodiment of the present invention. Figure 2 As shown, the system comprises: The first unit is used to perform a brightness and color temperature range calibration of a display device, control the display brightness of the display device to gradually change from a minimum brightness value to a maximum brightness value; control the display color temperature to gradually change from a minimum color temperature value to a maximum color temperature value at each display brightness value of the display device; and collect actual display brightness data and actual display color temperature data of the display device under different display brightness and display color temperature combinations through an ambient light sensor of a mobile device; The second unit is used to collect ambient light data and calculate target display parameters, and collects ambient light brightness data, ambient light color temperature data and screen brightness data of the mobile device in real time through the ambient light sensor of the mobile device; the mobile device sends the ambient light brightness data, the ambient light color temperature data and the screen brightness data of the mobile device to the computing center through the wireless communication module; the computing center determines the ambient light brightness mapping relationship and the ambient light color temperature mapping relationship according to preset parameters, wherein the ambient light brightness mapping relationship is used to map the ambient light brightness data to between the minimum brightness value and the maximum brightness value, and the ambient light color temperature mapping relationship is used to map the ambient light color temperature data to between the minimum color temperature value and the maximum color temperature value; the computing center obtains the average brightness value and the average color temperature value of the mobile device under the current ambient light; the computing center calculates the target display brightness value and the target display color temperature value; The third unit is used for the computing center to generate a brightness adjustment instruction according to the target display brightness value, and to generate a color temperature adjustment instruction according to the target display color temperature value; the computing center sends the brightness adjustment instruction and the color temperature adjustment instruction to the display device through the display control interface; the display device receives and executes the brightness adjustment instruction to adjust the display brightness to the target display brightness value; the display device receives and executes the color temperature adjustment instruction to adjust the display color temperature to the target display color temperature value.
[0073] According to a third aspect of the embodiments of the present invention, An electronic device is provided, comprising: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the aforementioned method.
[0074] A fourth aspect of the embodiments of the present invention is: A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the aforementioned method is implemented.
[0075] The present invention may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present invention.
[0076] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. An adaptive display method based on ambient light data of a mobile device, characterized in that: include: Execute a brightness and color temperature range calibration of a display device, and control the display brightness of the display device to gradually change from a minimum brightness value to a maximum brightness value; Controlling the display color temperature to gradually change from a minimum color temperature value to a maximum color temperature value at each display brightness value of the display device; collecting actual display brightness data and actual display color temperature data of the display device at different display brightness and display color temperature combinations through an ambient light sensor of a mobile device; Collecting ambient light data and calculating target display parameters, collecting ambient light brightness data, ambient light color temperature data and screen brightness data of the mobile device in real time through the ambient light sensor of the mobile device; the mobile device sends the ambient light brightness data, the ambient light color temperature data and the screen brightness data of the mobile device to the computing center through the wireless communication module; the computing center determines the ambient light brightness mapping relationship and the ambient light color temperature mapping relationship according to preset parameters, wherein the ambient light brightness mapping relationship is used to map the ambient light brightness data to between the minimum brightness value and the maximum brightness value, and the ambient light color temperature mapping relationship is used to map the ambient light color temperature data to between the minimum color temperature value and the maximum color temperature value; the computing center obtains the average brightness value and the average color temperature value of the mobile device under the current ambient light; The computing center calculates a target display brightness value and a target display color temperature value; The computing center generates a brightness adjustment instruction according to the target display brightness value, and generates a color temperature adjustment instruction according to the target display color temperature value; the computing center sends the brightness adjustment instruction and the color temperature adjustment instruction to the display device through a display control interface; The display device receives and executes the brightness adjustment instruction to adjust the display brightness to the target display brightness value; The display device receives and executes the color temperature adjustment instruction to adjust the display color temperature to the target display color temperature value.
2. The method according to claim 1, characterized in that The computing center determines an ambient light brightness mapping relationship and an ambient light color temperature mapping relationship according to preset parameters, wherein the ambient light brightness mapping relationship is used to map the ambient light brightness data to between the minimum brightness value and the maximum brightness value, and the ambient light color temperature mapping relationship is used to map the ambient light color temperature data to between the minimum color temperature value and the maximum color temperature value, and includes: The computing center constructs an ambient light brightness data set based on the ambient light brightness data, constructs an ambient light color temperature data set based on the ambient light color temperature data, normalizes the ambient light brightness data set to obtain brightness mapping parameters, and normalizes the ambient light color temperature data set to obtain color temperature mapping parameters; Execute data mapping, wherein the computing center linearly maps the brightness mapping parameter with the minimum brightness value and the maximum brightness value to obtain a target display brightness value, and linearly maps the color temperature mapping parameter with the minimum color temperature value and the maximum color temperature value to obtain a target display color temperature value; A brightness adjustment instruction is generated according to the target display brightness value, and a color temperature adjustment instruction is generated according to the target display color temperature value, and the brightness adjustment instruction and the color temperature adjustment instruction are sent to the display device through a display control interface, and the display device is controlled to adjust display parameters according to the brightness adjustment instruction and the color temperature adjustment instruction.
3. The method according to claim 1, characterized in that The calculation center calculates the target display brightness value according to the formula L=(maximum brightness value-minimum brightness value)*[ambient light brightness mapping relationship+(screen brightness data-average brightness value)*brightness adjustment coefficient]+minimum brightness value; The calculation center calculates the target display color temperature value according to the formula C=(maximum color temperature value-minimum color temperature value)*[ambient light color temperature mapping relationship+(ambient light color temperature data-average color temperature value)*color temperature adjustment coefficient]+minimum color temperature value.
4. The method according to claim 1, characterized in that: The computing center generates a brightness adjustment instruction according to the target display brightness value, and generates a color temperature adjustment instruction according to the target display color temperature value; the computing center sends the brightness adjustment instruction and the color temperature adjustment instruction to the display device through a display control interface; The display device receives and executes the brightness adjustment instruction to adjust the display brightness to the target display brightness value; The display device receives and executes the color temperature adjustment instruction to adjust the display color temperature to the target display color temperature value, including: Receiving target display parameters, the computing center receives a target display brightness value and a target display color temperature value, and obtains a display control protocol type supported by the display device; Generate a display parameter adjustment instruction, the computing center converting the target display brightness value into a display brightness control field and converting the target display color temperature value into a display color temperature control field according to the display control protocol type; Constructing an adjustment instruction, the computing center encapsulates the display brightness control field into a brightness adjustment instruction that complies with the display control protocol type, and encapsulates the display color temperature control field into a color temperature adjustment instruction that complies with the display control protocol type; Establishing a communication connection with the display device, the computing center selecting a display control interface matching the display device according to the display control protocol type, and establishing a communication connection with the display device; Sending an adjustment instruction, the computing center sends the brightness adjustment instruction and the color temperature adjustment instruction to the display device through the display control interface according to the communication timing specified by the display control protocol type.
5. The method according to claim 4, characterized in that The method further comprises: Verify the instruction execution status, the computing center receives the instruction execution status information fed back by the display device, and when it is detected that the instruction execution status information indicates execution failure, re-execute the sending operation of the brightness adjustment instruction and the color temperature adjustment instruction.
6. The method according to claim 1, characterized in that The method further comprises: Acquire display device protocol information, the computing center detecting the display control protocol type supported by the display device, the display control protocol type including DDC / CI protocol, MCU protocol and graphics card driver API protocol; Establishing a protocol mapping table, wherein the computing center constructs a protocol parameter mapping table according to the display control protocol type, wherein the protocol parameter mapping table includes display parameter control field formats, communication timing parameters, and instruction frame formats for different display control protocol types; Receiving target display parameters, the computing center receives a target display brightness value and a target display color temperature value, and determines a parameter conversion rule corresponding to the current display control protocol type according to the protocol parameter mapping table; Performing protocol conversion, the computing center converts the target display brightness value into a display brightness control field corresponding to the current display control protocol type, and converts the target display color temperature value into a display color temperature control field corresponding to the current display control protocol type according to the parameter conversion rule; Constructing an adjustment instruction, the computing center obtains the instruction frame format of the current display control protocol type according to the protocol parameter mapping table, encapsulates the display brightness control field into a brightness adjustment instruction that complies with the instruction frame format, and encapsulates the display color temperature control field into a color temperature adjustment instruction that complies with the instruction frame format; Selecting a control interface, the computing center selecting a matching display control interface from a preset interface list according to the display control protocol type, the interface list including an I2C interface, a USB interface, and a graphics card driver interface; Sending an adjustment instruction, the computing center sending the brightness adjustment instruction and the color temperature adjustment instruction to the display device according to the communication timing parameters through the display control interface; Perform protocol switching. When it is detected that the display device does not respond to the adjustment instruction of the current display control protocol type, the computing center switches to other display control protocol types and re-executes the operations of protocol conversion, constructing adjustment instructions, and sending adjustment instructions.
7. An adaptive display system based on ambient light data of a mobile device, used to implement the method according to any one of claims 1 to 6, characterized in that: include: The first unit is used to perform brightness and color temperature range calibration of the display device, and control the display brightness of the display device to gradually change from a minimum brightness value to a maximum brightness value; Controlling the display color temperature to gradually change from a minimum color temperature value to a maximum color temperature value at each display brightness value of the display device; collecting actual display brightness data and actual display color temperature data of the display device at different display brightness and display color temperature combinations through an ambient light sensor of a mobile device; The second unit is used to collect ambient light data and calculate target display parameters, and collects ambient light brightness data, ambient light color temperature data and screen brightness data of the mobile device in real time through the ambient light sensor of the mobile device; the mobile device sends the ambient light brightness data, the ambient light color temperature data and the screen brightness data of the mobile device to the computing center through the wireless communication module; the computing center determines the ambient light brightness mapping relationship and the ambient light color temperature mapping relationship according to preset parameters, wherein the ambient light brightness mapping relationship is used to map the ambient light brightness data to between the minimum brightness value and the maximum brightness value, and the ambient light color temperature mapping relationship is used to map the ambient light color temperature data to between the minimum color temperature value and the maximum color temperature value; the computing center obtains the average brightness value and the average color temperature value of the mobile device under the current ambient light; The computing center calculates a target display brightness value and a target display color temperature value; A third unit is used for the computing center to generate a brightness adjustment instruction according to the target display brightness value, and to generate a color temperature adjustment instruction according to the target display color temperature value; the computing center sends the brightness adjustment instruction and the color temperature adjustment instruction to the display device through a display control interface; The display device receives and executes the brightness adjustment instruction to adjust the display brightness to the target display brightness value; The display device receives and executes the color temperature adjustment instruction to adjust the display color temperature to the target display color temperature value.
8. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Communication protocol conversion method, device and system
CN105635184A
Display system
CN106951208A
Server information monitoring method and device, and server
CN107342916A
Method for adjusting image quality parameter, and display device
CN107979782A
Test method and system for display module
CN110456537A
Cited By
Adjusting method and device of display equipment and display equipment
CN121438754A