Dog feeding method and device and household appliance

By setting watchdogs in the controllers and peripheral components of home appliances and using interrupt counting to determine the component status, the problem of abnormal monitoring of controllers and peripheral components is solved, and highly accurate operation status monitoring and remote maintenance are achieved.

CN120848447APending Publication Date: 2025-10-28HISENSE(SHANDONG)REFRIGERATOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510838042.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-20
Publication Date
2025-10-28

AI Technical Summary

Technical Problem

Existing technologies cannot simultaneously monitor abnormal conditions of the controllers and peripheral components of home appliances, resulting in unstable device operation and poor user experience.

Method used

Watchdog timers are set in the controller and peripheral components to determine whether the components are operating normally by detecting interrupt counts. When all components are operating normally, a watchdog feeding operation is performed to achieve simultaneous monitoring of the controller and peripheral components.

Benefits of technology

It improves the accuracy of monitoring the operating status of home appliance components, reduces false alarms and reset operations, enhances equipment performance and user experience, and supports remote maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120848447A_ABST
    Figure CN120848447A_ABST
Patent Text Reader

Abstract

The embodiment of the invention belongs to the technical field of household appliances, and provides a dog feeding method and device and a household appliance, the method is applied to the household appliance, the household appliance comprises a controller and at least one peripheral component, a watchdog is arranged in a target component, and the target component is one of the controller and the at least one peripheral component. The method comprises the steps that after a target component executes watchdog reset operation or dog feeding operation, interrupt counts of other components are obtained, at least one interrupt count is obtained, and the interrupt counts are generated by interrupt counters in the components in the normal operation process of the components; according to the at least one interrupt count, determining whether other components operate normally; and when other components operate normally and preset dog feeding conditions are met, dog feeding operation is executed. In this way, the controller and the peripheral component can be monitored at the same time through the watchdog, so that the household appliance can operate normally.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of home appliance technology. More specifically, it relates to a method, apparatus, and home appliance for feeding a dog. Background Technology

[0002] In home appliances, watchdog timers can monitor for malfunctions and restart the appliances when malfunctions occur, thus improving the reliability and safety of the appliances.

[0003] Currently, watchdog timers are typically installed in the controllers of home appliances to monitor the controller's operation. When the controller is running normally, a watchdog timer is executed periodically. If the controller malfunctions, the watchdog timer is reset, which means the home appliance is restarted.

[0004] However, in the above solution, the watchdog timer can detect abnormalities in the controller but not in other peripheral components of the device. Therefore, a solution needs to be found that can simultaneously monitor abnormalities in both the controller and peripheral components. Summary of the Invention

[0005] This application provides a method, apparatus, and household appliance for feeding dogs, which can simultaneously monitor abnormalities in the controller and peripheral components.

[0006] In a first aspect, embodiments of this application provide a method for feeding a dog, applied to a home appliance, the home appliance including a controller and at least one peripheral component, a target component equipped with a watchdog, the target component being one of the controller and at least one peripheral component; the method includes:

[0007] After the target component performs a watchdog reset operation or a watchdog feed operation, the interrupt counts of other components are obtained to obtain at least one interrupt count, which is generated by the interrupt counter in the component during the normal operation of the component;

[0008] Based on the at least one interrupt count, determine whether the other components are operating normally;

[0009] When all other components are operating normally and the preset dog-feeding conditions are met, the dog-feeding operation is performed.

[0010] In this application, a watchdog timer is configured in one of the controller and at least one peripheral component. By detecting the interrupt counts generated during the normal operation of the component without a watchdog timer, the accuracy of determining whether the component is operating normally is improved. The watchdog timer is only fed after confirming that all components are operating normally. This allows for simultaneous monitoring of the operating status of the controller and at least one peripheral component by configuring a watchdog timer in the home appliance.

[0011] In some embodiments of this application, determining whether the other components are all operating normally based on the operating status parameters includes:

[0012] Obtain a backup of the interruption counts of each of the other components that are pre-stored in the target component; the interruption count backups were stored when the last time it was determined that the component was operating normally.

[0013] When the interrupt count of each component is different from the corresponding interrupt count backup, it is determined that the other components are operating normally.

[0014] In this application, since the interrupt count is only updated when the component is running normally, the accuracy of determining whether each component is running normally can be improved by comparing the interrupt count of each component with the backup of the interrupt count stored in the target component. This allows for the simultaneous monitoring of abnormal conditions of the controller and at least one peripheral component using a watchdog timer.

[0015] In some embodiments of this application, the method further includes:

[0016] When it is determined that all other components are operating normally, the pre-stored interrupt count in the target component is backed up and updated to the interrupt count of each component.

[0017] In this application, by updating the interrupt count backup stored in the target component, the stored interrupt count backup is made up to be the latest, which makes it easier to determine whether the corresponding component is operating normally based on the interrupt count backup.

[0018] In some embodiments of this application, the method further includes:

[0019] When the interrupt count of at least one of the other components is the same as the corresponding interrupt count backup, it is determined that there is an abnormally running component. The dog-feeding operation is not performed, and the interrupt count of other components continues to be acquired.

[0020] In this application, considering the possibility that a component may be running normally but the interrupt count may not be updated, after identifying a component that is running abnormally, in order to avoid misjudgment, a reset operation is not performed. Instead, the interrupt counts of other components are obtained to continue to determine the running status of the components, which can improve the accuracy of the dog-feeding method.

[0021] In some embodiments of this application, the method further includes:

[0022] When the target duration reaches the watchdog time threshold and at least one component is running abnormally, a watchdog reset operation is performed. The target duration is the time between the current moment and the moment when the target component performs a watchdog reset operation or a watchdog timer operation.

[0023] In this application, a reset operation is only performed when a component malfunctions and the duration reaches the dog-feeding time threshold. This reduces the possibility of incorrectly executing a reset operation due to a single misjudgment of a component malfunction, thereby improving the accuracy of the reset operation.

[0024] In some embodiments of this application, the method further includes:

[0025] When performing a watchdog reset, an exception message is sent to the cloud device.

[0026] In this application, by sending abnormal information to a cloud device, users or repair personnel can be notified that there are abnormal components in the home appliances, so that users can report the problem or repair personnel can perform remote repairs for components that can be repaired remotely.

[0027] In some embodiments of this application, the home appliance is a refrigerator, and the peripheral components include a temperature detection device and an analog-to-digital conversion module;

[0028] The watchdog timer is located in the refrigerator's controller, or in the temperature detection device, or in the analog-to-digital conversion module.

[0029] In this application, a watchdog timer is installed in one of the refrigerator's controller, temperature detection device, or analog-to-digital conversion module, which enables monitoring of the operation of all components and improves the control accuracy of the refrigerator.

[0030] Secondly, this application provides a dog feeding device, the device comprising:

[0031] The acquisition module is used to acquire the interrupt counts of other components after the target component performs a watchdog reset operation or a watchdog feed operation, and obtain at least one interrupt count, wherein the interrupt count is generated by the interrupt counter in the component during the normal operation of the component;

[0032] The processing module is used to determine whether the other components are operating normally based on at least one interrupt count; when the other components are operating normally and the preset dog-feeding conditions are met, the dog-feeding operation is performed.

[0033] Thirdly, this application provides a home appliance, including: a controller, a memory communicatively connected to the controller, and at least one peripheral component, wherein a watchdog is provided in the target component, and the target component is one of the controller and at least one peripheral component;

[0034] The target component executes computer execution instructions stored in the memory to implement the method as described in the first aspect.

[0035] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a computer, are used to implement the method described in the first aspect.

[0036] The computer-readable storage medium provided in this application embodiment can execute the technical solutions in the above method embodiments, and its beneficial effects are similar, so they will not be described again here.

[0037] Fourthly, this application provides a computer program product, including a computer program, which, when executed by a computer, is used to implement the method described in the first aspect.

[0038] The computer program product provided in this application embodiment can execute the technical solutions in the above method embodiments, and its beneficial effects are similar, so they will not be described again here.

[0039] This application provides a watchdog-feeding method, apparatus, and home appliance. The method is applied to a home appliance, which includes a controller and at least one peripheral component. A watchdog timer is configured in a target component, which is one of the controller and at least one peripheral component. The method includes: after the target component performs a watchdog reset operation or a watchdog-feeding operation, acquiring interrupt counts of other components to obtain at least one interrupt count, where the interrupt count is generated by an interrupt counter in the component during normal operation; determining whether other components are all operating normally based on the at least one interrupt count; and performing a watchdog-feeding operation when all other components are operating normally and a preset watchdog-feeding condition is met. Thus, by configuring a watchdog timer in the peripheral component or controller, the watchdog-feeding operation is only performed when it is determined that all other components are operating normally and the preset watchdog-feeding condition is met, enabling simultaneous monitoring of the controller and peripheral components through the watchdog timer, ensuring the normal operation of the home appliance. Attached Figure Description

[0040] To more clearly illustrate the implementation methods in the embodiments of this application or related technologies, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings.

[0041] Figure 1 This is a schematic diagram of the structure of a household appliance according to some embodiments;

[0042] Figure 2 This is a schematic diagram of the structure of a home appliance with a watchdog timer set in a controller, according to some embodiments;

[0043] Figure 3 This is a schematic diagram of the structure of a home appliance with a watchdog device in a peripheral assembly according to some embodiments;

[0044] Figure 4 This is a flowchart illustrating a method for feeding a dog according to some embodiments;

[0045] Figure 5 This is a schematic diagram illustrating the generation of interrupt counts for a controller according to some embodiments;

[0046] Figure 6 This is a schematic diagram illustrating the generation of interrupt counts for a peripheral component according to some embodiments;

[0047] Figure 7 This is a flowchart illustrating a method for performing a watchdog reset operation according to some embodiments;

[0048] Figure 8 This is a flowchart illustrating another method of feeding a dog according to some embodiments;

[0049] Figure 9 This is a schematic diagram of a dog feeding device according to some embodiments;

[0050] Figure 10 This is a schematic diagram of the structure of another household appliance according to some embodiments. Detailed Implementation

[0051] To make the objectives, implementation methods and advantages of this application clearer, the exemplary implementation methods of this application will be clearly and completely described below with reference to the accompanying drawings of the exemplary embodiments of this application. Obviously, the described exemplary embodiments are only some embodiments of this application, and not all embodiments.

[0052] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.

[0053] Furthermore, the terms “comprising” and “having”, and any variations thereof, are intended to cover but not exclusively include, for example, a product or device that includes a series of components is not necessarily limited to those that are explicitly listed, but may include other components that are not explicitly listed or that are inherent to such product or device.

[0054] A watchdog timer, as a software or hardware module that can run independently of the device's main program, monitors the system's operating status and ensures system stability and reliability. Watchdog timers can be used in home appliances, such as refrigerators and air conditioners.

[0055] In some implementations, a watchdog timer is installed within the controller of the home appliance to monitor the main program running within the controller. The main program periodically sends a "feed" signal to the watchdog timer to indicate that the controller is functioning normally. If the main program malfunctions, such as due to code errors, hardware failures, or interference, and fails to feed the watchdog timer within a specified time, the watchdog timer can trigger a reset operation, restarting the home appliance to restore it to its initial state.

[0056] However, in addition to the controller, home appliances also include peripheral components, such as sensors. These peripheral components may malfunction during operation. The watchdog timer within the controller, configured as described above, cannot monitor these peripheral component malfunctions. When peripheral components malfunction, it can lead to control issues within the appliance. For example, a malfunctioning temperature sensor in a refrigerator compartment could cause abnormal temperatures within the compartment, affecting performance and resulting in a poor user experience.

[0057] Based on this, this application provides a watchdog timer method, in which a watchdog timer is set in any one of the controllers or peripheral components of a home appliance. The watchdog timer operation is only performed when it is determined that the controller and all peripheral components are operating normally and the watchdog timer conditions are met. In this way, the controller and peripheral components in the home appliance are monitored through a watchdog timer, so that a reset operation can be performed when any one of the controllers or peripheral components malfunctions, thereby improving the performance of the home appliance and enhancing the user experience.

[0058] It should be noted that the watchdog in this application can be either a hardware module or a software module. When the watchdog is a hardware module, it can be hardware integrated with the target component. When the watchdog is a software module, it can be a watchdog program that runs through the target component.

[0059] The technical solutions of this application will be described in detail below with reference to specific embodiments. The following specific embodiments can be combined with each other or exist independently. The same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.

[0060] First, the structure of the home appliances provided in some embodiments of this application will be described.

[0061] In one possible implementation, Figure 1 This is a schematic diagram of the structure of a household appliance according to some embodiments, such as... Figure 1 As shown, the home appliance includes a controller and N peripheral components, where N is an integer greater than or equal to 1.

[0062] In the embodiments of this application, the controller can be a micro controller unit (MCU) or other types of controllers. The embodiments of this application do not specifically limit the controller.

[0063] Peripheral components may include analog-to-digital converters, sensors, etc., but this application does not limit the peripheral components.

[0064] In this application, the watchdog is set in the target component, which can be a controller or one of N peripheral components.

[0065] For example, a watchdog setting in the controller can be found in [reference needed]. Figure 2 As shown, Figure 2 This is a schematic diagram of the structure of a home appliance with a watchdog device in a controller, according to some embodiments.

[0066] For example, a watchdog setting in the controller can be found in [reference needed]. Figure 3 As shown, Figure 3 This is a schematic diagram of the structure of a home appliance with a watchdog device in a peripheral component according to some embodiments.

[0067] It is understandable that Figure 3 The example given is based solely on the watchdog setting in peripheral component 1 and does not constitute any limitation.

[0068] The following describes how to feed a dog while the household appliances are in operation. For details, please refer to [link / reference needed]. Figure 4 As shown. Figure 4 This is a flowchart illustrating a method for feeding a dog according to some embodiments.

[0069] Figure 4 As shown, feeding a dog may include the following steps:

[0070] S401. After the target component performs a watchdog reset operation or a watchdog feed operation, obtain the interrupt counts of other components and get at least one interrupt count. The interrupt count is generated by the interrupt counter in the component during the normal operation of the component.

[0071] As described in the above embodiments, the target component can be as follows: Figure 2 The controller shown, or, as Figure 3 The peripheral component 1 shown in this application embodiment is not limited to the target component.

[0072] It should be noted that after the target component performs a watchdog reset, the appliance will restart. After restarting, the target component will resume operation and continue performing the watchdog feed operation periodically. After the target component performs the watchdog feed operation, it will continue to run and periodically perform the next watchdog feed operation.

[0073] One possible implementation is that, when the watchdog is set in the controller, the acquired interrupt count includes the interrupt counts of all peripheral components.

[0074] Another possible implementation, when the watchdog is set on one of at least one peripheral component, is that the acquired interrupt count includes the controller's interrupt count and the interrupt counts of all peripheral components that are not running with the watchdog.

[0075] Interrupt counts are generated by interrupt counters within a component during normal operation. For example, when a watchdog timer is set in a peripheral component, the corresponding interrupt counter increments by a fixed value after each loop execution, generating a new interrupt count to indicate that the controller is operating normally. Similarly, interrupt counts for peripheral components are generated in a similar manner.

[0076] When the watchdog timer is set in a peripheral component, the process for the controller to generate interrupt counts can be found in [reference needed]. Figure 5 As shown, Figure 5 This is a schematic diagram of the generation of interrupt counts for a controller according to some embodiments.

[0077] like Figure 5 As shown, when the controller meets the interrupt triggering condition, an interrupt will be triggered, and the program will jump to interrupt service routine 1. In interrupt service routine 1, interrupt counter 1 will be incremented by a fixed value to generate a new interrupt count. After an interrupt is triggered, the interrupt count can be increased by 1 or 2, and this embodiment does not limit this.

[0078] After a new interrupt count is generated, other programs continue to execute.

[0079] When the watchdog timer is set in the controller, the process for generating interrupt counts for the corresponding peripheral components can be found in [reference needed]. Figure 6 As shown, Figure 6 This is a schematic diagram illustrating the generation of interrupt counts for a peripheral component according to some embodiments.

[0080] like Figure 6 As shown, when peripheral component 1 meets the interrupt triggering condition, an interrupt will be triggered, and the program will jump to interrupt service routine 2. In interrupt service routine 2, interrupt counter 2 will be incremented by a fixed value to generate a new interrupt count. After an interrupt is triggered, the interrupt count can be increased by 1 or 2, and this embodiment does not limit this.

[0081] After a new interrupt count is generated, other programs continue to execute.

[0082] In the above embodiments, the interrupt triggering condition may include using an internal timer to set a certain counting period. When the timer count reaches a preset value and overflows, it is determined that the interrupt triggering condition has been met. Alternatively, it may include other data that can indicate the normal operation of the component. This application embodiment does not specifically limit the interrupt triggering condition.

[0083] In this way, during the normal operation of a component without a watchdog timer, an interrupt count will be generated, so that the interrupt count can be used to determine whether the corresponding component is operating normally.

[0084] S402. Determine whether other components are operating normally based on at least one interrupt count.

[0085] In this application, determining whether other components are operating normally based on at least one interruption count may include obtaining backups of the interruption counts of each component in other components that are pre-stored in the target component; the interruption count backups are stored when the component was last determined to be operating normally; when the interruption counts of each component are different from the corresponding interruption count backups, it is determined that the other components are operating normally.

[0086] It should be noted that for components without a watchdog timer, when the interrupt count for that component is updated, the new interrupt count will be sent to the target component with a watchdog timer. The target component can then back up and store the interrupt counts for each component.

[0087] When a component is running normally, its corresponding interrupt count will be updated, meaning it will change. Therefore, if the interrupt count obtained by the target component is different from the backup of the interrupt count stored in the target component, it can be said that the component is running normally.

[0088] Conversely, when a component encounters an error, no interruption will be triggered, meaning the interruption count will not be updated. Therefore, if the interruption count obtained by the target component is the same as the backup of the interruption count stored in the target component, it can be indicated that the component is malfunctioning.

[0089] Since the interrupt count is only updated when the component is running normally, the accuracy of determining whether each component is running normally can be improved by comparing the interrupt count of each component with the backup interrupt count stored in the target component. This allows for the simultaneous monitoring of abnormal conditions of the controller and at least one peripheral component using a watchdog timer.

[0090] S403. When all other components are running normally and the preset dog-feeding conditions are met, execute the dog-feeding operation.

[0091] In this application, the preset dog-feeding condition can be a dog-feeding time threshold. Accordingly, when the time interval between the current moment and the last dog-feeding operation, or the moment of restart after reset, reaches the dog-feeding time threshold, it is determined that the preset dog-feeding condition has been met.

[0092] Performing a "feed the dog" operation allows the target component to send a "feed the dog" signal to the watchdog.

[0093] Thus, the watchdog feeding method provided in this application embodiment, by setting a watchdog in one of the controller and at least one peripheral component, and by detecting the operating status of the component without a watchdog, performs a watchdog feeding operation when all components without watchdogs are operating normally. This achieves the simultaneous monitoring of the operating status of the controller and at least one peripheral component by setting a watchdog in the home appliance.

[0094] In this application, when it is determined that other components without watchdogs are operating normally, the interrupt count backup pre-stored in the target component is updated to the interrupt count of each component.

[0095] In this way, by updating the interrupt count backup stored in the target component, the interrupt count backup stored therein is made up to be the latest, which makes it easier to determine whether the corresponding component is running normally based on the interrupt count backup.

[0096] The target component may also perform a watchdog reset operation to restart the appliance. The procedure for the target component to perform a watchdog reset operation can be found in [link to documentation]. Figure 7 As shown, Figure 7 This is a flowchart illustrating a method for performing a watchdog reset operation according to some embodiments.

[0097] like Figure 7 As shown, the method for performing a watchdog reset operation may include:

[0098] S701. After the target component performs a watchdog reset operation or a watchdog feed operation, obtain the interrupt count and interrupt count backup of each component other than the target component.

[0099] The method for obtaining the interrupt counts and backups of interrupt counts for each component other than the target component can be found in the above embodiments and will not be repeated here.

[0100] When the interrupt count of a component is different from the corresponding backup interrupt count, it can be determined that the component is operating normally; otherwise, it can be determined that the component is operating abnormally.

[0101] S702. When the interrupt count of at least one of the other components is the same as the corresponding interrupt count backup, it is determined that there is an abnormally running component. The dog-feeding operation is not performed, and the interrupt counts of other components are continued to be obtained.

[0102] It should be noted that when a component is found to be malfunctioning, the time for performing the watchdog timer operation may not have arrived yet. Therefore, the interrupt counts of other components can be obtained to continue monitoring the operation of each component.

[0103] Therefore, considering the possibility that a component may be running normally but the interrupt count may not be updated, after identifying a component that is running abnormally, in order to avoid misjudgment, a reset operation is not performed. Instead, the interrupt counts of other components are obtained to continue to determine the running status of the components, which can improve the accuracy of the dog-feeding method.

[0104] S703. When the target duration reaches the watchdog time threshold and at least one component is running abnormally, a watchdog reset operation is performed. The target duration is the time between the current moment and the moment when the target component performs the watchdog reset operation or the watchdog timer operation.

[0105] In this way, a reset operation is only performed when a component malfunctions and the duration reaches the dog-feeding time threshold. This reduces the possibility of incorrectly executing a reset operation due to a single misjudgment of a component malfunction, thus improving the accuracy of the reset operation.

[0106] In this application, when performing a watchdog reset operation, an exception message can be sent to the cloud device.

[0107] The abnormal information may include information about the malfunctioning component, such as the identifier of the malfunctioning component, etc., but this application embodiment does not limit this.

[0108] For example, after receiving the information, the cloud device uses big data diagnostics to determine whether the home appliance is in a frozen or near-frozen state, enabling maintenance personnel to perform remote maintenance.

[0109] In this way, by sending abnormal information to cloud devices, users or repair personnel can be notified that there are abnormal components in the home appliances, so that users can report the problem or repair personnel can perform remote repairs for components that can be repaired remotely.

[0110] Based on the above embodiments, taking the watchdog setting in the controller as an example, the entire process of feeding the watchdog will be explained. (See also...) Figure 8 As shown, Figure 8 This is a flowchart illustrating another method of feeding a dog according to some embodiments.

[0111] It should be noted that Figure 8 The example of the controller running the main program is provided for illustration and does not constitute any limitation.

[0112] like Figure 8 As shown, methods of feeding dogs may include:

[0113] S801, the main program starts running.

[0114] S802, Initialization.

[0115] S803, Determine if it is a watchdog reset.

[0116] For example, determining whether it's a watchdog reset means checking if the main program restarts after a watchdog reset. After powering on, the controller's main program can determine whether the reset is a watchdog reset by querying the watchdog service flag.

[0117] If it is a watchdog reset, then step S804 can be executed. If it is not a watchdog reset, then step S805 can be executed.

[0118] S804: Send reset information to the cloud device.

[0119] For example, the method for sending reset information to the cloud device can be found in the method for sending exception information to the cloud device described in the above embodiments, and will not be repeated here.

[0120] S805: Obtain the interrupt count of each peripheral component and its corresponding interrupt count backup.

[0121] S806. Determine whether the interrupt count of each peripheral component is not equal to its corresponding interrupt count backup.

[0122] If the interrupt counts of each peripheral component are not equal to their corresponding interrupt count backups, it can be determined that each component is operating normally, and step S807 can be executed. If at least one peripheral component has an interrupt count equal to its corresponding interrupt count backup, it is determined that there is an abnormally operating peripheral component, and step S805 can be executed.

[0123] S807, Update the interrupt count backups for each peripheral component.

[0124] The update of the interrupt count backup for each peripheral component can be found in the above embodiments, and will not be repeated here.

[0125] S808. When the dog-feeding time threshold is reached and all components are running normally, the dog-feeding operation is executed.

[0126] S809. If the dog-feeding time threshold is reached and there is abnormal component operation, perform a reset operation.

[0127] For example, the reset operation is performed when there are still abnormally functioning components when the dog feeding time threshold is reached.

[0128] S8010, run other programs.

[0129] In summary, the watchdog timer in the controller of this application enables multi-threaded monitoring, preventing system crashes caused by the controller looping only in a local or single-threaded manner under abnormal conditions. Furthermore, it can transmit this abnormal phenomenon to cloud devices for monitoring, enabling remote fault diagnosis and maintenance. This allows maintenance personnel to remotely and proactively understand the operation of home appliances and determine potential crashes, ensuring the appliances operate in a more reliable state.

[0130] In this application, the household appliance can be a refrigerator, and the peripheral components include a temperature detection device and an analog-to-digital conversion module. Of course, the peripheral components may also include other hardware or modules. The embodiments in this application are only used as examples including a temperature detection device and an analog-to-digital conversion module, and do not constitute any limitation.

[0131] The watchdog timer is located in the refrigerator's controller, or in the temperature detection device, or in the analog-to-digital conversion module.

[0132] Taking the watchdog timer set in the refrigerator controller as an example, the watchdog feeding method of this application includes: after the controller performs a watchdog reset operation or a watchdog feeding operation, the interrupt count of the temperature detection device, the interrupt count backup of the temperature detection device, the interrupt count of the analog-to-digital conversion module, and the interrupt count backup of the analog-to-digital conversion module can be obtained.

[0133] Compare whether the interrupt count of the temperature detection device is consistent with the backup interrupt count of the temperature detection device, and compare whether the interrupt count of the analog-to-digital conversion module is consistent with the backup interrupt count of the analog-to-digital conversion module.

[0134] When both are consistent, it can be determined that the temperature detection device and the analog-to-digital conversion module are operating normally.

[0135] When one or two components are inconsistent, a malfunctioning peripheral component can be identified, allowing a watchdog reset to be performed. This can reduce control errors caused by the controller continuing to operate normally despite malfunctions in the temperature detection device and / or analog-to-digital conversion module, such as inaccurate temperature regulation of refrigerator compartments.

[0136] Figure 9 This is a schematic diagram of a dog feeding device according to some embodiments. This device can be used in any of the dog feeding methods described in the foregoing embodiments. Figure 9 As shown, the device may include: an acquisition module 901 and a correction module 902, wherein:

[0137] The acquisition module 901 is used to acquire the interrupt counts of other components after the target component performs a watchdog reset operation or a watchdog feed operation, and obtain at least one interrupt count. The interrupt count is generated by the interrupt counter in the component during the normal operation of the component.

[0138] The processing module 902 is used to determine whether other components are operating normally based on at least one interrupt count; when other components are operating normally and the preset dog-feeding conditions are met, the dog-feeding operation is performed.

[0139] Optionally, the processing module 902 is specifically used to obtain the interrupt count backups of each component in other components that are pre-stored in the target component; the interrupt count backups are stored when the component was last determined to be running normally; when the interrupt counts of each component are different from the corresponding interrupt count backups, it is determined that the other components are running normally.

[0140] Optionally, the processing module 902 is also configured to update the pre-stored interrupt count in the target component to the interrupt count of each component when it is determined that all other components are operating normally.

[0141] Optionally, the processing module 902 is further configured to determine that there is an abnormally running component when the interrupt count of at least one of the other components is the same as the corresponding interrupt count backup, not to perform the dog-feeding operation, and to continue to acquire the interrupt counts of the other components.

[0142] Optionally, the processing module 902 is also used to perform a watchdog reset operation when the target duration reaches the watchdog time threshold and at least one component is running abnormally, wherein the target duration is the duration between the current time and the time when the target component performs the watchdog reset operation or the watchdog timer operation.

[0143] Optionally, the watchdog feeding device also includes a sending module 903, which is used to send abnormal information to the cloud device when performing a watchdog reset operation.

[0144] The dog feeding device provided in this application embodiment can perform the dog feeding method in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described again here.

[0145] Figure 10 This is a schematic diagram of the structure of another household appliance according to some embodiments. For example... Figure 10 As shown, the home appliance 100 provided in this embodiment includes: a controller 1001, a memory 1002, and at least one peripheral component ( Figure 10 (Not shown in the diagram). Optionally, the device 100 also includes a communication component 1003. The controller 1001, the memory 1002, and the communication component 1003 are connected via a bus 1004.

[0146] In the specific implementation process, at least one controller 1001 executes computer execution instructions stored in memory 1002, causing at least one controller 1001 to perform the above-described method.

[0147] The specific implementation process of controller 1001 can be found in the above method embodiment, and its implementation principle and technical effect are similar. It will not be repeated here.

[0148] In the above embodiments, it should be understood that the controller can be a Central Processing Unit (CPU), or other general-purpose controllers, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose controller can be a microcontroller or any conventional controller. The steps of the method disclosed in this invention can be directly manifested as being executed by a hardware controller, or executed by a combination of hardware and software modules within the controller.

[0149] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0150] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0151] This application also provides a computer-readable storage medium, which may include various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a disk, or an optical disk. Specifically, the computer-readable storage medium stores computer-executable instructions, which are executed by a computer to implement the technical solutions shown in the above method embodiments.

[0152] This application also provides a program product, which includes executable instructions stored in a readable storage medium. When the computer program is executed by a computer, the technical solution shown in the above method embodiments is executed. The specific implementation method and technical effect are similar, and will not be described again here.

[0153] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

[0154] For ease of explanation, the above description has been provided in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Various modifications and variations can be obtained based on the above teachings. The selection and description of the above embodiments are for the purpose of better explaining the principles and practical applications, thereby enabling those skilled in the art to better utilize the embodiments and various different variations of embodiments suitable for specific application considerations.

[0155] In this application, "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent three cases: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this document indicates that the preceding and following related objects have an "or" relationship.

[0156] "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or multiple items. For example, at least one of a, b, or c can mean: a, b, c, a and b, a and c, b and c, or a, b, and c, where each of a, b, and c can be an element itself or a set containing one or more elements.

[0157] In this application, "at least one" means one or more. "More than one" means two or more. The descriptions of "first," "second," etc., appearing in the embodiments of this application are only for illustration and to distinguish the described objects, and have no order, nor do they indicate a special limitation on the number of devices in the embodiments of this application, and cannot constitute any limitation on the embodiments of this application. For example, "first threshold" and "second threshold" are only used to distinguish different thresholds, and do not indicate that the size, priority, or importance of these two thresholds are different.

[0158] In this application, terms such as "exemplary," "in some embodiments," and "in other embodiments" are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplary" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Rather, the term "exemplary" is used to present the concept in a specific manner.

[0159] In this application, the terms "of," "corresponding (relevant)," "corresponding," and "related" may sometimes be used interchangeably. It should be noted that, unless a distinction is emphasized, their intended meanings are consistent. Similarly, in the embodiments of this application, "communication" and "transmission" may sometimes be used interchangeably. It should be noted that, unless a distinction is emphasized, their intended meanings are consistent. For example, transmission can include sending and / or receiving, and can be a noun or a verb.

[0160] In this application, "equal to" can be used with "less than" or "greater than", but not simultaneously with both. When "equal to" is used with "less than", it applies to the technical solution adopted by "less than". When "equal to" is used with "greater than", it applies to the technical solution adopted by "greater than".

Claims

1. A method for feeding dogs, characterized in that, The invention is applied to home appliances, which include a controller and at least one peripheral component, wherein a watchdog is provided in a target component, and the target component is one of the controller and at least one peripheral component; The method includes: After the target component performs a watchdog reset operation or a watchdog feed operation, the interrupt counts of other components are obtained to obtain at least one interrupt count, which is generated by the interrupt counter in the component during the normal operation of the component; Based on the at least one interrupt count, determine whether the other components are operating normally; When all other components are operating normally and the preset dog-feeding conditions are met, the dog-feeding operation is performed.

2. The method according to claim 1, characterized in that, The step of determining whether the other components are operating normally based on the at least one interruption count includes: Obtain a backup of the interruption counts of each of the other components that are pre-stored in the target component; the interruption count backups were stored when the last time it was determined that the component was operating normally. When the interrupt count of each component is different from the corresponding interrupt count backup, it is determined that the other components are operating normally.

3. The method according to claim 2, characterized in that, The method further includes: When it is determined that all other components are operating normally, the pre-stored interrupt count in the target component is backed up and updated to the interrupt count of each component.

4. The method according to claim 3, characterized in that, The method further includes: When the interrupt count of at least one of the other components is the same as the corresponding interrupt count backup, it is determined that there is an abnormally running component. The dog-feeding operation is not performed, and the interrupt count of other components continues to be acquired.

5. The method according to claim 4, characterized in that, The method further includes: When the target duration reaches the watchdog time threshold and at least one component is running abnormally, a watchdog reset operation is performed. The target duration is the time between the current moment and the moment when the target component performs a watchdog reset operation or a watchdog timer operation.

6. The method according to claim 5, characterized in that, The method further includes: When performing a watchdog reset, an exception message is sent to the cloud device.

7. The method according to any one of claims 1-6, characterized in that, The home appliance is a refrigerator, and the peripheral components include a temperature detection device and an analog-to-digital conversion module. The watchdog timer is located in the refrigerator's controller, or in the temperature detection device, or in the analog-to-digital conversion module.

8. A dog feeding device, characterized in that, The device includes: The acquisition module is used to acquire the interrupt counts of other components after the target component performs a watchdog reset operation or a watchdog feed operation, and obtain at least one interrupt count, wherein the interrupt count is generated by the interrupt counter in the component during the normal operation of the component; The processing module is used to determine whether the other components are operating normally based on at least one interrupt count; when the other components are operating normally and the preset dog-feeding conditions are met, the dog-feeding operation is performed.

9. A household appliance, comprising: The controller, a memory communicatively connected to the controller, and at least one peripheral component, wherein a watchdog timer is provided in the target component, and the target component is one of the controller and at least one peripheral component; The target component executes the computer execution instructions stored in the memory to implement the method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a controller, implement the method described in any one of claims 1-7.