Equipment control method, transfer equipment and storage medium

Through the transfer device to communicate with the cloud server based on the network configuration parameters of the home device, it solves the problem that the home device needs to reload the SDK and re-establish the communication connection after each power outage, and realizes that the home device does not need to be loaded after being awakened from the power outage state. The SDK responds to user requests in a timely manner.

CN118713949APending Publication Date: 2024-09-27TIANJIN YUGUANG TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410741315.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Home devices need to reload the SDK and re-establish the remote communication connection with the cloud server every time they are powered off and woken up, resulting in the inability to respond to the user's remote control instructions in a timely manner.

Method used

The transfer device communicates with the cloud server based on the network configuration parameters of the home device, and communicates with the home device based on the local area network. When receiving a user request from the cloud server, it sends a wake-up signal to the home device, wakes up the home device, and sends the user request directly to Home equipment eliminates the need to load an SDK, thereby achieving timely response.

Benefits of technology

It saves SDK loading time and re-establishing communication connections, improves the response speed of home equipment to user requests, and ensures that home equipment can quickly respond to users' remote control instructions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118713949A
    Figure CN118713949A
Patent Text Reader

Abstract

The invention discloses an equipment control method, transfer equipment and a storage medium, and relates to the technical field of equipment control, the equipment control method is applied to the transfer equipment, and the transfer equipment is in communication connection with a cloud server based on network configuration parameters corresponding to home equipment and is in communication connection with the home equipment based on a local area network. The equipment control method comprises the following steps: when a user request sent by the cloud server is received, sending a wake-up signal to home equipment corresponding to the user request, and waking up the home equipment corresponding to the user request; and sending the user request to the home equipment, so that the home equipment does not need to load and operate an SDK after being awakened from the power-down state, and the effect of timely responding to the user request can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of device control technology, and in particular to a device control method, a transfer device and a storage medium. Background Art

[0002] With the development of the Internet and the Internet of Things, home appliances have been able to achieve intelligent control. Users can send control instructions to various home appliances remotely through cloud servers anytime and anywhere, and remotely control home appliances without the need for users to physically touch the home appliances or operate near the home appliances, which greatly improves the quality and level of users' lives.

[0003] At present, remote interaction between cloud servers and home appliances usually requires deployment of the SDK (Software Development Kit) provided by the cloud server in the home appliances. The SDK provides communication protocols, data transmission and analysis, security authentication and encryption for remote interaction between cloud servers and home appliances. When users need to remotely control home appliances based on the cloud server, the home appliances can establish a remote communication connection with the cloud server by loading the SDK, thereby receiving and executing user requests sent by the user based on the cloud server.

[0004] In the related art, in order to reduce the power consumption of home appliances, when the user does not need remote control, the home appliances will be powered off, and will be awakened when the user needs remote control. However, each time the home appliance is powered off and awakened, the SDK needs to be reloaded, and after loading the SDK, the remote communication connection with the cloud server needs to be re-established, which will cause the home appliance to be unable to respond to the user request sent by the user based on the cloud server in a timely manner.

[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0006] The main purpose of this application is to provide a device control method, a transfer device and a storage medium, aiming to solve the technical problem that the home device needs to reload the SDK every time it is powered off and woken up, and after loading the SDK, it needs to re-establish the remote communication connection with the cloud server, which will cause the home device to be unable to respond promptly to the remote control instructions sent by the user based on the cloud server.

[0007] To achieve the above object, the present application proposes a device control method, the method comprising:

[0008] When receiving a user request sent by the cloud server, sending a wake-up signal to the home device corresponding to the user request to wake up the home device corresponding to the user request;

[0009] The user request is sent to the home device.

[0010] In one embodiment, the method further comprises:

[0011] Receiving network configuration parameters between the home device and the cloud server, wherein the network configuration parameters are obtained by the home device by loading an SDK compatible with the cloud server;

[0012] Establishing a first communication interface with the cloud server according to the network configuration parameters;

[0013] Establishing a second communication interface with the home device based on the local area network, wherein the first communication interface and the second communication interface are mapped to each other;

[0014] When receiving the user request sent by the cloud server, sending a wake-up signal to the home device corresponding to the user request to wake up the home device corresponding to the user request includes:

[0015] When a user request sent by the cloud server is received, a wake-up signal is sent through the second communication interface mapped by the first communication interface to wake up the home device corresponding to the user request.

[0016] In one embodiment, the method further comprises:

[0017] When a response result of the home appliance to the user request is received, the response result is sent to the cloud server.

[0018] In one embodiment, after the step of sending the user request to the home device, the following steps are included:

[0019] If the response result is not received within the response time, or the received response result is an abnormal response result, a power-off signal is sent to the home appliance to control the home appliance to power off.

[0020] In one embodiment, when receiving the user request sent by the cloud server, sending a wake-up signal to the home device corresponding to the user request, and waking up the home device corresponding to the user request, comprises:

[0021] If the user request corresponding to the home appliance is not received again within a preset time period, a power-off signal is sent to the home appliance to control the home appliance to power off.

[0022] In one embodiment, the method further comprises:

[0023] If a communication interruption with the cloud server and / or the home device is detected, saving the network configuration parameters;

[0024] If it is detected that communication with the cloud server and / or the home appliance is restored, or within a preset interval, the communication connection with the cloud server is re-established according to the saved network configuration parameters, and / or the communication connection with the home appliance is re-established based on the local area network.

[0025] In one embodiment, the step of saving the network configuration parameters further includes:

[0026] The response time is adjusted to a target response time, wherein the target response time is greater than the response time.

[0027] In one embodiment, the method comprises:

[0028] If the target network configuration parameters corresponding to the home device are received, the network configuration parameters are updated according to the target network configuration parameters;

[0029] Re-establish a communication connection with the cloud server according to the updated network configuration parameters, and establish a communication connection with the home device based on the local area network.

[0030] In addition, to achieve the above-mentioned purpose, the present application also proposes a transfer device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the device control method described above.

[0031] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the device control method described above are implemented.

[0032] The present application proposes a device control method, in which a transfer device is connected to a cloud server based on network configuration parameters corresponding to the home appliance, and is connected to the home appliance based on a local area network. When a user request sent by the cloud server is received, a wake-up signal is sent to the home appliance corresponding to the user request to wake up the home appliance corresponding to the user request, and the user request is sent to the home appliance, so that the home appliance does not need to load and run the SDK after being awakened from the power-off state, and the effect of timely responding to user requests can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0035] Figure 1 A flowchart of the first embodiment of the device control method of the present application is provided;

[0036] Figure 2 This is a communication connection diagram of the device control method of this application;

[0037] Figure 3 A flow chart of the second embodiment of the device control method of the present application;

[0038] Figure 4 A flowchart of the third embodiment of the device control method of the present application is provided;

[0039] Figure 5 A flowchart of the fourth embodiment of the device control method of the present application is provided;

[0040] Figure 6 Schematic diagram of the device structure of the hardware operating environment involved in the device control method in the embodiment of the present application.

[0041] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0042] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0043] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0044] The main solution of the embodiment of the present application is: the transfer device communicates with the cloud server based on the network configuration parameters corresponding to the home appliance, and communicates with the home appliance based on the local area network. When receiving the user request sent by the cloud server, a wake-up signal is sent to the home appliance corresponding to the user request to wake up the home appliance corresponding to the user request, and the user request is sent to the home appliance, so that the home appliance does not need to load and run the SDK after being awakened from the power-off state, and the effect of timely responding to user requests can be achieved.

[0045] In this embodiment, for the convenience of description, the following description is made by taking the identification of the transfer device as the execution subject.

[0046] In the related art, in order to reduce the power consumption of home appliances, when the user does not need remote control, the home appliances will be powered off, and will be awakened when the user needs remote control. However, each time the home appliance is powered off and awakened, the SDK needs to be reloaded, and after loading the SDK, the remote communication connection with the cloud server needs to be re-established, which will cause the home appliance to be unable to respond to the user request sent by the user based on the cloud server in a timely manner.

[0047] This application uses a transfer device as a communication bridge between home appliances and cloud servers, converting the network connection between home appliances and cloud servers into a LAN connection (local connection) between the transfer device and the home appliances, so that the home appliances do not need to load the SDK after being awakened from a power-off state, thereby achieving the effect of timely responding to user requests.

[0048] Based on this, the present application embodiment provides a device control method, referring to Figure 1 , Figure 1 This is a flow chart of Embodiment 1 of the device control method of the present application.

[0049] In this embodiment, the device control method includes steps S10 to S30:

[0050] Step S10: upon receiving a user request sent by the cloud server, sending a wake-up signal to the home device corresponding to the user request to wake up the home device corresponding to the user request;

[0051] In this embodiment, the present application uses a transfer device as a bridge between the cloud server and the home appliance, and pre-communicates with the cloud server based on the network configuration parameters corresponding to the home appliance, and communicates with the home appliance based on the local area network. Then, when the transfer device receives a user request sent by the cloud service, it can send a wake-up signal to the home appliance corresponding to the user request to wake up the home appliance corresponding to the user request. After receiving the wake-up signal, the home appliance recovers from the power-off state to the working state. A transfer device refers to an electronic device that can connect to a wireless network and communicate. For example, the transfer device can be a WIFI device.

[0052] In a feasible implementation, the transfer device may also be an Internet of Things (IoT) device.

[0053] In the related art, if a home appliance wants to communicate directly with a cloud server, the home appliance needs to load and run the SDK, and then the SDK can achieve direct communication with the cloud server based on the built-in network configuration parameters.

[0054] It should be noted that the transfer device of the present application pre-acquires the network configuration parameters built into the SDK of the home appliance, and communicates with the cloud server based on the network configuration parameters. After the transfer device communicates with the cloud server based on the network configuration parameters, it is equivalent to establishing a communication connection channel between the home appliance and the cloud server, so that the transfer device can receive the user request sent by the cloud server to the home appliance based on the communication connection without deploying the SDK. The transfer device is pre-communicated with the home appliance based on the local area network, so that the transfer device can directly send the user request sent by the cloud server to the home appliance to the home appliance based on the communication connection. Since the home appliance no longer needs to communicate directly with the cloud server, but communicates with the transfer device based on the local area network, there is no need to load and run the SDK again. Therefore, after the home appliance is awakened from the power-off state, there is no need to load and run the SDK, so that the home appliance can quickly receive the user request sent by the transfer device and respond to the user request in time.

[0055] It is understandable that the network configuration parameters are the IP address and port and other related parameters for the direct communication connection between the home appliance and the cloud server. The IP address and port constitute the network address of the home appliance and the cloud server. The home appliance realizes the communication connection with the cloud server through the network address.

[0056] For example, assuming that the home appliance directly communicates with the cloud server for interaction, and the SDK loading time is 3 seconds after the home appliance is awakened from the power-off state. After adopting the device control method provided by the present application, the SDK does not need to be loaded after the home appliance is awakened from the power-off state, thereby saving the 3 seconds required to load the SDK and achieving the effect of timely responding to user requests.

[0057] Reference Figure 2 , Figure 2 This is a communication connection diagram of the device control method of this application. A WIFI device is used as a transfer device. The solid line is the communication connection line of the device control method of this application, and the dotted line is the communication connection line between the home appliance and the cloud server in the prior art.

[0058] Step S20: sending the user request to the home device;

[0059] In this embodiment, after waking up the home appliance corresponding to the user request, the user request is sent to the home appliance so that the home appliance executes the user request, thereby realizing remote control of the home appliance by the user.

[0060] In a feasible implementation manner, the user request may be sent to the home appliance while sending a wake-up signal to the home appliance corresponding to the user request. This embodiment does not specifically limit this.

[0061] In a feasible implementation, the user can pre-configure an application provided by the cloud server on the terminal device for remotely controlling the home appliances. The terminal device can be a mobile phone, a computer, a tablet computer, or other electronic device. The user can send a user request to the cloud server based on the application on the terminal device, so that the cloud server sends the user request to the transfer device. Then, when the transfer device receives the user request, it sends a wake-up signal to the home appliance corresponding to the user request to wake up the home appliance. At the same time or after waking up the home appliance, it sends the user request to the user's home appliance, so that the home appliance executes the user request and realizes the user's remote control of the home appliance.

[0062] In the technical solution provided in this embodiment, the transfer device communicates with the cloud server based on the network configuration parameters corresponding to the home appliance, and communicates with the home appliance based on the local area network. When a user request sent by the cloud server is received, a wake-up signal is sent to the home appliance corresponding to the user request to wake up the home appliance corresponding to the user request, and the user request is sent to the home appliance, so that the home appliance does not need to load and run the SDK after being awakened from the power-off state, and the effect of timely responding to user requests can be achieved.

[0063] Reference Figure 3 In the second embodiment, based on the first embodiment, the device control method further includes steps S30 to S60:

[0064] Step S30: receiving network configuration parameters between the home device and the cloud server, wherein the network configuration parameters are obtained by the home device by loading an SDK compatible with the cloud server;

[0065] In this embodiment, the transfer device can receive network configuration parameters between the home appliance and the cloud server, and then communicate with the cloud server based on the network configuration parameters, and communicate with the home appliance based on the local area network, thereby establishing a communication connection between the home appliance and the cloud server.

[0066] In a feasible implementation, the transfer device can establish a third communication interface with the home appliance, and send a network configuration parameter acquisition signal to the home appliance through the third communication interface. After receiving the acquisition signal, the home appliance loads a cloud server-compatible SDK to obtain the network configuration parameters, and feeds back to the transfer device through the third communication interface.

[0067] It should be noted that the third communication interface can be a hard connection or a soft connection, and this embodiment does not specifically limit this.

[0068] In another feasible implementation, the user can control the home device to load the SDK in the home device to obtain network configuration parameters, and then manually input the network configuration parameters between the home device and the cloud server in the transfer device.

[0069] It should be noted that the home appliance only needs to load the SDK once to obtain the network configuration parameters and feed the network configuration parameters back to the transfer device. Subsequent interactions between the home appliance and the transfer device do not require loading the SDK.

[0070] It is understandable that different network addresses are generally set between the home device and the cloud server according to the different service types or control types requested by the user, so as to simultaneously receive and execute multiple user requests of different service types or control types and improve response efficiency. Therefore, the network configuration parameters of a home device may include one or more network addresses of different service types or control types.

[0071] Step S40: establishing a first communication interface with the cloud server according to the network configuration parameters;

[0072] Step S50: establishing a second communication interface with the home device based on the local area network, wherein the first communication interface and the second communication interface are in a corresponding relationship with each other;

[0073] In this embodiment, the transfer device establishes a first communication interface with the cloud server according to each network address in the network configuration parameter, and establishes a second communication interface with the home appliance based on the local area network. The second communication interface and the first communication interface are mapped to each other. The mapping relationship between the first communication interface and the second communication interface means that each first communication interface is mapped to a second communication interface, so that when each first communication interface of the transfer device receives a user request sent by the cloud server, the user request can be sent to the home appliance through the second communication interface mapped by the first communication interface. Therefore, the channel formed by connecting the first communication interface and the second communication interface can realize an indirect communication connection between the home appliance and the cloud server.

[0074] It should be noted that the communication connection between the transfer device and the cloud server is a long connection, and the communication connection with the home appliance is a long connection. That is, the communication mode of the first communication interface is a long connection, and the communication mode of the second communication interface is a long connection. This allows the transfer device to maintain a communication connection with the cloud server after the cloud server is powered off, and to maintain a communication connection with the home appliance after the home appliance is powered off. As a result, after the home appliance is awakened from the power-off state, the transfer device does not need to re-establish a communication connection with the home appliance, thereby further achieving the effect of improving the response efficiency of user requests.

[0075] In addition, it should be noted that a long connection is also called a persistent connection, which means that after a network connection is established, multiple data transmissions can be performed continuously without having to re-establish the connection each time.

[0076] For example, assuming that when a home appliance is directly connected to a cloud server, after the home appliance is awakened from a power-off state, it takes 3 seconds to load the SDK and 1 second to reestablish the communication connection with the cloud server. Then, the device control method of the present application can save 3 seconds of SDK loading time and 1 second of reestablishing the communication connection with the cloud server, saving a total of 4 seconds of response time, which can further achieve the effect of timely responding to user requests.

[0077] In addition, it should be noted that the present application may set each first communication interface to map to the same second communication interface, or map to different second communication interfaces, and this embodiment does not specifically limit this.

[0078] It is understandable that it is more efficient to map different first communication interfaces to different second communication interfaces than to map the same first communication interfaces to the same second communication interfaces. Therefore, it is preferred to map different second communication interfaces to the same second communication interfaces.

[0079] Step S60: When the user request sent by the cloud server is received, a wake-up signal is sent to the home device corresponding to the user request to wake up the home device corresponding to the user request, comprising: when the user request sent by the cloud server is received, a wake-up signal is sent through the second communication interface mapped by the first communication interface to wake up the home device corresponding to the user request.

[0080] In this embodiment, the transfer device sends and receives the user request and the response result corresponding to the user request through the first communication interface and the second communication interface mapped by the first communication interface.

[0081] Specifically, when the first communication interface of the transfer device receives a user request sent by the cloud server, a wake-up signal is sent to the home appliance through the second communication interface mapped by the first communication interface to wake up the home appliance, and the user request is sent to the home appliance through the second communication interface so that the home appliance executes the user request. After the home appliance receives the user request through the second communication interface, it will send the response result corresponding to the user request through the second communication interface, and then the transfer device will feed back the response result to the cloud server through the first communication interface mapped by the second communication interface.

[0082] In the technical solution provided in this embodiment, by receiving the network configuration parameters between the home appliance and the cloud server, wherein the network configuration parameters are obtained by the home appliance by loading the SDK compatible with the cloud server, then establishing a first communication interface with the cloud server according to the network configuration parameters, and establishing a second communication interface with the home appliance based on the local area network, wherein the first communication interface and the second communication interface are mutually mapped, and then when receiving the user request sent by the cloud server, a wake-up signal is sent through the second communication interface mapped by the first communication interface to wake up the home appliance corresponding to the user request. This makes it unnecessary to load and run the SDK after the home appliance is awakened from the power-off state, and the transfer device does not need to load the SDK, so that the effect of timely response to user requests can be achieved. In addition, the communication connection between the transfer device and the cloud server is a long connection, and the communication connection with the home appliance is a long connection, so that the home appliance still maintains the communication connection with it after the power is off, and then after the home appliance is awakened from the power-off state, the transfer device does not need to re-establish the communication connection with the home appliance, and can respond to the user request in time.

[0083] Reference Figure 4 In the third embodiment, based on any of the above embodiments, the device control method includes:

[0084] Step S70: When receiving the response result of the home appliance to the user request, the response result is sent to the cloud server.

[0085] It should be noted that after the transfer device sends the user request to the home appliance through the second communication interface mapped by the first communication interface, the second communication interface will wait for the response result of the user request, and temporarily not process other user requests subsequently received by the second communication interface. Avoid sending the same type of user requests to the same home appliance at the same time, causing the home appliance to crash.

[0086] In this embodiment, after receiving a user request and / or executing a user request, the home appliance will send a response result back to the transfer device. Then, when the transfer device receives the response result of the home appliance to the user request, it will send the response result to the cloud server. Thus, the transfer device realizes the communication interaction between the home appliance and the cloud server.

[0087] It should be noted that when a response result of the home appliance to a user request is received based on the second communication interface, the response result is sent to the cloud server through the first communication interface mapped by the second communication interface, and the second communication interface then processes subsequent other user requests in turn.

[0088] In a feasible implementation, after the step of sending the user request to the home appliance, the method includes: if no response result is received within the response time, or the received response result is an abnormal response result, sending a power-off signal to the home appliance to control the home appliance to power off.

[0089] It should be noted that the response time is the response time of the second communication interface. After the transfer device sends the user request to the home appliance through the second communication interface, the second communication interface will not process other subsequent user requests within the response time. Instead, it waits for the response result of the user request.

[0090] In this embodiment, the response result of a normal response refers to the response result of a successful execution of the user request. The response result of an abnormal response refers to the response result of a failed execution of the user request. If no response result is received within the response time, or if a response result indicating that the user request failed to be executed is received within the response time, it indicates that an abnormality has occurred in the home appliance, so a power-off signal is sent to the home appliance to control the home appliance to power off, save power consumption of the home appliance, and wait for maintenance. If a response result indicating that the user request was successfully executed is received within the response time, other subsequent user requests will continue to be processed.

[0091] In another feasible implementation, when a user request sent by a cloud server is received, a wake-up signal is sent to the home appliance corresponding to the user request, and the step of waking up the home appliance corresponding to the user request includes: if the user request corresponding to the home appliance is not received again within a preset time period, a power-off signal is sent to the home appliance to control the home appliance to power off.

[0092] In this embodiment, there may be one or more first communication interfaces corresponding to a home appliance. Different first communication interfaces are used to receive user requests of different service types or control types. The preset duration is the waiting duration of the first communication interface corresponding to the home appliance. If the transfer device does not receive a user request again from each first communication interface corresponding to the same home appliance within the preset duration, it indicates that the user does not need to remotely control the home appliance temporarily, and then sends a power-off signal to the home appliance to control the home appliance to power off, thereby saving power consumption of the home appliance. When the user request corresponding to the home appliance is received again, a wake-up signal is sent to the home appliance to wake up the home appliance.

[0093] In the technical solution provided in this embodiment, the transfer device communicates with the cloud server based on the network configuration parameters corresponding to the home appliance, and communicates with the home appliance based on the local area network. When receiving a user request sent by the cloud server, a wake-up signal is sent to the home appliance corresponding to the user request to wake up the home appliance corresponding to the user request, and the user request is sent to the home appliance. When a response result of the home appliance to the user request is received, the response result is sent to the cloud server, thereby realizing communication interaction between the home appliance and the cloud server, and neither the home appliance nor the transfer device needs to load the SDK, and can respond to the user request in a timely manner.

[0094] Reference Figure 5In the fourth embodiment, based on any of the above embodiments, the device control method further includes: steps S80 to S90:

[0095] Step S80: if it is detected that the communication with the cloud server and / or the home device is interrupted, saving the network configuration parameters;

[0096] In this embodiment, if the communication interruption with the home device and / or the cloud server is detected, the current network configuration parameters are saved so that when the network is restored, the communication connection with the home device or the cloud server is re-established through the network configuration parameters without having to obtain them from the SDK of the home device.

[0097] In a feasible implementation, if it is detected that the communication with the home device is interrupted, the step of saving the network configuration parameters further includes: adjusting the response time to a target response time, wherein the target response time is greater than the response time, so as to prevent the relay device from only interrupting the communication with the home device at one end, causing the relay device to still process the user request of the cloud server, thereby wasting the power consumption of the relay device.

[0098] In this embodiment, if the communication interruption with the home appliance is detected, the response time is adjusted to the target response time, and the target response time is greater than the response time, so that the relay device is in a state of waiting for the response result of the home appliance for a longer period of time, and does not process subsequent requests from other users, thereby saving power consumption of the relay device.

[0099] In a feasible implementation manner, the target response time may be set to be infinite, or may be set to a longer period of time, such as 1 hour.

[0100] In a feasible implementation, if the communication interruption with the cloud server is detected, the step of saving the network configuration parameters includes: sending a power-off signal to the home device to control the home device to power off, so as to prevent the transfer device from only interrupting the communication with the cloud server, causing the home device to be in a running state all the time and consuming high power.

[0101] Step S90: If it is detected that the communication with the cloud server and / or the home appliance is restored, or within a preset interval, the communication connection with the cloud server is re-established according to the saved network configuration parameters, and / or the communication connection with the home appliance is re-established based on the local area network.

[0102] In this embodiment, in order to restore the communication connection as soon as possible and realize the remote control of the home appliance, the communication connection with the cloud server can be re-established according to the saved network configuration parameters within a preset time interval, and the communication connection with the home appliance can be re-established based on the local area network.

[0103] It should be noted that, for re-establishing the communication connection with the cloud server based on the network configuration parameters and re-establishing the communication connection with the home device based on the local area network, reference may be made to Example 2, which will not be described in detail here.

[0104] In a feasible implementation, callback notifications of successful and failed communication connections can be pre-set to detect the communication connection. After receiving the callback notification of failed connection of the second communication interface, the response duration is adjusted to the target duration to reduce the power consumption of the transfer device.

[0105] In a feasible implementation, the device control method includes: if the target network configuration parameters corresponding to the home device are received, the network configuration parameters are updated according to the target network configuration parameters, and a communication connection with the cloud server is re-established according to the updated network configuration parameters, and a communication connection with the home device is established based on a local area network.

[0106] In this embodiment, after the SDK of the home appliance is iteratively updated, it means that the network configuration parameters of the communication connection between the home appliance and the cloud server will also change accordingly. Therefore, this application sets the home appliance to load the SDK, and sends the target network configuration parameters obtained by loading the SDK to the transfer device. Or the user manually inputs the target network configuration parameters of the home appliance into the transfer device. Then, when the transfer device receives the target network configuration parameters sent by the home appliance, after updating the network configuration parameters according to the target network configuration parameters, a first communication interface with the cloud server is established according to each network address in the updated network configuration parameters, and a second communication interface with the home appliance is established based on the local area network. The first communication interface and the second communication interface are mapped to each other.

[0107] It should be noted that after re-establishing the communication connection with the cloud server and re-establishing the communication connection with the home device, the previously established communication connection with the cloud server and the communication connection with the home device can be closed, that is, the previous first communication interface and the second communication interface mapped by the first communication interface are closed, thereby reducing the power consumption of the transfer device.

[0108] In the technical solution provided in this embodiment, if it is detected that the communication connection with the home appliance is disconnected or the communication connection with the cloud server is disconnected, the network configuration parameters are saved, and if it is detected that the communication with the cloud server and / or the home appliance is restored, or within a preset interval, the communication connection with the cloud server is re-established according to the saved network configuration parameters, and / or the communication connection with the home appliance is re-established based on the local area network. The present application saves the network configuration parameters when it is detected that the communication with the home appliance and / or the cloud server is disconnected, so that the communication connection can be re-established according to the network configuration parameters when the network is restored, without obtaining them from the home appliance, thereby improving the efficiency of establishing the communication connection.

[0109] The present application provides a transfer device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the device control method in the above-mentioned embodiment one.

[0110] Reference below Figure 6 , which shows a schematic diagram of the structure of a transfer device suitable for implementing the embodiment of the present application. Figure 6 As shown, the transfer device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the transfer device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007; an output device 1008; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the transfer device to communicate with other devices wirelessly or wired to exchange data. Although a transfer device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. Greater or fewer systems may alternatively be implemented or provided.

[0111] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0112] The transfer device provided by the present application adopts the device control method in the above embodiment, which can solve the technical problem of slow response speed of household appliances after being awakened from a power-off state. Compared with the prior art, the beneficial effects of the transfer device provided by the present application are the same as the beneficial effects of the device control method provided by the above embodiment, and other technical features in the transfer device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0113] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0114] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0115] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the device control method in the above-mentioned embodiment.

[0116] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0117] The computer-readable storage medium may be included in the transfer device; or may exist independently without being assembled into the transfer device.

[0118] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the transfer device, the transfer device: the transfer device communicates with the cloud server based on the network configuration parameters corresponding to the home appliance, communicates with the home appliance based on the local area network, and then when receiving the user request sent by the cloud server, sends a wake-up signal to the home appliance corresponding to the user request, wakes up the home appliance corresponding to the user request, and sends the user request to the home appliance. This allows the home appliance to respond to user requests in a timely manner without loading and running the SDK after being awakened from the power-off state.

[0119] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0120] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0121] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0122] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned device control method, and can solve the technical problem of slow response speed of household devices after being awakened from a power-off state. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the device control method provided in the above-mentioned embodiment, and will not be repeated here.

[0123] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A device control method, characterized in that: Applied to a transfer device, the transfer device is connected to a cloud server based on network configuration parameters corresponding to the home device, and is connected to the home device based on a local area network. The method includes: When receiving a user request sent by the cloud server, sending a wake-up signal to the home device corresponding to the user request to wake up the home device corresponding to the user request; The user request is sent to the home device.

2. The method according to claim 1, characterized in that The communication connection between the transfer device and the cloud server is a long connection, and the communication connection between the transfer device and the home device is a long connection. The method further includes: Receiving network configuration parameters between the home device and the cloud server, wherein the network configuration parameters are obtained by the home device by loading an SDK compatible with the cloud server; Establishing a first communication interface with the cloud server according to the network configuration parameters; Establishing a second communication interface with the home device based on the local area network, wherein the first communication interface and the second communication interface are mapped to each other; When receiving the user request sent by the cloud server, sending a wake-up signal to the home device corresponding to the user request to wake up the home device corresponding to the user request includes: When a user request sent by the cloud server is received, a wake-up signal is sent through the second communication interface mapped by the first communication interface to wake up the home device corresponding to the user request.

3. The method according to claim 1, characterized in that The method further comprises: When a response result of the home appliance to the user request is received, the response result is sent to the cloud server.

4. The method according to claim 3, characterized in that After the step of sending the user request to the home device, the method further comprises: If the response result is not received within the response time, or the received response result is an abnormal response result, a power-off signal is sent to the home appliance to control the home appliance to power off.

5. The method according to claim 1, characterized in that When receiving the user request sent by the cloud server, sending a wake-up signal to the home device corresponding to the user request to wake up the home device corresponding to the user request includes: If the user request corresponding to the home appliance is not received again within a preset time period, a power-off signal is sent to the home appliance to control the home appliance to power off.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: If a communication interruption with the cloud server and / or the home device is detected, saving the network configuration parameters; If it is detected that communication with the cloud server and / or the home appliance is restored, or within a preset interval, the communication connection with the cloud server is re-established according to the saved network configuration parameters, and / or the communication connection with the home appliance is re-established based on the local area network.

7. The method according to claim 6, characterized in that The step of saving the network configuration parameters also includes: The response time is adjusted to a target response time, wherein the target response time is greater than the response time.

8. The method according to claim 6, characterized in that The method comprises: If the target network configuration parameters corresponding to the home device are received, the network configuration parameters are updated according to the target network configuration parameters; Re-establish a communication connection with the cloud server according to the updated network configuration parameters, and establish a communication connection with the home device based on the local area network.

9. A transfer device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the device control method according to any one of claims 1 to 8.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the device control method according to any one of claims 1 to 8 are implemented.