Detection Method, Device, Equipment and Storage Medium for Air Conditioner Fault

By performing preset sequence detection and outputting alarm information on each module of the MCU when the air conditioner is started, the problem of MCU failure after the air conditioner is used is solved, and the timely maintenance and normal operation of the MCU is achieved, and the air conditioner operation failure and safety hazards are avoided.

CN114509969BActive Publication Date: 2025-07-18QINGDAO HAIER AIR CONDITIONER GENERAL CORP LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210023157.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-10
Publication Date
2025-07-18
Estimated Expiration
2042-01-10

Smart Images

  • Figure CN114509969B_ABST
    Figure CN114509969B_ABST
Patent Text Reader

Abstract

This application belongs to the field of smart home appliances, and particularly relates to a method, device, equipment, and storage medium for detecting air conditioner faults. This application aims to solve the problem that the MCU cannot operate normally after the air conditioner has been used for a period of time. The method for detecting air conditioner faults in this application includes: when the usage duration of the air conditioner is greater than or equal to a preset duration, after the air conditioner is turned on, each module in the micro control unit of the air conditioner is detected in a preset order. The micro control unit at least includes the following modules: a clock module, an analog-to-digital conversion module, a first storage module, a central processor, and a second storage module; when any module in the micro control unit fails, a fault warning message is output.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application belong to the field of smart home appliances, and particularly relate to a method, device, equipment, and storage medium for detecting air conditioner faults. Background Art

[0002] After an air conditioner has been used for a period of time, one or more functional modules in the microcontroller unit (MCU) may be damaged by external forces or naturally aged, resulting in function failure, thereby causing a fault in the original control logic of the MCU.

[0003] Therefore, after an air conditioner has been used for a period of time, how to ensure the normal operation of the MCU therein has become a technical problem to be solved urgently. Summary of the Invention

[0004] To solve the above problems in the prior art, that is, to solve the problem that the MCU cannot operate normally after an air conditioner has been used for a period of time, the embodiments of the present application provide a method for detecting air conditioner faults. The method includes: when the usage duration of the air conditioner is greater than or equal to a preset duration, after the air conditioner is turned on, each module in the microcontroller unit of the air conditioner is detected in a preset order. The microcontroller unit at least includes the following modules: a clock module, an analog-to-digital conversion module, a first storage module, a central processing unit, and a second storage module; when any one of the modules in the microcontroller unit fails, a fault warning message is output.

[0005] The technical solution provided by the embodiments of the present application may include the following beneficial effects: After an air conditioner has been used for a period of time, by detecting each module in the microcontroller unit of the air conditioner in a specific order, as long as one of the modules fails, a warning message is output, so that the user can repair the fault of the air conditioner in time according to the warning message. Therefore, the problem that the air conditioner malfunctions due to the failure of the microcontroller unit after being used for a period of time is avoided, and the purpose that the microcontroller unit can operate normally due to timely repair of the microcontroller unit is achieved.

[0006] In a preferred technical solution of the above method for detecting air conditioner faults, the preset order is the clock module, the analog-to-digital conversion module, the first storage module, the central processing unit, and the second storage module.

[0007] The technical solution provided by the embodiments of the present application may include the following beneficial effects: Detecting each module in the microcontroller unit in a specific order can improve the efficiency of detecting the microcontroller unit, thereby quickly determining the module that fails in the microcontroller unit.

[0008] In the preferred technical solution of the above air conditioner fault detection method, each module in the micro control unit of the air conditioner is detected in a preset order, including: obtaining a clock signal to be detected in the clock module in a first time period, where the first time period is after the usage duration; correspondingly, in the case that any module in the micro control unit fails, a fault warning message is output, including: in the case that the clock frequency of the clock signal to be detected is less than or equal to a first preset frequency threshold, or the clock frequency is greater than or equal to a second preset frequency threshold, controlling the warning module of the air conditioner to output a first fault warning message, where the first fault warning message is used to prompt the user that the clock module has failed, the second preset frequency threshold is greater than the first preset frequency threshold, and the fault warning message includes the first fault warning message.

[0009] The technical solution provided by the embodiments of the present application may include the following beneficial effects: By determining whether the clock frequency of the clock signal to be detected in the clock module in the first time period is within a preset frequency range, it can be detected whether the clock module has failed. If the clock frequency of the clock signal to be detected is within the preset frequency range, it means that the clock module has not failed, and at this time, the detection of the next module can be continued. Therefore, it can accurately determine whether the clock module has failed, and thus timely output a warning message when a failure occurs, so as to facilitate the user to repair the faulty clock module. Therefore, it avoids the problem that the air conditioner malfunctions due to the failure of the micro control unit after being used for a period of time, and realizes the purpose that the micro control unit can operate normally due to timely repair of the micro control unit.

[0010] In the preferred technical solution of the above air conditioner fault detection method, each module in the micro control unit of the air conditioner is detected in a preset order, including: obtaining an analog signal to be detected in the analog-to-digital conversion module in a second time period under the condition that the preset voltage value remains unchanged, where the second time period is after the first time period; converting the analog signal to be detected into a digital signal to be detected; correspondingly, in the case that any module in the micro control unit fails, a fault warning message is output, including: in the case that the digital signal to be detected is not within the preset signal value range, controlling the warning module to output a second fault warning message, where the second fault warning message is used to prompt the user that the analog-to-digital conversion module has failed, and the fault warning message includes the second fault warning message.

[0011] The technical solutions provided by the embodiments of the present application may include the following beneficial effects: By determining whether the digital signal to be detected converted from the analog signal to be detected by the analog-to-digital conversion module within the second time period is within the preset signal value range, it can be determined whether the analog-to-digital conversion module fails. If the digital signal to be detected is not within the preset signal value range, it indicates that the analog-to-digital conversion module has failed. If the digital signal to be detected is within the preset signal value range, it indicates that the analog-to-digital conversion module has not failed. At this time, the detection of the next module can be continued. Therefore, it can accurately determine whether the analog-to-digital conversion module has failed, and thus output an alarm message in a timely manner when a failure occurs, so as to facilitate the user to repair the failed analog-to-digital conversion module. Therefore, it avoids the problem that after the air conditioner is used for a period of time, the air conditioner malfunctions due to the failure of the microcontroller unit, and achieves the purpose that the microcontroller unit can operate normally due to timely repair of the microcontroller unit.

[0012] In the preferred technical solution of the above air conditioner failure detection method, each module in the microcontroller unit of the air conditioner is detected in a preset order, including: obtaining the first cyclic redundancy check code stored in the non-program storage area of the first storage module; obtaining the second cyclic redundancy check code in the program storage area of the first storage module according to a preset cyclic redundancy check method; correspondingly, when any module in the microcontroller unit fails, outputting a failure alarm message, including: when the first cyclic redundancy check code is different from the second cyclic redundancy check code, controlling the alarm module to output a third failure alarm message, and the third failure alarm message is used to prompt the user that the first storage module has failed, and the failure alarm message includes the third failure alarm message.

[0013] The technical solutions provided by the embodiments of the present application may include the following beneficial effects: By comparing whether the first cyclic redundancy check code stored in the non-program storage area of the first storage module is the same as the second cyclic redundancy check code stored in the program storage area, it can be determined whether the first storage module has failed. If the first cyclic redundancy check code is different from the second cyclic redundancy check code, it indicates that the first storage module has failed. If the first cyclic redundancy check code is the same as the second cyclic redundancy check code, it indicates that the first storage module has not failed. At this time, the detection of the next module can be continued. Therefore, it can accurately determine whether the first storage module has failed, and thus output an alarm message in a timely manner when a failure occurs, so as to facilitate the user to repair the failed first storage module. Therefore, it avoids the problem that after the air conditioner is used for a period of time, the air conditioner malfunctions due to the failure of the microcontroller unit, and achieves the purpose that the microcontroller unit can operate normally due to timely repair of the microcontroller unit.

[0014] In the preferred technical solution of the above air conditioner fault detection method, each module in the micro control unit of the air conditioner is detected in a preset order, including: determining the register to be detected in the central processing unit; writing a first write data into the register to be detected, where the first write data is an integer in hexadecimal form; reading the first write data in the register to be detected to obtain a first read data; correspondingly, in the case that any module in the micro control unit fails, a fault warning message is output, including: in the case that the first write data is different from the first read data, controlling the warning module to output a fourth fault warning message, where the fourth fault warning message is used to prompt the user that the central processing module has failed, and the fault warning message includes the fourth fault warning message.

[0015] The technical solution provided by the embodiments of the present application may include the following beneficial effects: By comparing whether the first write data and the first read data in the register to be detected of the central processing unit are the same, it is determined whether the central processing unit has failed. If the first write data and the first read data are different, it indicates that the central processing unit has failed. If the first write data and the first read data are the same, it indicates that the central processing unit has not failed. At this time, the detection of the next module can be continued. Therefore, it can be accurately determined whether the central processing unit has failed, and a warning message can be output in time when a failure occurs, so as to facilitate the user to repair the failed central processing unit. Therefore, the problem that the air conditioner malfunctions due to the failure of the micro control unit after being used for a period of time is avoided, and the purpose that the micro control unit can operate normally due to timely repair of the micro control unit is achieved.

[0016] In the preferred technical solution of the above air conditioner fault detection method, each module in the micro control unit of the air conditioner is detected in a preset order, including: determining the storage area to be detected in the second storage module; writing a second write data into the storage area to be detected, where the second write data is an integer in hexadecimal form; reading the second write data written in the second storage module to obtain a second read data; correspondingly, in the case that any module in the micro control unit fails, a fault warning message is output, including: in the case that the second write data is different from the second read data, controlling the warning module to output a fifth fault warning message, where the fifth fault warning message is used to prompt the user that the second storage module has failed, and the fault warning message includes the fifth fault warning message.

[0017] The technical solution provided by the embodiment of the present application may include the following beneficial effects: By comparing whether the second written data and the second read data in the storage area to be detected in the second storage module are the same, it is determined whether the second storage module fails. If the second written data and the second read data are different, it indicates that the second storage module fails. If the second written data and the second read data are the same, it indicates that the second storage module does not fail. At this time, the detection of the next module can be continued. Therefore, it can accurately determine whether the second storage module fails, and then output an alarm message in time when a failure occurs, so as to facilitate the user to repair the failed second storage module. Therefore, the problem that the air conditioner malfunctions due to the failure of the micro control unit after the air conditioner is used for a period of time is avoided, and the purpose that the micro control unit can operate normally due to timely repair of the micro control unit is achieved.

[0018] The embodiment of the present application also provides a detection device for air conditioner faults, including: a detection module, configured to detect each module in the micro control unit of the air conditioner in a preset order after the air conditioner is turned on when the usage duration of the air conditioner is greater than or equal to a preset duration. The micro control unit at least includes the following modules: a clock module, an analog-to-digital conversion module, a first storage module, a central processing unit, and a second storage module; an output module, configured to output a fault alarm message when any one of the modules in the micro control unit fails.

[0019] The technical solution provided by the embodiment of the present application may include the following beneficial effects: After the air conditioner is used for a period of time, by detecting each module in the micro control unit of the air conditioner in a specific order, as long as one of the modules fails, an alarm message is output, so as to facilitate the user to repair the faults of the air conditioner in time according to the alarm message. Therefore, the problem that the air conditioner malfunctions due to the failure of the micro control unit after the air conditioner is used for a period of time is avoided, and the purpose that the micro control unit can operate normally due to timely repair of the micro control unit is achieved.

[0020] The embodiment of the present application also provides a terminal device, including: a processor, a memory, and an interaction interface; the memory is used to store programs and data, and the processor calls the programs stored in the memory to execute the foregoing air conditioner fault detection method.

[0021] The technical solutions provided by the embodiments of the present application may include the following beneficial effects: After the air conditioner has been used for a period of time, by detecting each module in the micro control unit of the air conditioner in a specific order, as long as one of the modules fails, an alarm message is output, so that the user can repair the failure of the air conditioner in time according to the alarm message. Therefore, the problem that the air conditioner malfunctions due to the failure of the micro control unit after being used for a period of time is avoided, and the purpose that the micro control unit can operate normally due to timely repair of the micro control unit is achieved.

[0022] The embodiments of the present application also provide a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is used to implement the foregoing method for detecting air conditioner failures.

[0023] The technical solutions provided by the embodiments of the present application may include the following beneficial effects: After the air conditioner has been used for a period of time, by detecting each module in the micro control unit of the air conditioner in a specific order, as long as one of the modules fails, an alarm message is output, so that the user can repair the failure of the air conditioner in time according to the alarm message. Therefore, the problem that the air conditioner malfunctions due to the failure of the micro control unit after being used for a period of time is avoided, and the purpose that the micro control unit can operate normally due to timely repair of the micro control unit is achieved.

[0024] The embodiments of the present application also provide a computer program product, including a computer program. When the computer program is executed by a processor, it is used to implement the foregoing method for detecting air conditioner failures.

[0025] The technical solutions provided by the embodiments of the present application may include the following beneficial effects: After the air conditioner has been used for a period of time, by detecting each module in the micro control unit of the air conditioner in a specific order, as long as one of the modules fails, an alarm message is output, so that the user can repair the failure of the air conditioner in time according to the alarm message. Therefore, the problem that the air conditioner malfunctions due to the failure of the micro control unit after being used for a period of time is avoided, and the purpose that the micro control unit can operate normally due to timely repair of the micro control unit is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The following describes the preferred embodiments of the method for detecting air conditioner failures of the present application with reference to the drawings. The drawings are:

[0027] Figure 1 It is an application scenario diagram of the method for detecting air conditioner failures provided by the embodiments of the present application;

[0028] Figure 2 It is a flowchart of the method for detecting air conditioner failures provided by the embodiments of the present application;

[0029] Figure 3 It is a schematic structural diagram of the air conditioner fault detection device provided by the embodiment of the present application;

[0030] Figure 4 It is a schematic structural diagram of a terminal device provided by the embodiment of the present application. Specific embodiments

[0031] First of all, those skilled in the art should understand that these embodiments are only used to explain the technical principle of the present application and are not intended to limit the protection scope of the present application. Those skilled in the art can adjust it as needed to adapt to specific application scenarios.

[0032] Secondly, it should be noted that in the description of the embodiments of the present application, terms such as "first", "second", "third", "fourth", etc. (if any) are used to distinguish similar objects and do not have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here.

[0033] In addition, it should be noted that in the description of the embodiments of the present application, the terms "include" and "have" and any of their variants are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0034] To make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the protection scope of the present application.

[0035] The air conditioner fault detection solution mentioned in the background technology has at least the following technical problems:

[0036] In the prior art, the MCU is usually tested before the air conditioner leaves the factory. For example, through wafer testing, package testing, etc. to ensure that each module of the MCU is normal when it leaves the factory, or before the air conditioner leaves the factory, through whole machine function testing, whole machine reliability testing, etc. to ensure that the MUC module used when the air conditioner leaves the factory is working properly.

[0037] However, in the above-mentioned prior art, it can only be ensured that the MCU is normal when it leaves the factory, or the MCU used in the current product is normal when the air conditioner leaves the factory. After the air conditioner is sold and used for a certain period of time, if some modules of the MCU are damaged by external force or naturally aged, resulting in functional failure, it will affect the original control logic of the MCU. In this case, if the air conditioner is started continuously, it may cause the air conditioner to malfunction, and in severe cases, it may even cause serious consequences such as short-circuit fire of the circuit, and there may also be other unpredictable consequences. Therefore, after the air conditioner is used for a period of time, how to ensure the normal operation of the MCU in it has become a technical problem to be solved urgently.

[0038] In response to the above problems, this application proposes a method for detecting air conditioner faults. After the air conditioner is used for a period of time, each time the air conditioner is started, it will trigger the self-check function of the MCU, that is, the fault detection of each module of the MCU will be carried out in a preset order. If any module fails, a fault warning message will be output. In this way, the user can repair the faults of the air conditioner in time according to the fault warning message. Therefore, the problem that the air conditioner malfunctions due to the failure of the microcontroller unit after being used for a period of time is avoided, and the purpose that the microcontroller unit can operate normally due to timely repair of the microcontroller unit is achieved. First, the terms involved in this application will be explained below.

[0039] MCU: Also known as a single-chip microcomputer (Single Chip Microcomputer) or a microcontroller, it appropriately reduces the frequency and specifications of the central processing unit (Central Process Unit, abbreviated as: CPU), and integrates peripherals such as memory, counter (Timer), universal serial bus (Universal Serial Bus, abbreviated as: USB), analog-to-digital converter (ADC), universal asynchronous receiver / transmitter (Universal Asynchronous Receiver / Transmitter, abbreviated as: UART), programmable logic controller (Programmable Logic Controller, abbreviated as: PLC), direct memory access (Direct Memory Access, abbreviated as: DMA), and even the liquid crystal display (Liquid Crystal Display, abbreviated as: LCD) driver circuit on a single chip to form a chip-level computer, and makes different combined controls for different application scenarios.

[0040] The detection method for air conditioner faults provided by this application has a core idea that after the air conditioner has been used for a period of time, by detecting each module in the micro - control unit of the air conditioner in a specific order, as long as one of the modules fails, an alarm message is output, so that the user can repair the faults of the air conditioner in time according to the alarm message. Therefore, it avoids the problem that after the air conditioner has been used for a period of time, the operation of the air conditioner fails due to the failure of the micro - control unit, and achieves the purpose that the micro - control unit can operate normally due to timely repair of the micro - control unit.

[0041] In a possible implementation, the detection method for air conditioner faults provided by this embodiment can be applied in an application scenario. Figure 1 As shown in the application scenario diagram of the detection method for air conditioner faults provided by the embodiment of this application, Figure 1 as shown, the micro - control unit (MCU) of the air conditioner includes a clock module, an analog - to - digital conversion module, a first storage module, a central processor, and a second storage module. The detection sequence can be the clock module, the analog - to - digital conversion module, the first storage module, the central processor, and the second storage module. When the user brings the air conditioner home, every time the air conditioner is powered on again after a power outage, the MCU self - check function will be executed, that is, the clock module, the analog - to - digital conversion module, the first storage module, the central processor, and the second storage module of the MCU will be sequentially detected for faults. As long as a fault is detected in a certain module of the MCU, the air conditioner will output a fault alarm message so that the user knows that the air conditioner has a fault. For example, when it is detected that the clock module fails, the output fault alarm message will indicate that the clock module has failed, so that the user can repair the clock module and detect the next module after the fault repair is completed, or detect the next module when the clock module has no fault.

[0042] In the above scenario, if all modules of the MCU do not fail, the air conditioner can continue to run the main control program, for example, the main control programs for functions such as refrigeration or heating.

[0043] In the above scenario, when the air conditioner outputs a fault alarm message, it can flash through a light - emitting diode (LED) or display a fault code on the display screen, etc. Different flashing modes of the LED or different fault codes correspond to different faults. After the air conditioner outputs the alarm message, the air conditioner no longer runs the normal main control program.

[0044] Combined with the above scenario, the technical solutions of the detection method for air conditioner faults provided by this application will be described in detail through several specific embodiments below.

[0045] Figure 2 As shown in the flowchart of the detection method for air conditioner faults provided by the embodiment of this application,Figure 2 As shown in Figure 2 , the method for detecting air conditioner faults includes the following steps:

[0046] S201: When the usage duration of the air conditioner is greater than or equal to a preset duration, after the air conditioner is turned on, each module in the microcontroller unit of the air conditioner is detected in a preset order.

[0047] In this step, the microcontroller unit, that is, the MCU, at least includes the following modules: a clock module, an analog-to-digital conversion (ADC) module, a first storage module, a central processing unit (CPU), and a second storage module.

[0048] In the above solution, the first storage module can be a read-only memory (ROM for short), and the second storage module can be a random access memory (RAM for short).

[0049] In the above solution, the air conditioner can be an inverter air conditioner, a fixed-frequency air conditioner, a commercial air conditioner, a household air conditioner, a parking air conditioner, etc. The MCU of the air conditioner can be any programmable MCU used by the air conditioner.

[0050] In the above solution, when the usage duration of the air conditioner is greater than or equal to the preset duration, it can be after the user purchases and uses the air conditioner for a period of time. In this case, each time the air conditioner is powered on or turned on, the MCU can perform a self-check, that is, detect each module in the MCU of the air conditioner in a preset order, so that when a fault occurs in the MCU, the fault of the MCU can be detected in time.

[0051] S202: When any one of the modules in the microcontroller unit fails, a fault warning message is output.

[0052] In this step, since the fault detection of each module of the MCU can be carried out in a preset order, when a fault is detected in a certain module, a fault warning message can be immediately output, and the detection of the next module is no longer carried out. After the faulty module is repaired, if the air conditioner is powered on again or turned on again, the fault detection of each module of the MCU can continue until all modules do not have faults, and the air conditioner can run the normal main control program.

[0053] In the above solution, when the air conditioner outputs a fault warning message, it can flash an LED or display a fault code on the display screen, etc. Different flashing modes of the LED or different fault codes correspond to different faults. After the air conditioner outputs a warning message, the air conditioner no longer runs the normal main control program.

[0054] The air conditioner fault detection method provided by the embodiments of the present application, after the air conditioner has been used for a period of time, detects each module in the microcontroller unit of the air conditioner in a specific order. As long as one of the modules fails, an alarm message is output, so that the user can repair the fault of the air conditioner in time according to the alarm message. Therefore, the problem that the air conditioner malfunctions due to the failure of the microcontroller unit after being used for a period of time is avoided, and the purpose that the microcontroller unit can operate normally due to timely repair of the microcontroller unit is achieved.

[0055] In a possible implementation manner, the preset order is the clock module, the analog-to-digital conversion module, the first storage module, the central processing unit, and the second storage module.

[0056] In this solution, detecting each module in the microcontroller unit in a specific order can improve the efficiency of detecting the microcontroller unit, so as to quickly determine the module that fails in the microcontroller unit.

[0057] In the above solution, the preset order can be not only the clock module, the analog-to-digital conversion module, the first storage module, the central processing unit, and the second storage module, but also other orders including these five modules. This preset order can be set in advance during the production process of the air conditioner.

[0058] In the above solution, in addition to the above five modules, the MCU may further include other modules. When the MCU further includes other modules, the other modules and the above five modules can be detected for faults according to another preset order.

[0059] In a possible implementation manner, detecting each module in the microcontroller unit of the air conditioner according to the preset order includes: obtaining the clock signal to be detected of the clock module in the first time period, where the first time period is after the usage duration; correspondingly, in the case that any module in the microcontroller unit fails, outputting a fault alarm message, including: when the clock frequency of the clock signal to be detected is less than or equal to the first preset frequency threshold, or the clock frequency is greater than or equal to the second preset frequency threshold, controlling the alarm module of the air conditioner to output a first fault alarm message, where the first fault alarm message is used to prompt the user that the clock module fails, the second preset frequency threshold is greater than the first preset frequency threshold, and the fault alarm message includes the first fault alarm message.

[0060] In this solution, after the air conditioner has been used for a period of time, the clock module can be detected first. By obtaining the clock frequency of the clock signal to be detected by the clock module within the first time period, and then continuously monitoring whether the clock frequency is within the preset frequency range within the first time period. If the clock frequency of the clock signal to be detected is not within the preset frequency range, it indicates that the clock module has a fault. At this time, a fault alarm message can be output. If the clock frequency of the clock signal to be detected is within the preset frequency range, it indicates that the clock module has no fault. At this time, the detection of the next module can be continued. Therefore, it can accurately determine whether the clock module has a fault, and thus output an alarm message in a timely manner when a fault occurs, so as to facilitate the user to repair the faulty clock module. Therefore, it avoids the problem that the air conditioner malfunctions due to a fault in the microcontroller unit after being used for a period of time, and achieves the purpose that the microcontroller unit can operate normally due to timely repair of the microcontroller unit.

[0061] In the above solution, the clock module is the clock manager of the MCU and is responsible for managing various clock signals inside the MCU. For a normal air conditioner without faults, the clock frequency of the clock signal of the MCU's clock module can be a fixed value. For different air conditioners, the clock frequency of the clock signal of the MCU's clock module can allow an acceptable error. For example, on the basis of the above fixed value, there is a deviation of ±10%. Therefore, when detecting the fault of the clock module, it can be determined whether the clock module has a fault by determining whether the clock frequency of the clock signal to be detected by the clock module within the first time period is within the preset frequency range. The first time period can be set according to requirements. For example, it can be set to 100 milliseconds (ms).

[0062] In the above solution, if the clock frequency of the clock signal to be detected is not within the preset frequency range, it indicates that the clock module has a fault. At this time, the user can be prompted that the clock module of the MCU has a fault by flashing the LED or displaying the corresponding fault code. And the air conditioner does not start the main control program.

[0063] In a possible implementation manner, each module in the microcontroller unit of the air conditioner is detected in a preset order, including: obtaining the analog signal to be detected by the analog-to-digital conversion module within the second time period under the condition that the preset voltage value remains unchanged. The second time period is after the first time period; converting the analog signal to be detected into a digital signal to be detected; correspondingly, when any module in the microcontroller unit has a fault, outputting a fault alarm message, including: when the digital signal to be detected is not within the preset signal value range, controlling the alarm module to output a second fault alarm message, and the second fault alarm message is used to prompt the user that the analog-to-digital conversion module has a fault. The fault alarm message includes the second fault alarm message.

[0064] In this solution, after determining that the clock module is not faulty, the analog-to-digital conversion module can be further detected. By obtaining the analog signal to be detected within the second time period of the analog-to-digital conversion module and converting the analog signal to be detected into a digital signal to be detected, then it is determined whether the digital signal to be detected is within the preset signal value range. If the digital signal to be detected is not within the preset signal value range, it indicates that the analog-to-digital conversion module is faulty. If the digital signal to be detected is within the preset signal value range, it indicates that the analog-to-digital conversion module is not faulty. At this time, the detection of the next module can be continued. Therefore, it can accurately determine whether the analog-to-digital conversion module is faulty, and then output an alarm message in a timely manner when a fault occurs, so as to facilitate the user to repair the faulty analog-to-digital conversion module. Therefore, it avoids the problem that after the air conditioner has been used for a period of time, the operation of the air conditioner fails due to a fault in the microcontroller unit, and achieves the purpose that the microcontroller unit can operate normally due to timely repair of the microcontroller unit.

[0065] In the above solution, the working channel of the analog-to-digital conversion module can be determined first, and then the voltage for testing the analog-to-digital conversion module, that is, the preset voltage value, can be determined. For example, voltages such as 0V, 2.5V, 5V, etc. The preset voltage value needs to be a voltage level of a stable known voltage. After obtaining the analog signal to be detected within the second time period of the analog-to-digital conversion module and converting the analog signal to be detected into a digital signal to be detected under this working channel and preset voltage value, it is then determined whether the analog-to-digital conversion module is faulty.

[0066] In the above solution, for a normal air conditioner without faults, the digital signal to be detected converted from the analog signal to be detected of the analog-to-digital conversion module of the MCU can be a fixed signal value. However, for different air conditioners, the digital signal to be detected converted from the analog signal to be detected of the analog-to-digital conversion module of the MCU can allow an acceptable error. For example, on the basis of the aforementioned fixed value, there is a deviation of ±4 AD values (the AD value refers to the basic measurement unit after the analog signal is converted into a digital signal). Therefore, when detecting the fault of the analog-to-digital conversion module, it can be determined whether the analog-to-digital conversion module is faulty by continuously monitoring whether the digital signal to be detected within the second time period of the analog-to-digital conversion module is within the preset signal value range. The second time period can be set as required. For example, it can be set to 100 ms.

[0067] In the above solution, if the digital signal to be detected is not within the preset signal value range, it indicates that the analog-to-digital conversion module is faulty. At this time, it can prompt the user that the analog-to-digital conversion module of the MCU is faulty by flashing the LED or displaying the corresponding fault code, and the air conditioner does not start the main control program.

[0068] In a possible implementation manner, each module in the micro - control unit of the air conditioner is detected in a preset order, including: obtaining a first cyclic redundancy check code stored in the non - program storage area of the first storage module; obtaining a second cyclic redundancy check code in the program storage area of the first storage module according to a preset cyclic redundancy check method; correspondingly, when any module in the micro - control unit fails, a fault warning message is output, including: when the first cyclic redundancy check code is different from the second cyclic redundancy check code, controlling the warning module to output a third fault warning message, and the third fault warning message is used to prompt the user that the first storage module has failed, and the fault warning message includes the third fault warning message.

[0069] In this solution, after it is determined that the analog - to - digital conversion module has not failed, the first storage module can be detected. By comparing whether the first cyclic redundancy check code stored in the non - program storage area of the first storage module is the same as the second cyclic redundancy check code stored in the program storage area, it can be determined whether the first storage module has failed. If the first cyclic redundancy check code is different from the second cyclic redundancy check code, it indicates that the first storage module has failed; if the first cyclic redundancy check code is the same as the second cyclic redundancy check code, it indicates that the first storage module has not failed. At this time, the detection of the next module can be continued. Therefore, it can accurately determine whether the first storage module has failed, and then timely output a warning message when a failure occurs, so that the user can repair the failed first storage module. Therefore, it avoids the problem that after the air conditioner has been used for a period of time, the operation of the air conditioner fails due to the failure of the micro - control unit, and achieves the purpose that the micro - control unit can operate normally due to timely repair of the micro - control unit.

[0070] In the above solution, the first storage module can be a ROM. When the air conditioner leaves the factory, first, the CRC code of the data in the program storage area of the first storage module is calculated by a selected preset cyclic redundancy check (CRC) method, and then the calculated CRC code is stored in the non - program storage area of the first storage module. The CRC code stored in this non - program storage area is the aforementioned first cyclic redundancy check code; when detecting the failure of the first storage module, the CRC code of the data in the program storage area of the first storage module is calculated according to the selected preset CRC check method, and this CRC code is the aforementioned second cyclic redundancy check code. Then, it is determined whether the first cyclic redundancy check code and the second cyclic redundancy check code are the same. If the first cyclic redundancy check code and the second cyclic redundancy check code are different, the user can be prompted that the first storage module of the MCU has failed by flashing the LED or displaying the corresponding fault code. At this time, the air conditioner does not start the main control program.

[0071] In the above solution, the preset CRC check method can be CRC16 / ARC, and its formula can be: x16 + x15 + x2 + 1.

[0072] In a possible implementation, each module in the microcontroller unit of the air conditioner is detected in a preset order, including: determining the register to be detected in the central processing unit; writing the first write data into the register to be detected, where the first write data is an integer in hexadecimal form; reading the first write data in the register to be detected to obtain the first read data; correspondingly, in the case that any module in the microcontroller unit fails, a fault warning message is output, including: in the case that the first write data is not the same as the first read data, controlling the warning module to output the fourth fault warning message, and the fourth fault warning message is used to prompt the user that the central processing module has failed, and the fault warning message includes the fourth fault warning message.

[0073] In this solution, after it is determined that the first storage module has not failed, the central processing unit can be detected. By comparing whether the first write data in the register to be detected in the central processing unit is the same as the first read data, it can be determined whether the central processing unit has failed. If the first write data is not the same as the first read data, it means that the central processing unit has failed. If the first write data is the same as the first read data, it means that the central processing unit has not failed. At this time, the next module can be detected continuously. Therefore, it can be accurately determined whether the central processing unit has failed, and a warning message can be output in time when a failure occurs, so that the user can repair the faulty central processing unit. Therefore, the problem that the air conditioner malfunctions due to the failure of the microcontroller unit after being used for a period of time is avoided, and the purpose that the microcontroller unit can operate normally due to timely repair of the microcontroller unit is achieved.

[0074] In the above solution, when detecting the central processing unit, first, the register to be detected can be selected. For example, the general-purpose registers R0 - R15, and the number of registers to be detected can be multiple. Then, the selected registers to be detected are detected one by one in order. Taking a 32-bit MCU as an example, for each register to be detected, the first write data can be written into the register to be detected first. For example, the first write data can be 0x55555555, and then the register to be detected is read to obtain the first read data, and it is determined whether the first read data is the same as the first write data. For example, it is determined whether the first read data is 0x55555555. If the first read data is not 0x55555555, the user can be prompted that the central processing unit of the MCU has failed by flashing the LED or displaying the corresponding fault code. At this time, the air conditioner does not start the main control program.

[0075] In the above solution, to further improve the accuracy of the detection result, 0x55555555 can be written to the register to be detected. After reading the data in the register to be detected as 0x55555555, 0xAAAAAAAA can be written to the register to be detected again, and then the register to be detected is read to determine whether the read data is 0xAAAAAAAA. If the read data is 0xAAAAAAAA, it is determined that the register to be detected has no fault; if the read data is not 0xAAAAAAAA, it is determined that the register to be detected has a fault. At this time, the user can be prompted that the central processing unit of the MCU has a fault by flashing the LED or displaying the corresponding fault code, and the main control program of the air conditioner is not started.

[0076] In the above solution, after all the selected registers to be detected are detected according to the above method, if the written data and the read data of any register to be detected are different, it indicates that the central processing unit has a fault.

[0077] In a possible implementation manner, each module in the micro control unit of the air conditioner is detected in a preset order, including: determining the storage area to be detected in the second storage module; writing second write data in the storage area to be detected, where the second write data is an integer in hexadecimal form; reading the second write data written in the second storage module to obtain second read data; correspondingly, in the case that any module in the micro control unit has a fault, a fault warning message is output, including: in the case that the second write data is different from the second read data, controlling the warning module to output a fifth fault warning message, and the fifth fault warning message is used to prompt the user that the second storage module has a fault, and the fault warning message includes the fifth fault warning message.

[0078] In this solution, after it is determined that the central processing unit has no fault, the second storage module can be detected. By comparing whether the second write data and the second read data in the storage area to be detected in the second storage module are the same, it can be determined whether the second storage module has a fault. If the second write data and the second read data are different, it indicates that the second storage module has a fault. If the second write data and the second read data are the same, it indicates that the second storage module has no fault. At this time, the detection of the next module can be continued. Therefore, it can be accurately determined whether the second storage module has a fault, and a warning message can be output in time when a fault occurs, so that the user can repair the second storage module with a fault. Therefore, the problem that the air conditioner has an operation fault due to the fault of the micro control unit after being used for a period of time is avoided, and the purpose that the micro control unit can operate normally due to timely repair of the micro control unit is achieved.

[0079] In the above solution, the second storage module can be a RAM. Taking a 32-bit MCU as an example, when detecting the second storage module, first, the storage area to be detected can be selected. Then, the second write data is written to all the data bits in the storage area to be detected. For example, the second write data can be 0x55555555. Then, all the data bits in the storage area to be detected are read to obtain the second read data, and it is determined whether the second read data is the same as the second write data. For example, it is determined whether the second read data is 0x55555555. If the second read data is not 0x55555555, the user can be prompted that there is a fault in the second storage module of the MCU by flashing the LED or displaying the corresponding fault code. At this time, the air conditioner does not start the main control program.

[0080] In the above solution, to further improve the accuracy of the detection result, after writing 0x55555555 to the storage area to be detected of the second storage module and after reading the data in the storage area to be detected as 0x55555555, 0xAAAAAAAA is written to the storage area to be detected again. Then, the storage area to be detected is read, and it is determined whether the data read is 0xAAAAAAAA. If the data read is 0xAAAAAAAA, it is determined that the second storage module has no fault; if the data read is not 0xAAAAAAAA, it is determined that the second storage module has a fault. At this time, the user can be prompted that there is a fault in the second storage module of the MCU by flashing the LED or displaying the corresponding fault code, and the air conditioner does not start the main control program.

[0081] The air conditioner fault detection method provided by the embodiments of the present application, after using the air conditioner for a period of time, detects each module in the MCU of the air conditioner in a specific order. As long as one of the modules has a fault, an alarm message is output, so that the user can repair the fault of the air conditioner in time according to the alarm message. Therefore, the problem that the air conditioner malfunctions due to the fault of the MCU after being used for a period of time is avoided, and the purpose that the MCU can operate normally because the MCU can be repaired in time is achieved; moreover, the technical solution provided by the present application does not require the use of additional hardware circuits and can be implemented only through software processing. Therefore, the hardware cost can be reduced; at the same time, the technical solution provided by the present application can be executed before the main control program runs. Therefore, the problem of large resource occupation of the MCU caused by the simultaneous operation of the main control program when the technical solution provided by the present application is executed is avoided.

[0082] Generally speaking, the air conditioner fault detection method provided by the embodiments of the present application is a technical implementation solution that can not only improve the accuracy of detecting faults in the MCU but also ensure the normal operation of the MCU in the air conditioner after the air conditioner has been used for a period of time.

[0083] Figure 3 This is a schematic structural diagram of the air conditioner fault detection device provided by the embodiments of the present application. As Figure 3 shown, the air conditioner fault detection device 30 may include various functional modules for implementing the foregoing air conditioner fault detection method, and any functional module may be implemented in a software / or hardware manner.

[0084] For example, the device may include a detection module 31 and an output module 32.

[0085] Among them, the detection module 31 is used to detect each module in the microcontroller unit of the air conditioner in a preset order after the air conditioner is turned on when the usage duration of the air conditioner is greater than or equal to a preset duration. The microcontroller unit at least includes the following modules: a clock module, an analog-to-digital conversion module, a first storage module, a central processing unit, and a second storage module;

[0086] The output module 32 is used to output a fault warning message when any one of the modules in the microcontroller unit fails.

[0087] Optionally, the preset order is the clock module, the analog-to-digital conversion module, the first storage module, the central processing unit, and the second storage module.

[0088] Optionally, the detection module 31 is further used to obtain a clock signal to be detected in the first time period of the clock module, and the first time period is after the usage duration; correspondingly, the output module 32 is further used to control the alarm module of the air conditioner to output a first fault warning message when the clock frequency of the clock signal to be detected is less than or equal to a first preset frequency threshold or the clock frequency is greater than or equal to a second preset frequency threshold. The first fault warning message is used to prompt the user that the clock module has failed. The second preset frequency threshold is greater than the first preset frequency threshold, and the fault warning message includes the first fault warning message.

[0089] Optionally, the detection module 31 is further used to obtain an analog signal to be detected in the second time period of the analog-to-digital conversion module when the preset voltage value remains unchanged, and the second time period is after the first time period; convert the analog signal to be detected into a digital signal to be detected; correspondingly, the output module 32 is further used to control the alarm module to output a second fault warning message when the digital signal to be detected is not within the preset signal value range. The second fault warning message is used to prompt the user that the analog-to-digital conversion module has failed, and the fault warning message includes the second fault warning message.

[0090] Optionally, the detection module 31 is further configured to obtain a first cyclic redundancy check code stored in the non-program storage area of the first storage module; obtain a second cyclic redundancy check code in the program storage area of the first storage module according to a preset cyclic redundancy check method; correspondingly, the output module 32 is further configured to, when the first cyclic redundancy check code is different from the second cyclic redundancy check code, control the alarm module to output a third fault alarm message, where the third fault alarm message is used to prompt the user that the first storage module has a fault, and the fault alarm message includes the third fault alarm message.

[0091] Optionally, the detection module 31 is further configured to determine a register to be detected in the central processing unit; write a first write data into the register to be detected, where the first write data is an integer in hexadecimal form; read the first write data in the register to be detected to obtain a first read data; correspondingly, the output module 32 is further configured to, when the first write data is different from the first read data, control the alarm module to output a fourth fault alarm message, where the fourth fault alarm message is used to prompt the user that the central processing module has a fault, and the fault alarm message includes the fourth fault alarm message.

[0092] Optionally, the detection module 31 is further configured to determine a storage area to be detected in the second storage module; write a second write data into the storage area to be detected, where the second write data is an integer in hexadecimal form; read the second write data written in the second storage module to obtain a second read data; correspondingly, the output module 32 is further configured to, when the second write data is different from the second read data, control the alarm module to output a fifth fault alarm message, where the fifth fault alarm message is used to prompt the user that the second storage module has a fault, and the fault alarm message includes the fifth fault alarm message.

[0093] The air conditioner fault detection device is used to execute the technical solution provided by the foregoing embodiment of the air conditioner fault detection method. Its implementation principle and technical effects are similar to those in the foregoing method embodiment, and will not be elaborated here.

[0094] Figure 4 The following is a schematic structural diagram of a terminal device provided by an embodiment of the present application, as Figure 4 shown. The terminal device 400 includes:

[0095] A processor 411, a memory 412, and an interaction interface 413;

[0096] The memory 412 is used to store programs and data, and the processor 411 calls the programs stored in the memory 412 to execute the technical solution of the foregoing air conditioner fault detection method.

[0097] In the above terminal device, the memory 412 and the processor 411 are electrically connected directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines, such as through a bus connection. The memory 412 stores computer-executable instructions for implementing the foregoing air conditioner fault detection method, including at least one software function module that can be stored in the memory in the form of software or firmware. The processor 411 executes various functional applications and data processing by running the software programs and modules stored in the memory 412.

[0098] The memory can be, but is not limited to, a random access memory (Random Access Memory, abbreviated as RAM), a read-only memory (Read Only Memory, abbreviated as ROM), a programmable read-only memory (Programmable Read-Only Memory, abbreviated as PROM), an erasable programmable read-only memory (Erasable Programmable Read-Only Memory, abbreviated as EPROM), an electrically erasable programmable read-only memory (Electric Erasable Programmable Read-Only Memory, abbreviated as EEPROM), etc. Among them, the memory is used to store programs, and the processor executes the programs after receiving the execution instructions. Further, the software programs and modules in the above memory may also include an operating system, which may include various software components and / or drivers for managing system tasks (such as memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide a running environment for other software components.

[0099] The processor can be an integrated circuit chip with signal processing capabilities. The above-mentioned processor can be a general-purpose processor, including a central processing unit (Central Processing Unit, abbreviated as CPU), a network processor (Network Processor, abbreviated as NP), etc. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0100] The terminal device is used to execute the technical solution provided by the foregoing air conditioner fault detection method embodiment. Its implementation principle and technical effect are similar to those in the foregoing method embodiment, and will not be elaborated here.

[0101] The embodiments of the present application also provide a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the technical solution provided by the foregoing air conditioner fault detection method embodiment.

[0102] An embodiment of the present application also provides a computer program product, including a computer program, which is used to implement the technical solution provided by the embodiment of the foregoing method for detecting air conditioner faults when executed by a processor.

[0103] Those of ordinary skill in the art can understand that all or part of the steps of implementing the foregoing method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the foregoing method embodiments; and the foregoing storage medium includes: various media such as ROM, RAM, magnetic disk, or optical disc that can store program codes.

[0104] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and are not intended to limit them; although the present application 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 application.

Claims

1. A method for detecting air conditioner faults, characterized in that, The method includes: When the usage duration of the air conditioner is greater than or equal to a preset duration, after the air conditioner is powered on or turned on, the function of self-checking the micro-control unit of the air conditioner is executed, and each module in the micro-control unit of the air conditioner is detected in a preset order, and the preset order is a clock module, an analog-to-digital conversion module, a first storage module, a central processing unit, and a second storage module; When any one of the modules in the micro-control unit fails, a fault warning message is output, and the air conditioner no longer runs the normal main control program; the fault warning message is flashed through an LED or a fault code is displayed on the display screen; If all the modules of the micro-control unit of the air conditioner do not fail, the air conditioner continues to run the main control program; When the central processing unit is detected, the detecting each module in the micro-control unit of the air conditioner in the preset order includes: Determine the register to be detected in the central processing unit; Write first write data into the register to be detected, and the first write data is an integer in hexadecimal form; Read the first write data in the register to be detected to obtain first read data; Correspondingly, when any one of the modules in the micro-control unit fails, outputting a fault warning message includes: When the first write data is the same as the first read data, write third write data again to obtain third read data. When the first write data is different from the first read data or the third write data is different from the third read data, control the warning module to output a fourth fault warning message, and the fourth fault warning message is used to prompt the user that the central processing module fails, and the fault warning message includes the fourth fault warning message; When the second storage module is detected, the detecting each module in the micro-control unit of the air conditioner in the preset order includes: Determine the storage area to be detected in the second storage module; Write second write data into the storage area to be detected, and the second write data is an integer in hexadecimal form; Read the second write data written in the second storage module to obtain second read data; Correspondingly, when any one of the modules in the micro-control unit fails, outputting a fault warning message includes: When the second write data is the same as the second read data, write fourth write data again to obtain fourth read data. When the second write data is different from the second read data or the fourth write data is different from the fourth read data, control the warning module to output a fifth fault warning message, and the fifth fault warning message is used to prompt the user that the second storage module fails, and the fault warning message includes the fifth fault warning message.

2. The method according to claim 1, wherein When the clock module is detected, the detecting each module in the micro-control unit of the air conditioner in the preset order includes: Obtain the clock signal to be detected of the clock module in the first time period, where the first time period is after the usage duration; Correspondingly, when any module in the micro-control unit fails, output a fault warning message, including: When the clock frequency of the clock signal to be detected is less than or equal to the first preset frequency threshold, or the clock frequency is greater than or equal to the second preset frequency threshold, control the alarm module of the air conditioner to output a first fault warning message, where the first fault warning message is used to prompt the user that the clock module has failed. The second preset frequency threshold is greater than the first preset frequency threshold, and the fault warning message includes the first fault warning message.

3. The method according to claim 1, wherein When detecting the analog-to-digital conversion module, detecting each module in the micro-control unit of the air conditioner in a preset order includes: Under the condition that the preset voltage value remains unchanged, obtain the analog signal to be detected of the analog-to-digital conversion module in the second time period, where the second time period is after the first time period; Convert the analog signal to be detected into a digital signal to be detected; Correspondingly, when any module in the micro-control unit fails, output a fault warning message, including: When the digital signal to be detected is not within the preset signal value range, control the alarm module to output a second fault warning message, where the second fault warning message is used to prompt the user that the analog-to-digital conversion module has failed. The fault warning message includes the second fault warning message.

4. The method according to claim 1, wherein When detecting the first storage module, detecting each module in the micro-control unit of the air conditioner in a preset order includes: Obtain the first cyclic redundancy check code stored in the non-program storage area of the first storage module; Obtain the second cyclic redundancy check code in the program storage area of the first storage module according to a preset cyclic redundancy check method; Correspondingly, when any module in the micro-control unit fails, output a fault warning message, including: When the first cyclic redundancy check code is different from the second cyclic redundancy check code, control the alarm module to output a third fault warning message, where the third fault warning message is used to prompt the user that the first storage module has failed. The fault warning message includes the third fault warning message.

5. A detection device for air conditioner faults, characterized in that, Including: A detection module, configured to, when the usage duration of the air conditioner is greater than or equal to a preset duration, execute the function of self-checking the micro-control unit of the air conditioner after the air conditioner is powered on or turned on, and detect each module in the micro-control unit of the air conditioner in a preset order, where the preset order is the clock module, the analog-to-digital conversion module, the first storage module, the central processing unit, and the second storage module; An output module, configured to output a fault warning message when any module in the micro-control unit fails; the air conditioner no longer runs the normal main control program; The fault warning information is flashed through an LED or a fault code is displayed on a display screen; if no module of the micro control unit of the air conditioner has a fault, the air conditioner continues to run the main control program; The detection module is further configured to determine a register to be detected in the central processing unit; write first write data into the register to be detected, where the first write data is an integer in hexadecimal form; read the first write data in the register to be detected to obtain first read data; The output module is further configured to, when the first write data is the same as the first read data, write third write data again to obtain third read data, and when the first write data is different from the first read data or the third write data is different from the third read data, control the alarm module to output fourth fault warning information, where the fourth fault warning information is used to prompt a user that the central processing module has a fault, and the fault warning information includes the fourth fault warning information; The detection module is further configured to determine a storage area to be detected in the second storage module; write second write data into the storage area to be detected, where the second write data is an integer in hexadecimal form; read the second write data written in the second storage module to obtain second read data; The output module is further configured to, when the second write data is the same as the second read data, write fourth write data again to obtain fourth read data, and when the second write data is different from the second read data or the fourth write data is different from the fourth read data, control the alarm module to output fifth fault warning information, where the fifth fault warning information is used to prompt a user that the second storage module has a fault, and the fault warning information includes the fifth fault warning information.

6. A terminal device, characterized in that, Comprising: A processor, a memory, and an interaction interface; The memory is used for storing programs and data, and the processor calls the programs stored in the memory to execute the method for detecting air conditioner faults according to any one of claims 1 to 4.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the method for detecting air conditioner faults according to any one of claims 1 to 4 is implemented.

8. A computer program product, characterized in that, Comprising a computer program, where the computer program is used to implement the method for detecting air conditioner faults according to any one of claims 1 to 4 when executed by the processor.

Citation Information

Patent Citations

  • Method and device for detecting equipment faults

    CN101446913A

  • MCU test control method and device, storage medium, and home appliance

    CN108762239A

  • Detection method for rapidly exciting and positioning fault in HALT test based on software self-checking

    CN111190407A