A control method for preventing the car air-conditioning control panel from crashing

By setting cycle counting in the microcontroller, improving wake-up mode and low-power state management, and keeping the LIN component configuration unchanged, the problem of air conditioning control panel crash is solved, the user experience and fault positioning efficiency is improved, and the air conditioning control panel is prevented from wake-up at low power consumption.

CN116588012BActive Publication Date: 2025-07-29HEFEI CHANGAN AUTOMOBILE
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310614929.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-24
Publication Date
2025-07-29
Estimated Expiration
2043-05-24

AI Technical Summary

Technical Problem

The prior art lacks effective methods to prevent the vehicle air conditioning control panel from crashing, resulting in poor user experience.

Method used

By setting a cycle counting mechanism in the microcontroller, the wake-up method of the air conditioner control panel is improved, and the vehicle is powered off and the LIN component configuration remains unchanged when the microcontroller is replaced, preventing the air conditioner control panel from crashing.

Benefits of technology

Effectively prevent the air conditioner control panel from crashing, improve user experience, quickly locate fault codes, ensure that the air conditioner control panel is awakened in low power consumption, and avoid black screen problems caused by software errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116588012B_ABST
    Figure CN116588012B_ABST
Patent Text Reader

Abstract

The present invention discloses a control method for preventing the automotive air-conditioning control panel from crashing. The method includes performing any one or more of the following steps: Step a: When the flag bit of the calculator in the single-chip microcomputer waits for timeout or the analog-to-digital conversion of the battery voltage signal times out, the loop count is incremented until it reaches the first preset number of clock cycles, and then the current loop is directly exited; Step b: The wake-up mode of the air-conditioning control panel is set to collect the falling edge of the level, and the air-conditioning control panel is woken up only when a change in the level is detected; Step c: After the vehicle is powered off, the air-conditioning control panel enters the low-power state, so that even when the vehicle system is in the low-power state after the next vehicle power-on or receiving the message wake-up signal, the air-conditioning control panel can be woken up. The advantages of the present invention are: It can prevent the automotive air-conditioning control panel from crashing and improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automobiles, and particularly relates to a control method for preventing the air-conditioning control panel of an automobile from crashing. Background Technique

[0002] An automotive air conditioner is one of the key components of an automobile. Generally, the front-row air-conditioning control panel of an automobile is arranged in the middle of the instrument panel. The wake-up, air volume, mode selection, A / C, AUTO, front defrosting, rear defrosting, temperature adjustment, internal and external circulation of the air conditioner are controlled through the buttons on the air-conditioning panel. There are also some vehicle models that integrate one or all of the three buttons of AUTO, A / C, and temperature adjustment into the vehicle-mounted large screen. Since there are many buttons involved on the air-conditioning control panel and the entire control software is relatively complex, occasional problems such as the air-conditioning panel crashing and the touch buttons failing often occur during development and verification; because the panel involves styling and the time left for engineering development and verification is short, it is often difficult to solve such problems before the product is launched. Therefore, a common control method is needed to prevent the air-conditioning control panel of an automobile from crashing through optimized design in the design stage.

[0003] Chinese Patent Publication No. CN111301104A discloses an air-conditioning control method, device and vehicle when the vehicle-mounted screen crashes, including judging whether the vehicle-mounted screen fails according to the communication signal of the central control screen; if so, entering the first judgment mode; if not, maintaining the original working state; in the first judgment mode, judging whether the failure duration of the central control screen reaches a preset duration; if so, entering the second judgment mode; if not, maintaining the original working state; in the second judgment mode, judging whether the air conditioner is turned on; if so, controlling the air conditioner to enter the anti-fogging mode, if not, turning on the air conditioner and controlling the air conditioner to enter the anti-fogging mode, which can control the vehicle to adjust the air conditioner when the central control screen crashes, prevent the window from fogging, and ensure the driving safety of the vehicle. However, this patent application controls the air conditioner to turn on when the screen has already crashed, and cannot solve the essential problem of the air-conditioning control panel crashing.

[0004] Chinese Patent Publication No. CN107145402A discloses a method for detecting software crashes and an electronic device. The method includes: monitoring an interrupt instruction for detecting software crashes; executing an interrupt for detecting software crashes based on the interrupt instruction, where the interrupt includes a first interrupt for running an executable program; monitoring the execution status of the first interrupt, and determining that a software crash has occurred when it is detected that the execution of the first interrupt is abnormal. This patent application has the characteristics of being simple and convenient, and provides a good user experience. However, this patent application only provides a method for detecting software crashes, and does not provide a way to solve software crashes, so this patent application cannot be applied to the preventive control of air-conditioning panel crashes. In addition, Chinese Patent Publication No. CN104773047A discloses an electric vehicle air-conditioning panel control system and its control method, but it only discloses the electrical connection relationships of each functional module and the functions of the functional modules, and does not disclose a control method for preventing air-conditioning control panel crashes.

[0005] In summary, the prior art lacks a control method for preventing crashes of automotive air-conditioning control panels, resulting in an insufficiently good user experience. Summary of the Invention

[0006] The technical problem to be solved by the present invention is how to provide a control method for preventing crashes of automotive air-conditioning control panels and improving the user experience.

[0007] The present invention solves the above technical problems by the following technical means: A control method for preventing crashes of automotive air-conditioning control panels, the method includes performing any one or more of the following steps:

[0008] Step a: When the flag bit of the calculator in the single-chip microcomputer times out during waiting or the analog-to-digital conversion of the battery voltage signal times out, accumulate the loop count until it reaches a first preset number of clock cycles, directly exit the current loop, and continue to execute the next program;

[0009] Step b: Set the wake-up mode of the air-conditioning control panel to collect the falling edge of the level, and only execute the wake-up of the air-conditioning control panel when a change in the level is detected;

[0010] Step c: After the vehicle is powered off, put the air-conditioning control panel into a low-power state, so that even when the vehicle system is in a low-power state after the vehicle is powered on again or a message wake-up signal is received, the air-conditioning control panel can be woken up.

[0011] Further, the step a includes:

[0012] When the flag bit of the calculator in the single-chip microcomputer is waiting for timeout, the number of the first while loop is incremented. When the flag bit of the calculator has not reached the timeout requirement, the number of the first while loop continues to be incremented until it is incremented to the first preset number of clock cycles, and the current first while loop is directly exited, and the next program is continued to execute, ensuring that the program will not get stuck in the first while loop and cannot jump out.

[0013] Furthermore, the first preset number is 40,000 to 60,000.

[0014] Further, step a further includes:

[0015] When waiting for the analog-to-digital conversion of the battery voltage signal to complete, the number of the second while loop is incremented. When the analog-to-digital conversion of the battery voltage signal times out, the number of the second while loop continues to be incremented until it is incremented to the first preset number of clock cycles, and the current second while loop is directly exited, and the next program is continued to execute, ensuring that the program will not get stuck in the second while loop and cannot jump out.

[0016] Furthermore, the first preset number is 400 to 600.

[0017] Further, step a further includes:

[0018] When the backlights of the automatic air-conditioning button and the inside / outside circulation button are both on, it is judged that the loop of the program is normal; when the backlight of the automatic air-conditioning button is off and the backlight of the inside / outside circulation button is on, it is judged that the loop waiting for button sampling of the program is abnormal; when the backlight of the automatic air-conditioning button is on and the backlight of the inside / outside circulation button is off, it is judged that the loop of the analog-to-digital conversion of the battery voltage signal in the program is abnormal; when the backlight of the automatic air-conditioning button is off and the backlight of the inside / outside circulation button is off, it is judged that the loop of the flag bit of the calculator in the single-chip microcomputer in the program is abnormal.

[0019] Further, step b further includes:

[0020] Before the air-conditioning control panel enters the sleep state, the relevant functional peripherals and communication peripheral functions are closed in advance. After the switch interrupt instruction is executed, the sleep instruction is immediately executed. After the sleep instruction is executed, the wake-up source is enabled, and the enable pin of the switch interrupt instruction is opened.

[0021] Further, step c further includes:

[0022] In the bench test cases in the product development stage, the low-power voltage range test is covered to verify in advance whether the air-conditioning control panel can be normally woken up under low voltage.

[0023] Further, the low-power voltage range is a voltage range less than 9V.

[0024] Further, the control method further includes step d:

[0025] When the single-chip microcomputer of the air-conditioning control panel is replaced, the LIN component configuration version on the software of the replaced single-chip microcomputer remains unchanged compared with that before replacement, so as to ensure that the backlight signal transmission message can be read normally. Herein, the LIN component is an automotive underlying network protocol component.

[0026] The advantages of the present invention are as follows:

[0027] (1) The present invention provides a control method for preventing the air-conditioning control panel from crashing, avoiding the air-conditioning control panel from crashing, and thus improving the user experience.

[0028] (2) The present invention counts the cycles of the air-conditioning control panel by counting, and jumps out of the loop when the first preset number is reached, preventing it from falling into an infinite loop and causing the control panel to crash.

[0029] (3) Since the software program runs fast and it is often very difficult to accurately locate the fault code, the present invention quickly identifies the fault state through the four combinations of the on and off of the background lights of the automatic air-conditioning button and the internal and external circulation buttons on the air-conditioning control panel when the air-conditioning control panel runs the program, enabling the actual application to quickly locate the fault code and facilitating the maintenance of the staff.

[0030] (4) After the vehicle is powered off, during the period when the air-conditioning control panel enters the sleep state to the fully sleep state, if an intermediate instruction is executed between the switch interrupt instruction in the interrupt mode and the issued sleep instruction, there is a risk that the switch interrupt instruction enable pin will be closed. Once the switch interrupt instruction enable pin is closed, after the air-conditioning panel executes the sleep instruction, if the air-conditioning panel needs to be woken up again later, but because the switch interrupt instruction enable pin is closed, the air-conditioning panel cannot be woken up and crashes. The present invention changes the wake-up mode of the air-conditioning control panel to collect the falling edge of the level, and immediately executes the sleep instruction after the switch interrupt instruction is executed. After the sleep instruction is executed, the wake-up source is enabled, and the switch interrupt instruction enable pin is opened to prevent the execution of an intermediate instruction between the switch interrupt instruction in the interrupt mode and the issued sleep instruction, thereby avoiding crashing.

[0031] (5) After the vehicle is powered off, the present invention turns off the background light, message sending / receiving, and control actuators (such as the blower, etc.) of the air-conditioning control panel, thereby ensuring that the air-conditioning control panel can quickly enter the deep sleep state, so that even when the vehicle system is in a low-power state after the next vehicle power-on or receiving a message wake-up signal, the air-conditioning control panel can be woken up, preventing the air-conditioning control panel from crashing due to the low power of the system.

[0032] When the single-chip microcomputer of the air-conditioning control panel is replaced, the application program interfaces of the LIN-related components on the single-chip microcomputer software are also updated when the software development environment is opened, and error responses appear on the software, resulting in the failure to read the message sent by the backlight signal and the black screen of the panel. When the single-chip microcomputer of the air-conditioning control panel is replaced in the present invention, the LIN component configuration version on the software of the replaced single-chip microcomputer remains unchanged compared with that before replacement, ensuring that the message sent by the backlight signal can be read normally and avoiding the crash of the air-conditioning control panel. Description of the Drawings

[0033] Figure 1 It is a flowchart of a control method for preventing the crash of an automotive air-conditioning control panel disclosed in an embodiment of the present invention;

[0034] Figure 2 It is a schematic diagram of the external structure of the air-conditioning control panel in a control method for preventing the crash of an automotive air-conditioning control panel disclosed in an embodiment of the present invention;

[0035] Figure 3 It is a schematic diagram of a black screen case caused by the update of the LIN-related main components during the replacement of the single-chip microcomputer chip in a control method for preventing the crash of an automotive air-conditioning control panel disclosed in an embodiment of the present invention. Detailed Embodiments

[0036] 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 in conjunction with the embodiments of the present invention. Obviously, the described embodiments are some but not 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.

[0037] As Figure 1 and Figure 2 shown, a control method for preventing the crash of an automotive air-conditioning control panel, the method includes:

[0038] Step a: When the flag bit of the calculator in the single-chip microcomputer waits for timeout or the analog-to-digital conversion of the battery voltage signal times out, the loop count is incremented until it reaches the first preset number of clock cycles, and the current loop is directly exited to continue executing the next program;

[0039] Step b: Set the wake-up mode of the air-conditioning control panel to collect the falling edge of the level, and the air-conditioning control panel is woken up only when a change in the level is detected;

[0040] Step c: After the vehicle is powered off, the air-conditioning control panel enters the low-power state, so that the air-conditioning control panel can be woken up even when the vehicle system is in the low-power state after the vehicle is powered on again or a message wake-up signal is received.

[0041] Step d: When replacing the single-chip microcomputer on the air-conditioning control panel, ensure that the LIN component configuration version on the software of the replaced single-chip microcomputer remains unchanged compared with that before replacement, so as to ensure that the backlight signal transmission message can be read normally. Herein, the LIN component is an automotive underlying network protocol component.

[0042] There is no specific limitation on the execution order of the above four steps, and the above four steps only present several strategies to prevent the air-conditioning control panel from crashing. In actual applications, there is no particularly necessary connection among these steps. Any one or more of the above four steps can be adopted to prevent the air-conditioning control panel from crashing. The following details the principles and processes of each step to prevent the control panel from crashing.

[0043] 1. The principle and process of the said step a are as follows:

[0044] The while loop is a basic loop mode of a computer. When the condition is satisfied, it enters the loop. After entering the loop, when the condition is not satisfied, it jumps out of the loop. The general expression of the while statement is: while(expression) { loop body}. In the waiting key sampling while() loop code before the rectification of the air-conditioning panel, the program waits for the calculator flag bit in the single-chip microcomputer to be equal to 1. When the calculator flag bit is equal to 1, the program jumps out of the while loop to execute the next program, and at the same time clears the calculator flag bit equal to 1. However, such a while loop may have the following potential risks: the timer counter stops counting, the clock source providing timing stops working, etc., resulting in the flag bit count in the single-chip microcomputer not reaching the timeout count value requirement, or a failure occurs in a peripheral module (such as a timer, an analog-to-digital converter, etc.), causing the calculator flag bit unable to be set to 1, thus causing the program to be stuck in the while loop and unable to jump out, and unable to call other subsequent programs, resulting in the air-conditioning panel crashing. The present invention optimally adds an i variable to time the timeout loop of the calculator flag bit in the single-chip microcomputer. The timing limit is 50,000 clock cycles (for such a while loop, the normal loop is 28 clock cycles. Exceeding this loop cycle is judged as an abnormal phenomenon. The unit of the clock cycle is microseconds, and the clock cycle is directly related to the frequency of the single-chip microcomputer chip itself). When the flag bit of the calculator in the single-chip microcomputer times out, the number of the first while loop is incremented; when the flag bit of the calculator does not reach the timeout requirement for a long time, the number of the first while loop will also continue to increment until it reaches 50,000 clock cycles. When the exit condition is reached, it will directly exit the current first while loop and continue to execute the next program, ensuring that the program will not be stuck in the first while loop and unable to jump out. It should be noted that 50,000 clock cycles is only a preferred implementation. In actual applications, the range of the clock cycle can be 40,000 - 60,000.

[0045] In the while() loop code waiting for analog-to-digital conversion before rectification, the program will wait for the external capacitor voltage of the battery voltage signal to complete analog-to-digital conversion before exiting the second while loop (for the sake of distinction, it is called the second while loop here. In practice, both the first while loop and the second while loop are basic loop patterns). However, there may be the following potential risks in such a second while loop: the failure of the battery voltage signal leads to unsuccessful analog-to-digital conversion, the input voltage of the single-chip microcomputer is incorrect, or communication failure, etc., resulting in the inability to complete analog-to-digital conversion of the battery voltage signal. The above abnormalities will cause the program to be stuck in the second while loop and unable to jump out, and it cannot call other subsequent programs, causing the air-conditioning panel to freeze. The present invention optimally adds an i variable to perform cyclic counting on the acquisition of the battery voltage signal, and the counting limit time is 500 clock cycles (for such a second while loop, the normal cycle period is 2 clock cycles, and exceeding this value is judged as an abnormal phenomenon); when waiting for the analog-to-digital conversion of the battery voltage signal to complete, the second while loop accumulates; when waiting for the analog-to-digital conversion of the battery voltage signal to timeout, the second while loop will also continue to accumulate until the number of cycles accumulates to 500 clock cycles. When the exit condition is reached, it will directly exit the current second while loop and continue to execute the next program to ensure that the program will not be stuck. It should be noted that the above 500 clock cycles are only a preferred implementation, and in practical applications, the range of the above clock cycles can be 400-600.

[0046] In practical applications, assuming that there is more than one while() loop code in the touch algorithm of the air conditioner control panel, how to determine which specific while() loop code causes the panel to freeze is a problem that needs to be considered. Since the software program runs relatively fast, it is usually very difficult to accurately locate the fault code. In the present invention, a newly written test program is inserted into the original software program of the air conditioner control panel. By the four combinations of the on and off states of the backlight lamps of the automatic air conditioner button and the internal and external circulation buttons on the air conditioner control panel when the program is running, the fault state can be quickly identified. When the backlight lamps of both the automatic air conditioner button and the internal and external circulation buttons are on, it is determined that the while() loop of the program is normal; when the backlight lamp of the automatic air conditioner button is off and the backlight lamp of the internal and external circulation buttons is on, it is determined that the while() loop of waiting for button sampling in the program is abnormal; when the backlight lamp of the automatic air conditioner button is on and the backlight lamp of the internal and external circulation buttons is off, it is determined that the second while() loop of waiting for analog-to-digital conversion in the program is abnormal; when the backlight lamps of both the automatic air conditioner button and the internal and external circulation buttons are off, it is determined that the first while() loop of the single-chip microcomputer low-voltage working state in the program is abnormal; through the above program operation and judgment, it is possible to quickly lock which specific while() loop fault causes the air conditioner panel to freeze and go black, facilitating the staff to quickly lock the fault point and handle the fault in time.

[0047] 2. The principle and process of step b are as follows:

[0048] Generally, after the vehicle is powered off, during the period from when the air conditioner control panel enters the sleep state to the complete sleep state, if an intermediate instruction is executed between the switch interrupt instruction in the interrupt mode and the issued sleep instruction, there is a risk that the intermediate instruction will turn off the enable pin of the switch interrupt instruction. Once the enable pin of the interrupt instruction is turned off, after the air conditioner control panel executes the sleep instruction, if it is necessary to wake up the air conditioner control panel later, since the enable pin of the interrupt instruction is turned off, the air conditioner control panel cannot be woken up and will freeze. In the present invention, the wake-up mode of the air conditioner control panel is changed to collect the falling edge of the level (if the wake-up mode is high level or low level, if the interrupt is not switched, the interrupt will be frequently triggered), that is, the wake-up can be executed only when a certain change amount of the level is collected; before the air conditioner control panel enters the sleep state, the functions of relevant functional peripherals and communication peripherals (such as CAN, LIN, indicator lights, I / O ports, timers, analog-to-digital converters, etc.) should be turned off in advance. After the switch interrupt instruction is executed, the sleep instruction is immediately executed. After the sleep instruction is executed, the wake-up source is enabled, and the enable pin of the switch interrupt instruction is turned on to prevent the execution of intermediate instructions between the switch interrupt instruction in the interrupt mode and the issued sleep instruction.

[0049] 3. The principle and process of step c are as follows:

[0050] When an external power supply (battery voltage) is input and passes through the power management module, a stable 5V voltage is output to supply power to the single-chip microcomputer. As the battery voltage decreases during the use of the whole vehicle, the output voltage of the power management module to the single-chip microcomputer also continuously decreases. In practical applications, when the battery supply voltage gradually decreases from 12V and approaches about 8V, the background light starts to go out. Continuing to adjust the input voltage, after it drops to 4.8V and remains at this level for about 60s without unplugging the plug, when the voltage returns to 12V, the background light still cannot be lit, resulting in a black screen on the panel. Generally, the operating voltage of the air-conditioning control panel is 9 - 16V (when the voltage > 16V, the air-conditioning panel stops working; when the voltage < 9V, it is necessary to ensure that the air-conditioning panel can be normally woken up). For the above cases of black screen on the panel, how to ensure that the air-conditioning panel can also be normally woken up when the power supply voltage is lower than 9V and in the low-power consumption state? The rectification measures provided by the present invention are as follows: (1) In the bench test cases during the product development stage, the voltage range test below 9V should be covered to verify in advance whether the air-conditioning panel can be normally woken up under low voltage; (2) After the whole vehicle is powered off, the air-conditioning panel must turn off the background light, message sending / receiving, and control actuators (such as the blower, etc.), ensuring that the air-conditioning panel can quickly enter the deep sleep state with an energy consumption current ≤ 1mA, that is, the so-called low-power consumption state, so that the panel can be normally woken up when the whole vehicle is powered on again or receives a message wake-up signal next time.

[0051] 4. The principle and process of step d are as follows:

[0052] As Figure 3 shown, when the single-chip microcomputer chip of the air-conditioning control panel is replaced due to reasons such as power supply guarantee, the application program interfaces of the LIN (automobile underlying network protocol) related components on the corresponding single-chip microcomputer software are also updated when the software development environment is opened, and an error response appears in the software (the message sending cycle after the update is 90ms, the message sending cycle before the update is 150ms, and the message sending cycle after the update is 90ms, which is less than the normal message receiving cycle of 100ms, resulting in the message sent by the backlight signal not being received). Debugging finds that the message reading of the backlight signal sending fails, resulting in a black screen on the panel. Because the bench test of the air-conditioning control panel cannot fully simulate the same message sending and receiving environment as the actual vehicle, some problems are not fully verified, resulting in the final problem flowing out and the failure of the air-conditioning control panel to have a black screen. The rectification measure provided by the present invention is that when the single-chip microcomputer chip of the air-conditioning control panel is replaced, the configuration version of the LIN (automobile underlying network protocol) component on the single-chip microcomputer software must be kept unchanged compared with that before replacement to ensure that the message sent by the backlight signal can be normally read.

[0053] Through the above technical solutions, the present invention provides a control method for preventing the air-conditioning control panel from crashing, avoiding the crashing of the air-conditioning control panel, thereby improving the user experience.

[0054] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A control method for preventing the air-conditioning control panel for automobiles from crashing, characterized in that, The method includes performing the following steps: Step a: When the flag bit of the calculator in the single-chip microcomputer times out during waiting or the analog-to-digital conversion of the battery voltage signal times out, the loop count is incremented until it reaches the first preset number of clock cycles, and then the current loop is directly exited, and the next program is continued to be executed; Step b: Before the air-conditioning control panel enters the sleep state, the relevant functional peripherals and communication peripheral functions are turned off in advance. After the switch interrupt instruction is executed, the sleep instruction is immediately executed. After the sleep instruction is executed, the wake-up source is enabled, and the enable pin of the switch interrupt instruction is opened; the wake-up mode of the air-conditioning control panel is set to collect the falling edge of the level, and the air-conditioning control panel is woken up only when a change in the level is detected; Step c: In the bench test cases during the product development stage, the <9V voltage range test should be covered to verify in advance whether the air-conditioning panel can be normally woken up under low voltage; after the vehicle is powered off, the air-conditioning panel must turn off the backlight, message sending / receiving, and control actuators to ensure that the air-conditioning panel can quickly enter the deep sleep state with an energy consumption current ≤ 1mA; After the vehicle is powered off, the air-conditioning control panel enters the low-power state, so that the air-conditioning control panel can be woken up even when the vehicle system is in the low-power state after the next vehicle power-on or when a message wake-up signal is received.

2. The control method for preventing the automotive air-conditioning control panel from crashing according to claim 1, wherein The said step a includes: When the flag bit of the calculator in the single-chip microcomputer times out during waiting, the count of the first while loop is incremented. When the flag bit of the calculator has not reached the timeout requirement all the time, the count of the first while loop is continuously incremented until it reaches the first preset number of clock cycles, and then the current first while loop is directly exited, and the next program is continued to be executed, ensuring that the program will not get stuck in the first while loop and cannot jump out.

3. A control method for preventing the air-conditioning control panel for automobiles from crashing, as claimed in claim 2, wherein, The first preset number is 40000 - 60000.

4. A control method for preventing the car air-conditioning control panel from crashing according to claim 1, characterized in that, The said step a further includes: When waiting for the analog-to-digital conversion of the battery voltage signal to complete, the count of the second while loop is incremented. When the analog-to-digital conversion of the battery voltage signal times out, the count of the second while loop is continuously incremented until it reaches the first preset number of clock cycles, and then the current second while loop is directly exited, and the next program is continued to be executed, ensuring that the program will not get stuck in the second while loop and cannot jump out.

5. A control method for preventing the vehicle air-conditioning control panel from crashing according to claim 4, characterized in that, The first preset number is 400 - 600.

6. The control method for preventing the air-conditioning control panel in an automobile from crashing according to claim 1, characterized in that, The said step a further includes: When the backlights of both the automatic air-conditioning button and the internal / external circulation button are on, it is judged that the loop of this program is normal; when the backlight of the automatic air-conditioning button is off and the backlight of the internal / external circulation button is on, it is judged that the loop waiting for button sampling of this program is abnormal; when the backlight of the automatic air-conditioning button is on and the backlight of the internal / external circulation button is off, it is judged that the loop of the analog-to-digital conversion of the battery voltage signal in this program is abnormal; when the backlights of both the automatic air-conditioning button and the internal / external circulation button are off, it is judged that the loop of the flag bit of the calculator in the single-chip microcomputer in this program is abnormal.

7. A control method for preventing the air conditioner control panel in an automobile from crashing, as described in claim 1, characterized in that It further includes step d: When replacing the single-chip microcomputer on the air-conditioning control panel, ensure that the LIN component configuration version in the software of the replaced single-chip microcomputer remains the same as before replacement, so as to ensure that the backlight signal transmission message can be read normally. Among them, the LIN component is an automotive underlying network protocol component.

Citation Information

Patent Citations

  • Electric automobile air conditioner panel control system and control method thereof

    CN104773047A

  • Method for detecting software crash and electric device

    CN107145402A

  • Air conditioner control method and device in case of black screen of vehicle machine and vehicle

    CN111301104A

  • Multi-wake-up-source input low-power-consumption chip architecture system and quick starting method

    CN111142654A

  • Software upgrading method and device and air conditioner control panel

    CN113342385A