CN110708222B - Control method, control device, gateway and storage medium - Google Patents

Control method, control device, gateway and storage medium Download PDF

Info

Publication number
CN110708222B
CN110708222B CN201910977135.6A CN201910977135A CN110708222B CN 110708222 B CN110708222 B CN 110708222B CN 201910977135 A CN201910977135 A CN 201910977135A CN 110708222 B CN110708222 B CN 110708222B
Authority
CN
China
Prior art keywords
mode
module
gateway
intelligent household
control instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910977135.6A
Other languages
Chinese (zh)
Other versions
CN110708222A (en
Inventor
祝泽坤
唐杰
陈道远
谢颖浩
周宝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201910977135.6A priority Critical patent/CN110708222B/en
Publication of CN110708222A publication Critical patent/CN110708222A/en
Application granted granted Critical
Publication of CN110708222B publication Critical patent/CN110708222B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L2012/284Home automation networks characterised by the type of medium used
    • H04L2012/2841Wireless

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Computer And Data Communications (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The embodiment of the invention relates to a control method, a control device, a gateway and a storage medium, wherein the method comprises the following steps: the gateway monitors the state information of the wireless access point AP; determining a transmission mode of a control instruction of the intelligent household appliance according to the state information; if the transmission mode is determined to be the first mode, selecting one of a plurality of control instructions stored locally in advance as a target control instruction; the target control instruction is sent to the intelligent household appliance through the wireless transceiving module, when the network fluctuates and is disconnected, the intelligent household appliance can be controlled through the control instruction stored in the gateway locally in advance, and the use experience of the intelligent household appliance is prevented from being influenced by network limitation.

Description

Control method, control device, gateway and storage medium
Technical Field
The present invention relates to the field of communications, and in particular, to a control method, an apparatus, a gateway, and a storage medium.
Background
Along with the development of the Internet of things, the wireless communication module is arranged on the intelligent household appliance, the wireless communication module is connected with the network, the intelligent household appliance is controlled through the network, and the intelligent household system is more and more strongly dependent on the network.
However, in the actual use process, the network often accompanies network fluctuation, network disconnection and the like, in this case, the user can not connect the wireless communication module through the gateway any more, and then can not control the intelligent household appliance through the network, so that the use experience of the intelligent household appliance is greatly influenced by the limitation of the network.
Disclosure of Invention
In view of this, in order to solve the problem that the use experience of the intelligent home appliance is affected when the network is limited in the above technology, embodiments of the present invention provide a control method, an apparatus, a gateway, and a storage medium.
In a first aspect, an embodiment of the present invention provides a control method, which is applied to an intelligent household appliance, where the intelligent household appliance is provided with a wireless transceiver module, and the method includes:
the gateway monitors the state information of the wireless access point AP;
determining a transmission mode of a control instruction of the intelligent household appliance according to the state information;
if the transmission mode is determined to be the first mode, selecting one of a plurality of control instructions stored locally in advance as a target control instruction;
and sending the target control instruction to the intelligent household appliance through the wireless transceiving module.
In one possible embodiment, the sending the target control command to the intelligent appliance through the wireless transceiving module includes:
determining the type of the wireless transceiver module;
and matching a corresponding sending mode according to the type, and sending the target control instruction to the wireless transceiver module according to the sending mode so that the wireless transceiver module forwards the target control instruction to a processor of the intelligent household appliance.
In a possible embodiment, the allocating a corresponding sending method according to the type and sending the target control command to the wireless transceiver module according to the sending includes:
and if the wireless receiving and sending module is a Wi-Fi module, the target instruction is sent to the Wi-Fi module through a wireless local area network established by the gateway and the Wi-Fi module.
In a possible embodiment, the allocating a corresponding sending method according to the type and sending the target control command to the wireless transceiver module according to the sending includes:
and if the wireless transceiver module is a Mesh Bluetooth module, the gateway sends the target control instruction to the Mesh Bluetooth module in a broadcast mode.
In a possible embodiment, the allocating a corresponding sending method according to the type and sending the target control command to the wireless transceiver module according to the sending includes:
and if the wireless transceiver module is a Ble Bluetooth module, the gateway and the Ble Bluetooth module finish Bluetooth pairing and then send the target control instruction to the Ble Bluetooth module.
In one possible embodiment, the gateway monitors the status information of the wireless access point AP, and includes:
the gateway uploads a test message to a server through the AP so that the server returns a response message based on the test message;
if the test message is failed to be uploaded or the response message is not received, determining that the state information is communication failure;
and if the response message is received, determining that the state information is normal in communication.
In a possible embodiment, the determining a transmission mode of the control command of the intelligent appliance according to the state information includes:
if the state information is communication failure, determining that the transmission mode of the control command of the intelligent household appliance is a first mode;
if the state information is normal communication, determining that the transmission mode of the control command of the intelligent household appliance is a second mode;
wherein the second mode is: and the server determines a target control instruction and sends the target control instruction to the intelligent household appliance through the gateway.
In a second aspect, an embodiment of the present invention provides a control device, which is applied to an intelligent household appliance, and the method includes:
the monitoring module is used for monitoring the state information of the wireless access point AP;
the determining module is used for determining the transmission mode of the control instruction of the intelligent household appliance according to the state information;
the processing module is used for selecting one control instruction from a plurality of locally pre-stored control instructions as a target control instruction if the transmission mode is determined to be the first mode;
and the sending module is used for sending the target control instruction to the intelligent household appliance through the wireless transceiving module.
In a third aspect, an embodiment of the present invention provides a gateway, including: a processor and a memory, the processor being configured to execute a control program stored in the memory to implement the control method of any one of the first aspect described above.
In a fourth aspect, an embodiment of the present invention provides a storage medium, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement the control method according to any one of the first aspects.
The control scheme provided by the embodiment of the invention is applied to intelligent household appliances, and the state information of the wireless access point AP is monitored through the gateway; determining a transmission mode of a control instruction of the intelligent household appliance according to the state information; if the transmission mode is determined to be the first mode, selecting one of a plurality of control instructions stored locally in advance as a target control instruction; the target control instruction is sent to the intelligent household appliance through the wireless transceiving module, when the network fluctuates and is disconnected, the intelligent household appliance can be controlled through the control instruction stored in the gateway locally in advance, and the use experience of the intelligent household appliance is prevented from being influenced by network limitation.
Drawings
Fig. 1 is a schematic flow chart of a control method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a gateway monitoring status information of an AP according to an embodiment of the present invention;
fig. 3 is a schematic flowchart illustrating a transmission mode of a control command of the intelligent home appliance according to the status information according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of the process of sending the target control command to the intelligent appliance through the wireless transceiving module according to the embodiment of the present invention;
fig. 5 is a schematic structural diagram of a control device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a gateway according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
For the convenience of understanding of the embodiments of the present invention, the following description will be further explained with reference to specific embodiments, which are not to be construed as limiting the embodiments of the present invention.
Fig. 1 is a schematic flowchart of a control method according to an embodiment of the present invention, and as shown in fig. 1, the method specifically includes:
and S11, the gateway monitors the state information of the wireless access point AP.
The control method provided by the embodiment of the invention is applied to intelligent home, the intelligent household appliance is provided with the wireless transceiver module, the wireless transceiver module of the intelligent household appliance is connected with a wireless Access Point (AP) through a gateway so as to establish a communication link between the intelligent household appliance and a server, and a terminal device (such as an intelligent mobile phone) of a user sends a control instruction to the server so as to control the intelligent household appliance.
The intelligent household appliance related to the embodiment can be, but is not limited to: intelligent refrigerator, intelligent air conditioner, intelligent TV etc..
The gateway obtains the state information of the AP by monitoring data transmission between the intelligent household appliance and the server, and the state information can indicate whether the network is normal or not.
And S12, determining the transmission mode of the control command of the intelligent household appliance according to the state information.
In the embodiment of the invention, the transmission mode for setting the control instruction of the intelligent household appliance comprises a first mode and a second mode, wherein the first mode is that the gateway controls the intelligent household appliance, and the second mode is that the server controls the intelligent household appliance.
If the state information of the AP is normal, adopting a second mode to control the intelligent household appliance through the server; and if the state information of the AP is abnormal communication (network fluctuation or network disconnection), the intelligent household appliance is controlled by the gateway in the first mode.
And S13, if the transmission mode is determined to be the first mode, selecting one control command from a plurality of control commands stored in advance locally as a target control command.
And S14, sending the target control instruction to the intelligent household appliance through the wireless transceiving module.
The gateway according to the embodiment is characterized in that a plurality of control instructions for the intelligent household appliances are pre-stored in the local area of the gateway, the stored control instructions can be newly added, deleted or modified according to actual needs, and the control instructions can be classified and stored according to the types of the intelligent household appliances.
In an alternative scheme of the embodiment of the present invention, the server sends the corresponding control instruction to the gateway according to the type of the intelligent appliance, and the gateway performs classified storage on the control instruction according to the type of the intelligent appliance, or the user sets the control instruction of the intelligent appliance through an application APP on the terminal device and sends the control instruction to the gateway through the APP, and the gateway performs classified storage on the control instruction according to the type of the intelligent appliance.
Fig. 2 is a schematic flowchart of a process of monitoring, by a gateway, status information of an AP according to an embodiment of the present invention, as shown in fig. 2, specifically including the following sub-steps:
s111, the gateway uploads a test message to a server through the AP, so that the server returns a response message based on the test message.
And S112, if the test message is failed to be uploaded or the response message is not received, determining that the state information is communication failure.
And S113, if the response message is received, determining that the state information is normal in communication.
When the wireless transceiving module of the intelligent household appliance is connected with the AP through the gateway, the gateway monitors whether the communication between the gateway and the server is normal or not in a mode of uploading test messages to the server, the gateway uploads the test messages to the server in real time or at set time intervals, and the server is appointed to return response messages to the gateway in the set time intervals when receiving the test messages.
If the gateway fails to upload the test message or does not receive the response message within a set time period after successful uploading, determining that the communication between the gateway and the server is abnormal, namely the state information of the AP is the communication failure; and if the gateway receives the response message within the set time period after uploading the test message, determining that the communication between the gateway and the server is normal, namely the state information of the AP is normal.
Fig. 3 is a schematic flow chart illustrating a process of determining a transmission mode of a control command of the intelligent appliance according to the state information according to the embodiment of the present invention, and as shown in fig. 3, the process specifically includes the following sub-steps:
and S121, if the state information is communication failure, determining that the transmission mode of the control command of the intelligent household appliance is a first mode.
And S122, if the state information is normal communication, determining that the transmission mode of the control command of the intelligent household appliance is a second mode.
Wherein the second mode is: and the server determines a target control instruction and sends the target control instruction to the intelligent household appliance through the gateway.
Fig. 4 is a schematic flowchart of a process of sending the target control command to the intelligent appliance through the wireless transceiving module according to the embodiment of the present invention, and as shown in fig. 4, the process specifically includes the following sub-steps:
and S141, determining the type of the wireless transceiver module.
And S142, if the wireless transceiver module is a Wi-Fi module, sending the target instruction to the Wi-Fi module through a wireless local area network established by the gateway and the Wi-Fi module.
S143, if the wireless transceiver module is a Mesh Bluetooth module, the gateway sends the target control instruction to the Mesh Bluetooth module in a broadcast mode.
S144, if the wireless transceiver module is a Ble Bluetooth module, after the gateway and the Ble Bluetooth module complete Bluetooth pairing, the target control instruction is sent to the Ble Bluetooth module.
The wireless transceiver module on the intelligent household appliance related to the embodiment of the invention can be as follows: the Wi-Fi module, the Mesh Bluetooth module or the blade Bluetooth module can determine the data transmission mode between the gateway and the wireless transceiver module according to the type of the wireless transceiver module.
If the wireless receiving and sending module on the intelligent household appliance is a Wi-Fi module, the Wi-Fi module is connected with the AP through the router, the Wi-Fi module and the router form a wireless local area network, the gateway selects one of a plurality of control instructions stored in advance locally as a target control instruction, and the target control instruction is sent to the Wi-Fi module through the wireless local area network.
If the wireless transceiving module on the intelligent household appliance is a Mesh Bluetooth module, the gateway selects one of a plurality of control instructions stored in advance locally as a target control instruction, the gateway broadcasts the target control instruction in a broadcasting mode, and after the Mesh Bluetooth module receives the broadcast message, the target control instruction is obtained by analysis and is sent to a processor of the intelligent household appliance to control the intelligent household appliance.
If the wireless transceiver module on the intelligent household appliance is a Ble Bluetooth module, after the gateway finishes Bluetooth pairing with the Ble Bluetooth module, the target control instruction is sent to the Ble Bluetooth module, and the control instruction of the Ble Bluetooth module is sent to a processor of the intelligent household appliance to control the intelligent household appliance.
The control method provided by the embodiment of the invention is applied to intelligent household appliances, and the state information of the wireless access point AP is monitored through the gateway; determining a transmission mode of a control instruction of the intelligent household appliance according to the state information; if the transmission mode is determined to be the first mode, selecting one of a plurality of control instructions stored locally in advance as a target control instruction; the target control instruction is sent to the intelligent household appliance through the wireless transceiving module, when the network fluctuates and is disconnected, the intelligent household appliance can be controlled through the control instruction stored in the gateway locally in advance, and the use experience of the intelligent household appliance is prevented from being influenced by network limitation.
Fig. 5 is a schematic structural diagram of a control device according to an embodiment of the present invention, and as shown in fig. 5, the control device specifically includes:
a monitoring module 51, configured to monitor status information of the AP;
a determining module 52, configured to determine a transmission mode of the control instruction of the intelligent appliance according to the state information;
the processing module 53 is configured to select one of a plurality of locally pre-stored control instructions as a target control instruction if it is determined that the transmission mode is the first mode;
and the sending module 54 is configured to send the target control instruction to the intelligent household appliance through the wireless transceiving module.
Optionally, the sending module 54 is specifically configured to determine a type of the wireless transceiver module; and matching a corresponding sending mode according to the type, and sending the target control instruction to the wireless transceiver module according to the sending mode so that the wireless transceiver module forwards the target control instruction to a processor of the intelligent household appliance.
Optionally, the sending module 54 is specifically configured to send the target instruction to the Wi-Fi module through a wireless local area network established by the gateway and the Wi-Fi module if the wireless transceiver module is the Wi-Fi module.
Optionally, the sending module 54 is specifically configured to, if the wireless transceiver module is a Mesh bluetooth module, send the target control instruction to the Mesh bluetooth module by the gateway in a broadcast manner.
Optionally, the sending module 54 is specifically configured to, if the wireless transceiver module is a Ble bluetooth module, send the target control instruction to the Ble bluetooth module after the gateway and the Ble bluetooth module complete bluetooth pairing.
Optionally, the monitoring module 51 is specifically configured to upload a test message to a server through the AP by the gateway, so that the server returns a response message based on the test message; if the test message is failed to be uploaded or the response message is not received, determining that the state information is communication failure; and if the response message is received, determining that the state information is normal in communication.
Optionally, the determining module 52 is specifically configured to determine that the transmission mode of the control instruction of the intelligent appliance is a first mode if the status information is communication failure; if the state information is normal communication, determining that the transmission mode of the control command of the intelligent household appliance is a second mode;
wherein the second mode is: and the server determines a target control instruction and sends the target control instruction to the intelligent household appliance through the gateway.
The control device provided in this embodiment may be the control device shown in fig. 5, and may perform all the steps of the control method shown in fig. 1 to 4, so as to achieve the technical effects of the control method shown in fig. 1 to 4, which are described with reference to fig. 1 to 4 for brevity and will not be described herein again.
Fig. 6 is a schematic structural diagram of a gateway according to an embodiment of the present invention, where the gateway 600 shown in fig. 6 includes: at least one processor 601, memory 602, at least one network interface 604, and other user interfaces 603. The various components in the gateway 600 are coupled together by a bus system 605. It is understood that the bus system 605 is used to enable communications among the components. The bus system 605 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 605 in fig. 6.
The user interface 603 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It will be appreciated that the memory 602 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a Read-only memory (ROM), a programmable Read-only memory (PROM), an erasable programmable Read-only memory (erasabprom, EPROM), an electrically erasable programmable Read-only memory (EEPROM), or a flash memory. The volatile memory may be a Random Access Memory (RAM) which functions as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (staticiram, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (syncronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM ), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 602 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 602 stores the following elements, executable units or data structures, or a subset thereof, or an expanded set thereof: an operating system 6021 and application programs 6022.
The operating system 6021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application program 6022 includes various application programs such as a media player (MediaPlayer), a Browser (Browser), and the like, and is used to implement various application services. A program implementing the method of an embodiment of the invention can be included in the application program 6022.
In the embodiment of the present invention, by calling a program or an instruction stored in the memory 602, specifically, a program or an instruction stored in the application program 6022, the processor 601 is configured to execute the method steps provided by the method embodiments, for example, including:
the gateway monitors the state information of the wireless access point AP; determining a transmission mode of a control instruction of the intelligent household appliance according to the state information; if the transmission mode is determined to be the first mode, selecting one of a plurality of control instructions stored locally in advance as a target control instruction; and sending the target control instruction to the intelligent household appliance through the wireless transceiving module.
Optionally, determining the type of the wireless transceiver module; and matching a corresponding sending mode according to the type, and sending the target control instruction to the wireless transceiver module according to the sending mode so that the wireless transceiver module forwards the target control instruction to a processor of the intelligent household appliance.
Optionally, if the wireless transceiver module is a Wi-Fi module, the target instruction is sent to the Wi-Fi module through a wireless local area network established between the gateway and the Wi-Fi module.
Optionally, if the wireless transceiver module is a Mesh bluetooth module, the gateway sends the target control instruction to the Mesh bluetooth module in a broadcast manner.
Optionally, if the wireless transceiver module is a Ble bluetooth module, the gateway sends the target control instruction to the Ble bluetooth module after completing bluetooth pairing with the Ble bluetooth module.
Optionally, the gateway uploads a test message to a server through the AP, so that the server returns a response message based on the test message; if the test message is failed to be uploaded or the response message is not received, determining that the state information is communication failure; and if the response message is received, determining that the state information is normal in communication.
Optionally, if the status information is communication failure, determining that a transmission mode of the control command of the intelligent household appliance is a first mode; if the state information is normal communication, determining that the transmission mode of the control command of the intelligent household appliance is a second mode;
wherein the second mode is: and the server determines a target control instruction and sends the target control instruction to the intelligent household appliance through the gateway.
The method disclosed by the above-mentioned embodiment of the present invention can be applied to the processor 601, or implemented by the processor 601. The processor 601 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 601. The processor 601 may be a general-purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software elements in the decoding processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The gateway provided in this embodiment may be a gateway as shown in fig. 6, and may perform all the steps of the control method shown in fig. 1 to 4, so as to achieve the technical effects of the control method shown in fig. 1 to 4, which please refer to the related descriptions of fig. 1 to 4 for brevity, and is not described herein again.
The embodiment of the invention also provides a storage medium (computer readable storage medium). The storage medium herein stores one or more programs. Among others, the storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
When one or more programs in the storage medium are executable by one or more processors to implement the above-described control method executed on the control device side.
The processor is configured to execute the control program stored in the memory to implement the following steps of the control method executed on the control device side:
the gateway monitors the state information of the wireless access point AP; determining a transmission mode of a control instruction of the intelligent household appliance according to the state information; if the transmission mode is determined to be the first mode, selecting one of a plurality of control instructions stored locally in advance as a target control instruction; and sending the target control instruction to the intelligent household appliance through the wireless transceiving module.
Optionally, determining the type of the wireless transceiver module; and matching a corresponding sending mode according to the type, and sending the target control instruction to the wireless transceiver module according to the sending mode so that the wireless transceiver module forwards the target control instruction to a processor of the intelligent household appliance.
Optionally, if the wireless transceiver module is a Wi-Fi module, the target instruction is sent to the Wi-Fi module through a wireless local area network established between the gateway and the Wi-Fi module.
Optionally, if the wireless transceiver module is a Mesh bluetooth module, the gateway sends the target control instruction to the Mesh bluetooth module in a broadcast manner.
Optionally, if the wireless transceiver module is a Ble bluetooth module, the gateway sends the target control instruction to the Ble bluetooth module after completing bluetooth pairing with the Ble bluetooth module.
Optionally, the gateway uploads a test message to a server through the AP, so that the server returns a response message based on the test message; if the test message is failed to be uploaded or the response message is not received, determining that the state information is communication failure; and if the response message is received, determining that the state information is normal in communication.
Optionally, if the status information is communication failure, determining that a transmission mode of the control command of the intelligent household appliance is a first mode; if the state information is normal communication, determining that the transmission mode of the control command of the intelligent household appliance is a second mode;
wherein the second mode is: and the server determines a target control instruction and sends the target control instruction to the intelligent household appliance through the gateway.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (9)

1. A control method is applied to intelligent household appliances, wherein a wireless transceiver module is arranged in the intelligent household appliances, and the method comprises the following steps:
the gateway monitors the state information of the wireless access point AP, and comprises the following steps: the gateway uploads a test message to a server through the AP so that the server returns a response message based on the test message; if the test message is failed to be uploaded or the response message is not received, determining that the state information is communication failure; if the response message is received, determining that the state information is normal in communication;
determining a transmission mode of a control instruction of the intelligent household appliance according to the state information, wherein the transmission mode comprises a first mode and a second mode, the first mode is that the gateway controls the intelligent household appliance, the second mode is that the server controls the intelligent household appliance, if the state information of the AP is normal, the second mode is adopted, and if the state information of the AP is abnormal, the first mode is adopted;
if the transmission mode is determined to be the first mode, selecting one control instruction from a plurality of control instructions stored locally in advance by the gateway as a target control instruction;
and sending the target control instruction to the intelligent household appliance through the wireless transceiving module.
2. The method of claim 1, wherein the sending the target control command to the intelligent appliance through the wireless transceiving module comprises:
determining the type of the wireless transceiver module;
and matching a corresponding sending mode according to the type, and sending the target control instruction to the wireless transceiver module according to the sending mode so that the wireless transceiver module forwards the target control instruction to a processor of the intelligent household appliance.
3. The method of claim 2, wherein said assigning a corresponding transmission mode according to the type and transmitting the target control command to the radio transceiver module according to the transmission comprises:
and if the wireless receiving and sending module is a Wi-Fi module, the target instruction is sent to the Wi-Fi module through a wireless local area network established by the gateway and the Wi-Fi module.
4. The method of claim 2, wherein said assigning a corresponding transmission mode according to the type and transmitting the target control command to the radio transceiver module according to the transmission comprises:
and if the wireless transceiver module is a Mesh Bluetooth module, the gateway sends the target control instruction to the Mesh Bluetooth module in a broadcast mode.
5. The method of claim 2, wherein said assigning a corresponding transmission mode according to the type and transmitting the target control command to the radio transceiver module according to the transmission comprises:
and if the wireless transceiver module is a Ble Bluetooth module, the gateway and the Ble Bluetooth module finish Bluetooth pairing and then send the target control instruction to the Ble Bluetooth module.
6. The method of claim 1, wherein determining the transmission mode of the control command of the intelligent appliance according to the status information comprises:
if the state information is communication failure, determining that the transmission mode of the control command of the intelligent household appliance is a first mode;
if the state information is normal communication, determining that the transmission mode of the control command of the intelligent household appliance is a second mode;
wherein the second mode is: and the server determines a target control instruction and sends the target control instruction to the intelligent household appliance through the gateway.
7. A control device, characterized in that, is applied to intelligent household electrical appliances, the device includes:
the monitoring module is used for monitoring the state information of the wireless access point AP, and comprises: the gateway uploads a test message to a server through the AP so that the server returns a response message based on the test message; if the test message is failed to be uploaded or the response message is not received, determining that the state information is communication failure; if the response message is received, determining that the state information is normal in communication;
the determining module is used for determining a transmission mode of a control instruction of the intelligent household appliance according to the state information, wherein the transmission mode comprises a first mode and a second mode, the first mode is that the gateway controls the intelligent household appliance, the second mode is that the server controls the intelligent household appliance, if the state information of the AP is normal communication, the second mode is adopted, and if the state information of the AP is abnormal communication, the first mode is adopted;
the processing module is used for selecting one control instruction from a plurality of control instructions stored locally in advance by the gateway as a target control instruction if the transmission mode is determined to be the first mode;
and the sending module is used for sending the target control instruction to the intelligent household appliance through the wireless transceiving module.
8. A gateway, comprising: a processor and a memory, the processor being configured to execute a control program stored in the memory to implement the control method of any one of claims 1 to 6.
9. A storage medium storing one or more programs executable by one or more processors to implement the control method of any one of claims 1 to 6.
CN201910977135.6A 2019-10-14 2019-10-14 Control method, control device, gateway and storage medium Active CN110708222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910977135.6A CN110708222B (en) 2019-10-14 2019-10-14 Control method, control device, gateway and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910977135.6A CN110708222B (en) 2019-10-14 2019-10-14 Control method, control device, gateway and storage medium

Publications (2)

Publication Number Publication Date
CN110708222A CN110708222A (en) 2020-01-17
CN110708222B true CN110708222B (en) 2021-08-17

Family

ID=69198350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910977135.6A Active CN110708222B (en) 2019-10-14 2019-10-14 Control method, control device, gateway and storage medium

Country Status (1)

Country Link
CN (1) CN110708222B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3863231B1 (en) * 2020-02-04 2023-11-15 Siemens Aktiengesellschaft Automation network with packet-based communication between host and client and method for operating an automation network
CN111367641B (en) * 2020-03-06 2023-10-20 杭州涂鸦信息技术有限公司 Timing method and system based on Internet of things
CN111465081A (en) * 2020-03-11 2020-07-28 中移(杭州)信息技术有限公司 Control instruction receiving and sending method, device, equipment and storage medium
CN112492023B (en) * 2020-11-25 2023-04-07 青岛海尔科技有限公司 Device control method, device, storage medium, and electronic apparatus
CN112944609A (en) * 2021-02-18 2021-06-11 艾麦特科技(上海)有限公司 Method and device for remotely maintaining air conditioner of machine room
CN112944610A (en) * 2021-03-02 2021-06-11 艾麦特科技(上海)有限公司 Method and device for reducing energy consumption of air conditioner in machine room
CN113596884B (en) * 2021-08-19 2023-11-03 深圳创维数字技术有限公司 Device state monitoring method, device state monitoring apparatus, and readable storage medium
CN114286431B (en) * 2021-12-02 2024-03-22 海尔优家智能科技(北京)有限公司 Method and device for starting low-power mode, storage medium and electronic device
CN114422559A (en) * 2021-12-31 2022-04-29 深圳海翼智新科技有限公司 Device control method and device, electronic device and storage medium
CN115002206B (en) * 2022-04-29 2024-01-26 青岛海尔科技有限公司 Control method and device of intelligent equipment, storage medium and electronic device
CN115426210B (en) * 2022-08-19 2024-02-09 珠海格力电器股份有限公司 Equipment control method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850855A (en) * 2017-03-27 2017-06-13 嘉兴爱尔特云网络科技有限责任公司 WLAN long-distance monitoring method, server, WAP and system
CN109104473A (en) * 2018-07-27 2018-12-28 深圳绿米联创科技有限公司 A kind of control method, control device, control system and gateway
CN110190986A (en) * 2019-05-07 2019-08-30 深圳绿米联创科技有限公司 Method, apparatus, system, electronic equipment and the storage medium of device configuration

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850855A (en) * 2017-03-27 2017-06-13 嘉兴爱尔特云网络科技有限责任公司 WLAN long-distance monitoring method, server, WAP and system
CN109104473A (en) * 2018-07-27 2018-12-28 深圳绿米联创科技有限公司 A kind of control method, control device, control system and gateway
CN110190986A (en) * 2019-05-07 2019-08-30 深圳绿米联创科技有限公司 Method, apparatus, system, electronic equipment and the storage medium of device configuration

Also Published As

Publication number Publication date
CN110708222A (en) 2020-01-17

Similar Documents

Publication Publication Date Title
CN110708222B (en) Control method, control device, gateway and storage medium
US10609575B2 (en) Method and apparatus for monitoring and adjusting multiple communication services at a venue
US10317867B2 (en) Thermostat update and copy methods and systems
CN110602692B (en) Data updating method and device and electronic equipment
CN110740460B (en) Network access method and device of equipment, network equipment and storage medium
CN110121893B (en) Method for configuring sharing target device for sharing data usage of electronic device, authentication server, and electronic device
US10764349B2 (en) Self-organizing network communication
CN107342933B (en) Activation and binding method and device for intelligent equipment
TW201513710A (en) A method, apparatus and system of configuring equipments for joining a network group
US20220141311A1 (en) Resource subscription method, device and server, and computer storage medium
WO2018103400A1 (en) Wireless fidelity wifi connection method and related product
US11983522B2 (en) Edge-based intelligence for over the air update
CN113505028A (en) Device switching method and device, electronic device and computer readable storage medium
CN109429341B (en) BWP (broadband wireless protocol) deactivation control method, user terminal and network side equipment
CN110312140B (en) Live broadcast data processing method, device and system and computer readable storage medium
US20140323108A1 (en) Systems and methods for adjusting power settings of a wireless device
CN112817248B (en) Shared equipment management method and device, storage medium and electronic device
CN103561324A (en) Method and device for conducting cloud packing-up on application program of cloud television
CN114245432B (en) Network connection method, device, system, electronic equipment and storage medium
CN113377396B (en) Upgrading method and device, electronic equipment and storage medium
CN113596792A (en) Binding method and device of electronic equipment, storage medium and electronic device
CN114245355A (en) Network distribution method, device, system, equipment and storage medium of intelligent equipment
CN109246734B (en) Exception handling method and terminal
US8553651B2 (en) Wireless terminal and roaming method using the same
WO2023182334A1 (en) Communication device, communication method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant