Search

CN-116259356-B - RAM module detection method, equipment and storage medium based on singlechip

CN116259356BCN 116259356 BCN116259356 BCN 116259356BCN-116259356-B

Abstract

The application belongs to the technical field of household appliance control, and particularly relates to a RAM module detection method, equipment and storage medium based on a single chip microcomputer. The method comprises the steps of obtaining detection operation time according to the operation speed of the singlechip and a program operation time threshold, dividing a buffer area, a general area and a stack area into a plurality of buffer subareas, a plurality of general subareas and a plurality of stack subareas according to the detection operation time, sequentially detecting each subarea in each area, generating and playing alarm information when an abnormal result is detected, and stopping detection. The method of the application utilizes the running clearance of the equipment program, does not additionally increase the power-on running time of the equipment, realizes the continuous detection of the segmentation, time sharing and circulation of the RAM, and the detection process is accompanied with the whole life cycle of the equipment, thereby being more reliable and not increasing the hardware circuit of the equipment, thereby not increasing the configuration cost of the equipment.

Inventors

  • DENG CHUANG
  • DONG JINSHENG
  • GAO BAOHUA
  • LIU YUNTAO
  • XU QINYAO
  • ZHANG JIANHUA

Assignees

  • 青岛海尔空调器有限总公司
  • 青岛海尔空调电子有限公司
  • 海尔智家股份有限公司

Dates

Publication Date
20260508
Application Date
20230111

Claims (9)

  1. 1. The RAM module detection method based on the singlechip is characterized in that the RAM module is divided into a buffer area, a general area and a stack area, and the method comprises the following steps: Determining the byte number of the RAM module region which can be tested by the RAM module detection when the single chip microcomputer is called according to the running speed of the single chip microcomputer, and further dividing a buffer region, a general region and a stack region into a plurality of buffer subregions, a plurality of general subregions and a plurality of stack subregions respectively by combining the detecting running time; Sequentially detecting each buffer subarea in the buffer area, generating and playing alarm information when an abnormal result is detected, and stopping detection; After the detection of the buffer area is finished, sequentially detecting each universal subarea in the universal area, generating and playing alarm information when an abnormal result is detected, and stopping the detection; After the detection of the general area is finished, sequentially detecting each stack subarea in the stack area, generating and playing alarm information when an abnormal result is detected, and stopping detection; monitoring whether a program is in an operating state at present; After the buffer area, the universal area and the stack area are respectively divided into a plurality of buffer sub-areas, a plurality of universal sub-areas and a plurality of stack sub-areas according to the detection operation time length, the method further comprises: and when monitoring that no program is in a running state currently, starting detection.
  2. 2. The method of claim 1, wherein sequentially detecting each buffer area in the buffer area, and generating and playing alarm information and stopping detection when an abnormal result is detected, comprises: Writing a test value into each buffer subarea in the buffer areas in turn; Acquiring a readout value of the buffer subarea; And judging whether the test value is equal to the read-out value, if not, generating and playing alarm information and stopping detection, and if so, continuing to detect the next buffer area until the detection of the buffer area is completed.
  3. 3. The method according to claim 1, wherein after the buffer area detection is completed, detecting each universal sub-area in the universal area in turn, and generating and playing alarm information and stopping detection when an abnormal result is detected, comprises: After the detection of the buffer area is completed, backing up each universal subarea in the universal area to the buffer area in sequence to obtain universal subarea backup; writing a test value into the universal subarea, and acquiring a read value of the universal subarea; And judging whether the test value is equal to the read-out value, if not, generating and playing alarm information and stopping detection, and if so, continuing to detect the next universal subarea until the universal area detection is completed after the universal subarea is backed up and restored to the universal subarea.
  4. 4. The method according to claim 1, wherein after the general area detection is completed, detecting each stack subarea in the stack area in turn, and generating and playing alarm information and stopping detection when an abnormal result is detected, comprises: after the detection of the universal area is completed, a temporary stack area is newly built in the buffer area to replace the stack area to be detected; backing up the tested stack subarea to the buffer area to obtain a stack subarea backup; Writing a test value into a tested stack subarea; Acquiring a read value of a tested stack subarea; And judging whether the test value is equal to the read-out value, if not, generating and playing alarm information and stopping detection, if so, backing up the stack subarea to the tested stack subarea, deleting the temporary stack area, and then continuing to detect the next stack subarea until the stack area detection is completed.
  5. 5. The method of claim 1, wherein the RAM module is divided into a buffer area, a general area, and a stack area according to a use function of the RAM module.
  6. 6. A RAM module detection device based on a single-chip microcomputer, wherein the RAM module is divided into a buffer area, a general area and a stack area, and the device comprises: The acquisition module is used for determining the detection operation time length detected by the RAM module according to the program operation time length threshold value of the operation program when the singlechip normally executes the equipment task; the partition module is used for determining the byte number of the RAM module region which can be tested by the RAM module detection after each call according to the running speed of the singlechip, and further dividing the buffer region, the general region and the stack region into a plurality of buffer subregions, a plurality of general subregions and a plurality of stack subregions respectively by combining the detection running time; The detection module is used for sequentially detecting each buffer subarea in the buffer area, generating and playing alarm information and stopping detection when an abnormal result is detected, sequentially detecting each universal subarea in the universal area after the detection of the buffer area is completed, generating and playing alarm information and stopping detection when the abnormal result is detected, sequentially detecting each stack subarea in the stack area after the detection of the universal area is completed, generating and playing alarm information and stopping detection when the abnormal result is detected, monitoring whether a current program is in an operation state, and after the buffer area, the universal area and the stack area are respectively divided into a plurality of buffer subareas, a plurality of universal subareas and a plurality of stack subareas according to the detection operation time, starting detection when no program is currently in the operation state.
  7. 7. The singlechip is characterized by comprising a processor and a memory which is in communication connection with the processor, wherein the memory comprises a RAM module and a ROM module; the ROM module is used for storing computer execution instructions; The processor executes computer-executable instructions stored by the ROM module to implement the RAM module detection method of any one of claims 1 to 5.
  8. 8. An electronic device comprising a processor and a memory communicatively coupled to the processor; The memory stores computer-executable instructions; The processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1 to 5.
  9. 9. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1 to 5.

Description

RAM module detection method, equipment and storage medium based on singlechip Technical Field The invention belongs to the technical field of household appliance control, and particularly relates to a RAM module detection method, equipment and storage medium based on a single chip microcomputer. Background The main control part in the variable frequency air conditioner is a singlechip (Microcontroller Unit, MCU), and the storage module in the MUC comprises a Read-Only Memory (ROM) module and a random access Memory (Random Access Memory, RAM) module, wherein the RAM module is an internal Memory for directly exchanging data with the singlechip, and the modules are all needed at any time in the use process of the air conditioner. In addition, after the variable frequency air conditioner is sold and used for a plurality of times, if partial external force damage or aging failure occurs to the RAM module of the MCU, the original control logic of the MCU can be influenced. In this case, the air conditioner may be started as usual, which may cause abnormal operation of the air conditioner, and serious consequences such as short circuit and fire of the circuit may occur, and other unpredictable consequences may also occur. Based on the above, in the prior art, the RAM module needs to be detected to determine whether the MCU is normal or not, and the detection mode mainly comprises 1) testing before the MCU leaves the factory, and ensuring that the RAM module is normal when the MCU leaves the factory through testing such as wafer testing and packaging testing, 2) testing before the air conditioner leaves the factory, and ensuring that the RAM module used when the air conditioner leaves the factory is normal through testing the functions of the whole machine, testing the reliability of the whole machine and the like, 3) testing when the air conditioner is powered on (when a user closes a main switch of the air conditioner), and ensuring that the RAM module of the frequency conversion board main MCU is normal when the air conditioner is powered on for the first time, and 4) testing by utilizing a shutdown clearance of the compressor, so that the RAM module of the frequency conversion board main MCU is ensured to be normal when the compressor is started each time. In the above modes, the first two modes are only suitable for detection before the air conditioner leaves the factory, and whether the sold air conditioner RAM module is normal or not cannot be ensured. The third way is that when the air conditioner is powered on each time, the starting-up operation time interval of the air conditioner is increased, and for a user who does not power off the air conditioner for a long time, the RAM module cannot be detected in time, and potential safety hazards exist. The fourth mode is to utilize the compressor to stop the guard period to detect, but because the interval time that the compressor was opened at every turn and stopped is not fixed, the detection frequency is not fixed, still has certain hidden danger. In summary, the detection methods in the prior art all have the problem that the detection frequency of the RAM module is not suitable. Disclosure of Invention The application provides a method, equipment and a storage medium for detecting a RAM module based on a singlechip, which are used for solving the technical problem that the detection frequency of the RAM module is not suitable in the prior art. The invention provides a RAM module detection method based on a singlechip, wherein the RAM module is divided into a buffer area, a general area and a stack area, and the method comprises the following steps: Determining the detection operation time length detected by the RAM module according to a program operation time length threshold value of an operation program when the singlechip normally executes equipment tasks; determining the byte number of the RAM module region which can be tested by the RAM module detection after each call according to the running speed of the singlechip, and dividing a buffer region, a general region and a stack region into a plurality of buffer subregions, a plurality of general subregions and a plurality of stack subregions respectively by combining the detection running time; Sequentially detecting each buffer subarea in the buffer area, generating and playing alarm information when an abnormal result is detected, and stopping detection; After the detection of the buffer area is finished, sequentially detecting each universal subarea in the universal area, generating and playing alarm information when an abnormal result is detected, and stopping the detection; after the detection of the universal area is completed, each stack subarea in the stack area is detected in sequence, and when an abnormal result is detected, alarm information is generated and played, and the detection is stopped. In one possible design, the method further comprises: monitoring whether a program is in an operat