Air conditioner program interruption overflow protection method and device, storage medium and air conditioner
By counting the interrupt program of the magnetic field directional control loop in the air conditioner and determining the carrier frequency distinction, the problem of detection and protection of the control program interruption and overflow fault is solved, and the program reliability of the control loop is improved.
Patent Information
- Application Number
- CN202411963030.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-04-25
AI Technical Summary
The control program of the magnetic field directional control loop is prone to overflow failures during interrupted operation, and is difficult to detect, and lacks convenient and reliable detection and protection solutions.
By counting the interrupt programs of the current loop and the speed loop in the magnetic field directional control loop, and using the interrupt programs of different carrier frequencies for judgment and protection operations, the detection and protection of interrupt overflow faults can be achieved.
It realizes convenient and reliable detection and protection of control program interrupt overflow faults in the magnetic field directional control loop, improving the reliability of program control.
Smart Images

Figure CN119879332A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of air conditioning, and in particular to an air conditioning program interruption overflow protection method, device, storage medium and air conditioning. Background Art
[0002] In the development process of the variable frequency controller of the air conditioner, the control program of the field-oriented control (FOC) loop is prone to interrupt overflow due to many reasons. For example, when developing control programs for chips with similar design specifications by transplantation development, although the program is compiled with the same content on different chips, the execution time of the same program will be different due to the inconsistency of the chip's internal hardware design or software code execution module. In addition, the control program will have different running times during the interrupt operation due to different data sizes, and program interrupt overflow failures may occur when the data size is close to the upper limit of the data type.
[0003] However, interrupt overflow faults of control programs in field-oriented control (FOC) loops are usually difficult to troubleshoot, and currently there is a lack of a convenient and reliable detection and protection solution for interrupt overflow faults of control programs in field-oriented control loops. Summary of the invention
[0004] The embodiment of the present application provides a solution that can conveniently and reliably detect and protect the control program in the magnetic field oriented control loop from interrupt overflow faults, thereby improving the program control reliability of the magnetic field oriented control loop.
[0005] The embodiments of the present application provide the following technical solutions:
[0006] According to one embodiment of the present application, a method for protecting an air conditioner program interrupt overflow includes: performing program interrupt counting on the interrupt program of the current loop and the interrupt program of the speed loop in the magnetic field oriented control loop respectively to obtain the cumulative number of interruptions of the current loop and the cumulative number of interruptions of the speed loop, wherein the carrier frequencies adopted by the interrupt program of the current loop and the interrupt program of the speed loop are different; when the cumulative number of interruptions of the current loop and / or the cumulative number of interruptions of the speed loop meet predetermined conditions, performing a judgment operation and a number zeroing operation, wherein the judgment operation is used to judge whether an interrupt overflow fault occurs according to a comparison result of the cumulative number of interruptions of the current loop and the cumulative number of interruptions of the speed loop; and performing an interrupt overflow protection operation according to the number of occurrences of the interrupt overflow fault.
[0007] In some embodiments of the present application, performing an interrupt overflow protection operation according to the number of occurrences of the interrupt overflow fault includes: determining whether the number of occurrences of the interrupt overflow fault exceeds a predetermined threshold; if so, performing the interrupt overflow protection operation.
[0008] In some embodiments of the present application, executing the interrupt overflow protection operation includes: generating fault prompt information of the interrupt overflow fault; and playing the fault prompt information in a predetermined playing mode.
[0009] In some embodiments of the present application, executing the interrupt overflow protection operation includes: splitting the interrupt program with a higher carrier frequency in the interrupt program of the current loop and the interrupt program of the speed loop to obtain a first part of the program and a second part of the program; executing the first part of the program in the loop where the interrupt program with a lower carrier frequency is located, and executing the second part of the program in the loop where the interrupt program with a higher carrier frequency is located.
[0010] In some embodiments of the present application, the carrier frequency of the interrupt program of the current loop is higher than the carrier frequency of the interrupt program of the speed loop; the interrupt program with a higher carrier frequency in the current loop and the speed loop is split to obtain a first part of the program and a second part of the program, including: splitting the interrupt program of the current loop to obtain a first part of the program and a second part of the program, wherein the second part of the program is a related function for performing operations, and the first part of the program is the remaining part of the program; correspondingly, the first part of the program is executed by the loop where the interrupt program with a lower carrier frequency is located, and the second part of the program is executed in the loop where the interrupt program with a higher carrier frequency is located, including: the first part of the program is executed by the speed loop, and the two parts of the program are executed in the current loop.
[0011] In some embodiments of the present application, judging whether an interrupt overflow fault occurs based on a comparison result of the cumulative number of interruptions of the current loop and the cumulative number of interruptions of the speed loop includes: calculating the ratio of the cumulative number of interruptions of the current loop to the cumulative number of interruptions of the speed loop; if the ratio is not a predetermined ratio, judging that the interrupt overflow fault occurs.
[0012] In some embodiments of the present application, before executing the judgment operation and the number-setting-to-zero operation, the method further includes: determining whether the cumulative number of interruptions of the current loop and / or the cumulative number of interruptions of the speed loop is a predetermined number; if so, determining that the predetermined condition is met.
[0013] According to one embodiment of the present application, an air conditioner program interrupt overflow protection device includes: a memory storing a computer program; a processor reading the computer program stored in the memory to execute the method described in any embodiment of the present application.
[0014] According to another embodiment of the present application, a storage medium stores a computer program thereon. When the computer program is executed by a processor of an air conditioning program interrupt overflow protection device, the air conditioning program interrupt overflow protection device executes the method described in the embodiment of the present application.
[0015] According to another embodiment of the present application, an air conditioner may include the air conditioner program interruption overflow protection device described in the embodiment of the present application.
[0016] According to another embodiment of the present application, a computer program product or a computer program includes a computer instruction stored in a computer-readable storage medium. A processor of an air conditioner program interruption overflow protection device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the air conditioner program interruption overflow protection device executes the method provided in various optional implementations described in the embodiments of the present application.
[0017] In an embodiment of the present application, program interrupt counts are performed on the interrupt program of the current loop and the interrupt program of the speed loop in the magnetic field oriented control loop respectively to obtain the cumulative number of interruptions of the current loop and the cumulative number of interruptions of the speed loop, and the carrier frequencies used by the interrupt program of the current loop and the interrupt program of the speed loop are different; when the cumulative number of interruptions of the current loop and / or the cumulative number of interruptions of the speed loop meet predetermined conditions, a judgment operation and a number zeroing operation are performed, wherein the judgment operation is used to judge whether an interrupt overflow fault occurs according to a comparison result of the cumulative number of interruptions of the current loop and the cumulative number of interruptions of the speed loop; and an interrupt overflow protection operation is performed according to the number of occurrences of the interrupt overflow fault.
[0018] In the manner of an embodiment of the present application, by using interrupt programs with different carrier frequencies for the current loop and the speed loop in the magnetic field oriented control loop of the air conditioner, and performing program interrupt counts on the interrupt program of the current loop and the interrupt program of the speed loop, respectively, and obtaining a comparison result of the cumulative number of interruptions of the current loop and the cumulative number of interruptions of the speed loop based on the count, it is possible to accurately determine whether an interrupt overflow fault occurs, and further, based on the number of occurrences of the interrupt overflow fault, the interrupt overflow protection operation can be reliably executed, thereby achieving convenient and reliable detection and protection of interrupt overflow faults for the control program in the magnetic field oriented control loop, and improving the program control reliability of the magnetic field oriented control loop. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 A flow chart of an air conditioner program interrupt overflow protection method according to an embodiment of the present application is shown.
[0021] Figure 2 A flow chart of an air conditioner program interrupt overflow protection method according to another embodiment of the present application is shown.
[0022] Figure 3 A flow chart of interrupt overflow protection according to an embodiment of the present application is shown.
[0023] Figure 4 A block diagram of an air conditioner program interruption overflow protection device according to an embodiment of the present application is shown.
[0024] Figure 5 A block diagram of an air conditioner according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0025] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments provided herein are only used to explain the present disclosure and are not intended to limit the present disclosure. In addition, the embodiments provided below are partial embodiments for implementing the present disclosure, rather than providing all embodiments for implementing the present disclosure. In the absence of conflict, the technical solutions recorded in the embodiments of the present disclosure can be implemented in any combination.
[0026] It should be noted that, in the embodiments of the present disclosure, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a method or apparatus including a series of elements includes not only the elements explicitly recorded, but also includes other elements not explicitly listed, or also includes elements inherent to the implementation of the method or apparatus. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other related elements in the method or apparatus including the element (such as a step in the method or a unit in the apparatus, for example, a unit may be a part of a circuit, a part of a processor, a part of a program or software, etc.).
[0027] For example, the air conditioning program interruption overflow protection method provided in the embodiment of the present disclosure includes a series of steps, but the air conditioning program interruption overflow protection method provided in the embodiment of the present disclosure is not limited to the recorded steps. Similarly, the air conditioning program interruption overflow protection device provided in the embodiment of the present disclosure includes a series of units, but the device provided in the embodiment of the present disclosure is not limited to including the units explicitly recorded, and may also include units that need to be set to obtain relevant information or perform processing based on information.
[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure.
[0029] It is understandable that in the specific implementation of this application, relevant data is involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0030] Figure 1 A flowchart of an air conditioner program interrupt overflow protection method according to an embodiment of the present application is schematically shown. The execution subject of the air conditioner program interrupt overflow protection method may be an air conditioner program interrupt overflow protection device, and the air conditioner program interrupt overflow protection device may be located in an air conditioner or other device, such as a remote control, a television, a computer, a mobile phone, a smart watch, and a household appliance.
[0031] like Figure 1 As shown, the air conditioning program interrupt overflow protection method may include steps S110 to S130.
[0032] Step S110, respectively counting the interruption of the current loop and the speed loop in the magnetic field oriented control loop to obtain the cumulative interruption times of the current loop and the cumulative interruption times of the speed loop, wherein the carrier frequencies used by the interruption programs of the current loop and the speed loop are different;
[0033] Step S120, when the cumulative interruption times of the current loop and / or the cumulative interruption times of the speed loop meet the predetermined conditions, performing a judgment operation and a number-setting operation, wherein the judgment operation is used to judge whether an interruption overflow fault occurs according to a comparison result of the cumulative interruption times of the current loop and the cumulative interruption times of the speed loop;
[0034] Step S130: performing an interrupt overflow protection operation according to the number of occurrences of the interrupt overflow fault.
[0035] The field-oriented control loop (FOC (Field-Oriented Control) loop) in the air conditioner is a motor control technology. The field-oriented control loop can effectively control the motor of the compressor in the air conditioner by accurately controlling the amplitude and frequency of the output voltage of the frequency converter. The field-oriented control loop can include a current loop and a speed loop. The current loop can use a corresponding interrupt program to control the current of the motor, and the speed loop can use a corresponding interrupt program to control the speed of the motor.
[0036] In the embodiment of the present application, interrupt programs (i.e., interrupt functions) with different carrier frequencies are used in the current loop and the speed loop, respectively, and the interrupt programs of the current loop and the speed loop enter the interruption according to the corresponding carrier frequencies. The interrupt programs of the current loop and the speed loop in the magnetic field oriented control loop are counted for program interruption, that is, the interruption number is accumulated each time the interruption program enters the interruption, and the cumulative interruption number of the current loop and the cumulative interruption number of the speed loop are obtained.
[0037] For example, see Figure 2 When the program is executed in the magnetic field oriented control loop, step S210, executes the interrupt program with a carrier frequency of 6kHz in the speed loop, and the interrupt program of the speed loop enters the interrupt according to the carrier frequency of 6kHz when it is executed; step S220, executes the interrupt program with a carrier frequency of 18kHz in the current loop, and the interrupt program of the current loop enters the interrupt according to the carrier frequency of 18kHz when it is executed; step S230, counts the program interruptions of the speed loop, and the cumulative number of interruptions of the speed loop SPD_COUNT=SPD_COUNT+1, that is, each time the interruption program enters the interruption, SPD_COUNT accumulates by 1; step S240, counts the program interruptions of the current loop, and the cumulative number of interruptions of the current loop CUR_COUNT=CUR_COUNT+1, that is, each time the interruption program enters the interruption, CUR_COUNT accumulates by 1.
[0038] When the current loop cumulative interruption times and / or the speed loop cumulative interruption times meet the predetermined conditions, a judgment operation and a times zeroing operation are performed. The judgment operation is used to judge whether an interruption overflow fault occurs according to the comparison result of the current loop cumulative interruption times and the speed loop cumulative interruption times; and the times zeroing operation is to reset the accumulated current loop cumulative interruption times and the speed loop cumulative interruption times to zero, so as to restart the program interruption counting from zero.
[0039] By continuously performing program interrupt counting, executing judgment operations and resetting the number of times according to the above steps, the number of interrupt overflow faults can be accumulated. The severity of the interrupt overflow fault can be reflected based on the number of occurrences. The interrupt overflow protection operation can be reliably executed based on the number of occurrences. Interrupt overflow protection is performed through the interrupt overflow protection operation to improve the program control reliability of the magnetic field oriented control loop.
[0040] For example, see Figure 2 In step S250, a judgment operation and a number-setting operation are performed. The judgment operation is used to judge whether an interrupt overflow fault occurs according to SPD_COUNT and CUR_COUNT, and the number-setting operation is used to set SPD_COUNT and CUR_COUNT to zero. In step S260, the number of occurrences of the interrupt overflow fault is accumulated, and the number of occurrences A=A+1, that is, each time an interrupt overflow fault is judged to occur, A is accumulated by 1. In step S270, an interrupt overflow protection operation is performed according to the number of occurrences.
[0041] In this way, by using interrupt programs with different carrier frequencies for the current loop and the speed loop in the magnetic field oriented control loop of the air conditioner, and counting the program interrupts of the current loop interrupt program and the speed loop interrupt program respectively, the comparison result of the cumulative number of interrupts of the current loop and the cumulative number of interrupts of the speed loop obtained by counting can accurately determine whether an interrupt overflow fault occurs, and further according to the number of occurrences of the interrupt overflow fault, the interrupt overflow protection operation can be reliably executed, thereby realizing convenient and reliable detection and protection of the interrupt overflow fault of the control program in the magnetic field oriented control loop, and improving the program control reliability of the magnetic field oriented control loop.
[0042] In particular, the solution of the present application can be used in the testing phase of air-conditioning products. During the product testing process, the program interrupt overflow failure of the magnetic field-oriented control loop can be discovered and the interrupt overflow protection operation can be reliably performed, thereby reducing the risk of failure of the air-conditioning product.
[0043] Described below Figure 1 When the air conditioner program interrupt overflow protection is performed in the embodiment, further optional specific embodiments are provided for each step performed.
[0044] In one embodiment, before executing the judgment operation and the number-setting-to-zero operation, the method further includes: determining whether the cumulative number of interruptions of the current loop and / or the cumulative number of interruptions of the speed loop is a predetermined number; if so, determining that a predetermined condition is met.
[0045] The predetermined number of times may include a first predetermined number of times and a second predetermined number of times. In one embodiment, when the cumulative number of interruptions of the current loop is the first predetermined number of times, it is determined that the predetermined condition is satisfied; in another embodiment, when the cumulative number of interruptions of the speed loop is the second predetermined number of times, it is determined that the predetermined condition is satisfied; in another embodiment, when the cumulative number of interruptions of the current loop is the first predetermined number of times and the cumulative number of interruptions of the speed loop is the second predetermined number of times, it is determined that the predetermined condition is satisfied.
[0046] In a specific implementation, the "carrier frequency of the interruption program of the current loop" is N times the "carrier frequency of the interruption program of the speed loop", that is, under normal circumstances, the ratio of the cumulative number of interruptions of the speed loop to the cumulative number of interruptions of the current loop is 1:N. Furthermore, when the ratio of the second predetermined number to the first predetermined number is 1:N, the reliability of interruption overflow fault monitoring can be further improved.
[0047] In one scenario, the "carrier frequency of the current loop interrupt program" is 18kHz, the "carrier frequency of the speed loop interrupt program" is 6kHz, the first predetermined number is set to 6, and the second predetermined number is set to 2. At this time, the reliability of interrupt overflow fault monitoring can be most effectively guaranteed.
[0048] Further, in one embodiment, judging whether an interruption overflow fault occurs based on a comparison result of the cumulative number of interruptions of the current loop and the cumulative number of interruptions of the speed loop may include: calculating the ratio of the cumulative number of interruptions of the current loop to the cumulative number of interruptions of the speed loop; if the ratio is not a predetermined ratio, judging that an interruption overflow fault occurs.
[0049] When the predetermined conditions are met, the ratio of the cumulative interruption times of the current loop to the cumulative interruption times of the speed loop is calculated. If the ratio is not the predetermined ratio, it means that the interruption program is not executed normally according to the set carrier frequency. At this time, it can be determined that an interruption overflow fault has occurred.
[0050] It can be understood that in other embodiments, the determination of whether an interruption overflow fault occurs based on the comparison result of the cumulative number of interruptions of the current loop and the cumulative number of interruptions of the speed loop may also include: calculating whether the product of the cumulative number of interruptions of the speed loop and the predetermined ratio is equal to the cumulative number of interruptions of the current loop; if not, determining that the interruption overflow fault occurs.
[0051] In a specific implementation, the predetermined ratio is equal to the ratio of "the carrier frequency of the interruption program of the current loop" to "the carrier frequency of the interruption program of the speed loop". At this time, the accuracy of the judgment of the interruption overflow fault can be best guaranteed. In other implementations, the predetermined ratio can be other ratios set according to actual conditions.
[0052] Further, in one embodiment, performing the interrupt overflow protection operation according to the number of occurrences of the interrupt overflow fault may include: determining whether the number of occurrences of the interrupt overflow fault exceeds a predetermined threshold; if so, performing the interrupt overflow protection operation.
[0053] If it is determined whether the number of occurrences of the interrupt overflow fault exceeds a predetermined threshold, it indicates that the interrupt overflow fault is relatively serious. Executing the interrupt overflow protection operation can perform interrupt overflow protection and improve the program control reliability of the magnetic field oriented control loop.
[0054] In one embodiment, executing the interrupt overflow protection operation may include: generating fault prompt information of the interrupt overflow fault; and playing the fault prompt information in a predetermined playing mode.
[0055] The fault prompt information is prompt information for prompting that an interrupt overflow fault occurs in the program of the field-oriented control loop. For example, the fault prompt information is "the number of occurrences of the interrupt overflow fault exceeds a predetermined threshold" and the like.
[0056] The fault prompt information is played in a predetermined playing mode so that the interruption overflow fault of the program of the magnetic field oriented control loop can be traced. The predetermined playing mode can be displayed on the display panel of the air conditioner, transmitted to other devices for display through voice broadcast, etc., to realize the visual fault solution of the interruption overflow fault of the program of the magnetic field oriented control loop.
[0057] Furthermore, in one embodiment, the execution of the interrupt overflow protection operation includes: splitting the interrupt program with a higher carrier frequency in the interrupt program of the current loop and the interrupt program of the speed loop to obtain a first part of the program and a second part of the program; executing the first part of the program in the loop where the interrupt program with a lower carrier frequency is located, and executing the second part of the program in the loop where the interrupt program with a higher carrier frequency is located.
[0058] The interrupt program with a higher carrier frequency is split into a first part and a second part. The first part is executed by the loop where the interrupt program with a lower carrier frequency is located, and the second part is retained for execution in the loop where the interrupt program with a higher carrier frequency is located. This can effectively reduce the work of the loop where the interrupt program with a higher carrier frequency is located, thereby avoiding interrupt overflow failures in the program of the magnetic field oriented control loop.
[0059] In a specific embodiment, the carrier frequency of the interrupt program of the current loop is higher than the carrier frequency of the interrupt program of the speed loop; Figure 3, the interrupt program with a higher carrier frequency in the interrupt program of the current loop and the interrupt program of the speed loop are split to obtain a first part of the program and a second part of the program, including: step S310, splitting the interrupt program of the current loop to obtain a first part of the program and a second part of the program, wherein the second part of the program is a related function for performing operations, and the first part of the program is the remaining part of the program; correspondingly, the first part of the program is executed by the loop where the interrupt program with a lower carrier frequency is located, and the second part of the program is executed in the loop where the interrupt program with a higher carrier frequency is located, including: step S320, the first part of the program is executed by the speed loop, and the two parts of the program are executed in the current loop.
[0060] In this implementation, the carrier frequency of the interrupt program of the current loop is designed to be higher than the carrier frequency of the interrupt program of the speed loop, and then the interrupt program of the current loop is split into a first part program and a second part program, wherein the second part program is a related function for performing calculations, and the first part program is the remaining part of the interrupt program of the current loop after removing the second part program. The first part program is handed over to the speed loop for execution, and then the first part program and the interrupt program of the speed loop are executed in the speed loop, and the second part program is retained in the current loop for execution. With this implementation, the applicant has found that the interrupt overflow protection effect can be effectively further improved.
[0061] It can be understood that, in one embodiment, the execution of the interrupt overflow protection operation may include: playing fault prompt information through a predetermined playback method; and splitting the interrupt program with a higher carrier frequency in the interrupt program of the current loop and the interrupt program of the speed loop to obtain a first part of the program and a second part of the program; handing the first part of the program to the loop where the interrupt program with a lower carrier frequency is located for execution, and executing the second part of the program in the loop where the interrupt program with a higher carrier frequency is located.
[0062] In addition, the embodiment of the present application also provides an air conditioner program interruption overflow protection device. Figure 4 As shown, Figure 4 A block diagram of an air conditioning program interrupt overflow protection device according to an embodiment of the present application is shown. Specifically, the air conditioning program interrupt overflow protection device 400 may include a processor 401 of one or more processing cores and a memory 402 of one or more computer-readable storage media.
[0063] The processor 401 can load the executable files corresponding to the processes of one or more computer programs into the memory 402 according to the instructions, and the processor 401 can run the computer programs stored in the memory 402, so as to realize the various functions in the embodiment of the aforementioned air conditioning program interrupt overflow protection method of the present application.
[0064] For example, the processor 401 may execute the following steps:
[0065] The interruption program of the current loop and the interruption program of the speed loop in the magnetic field oriented control loop are respectively counted to obtain the cumulative interruption times of the current loop and the cumulative interruption times of the speed loop, wherein the carrier frequencies adopted by the interruption program of the current loop and the interruption program of the speed loop are different; when the cumulative interruption times of the current loop and / or the cumulative interruption times of the speed loop meet the predetermined conditions, a judgment operation and a number zeroing operation are performed, wherein the judgment operation is used to judge whether an interruption overflow fault occurs according to the comparison result of the cumulative interruption times of the current loop and the cumulative interruption times of the speed loop; and an interruption overflow protection operation is performed according to the number of occurrences of the interruption overflow fault.
[0066] In some embodiments of the present application, performing an interrupt overflow protection operation according to the number of occurrences of the interrupt overflow fault includes: determining whether the number of occurrences of the interrupt overflow fault exceeds a predetermined threshold; if so, performing the interrupt overflow protection operation.
[0067] In some embodiments of the present application, executing the interrupt overflow protection operation includes: generating fault prompt information of the interrupt overflow fault; and playing the fault prompt information in a predetermined playing mode.
[0068] In some embodiments of the present application, executing the interrupt overflow protection operation includes: splitting the interrupt program with a higher carrier frequency in the interrupt program of the current loop and the interrupt program of the speed loop to obtain a first part of the program and a second part of the program; executing the first part of the program in the loop where the interrupt program with a lower carrier frequency is located, and executing the second part of the program in the loop where the interrupt program with a higher carrier frequency is located.
[0069] In some embodiments of the present application, the carrier frequency of the interrupt program of the current loop is higher than the carrier frequency of the interrupt program of the speed loop; the interrupt program with a higher carrier frequency in the current loop and the speed loop is split to obtain a first part of the program and a second part of the program, including: splitting the interrupt program of the current loop to obtain a first part of the program and a second part of the program, wherein the second part of the program is a related function for performing operations, and the first part of the program is the remaining part of the program; correspondingly, the first part of the program is executed by the loop where the interrupt program with a lower carrier frequency is located, and the second part of the program is executed in the loop where the interrupt program with a higher carrier frequency is located, including: the first part of the program is executed by the speed loop, and the two parts of the program are executed in the current loop.
[0070] In some embodiments of the present application, judging whether an interrupt overflow fault occurs based on a comparison result of the cumulative number of interruptions of the current loop and the cumulative number of interruptions of the speed loop includes: calculating the ratio of the cumulative number of interruptions of the current loop to the cumulative number of interruptions of the speed loop; if the ratio is not a predetermined ratio, judging that the interrupt overflow fault occurs.
[0071] In some embodiments of the present application, before executing the judgment operation and the number-setting-to-zero operation, the method further includes: determining whether the cumulative number of interruptions of the current loop and / or the cumulative number of interruptions of the speed loop is a predetermined number; if so, determining that the predetermined condition is met.
[0072] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0073] To this end, an embodiment of the present application further provides a storage medium, in which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any method provided in the embodiment of the present application.
[0074] The storage medium may be a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0075] Since the computer program stored in the storage medium can execute the steps in any method provided in the embodiments of the present application, the beneficial effects that can be achieved by the method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0076] In addition, see Figure 5 The embodiment of the present application also provides an air conditioner, the air conditioner 500 may include Figure 4 The air conditioning program interruption overflow protection device 400 and other air conditioning modules 600 (such as a compressor, etc.) are shown.
[0077] According to another embodiment of the present application, a computer program product or a computer program includes a computer instruction stored in a computer-readable storage medium. A processor of an air conditioner program interruption overflow protection device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the air conditioner program interruption overflow protection device executes the method provided in various optional implementations described in the embodiments of the present application.
[0078] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0079] It should be understood that the present application is not limited to the embodiments that have been described above and shown in the accompanying drawings, but various modifications and changes may be made without departing from the scope thereof.
Claims
1. An air conditioner program interrupt overflow protection method, characterized in that: include: The interruption program of the current loop and the interruption program of the speed loop in the magnetic field oriented control loop are respectively counted to obtain the cumulative interruption times of the current loop and the cumulative interruption times of the speed loop, wherein the carrier frequencies used by the interruption program of the current loop and the interruption program of the speed loop are different; When the cumulative interruption times of the current loop and / or the cumulative interruption times of the speed loop meet the predetermined conditions, a judgment operation and a number-setting operation are performed, wherein the judgment operation is used to judge whether an interruption overflow fault occurs according to a comparison result of the cumulative interruption times of the current loop and the cumulative interruption times of the speed loop; An interrupt overflow protection operation is performed according to the number of occurrences of the interrupt overflow fault.
2. The method according to claim 1, characterized in that The performing of the interrupt overflow protection operation according to the number of occurrences of the interrupt overflow fault comprises: Determining whether the number of occurrences of the interrupt overflow fault exceeds a predetermined threshold; If so, the interrupt overflow protection operation is performed.
3. The method according to claim 2, characterized in that The executing the interrupt overflow protection operation includes: Generate fault prompt information for interrupt overflow fault; The fault prompt information is played in a predetermined playing mode.
4. The method according to claim 2, characterized in that: The executing the interrupt overflow protection operation includes: Splitting the interrupt program with a higher carrier frequency from the interrupt program of the current loop and the interrupt program of the speed loop to obtain a first part of the program and a second part of the program; The first part of the program is executed by a loop where an interrupt program with a lower carrier frequency is located, and the second part of the program is executed by a loop where an interrupt program with a higher carrier frequency is located.
5. The method according to claim 4, characterized in that The carrier frequency of the interrupt program of the current loop is higher than the carrier frequency of the interrupt program of the speed loop; The interrupt program of the current loop and the interrupt program of the speed loop with a higher carrier frequency are split to obtain a first part of the program and a second part of the program, including: Splitting the interruption program of the current loop to obtain a first part of the program and a second part of the program, wherein the second part of the program is a related function for performing calculations, and the first part of the program is the remaining part of the program; Correspondingly, the step of handing over the first part of the program to a ring where an interrupt program with a lower carrier frequency is located for execution, and the step of handing over the second part of the program to a ring where an interrupt program with a higher carrier frequency is located for execution, comprises: The first part of the program is executed by the speed loop, and the second part of the program is executed in the current loop.
6. The method according to claim 1, characterized in that The step of judging whether an interruption overflow fault occurs according to a comparison result of the cumulative interruption times of the current loop and the cumulative interruption times of the speed loop includes: Calculating the ratio of the cumulative interruption times of the current loop to the cumulative interruption times of the speed loop; If the ratio is not the predetermined ratio, it is determined that the interrupt overflow fault occurs.
7. The method according to any one of claims 1 to 6, characterized in that: Before the execution judgment operation and the number of zeroing operations, the method further includes: Determining whether the cumulative number of interruptions of the current loop and / or the cumulative number of interruptions of the speed loop is a predetermined number; If so, it is determined that the predetermined condition is met.
8. An air conditioner program interruption overflow protection device, characterized in that: include: a memory storing a computer program; A processor reads a computer program stored in a memory to execute the method according to any one of claims 1 to 7.
9. A storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of the air conditioner, the air conditioner executes the method according to any one of claims 1 to 7.
10. An air conditioner, characterized in that: It includes the air conditioning program interruption overflow protection device as described in claim 8.