Method and device for controlling refrigerator, refrigerator and computer readable storage medium

By exiting the maximum torque-current ratio control and weak magnetic control when the power is disconnected, the problem of horn-shaped amplification of the current of the variable frequency compressor is solved, and the full control of the motor and the protection of the drive chip and compressor are realized.

CN120020476APending Publication Date: 2025-05-20QINDAO HAIER REFRIGERATOR CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311542514.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-17
Publication Date
2025-05-20

AI Technical Summary

Technical Problem

When the power supply is suddenly disconnected, the current of the variable frequency compressor will be amplified in a horn shape, resulting in loss of control of the motor, which may lead to damage to the driver chip and compressor.

Method used

By obtaining the on-off condition of the power supply, when the power supply is turned off, the maximum torque current ratio control and/or weak magnetic control are withdrawn, reducing the change in the current vector of the motor and/or the change in the magnetic field intensity.

Benefits of technology

The current horn-shaped amplification of the drive compressor is avoided, and the full control of the motor is achieved, and the driving chip and compressor are protected.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120020476A_ABST
    Figure CN120020476A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent household appliances, and discloses a method for controlling a refrigerator, which comprises the following steps: acquiring the on-off condition of a power supply; and when the power supply is disconnected, exiting the maximum torque current ratio control and / or field weakening control. When a power supply is cut off suddenly, the compressor is still in an operation process at the moment, the change of a current vector of the motor and / or the change of the magnetic field intensity of the motor are / is reduced by quitting large torque current ratio control and / or weak magnetic control, and horn-shaped amplification of current for driving the compressor is avoided, so that whole-process control on the motor is realized; and the driving chip and the compressor are protected. The invention further discloses a device for controlling the refrigerator, the refrigerator and a computer readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of smart home appliances, for example, to a method and device for controlling a refrigerator, a refrigerator, and a computer-readable storage medium. Background Art

[0002] Currently, when the power supply is suddenly disconnected, before relevant protection occurs, the variable-frequency compressor still operates according to the main control instruction by the variable-frequency drive. As the DC bus voltage decreases, the output voltage of the variable-frequency drive will also decrease. When the back electromotive force of the variable-frequency compressor is greater than the output voltage, the back electromotive force will charge the DC bus. At this time, the variable-frequency drive is still working, resulting in vibration of the variable-frequency compressor.

[0003] The related art discloses a method for handling power-off shutdown of a variable-frequency compressor, including: when the input voltage of the commercial power stops, determining whether an oscillation waveform appears in the waveform of the input current of the variable-frequency compressor; when it is determined that an oscillation waveform appears in the waveform of the input current of the variable-frequency compressor, determining whether the voltage value of the DC bus is greater than a preset adjustment value. If so, increasing the value range of the modulation coefficient; otherwise, adjusting the weak magnetic control modulation rate and increasing the overload frequency reduction rate to avoid vibration of the variable-frequency compressor during power-off shutdown.

[0004] In the process of implementing the embodiments of the present disclosure, it is found that at least the following problems exist in the related art:

[0005] The related art to a certain extent avoids the vibration of the compressor when the power supply is disconnected. However, in actual application, when the power supply is suddenly disconnected, the current driving the compressor will be amplified in a trumpet shape, resulting in the loss of control of the motor and possibly causing damage to the driving chip and the compressor.

[0006] It should be noted that the information disclosed in the above background art section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to those of ordinary skill in the art. Summary of the Invention

[0007] To have a basic understanding of some aspects of the disclosed embodiments, a simple summary is given below. The summary is not a general review, nor is it intended to identify key / important constituent elements or delineate the protection scope of these embodiments, but rather serves as a preface to the subsequent detailed description.

[0008] The embodiments of the present disclosure provide a method and device for controlling a refrigerator, a refrigerator, and a computer-readable storage medium to avoid the trumpet-shaped amplification of the current driving the compressor when the power supply is suddenly disconnected, thereby achieving full control of the motor and protecting the driving chip and the compressor.

[0009] In some embodiments, the method includes: obtaining the on / off status of the power supply; when the power supply is off, exiting the maximum torque current ratio control and / or field weakening control.

[0010] Optionally, obtaining the on / off status of the power supply includes: determining the on / off status of the power supply according to the bus voltage.

[0011] Optionally, determining the on / off status of the power supply according to the bus voltage includes: when the bus voltage is greater than or equal to the set voltage, determining that the power supply is connected; when the bus voltage is less than the set voltage, determining that the power supply is off; when the bus voltage recovers to be greater than or equal to the set voltage within a set time from being less than the set voltage, determining that the power supply is unstable.

[0012] Optionally, after obtaining the on / off status of the power supply, it further includes: when the power supply is unstable, initializing the output value of the speed loop.

[0013] Optionally, initializing the output value of the speed loop includes: obtaining the actual value of the quadrature axis current; assigning the actual value of the quadrature axis current to the output value of the speed loop.

[0014] Optionally, after initializing the output value of the speed loop, it further includes: performing maximum torque current ratio control or field weakening control according to the operating stage of the compressor.

[0015] Optionally, performing maximum torque current ratio control or field weakening control according to the operating stage of the compressor includes: when the compressor is in the closed-loop stage or the oil pumping stage, performing maximum torque current ratio control; when the compressor is in the operating stage, performing field weakening control.

[0016] In some embodiments, the device includes: a processor and a memory storing program instructions, and the processor is configured to execute the above method for controlling a refrigerator when executing the above program instructions.

[0017] In some embodiments, the refrigerator includes:

[0018] A refrigerator body;

[0019] The above device for controlling a refrigerator is installed on the refrigerator body.

[0020] In some embodiments, the computer-readable storage medium stores program instructions, and when the above program instructions are running, they execute the above method for controlling a refrigerator.

[0021] The method, device, refrigerator, and computer-readable storage medium for controlling a refrigerator provided by the embodiments of the present disclosure can achieve the following technical effects:

[0022] Obtain the on / off status of the power supply. When the power supply is disconnected, exit the maximum torque current ratio control and / or field weakening control. When the power supply is suddenly disconnected and the compressor is still in operation, by exiting the maximum torque current ratio control and / or field weakening control, the change of the current vector of the motor and / or the change of the magnetic field intensity of the motor are reduced, avoiding the current horn-shaped amplification of driving the compressor, thereby realizing the full-process control of the motor and protecting the driving chip and the compressor.

[0023] The above general description and the following description are only exemplary and explanatory, and are not used to limit this application. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] One or more embodiments are exemplarily illustrated by corresponding drawings. These exemplary illustrations and the drawings do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements. The drawings do not constitute a scale limitation, and among them:

[0025] Figure 1 is a schematic diagram of a method for controlling a refrigerator provided by an embodiment of the present disclosure;

[0026] Figure 2 is a schematic diagram of another method for controlling a refrigerator provided by an embodiment of the present disclosure;

[0027] Figure 3 is a schematic diagram of another method for controlling a refrigerator provided by an embodiment of the present disclosure;

[0028] Figure 4 is a schematic diagram of another method for controlling a refrigerator provided by an embodiment of the present disclosure;

[0029] Figure 5 is a schematic diagram of a device for controlling a refrigerator provided by an embodiment of the present disclosure;

[0030] Figure 6 is a schematic diagram of a refrigerator provided by an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0031] In order to be able to understand the features and technical content of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure will be elaborated in detail below in conjunction with the drawings. The attached drawings are only for reference and illustration purposes, and are not used to limit the embodiments of the present disclosure. In the following technical descriptions, for the sake of explanation, multiple details are provided to provide a full understanding of the disclosed embodiments. However, one or more embodiments can still be implemented without these details. In other cases, well-known structures and devices can be shown in a simplified manner.

[0032] In the specification, claims and above-mentioned accompanying drawings of the embodiments of the present disclosure, terms such as "first", "second" are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so as to implement the embodiments of the present disclosure described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion.

[0033] Unless otherwise specified, the term "plurality" means two or more.

[0034] In the embodiments of the present disclosure, the character " / " means that the objects before and after are in an "or" relationship. For example, A / B means: A or B.

[0035] The term "and / or" is an associative relationship describing an object, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B these three relationships.

[0036] The term "corresponding" may refer to an associative relationship or a binding relationship. A corresponding to B means that there is an associative relationship or a binding relationship between A and B.

[0037] In the embodiments of the present disclosure, an intelligent household appliance device refers to a household appliance product formed by introducing a microprocessor, sensor technology, and network communication technology into a household appliance device, having the characteristics of intelligent control, intelligent perception, and intelligent application. The operation process of the intelligent household appliance device often depends on the application and processing of modern technologies such as the Internet of Things, the Internet, and electronic chips. For example, the intelligent household appliance device can be connected to an electronic device to achieve remote control and management of the intelligent household appliance device by the user.

[0038] In the embodiments of the present disclosure, a terminal device refers to an electronic device with a wireless connection function. The terminal device can be communicatively connected to the above-mentioned intelligent household appliance device by connecting to the Internet, or can directly communicate with the above-mentioned intelligent household appliance device by means of Bluetooth, wifi, etc. In some embodiments, the terminal device is, for example, a mobile device, a computer, or an in-vehicle device built in a hover vehicle, etc., or any combination thereof. The mobile device can, for example, include a mobile phone, a smart home device, a wearable device, a smart mobile device, a virtual reality device, etc., or any combination thereof, wherein the wearable device includes, for example: a smart watch, a smart bracelet, a pedometer, etc.

[0039] Currently, when the power supply is suddenly disconnected, before relevant protection occurs, the variable-frequency compressor still operates according to the main control instruction. As the DC bus voltage decreases, the output voltage of the variable-frequency drive will also decrease. When the back electromotive force of the variable-frequency compressor is greater than the output voltage, the back electromotive force will charge the DC bus. At this time, the variable-frequency drive is still working, resulting in vibration of the variable-frequency compressor. The related technology discloses a method for handling power-off shutdown of a variable-frequency compressor, including: when the input voltage of the commercial power stops, determining whether an oscillation waveform appears in the waveform of the input current of the variable-frequency compressor; when it is determined that an oscillation waveform appears in the waveform of the input current of the variable-frequency compressor, determining whether the voltage value of the DC bus is greater than a preset adjustment value. If so, increasing the value range of the modulation coefficient; otherwise, adjusting the weak magnetic control modulation rate and increasing the overload frequency reduction rate to avoid vibration of the variable-frequency compressor during power-off shutdown. To a certain extent, the related technology avoids the vibration phenomenon of the compressor when the power supply is disconnected. However, in the actual application process, when the power supply is suddenly disconnected, the current driving the compressor will be amplified in a trumpet shape, resulting in the loss of control of the motor and possibly causing damage to the drive chip and the compressor.

[0040] An embodiment of the present disclosure discloses a refrigerator, including a variable-frequency compressor and a processor. The variable-frequency compressor includes a permanent magnet synchronous motor, and the processor is electrically connected to each electrical component of the refrigerator for controlling each electrical component to perform actions.

[0041] Based on the structure of the refrigerator described above, as Figure 1 shown, an embodiment of the present disclosure provides a method for controlling a refrigerator, including:

[0042] S01, the processor obtains the on / off status of the power supply.

[0043] S02, when the power supply is disconnected, the processor exits the maximum torque current ratio control and / or the weak magnetic control.

[0044] Among them, when the power supply is disconnected, the processor controls the motor to continue to perform speed loop control and current loop control. Here, the speed loop control and current loop control are the controls that the refrigerator originally needs to perform when in the power-off state. The speed loop control mainly involves the adjustment of speed. In motor control, the main function of the speed loop is to adjust the speed of the motor according to the difference between the actual speed and the reference speed of the motor. The main function of the current loop is to adjust the output current of the motor according to the difference between the actual current and the reference current of the motor.

[0045] Among them, the input of the current loop is the output after being adjusted by the speed-loop PID control (proportional-integral-derivative control), which is called the "current-loop reference". The difference after comparing this reference value with the "current-loop feedback" value is subjected to PID adjustment within the current loop and output to the motor, and the output current is the phase current of each phase of the motor.

[0046] Among them, MTPA control (Maximum Torque Per Ampere) is to control the current and voltage of the motor to achieve the control of maximum torque and power. In the MTPA control strategy, the control of current and voltage is carried out separately. The current control mainly adjusts the magnitude of the current of the motor to achieve the control of maximum torque, while the voltage control adjusts the magnitude of the voltage of the motor to achieve the control of maximum power.

[0047] Adopting the method for controlling a refrigerator provided by the embodiment of the present disclosure, the on-off situation of the power supply is obtained. When the power supply is disconnected, the maximum torque current ratio control and / or field weakening control is exited. When the power supply is suddenly disconnected and the compressor is still in the running process at this time, by exiting the maximum torque current ratio control and / or field weakening control, the change of the current vector of the motor and / or the change of the magnetic field intensity of the motor are reduced, avoiding the current horn-shaped amplification for driving the compressor, thereby realizing the full-process control of the motor and protecting the driving chip and the compressor.

[0048] Based on the above structure of the refrigerator, as Figure 2 shown, the embodiment of the present disclosure provides a method for controlling a refrigerator, including:

[0049] S21, the processor determines the on-off situation of the power supply according to the bus voltage.

[0050] S02, when the power supply is disconnected, the processor exits the maximum torque current ratio control and / or field weakening control.

[0051] Adopting the method for controlling a refrigerator provided by the embodiment of the present disclosure, since the working voltage of the compressor of the refrigerator is usually provided by the bus voltage. If the bus voltage is normal, the compressor has enough power to operate. However, if the bus voltage fails or is abnormal, the power supply of the compressor will be interrupted, resulting in the compressor stopping working. Therefore, by checking the bus voltage, it can be judged whether the compressor of the refrigerator is powered off. Thus, the processor determines the on-off situation of the power supply according to the bus voltage, improving the detection accuracy of the on-off situation of the power supply.

[0052] Based on the above structure of the refrigerator, as Figure 3 shown, the embodiment of the present disclosure provides a method for controlling a refrigerator, including:

[0053] S31. When the bus voltage is greater than or equal to the set voltage, the processor determines that the power supply is connected.

[0054] S32. When the bus voltage is less than the set voltage, the processor determines that the power supply is disconnected.

[0055] S33. When the bus voltage recovers from being less than the set voltage to being greater than or equal to the set voltage within the set time, the processor determines that the power supply is unstable.

[0056] S02. When the power supply is disconnected, the processor exits the maximum torque current ratio control and / or field weakening control.

[0057] Wherein, the set voltage can be any voltage value, for example, 239V, 240V or 241V, which is not limited here. Specifically, the set voltage can be determined according to the mains voltage in the area where the refrigerator is located.

[0058] Using the method for controlling a refrigerator provided by the embodiments of the present disclosure, when the bus voltage is greater than or equal to the set voltage, at this time the bus voltage is normal, indicating that the power supply supplies power to the compressor normally. Therefore, the processor determines that the power supply is connected. When the bus voltage is less than the set voltage, at this time the bus voltage is low, indicating that the power supply supplies power to the compressor abnormally. Therefore, the processor determines that the power supply is disconnected. When the bus voltage recovers from being less than the set voltage to being greater than or equal to the set voltage within the set time, although the bus voltage drops below the set voltage, but it recovers above the set voltage in a short time, indicating that the power supply is unstable and the power supply still supplies power to the compressor normally. Therefore, the processor determines that the power supply is unstable.

[0059] Based on the above structure of the refrigerator, as Figure 4 shown, the embodiments of the present disclosure provide a method for controlling a refrigerator, including:

[0060] S01. The processor obtains the on / off status of the power supply.

[0061] S02. When the power supply is disconnected, the processor exits the maximum torque current ratio control and / or field weakening control.

[0062] S41. When the power supply is unstable, the processor initializes the output value of the speed loop.

[0063] When using the method for controlling a refrigerator provided by the embodiments of the present disclosure, in regions with unstable voltage such as India and Pakistan, the voltage fluctuation is large, and it is possible that the bus voltage drops below the set voltage, resulting in the processor determining that the power supply is disconnected while the actual power supply is not. At this time, when the processor determines that the power supply is disconnected, it will execute the control instructions when the power supply is disconnected. Therefore, to avoid the above situation, when the power supply is unstable, since the bus voltage recovers from an abnormally low voltage to a normal voltage, the processor initializes the output value of the speed loop to eliminate the control instructions when the processor is in a low voltage state, thereby improving the applicability of the refrigerator in regions with unstable voltage.

[0064] Optionally, the processor initializing the output value of the speed loop includes: the processor obtaining the actual value of the cross-axis current; the processor assigning the actual value of the cross-axis current to the output value of the speed loop.

[0065] In this way, the processor obtains the actual value of the cross-axis current and assigns the actual value of the cross-axis current to the output value of the speed loop. At this time, the input value of the current loop is the output value of the initialized speed loop, that is, the actual value of the cross-axis current. The current loop does not control the motor to maintain the stability of the current of the compressor motor, and avoids the situation where the processor executes low bus voltage control and causes abnormal current and shutdown.

[0066] Optionally, after the processor initializes the output value of the speed loop, it further includes: the processor performing maximum torque current ratio control or field weakening control according to the operating stage of the compressor.

[0067] In this way, when the power supply is unstable and the processor initializes the output value of the speed loop to eliminate the influence of the control instructions when the processor is in a low voltage state, it is necessary to resume the control of the compressor. Therefore, the processor performs maximum torque current ratio control or field weakening control according to the operating stage of the compressor.

[0068] Optionally, the processor performing maximum torque current ratio control or field weakening control according to the operating stage of the compressor includes: when the compressor is in the closed-loop stage or the oil pumping stage, the processor performs maximum torque current ratio control; when the compressor is in the operating stage, the processor performs field weakening control.

[0069] Among them, the oil pumping stage of the compressor refers to the process of pumping lubricating oil from the oil sump during the operation of the compressor, entering the compressor through the oil pipe to lubricate and cool each component of the compressor to protect the normal operation of the compressor.

[0070] The closed-loop stage of the compressor refers to the process of continuously monitoring the operating state of the compressor through sensors during its operation, and feeding back the monitoring data to the processor. The processor adjusts and optimizes the operating state of the compressor based on the feedback data to achieve the preset operating state and goals, thereby realizing precise control of the compressor's operating state and improving the operating efficiency and stability of the compressor.

[0071] In this way, when the compressor is in the closed-loop stage or the oil pumping stage, the processor executes the maximum torque flow ratio control to reduce power consumption and improve energy efficiency. When the compressor is in the operating stage, the processor executes the field weakening control to expand the speed range of the motor and meet the performance requirements during the operation of the refrigerator.

[0072] In the actual application process, when the power supply suddenly cuts off or the power socket is unplugged and the bus voltage is less than the set voltage, it is determined that the low voltage flag is true, and the field weakening control and / or MPTA control are exited. When the bus voltage is greater than or equal to the set voltage, there are two cases at this time. One is that the bus voltage has always been greater than or equal to the set voltage, and the other is that due to unstable voltage in the area where it is located or other reasons, the bus voltage recovers from less than the set voltage to greater than or equal to the set voltage. In the first case, the processor controls the motor to operate normally. In the second case, since the bus voltage is less than the set voltage for a short time, it may trigger the control instruction when the bus voltage is less than the set voltage. However, at this time, the power supply is not disconnected, and executing the control instruction when the bus voltage is less than the set voltage may cause the compressor current to be abnormal and the compressor to stop. Therefore, to avoid the above situation, the processor needs to determine that the low voltage flag is false, initialize the output value of the speed loop, maintain the stability of the motor current, thereby eliminating the influence, and continue to control the motor to operate normally. When the compressor is in the closed-loop stage or the oil pumping stage, the processor controls the motor to execute the speed loop control, current loop control, and MPTA control. When the compressor is in the normal operating stage after the oil pumping stage, the processor controls the motor to execute the speed loop control, current loop control, and field weakening control.

[0073] Combined Figure 5 As shown in the figure, an embodiment of the present disclosure provides a device 800 for controlling a refrigerator, including a processor 801 and a memory 802. Optionally, the device may further include a communication interface 803 and a bus 804. Among them, the processor 801, the communication interface 803, and the memory 802 can complete mutual communication through the bus 804. The communication interface 803 can be used for information transmission. The processor 801 can call the logical instructions in the memory 802 to execute the method for controlling the refrigerator in the above embodiment.

[0074] In addition, when the logical instructions in the above-mentioned memory 802 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.

[0075] As a computer-readable storage medium, the memory 802 can be used to store software programs and computer-executable programs, such as the program instructions / modules corresponding to the methods in the embodiments of the present disclosure. The processor 801 executes functional applications and data processing by running the program instructions / modules stored in the memory 802, that is, implements the method for controlling the refrigerator in the above embodiments.

[0076] The memory 802 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the terminal device, etc. In addition, the memory 802 may include high-speed random access memory and may also include non-volatile memory.

[0077] Combined Figure 6 As shown, an embodiment of the present disclosure provides a refrigerator 900, including: a refrigerator body, and the above-mentioned device 800 for controlling the refrigerator. The device 800 for controlling the refrigerator is installed on the refrigerator body. The installation relationship described here is not limited to being placed inside the refrigerator, but also includes installation connections with other components of the refrigerator, including but not limited to physical connections, electrical connections, or signal transmission connections, etc. Those skilled in the art can understand that the device 800 for controlling the refrigerator can be adapted to a feasible refrigerator body, thereby implementing other feasible embodiments.

[0078] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, and the computer-executable instructions are set to execute the above method for controlling the refrigerator.

[0079] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The foregoing storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk, or an optical disc, etc., which are various media that can store program codes.

[0080] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure, enabling those skilled in the art to practice them. Other embodiments may include structural, logical, electrical, process, and other changes. Embodiments only represent possible variations. Unless explicitly required, individual components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the terms used in this application are only for describing embodiments and do not limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates otherwise, the singular forms "a", "an", and "the" are intended to also include the plural forms. Similarly, as used in this application, the term "and / or" refers to any and all possible combinations of one or more of the associated listed items. Additionally, when used in this application, the term "comprise" and its variants "comprises" and / or "comprising" etc. mean the presence of the stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or groups of these. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, or apparatus comprising the element. Herein, each embodiment may focus on the differences from other embodiments, and the same or similar parts among the embodiments may be referred to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, the relevant parts may refer to the description of the method part.

[0081] Those skilled in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner may depend on the specific application and design constraints of the technical solution. The technician can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of the embodiments of the present disclosure. The technician can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.

[0082] In the embodiments disclosed in this article, the disclosed methods, products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units can be only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Additionally, the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of devices or units can be in electrical, mechanical, or other forms. The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to implement this embodiment. Additionally, in the embodiments of this disclosure, the various functional units can be integrated in one processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.

[0083] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of code, and the module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions marked in the blocks can occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, which can depend on the functions involved. In the descriptions corresponding to the flowcharts and block diagrams in the accompanying drawings, the operations or steps corresponding to different blocks can also occur in a different order than that disclosed in the description. Sometimes, there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, which can depend on the functions involved. Each block in the block diagram and / or flowchart, as well as the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. A method for controlling a refrigerator, characterized in that: include: Get the power on / off status; When the power is disconnected, the maximum torque current ratio control and / or the weakening magnetic field control is exited.

2. The method according to claim 1, characterized in that The obtaining of the on / off status of the power supply includes: Determine the on / off status of the power supply based on the bus voltage.

3. The method according to claim 2, characterized in that Determining the on / off status of the power supply according to the bus voltage includes: When the bus voltage is greater than or equal to the set voltage, the power supply connection is confirmed; When the bus voltage is lower than the set voltage, it is determined that the power supply is disconnected; When the bus voltage recovers from being less than the set voltage to being greater than or equal to the set voltage within a set time, it is determined that the power supply is unstable.

4. The method according to any one of claims 1 to 3, characterized in that: After obtaining the on / off status of the power supply, the method further includes: When the power supply is unstable, initialize the output value of the speed loop.

5. The method according to claim 4, characterized in that The output value of the initialization speed loop includes: Get the actual value of the horizontal axis current; The actual value of the horizontal axis current is assigned to the output value of the speed loop.

6. The method according to claim 4, characterized in that After the output value of the initialization speed loop, it also includes: According to the operating stage of the compressor, maximum torque current ratio control or weak magnetic control is performed.

7. The method according to claim 6, characterized in that The method of performing maximum torque current ratio control or magnetic field weakening control according to the operation stage of the compressor includes: When the compressor is in the closed loop stage or the oil pumping stage, the maximum torque current ratio control is performed; When the compressor is in the operation stage, field weakening control is performed.

8. A device for controlling a refrigerator, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for controlling a refrigerator according to any one of claims 1 to 7 when running the program instructions.

9. A refrigerator, characterized in that: include: Refrigerator body; The device for controlling a refrigerator as claimed in claim 8 is installed on the refrigerator body.

10. A computer-readable storage medium storing program instructions, characterized in that: When the program instructions are executed, the computer is used to execute the method for controlling a refrigerator as described in any one of claims 1 to 7.