Refrigerator and door opening and closing type detection method thereof

By setting up a door switch input circuit and controller in the refrigerator, the door switch type can be automatically identified by functional operation and temperature changes. This solves the problem that the main control board cannot be compatible with different types of door switches, and realizes the correct detection of the refrigerator door status and the universality of the main control board.

CN120830982APending Publication Date: 2025-10-24HISENSE RONSHEN GUANGDONG REFRIGERATOR
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410501935.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-24
Publication Date
2025-10-24

AI Technical Summary

Technical Problem

The existing refrigerator control system cannot be universally compatible with different types of door switches, which makes the main control board incompatible with normally open and normally closed contacts. This results in different door switch signal sampling logic in the control software, making it impossible to achieve universality of the main control board.

Method used

By installing a door switch input circuit and controller in the refrigerator, the controller detects the refrigerator's functional operations and temperature changes during production and use, automatically identifies the door switch type, including normally open contacts and normally closed contacts, and achieves correct control of the lighting.

Benefits of technology

This technology enables the correct detection of the refrigerator door status regardless of the type of door switch installed, achieving the universality of the main control board and ensuring that the controller is compatible with different types of door switches.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120830982A_ABST
    Figure CN120830982A_ABST
Patent Text Reader

Abstract

The invention discloses a refrigerator and a method for detecting the type of a door switch of the refrigerator, the sampling logic of the door switch is judged through the state change of functional operation, the door switch, the temperature in the refrigerator and the like in the production and use process of the refrigerator, the type of the door switch can be automatically identified no matter whether the door switch with a normally open contact or the door switch with a normally closed contact is installed, and the safety of the door switch is ensured. Correct detection of the state of the refrigerator door is achieved, and therefore generalization of the main control board is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of refrigerator, in particular to a refrigerator and a door switch type detection method thereof. BACKGROUND

[0002] The refrigerator door switch is used to detect whether the door of the refrigerator is in an open state or a closed state. Based on different refrigerator types or different door bodies, the door switch also has different types, such as a mechanical action door switch, a magnetic induction dry reed door switch, a magnetic induction Hall sensor door switch, and the like. Taking the mechanical action door switch as an example, when used to directly control the illuminating lamp, a normally closed contact door switch needs to be selected, that is, when the door is opened, the contact is closed to turn on the illuminating lamp, and when the door is closed, the contact is opened to turn off the illuminating lamp. For a computer temperature control (with an electric control board and control software) refrigerator, the door switch only serves as a sensor, and the correspondence between the contact state of the door switch and the door state of the refrigerator can be defined by software. When a dry reed is used as a door switch sensor, the magnet on the door body approaches the dry reed on the cabinet when the door is closed, at which time the dry reed contact is closed, and the dry reed contact is opened when the door is opened. For a computer temperature control refrigerator, the current technical solution is to sample the door switch signal by software according to different door switch sensors. Therefore, whether a normally closed contact mechanical door switch or a normally open contact dry reed door switch is used, the control software has corresponding different judgment logic to correctly determine whether the door of the refrigerator is opened or closed. Since the control modes of some different models of refrigerators are the same, a same main control board can be used for the control of the refrigerator, and the main control board can be universal. However, in practice, different door switches need to be used due to installation structure and other reasons, some of which are normally open contacts, and some of which are normally closed contacts. At this time, the main control board cannot be universal, and the two main control boards only differ in the door switch sampling logic in the control software, which leads to the inability to be universal. SUMMARY

[0003] The purpose of the embodiments of the present application is to provide a refrigerator and a door switch type detection method thereof. By judging the sampling logic of the door switch through the state changes of the function operation, the door switch, the temperature in the cabinet, and the like of the refrigerator during production and use, the type of the door switch can be automatically identified whether the installed door switch is a normally open contact door switch or a normally closed contact door switch, the correct detection of the door state of the refrigerator is realized, and the universalization of the main control board is achieved.

[0004] To achieve the above-mentioned purpose, the embodiments of the present application provide a refrigerator, which comprises:

[0005] a cabinet, at least one compartment being formed in the cabinet;

[0006] a cabinet door arranged at an opening of the compartment;

[0007] The door switch input circuit comprises a door switch connected with the cabinet door and a plurality of components arranged in the cabinet, and the door switch comprises a normally open contact and a normally closed contact;

[0008] The lighting lamp is arranged in the chamber and is used for controlling the lighting or turning off of the lighting lamp according to the state change of the door switch;

[0009] The controller is configured to:

[0010] When it is detected that the refrigerator enters the whole machine detection mode, a running condition setting prompt is sent;

[0011] When it is detected that the refrigerator meets the preset stable running condition, the level signal sent by the door switch input circuit is acquired;

[0012] The type of the door switch is determined according to the level signal;

[0013] The working state of the lighting lamp is controlled according to the type of the door switch and the level signal.

[0014] As an improvement of the above scheme, the stable running condition is met when:

[0015] The number of state change times of the cabinet door within a set time period meets a preset number threshold;

[0016] The cabinet door is in an open door state, and a stable time length in the open door state reaches a preset first time length threshold.

[0017] As an improvement of the above scheme, the type of the door switch is determined according to the level signal, comprising:

[0018] When the level signal is a high level signal, it is determined that the type of the door switch is a normally open contact; and when the level signal is a low level signal, it is determined that the type of the door switch is a normally closed contact.

[0019] As an improvement of the above scheme, the controller is further configured to:

[0020] When it is detected that the refrigerator does not meet the stable running condition, the lighting lamp is controlled to remain turned off.

[0021] As an improvement of the above scheme, the controller is further configured to:

[0022] When it is detected that the refrigerator enters a single board detection mode, the level signal sent by the door switch input circuit is acquired, and a signal reference value of the current door switch is acquired;

[0023] The type of the door switch is determined according to the signal reference value and the level signal.

[0024] As an improvement of the above-mentioned scheme, the refrigerator further comprises:

[0025] a chamber temperature sensor arranged in the chamber for detecting a real-time temperature of the chamber;

[0026] the controller is further configured to:

[0027] when it is detected that the refrigerator enters a normal operation mode and it is detected that the chamber does not need refrigeration, calculate a signal reference value according to the door switch state;

[0028] when the signal reference value is equal to a preset signal standard value, determine the type of the door switch according to the final output signal reference value.

[0029] As an improvement of the above-mentioned scheme, the calculation of the signal reference value according to the door switch state comprises:

[0030] if a high-level signal is detected, add 1 to the count value of the current signal reference value; if a low-level signal is detected, subtract 1 from the count value of the current signal reference value.

[0031] As an improvement of the above-mentioned scheme, when it is detected that the chamber needs refrigeration, the controller is further configured to:

[0032] when the temperature difference between the real-time temperatures of the chamber detected for two consecutive times is greater than a preset temperature difference threshold value, determine a temperature trend of the chamber;

[0033] when the temperature trend is a downward trend, determine that the box door is in a closed state;

[0034] when the temperature trend is an upward trend, determine that the box door is in an open state.

[0035] As an improvement of the above-mentioned scheme, the calculation of the signal reference value according to the door switch state comprises:

[0036] when the temperature trend is a downward trend, if a high-level signal is detected, add 1 to the count value of the current signal reference value; if a low-level signal is detected, subtract 1 from the count value of the current signal reference value;

[0037] when the temperature trend is an upward trend, if a high-level signal is detected, subtract 1 from the count value of the current signal reference value; if a low-level signal is detected, add 1 to the count value of the current signal reference value.

[0038] To achieve the above object, the embodiment of the present application further provides a refrigerator door switch type detection method, the refrigerator comprising a door switch input circuit and a lighting lamp arranged in a chamber, the door switch input circuit comprising a door switch and a plurality of components, the type of the door switch comprising a normally open contact and a normally closed contact; the lighting lamp is used for controlling its lighting or turning off according to the state change of the door switch; the method comprises:

[0039] When it is detected that the refrigerator enters a whole machine detection mode, a running condition setting prompt is sent;

[0040] When it is detected that the refrigerator satisfies a preset stable running condition, a level signal sent by the door switch input circuit is acquired;

[0041] The type of the door switch is determined according to the level signal;

[0042] The working state of the lighting lamp is controlled according to the type of the door switch and the level signal.

[0043] Compared with the prior art, the refrigerator and the door switch type detection method thereof disclosed by the present application can judge the sampling logic of the door switch through the state change of the function operation, the door switch and the temperature in the chamber of the refrigerator in the production and use process, can automatically identify the type of the door switch whether it is a normally open contact door switch or a normally closed contact door switch, can realize the correct detection of the refrigerator door state, and thus can achieve the generalization of the main control board. BRIEF DESCRIPTION OF DRAWINGS

[0044] Figure 1 is a schematic diagram of the external structure of a refrigerator provided by the embodiment of the present application;

[0045] Figure 2 is a schematic diagram of the internal structure of a refrigerator provided by the embodiment of the present application;

[0046] Figure 3 is a schematic diagram of the structure of a refrigerating system in a refrigerator provided by the embodiment of the present application;

[0047] Figure 4 is a schematic diagram of the connection of a controller and its control components provided by the embodiment of the present application;

[0048] Figure 5 is a schematic diagram of the connection of different types of door switches and MCUs provided by the embodiment of the present application;

[0049] Figure 6 is a first working flowchart of a controller in a refrigerator provided by the embodiment of the present application;

[0050] Figure 7 is a second working flowchart of a controller in a refrigerator provided by the embodiment of the present application;

[0051] Figure 8 is a third working flow chart of a controller in a refrigerator provided by the embodiment of the present application;

[0052] Figure 9 is a fourth working flow chart of a controller in a refrigerator provided by the embodiment of the present application;

[0053] Figure 10 is a fifth working flow chart of a controller in a refrigerator provided by the embodiment of the present application;

[0054] Figure 11 is a flow chart of a refrigerator door switch type detection method provided by the embodiment of the present application.

[0055] Wherein, 100, refrigerator; 10, display panel; 11, refrigeration chamber; 12, freezer; 1, compressor; 2, evaporator; 3, capillary; 4, condenser. DETAILED DESCRIPTION

[0056] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0057] In the description of the present application, it should be understood that the terms "center", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer" and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only for the purpose of facilitating the description of the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application.

[0058] The terms "first", "second" are only for the purpose of description, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the technical features indicated. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more of the features. In the description of the present application, unless otherwise specified, the meaning of "multiple" is two or more.

[0059] In the description of the present application, it is necessary to point out that, unless otherwise explicitly specified and limited, the terms "mounting", "connection", "linking" should be understood in a broad sense, for example, can be fixed connection, can also be detachable connection, or integrally connected; can be mechanical connection, can also be electrical connection; can be directly connected, can also be indirectly connected through intermediate medium, can be the communication inside two elements. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.

[0060] Referring to Figure 1 , Figure 1 is a schematic diagram of the external structure of a refrigerator 100 provided by an embodiment of the present application. The refrigerator 100 of the present embodiment has a shape similar to a cuboid. The refrigerator includes a cabinet defining a storage space and a plurality of door bodies provided at the opening of the cabinet. The door body includes a door body shell located outside the cabinet, a door body inner container located inside the cabinet, an upper end cover, a lower end cover, and a thermal insulation layer located between the door body shell, the door body inner container, the upper end cover, and the lower end cover. Generally, the thermal insulation layer is filled with foaming material. The cabinet is provided with a cavity, which includes a component storage cavity for placing components in the refrigerator, such as a compressor cabin, and a storage space for storing food and the like. The cabinet door of the refrigerator is provided with a display panel 10 for displaying the operating parameters of the refrigerator and receiving touch operations of the user.

[0061] Referring to Figure 2 , Figure 2 is a schematic diagram of the internal structure of a refrigerator provided by an embodiment of the present application. The storage space can be divided into a plurality of storage compartments. The storage compartments can be configured as refrigeration compartments 11 and freezing compartments 12 according to different uses, and can also include variable temperature compartments, vacuum drawers, humidity drawers, and the like. Each storage compartment corresponds to one or more door bodies. For example, in Figure 2 , the upper storage compartment is provided with a double-door body. The door body can be pivotally arranged at the opening of the cabinet, or can be a drawer type opening to realize drawer type storage.

[0062] Referring to Figure 3 , Figure 3The refrigerator 100 provided by the embodiment of the application has a structure diagram of a refrigerating system, which comprises a compressor 1, an evaporator 2, a drying filter (not shown in the figure), a capillary tube 3, a condenser 4 and a gas-liquid separator (not shown in the figure). The working process of the refrigerating system comprises a compression process, a condensation process, a throttling process and an evaporation process. The compression process is as follows: after the power cord of the refrigerator is plugged in and the contact of the temperature controller is connected, the compressor 1 starts to work, the low-temperature and low-pressure refrigerant is sucked into the compressor 1, is compressed into high-temperature and high-pressure superheated gas in the cylinder of the compressor 1 and is discharged into the condenser 4; the condensation process is as follows: the high-temperature and high-pressure refrigerant gas is cooled by the condenser 4, the temperature is continuously reduced, is gradually cooled into saturated steam at normal temperature and high pressure and is further cooled into saturated liquid, the temperature no longer reduces, the temperature at this time is called the condensation temperature, and the pressure of the refrigerant in the whole condensation process is almost unchanged; the throttling process is as follows: the saturated liquid of the refrigerant after condensation is filtered to remove water and impurities by the drying filter and then flows into the capillary tube 3, is throttled and reduced in pressure by the capillary tube 3, and the refrigerant becomes wet steam at normal temperature and low pressure; the evaporation process is as follows: the wet steam at normal temperature and low pressure starts to absorb heat to vaporize in the evaporator 2, not only reduces the temperature of the evaporator 2 and the surrounding environment, but also makes the refrigerant into low-temperature and low-pressure gas; the refrigerant discharged from the evaporator 2 is returned to the compressor 1 again after passing through the gas-liquid separator, the above process is repeated, the heat in the refrigerator is transferred to the air outside the refrigerator, and the purpose of refrigeration is achieved.

[0063] Referring to Figure 4 , Figure 4The application provides a controller and a connection diagram of the controller, and the controller comprises a single-chip microcomputer (MCU), a signal input end, a signal output end and a power conversion end. The controller is externally connected with a display panel, and can receive a setting instruction sent by the display panel; thus, when a user makes the refrigerator enter a single-panel detection mode, a whole-machine detection mode or a normal operation mode through the display panel, the display panel sends a setting instruction of the operation mode to the controller, and the controller can also control the opening state and the closing state of the display panel. The signal input end of the controller is externally connected with a door switch input circuit, a chamber temperature sensor, an evaporator temperature sensor and an ambient temperature sensor, and is used for receiving a level signal (a high level signal or a low level signal) sent by the door switch input circuit; the controller is also used for receiving temperature signals sent by the three temperature sensors, wherein the chamber temperature sensor is arranged in the chamber and is used for detecting a real-time chamber temperature of the chamber. The signal output end of the controller is externally connected with an illuminating lamp, an evaporator, a defrosting heater and a compressor; wherein the illuminating lamp is arranged in the chamber and is used for controlling the illuminating lamp to be turned on or turned off according to the state change of the door switch; the working principles of the evaporator and the compressor can be referred to the above process, and will not be described herein again; the defrosting heater is started when receiving a defrosting instruction, and is used for heating the evaporator to resolve the frost on the evaporator. The power conversion end of the controller is externally connected with an AC power supply, and is used for converting the voltage input by the AC power supply and supplying the devices in the refrigerator.

[0064] Referring to Figure 5 , Figure 5 The application provides a connection diagram of different types of door switches and an MCU, the door switch input circuit comprises a door switch connected with a box door and a plurality of components arranged in a box body, and the types of the door switch comprise a normally open contact and a normally closed contact. Figure 5 It is a principle diagram of a typical door switch input circuit, S1 and S2 are door switches, S1 is a normally open contact, S2 is a normally closed contact, R1 and R3 are pull-up resistors, R2 and R4 are current-limiting resistors, C1 and C2 are energy storage capacitors. In the existing refrigerator, either the S1 type door switch or the S2 type door switch is adopted, and in the application, the MCU can identify which type of door switch is adopted by the refrigerator.

[0065] Exemplary, the door switch state is converted into high and low level signal by input circuit and input to the input port of MCU, when the door switch is S1 corresponding to the normally open (door open state) contact of dry reed type door switch, at this time when the door is open, the door switch contact is disconnected, the Pin1 input level of MCU is high level, when the door is closed, the door switch contact is closed, the Pin1 input level of MCU is low level; when the door switch is S2 corresponding to the normally closed (door open state) contact of mechanical type door switch, at this time when the door is open, the door switch contact is closed, the Pin1 input level of MCU is low level, when the door is closed, the door switch contact is disconnected, the Pin1 input level of MCU is high level. The above process can be referred to Table 1.

[0066] Table 1 level signal corresponding to different door switch types

[0067]

[0068] Specifically, the controller is configured to: when detecting that the refrigerator enters the whole machine detection mode, issue a running condition setting prompt; when detecting that the refrigerator meets the preset stable running condition, acquire the level signal sent by the door switch input circuit; determine the type of the door switch according to the level signal; control the working state of the illuminating lamp according to the type of the door switch and the level signal; and when detecting that the refrigerator does not meet the stable running condition, control the illuminating lamp to remain off.

[0069] Exemplary, referring to Figure 6 , Figure 6 is a first working flowchart of a controller in a refrigerator provided by an embodiment of the present application, and the controller is configured to perform steps S11-S17. For the single board detection, whole machine detection and normal running three modes in the production process of the refrigerator, according to different refrigerator models, the corresponding three modes are entered through specific operations of the display panel or specific states of the sensor. When the user controls the refrigerator to enter the whole machine detection mode through the display panel, the detection of the door switch type on the whole machine is performed through human intervention, at this time the refrigerator issues a corresponding running condition setting prompt to inform the user to manually complete some operations, after the user completes the operation according to the prompt, it is judged whether the refrigerator meets the preset stable running condition, if yes, the level signal sent by the door switch input circuit is acquired, then the type of the door switch is determined according to the level signal, and the working state of the illuminating lamp is controlled according to the type of the door switch and the level signal; if it is detected that the refrigerator does not meet the stable running condition, the illuminating lamp is controlled to remain off.

[0070] Specifically, the stable operation condition satisfies that the number of times of state change of the door within a set time period meets a preset threshold; the door is in an open state, and a stable time length of the open state meets a preset first time length threshold.

[0071] For example, referring to Figure 7 , Figure 7 is a second working flowchart of a controller in a refrigerator provided by an embodiment of the present application, a parameter P in the control flow is used as a signal reference value for door switch type judgment, the value range of the parameter P is 0-10, the software preset initial value is 5, the parameter P changes in the whole machine detection and operation process until P=0 or P=10 to complete the detection process of the door switch, the parameter P is power-off memory, and the detection result is always effective after being determined. In the whole machine detection mode, when the switch state changes n times (n=3-6) within m (for example, 2) seconds, for example, the stable time of the switch state reaches t1 (t1=2-4s), the current stable state is determined to be an open state, and the signal reference value is set according to the level signal detected in the open state at this time. When the high level signal is at this time, p=1 is set, and when the low level signal is at this time, P=9 is set.

[0072] For example, when the high level signal is, the illumination lamp is controlled according to the normally open contact, that is, it is identified that the type of the door switch at this time is the normally open contact. This is because the door is in the open state at the beginning of the condition setting, and the high level signal is detected at this time, so it can be determined that the type of the door switch is the normally open contact, corresponding to S1 in Figure 5 When the door is opened, S1 is disconnected, the MCU receives the high level signal, and the illumination lamp is controlled to be turned on. Conversely, when the low level signal is, the illumination lamp is controlled according to the normally closed contact, that is, it is identified that the type of the door switch at this time is the normally closed contact. This is because the door is in the open state at the beginning of the condition setting, and the low level signal is detected at this time, so it can be determined that the type of the door switch is the normally closed contact, corresponding to S2 in Figure 5 When the door is opened, S2 is closed, the MCU receives the low level signal, and the illumination lamp is controlled to be turned on. If no corresponding action is detected for the door switch state change, P=5 is maintained, and the illumination lamp is controlled to be turned off.

[0073] Specifically, the controller is further configured to: when it is detected that the refrigerator enters a single board detection mode, acquire a level signal sent by the door switch input circuit and acquire a signal reference value of the current door switch; and determine the type of the door switch according to the signal reference value and the level signal.

[0074] For example, referring to Figure 8 , Figure 8is a third working flow chart of a controller in a refrigerator provided by the embodiment of the present application, the controller is configured to execute steps S21-S26, the single board detection mode is irrelevant to the whole machine application, only the hardware circuit of the electric control board is detected, and the control of the illuminating lamp is performed according to the door switch contact signal. Since the signal reference value p=5 is initially set, when the single board detection logic is entered, p=5 is detected first, at this time, the condition of “p<6” is met, so the default door switch is a normally closed contact, since at this time, there may be inaccurate judgment problems, the user can be further instructed to enter the whole machine detection mode or the normal operation mode. If p is not equal to 5, at this time, a default mode also needs to be selected according to whether the condition of “p<6” is met, and the user is reminded to enter the whole machine detection mode or the normal operation mode in time.

[0075] Specifically, the controller is further configured to: when it is detected that the refrigerator enters the normal operation mode and it is detected that the compartment does not need refrigeration, calculate a signal reference value according to the door switch state; and when the signal reference value is equal to a preset signal standard value, determine the type of the door switch according to the finally output signal reference value.

[0076] Exemplarily, referring to Figure 9 , Figure 9 is a fourth working flow chart of a controller in a refrigerator provided by the embodiment of the present application, when it is detected that the compartment needs refrigeration, the controller is further configured to: when the temperature difference between the real-time temperatures of the compartment detected for two consecutive times is greater than a preset temperature difference threshold value, determine the temperature trend of the compartment; when the temperature trend is a downward trend, determine that the box door is in a closed state; and when the temperature trend is an upward trend, determine that the box door is in an open state. The calculation of the signal reference value according to the door switch state comprises: when the temperature trend is a downward trend, if a high-level signal is detected, 1 is added to the count value of the current signal reference value; if a low-level signal is detected, 1 is subtracted from the count value of the current signal reference value; when the temperature trend is an upward trend, if a high-level signal is detected, 1 is subtracted from the count value of the current signal reference value; and if a low-level signal is detected, 1 is added to the count value of the current signal reference value.

[0077] Exemplarily, referring to Figure 10 , Figure 10is a fifth working flow chart of a controller in a refrigerator provided by the embodiment of the present application, in a normal operating state, P is not equal to 0 or 10. When the refrigeration is not needed in the storage compartment, that is, the corresponding compartment temperature meets the refrigeration-free requirement within the t2 (t2=3-10 minutes) time when the door switch state is unchanged, the compressor is in the shutdown state, the signal reference value p is directly calculated according to the door switch state, if the high-level signal is detected, 1 is added to the count value of the current signal reference value, until p=10 is jumped out, that is, the final signal reference value p=10 is output, since the refrigerator needs to be in a stable state at this time, that is, the temperature is kept as constant as possible, therefore the box door is kept in the closed state (if the box door is opened, the external high-temperature gas is introduced, the compartment temperature sensor will detect that the compartment temperature is increased, and then the compressor refrigeration is started), referring to Table 1, the box door is kept closed at this time, and P=10, that is, the high-level signal is kept, and then it can be determined that the door switch type is the normally closed contact; if the low-level signal is detected, 1 is subtracted from the count value of the current signal reference value, until p=0 is jumped out, that is, the final signal reference value p=0 is output, referring to Table 1, the box door is kept closed at this time, and P=0, that is, the low-level signal is kept, and the corresponding door switch type is the normally open contact.

[0078] For example, when the refrigerator needs refrigeration, the compressor is continuously operated at this time, within the t3 (t3=3-10 minutes) time when the door switch state is unchanged, it is detected that the compartment temperature presents a downward trend, and the temperature difference between the two continuously detected real-time temperatures of the compartment is greater than or equal to ΔT1 (ΔT1=1-5K), which indicates that the box door is kept in the closed state at this time, since the box door is closed, the external temperature cannot affect the compartment temperature, therefore the compartment temperature presents a downward trend, the signal reference value p is directly calculated according to the door switch state at this time, if the high-level signal is detected, 1 is added to the count value of the current signal reference value, until p=10 is jumped out, that is, the final signal reference value p=10 is output, since the refrigerator needs to be in a stable state at this time, that is, the temperature is kept as constant as possible, therefore the box door is kept in the closed state, referring to Table 1, the box door is kept closed at this time, and P=10, that is, the high-level signal is kept, and then it can be determined that the door switch type is the normally closed contact; if the low-level signal is detected, 1 is subtracted from the count value of the current signal reference value, until p=0 is jumped out, that is, the final signal reference value p=0 is output, referring to Table 1, the box door is kept closed at this time, and P=0, that is, the low-level signal is kept, and the corresponding door switch type is the normally open contact.

[0079] For example, when the refrigerator needs to be refrigerated, the compressor is continuously running, and the door switch state does not change for t3 (t3=3-10 minutes) time, the detection of the interchamber temperature shows an upward trend, and the temperature difference between the two consecutive detection of the interchamber real-time temperature is greater than or equal to ΔT2 (ΔT2=1-5K), which indicates that the door is always open at this time. Because the door is open, the outside temperature will affect the interchamber temperature, so the interchamber temperature shows an upward trend (even if the compressor is still refrigerating at this time, but because the influence of the outside temperature is large, the interchamber temperature will show an upward trend). At this time, the signal reference value p is directly calculated according to the door switch state, if the high level signal is detected, then the count value of the current signal reference value is reduced by 1 until p=0, that is, the final signal reference value p=0 is output. Because the door is always open at this time, according to Table 1, the door is always open at this time, and P=0, that is, it is always in a high level signal, so it can be determined that the door switch type is a normally open contact; if the low level signal is detected, then the count value of the current signal reference value is increased by 1 until p=10, that is, the final signal reference value p=10 is output. According to Table 1, the door is always open at this time, and P=10, that is, it is always in a low level signal, and the corresponding door switch type is a normally closed contact.

[0080] Specifically, the controller is further configured to control the lighting lamp to be in an open state when the signal reference value is within a preset signal threshold range.

[0081] For example, when P=4-6, the lighting lamp is on, at this time, whether the door switch is a normally closed contact or a normally open contact, the door switch does not participate in control. Avoid the situation that the lighting lamp should be turned on due to long time opening of the door without turning on the lighting lamp. Even if the door is closed at this time, but P=4-6 is met, the lighting lamp still needs to be turned on.

[0082] It is worth noting that the detection of the door switch type in the above whole machine detection mode and normal operation mode only needs to be run once, after judging the door switch type, the detection result can be stored, and the opening and closing of the lighting lamp is controlled according to the detected door switch type subsequently.

[0083] Compared with the prior art, the refrigerator disclosed by the application can judge the sampling logic of the door switch through the state changes of the function operation, door switch, and temperature in the box of the refrigerator in the production and use process. Whether it is a normally open contact door switch or a normally closed contact door switch, the type of the door switch can be automatically identified, the correct detection of the refrigerator door state is realized, and the generalization of the main control board is achieved.

[0084] Referring to Figure 11 , Figure 11is a flow chart of a refrigerator door switch type detection method provided by an embodiment of the present application. The refrigerator comprises a door switch input circuit and an illuminating lamp arranged in a compartment. The door switch input circuit comprises a door switch and a plurality of components. The types of the door switch include a normally open contact and a normally closed contact. The illuminating lamp is used to control its lighting or turning off according to the state change of the door switch. The method comprises the following steps.

[0085] S1, when it is detected that the refrigerator enters a whole machine detection mode, a running condition setting prompt is sent out.

[0086] S2, when it is detected that the refrigerator meets a preset stable running condition, a level signal sent by the door switch input circuit is acquired.

[0087] S3, the type of the door switch is determined according to the level signal.

[0088] S4, the working state of the illuminating lamp is controlled according to the type of the door switch and the level signal.

[0089] Specifically, the stable running condition is met when the number of state change times of the door within a set time period meets a preset number threshold, and the door is in an open state and the stable time length in the open state reaches a preset first time threshold.

[0090] Specifically, the determination of the type of the door switch according to the level signal comprises: when the level signal is a high level signal, it is determined that the type of the door switch is a normally open contact; and when the level signal is a low level signal, it is determined that the type of the door switch is a normally closed contact.

[0091] Specifically, the method further comprises: when it is detected that the refrigerator does not meet the stable running condition, the illuminating lamp is controlled to remain off.

[0092] Specifically, the method further comprises: when it is detected that the refrigerator enters a single board detection mode, the level signal sent by the door switch input circuit is acquired, and a signal reference value of the current door switch is acquired; and the type of the door switch is determined according to the signal reference value and the level signal.

[0093] Specifically, the method further comprises: when it is detected that the refrigerator enters a normal running mode and it is detected that the compartment does not need refrigeration, a signal reference value is calculated according to the door switch state; and when the signal reference value is equal to a preset signal standard value, the type of the door switch is determined according to the final output signal reference value.

[0094] Specifically, the calculating the signal reference value according to the door switch state comprises: if a high level signal is detected, adding 1 to the count value of the current signal reference value; and if a low level signal is detected, subtracting 1 from the count value of the current signal reference value.

[0095] Specifically, when detecting that the interchamber needs refrigeration, the method further comprises: determining a temperature trend of the interchamber when a temperature difference between the interchamber real-time temperatures detected for two consecutive times is greater than a preset temperature difference threshold; determining that the box door is in a closed state when the temperature trend is a downward trend; and determining that the box door is in an open state when the temperature trend is an upward trend.

[0096] Specifically, the calculating the signal reference value according to the door switch state comprises: if a high level signal is detected, adding 1 to the count value of the current signal reference value; and if a low level signal is detected, subtracting 1 from the count value of the current signal reference value.

[0097] It should be noted that the specific working process of the refrigerator door switch type detection method described in the embodiments of the present application can refer to the working process of the controller in the refrigerator described in the above embodiments, which will not be repeated here.

[0098] Compared with the prior art, the refrigerator door switch type detection method disclosed by the present application can determine the sampling logic of the door switch through the state changes of the function operation, door switch and interchamber temperature of the refrigerator during production and use, and can automatically identify the type of the door switch whether it is a normally open contact door switch or a normally closed contact door switch, so as to realize correct detection of the refrigerator door state and achieve universalization of the main control board.

[0099] The above is the preferred embodiment of the present application, and it should be noted that for ordinary skilled persons in the art, some improvements and refinements can be made without departing from the principles of the present application, and these improvements and refinements are also considered within the protection scope of the present application.

Claims

1. A refrigerator characterized by comprising: The refrigerator comprises: a cabinet, at least one compartment being formed in the cabinet; a cabinet door arranged at an opening of the compartment; a door switch input circuit comprising a door switch connected with the cabinet door and a plurality of components arranged in the cabinet, the door switch comprising a normally open contact and a normally closed contact; a lighting lamp arranged in the compartment, the lighting lamp being controlled to be turned on or off according to a state change of the door switch; a controller, the controller being configured to: issue a running condition setting prompt when detecting that the refrigerator enters a whole machine detection mode; acquire a level signal sent by the door switch input circuit when detecting that the refrigerator satisfies a preset stable running condition; determine a type of the door switch according to the level signal; control a working state of the lighting lamp according to the type of the door switch and the level signal.

2. The refrigerator according to claim 1, wherein, The stable running condition is satisfied when: a number of state change times of the cabinet door within a preset time period satisfies a preset number threshold; and the cabinet door is in an open door state, and a stable time length in the open door state reaches a preset first time length threshold.

3. The refrigerator according to claim 1, wherein The determination of the type of the door switch according to the level signal comprises: when the level signal is a high level signal, determining that the type of the door switch is the normally open contact; and when the level signal is a low level signal, determining that the type of the door switch is the normally closed contact.

4. The refrigerator according to claim 1, wherein The controller is further configured to: control the lighting lamp to remain off when detecting that the refrigerator does not satisfy the stable running condition.

5. The refrigerator according to claim 1, wherein The controller is further configured to: acquire the level signal sent by the door switch input circuit and acquire a signal reference value of the current door switch when detecting that the refrigerator enters a single board detection mode; and determine the type of the door switch according to the signal reference value and the level signal.

6. The refrigerator according to claim 1, wherein The refrigerator further comprises: a compartment temperature sensor arranged in the compartment, the compartment temperature sensor being used to detect a real-time temperature of the compartment; The controller is further configured to: calculate a signal reference value according to a state of the door switch when detecting that the refrigerator enters a normal running mode and detecting that the compartment does not need refrigeration; and determine the type of the door switch according to a final output signal reference value when the signal reference value is equal to a preset signal standard value.

7. The refrigerator according to claim 6, wherein The calculation of the signal reference value according to the state of the door switch comprises: if a high level signal is detected, adding 1 to a count value of a current signal reference value; and if a low level signal is detected, subtracting 1 from the count value of the current signal reference value.

8. The refrigerator according to claim 6, wherein When detecting that the compartment needs refrigeration, the controller is further configured to: determine a temperature trend of the compartment when a temperature difference between two continuously detected real-time temperatures of the compartment is greater than a preset temperature difference threshold; determine that the cabinet door is in a closed state when the temperature trend is a downward trend; and determine that the cabinet door is in an open state when the temperature trend is an upward trend.

9. The refrigerator according to claim 8, wherein The calculation of the signal reference value according to the state of the door switch comprises: when the temperature trend is the downward trend, if a high level signal is detected, adding 1 to a count value of a current signal reference value; and if a low level signal is detected, subtracting 1 from the count value of the current signal reference value. When the temperature trend is an upward trend, if a high level signal is detected, the count value of the current signal reference value is reduced by 1; if a low level signal is detected, the count value of the current signal reference value is increased by 1. 10.A method of detecting a type of a refrigerator door switch, the method comprising: The refrigerator comprises a door switch input circuit and a lighting lamp arranged in the compartment, the door switch input circuit comprises a door switch and a plurality of components, the types of the door switch include a normally open contact and a normally closed contact; the lighting lamp is used for controlling the lighting or the turning off according to the state change of the door switch; the method comprises the following steps: When it is detected that the refrigerator enters a whole machine detection mode, a running condition setting prompt is sent out; When it is detected that the refrigerator satisfies a preset stable running condition, a level signal sent by the door switch input circuit is acquired; The type of the door switch is determined according to the level signal; The working state of the lighting lamp is controlled according to the type of the door switch and the level signal.