Adaptive Display Method Based on Ambient Light Data of Mobile Devices

By collecting ambient light data on a mobile device and generating adjustment instructions using the computing center to adjust the brightness and color temperature of the display device in real time, the problem of failure to consider ambient light color temperature factors in the prior art is solved, and the matching of the display effect and personalized response to the user experience is achieved.

CN119580668BActive Publication Date: 2025-07-22ZHEJIANG SHUXIN NETWORK CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510142816.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-10
Publication Date
2025-07-22
Estimated Expiration
2045-02-10

AI Technical Summary

Technical Problem

The display devices of existing mobile devices fail to effectively consider ambient light and color temperature adjustments in brightness and color temperature adjustments, resulting in a mismatch between the display effect and the lack of real-time and personalized response.

Method used

The ambient light sensor of the mobile device collects the brightness and color temperature data of the display device, establishes a mapping relationship, uses the computing center to generate adjustment instructions, and adjusts the brightness and color temperature of the display device in real time to adapt to ambient light changes.

Benefits of technology

It realizes accurate, real-time and personalized adjustment of display parameters, improves the adaptability and user experience of display effects, reduces the computing burden, and enhances the system operation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119580668B_ABST
    Figure CN119580668B_ABST
Patent Text Reader

Abstract

The present invention provides an adaptive display method based on ambient light data of a mobile device, which relates to the field of display technology. The method includes calibrating the brightness and color temperature range of a display device, collecting ambient light data and calculating target display parameters, determining the brightness value and color temperature value of a target display according to the mapping relationship between ambient light brightness and color temperature, and generating corresponding adjustment instructions to be sent to the display device for execution of adjustment. The present invention can adaptively adjust the display parameters of a display device in real time according to ambient light conditions, improve the display effect, and reduce the visual fatigue of users.
Need to check novelty before this filing date? Find Prior Art

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 in which mobile devices are located often change, which poses higher requirements for the brightness and color temperature adjustment of display devices. At present, most mobile devices are equipped with ambient light sensors to detect the surrounding light conditions and automatically adjust the brightness of the display screen accordingly.

[0003] Traditional display device brightness adjustment technologies mainly rely on simple ambient light brightness detection and directly adjust the display brightness through a preset mapping relationship. Although this method improves the display effect to a certain extent, there are still some obvious deficiencies.

[0004] First of all, the existing technology only considers the ambient light brightness factor and ignores the important influence of ambient light color temperature on the visual experience. In lighting environments with different color temperatures, the same brightness display content will bring different visual feelings to users, which may lead to a mismatch between the display effect and the actual viewing experience.

[0005] Secondly, traditional brightness adjustment schemes often adopt fixed mapping algorithms and do not consider the personalized needs of different users in different scenarios. This one-size-fits-all adjustment method cannot meet the differentiated requirements of users for the display effect in different usage scenarios.

[0006] Finally, the existing display parameter adjustment lacks real-time performance and accuracy. Since the ambient light conditions may change rapidly, and traditional technologies have delays in data collection, processing, and display parameter adjustment, it is difficult to respond to environmental changes in a timely manner, affecting the user's viewing experience. This lag may lead to a lack of coordination between the display effect and the actual environment, causing visual fatigue. Summary of the Invention

[0007] Embodiments of the present invention provide an adaptive display method based on ambient light data of a mobile device, which can solve the problems in the existing technology.

[0008] In the first aspect of the embodiments of the present invention, an adaptive display method based on ambient light data of a mobile device is provided, including:

[0009] Perform calibration on the brightness color temperature range of the display device, and control the display brightness of the display device to gradually change from the minimum brightness value to the maximum brightness value; at each display brightness value of the display device, control the display color temperature to gradually change from the minimum color temperature value to the maximum color temperature value; collect the actual display brightness data and actual display color temperature data of the display device under different combinations of display brightness and display color temperature through the ambient light sensor of the mobile device;

[0010] Collect ambient light data and calculate the target display parameters. Real-time collect the ambient light brightness data, ambient light color temperature data, and the screen brightness data of the mobile device 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 calculation center through the wireless communication module; the calculation center determines the ambient light brightness mapping relationship and the ambient light color temperature mapping relationship according to the preset parameters, where 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 calculation center obtains the average brightness value and average color temperature value of the mobile device under the current ambient light; the calculation center calculates the target display brightness value and the target display color temperature value;

[0011] The calculation center generates a brightness adjustment instruction according to the target display brightness value and a color temperature adjustment instruction according to the target display color temperature value; the calculation 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.

[0012] The calculation center determines the ambient light brightness mapping relationship and the ambient light color temperature mapping relationship according to the preset parameters, where 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, including:

[0013] The calculation 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;

[0014] Execute data mapping. The computing center linearly maps the brightness mapping parameter with the minimum brightness value and the maximum brightness value to obtain the 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 the target display color temperature value;

[0015] Generate a brightness adjustment instruction according to the target display brightness value, generate a color temperature adjustment instruction according to the target display color temperature value, and send the brightness adjustment instruction and the color temperature adjustment instruction to the display device through the display control interface to control the display device to adjust the display parameters according to the brightness adjustment instruction and the color temperature adjustment instruction.

[0016] The computing 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;

[0017] The computing 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.

[0018] The computing center generates a brightness adjustment instruction according to the target display brightness value and 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, including:

[0019] Receive target display parameters. The computing center receives the target display brightness value and the target display color temperature value, and obtains the type of display control protocol supported by the display device;

[0020] Generate a display parameter adjustment instruction. The computing center converts the target display brightness value into a display brightness control field according to the type of display control protocol, and converts the target display color temperature value into a display color temperature control field;

[0021] Construct an adjustment instruction. The computing center encapsulates the display brightness control field into a brightness adjustment instruction that conforms to the type of display control protocol, and encapsulates the display color temperature control field into a color temperature adjustment instruction that conforms to the type of display control protocol;

[0022] Establish a communication connection with the display device. The computing center selects a display control interface that matches the display device according to the type of the display control protocol, and establishes a communication connection with the display device;

[0023] Send adjustment instructions. 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 type of the display control protocol.

[0024] The method further includes:

[0025] Verify the instruction execution status. The computing center receives the instruction execution status information fed back by the display device. When it detects that the instruction execution status information indicates a failure, it re-executes the operation of sending the brightness adjustment instruction and the color temperature adjustment instruction.

[0026] The method further includes:

[0027] Obtain the display device protocol information. The computing center detects the type of the display control protocol supported by the display device. The type of the display control protocol includes the DDC / CI protocol, the MCU protocol, and the graphics card driver API protocol;

[0028] Establish a protocol mapping table. The computing center constructs a protocol parameter mapping table according to the type of the display control protocol. The protocol parameter mapping table includes the display parameter control field format, the communication timing parameters, and the instruction frame format for different types of display control protocols;

[0029] Receive the target display parameters. The computing center receives the target display brightness value and the target display color temperature value, and determines the parameter conversion rule corresponding to the current display control protocol type according to the protocol parameter mapping table;

[0030] Perform 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 according to the parameter conversion rule, and converts the target display color temperature value into a display color temperature control field corresponding to the current display control protocol type;

[0031] Construct adjustment instructions. 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 conforms to the instruction frame format, and encapsulates the display color temperature control field into a color temperature adjustment instruction that conforms to the instruction frame format;

[0032] Select a control interface. The computing center selects a matching display control interface from a preset interface list according to the type of the display control protocol. The interface list includes an I2C interface, a USB interface, and a graphics card driver interface;

[0033] Send adjustment instructions. The computing center sends 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;

[0034] Execute 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.

[0035] In a second aspect of the embodiments of the present invention, an adaptive display system based on ambient light data of a mobile device is provided, including:

[0036] A first unit for performing calibration of the display brightness and color temperature range 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; collecting actual display brightness data and actual display color temperature data of the display device under different combinations of display brightness and display color temperature through an ambient light sensor of the mobile device;

[0037] A second unit for 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 a wireless communication module; the computing center determines an ambient light brightness mapping relationship and an ambient light color temperature mapping relationship according to preset parameters, where 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 an average brightness value and an 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;

[0038] A third unit, configured for the computing center to generate a brightness adjustment instruction according to the target display brightness value and 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.

[0039] The third aspect of the embodiments of the present invention

[0040] provides an electronic device, including:

[0041] a processor;

[0042] a memory for storing instructions executable by the processor;

[0043] wherein, the processor is configured to call the instructions stored in the memory to execute the method described above.

[0044] The fourth aspect of the embodiments of the present invention,

[0045] provides a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the method described above is implemented.

[0046] The beneficial effects of this application are as follows:

[0047] In the present invention, the actual display data of the display device under different combinations of display brightness and display color temperature is collected by the ambient light sensor of the mobile device, and accurate calibration data for the brightness and color temperature range of the display device is established, providing a reliable data basis for subsequent adaptive adjustment of display parameters and improving the accuracy of display parameter adjustment.

[0048] In the present invention, the computing center establishes a mapping relationship according to the ambient light brightness data and ambient light color temperature data, and calculates the target display parameters in combination with the screen brightness data of the mobile device, realizing the intelligent adjustment of display parameters and enabling the display effect to better adapt to changes in ambient light.

[0049] The present invention adopts the method of unified processing of ambient light data by the computing center to generate adjustment instructions, reducing the computing burden of the mobile device. At the same time, automatic adjustment of brightness and color temperature is realized through the display control interface, improving the operation efficiency of the system and enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 is a schematic flowchart of the adaptive display method based on mobile device ambient light data according to the embodiments of the present invention;

[0051] Figure 2 This is a schematic structural diagram of the adaptive display system based on the ambient light data of the mobile device according to the embodiments of the present invention. Detailed implementation manners

[0052] In order to make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are only a part rather than all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0053] The technical solutions of the present invention will be described in detail below with specific embodiments. These specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

[0054] Figure 1 This is a schematic flowchart of the adaptive display method based on the ambient light data of the mobile device according to the embodiments of the present invention. As Figure 1 shown, the method includes:

[0055] S101. Perform calibration on the brightness and color temperature range of the display device, and control the display brightness of the display device to gradually change from the minimum brightness value to the maximum brightness value; at each display brightness value of the display device, control the display color temperature to gradually change from the minimum color temperature value to the maximum color temperature value; collect the actual display brightness data and actual display color temperature data of the display device under different combinations of display brightness and display color temperature through the ambient light sensor of the mobile device;

[0056] S102. Collect ambient light data and calculate target display parameters. Real-time collect the ambient light brightness data, ambient light color temperature data, and the screen brightness data of the mobile device 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 calculation center through the wireless communication module; the calculation center determines the ambient light brightness mapping relationship and the ambient light color temperature mapping relationship according to the preset parameters, where the ambient light brightness mapping relationship is used to map the ambient light brightness data 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 between the minimum color temperature value and the maximum color temperature value; the calculation center obtains the average brightness value and average color temperature value of the mobile device under the current ambient light; the calculation center calculates the target display brightness value and the target display color temperature value;

[0057] S103. The computing center generates a brightness adjustment instruction according to the target display brightness value and 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.

[0058] In an alternative embodiment, the computing center determines an ambient light brightness mapping relationship and an ambient light color temperature mapping relationship according to preset parameters, where the ambient light brightness mapping relationship is used to map the ambient light brightness data 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 between the minimum color temperature value and the maximum color temperature value, including:

[0059] 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;

[0060] Execute data mapping. The computing center linearly maps the brightness mapping parameters with the minimum brightness value and the maximum brightness value to obtain the target display brightness value, and linearly maps the color temperature mapping parameters with the minimum color temperature value and the maximum color temperature value to obtain the target display color temperature value;

[0061] Generate a brightness adjustment instruction according to the target display brightness value, generate a color temperature adjustment instruction according to the target display color temperature value, and send the brightness adjustment instruction and the color temperature adjustment instruction to the display device through the display control interface to control the display device to adjust the display parameters according to the brightness adjustment instruction and the color temperature adjustment instruction.

[0062] The computing center first receives the ambient light brightness data and the ambient light color temperature data collected by the ambient light sensor. The acquisition range of the ambient light brightness data is 0 - 1000 lux, and the acquisition range of the ambient light color temperature data is 2000K - 7000K. Taking sampling once per second as an example, sampling continuously for 60 seconds to obtain an ambient light brightness data set and an ambient light color temperature data set.

[0063] The collected ambient light luminance dataset is normalized. Specifically, the luminance mapping parameter is obtained by dividing the ambient light luminance data by the maximum sampling value of 1000 lux. For example, when the collected ambient light luminance value is 500 lux, the normalized luminance mapping parameter is 0.5. Similarly, the ambient light color temperature dataset is normalized. The color temperature mapping parameter is obtained by subtracting the minimum sampling value of 2000K from the ambient light color temperature data and then dividing by the sampling range of 5000K. For example, when the collected ambient light color temperature value is 4500K, the normalized color temperature mapping parameter is 0.5.

[0064] Next, data mapping processing is performed. The brightness adjustment range of the display is from the minimum brightness value of 50 nits to the maximum brightness value of 400 nits, and the color temperature adjustment range is from the minimum color temperature value of 3000K to the maximum color temperature value of 6500K. The computing center linearly maps the normalized luminance mapping parameter to the display brightness adjustment range to obtain the target display brightness value. Specifically, when the luminance mapping parameter is 0.5, the target display brightness value is 225 nits. Similarly, the normalized color temperature mapping parameter is linearly mapped to 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.

[0065] 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.

[0066] This application can achieve:

[0067] Through the normalization processing and linear mapping of the ambient light data, the precise conversion from ambient light parameters to display parameters is realized, ensuring a good match between the display effect and the ambient light conditions, and improving the viewing comfort of the displayed content.

[0068] By using the dataset method for ambient light parameter collection and processing, the data fluctuations that may be caused by single sampling are avoided, the stability and reliability of ambient light adaptation adjustment are improved, and the frequent fluctuations of display parameters are reduced.

[0069] Based on the display control interface, the coordinated adjustment of brightness and color temperature is realized, ensuring the real-time and accuracy of display parameter adjustment. At the same time, the system implementation complexity is simplified and the system operation efficiency is improved.

[0070] In an alternative embodiment, the computing 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;

[0071] The computing 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.

[0072] First, obtain the basic parameter information of the display, including the maximum brightness value, minimum brightness value, maximum color temperature value, and minimum color temperature value. These parameters are the inherent properties of the display and can be obtained through the display driver or hardware interface.

[0073] Real-time collect ambient light data through an ambient light sensor, 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 is approximately 4000 Kelvin.

[0074] Preprocess the collected ambient light data and calculate the average brightness value and average color temperature value over a period of time. The arithmetic mean of the last 10 sampling data can be taken, which can avoid the influence of instantaneous fluctuations in ambient light.

[0075] Establish a mapping relationship between ambient light brightness and display brightness. When the ambient light is dim, the display brightness should be appropriately reduced; when the ambient light is bright, the display brightness should be correspondingly increased. The mapping relationship can be implemented through a piecewise linear function. For example, in the ambient light 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.

[0076] Similarly, establish a mapping relationship between ambient light color temperature and display color temperature. 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 correspondingly increased. The color temperature can be divided into a cold color temperature range (above 5000K) and a warm color temperature range (below 5000K) for mapping.

[0077] Introduce a brightness adjustment coefficient and a color temperature adjustment coefficient to fine-tune the display effect. The value range of these coefficients is between 0 and 1 and can be set according to user preferences. A larger coefficient value will make the display more sensitive to changes in ambient light.

[0078] Based on the above mapping relationship and adjustment coefficients, combined with real-time ambient light data, calculate the target display brightness value and color temperature value. The calculation results are sent for execution through the display driver, realizing the automatic adjustment of display parameters.

[0079] This application can achieve:

[0080] By establishing a dynamic mapping relationship between ambient light and display parameters, intelligent adjustment of the display brightness and color temperature is realized, improving the display effect and user viewing experience.

[0081] Adopting a combination of segmented mapping and adjustment coefficients not only ensures the smoothness of display parameter adjustment but also provides the flexibility of personalized adjustment to meet the viewing needs of different users.

[0082] The system has good real-time performance and stability. By means of multiple sampling and averaging, the influence of instantaneous fluctuations in ambient light is effectively suppressed, keeping the display effect within an appropriate range at all times and effectively reducing user visual fatigue.

[0083] In an optional implementation manner, the computing center generates a brightness adjustment instruction according to the target display brightness value and 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 receiving and executing the color temperature adjustment instruction to adjust the display color temperature to the target display color temperature value includes:

[0084] Receiving target display parameters, the computing center receives the target display brightness value and the target display color temperature value, and obtains the type of display control protocol supported by the display device;

[0085] Generating display parameter adjustment instructions, the computing center converts the target display brightness value into a display brightness control field according to the display control protocol type, and converts the target display color temperature value into a display color temperature control field;

[0086] Constructing adjustment instructions, the computing center encapsulates the display brightness control field into a brightness adjustment instruction conforming to the display control protocol type, and encapsulates the display color temperature control field into a color temperature adjustment instruction conforming to the display control protocol type;

[0087] Establishing a communication connection with the display device, the computing center selects a display control interface matching the display device according to the display control protocol type and establishes a communication connection with the display device;

[0088] Send adjustment instructions, and the computing center sends the brightness adjustment instruction and the color temperature adjustment instruction to the display device according to the communication timing specified by the display control protocol type through the display control interface.

[0089] The specific implementation process of the method for adjusting the brightness and color temperature of a display device is as follows:

[0090] First, the computing center receives target display parameters. Specifically, it receives the target display brightness value, with a value range of 0 - 100, where 0 represents the darkest and 100 represents the brightest; it receives the target display color temperature value, with a value range of 2700K - 6500K, where 2700K is yellowish and 6500K is bluish. At the same time, it obtains the type of display control protocol supported by the display device. Common protocol types include the DDC / CI protocol, USB protocol, etc.

[0091] Second, the computing center generates display parameter adjustment instructions. For the DDC / CI protocol, the target display brightness value of 0 - 100 is linearly mapped to the hexadecimal value 0x00 - 0xFF as the display brightness control field; the target display color temperature value of 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 form.

[0092] Next, the computing center constructs adjustment instructions. 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 exclusive OR operation on all bytes in the instruction except the start bit.

[0093] Then, the computing center establishes a communication connection with the display device. For the DDC / CI protocol, it establishes a connection with the display device through the I2C bus, and the I2C address is 0x37; for the USB protocol, it establishes a connection with the display device through a virtual serial port, and the baud rate is 9600bps.

[0094] Finally, the computing center sends adjustment instructions. Taking the DDC / CI protocol as an example, first send the brightness adjustment instruction, and after waiting for the display device to return an acknowledgment frame (0x6E), then send the color temperature adjustment instruction. If the acknowledgment frame is not received within 500ms, the instruction is resent, and it is resent at most 3 times.

[0095] Specific data case: When the brightness value of the target display is 80 and the color temperature value of the target display is 5000K, the processing process using the DDC / CI protocol is as follows: 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; Sending these two instructions through the I2C bus, the display device can achieve the expected display effect after execution.

[0096] This application can achieve:

[0097] This 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.

[0098] By performing the display parameter adjustment step by step and adopting the standard protocol format and communication timing, the reliable transmission and execution of the adjustment instructions are ensured, and the success rate of the display effect adjustment is improved.

[0099] This method can select the appropriate control protocol and interface 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.

[0100] In an optional implementation manner, the method further includes:

[0101] Verifying the instruction execution status, the computing center receives the instruction execution status information fed back by the display device, and when it detects that the instruction execution status information indicates a failure in execution, it re-executes the sending operations of the brightness adjustment instruction and the color temperature adjustment instruction.

[0102] After the computing center sends the brightness adjustment instruction and the color temperature adjustment instruction to the display device, it is necessary to verify the execution status of the instructions. After receiving the adjustment instruction, the display device will perform the corresponding brightness adjustment or color temperature adjustment operation and generate the instruction execution status information to feedback to the computing center.

[0103] The computing center receives the execution status information fed back by the display device through the set communication interface. The execution status information includes key information such as instruction identification, execution result identification, and time stamp. Among them, the instruction identification is used to distinguish the execution status of the brightness adjustment instruction or the color temperature adjustment instruction, the execution result identification is used to indicate whether the instruction is successfully executed, and the time stamp is used to record the specific time point of the instruction execution.

[0104] 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 the completion of the execution at the same time.

[0105] After receiving the execution status information, the computing center first parses the execution result identifier in the status information. When it detects that the execution result identifier indicates a failure in execution, the computing center will initiate a retransmission mechanism. The retransmission mechanism includes regenerating the adjustment instruction, setting the retransmission times limit, controlling the retransmission time interval, etc. For example, the maximum number of retransmissions is set to 3 times, and the time interval for each retransmission is 1 second. When it detects a failure in execution, the computing center will resend the adjustment instruction after 1 second until the execution is successful or the maximum number of retransmissions is reached.

[0106] To ensure the reliability of the instruction execution, the computing center will also set an execution timeout judgment mechanism. By comparing the instruction sending time with the status feedback time, when the preset timeout time threshold is exceeded, the instruction retransmission operation will also be triggered. For example, the timeout time threshold is set to 5 seconds. When the execution status feedback is not received after 5 seconds, it is regarded as a failure in execution and retransmitted.

[0107] This application can achieve:

[0108] By setting up an instruction execution status verification mechanism, it is possible to promptly detect the situation where the adjustment instruction fails to execute, ensure the normal operation of the brightness and color temperature adjustment functions of the display device, and improve the reliability of the system.

[0109] By establishing a status feedback mechanism between the computing center and the display device, a closed-loop control of the adjustment process is achieved, making the entire adjustment process controllable and monitorable, and enhancing the stability and maintainability of the system.

[0110] By setting up an instruction retransmission mechanism and a timeout judgment mechanism, automatic compensation control can be performed when a failure in execution is detected, avoiding the problem that the adjustment function fails due to a single instruction execution failure, and enhancing the fault tolerance and robustness of the system.

[0111] In an alternative embodiment, the method further includes:

[0112] Obtain the display device protocol information. The computing center detects the type of display control protocol supported by the display device. The type of display control protocol includes the DDC / CI protocol, the MCU protocol, and the graphics card driver API protocol;

[0113] Establish a protocol mapping table. The computing center constructs a protocol parameter mapping table according to the display control protocol type. The protocol parameter mapping table includes the display parameter control field format, communication timing parameters, and instruction frame format for different display control protocol types;

[0114] Receive target display parameters. The computing center receives the target display brightness value and the target display color temperature value, and determines the parameter conversion rule corresponding to the current display control protocol type according to the protocol parameter mapping table;

[0115] Execute protocol conversion. The computing center converts the target display brightness value into the display brightness control field corresponding to the current display control protocol type according to the parameter conversion rule, and converts the target display color temperature value into the display color temperature control field corresponding to the current display control protocol type;

[0116] Construct adjustment instructions. 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 conforms to the instruction frame format, and encapsulates the display color temperature control field into a color temperature adjustment instruction that conforms to the instruction frame format;

[0117] Select a control interface. The computing center selects a matching display control interface from a preset interface list according to the display control protocol type. The interface list includes I2C interface, USB interface, and graphics card driver interface;

[0118] Send adjustment instructions. 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 parameters;

[0119] Execute 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 the protocol conversion, the construction of adjustment instructions, and the sending of adjustment instructions.

[0120] During the process of obtaining the display device protocol information, the computing center first scans the connected display devices through the system interface and reads the EDID information block of the display device. By parsing the function support bits in the EDID information block, it can be determined whether the display device supports the DDC / CI protocol. At the same time, it detects whether the display device has an MCU communication interface and whether the current system has loaded the graphics card driver program. For example, if a certain model of display supports the DDC / CI protocol and has an MCU interface, then these two protocol types are recorded.

[0121] In the establishment process of the protocol mapping table, for the DDC / CI protocol, the brightness control field uses a numerical range of 0 - 100, the color temperature control field uses the Kelvin unit such as 3000K - 10000K, and the communication uses the standard timing of the I2C bus. For the MCU protocol, the brightness field uses a range value of 0 - 255, the color temperature uses the RGB trichromatic ratio value, and the communication is based on the USB serial port at 9600 baud rate. For the graphics card driver API, the parameter format defined by the standard Windows Display Control interface is used.

[0122] 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. Querying the protocol mapping table shows that the current DDC / CI protocol is adopted, and the percentage brightness value needs to be converted to an integer value of 75 within the range of 0 - 100, while the color temperature value remains unchanged at 6500K.

[0123] In the protocol conversion stage, according to the mapping rules, the computing center converts the brightness value of 75 to the brightness control field 0x4B of the DDC / CI protocol, and converts the color temperature value of 6500K to the color temperature control field 0x196C. If it is the MCU protocol, it needs to be converted to the corresponding RGB ratio value.

[0124] When constructing the adjustment instruction, according to the frame format of the DDC / CI protocol, 0x4B is encapsulated into a complete brightness adjustment instruction 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 instruction frame.

[0125] In the control interface selection, since the DDC / CI protocol is adopted, the I2C interface is selected as the communication interface. The computing center configures parameters such as the clock frequency and address bit width of the I2C interface.

[0126] In the stage of sending the adjustment instruction, the computing center sequentially sends the brightness and color temperature adjustment instructions through the I2C interface at a clock frequency of 100kHz. After each instruction is sent, it waits for the response signal from the display device, and the timeout is set to 100ms.

[0127] When it is detected that the display device fails to respond to the DDC / CI protocol instruction three times in a row, the protocol switching mechanism is triggered. The computing center switches to the MCU protocol and re - executes the parameter conversion, instruction encapsulation, and sending processes until the display device correctly responds to the adjustment instruction.

[0128] This application can achieve:

[0129] The unified management of different display control protocols is achieved by constructing a protocol parameter mapping table, which improves the compatibility and scalability of display parameter adjustment. The protocol automatic switching mechanism ensures that when the current protocol communication is abnormal, other available protocols can be switched in real time to continue to complete the display parameter adjustment, enhancing the fault tolerance and reliability of the system. Based on the standardized interface selection and communication timing control, the precise adjustment of display parameters is realized, ensuring the consistency of the display effect, while reducing the development difficulty and maintenance cost.

[0130] Figure 2 FIG. is a schematic structural diagram of an adaptive display system based on ambient light data of a mobile device according to an embodiment of the present invention, as Figure 2 shown, the system includes:

[0131] The first unit is used to perform calibration of the display brightness and color temperature range of the display device, control the display brightness of the display device to gradually change from the minimum brightness value to the maximum brightness value; control the display color temperature to gradually change from the minimum color temperature value to the maximum color temperature value at each display brightness value of the display device; collect the actual display brightness data and actual display color temperature data of the display device under different combinations of display brightness and display color temperature through the ambient light sensor of the mobile device;

[0132] The second unit is used to collect ambient light data and calculate target display parameters, and collect ambient light brightness data, ambient light color temperature data and the 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 calculation center through a wireless communication module; the calculation center determines an ambient light brightness mapping relationship and an ambient light color temperature mapping relationship according to preset parameters, where the ambient light brightness mapping relationship is used to map the ambient light brightness data 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 between the minimum color temperature value and the maximum color temperature value; the calculation center obtains the average brightness value and average color temperature value of the mobile device under the current ambient light; the calculation center calculates the target display brightness value and the target display color temperature value;

[0133] The third unit is used for the calculation center to generate a brightness adjustment instruction according to the target display brightness value and generate a color temperature adjustment instruction according to the target display color temperature value; the calculation 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.

[0134] In a third aspect of the embodiments of the present invention,

[0135] a kind of electronic device is provided, including:

[0136] a processor;

[0137] a memory for storing instructions executable by the processor;

[0138] wherein, the processor is configured to call the instructions stored in the memory to execute the method described above.

[0139] In a fourth aspect of the embodiments of the present invention,

[0140] a computer-readable storage medium is provided, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the method described above is implemented.

[0141] The present invention may be a method, a device, a system and / or a computer program product. The computer program product may include a computer-readable storage medium on which computer-readable program instructions for executing various aspects of the present invention are loaded.

[0142] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions 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 Including: Performing calibration on the brightness color temperature range of the display device, and controlling the display brightness of the display device to gradually change from the minimum brightness value to the maximum brightness value; Controlling the display color temperature to gradually change from the minimum color temperature value to the maximum color temperature value at each display brightness value of the display device; collecting the actual display brightness data and actual display color temperature data of the display device under different combinations of display brightness and display color temperature through the ambient light sensor of the mobile device; Collecting ambient light data and calculating target display parameters, collecting ambient light brightness data, ambient light color temperature data and the screen brightness data of the mobile device in real time through the ambient light sensor of the mobile device; the mobile device sending the ambient light brightness data, the ambient light color temperature data and the screen brightness data of the mobile device to the calculation center through the wireless communication module; the calculation center determining the value of the brightness mapping parameter after normalizing the ambient light brightness data and the value of the color temperature mapping parameter after normalizing the ambient light color temperature data according to a preset method; the calculation center obtaining the average brightness value and average color temperature value of the mobile device under the current ambient light; The calculation center calculates the target display brightness value and the target display color temperature value; The calculation center generates a brightness adjustment instruction according to the target display brightness value and a color temperature adjustment instruction according to the target display color temperature value; the calculation 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; The method further includes: Obtaining the display device protocol information, the calculation center detecting the type of the display control protocol supported by the display device, and the type of the display control protocol including the DDC / CI protocol, the MCU protocol and the graphics card driver API protocol; Establishing a protocol mapping table, the calculation center constructing a protocol parameter mapping table according to the type of the display control protocol, and the protocol parameter mapping table including the display parameter control field format, communication timing parameters and instruction frame format for different types of display control protocols; Receiving the target display parameters, the calculation center receiving the target display brightness value and the target display color temperature value, and determining the parameter conversion rule corresponding to the current display control protocol type according to the protocol parameter mapping table; Performing protocol conversion, the calculation center converting the target display brightness value into the display brightness control field corresponding to the current display control protocol type according to the parameter conversion rule, and converting the target display color temperature value into the display color temperature control field corresponding to the current display control protocol type; Constructing an adjustment instruction, the calculation center obtaining the instruction frame format of the current display control protocol type according to the protocol parameter mapping table, encapsulating the display brightness control field into a brightness adjustment instruction conforming to the instruction frame format, and encapsulating the display color temperature control field into a color temperature adjustment instruction conforming to the instruction frame format; Select a control interface. The computing center selects a matching display control interface from a preset interface list according to the type of the display control protocol. The interface list includes an I2C interface, a USB interface, and a graphics card driver interface; Send adjustment instructions. The computing center sends 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; Execute 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, building adjustment instructions, and sending adjustment instructions.

2. The method according to claim 1, characterized in that, The computing center determines the values of the brightness mapping parameter after normalizing the ambient light brightness data and the values of the color temperature mapping parameter after normalizing the ambient light color temperature data according to a preset method, including: 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 a brightness mapping parameter, and normalizes the ambient light color temperature data set to obtain a color temperature mapping parameter; Execute data mapping. 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; Generate a brightness adjustment instruction according to the target display brightness value, generate a color temperature adjustment instruction according to the target display color temperature value, and send the brightness adjustment instruction and the color temperature adjustment instruction to the display device through the display control interface to control the display device to adjust the display parameters according to the brightness adjustment instruction and the color temperature adjustment instruction.

3. The method according to claim 1, wherein The computing center calculates the target display brightness value according to the formula L = (maximum brightness value - minimum brightness value) * [value of the brightness mapping parameter after normalizing the ambient light brightness data + (screen brightness data - average brightness value) * brightness adjustment coefficient] + minimum brightness value; The computing center calculates the target display color temperature value according to the formula C = (maximum color temperature value - minimum color temperature value) * [value of the color temperature mapping parameter after normalizing the ambient light color temperature data + (ambient light color temperature data - average color temperature value) * color temperature adjustment coefficient] + minimum color temperature value.

4. The method according to claim 1, wherein The computing center generates a brightness adjustment instruction according to the target display brightness value and 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, including: Receive target display parameters. The computing center receives the target display brightness value and the target display color temperature value, and obtains the type of display control protocol supported by the display device; Generate a display parameter adjustment instruction. The computing center converts the target display brightness value into a display brightness control field and the target display color temperature value into a display color temperature control field according to the type of display control protocol; Construct an adjustment instruction. The computing center encapsulates the display brightness control field into a brightness adjustment instruction conforming to the type of display control protocol, and encapsulates the display color temperature control field into a color temperature adjustment instruction conforming to the type of display control protocol; Establish a communication connection with the display device. The computing center selects a display control interface matching the display device according to the type of display control protocol, and establishes a communication connection with the display device; Send the 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 type of display control protocol.

5. The method according to claim 4, wherein The method further includes: Verify the instruction execution status. The computing center receives the instruction execution status information fed back by the display device. When it detects that the instruction execution status information indicates a failure in execution, it re-executes the sending operation of the brightness adjustment instruction and the color temperature adjustment instruction.

6. An adaptive display system based on the ambient light data of a mobile device, for implementing the method according to any one of claims 1-5, characterized in that, It includes: A first unit for performing calibration of the display brightness and color temperature range of the display device, controlling the display brightness of the display device to gradually change from the minimum brightness value to the maximum brightness value; At each display brightness value of the display device, control the display color temperature to gradually change from the minimum color temperature value to the maximum color temperature value; collect the actual display brightness data and actual display color temperature data of the display device under different combinations of display brightness and display color temperature through the ambient light sensor of the mobile device; A second unit for collecting ambient light data and calculating target display parameters. The ambient light brightness data, ambient light color temperature data, and the screen brightness data of the mobile device are collected 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 a wireless communication module; the computing center determines the value of the brightness mapping parameter after normalizing the ambient light brightness data and the value of the color temperature mapping parameter after normalizing the ambient light color temperature data according to a preset method; the computing center obtains the average brightness value and 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; A third unit for the computing center to generate a brightness adjustment instruction according to the target display brightness value and 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.

7. An electronic device, characterized in that, Comprising: A processor; A memory for storing instructions executable by the processor; Wherein, the processor is configured to call the instructions stored in the memory to execute the method according to any one of claims 1 to 5.

8. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the computer program instructions are executed by the processor, the method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Method for adjusting screen brightness and color temperature, terminal and storage medium

    CN111565289A