Search

CN-121985456-A - Method for solving problem of backlight flickering during switch powering-on

CN121985456ACN 121985456 ACN121985456 ACN 121985456ACN-121985456-A

Abstract

The invention relates to the technical field of automobile electronics and discloses a method for solving the problem of backlight flickering when a switch is powered on, which comprises the steps of judging whether effective historical data exists in a storage module after a system is powered on so as to determine initial control parameters; the method comprises the steps of executing instant pre-lighting based on initial control parameters, starting a dynamic synchronous timer to wait for bus signals and recording actual time consumption, stopping timing and executing smooth brightness transition if signals are received, executing fault tolerance processing if overtime, continuously monitoring a power state, responding to a power-down early warning event to capture the current brightness state, updating the self-adaptive synchronous overtime length in combination with the actual time consumption, and finally writing persistent data into a storage module. The invention realizes immediate power-on response through the history memory, eliminates the lag caused by communication delay, dynamically adjusts the waiting window through the self-adaptive algorithm, ensures the synchronous stability under different network environments by matching with the data filtering mechanism, and effectively solves the problems of backlight flickering and brightness jump.

Inventors

  • XU JING

Assignees

  • 中国第一汽车股份有限公司

Dates

Publication Date
20260505
Application Date
20251211

Claims (10)

  1. 1. The method for solving the problem of backlight flickering when the switch is powered on is characterized by comprising the following steps: S100, after the switch control system is electrified, judging whether effective historical data exists in a storage module, and determining initial control parameters, wherein the initial control parameters at least comprise an initial pre-lighting brightness value and self-adaptive synchronous overlength; S200, performing instant pre-lighting based on the initial control parameters, starting a dynamic synchronous timer to wait for a bus, thus obtaining a real-time brightness signal after receiving a bus signal, and simultaneously recording the actual time consumption of the synchronization; s300, continuously controlling backlight brightness according to the real-time brightness signal and the subsequently received bus signal, and monitoring a power state capture power-down early warning event of the switch control system in the process; and S400, responding to the power-down early warning event, capturing the current backlight brightness state, updating the self-adaptive synchronous timeout length by combining the actual time consumption, and finally writing the persistent data containing the updated parameters into the storage module.
  2. 2. The method for solving the problem of backlight flicker during power-up of a switch according to claim 1, wherein in step S100, the determining whether valid history data exists in the storage module comprises the following specific steps: Reading the validity flag bit and the historical operation data of the specific address area of the storage module; If the validity flag bit is a preset valid value and the cyclic redundancy check result of the read data is correct, judging that valid historical data exists, and calculating the initial control parameter based on the historical operation data; If the validity flag bit is a default value or a cyclic redundancy check result is wrong, judging that the valid historical data does not exist, assigning the initial pre-lighting brightness value to be a universal safety brightness value, and assigning the self-adaptive synchronous timeout length to be a preset maximum timeout threshold value; wherein the maximum timeout threshold is set to be greater than a start-up delay time of the vehicle bus network.
  3. 3. The method of claim 2, wherein the historical operating data includes a memory luminance value; And calculating the initial control parameter based on the historical operation data, specifically calculating the initial pre-lighting brightness value by adopting a state decoding formula.
  4. 4. The method for solving the problem of backlight flicker during power-up of a switch according to claim 1, wherein in step S200, the performing of the instant pre-lighting based on the initial control parameter and starting a dynamic synchronization timer for waiting for a bus comprise the following specific steps: Converting the initial pre-lighting brightness value into a pulse width modulation duty ratio value, and driving a backlight unit to light; loading the self-adaptive synchronous timeout length into the dynamic synchronous timer to start countdown, and synchronously starting measurement of the actual time consumption; monitoring an external bus, if a message containing the real-time brightness signal is received before the dynamic synchronous timer is triggered, immediately stopping the measurement of the actual time consumption, and executing brightness smooth transition.
  5. 5. The method for solving the problem of backlight flicker during power-up of a switch as claimed in claim 4, wherein said step of performing a smooth transition of brightness comprises: Calculating a difference between the real-time luminance signal and the initial pre-lighting luminance value currently output; Performing adjustment according to a preset time interval as a period, and if the difference is larger than a preset step value, increasing or decreasing the step value to a target direction; If the difference value is smaller than or equal to the step value, the output is directly updated to the target value corresponding to the real-time brightness signal.
  6. 6. The method for solving the problem of backlight flicker during power-up of a switch as claimed in claim 4, wherein step S200 further comprises a timeout fault-tolerant process: if the dynamic synchronous timer is triggered and the effective real-time brightness signal is not received, judging that a synchronous timeout event occurs; And maintaining the current initial pre-lighting brightness value unchanged, marking the actual time consumption recorded at this time as an invalid state, and indicating the subsequent step S400 to skip the calculation of the self-adaptive synchronous overlength time.
  7. 7. The method according to claim 1, wherein in step S400, the capturing the current backlight brightness state in response to the power-down early warning event comprises: and acquiring the current value of the real-time brightness signal at the power-down time, and processing the current value into a memory brightness value by adopting a state coding formula.
  8. 8. The method according to claim 1, wherein in step S400, the updating the adaptive synchronization timeout length in combination with the actual time consumption recorded specifically includes: calculating the absolute value of the difference between the actual time consumption and the historical average time consumption reference, and recording the absolute value as a single measurement deviation value; if the single measurement deviation value is smaller than or equal to a preset fluctuation tolerance threshold or larger than a preset structure change threshold, taking the actual time consumption as an algorithm input value; If the single measurement deviation value is larger than the fluctuation tolerance threshold and smaller than or equal to the structure change threshold, clamping correction is carried out on the actual time consumption, and a limited algorithm input value is generated; Calculating updated self-adaptive synchronous overlength time by using the algorithm input value or the limited algorithm input value; Wherein the fluctuation tolerance threshold is used for evaluating the degree of dispersion of the measurement data; the structure change threshold is larger than the fluctuation tolerance threshold and is used for judging whether the switch control system is in an initial learning stage or the network environment is changed.
  9. 9. The method for solving the problem of backlight flickering during power-on of a switch according to claim 8, wherein the updated adaptive synchronization timeout period is calculated by using the algorithm input value or the limited algorithm input value, in particular, an exponential weighted moving average algorithm.
  10. 10. The method of claim 1, wherein the persistent data in step S400 further comprises historical ambient light conditions; In step S100, when it is determined that the valid history data exists, the determining the initial control parameter further includes: acquiring a current ambient light state and comparing the current ambient light state with the historical ambient light state read from the storage module; If the current ambient light state is consistent with the historical ambient light state, determining the initial pre-lighting brightness value by utilizing the data read from the storage module; And if the current ambient light state is inconsistent with the historical ambient light state, calling a pre-stored ambient light mapping table, and searching a brightness value corresponding to the current ambient light state as the initial pre-lighting brightness value.

Description

Method for solving problem of backlight flickering during switch powering-on Technical Field The invention relates to the technical field of automobile electronics, in particular to a method for solving the problem of backlight flickering when a switch is powered on. Background With the development of an electronic and electric architecture of an automobile, an in-automobile switch assembly generally depends on an on-board bus network to receive a backlight brightness instruction from a vehicle body controller. In the existing control strategy, after the switch system is powered up, a bus signal needs to be waited for establishing connection to determine brightness output. However, due to wake-up delays in the vehicle bus network or bus load fluctuations, there is an indeterminate time delay between the switch system being powered up reset and the receipt of the first frame valid message. If the backlight is kept off during the period to cause visual response lag, if the fixed default brightness is adopted for pre-lighting, when the default value is different from the actual control signal received subsequently, the backlight brightness will be suddenly changed to generate flickering phenomenon Furthermore, in order to handle the signal waiting process, the prior art generally sets a fixed timeout threshold. Such static configurations are difficult to accommodate for network timing variations under different vehicle conditions. If the timeout threshold is set too short, the network is started slowly, the timeout is easy to be judged as timeout, so that the synchronization is failed, and if the timeout threshold is set too long, the response time of the system to the communication fault is prolonged. While some schemes attempt to introduce parameter adjustment mechanisms, there is often a lack of efficient screening logic for outlier data. When the network is subjected to sporadic jitter or interference, abnormal measurement data can directly influence control parameters, so that the synchronous stability of the system for long-term operation is insufficient. Disclosure of Invention Aiming at the defects of the prior art, the invention provides a method for solving the problem of backlight flickering caused by powering on a switch, and solves the problems of backlight response lag caused by bus communication delay and brightness jump flickering caused by mismatch between initial brightness setting and actual control signals in the powering on initialization stage of the traditional switch control system. In order to achieve the above purpose, the invention is realized by the following technical scheme: A method for solving the problem of backlight flickering when a switch is powered on comprises the following steps: S100, after the switch control system is electrified, judging whether effective historical data exists in a storage module, and determining initial control parameters, wherein the initial control parameters at least comprise an initial pre-lighting brightness value and self-adaptive synchronous overlength; S200, performing instant pre-lighting based on the initial control parameters, starting a dynamic synchronous timer to wait for a bus, thus obtaining a real-time brightness signal after receiving a bus signal, and simultaneously recording the actual time consumption of the synchronization; s300, continuously controlling backlight brightness according to the real-time brightness signal and the subsequently received bus signal, and monitoring a power state capture power-down early warning event of the switch control system in the process; and S400, responding to the power-down early warning event, capturing the current backlight brightness state, updating the self-adaptive synchronous timeout length by combining the actual time consumption, and finally writing the persistent data containing the updated parameters into the storage module. Further, in the above S100, the determination of whether valid history data exists in the storage module is implemented by reading the validity flag bit and the history operation data of the specific address area of the storage module. And performing logic verification on the read data, if the validity flag bit accords with a preset valid value and the cyclic redundancy check result is correct, judging that the historical data is valid, further calculating initial control parameters based on the historical operation data, and if the flag bit is a default value or the check result is incorrect, judging that the data is invalid. Under the condition that the data are invalid, the initial pre-lighting brightness value is set to be a universal safety brightness value, and the self-adaptive synchronous timeout length is set to be a preset maximum timeout threshold value, wherein the maximum timeout threshold value is larger than the starting delay time of the vehicle bus network so as to ensure that a communication waiting window is sufficient when the system operates