Household appliance operation method, household appliance and computer readable storage medium

By determining the time period phase category in home appliances and deciding whether to restart the local object model, the problem of functional interruption caused by device restart when the network state is abnormal is solved, improving the user experience and achieving rapid network recovery.

CN119728322APending Publication Date: 2025-03-28GD MIDEA AIR CONDITIONING EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311259681.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-26
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

When existing home appliances continue to have abnormal network status, they usually restore their working state by directly restarting the device, causing local object model to restart, causing functional interruption and affecting user experience.

Method used

By determining the stage category of the current period, and determining whether to restart the local object model based on the frequency of being regulated, when it is necessary to reset the network protocol stack, the method of switching the network service component to idle mode or directly reset the network protocol stack is used to avoid unnecessary restart of the local object model.

Benefits of technology

Reduces the interruption or inability to use the home appliance function caused by restarting, improves the user experience, and quickly repairs network problems by resetting the network protocol stack.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119728322A_ABST
    Figure CN119728322A_ABST
Patent Text Reader

Abstract

The invention relates to a household appliance operation method, a household appliance and a computer readable storage medium. The operation method comprises the following steps: determining a stage category of a current time period; wherein the stage category of the current time period is used for representing that the current time period belongs to a first time stage or a second time stage; the regulated frequency of the local object model in the first time stage is higher than the regulated frequency of the local object model in the second time stage; and when a network protocol stack used by the network service component needs to be reset, determining whether to restart the local object model or not based on the stage category of the current time period. According to the embodiment of the invention, problems related to the network access service can be processed by resetting the network protocol stack, the local object model cannot be restarted each time, the situation that the function of the household appliance is interrupted or the household appliance cannot be used due to restarting can be reduced, and the use experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present specification relates to the technical field of household electrical appliances, and in particular to a household electrical appliance operation method, a household electrical appliance, and a computer-readable storage medium. Background Art

[0002] At present, in order to make home appliances more intelligent, more and more home appliances are integrated with local object models and network service components to realize local applications and network applications in home appliances. Since the network protocol stack used by the network service component is easily affected by the external network environment, working mode and business scenarios, network problems may occur.

[0003] In the related art, if the network status of a home appliance continues to have problems, the home appliance is usually directly restarted to try to restore the working status of the home appliance. However, this will cause the local object model to be restarted as well, causing functional interruptions when the user is using the local application of the home appliance, and the user experience needs to be improved. Summary of the invention

[0004] This specification is intended to solve one of the technical problems in the related art at least to a certain extent. To this end, one purpose of this specification is to propose a method for operating a household appliance.

[0005] The second purpose of this specification is to provide a household appliance operating device.

[0006] The third objective of this specification is to provide a household appliance.

[0007] A fourth objective of this specification is to provide a computer-readable storage medium.

[0008] To achieve the above-mentioned purpose, the first embodiment of the specification proposes a method for operating a household appliance. The household appliance integrates a local object model and a network service component; the local object model is used to control the household appliance to perform a specified function, and the network service component is used to provide the household appliance with a network access service; the method for operating the household appliance includes: determining the stage category of the current time period; wherein the stage category of the current time period is used to characterize that the current time period belongs to the first time period or the second time period; the frequency of the local object model being regulated in the first time period is higher than the frequency of the local object model being regulated in the second time period; when it is necessary to reset the network protocol stack used by the network service component, determine whether to restart the local object model based on the stage category of the current time period.

[0009] In some embodiments of the present specification, the determining whether to restart the local physical model based on the phase category of the current time period includes: if it is determined based on the phase category of the current time period that the current time period belongs to the first time period, determining not to restart the local physical model when resetting the network protocol stack; or if it is determined based on the phase category of the current time period that the current time period belongs to the second time period, determining to restart the local physical model when resetting the network protocol stack.

[0010] In some embodiments of the present specification, the network protocol stack is reset in the following manner: determining the network status of the home appliance; when the network status of the home appliance is that the network is abnormal and fails to reconnect to the network within a preset time, resetting the network protocol stack to reconnect to the network.

[0011] In some embodiments of the present specification, resetting the network protocol stack to reconnect to the network includes: if it is determined based on the stage category of the current time period that the current time period belongs to the first time period, switching the network service component to idle mode, and resetting the network protocol stack in the idle mode; or if it is determined based on the stage category of the current time period that the current time period belongs to the second time period, directly resetting the network protocol stack.

[0012] In some embodiments of the present specification, the preset duration includes a first network configuration duration, a second network configuration duration and a cloud connection duration; the first network configuration duration is the maximum duration for reconnecting to the router after a network abnormality occurs when the Bluetooth service of the home appliance is not started, the second network configuration duration is the maximum duration for reconnecting to the router after a network abnormality occurs when the Bluetooth service of the home appliance is started, and the cloud connection duration is the maximum duration for reconnecting to the server after a network abnormality occurs; when the current time period belongs to the first time period, when the network status of the home appliance is that the network is abnormal and reconnecting to the network fails within the preset duration, the network protocol stack is reset to reconnect Connecting to a network includes: when the Bluetooth service of the home appliance is not started, if the router is not connected within the first network configuration duration and / or the server is not connected within the cloud connection duration, switching the network service component to idle mode, and resetting the network protocol stack in the idle mode to reconnect to the network; or when the Bluetooth service of the home appliance is started, if the router is not connected through the Bluetooth service within the second network configuration duration and / or the server is not connected within the cloud connection duration, switching the network service component to idle mode, and resetting the network protocol stack and the Bluetooth protocol stack used by the Bluetooth service in the idle mode to reconnect to the network.

[0013] In some embodiments of the present specification, before restarting the local physical model, the method further includes: saving the operating parameters of the household appliance in the state before the restart, so that after restarting the local physical model, the household appliance is controlled according to the operating parameters to continue operating in the state before the restart.

[0014] In some embodiments of the present specification, the household appliance is equipped with a photosensor; the first time period is in the daytime period; the second time period is in the nighttime period; determining the stage category of the current time period includes: determining the photosensitivity value corresponding to the current time period; determining the stage category of the current time period based on the comparison result of the photosensitivity value and the preset photosensitivity range, and the time period range in which the current time period is located.

[0015] To achieve the above-mentioned purpose, the second embodiment of the specification proposes a household appliance operation device. The household appliance integrates a local object model and a network service component; the local object model is used to control the household appliance to perform a specified function, and the network service component is used to provide the household appliance with a network access service; the household appliance operation device includes: a time period category determination module, used to determine the stage category of the current time period; wherein the stage category of the current time period is used to characterize that the current time period belongs to the first time period or the second time period; the frequency of the local object model being regulated in the first time period is higher than the frequency of the local object model being regulated in the second time period; a network processing module, used to determine whether to restart the local object model based on the stage category of the current time period when it is necessary to reset the network protocol stack used by the network service component.

[0016] To achieve the above-mentioned purpose, the third aspect of the present specification proposes a household appliance, comprising a memory, a processor, and a household appliance operation program stored in the memory and executable on the processor, wherein when the processor executes the household appliance operation program, the household appliance operation method as described in any one of the first aspects is implemented.

[0017] To achieve the above-mentioned purpose, the fourth aspect of the present specification proposes a computer-readable storage medium on which a household appliance operation program is stored. When the household appliance operation program is executed by a processor, the household appliance operation method as described in any one of the first aspects is implemented.

[0018] Through the above embodiments, time is divided into two stage categories based on the frequency of regulation of the local object model. When the home appliance needs to reset the network protocol stack, it can be determined whether to restart the home appliance according to the stage category of the current time period, that is, whether to restart the local object model. The embodiments of this specification can handle problems related to network access services by resetting the network protocol stack, and will not restart the local object model every time, which can reduce the interruption of home appliance functions or the inability to use due to restart, and improve the user experience.

[0019] Additional aspects and advantages of the present specification will be given in part in the description below and in part will become apparent from the description below or will be learned through the practice of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a schematic diagram of a household appliance operation system proposed in an implementation mode of this specification.

[0021] Figure 2 It is a flow chart of the household appliance operation method proposed in the embodiment of this specification.

[0022] Figure 3 It is a flow chart of a method for initial network configuration of a household appliance proposed in one embodiment of this specification.

[0023] Figure 4 It is a flowchart of a method for processing a network service of a household appliance proposed in one embodiment of the present specification.

[0024] Figure 5 It is a flowchart of a method for processing a network service of a household appliance proposed in another embodiment of the present specification.

[0025] Figure 6 It is a flowchart of a method for processing a network service of a household appliance proposed in yet another embodiment of the present specification.

[0026] Figure 7 It is a structural block diagram of the household appliance operation device proposed in the embodiment of this specification.

[0027] Figure 8 It is a structural block diagram of a household appliance according to an embodiment of the present specification. DETAILED DESCRIPTION

[0028] The embodiments of the present specification are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present specification, and should not be construed as limiting the present specification.

[0029] At present, with the development of science and technology, more and more families are starting to use smart homes, and their home appliances are becoming more and more intelligent. In order to meet the needs of intelligence, local object models and network service components can be directly integrated into home appliances to realize local applications and network applications in home appliances.

[0030] Since the network protocol stack used by the network service component is easily affected by the external network environment, working mode, business scenario, etc., network anomalies occur. In the related art, if the network status of a home appliance continues to be abnormal, it is usually attempted to restore the working status of the home appliance by directly restarting the home appliance. However, this will cause the local object model to restart as well, causing functional interruptions when the user is using the local application of the home appliance, etc., and the user experience needs to be improved.

[0031] For example, for an air conditioner in a household appliance, users usually use a remote control to control the local functions of the air conditioner. In order to realize the intelligence of the air conditioner, the air conditioner can also be connected to the Internet so that the air conditioner can be directly controlled on a mobile phone APP or a server. Therefore, in order to realize the local application and network application of the air conditioner, a local object model and a network service component can be integrated in the air conditioner. Among them, the local object model is used to control the air conditioner to execute some local application functions; the network service component can provide network access services for the air conditioner, so that the air conditioner can receive control instructions on the mobile phone APP or server after connecting to the network. However, when the network protocol stack used by the network service component is affected and a network anomaly occurs, if the working state of the air conditioner is restored by directly restarting the air conditioner, the running local object model will also be restarted, causing the local application of the air conditioner used by the user to be interrupted, resulting in a poor user experience. Therefore, the embodiments of this specification propose a method for operating a household appliance, a household appliance, and a computer-readable storage medium.

[0032] The present specification takes an air conditioner as an example to propose a scenario example of a method for operating a household appliance. The method for operating a household appliance is applied to Figure 1 The household appliances shown are in operation in the system. Figure 1 The household appliance operation system includes an air conditioner 110, a cloud server 120, and an air conditioner remote controller 130. The household appliance operation method is applied to the air conditioner 110.

[0033] The air conditioner 110 integrates a local object model and a network service component. The local object model is used to control the air conditioner to perform a specified function, such as the cooling function, heating function, and self-cleaning function controlled by the air conditioner remote controller 130. The network service component can be used to provide network access services for the air conditioner, so that the air conditioner 110 can communicate with the cloud server 120 and receive some control instructions sent by the cloud server 120.

[0034] Since the frequency of the user directly adjusting the local object model of the air conditioner 110 through the air conditioner remote controller 130 is different at different times of the day, the time stage categories can be divided based on the adjustment frequency of the local object model. For example, the time of the day is divided into a first time stage and a second time stage. The adjustment frequency of the local object model in the first time stage is higher than the adjustment frequency of the local object model in the second time stage.

[0035] During the operation of the air conditioner 110, if the network protocol stack used by its network service component needs to be reset due to a network abnormality or due to receiving a network reset instruction, the phase category of the current time period can be determined first, and then whether to restart the local object model of the air conditioner can be determined based on the phase category of the current time period.

[0036] Figure 2 is a flow chart of a household appliance operation method proposed in the embodiment of this specification. Figure 2 , the household appliance operation method includes:

[0037] S210, determining the stage category of the current period.

[0038] The stage category of the current time period is used to indicate whether the current time period belongs to the first time period or the second time period. The frequency of the local object model being regulated in the first time period is higher than the frequency of the local object model being regulated in the second time period.

[0039] S220: When it is necessary to reset the network protocol stack used by the network service component, determine whether to restart the local object model based on the phase category of the current period.

[0040] In the embodiments of the present specification, a home appliance integrates a local object model and a network service component. The local object model is used to control the home appliance to perform a specified function, and the network service component is used to provide network access services for the home appliance. Among them, the network service component includes a network protocol stack used for network connection. Resetting the network protocol stack is a common network troubleshooting method, which can help solve problems related to network connection or network configuration.

[0041] Exemplarily, taking an air conditioner as an example, the local object models integrated in the air conditioner may include an electric heating object model, a self-cleaning object model, an intelligent temperature control object model, a surround wind object model, and the like. It can be seen that the local object model is used to control some local applications of home appliances. Users can send infrared signals to home appliances through a remote control to schedule and regulate the operation of the local object model. If the home appliance is connected to the network through a network service component, the user can also send control instructions of related functions to the home appliance through a mobile phone APP or a cloud server to schedule and regulate the operation of the local object model. However, the process of home appliances using network service components to access the network is independent of the operation of the local object model. Therefore, if the network of the home appliance is abnormal, the home appliance tries to restore the normal state by restarting, which will cause the local object model to be reset together. In this case, the function controlled by the running local object model will be interrupted, reducing the user experience.

[0042] Therefore, in the embodiment of this specification, time is divided into stage categories according to the frequency of the local object model being regulated. The stage category includes a first time stage and a second time stage, and the frequency of the local object model being regulated in the first time stage is higher than the frequency of the local object model being regulated in the second time stage.

[0043] The home appliance can first determine the stage category to which the current time period belongs. The stage category of the current time period is used to characterize whether the current time period belongs to the first time period or the second time period. Then, when it is necessary to reset the network protocol stack used by the network service component, determine whether to restart the local object model based on the stage category of the current time period. In this way, the occurrence of home appliance function interruption or unusability caused by restarting the local object model can be reduced, and network problems can be quickly repaired or reset instructions can be executed by resetting the network protocol stack, thereby improving the execution efficiency of home appliances.

[0044] Through the above method, time is divided into two stage categories based on the frequency of regulation of the local object model. When the home appliance needs to reset the network protocol stack, it can be determined whether to restart the home appliance according to the stage category of the current time period, that is, whether to restart the local object model. The embodiments of this specification can handle problems related to network access services by resetting the network protocol stack, and will not restart the local object model every time, which can reduce the interruption of home appliance functions or the inability to use due to restart, and improve the user experience.

[0045] In some embodiments of the present specification, whether to restart the local physical model is determined based on the phase category of the current time period, including: if it is determined based on the phase category of the current time period that the current time period belongs to the first time period, then it is determined that the local physical model will not be restarted when the network protocol stack is reset; or if it is determined based on the phase category of the current time period that the current time period belongs to the second time period, then it is determined that the local physical model will be restarted when the network protocol stack is reset.

[0046] In the embodiments of this specification, since the frequency of the local object model being regulated in the first time period is higher than the frequency of the local object model being regulated in the second time period, it can be understood that the user uses the home appliance more frequently in the first time period. Therefore, if the current period belongs to the first time period, you can choose not to restart the local object model when resetting the network protocol stack. In the case where the current period belongs to the second time period, the local object model is also restarted when it is determined that the network protocol stack needs to be restarted.

[0047] Through the above method, in the first time stage when the frequency of local object model adjustment is high, only the network protocol stack is reset without restarting the local object model, which can solve the tasks or problems related to network access service without affecting the normal operation of the local object model, and can improve the user experience. In the second time stage when the frequency of local object model adjustment is relatively low, the local object model is also restarted when the network protocol stack is reset. While solving the tasks or problems related to network access service, the local object model can be restarted to reduce the problems such as jamming caused by long-term operation of the local object model, thereby ensuring the long-term operation of home appliances. In addition, in the second time stage, the frequency of users adjusting home appliances is low, and the impact of restarting the local object model on the normal use of home appliances by users is relatively low.

[0048] In some embodiments of the present specification, the network protocol stack is reset in the following manner: determining the network status of the home appliance and resetting the network protocol stack to reconnect to the network when the network status of the home appliance is that the network is abnormal and fails to reconnect to the network within a preset time.

[0049] In an embodiment of the present specification, when the network status of the home appliance device shows that the network is abnormal, you can first try to reconnect based on the current network protocol stack. If reconnecting to the network fails within a preset time, you can reset the network protocol stack to try to reconnect to the network again.

[0050] Through the above embodiment, retrying to connect to the network before resetting the network protocol stack can quickly repair network anomalies caused by non-network protocol stack problems. If reconnecting to the network fails within the preset time, it can be determined that it is necessary to rely on resetting the network protocol stack to repair the network, and the network protocol stack is reset under this condition. The above process can improve the network reconnection efficiency.

[0051] In some embodiments of the present specification, resetting the network protocol stack to reconnect to the network includes: if it is determined based on the stage category of the current time period that the current time period belongs to the first time period, switching the network service component to idle mode and resetting the network protocol stack in idle mode; or if it is determined based on the stage category of the current time period that the current time period belongs to the second time period, directly resetting the network protocol stack.

[0052] In the embodiment of the present specification, after the home appliance performs the initial network configuration and successfully completes the network configuration, the network status of the home appliance can be periodically detected and the home appliance can be set to the connection mode. Once the network status indicates that the network is abnormal, the home appliance can directly try to reconnect to the network.

[0053] Therefore, when the stage category of the current time period determines that the current time period belongs to the first time stage, when the network of the home appliance device is abnormal and fails to reconnect to the network, in order to reset the network protocol stack and reconnect to the network in the connection mode, the network service component can be switched to the idle mode first, and the network protocol stack can be reset in the idle mode. After resetting the network protocol stack, the network service component is switched back to the connection mode to reconnect to the network again based on the reset network protocol stack.

[0054] When the stage category of the current time period determines that the current time period belongs to the second time period, since the home appliance needs to be restarted, it is not necessary to switch the state of the network service component, and the network protocol stack can be directly reset. Exemplarily, the network protocol stack can be reset before restarting the home appliance; or after restarting the home appliance. In some practicable methods, when the current time period belongs to the second time period, the network service component can be switched to idle mode first, the home appliance can be restarted, and then the network protocol stack can be reset, and finally the network service component can be switched to connection mode to try to reconnect to the network.

[0055] It should be noted that the home appliance in the embodiment of this specification can connect to the cloud server through a router. Among them, the home appliance can be connected to the router through AP network configuration or Bluetooth network configuration. The home appliance can also be directly connected to the cloud server through Bluetooth network configuration. AP network configuration is a way for a Wi-Fi device to connect to an existing Wi-Fi network. It is usually used to add a new Wi-Fi device to an existing network. Bluetooth network configuration is a way to connect a device to other devices or networks through Bluetooth technology.

[0056] In some embodiments of the present specification, when the current time period belongs to the first time stage, when the network status of the home appliance device is that the network is abnormal and the reconnection to the network fails within the preset time period, the network protocol stack is reset to reconnect to the network, including: when the Bluetooth service of the home appliance device is not started, if the router is not connected within the first network configuration time period and / or the server is not connected within the cloud connection time period, the network service component is switched to idle mode, and the network protocol stack is reset in idle mode to reconnect to the network; or when the Bluetooth service of the home appliance device is started, if the router is not connected through the Bluetooth service within the second network configuration time period and / or the server is not connected within the cloud connection time period, the network service component is switched to idle mode, and the network protocol stack and the Bluetooth protocol stack used by the Bluetooth service are reset in idle mode to reconnect to the network.

[0057] Once the Bluetooth service of a home appliance is turned on, it means that the home appliance is locally performing device scene linkage or the user is using the home appliance. The user can interact with the home appliance by turning on the Bluetooth service, and the home appliance can also connect to the router or cloud server through the Bluetooth network configuration. If the home appliance network is abnormal at this time, and the reconnection with the router or cloud server through the Bluetooth network configuration fails, the home appliance will reset the Bluetooth protocol stack. The operation of resetting the Bluetooth protocol stack will interrupt the Bluetooth connection between the user end and the home appliance, thereby affecting the normal use of other functions performed by the user through the Bluetooth connection. Therefore, in the embodiments of the present specification, when the current time period belongs to the first time stage, different network configuration durations are set according to whether the home appliance has started the Bluetooth service.

[0058] Specifically, when the current time period belongs to the first time stage, when the network status of the home appliance is that the network is abnormal and the reconnection to the network fails within the preset time, it is necessary to reset the network protocol stack to reconnect to the network. The preset time here includes the first network configuration time, the second network configuration time and the cloud connection time. The first network configuration time is the maximum time for reconnecting to the router after a network abnormality occurs when the Bluetooth service of the home appliance is not started; the second network configuration time is the maximum time for reconnecting to the router after a network abnormality occurs when the Bluetooth service of the home appliance is started; the cloud connection time is the maximum time for reconnecting to the server after a network abnormality occurs. Among them, the second network configuration time is usually set to be greater than the first network configuration time.

[0059] When the Bluetooth service of the home appliance is not started, if the router is not connected within the first network configuration time and / or the server is not connected within the cloud connection time, the network service component is switched to idle mode, and the network protocol stack is reset in idle mode to reconnect to the network. When the current time period belongs to the first time stage and the Bluetooth service of the home appliance is not started, the first network configuration time can be used to limit the reconnection time before the home appliance resets the network protocol stack. Once the duration of the home appliance reconnecting to the network exceeds the first network configuration time, the network service component is switched to idle mode, and the network protocol stack is reset in idle mode to reconnect to the network. This is because the above situation belongs to the situation where the local object model is scheduled at a high frequency and the user does not directly control the home appliance through the Bluetooth service. At this time, if the network of the home appliance is abnormal, it is necessary to quickly repair the network abnormality through rapid mode switching and network protocol stack reset, so as to improve the execution efficiency of the home appliance.

[0060] When the current time period belongs to the first time stage and the Bluetooth service of the home appliance has been started, it means that the user may be using the Bluetooth service to use the home appliance in the current time period. At this time, if the network of the home appliance is abnormal, the second network configuration duration can be used to limit the time to connect to the router through the Bluetooth service. Once the time for the home appliance to reconnect to the network exceeds the second network configuration duration and / or is not connected to the server within the cloud connection duration, the network service component is switched to idle mode, and the network protocol stack and the Bluetooth protocol stack used by the Bluetooth service are reset in idle mode to reconnect to the network. In this case, the second network configuration duration is used to limit the reconnection time in order to reduce the interruption of the Bluetooth service of the home appliance, which affects the normal use of other functions performed by the user through the Bluetooth connection.

[0061] It should be noted that when the current time period belongs to the first time stage and the Bluetooth service of the home appliance has been started, the network protocol stack and the Bluetooth protocol stack are reset because the Bluetooth connection is usually a local area network (LAN) connection, and the home appliance and the cloud server are generally not in the same LAN. After the home appliance is connected to the router through the Bluetooth service, the router is usually connected to the cloud server using a wide area network (WAN) interface to achieve communication connection between the home appliance and the cloud server. In another case, the home appliance and the cloud server may also be in the same local area network. At this time, the home appliance can be directly connected to the cloud server through Bluetooth network configuration. Therefore, in the embodiments of this specification, whether the router connection is abnormal or the connection with the cloud server is abnormal, the network protocol stack and the Bluetooth protocol stack can be reset. Specifically, which protocol stack to reset can be determined based on the actual connection method between the home appliance and the cloud server.

[0062] Therefore, when the home appliance is initially configured, the home appliance and the router are connected in two ways: AP configuration and Bluetooth configuration. Correspondingly, the home appliance and the cloud server are also connected in two ways: one is to connect to the router first, and then the router connects to the cloud server through AP / Bluetooth configuration; the other is to connect the home appliance directly to the cloud server through Bluetooth configuration. In a specific embodiment, please refer to Figure 3 The initial network configuration of home appliances can include the following steps:

[0063] S301, when the home appliance receives the network configuration instruction, it triggers the network configuration and starts connecting to the router and the cloud.

[0064] S302, the home appliance determines whether it is connected to the router or whether it has found the router.

[0065] S303: If the home appliance is not connected to the router, you can try to reconnect to the router through AP network configuration.

[0066] S304, determining whether the home appliance cannot connect to the router after retrying for 40 seconds through AP network configuration.

[0067] S305: If it is determined that the home appliance device still cannot connect to the router after retrying for 40 seconds through AP network configuration, the network service component is switched to idle mode to reset the network protocol stack in idle mode.

[0068] S306, waiting for re-network configuration.

[0069] S307, if the home appliance is not connected to the router, you can also try to reconnect to the router through Bluetooth network configuration.

[0070] S308, determining whether the home appliance device cannot connect to the router after retrying for 2 minutes via Bluetooth network pairing.

[0071] S309: If it is determined that the home appliance device still cannot connect to the router after retrying for 2 minutes through Bluetooth network configuration, switch the network service component to idle mode to reset the network protocol stack in idle mode.

[0072] Execute step S306 and wait for re-network configuration.

[0073] S310, determining whether the home appliance is connected to the cloud, where the cloud may refer to a cloud server.

[0074] S311, if the home appliance is connected to the router but not to the cloud, it can be reconnected to the cloud through AP / Bluetooth network configuration.

[0075] S312, determining whether the home appliance fails to bind to the cloud server within 3 minutes through AP / Bluetooth network configuration after being connected to the router.

[0076] S313: If it is determined that the cloud server binding fails within 3 minutes through the AP / Bluetooth network configuration method, the network service component is switched to idle mode to reset the network protocol stack in idle mode.

[0077] Execute step S306 and wait for re-network configuration.

[0078] S314, if the home appliance fails to connect to the cloud server directly through the Bluetooth network configuration method, then try to connect to the cloud server again based on the Bluetooth network configuration method.

[0079] S315, determining whether the home appliance still cannot connect to the cloud after retrying for 3 minutes.

[0080] S316: If it is determined that the home appliance still cannot connect to the cloud after retries for 3 minutes, the network service component is switched to idle mode to reset the network protocol stack in idle mode. Return to step S306 to wait for re-networking.

[0081] S317, if the home appliance successfully connects to both the router and the cloud, the network configuration is completed. After the network configuration is completed, the network status of the home appliance can be periodically checked.

[0082] After the home appliance completes the initial network configuration, in order to ensure the stability of the network, the network status of the home appliance can be periodically detected.

[0083] In another specific embodiment, see Figure 4 , when the current time period belongs to the first time stage and the Bluetooth service is not turned on, the network service processing flow of the home appliance device includes:

[0084] S401, periodically detecting the network status of the home appliance.

[0085] S402, the home appliance determines whether it is connected to the router or whether it has found the router.

[0086] S403, if the home appliance is not connected to the router, you can try to reconnect to the router through AP network configuration to determine whether the home appliance still cannot connect to the router after 2 minutes of retrying through AP network configuration.

[0087] S404: If it is determined that the home appliance still cannot connect to the router after retrying for 2 minutes, the network service component is switched to idle mode to reset the network protocol stack in idle mode.

[0088] S405, switching the network service component to a connection mode so that the home appliance can reconnect to the network based on the reset network protocol stack.

[0089] S406, determining whether the home appliance is connected to the cloud, where the cloud may refer to a cloud server.

[0090] S407, if the home appliance is connected to the router but not to the cloud or cannot be connected to the cloud, it can be reconnected to the cloud through the AP network configuration method. Determine whether the home appliance still cannot be connected to the cloud within 12 hours.

[0091] S408: If it is determined that the home appliance still cannot connect to the cloud within 12 hours, switch the network service component to idle mode to reset the network protocol stack in idle mode. Return to step S405 to enable the home appliance to connect to the network again based on the reset network protocol stack.

[0092] It is understandable that in Figure 4 In the case shown, the first network configuration duration used for the router reconnection time is set to 2 minutes, and the cloud connection duration is 12 hours. If it is detected that the home appliance is connected to both the router and the cloud, it means that the current network status is normal, and the network status can continue to be detected according to the preset period.

[0093] In the embodiments of the present specification, there is also a situation where the current time period belongs to the first time stage and the Bluetooth service is turned on.

[0094] See also Figure 5 In a specific embodiment, the household appliance network service processing flow may further include:

[0095] S501, detecting whether the Bluetooth service of the home appliance is activated. If the Bluetooth service is activated, the following steps are performed.

[0096] S502, the home appliance determines whether it is connected to the router or whether it has found the router.

[0097] S503: If it is found that the home appliance has not been connected to the router through the Bluetooth service by judging the connection status with the router, then return to Figure 3 The initial network configuration stage shown is to connect to the router via Bluetooth service.

[0098] S504: If the initial network configuration through the Bluetooth service fails, the network service component is switched to idle mode, the Bluetooth protocol stack is reset, and the network protocol stack is reset. Then, it is detected again whether the Bluetooth service of the home appliance is started. If it is started, the initial network configuration can be performed again based on the reset Bluetooth protocol stack.

[0099] S505: If the home appliance has completed the initial network configuration through the Bluetooth service, and the home appliance is not connected to the router after the Bluetooth service is started, the home appliance can try to reconnect to the router based on the Bluetooth network configuration method. It is determined whether the home appliance still cannot connect to the router within 60 minutes.

[0100] If it is determined that the home appliance still cannot connect to the router within 60 minutes, step S504 is executed to switch the network service component to idle mode, reset the Bluetooth protocol stack, and reset the network protocol stack, so as to try to connect to the router again through the Bluetooth service when the Bluetooth service is detected to be started.

[0101] S506: If the home appliance is connected to the router, determine whether the home appliance cannot connect to the cloud or is not connected to the cloud. The cloud may be a cloud server.

[0102] S507: If the home appliance is not connected to the cloud or cannot be connected to the cloud, the home appliance can directly try to reconnect to the cloud through Bluetooth network configuration when the home appliance and the cloud are in the same local area network. Alternatively, if the home appliance and the cloud are not in the same local area network, the router can try to reconnect to the cloud through AP network configuration. It is determined whether the home appliance still cannot connect to the cloud after reconnecting for 12 hours.

[0103] S508, if it is determined that the home appliance device still cannot connect to the cloud after reconnecting for 12 hours, switch the network service component to idle mode, reset the Bluetooth protocol stack, and reset the network protocol stack.

[0104] S509, switching the network service component to a connection mode to try to reconnect to the cloud through the reset network protocol stack or Bluetooth protocol stack.

[0105] It is understandable that if after the Bluetooth service is started, it is detected that the home appliance is connected to both the router and the cloud, or it is directly detected that the home appliance is connected to the cloud, it can be determined that the current website status of the home appliance is normal. Figure 5 In the case shown, the second network configuration duration used for the router reconnection time is set to 60 minutes, and the cloud connection duration is 12 hours. The second network configuration duration is longer than the first network configuration duration to reduce the occurrence of Bluetooth interruptions caused by resetting the Bluetooth protocol stack.

[0106] In some embodiments of the present specification, before restarting the local object model, the household appliance operation method also includes: saving the operating parameters of the household appliance in the state before the restart, so that after restarting the local object model, the household appliance is controlled according to the operating parameters to continue operating in the state before the restart.

[0107] In the embodiments of the present specification, in order to reduce the collision with the user's use of the home appliance, the operating parameters in the state before the restart can be saved before the home appliance is restarted, so that after the home appliance is restarted, the home appliance can be controlled to continue to operate in the state before the restart according to the operating parameters. Exemplarily, if the current time period belongs to the second time stage, the user controls the air conditioner to schedule the sleep mode object model, and an abnormality occurs in the network during the operation of the air conditioner, the air conditioner will first save the operating parameters in the state before the restart. After the air conditioner is restarted, the sleep mode object model continues to be scheduled according to the operating parameters to continue to operate in the state before the restart.

[0108] In some embodiments of the present specification, the household appliance is equipped with a photosensitive sensor. The first time period is in the daytime period; the second time period is in the nighttime period. Determining the stage category of the current time period includes: determining the photosensitive value corresponding to the current time period. Determining the stage category of the current time period according to the comparison result of the photosensitive value and the preset photosensitive range, and the time period range in which the current time period is located.

[0109] In the embodiments of this specification, the first time stage is in the daytime period; the second time stage is in the nighttime period. This is because the frequency of users using home appliances during the daytime period is usually higher than the frequency of using home appliances during the nighttime period. Home appliances can be equipped with photosensors, which obtain the light sensitivity value of the environment through the photosensors, and then use the light sensitivity value as one of the conditions for determining the stage category.

[0110] Specifically, the photosensitivity value corresponding to the current time period is determined based on the photosensitivity sensor. The lower the photosensitivity value, the lower the ambient light level, and the closer it is to the night time period. Therefore, a photosensitivity range is preset based on the photosensitivity of the night time period. If the photosensitivity value of the current time period falls within the preset photosensitivity range, it can be determined that the current time period may be in the night time stage. Because the photosensitivity value is greatly affected by light, the error rate is high when judging the stage category only by the photosensitivity value. In the embodiment of the present specification, the household appliance can also obtain the local time of the system to determine the time period range in which the current time period is located. Based on the comparison result of the photosensitivity value and the preset photosensitivity range and the time period range in which the current time period is located, the two conditions simultaneously judge the stage category of the current time period with a high accuracy rate.

[0111] In a specific embodiment, see Figure 6 , the network service processing flow of the home appliance device may also include:

[0112] S601, detecting whether the photosensitivity value of the current period is within a preset photosensitivity range.

[0113] S602: If the photosensitivity value of the current time period is within a preset photosensitivity range, determine the time period range of the current time period based on the system local time.

[0114] S603, when the photosensitivity value is within the preset photosensitivity range and the current time period is in the night stage, control the home appliance to enter the night mode. The night mode is equivalent to the case where the current time period belongs to the second time stage in the above embodiment.

[0115] S604, determining whether the home appliance is connected to the router or whether the router is found.

[0116] S605: If the home appliance is not connected to the router or the router is not found, try to reconnect and determine whether the home appliance still cannot connect to the router after retrying for 2 minutes.

[0117] S606, when it is determined that the home appliance device cannot connect to the router after retrying to reconnect for 2 minutes, save the operating parameters of the home appliance device in the state before the restart, and restart the home appliance device, so that the home appliance device runs in the state before the restart based on the operating parameters after the restart.

[0118] S607: If the home appliance is not connected to the cloud or cannot be connected to the cloud, try to reconnect to determine whether the home appliance still cannot be connected to the cloud after retrying for 12 hours.

[0119] S608, when it is determined that the home appliance device cannot connect to the cloud after retrying to reconnect for 12 hours, save the operating parameters of the home appliance device in the state before the restart, and restart the home appliance device, so that the home appliance device runs in the state before the restart based on the operating parameters after the restart.

[0120] It is understandable that restarting the home appliance is to restart the local object model of the home appliance. After restarting, the network protocol stack can also be reset so that the home appliance continues to connect to the router or cloud based on the reset network protocol stack.

[0121] In the above embodiments, the situation of not being able to connect to the router or the cloud is proposed. In practical applications, the reasons for not being able to connect to the router may include errors in the AP network connection phase: the router SSID cannot be searched, the password for connecting to the router is wrong, the DHCP error or timeout, and the connection between the module and the router is disconnected (broadcast loss). The reasons for not being able to connect to the cloud may include: errors in the cloud server login phase and errors generated after successfully logging into the cloud server. Among them, the errors in the cloud server login phase include: DNS resolution failure, failure to establish a socket connection with the cloud server, SSThello timeout, and token handshake timeout. The errors generated after successfully logging into the cloud server include: heartbeat packet timeout, thread care causing the module to actively restart, OTA upgrade causing the module to actively restart, the module side passively closes the socket (the electric control side triggers the network configuration, restores the factory settings, restarts, etc.), the server side actively closes the socket, the device side socket sends abnormally, ADSDNS resolution fails, and the platform cluster ID is wrong.

[0122] Corresponding to the above embodiment, the embodiment of this specification also proposes a home appliance operation device. The home appliance integrates a local object model and a network service component; the local object model is used to control the home appliance to perform a specified function, and the network service component is used to provide network access services for the home appliance. Figure 7 , the household appliance operation device comprises:

[0123] The time period category determination module 710 is used to determine the stage category of the current time period.

[0124] Among them, the stage category of the current time period is used to characterize that the current time period belongs to the first time period or the second time period; the control frequency of the local object model in the first time period is higher than the control frequency of the local object model in the second time period.

[0125] The network processing module 720 is used to determine whether to restart the local object model based on the phase category of the current period when the network protocol stack used by the network service component needs to be reset.

[0126] Through the above method, time is divided into two stage categories based on the frequency of regulation of the local object model. When the home appliance needs to reset the network protocol stack, it can be determined whether to restart the home appliance according to the stage category of the current time period, that is, whether to restart the local object model. The embodiments of this specification can handle problems related to network access services by resetting the network protocol stack, and will not restart the local object model every time, which can reduce the interruption of home appliance functions or the inability to use due to restart, and improve the user experience.

[0127] For the specific definition of the household appliance operation device, please refer to the definition of the household appliance operation method above, which will not be repeated here. Each module in the above-mentioned household appliance operation device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0128] Corresponding to the above-mentioned embodiment, the embodiment of this specification further provides a household appliance.

[0129] Figure 8 is a structural block diagram of a household appliance according to an embodiment of this specification, such as Figure 8 As shown, the household appliance 800 includes a memory 804, a processor 802, and a household appliance operation program 806 stored in the memory 804 and executable on the processor 802. When the processor 802 executes the household appliance operation program 806, any one of the household appliance operation methods described above is implemented.

[0130] According to the household appliance device of the embodiment of this specification, when the processor 802 executes the household appliance device running program 806, it can implement network access service-related problem handling by resetting the network protocol stack, and will not restart the local object model every time, which can reduce the interruption of household appliance device functions or the inability to use due to restart, thereby improving the user experience.

[0131] Corresponding to the above embodiments, the embodiments of this specification further propose a computer-readable storage medium, on which a home appliance operation program is stored, and when the home appliance operation program is executed by a processor, any of the above home appliance operation methods is implemented.

[0132] According to the computer-readable storage medium of the embodiment of this specification, when the home appliance running program is executed by the processor, it is possible to implement network access service-related problem handling by resetting the network protocol stack, and the local object model will not be restarted every time. This can reduce the occurrence of home appliance function interruption or unusable due to restart, thereby improving the user experience.

[0133] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0134] It should be understood that various parts of this specification can be implemented in hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0135] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of this specification. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0136] In the description of this specification, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing this specification and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on this specification.

[0137] In addition, the terms "first", "second", etc. used in the embodiments of this specification are only used for descriptive purposes and should not be understood as indicating or implying relative importance, or implicitly indicating the number of technical features indicated in this embodiment. Therefore, the features defined by the terms "first", "second", etc. in the embodiments of this specification can explicitly or implicitly indicate that the embodiment includes at least one of the features. In the description of this specification, the word "multiple" means at least two or two or more, such as two, three, four, etc., unless otherwise clearly and specifically defined in the embodiments.

[0138] In this specification, unless otherwise clearly specified or limited in the embodiments, the terms "install", "connect", "connect" and "fix" etc. appearing in the embodiments should be understood in a broad sense. For example, the connection can be a fixed connection, a detachable connection, or an integrated connection. It can be understood that it can also be a mechanical connection, an electrical connection, etc.; of course, it can also be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal connection of two elements, or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in this specification can be understood according to the specific implementation situation.

[0139] In this specification, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.

[0140] Although the embodiments of the present specification have been shown and described above, it is understood that the above embodiments are exemplary and are not to be construed as limitations on the present specification. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present specification.

Claims

1. A method for operating a household appliance, characterized in that: The home appliance integrates a local object model and a network service component; The local object model is used to control the home appliance to perform a specified function, and the network service component is used to provide a network access service for the home appliance; the method includes: Determine the stage category of the current time period; wherein the stage category of the current time period is used to characterize that the current time period belongs to the first time period or the second time period; the frequency of the local object model being regulated in the first time period is higher than the frequency of the local object model being regulated in the second time period; When it is necessary to reset the network protocol stack used by the network service component, it is determined whether to restart the local object model based on the phase category of the current period.

2. The method according to claim 1, characterized in that The determining whether to restart the local object model based on the phase category of the current period includes: If it is determined based on the phase category of the current time period that the current time period belongs to the first time period, then determining not to restart the local object model when resetting the network protocol stack; or If it is determined based on the phase category of the current time period that the current time period belongs to the second time period, it is determined to restart the local object model when resetting the network protocol stack.

3. The method according to claim 1, characterized in that Reset the network protocol stack in the following way: Determining the network status of the home appliance; When the network status of the household appliance is that the network is abnormal and reconnection to the network fails within a preset time, the network protocol stack is reset to reconnect to the network.

4. The method according to claim 3, characterized in that The resetting the network protocol stack to reconnect to the network comprises: If it is determined based on the phase category of the current time period that the current time period belongs to the first time period, switching the network service component to an idle mode, and resetting the network protocol stack in the idle mode; or If it is determined based on the phase category of the current time period that the current time period belongs to the second time period, the network protocol stack is directly reset.

5. The method according to claim 3, characterized in that: The preset duration includes a first network configuration duration, a second network configuration duration and a cloud connection duration; the first network configuration duration is the maximum duration for the home appliance to reconnect to the router after a network anomaly occurs when the Bluetooth service is not started, the second network configuration duration is the maximum duration for the home appliance to reconnect to the router after a network anomaly occurs when the Bluetooth service is started, and the cloud connection duration is the maximum duration for reconnecting to the server after a network anomaly occurs; When the current time period belongs to the first time stage, when the network status of the home appliance is that the network is abnormal and reconnection to the network fails within a preset time, resetting the network protocol stack to reconnect to the network includes: When the Bluetooth service of the home appliance is not started, if the router is not connected within the first network configuration duration and / or the server is not connected within the cloud connection duration, switching the network service component to an idle mode, and resetting the network protocol stack in the idle mode to reconnect to the network; or When the Bluetooth service of the home appliance device is started, if the router is not connected through the Bluetooth service within the second network configuration duration and / or the server is not connected within the cloud connection duration, the network service component is switched to idle mode, and the network protocol stack and the Bluetooth protocol stack used by the Bluetooth service are reset in the idle mode to reconnect to the network.

6. The method according to any one of claims 1 to 5, characterized in that: Before restarting the local object model, the method further includes: The operating parameters of the home appliance in the state before the restart are saved, so that after the local object model is restarted, the home appliance is controlled according to the operating parameters to continue to operate in the state before the restart.

7. The method according to any one of claims 1 to 5, characterized in that: The household appliance is equipped with a photosensor; the first time period is during the daytime; The second time period is during the night time period; The step of determining the stage category of the current period includes: Determine the photosensitivity value corresponding to the current time period; The stage category of the current time period is determined according to the comparison result between the photosensitivity value and the preset photosensitivity range, and the time period range in which the current time period is located.

8. A household appliance operation device, characterized in that: The home appliance integrates a local object model and a network service component; The local object model is used to control the home appliance to perform a specified function, and the network service component is used to provide a network access service for the home appliance; The device comprises: A time period category determination module, used to determine the stage category of the current time period; wherein the stage category of the current time period is used to characterize that the current time period belongs to the first time period or the second time period; the frequency of the local object model being regulated in the first time period is higher than the frequency of the local object model being regulated in the second time period; The network processing module is used to determine whether to restart the local object model based on the phase category of the current time period when it is necessary to reset the network protocol stack used by the network service component.

9. A household appliance, characterized in that: The invention comprises a memory, a processor and a household appliance operation program stored in the memory and executable on the processor. When the processor executes the household appliance operation program, the household appliance operation method as described in any one of claims 1 to 8 is implemented.

10. A computer-readable storage medium, characterized in that: A household appliance operation program is stored thereon, and when the household appliance operation program is executed by the processor, the household appliance operation method as described in any one of claims 1-8 is implemented.