Display screen backlight setting method and device based on IIC communication protocol and storage medium

The high-frequency interaction between the display screen and the host is achieved through the IIC communication protocol, solving the display brightness adjustment and diagnosis problems, improving user experience and cost-effectiveness, and achieving rapid response and cost savings.

CN119274497APending Publication Date: 2025-01-07FAW CAR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411353541.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

The prior art is difficult to effectively adjust the brightness of the display screen, which may be too bright or too dark in different environments, affecting driving safety and user experience, and there are limitations and high cost problems in hardware pin diagnosis.

Method used

The IIC communication protocol is used to realize the high-frequency interaction between the display screen and the host, and the backlight brightness adjustment and abnormal diagnosis are performed through the IIC protocol, which eliminates hardware pin diagnosis and has the functions of fast response and cost saving.

Benefits of technology

It realizes flexible adjustment of display brightness, improves interaction convenience and user experience, saves hardware costs, and improves communication efficiency and signal quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119274497A_ABST
    Figure CN119274497A_ABST
Patent Text Reader

Abstract

The invention discloses a display screen backlight setting method based on an IIC communication protocol, computer equipment and a storage medium. The method comprises the following steps of performing power-on initialization; the vehicle machine performs display screen backlight setting and sends a backlight setting signal to a display screen; the display screen adjusts the backlight brightness of the display screen after receiving a backlight setting signal sent by the vehicle-mounted terminal, and transmits the adjusted current backlight brightness value of the screen back to the vehicle-mounted terminal; the host judges whether the backlight brightness setting of the display screen is successful or not according to the current backlight brightness value of the display screen; and when the backlight brightness setting of the display screen fails, the host diagnoses the brightness setting problem and returns to start the process of setting the backlight brightness of the display screen in the next turn. High-frequency interaction between the display screen and the host is achieved based on IIC communication, meanwhile, the display screen abnormity diagnosis and fault reporting functions are achieved, the display screen brightness can be flexibly adjusted in time according to the environment brightness or user selection, and use by a user is facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of vehicle cockpit display screen backlight setting, and in particular relates to a display screen backlight setting method based on an IIC communication protocol, a computer device and a storage medium. Background Art

[0002] The backlight brightness of the display directly affects the display effect and user experience of the display. As the functions of the smart cockpit become increasingly complex, the number and size of the display screens in the cockpit are gradually increasing, from the original single screen to dual screens, triple screens, and even multiple screens in the front and back rows. A good display effect of the display screen will bring users an excellent visual and interactive experience. In different environments, the display brightness of the display screen also needs to be adjusted according to the needs of the user and the surrounding environment to obtain the best display effect. Screen brightness that is too bright or too dark will have an adverse effect on the user's use of the vehicle. Too bright and dazzling may cause irritation to the user's forward visual range during driving. Too dark will also affect the user's inability to see the prompts or navigation information on the screen in time, causing driving inconvenience or adverse effects on driving safety. Summary of the invention

[0003] In order to solve the above problems existing in the prior art, the present invention provides a display backlight setting method, computer equipment and storage medium based on the IIC communication protocol, which realizes high-frequency interaction between the display screen and the host based on IIC communication, and has the functions of abnormal diagnosis and fault reporting of the display screen. The brightness of the display screen can be adjusted in time and flexibly according to the ambient brightness or user selection, and hardware pin diagnosis, communication, enable and other signals are saved at the same time, which has certain cost savings. It is estimated that the cost of a single vehicle can save 2-3 yuan compared with previous projects. High-speed communication also enables the setting to respond quickly, improves the convenience of interaction, and is convenient for users to use.

[0004] The objective of the present invention is achieved through the following technical solutions:

[0005] In a first aspect, the present invention provides a display screen backlight setting method based on the IIC communication protocol, comprising the following steps:

[0006] S1. Power on initialization;

[0007] S2. The vehicle computer sets the display backlight and sends the backlight setting signal to the display via the IIC protocol;

[0008] S3. After receiving the backlight setting signal sent by the vehicle computer, the display screen adjusts the backlight brightness of the display screen, and transmits the adjusted current screen backlight brightness value back to the vehicle computer through the IIC protocol;

[0009] S4. The host determines whether the current round of display backlight brightness setting is successful based on the current backlight brightness value of the display. If the current round of display backlight brightness setting fails, the process proceeds to step S5; if the current round of display backlight brightness setting is successful, the process proceeds to step S6;

[0010] S5. When the display backlight brightness setting fails in this round, the host computer diagnoses the brightness setting problem and returns to step S2 to start the next round of the vehicle computer setting the display backlight brightness process.

[0011] S6. After the backlight brightness setting of this round is successful, the vehicle computer ends the backlight brightness setting process of this round of the display screen.

[0012] Furthermore, the step S1 comprises:

[0013] S11. Car computer power on and initialize;

[0014] S12. Display screen is powered on and initialized;

[0015] S13. After the display screen is initialized, the GPIO pin is flipped and the signal status is sent to the vehicle terminal through the IIC protocol;

[0016] S14. The vehicle computer receives the GPIO signal, indicating that the vehicle computer knows that the display screen has been initialized and is ready for backlight setting.

[0017] Furthermore, the step S3 comprises:

[0018] S31. After receiving the backlight setting signal sent by the vehicle computer, the display screen flips the GPIO signal and sends it to the vehicle computer through the IIC protocol;

[0019] S32. The display adjusts the screen backlight brightness according to the received backlight setting signal;

[0020] S33. After the display screen completes the backlight brightness adjustment, it determines whether the backlight brightness setting is successful. If the backlight brightness setting is successful, it proceeds to step S34; if the backlight brightness setting is unsuccessful, it proceeds to step S36;

[0021] S34 updates the current screen backlight brightness value, and sends the updated current screen backlight brightness value to the vehicle through the IIC protocol, and proceeds to step S35;

[0022] S35. The host reads back the current brightness value of the display and proceeds to step S4;

[0023] S36. If the backlight brightness setting fails, the display screen self-diagnoses the reason for the brightness setting failure, and sends the current backlight brightness value and fault information to the vehicle computer via the IIC protocol, and enters step S4.

[0024] Furthermore, in step S31, the vehicle computer receives the flipped GPOI signal sent by the display screen, indicating that the vehicle computer knows that the display screen has received the backlight setting information sent by the vehicle computer.

[0025] Furthermore, in step S4, the vehicle computer compares the current backlight brightness value sent by the display screen to the vehicle computer with the brightness value stored in the vehicle computer to determine whether the backlight setting of this round is successful.

[0026] Furthermore, in step S4, if the comparison result of the vehicle computer is that the current display screen backlight brightness value is inconsistent with the backlight brightness value sent by the vehicle computer, it is determined that the backlight brightness setting of this round of display screen fails, and the process goes to step S5;

[0027] If the comparison result of the vehicle computer is that the current display screen backlight brightness value is the same as the backlight brightness value sent by the vehicle computer, it is determined that the current round of display screen backlight brightness setting is successful, and the process goes to step S6.

[0028] In a second aspect, an embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a display backlight setting method based on the IIC communication protocol as described in the present invention is implemented.

[0029] In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a display screen backlight setting method based on the IIC communication protocol as described in the present invention.

[0030] The present invention has the following advantages:

[0031] The present invention uses the IIC communication protocol to achieve a series of functions such as display backlight setting, initialization, diagnosis, and fault reporting, eliminating the corresponding functions of the original display screen that are implemented through hard-wired pins. At the same time, a communication monitoring mechanism between the display screen and the vehicle computer is provided to ensure that the communication link is effective and controllable. The present invention can achieve fast setting of the display backlight, and switch freely according to the environment or user. At the same time, it has the functions of display abnormality diagnosis and fault reporting, saving hardware pin diagnosis, communication, enable and other signals, and saving costs. It is estimated that the cost of a single vehicle can save 2-3 yuan compared with previous projects. Improve the convenience of interaction and facilitate user use. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings used in the description of the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the contents of the embodiments of the present invention and these drawings without creative work.

[0033] Figure 1 This is a flow chart of a display screen backlight setting method based on the IIC communication protocol described in Example 1 of the present invention;

[0034] Figure 2 This is a schematic diagram of the structure of a computer device described in Example 2 of the present invention. DETAILED DESCRIPTION

[0035] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0036] Example 1

[0037] like Figure 1 As shown, this embodiment is a display screen backlight setting method based on the IIC communication protocol, comprising the following steps:

[0038] S1. Power-on initialization:

[0039] S11. Car computer power on and initialize;

[0040] S12. Display screen is powered on and initialized;

[0041] S13. After the display screen is initialized, the GPIO pin will be flipped and the signal status will be sent to the vehicle terminal through the IIC protocol;

[0042] S14. The vehicle computer receives the GPIO signal, indicating that the vehicle computer knows that the display screen has been initialized and is ready for backlight setting.

[0043] S2. The vehicle computer sets the display backlight and sends the backlight setting signal to the display via the IIC protocol.

[0044] S3. After receiving the backlight setting signal sent by the vehicle computer, the display screen adjusts the backlight brightness of the display screen, and transmits the adjusted current screen backlight brightness value back to the vehicle computer through the IIC protocol:

[0045] S31. After the display screen receives the backlight setting signal sent by the vehicle computer, it flips the GPIO signal and sends it to the vehicle computer through the IIC protocol; the vehicle computer receives the flipped GPOI signal sent by the display screen, and the vehicle computer knows that the display screen has received the backlight setting information sent by the vehicle computer;

[0046] S32. The display adjusts the screen backlight brightness according to the received backlight setting signal;

[0047] S33. After the display screen completes the backlight brightness adjustment, it determines whether the backlight brightness setting is successful. If the backlight brightness setting is successful, it proceeds to step S34; if the backlight brightness setting is unsuccessful, it proceeds to step S36;

[0048] S34 updates the current screen backlight brightness value, and sends the updated current screen backlight brightness value to the vehicle through the IIC protocol, and proceeds to step S35;

[0049] S35. The host reads back the current brightness value of the display and proceeds to step S4;

[0050] S36. If the backlight brightness setting fails, the display screen self-diagnoses the reason for the brightness setting failure, and sends the current backlight brightness value and fault information to the vehicle computer via the IIC protocol, and enters step S4.

[0051] S4. The host determines whether the backlight brightness setting of the display screen is successful based on the current backlight brightness value of the display screen:

[0052] The vehicle computer compares the current backlight brightness value sent by the display screen to the vehicle computer with the brightness value stored in itself to determine whether the current backlight setting is successful;

[0053] If the comparison result of the vehicle computer is that the current display screen backlight brightness value is inconsistent with the backlight brightness value sent by the vehicle computer, it is determined that the backlight brightness setting of this round of display screen fails, and the process goes to step S5;

[0054] If the comparison result of the vehicle computer is that the current display screen backlight brightness value is the same as the backlight brightness value sent by the vehicle computer, it is determined that the current round of display screen backlight brightness setting is successful, and the process goes to step S6.

[0055] S5. When the display backlight brightness setting fails in this round, the host computer diagnoses the brightness setting problem and returns to step S2 to start the next round of the vehicle computer setting the display backlight brightness process.

[0056] S6. After the backlight brightness setting of this round is successful, the vehicle computer ends the backlight brightness setting process of this round of the display screen.

[0057] In previous projects, the backlight setting brightness, diagnosis and other operations are usually implemented through hard-wire signal mode to achieve the above-mentioned backlight setting function. This solution has great limitations and hysteresis. The hard-wire signal is implemented through high and low levels, PWM waveforms and other modes, and the brightness adjustment accuracy is low, and the diagnostic information is limited. The IIC communication protocol of the present invention realizes multiple functions (picture information transmission, diagnostic information transmission, function enablement, status interaction, etc.) through LVDS mode, saving hardware pins and related links. At the same time, the LVDS mode has better anti-interference performance and higher transmission rate than hard-wire electrical signals. Under the same environment, the transmission efficiency is higher and the signal quality is more stable.

[0058] The following is an example of an IIC communication method related to this invention:

[0059] Set the IIC communication message format and make strict requirements on master-slave control, message ID definition, message segment definition and frame length;

[0060] Backlight brightness setting, diagnosis and fault information reporting all have independent and unique message ID addresses;

[0061] The accuracy of the backlight setting can be defined according to the actual user needs.

[0062] Example 2

[0063] Figure 2 This is a schematic diagram of the structure of a computer device in Example 2 of the present invention. Figure 2 A block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 2 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0064] like Figure 2 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0065] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0066] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.

[0067] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 2 not shown, usually called a "hard drive"). Although Figure 2 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0068] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0069] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), may also communicate with one or more devices that enable a user to interact with the computer device 12, and / or communicate with any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 22. In addition, the computer device 12 in this embodiment, the display 24 does not exist as an independent individual, but is embedded in the mirror surface, and when the display surface of the display 24 is not displayed, the display surface of the display 24 and the mirror surface are visually integrated. In addition, the computer device 12 may also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and / or public network, such as the Internet) through a network adapter 20. As shown in the figure, the network adapter 20 communicates with other modules of the computer device 12 through a bus 18. It should be understood that although not shown in the figures, other hardware and / or software modules may be used in conjunction with the computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0070] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, for example, implementing a display screen backlight setting method based on the IIC communication protocol provided in an embodiment of the present invention.

[0071] Example 3

[0072] Embodiment 3 of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, a display screen backlight setting method based on the IIC communication protocol as provided in all the embodiments of the present application is implemented.

[0073] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.

[0074] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0075] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0076] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0077] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A display screen backlight setting method based on IIC communication protocol, characterized in that: The following steps are involved: S1. Power on initialization; S2. The vehicle computer sets the display backlight and sends the backlight setting signal to the display via the IIC protocol; S3. After receiving the backlight setting signal sent by the vehicle computer, the display screen adjusts the backlight brightness of the display screen, and transmits the adjusted current screen backlight brightness value back to the vehicle computer through the IIC protocol; S4. The host determines whether the current round of display backlight brightness setting is successful based on the current backlight brightness value of the display. If the current round of display backlight brightness setting fails, the process proceeds to step S5; If it is determined that the backlight brightness of the display screen is set successfully in this round, go to step S6; S5. When the display backlight brightness setting fails in this round, the host computer diagnoses the brightness setting problem and returns to step S2 to start the next round of the vehicle computer setting the display backlight brightness process. S6. After the backlight brightness setting of this round is successful, the vehicle computer ends the backlight brightness setting process of this round of the display screen.

2. A display screen backlight setting method based on IIC communication protocol as claimed in claim 1, characterized in that: The step S1 comprises: S11. Car computer power on and initialize; S12. Display screen is powered on and initialized; S13. After the display screen is initialized, the GPIO pin is flipped and the signal status is sent to the vehicle terminal through the IIC protocol; S14. The vehicle computer receives the GPIO signal, indicating that the vehicle computer knows that the display screen has been initialized and is ready for backlight setting.

3. A display screen backlight setting method based on IIC communication protocol as claimed in claim 1, characterized in that: The step S3 comprises: S31. After receiving the backlight setting signal sent by the vehicle computer, the display screen flips the GPIO signal and sends it to the vehicle computer through the IIC protocol; S32. The display adjusts the screen backlight brightness according to the received backlight setting signal; S33. After the display screen completes the backlight brightness adjustment, it determines whether the backlight brightness setting is successful. If the backlight brightness setting is successful, it proceeds to step S34; if the backlight brightness setting is unsuccessful, it proceeds to step S36; S34 updates the current screen backlight brightness value, and sends the updated current screen backlight brightness value to the vehicle through the IIC protocol, and proceeds to step S35; S35. The host reads back the current brightness value of the display and proceeds to step S4; S36. If the backlight brightness setting fails, the display screen self-diagnoses the reason for the brightness setting failure, and sends the current backlight brightness value and fault information to the vehicle computer via the IIC protocol, and enters step S4.

4. A display screen backlight setting method based on IIC communication protocol as claimed in claim 3, characterized in that: In step S31, the vehicle computer receives the flipped GPOI signal sent by the display screen, indicating that the vehicle computer knows that the display screen has received the backlight setting information sent by the vehicle computer.

5. A display screen backlight setting method based on IIC communication protocol as claimed in claim 1, characterized in that: In step S4, the vehicle computer compares the current backlight brightness value sent by the display screen to the vehicle computer with the brightness value stored in the vehicle computer to determine whether the backlight setting of this round is successful.

6. A display screen backlight setting method based on IIC communication protocol as claimed in claim 5, characterized in that: In step S4, if the comparison result of the vehicle computer is that the current display screen backlight brightness value is inconsistent with the backlight brightness value sent by the vehicle computer, it is determined that the backlight brightness setting of this round of display screen fails, and the process goes to step S5; If the comparison result of the vehicle computer is that the current display screen backlight brightness value is the same as the backlight brightness value sent by the vehicle computer, it is determined that the current round of display screen backlight brightness setting is successful, and the process goes to step S6.

7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the display screen backlight setting method based on the IIC communication protocol as described in any one of claims 1 to 6 is implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a display screen backlight setting method based on the IIC communication protocol as described in any one of claims 1 to 6 is implemented.