CN112202650A - Method and system for controlling intelligent equipment by WeChat small program - Google Patents

Method and system for controlling intelligent equipment by WeChat small program Download PDF

Info

Publication number
CN112202650A
CN112202650A CN202010933252.5A CN202010933252A CN112202650A CN 112202650 A CN112202650 A CN 112202650A CN 202010933252 A CN202010933252 A CN 202010933252A CN 112202650 A CN112202650 A CN 112202650A
Authority
CN
China
Prior art keywords
control instruction
cloud server
intelligent
wechat
control
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.)
Pending
Application number
CN202010933252.5A
Other languages
Chinese (zh)
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.)
Hangzhou Tuya Information Technology Co Ltd
Original Assignee
Hangzhou Tuya Information 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 Hangzhou Tuya Information Technology Co Ltd filed Critical Hangzhou Tuya Information Technology Co Ltd
Priority to CN202010933252.5A priority Critical patent/CN112202650A/en
Publication of CN112202650A publication Critical patent/CN112202650A/en
Pending legal-status Critical Current

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application discloses a method for controlling intelligent equipment by a WeChat small program, which comprises the following steps: the WeChat small program sends a first control instruction to the cloud server; the cloud server analyzes the first control instruction and generates a second control instruction according to the first control instruction; the cloud server sends the second control instruction to the intelligent device; the intelligent equipment executes the second control instruction; the intelligent device sends the current device state to the cloud server; and the cloud server sends the equipment state to the WeChat small program. Compared with the prior art, the method has the following beneficial effects: the control system of the small program intelligent device is utilized, diversified control over the intelligent devices can be achieved without depending on a mobile phone APP, and the use scenes of different types of users are met.

Description

Method and system for controlling intelligent equipment by WeChat small program
Technical Field
The application relates to the field of intelligent home, in particular to a method for controlling intelligent equipment through WeChat small programs.
Background
Among the prior art, the control panel of thing networking smart home mainly is with cell-phone APP's mode, through the master control interface at APP, controls relevant button, realizes the control to equipment.
However, this control method has disadvantages: the APP of two systems of android and ios needs to be manufactured at the mobile phone end, research and development cost and maintenance cost are high, and the user still needs to download and install at each use, so that user experience is seriously influenced.
Disclosure of Invention
The main objective of the present application is to provide a method for controlling an intelligent device by a WeChat applet, which includes:
the WeChat small program sends a first control instruction to the cloud server;
the cloud server analyzes the first control instruction and generates a second control instruction according to the first control instruction;
the cloud server sends the second control instruction to the intelligent device;
the intelligent equipment executes the second control instruction;
the intelligent device sends the current device state to the cloud server;
and the cloud server sends the equipment state to the WeChat small program.
Optionally, the method for controlling the intelligent device by the WeChat applet further comprises:
triggering the first control instruction through a button in the WeChat applet.
Optionally, the method for controlling the intelligent device by the WeChat applet further comprises:
and triggering the first control instruction through character input in the WeChat applet.
Optionally, the method for controlling the intelligent device by the WeChat applet further comprises:
triggering the first control instruction through voice input in the WeChat applet.
Optionally, the analyzing, by the cloud server, the first control instruction, and generating a second control instruction according to the first control instruction includes:
the cloud server searches the first control instruction in a corresponding table;
when the first control instruction exists in the corresponding table, the cloud server searches the corresponding table for the second control instruction corresponding to the first control instruction;
and when the second control instruction exists in the corresponding table, the cloud server sends the second control instruction to the intelligent device.
Optionally, the comparison table is prestored in the cloud server.
According to another aspect of the present application, there is also provided a system for controlling a smart device by a WeChat applet, comprising:
the first control instruction sending module is used for sending a first control instruction to the cloud server by the WeChat applet;
the first control instruction analysis module is used for analyzing the first control instruction by the cloud server and generating a second control instruction according to the first control instruction;
the second control instruction sending module is used for sending the second control instruction to the intelligent device by the cloud server;
the second control command execution module is used for the intelligent equipment to execute the second control instruction;
the first device state sending module is used for the intelligent device to send the current device state to the cloud server;
and the second equipment state sending module is used for sending the equipment state to the WeChat applet by the cloud server.
The application also discloses a computer device, which comprises a memory, a processor and a computer program stored in the memory and capable of being executed by the processor, wherein the processor realizes the method of any one of the above items when executing the computer program.
The application also discloses a computer-readable storage medium, a non-volatile readable storage medium, having stored therein a computer program which, when executed by a processor, implements the method of any of the above.
The present application also discloses a computer program product comprising computer readable code which, when executed by a computer device, causes the computer device to perform the method of any of the above.
Compared with the prior art, the method has the following beneficial effects:
the method comprises the steps that related buttons are controlled on a main control interface of the small program, the buttons of the small program are converted into corresponding control instruction data, the instruction data are sent to a cloud server through a protocol, the cloud server analyzes and processes the control instruction data according to a preset mapping relation table to obtain information of equipment to be controlled and a corresponding control command of the equipment to be controlled, the corresponding equipment to be controlled is controlled to execute the control command, and equipment state information is fed back to the main control interface of the small program. The control system of the small program intelligent device is utilized, diversified control over the intelligent devices can be achieved without depending on a mobile phone APP, and the use scenes of different types of users are met.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, serve to provide a further understanding of the application and to enable other features, objects, and advantages of the application to be more apparent. The drawings and their description illustrate the embodiments of the invention and do not limit it. In the drawings:
FIG. 1 is a schematic flow diagram of a method for a WeChat applet to control a smart device according to one embodiment of the present application;
FIG. 2 is a schematic diagram of a computer device according to one embodiment of the present application; and
FIG. 3 is a schematic diagram of a computer-readable storage medium according to one embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. 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 application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Referring to fig. 1, an embodiment of the present application provides a method for controlling an intelligent device by a WeChat applet, including:
s1: the WeChat small program sends a first control instruction to the cloud server;
s2: the cloud server analyzes the first control instruction and generates a second control instruction according to the first control instruction;
s3: the cloud server sends the second control instruction to the intelligent device;
s4: the intelligent equipment executes the second control instruction;
s5: the intelligent device sends the current device state to the cloud server;
s6: and the cloud server sends the equipment state to the WeChat small program.
For example, a related triggering method is operated on a main control interface of the applet, a triggering instruction of the applet is converted into corresponding control instruction data, the instruction data are sent to a cloud server through a protocol, the cloud server analyzes and processes the control instruction data to obtain information of the device to be controlled and a corresponding control instruction, the corresponding device to be controlled is controlled to execute the control instruction, and device state information is fed back to the main control interface of the applet.
In an embodiment of the present application, the method for controlling the intelligent device by the WeChat applet further includes:
for example, a user clicks a button in the WeChat applet to trigger the first control instruction, and sends instruction data to the cloud server through a protocol, the cloud server analyzes and processes the control instruction data to obtain information of the device to be controlled and a control command corresponding to the information, controls the corresponding device to be controlled to execute the control command, and feeds back device state information to the applet main control interface.
In an embodiment of the present application, the method for controlling the intelligent device by the WeChat applet further includes:
and triggering the first control instruction through character input in the WeChat applet.
For example, a user inputs characters through a character input function in the WeChat applet, a control command is triggered through the characters, instruction data are sent to a cloud server through a protocol, the cloud server analyzes and processes the control instruction data to obtain information of the device to be controlled and a control command corresponding to the information, controls the corresponding device to be controlled to execute the control command, and feeds back device state information to the applet main control interface.
In an embodiment of the present application, the method for controlling the intelligent device by the WeChat applet further includes:
triggering the first control instruction through voice input in the WeChat applet.
For example, a user inputs characters through a voice input function in the WeChat applet, a control command is triggered through voice, command data are sent to a cloud server through a protocol, the cloud server analyzes and processes the control command data to obtain information of the device to be controlled and a control command corresponding to the information, controls the corresponding device to be controlled to execute the control command, and feeds back device state information to the applet main control interface.
In an embodiment of the application, the cloud server analyzing the first control instruction and generating a second control instruction according to the first control instruction includes:
the cloud server searches the first control instruction in a corresponding table;
when the first control instruction exists in the corresponding table, the cloud server searches the corresponding table for the second control instruction corresponding to the first control instruction;
and when the second control instruction exists in the corresponding table, the cloud server sends the second control instruction to the intelligent device.
The method comprises the steps that related buttons are controlled on a main control interface of the small program, the buttons of the small program are converted into corresponding control instruction data, the instruction data are sent to a cloud server through a protocol, the cloud server analyzes and processes the control instruction data according to a preset mapping relation table (corresponding table), information of equipment to be controlled and corresponding control commands of the equipment to be controlled are obtained, the corresponding equipment to be controlled is controlled to execute the control commands, and equipment state information is fed back to the main control interface of the small program.
In an embodiment of the present application, the comparison table is pre-stored in the cloud server.
An embodiment of the present application further provides a system for controlling an intelligent device by a WeChat applet, including:
the first control instruction sending module is used for sending a first control instruction to the cloud server by the WeChat applet;
the first control instruction analysis module is used for analyzing the first control instruction by the cloud server and generating a second control instruction according to the first control instruction;
the second control instruction sending module is used for sending the second control instruction to the intelligent device by the cloud server;
the second control command execution module is used for the intelligent equipment to execute the second control instruction;
the first device state sending module is used for the intelligent device to send the current device state to the cloud server;
and the second equipment state sending module is used for sending the equipment state to the WeChat applet by the cloud server.
Compared with the prior art, the method has the following beneficial effects:
according to the method, diversified control over the intelligent devices can be achieved without depending on a mobile phone APP by using the control method of the small program intelligent device, and the use scenes of different types of users are met.
Referring to fig. 2, the present application further provides a computer device including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method of any one of the above methods when executing the computer program.
Referring to fig. 3, a computer-readable storage medium, a non-volatile readable storage medium, having stored therein a computer program which, when executed by a processor, implements any of the methods described above.
A computer program product comprising computer readable code which, when executed by a computer device, causes the computer device to perform the method of any of the above.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for a wechat applet to control a smart device, comprising:
the WeChat small program sends a first control instruction to the cloud server;
the cloud server analyzes the first control instruction and generates a second control instruction according to the first control instruction;
the cloud server sends the second control instruction to the intelligent device;
the intelligent equipment executes the second control instruction;
the intelligent device sends the current device state to the cloud server;
and the cloud server sends the equipment state to the WeChat small program.
2. The method of claim 1, wherein the method of the wechat applet controlling the smart device further comprises:
triggering the first control instruction through a button in the WeChat applet.
3. The method of claim 1, wherein the method of the wechat applet controlling the smart device further comprises:
and triggering the first control instruction through character input in the WeChat applet.
4. The method of claim 1, wherein the method of the wechat applet controlling the smart device further comprises:
triggering the first control instruction through voice input in the WeChat applet.
5. The method of claim 2, 3 or 4, wherein the cloud server analyzing the first control instruction and generating a second control instruction according to the first control instruction comprises:
the cloud server searches the first control instruction in a corresponding table;
when the first control instruction exists in the corresponding table, the cloud server searches the corresponding table for the second control instruction corresponding to the first control instruction;
and when the second control instruction exists in the corresponding table, the cloud server sends the second control instruction to the intelligent device.
6. The method of claim 5, wherein the look-up table is pre-stored in the cloud server.
7. A system for WeChat applets to control smart devices, comprising:
the first control instruction sending module is used for sending a first control instruction to the cloud server by the WeChat applet;
the first control instruction analysis module is used for analyzing the first control instruction by the cloud server and generating a second control instruction according to the first control instruction;
the second control instruction sending module is used for sending the second control instruction to the intelligent device by the cloud server;
the second control command execution module is used for the intelligent equipment to execute the second control instruction;
the first device state sending module is used for the intelligent device to send the current device state to the cloud server;
and the second equipment state sending module is used for sending the equipment state to the WeChat applet by the cloud server.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable by the processor, wherein the processor implements the method of any one of claims 1-6 when executing the computer program.
9. A computer-readable storage medium, a non-transitory readable storage medium, having stored therein a computer program, characterized in that the computer program, when executed by a processor, implements the method according to any one of claims 1-6.
10. A computer program product comprising computer readable code that, when executed by a computer device, causes the computer device to perform the method of any of claims 1-6.
CN202010933252.5A 2020-09-08 2020-09-08 Method and system for controlling intelligent equipment by WeChat small program Pending CN112202650A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010933252.5A CN112202650A (en) 2020-09-08 2020-09-08 Method and system for controlling intelligent equipment by WeChat small program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010933252.5A CN112202650A (en) 2020-09-08 2020-09-08 Method and system for controlling intelligent equipment by WeChat small program

Publications (1)

Publication Number Publication Date
CN112202650A true CN112202650A (en) 2021-01-08

Family

ID=74005439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010933252.5A Pending CN112202650A (en) 2020-09-08 2020-09-08 Method and system for controlling intelligent equipment by WeChat small program

Country Status (1)

Country Link
CN (1) CN112202650A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114442550A (en) * 2022-01-12 2022-05-06 昆山黎光矮自动化设备有限公司 Device control method, device, electronic device, system and storage medium
CN115297080A (en) * 2022-07-21 2022-11-04 四川虹美智能科技有限公司 Intelligent equipment control method for directly interacting WeChat applet with cloud interface

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160087834A1 (en) * 2013-04-17 2016-03-24 Gree Electric Appliances, Inc. Of Zhuhai Smart Home System and Control Method Therefor
CN106996626A (en) * 2017-05-19 2017-08-01 南京信息工程大学 A kind of home environment intelligent control method and control system
CN107703734A (en) * 2017-11-13 2018-02-16 深圳市悦童智玩电子有限公司 The control circuit of intelligent alarm clock
CN108594777A (en) * 2018-04-20 2018-09-28 百度在线网络技术(北京)有限公司 Intelligent home furnishing control method, device, equipment, system and storage medium
CN108925018A (en) * 2018-06-12 2018-11-30 江苏师范大学 A kind of street lamp control system based on wechat small routine
CN109151063A (en) * 2018-10-10 2019-01-04 小雅智能平台(深圳)有限公司 A kind of method and system controlling intelligent robot
CN109215651A (en) * 2018-09-20 2019-01-15 厦门瑞尔特卫浴科技股份有限公司 A kind of speech control system and method for intelligent closestool
CN110095992A (en) * 2019-06-21 2019-08-06 南京邮电大学 Smart home system based on wechat small routine
CN110248228A (en) * 2019-05-28 2019-09-17 深圳市金锐显数码科技有限公司 A kind of method and terminal based on small routine control smart machine
CN110531645A (en) * 2019-09-27 2019-12-03 深圳云厨科技有限公司 A kind of control system and method for intelligent kitchen
CN110601964A (en) * 2019-09-20 2019-12-20 佛山科学技术学院 Intelligent electric cooker remote control system based on WeChat small program
CN210954676U (en) * 2019-11-30 2020-07-07 焦金涛 Hotel guest room intelligent equipment control system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160087834A1 (en) * 2013-04-17 2016-03-24 Gree Electric Appliances, Inc. Of Zhuhai Smart Home System and Control Method Therefor
CN106996626A (en) * 2017-05-19 2017-08-01 南京信息工程大学 A kind of home environment intelligent control method and control system
CN107703734A (en) * 2017-11-13 2018-02-16 深圳市悦童智玩电子有限公司 The control circuit of intelligent alarm clock
CN108594777A (en) * 2018-04-20 2018-09-28 百度在线网络技术(北京)有限公司 Intelligent home furnishing control method, device, equipment, system and storage medium
CN108925018A (en) * 2018-06-12 2018-11-30 江苏师范大学 A kind of street lamp control system based on wechat small routine
CN109215651A (en) * 2018-09-20 2019-01-15 厦门瑞尔特卫浴科技股份有限公司 A kind of speech control system and method for intelligent closestool
CN109151063A (en) * 2018-10-10 2019-01-04 小雅智能平台(深圳)有限公司 A kind of method and system controlling intelligent robot
CN110248228A (en) * 2019-05-28 2019-09-17 深圳市金锐显数码科技有限公司 A kind of method and terminal based on small routine control smart machine
CN110095992A (en) * 2019-06-21 2019-08-06 南京邮电大学 Smart home system based on wechat small routine
CN110601964A (en) * 2019-09-20 2019-12-20 佛山科学技术学院 Intelligent electric cooker remote control system based on WeChat small program
CN110531645A (en) * 2019-09-27 2019-12-03 深圳云厨科技有限公司 A kind of control system and method for intelligent kitchen
CN210954676U (en) * 2019-11-30 2020-07-07 焦金涛 Hotel guest room intelligent equipment control system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114442550A (en) * 2022-01-12 2022-05-06 昆山黎光矮自动化设备有限公司 Device control method, device, electronic device, system and storage medium
CN115297080A (en) * 2022-07-21 2022-11-04 四川虹美智能科技有限公司 Intelligent equipment control method for directly interacting WeChat applet with cloud interface

Similar Documents

Publication Publication Date Title
KR102085686B1 (en) State control method and device
CN107450899B (en) Method and device for generating terminal control script
CN112612214B (en) Method and system for generating functional interface and electronic equipment
CN105867754B (en) Application interface processing method and processing device
CN105611047A (en) Shortcut control method and device based on mobile terminal
CN112202650A (en) Method and system for controlling intelligent equipment by WeChat small program
CN105912138B (en) A kind of input method and device of phrase
EP4250104A1 (en) Scene configuration method, storage medium and border gateway
CN110647278A (en) Method and device for controlling plug-in display, computing equipment and storage medium
CN109995805A (en) Intelligent robot management method, terminal device and medium
CN104898440A (en) Household electrical appliance control method and apparatus
CN105511847A (en) Method and device for controlling application, and terminal
CN104866185A (en) Control interface display method and device
CN111007733B (en) Method and device for integrating smart home terminal APP with smart device
CN114115866A (en) Cross-domain-based vehicle-mounted scene self-defining method, device, equipment and storage medium
CN110851036A (en) Parameter adjusting method and device for electrical equipment and storage medium
CN113741754A (en) Task creation method and device, electronic equipment and computer-readable storage medium
CN104104729A (en) General setting method and system for mobile equipment
CN112416195A (en) Method and device for generating device control function
CN108632069B (en) Client configuration method, system and related equipment
CN106842969A (en) Apparatus control method and device
CN111125205A (en) Signboard data display method, terminal and storage medium
CN111147578B (en) Method and device for preventing curtain animation from jumping
CN111030925B (en) Multi-gateway communication method and system based on remote procedure call
CN113703351A (en) Equipment control method, device and system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210108

RJ01 Rejection of invention patent application after publication