CN112165726A - Method and system for distributing network to intelligent equipment by WeChat small program - Google Patents

Method and system for distributing network to intelligent equipment by WeChat small program Download PDF

Info

Publication number
CN112165726A
CN112165726A CN202010933238.5A CN202010933238A CN112165726A CN 112165726 A CN112165726 A CN 112165726A CN 202010933238 A CN202010933238 A CN 202010933238A CN 112165726 A CN112165726 A CN 112165726A
Authority
CN
China
Prior art keywords
network
wechat applet
intelligent equipment
wechat
intelligent
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
CN202010933238.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 CN202010933238.5A priority Critical patent/CN112165726A/en
Publication of CN112165726A publication Critical patent/CN112165726A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a method for distributing a network for intelligent equipment by a WeChat applet, which comprises the following steps: the control end is connected with a target network through a WeChat applet; the control end is connected with a local area network of the intelligent equipment through a WeChat small program; the WeChat small program sends distribution network information required by connection with the target network through the local area network; and the WeChat small program controls the intelligent equipment to be connected with the target network through the distribution network information. Compared with the prior art, the method has the following beneficial effects: the small program can better support the Internet of things, can be used for faster, better and more convenient network allocation for intelligent equipment, optimizes the network allocation process and perfects the butt joint process.

Description

Method and system for distributing network to intelligent equipment by WeChat small program
Technical Field
The application relates to the field of Internet of things, in particular to a method and a system for distributing a network for intelligent equipment by a WeChat applet.
Background
In the prior art, the WeChat applet Internet of things can support the Air Kiss with WeChat officers in the network scheme for the intelligent equipment, but the scheme needs the protocol of embedding the Air Kiss in the equipment, and the distribution network mode is complex, the configuration is also complex, and the success rate is not high.
Disclosure of Invention
The application mainly aims to provide a method for distributing a network for intelligent equipment by a WeChat applet, which comprises the following steps:
the control end is connected with a target network through a WeChat applet;
the control end is connected with a local area network of the intelligent equipment through a WeChat small program;
the WeChat small program sends distribution network information required by connection with the target network through the local area network;
and the WeChat small program controls the intelligent equipment to be connected with the target network through the distribution network information.
Optionally, the local area network in which the control terminal is connected to the smart device through the wechat applet includes:
the WeChat applet selects the name of a target network connected with the control terminal and inputs a password;
the WeChat small program sends a request for distribution network TOKEN to the intelligent equipment;
the WeChat applet is connected with a local area network of the intelligent device through a wx.connectWifi interface;
and the WeChat applet sends the encrypted UDP network packet to the intelligent equipment through a UDP interface.
Optionally, the local area network in which the control terminal is connected to the smart device through the wechat applet further includes:
and initializing the intelligent device to enable the intelligent device to be in an AP mode.
Optionally, the UDP network packet includes: an encrypted SSID and a password.
Optionally, the controlling, by the wechat applet, the intelligent device to connect to the target network through the distribution network information includes:
the intelligent equipment switches a network mode, is connected with a network and completes configuration;
the WeChat applet is connected with the target network through the wx.connectWifi interface, sends TOKEN and registers to a server side;
the WeChat small program searches the intelligent equipment at a server side according to the TOKEN;
and the server side returns the information of the intelligent equipment to the wechat applet to complete equipment distribution.
Optionally, the control terminal is a mobile phone.
According to another aspect of the present application, there is also provided a system for distributing a network to an intelligent device by using a wechat applet, including:
the control end is connected with a target network through a WeChat applet;
the target network connection module is used for initializing the intelligent equipment and enabling the intelligent equipment to be in an AP mode;
the selection module is used for selecting the name of the target network connected with the control terminal by the WeChat applet and inputting a password;
the distribution network TOKEN sending module is used for sending a request distribution network TOKEN to the intelligent equipment by the wechat applet;
the local area network connection module is used for connecting the WeChat applet with a local area network of the intelligent device through a wx.connectWifi interface;
the network packet sending module is used for sending the encrypted UDP network packet to the intelligent equipment by the WeChat applet through a UDP interface;
the distribution network information sending module is used for sending distribution network information required by connection of the target network through the local area network by the WeChat small program;
the network switching module is used for switching the network mode of the intelligent equipment, connecting the intelligent equipment to a network and completing configuration;
the registration module is used for connecting the WeChat applet with the target network through the wx.connectWifi interface, sending a TOKEN and registering the TOKEN to a server side;
the searching module is used for searching the intelligent equipment at a server side by the WeChat applet according to the TOKEN;
and the information returning module is used for returning the information of the intelligent equipment to the wechat applet by the server side to complete equipment distribution.
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 small program can better support the Internet of things, can be used for faster, better and more convenient network allocation for intelligent equipment, optimizes the network allocation process and perfects the butt joint process.
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 distributing a network to an intelligent device by a WeChat applet, according to an embodiment of the present application;
FIG. 2 is a schematic flow diagram of a method for distributing a network to an intelligent device by a WeChat applet, according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a computer device according to one embodiment of the present application; and
FIG. 4 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-2, an embodiment of the present application provides a method for distributing a network to an intelligent device by a wechat applet, including:
s2: the control end is connected with a target network through a WeChat applet;
s4: the control end is connected with a local area network of the intelligent equipment through a WeChat small program;
s6: the WeChat small program sends distribution network information required by connection with the target network through the local area network;
s8: and the WeChat small program controls the intelligent equipment to be connected with the target network through the distribution network information.
In an embodiment of the present application, the local area network in which the control terminal is connected to the smart device through the wechat applet includes:
the WeChat applet selects the name of a target network connected with the control terminal and inputs a password;
the WeChat small program sends a request for distribution network TOKEN to the intelligent equipment;
the WeChat applet is connected with a local area network of the intelligent device through a wx.connectWifi interface;
and the WeChat applet sends the encrypted UDP network packet to the intelligent equipment through a UDP interface.
For example, a cell phone connects to a router; initializing intelligent equipment to enable the intelligent equipment to be in an AP mode; selecting a wifi name connected with a mobile phone in the WeChat applet, and inputting a wifi password; requesting a distribution network TOKEN; calling a wx.connectWifi interface of the WeChat applet, and connecting the Wifi sent by the intelligent equipment; calling a WeChat applet UDP interface, and sending an encrypted UDP network packet to the equipment, wherein the network packet comprises an encrypted SSID and a password; the equipment switches the network mode, connects the network and completes the configuration;
in an embodiment of the present application, the local area network in which the control terminal is connected to the smart device through the wechat applet further includes:
and initializing the intelligent device to enable the intelligent device to be in an AP mode.
In an embodiment of the present application, the UDP network packet includes: an encrypted SSID and a password.
In an embodiment of the present application, the controlling, by the wechat applet, the intelligent device to connect to the target network through the distribution network information includes:
the intelligent equipment switches a network mode, is connected with a network and completes configuration;
the WeChat applet is connected with the target network through the wx.connectWifi interface, sends TOKEN and registers to a server side;
the WeChat small program searches the intelligent equipment at a server side according to the TOKEN;
and the server side returns the information of the intelligent equipment to the wechat applet to complete equipment distribution.
For example, calling a wx.connectWifi interface of the WeChat applet, connecting the Wifi of the router, sending a TOKEN, and registering the TOKEN to the server; searching equipment at a server end according to the TOKEN; and the server returns the information of the intelligent equipment to the wechat applet to complete the equipment distribution network.
In an embodiment of the present application, the control terminal is a mobile phone.
The application also provides a system for distributing network for intelligent equipment by the wechat applet, which comprises:
the control end is connected with a target network through a WeChat applet;
the target network connection module is used for initializing the intelligent equipment and enabling the intelligent equipment to be in an AP mode;
the selection module is used for selecting the name of the target network connected with the control terminal by the WeChat applet and inputting a password;
the distribution network TOKEN sending module is used for sending a request distribution network TOKEN to the intelligent equipment by the wechat applet;
the local area network connection module is used for connecting the WeChat applet with a local area network of the intelligent device through a wx.connectWifi interface;
the network packet sending module is used for sending the encrypted UDP network packet to the intelligent equipment by the WeChat applet through a UDP interface;
the distribution network information sending module is used for sending distribution network information required by connection of the target network through the local area network by the WeChat small program;
the network switching module is used for switching the network mode of the intelligent equipment, connecting the intelligent equipment to a network and completing configuration;
the registration module is used for connecting the WeChat applet with the target network through the wx.connectWifi interface, sending a TOKEN and registering the TOKEN to a server side;
the searching module is used for searching the intelligent equipment at a server side by the WeChat applet according to the TOKEN;
and the information returning module is used for returning the information of the intelligent equipment to the wechat applet by the server side to complete equipment distribution.
Compared with the prior art, the method has the following beneficial effects:
the available firmware has an AP mode, so that the firmware is not upgraded;
the small programs become a uniform distribution network authorization center, and the second access does not need to be developed again;
the distribution network flow is simple and convenient;
the distribution network success rate is high.
Referring to fig. 3, 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. 4, 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 distributing a network to intelligent equipment by a WeChat applet is characterized by comprising the following steps:
the control end is connected with a target network through a WeChat applet;
the control end is connected with a local area network of the intelligent equipment through a WeChat small program;
the WeChat small program sends distribution network information required by connection with the target network through the local area network;
and the WeChat small program controls the intelligent equipment to be connected with the target network through the distribution network information.
2. The method for distributing the network to the intelligent device by the wechat applet according to claim 1, wherein the step of connecting the control terminal to the local area network of the intelligent device through the wechat applet comprises:
the WeChat applet selects the name of a target network connected with the control terminal and inputs a password;
the WeChat small program sends a request for distribution network TOKEN to the intelligent equipment;
the WeChat applet is connected with a local area network of the intelligent device through a wx.connectWifi interface;
and the WeChat applet sends the encrypted UDP network packet to the intelligent equipment through a UDP interface.
3. The method for distributing the network to the intelligent device by the wechat applet according to claim 2, wherein the step of connecting the control terminal to the local area network of the intelligent device through the wechat applet further comprises:
and initializing the intelligent device to enable the intelligent device to be in an AP mode.
4. The method for distributing the WeChat applet to the intelligent devices according to claim 3, wherein the UDP network packet includes: an encrypted SSID and a password.
5. The method for distributing the network to the intelligent device by the wechat applet according to claim 4, wherein the controlling the intelligent device to connect to the target network through the distribution network information by the wechat applet comprises:
the intelligent equipment switches a network mode, is connected with a network and completes configuration;
the WeChat applet is connected with the target network through the wx.connectWifi interface, sends TOKEN and registers to a server side;
the WeChat small program searches the intelligent equipment at a server side according to the TOKEN;
and the server side returns the information of the intelligent equipment to the wechat applet to complete equipment distribution.
6. The method for distributing the WeChat applet to the intelligent devices according to claim 5, wherein the control end is a mobile phone.
7. A system for distributing a network for intelligent equipment by a WeChat applet is characterized by comprising:
the control end is connected with a target network through a WeChat applet;
the target network connection module is used for initializing the intelligent equipment and enabling the intelligent equipment to be in an AP mode;
the selection module is used for selecting the name of the target network connected with the control terminal by the WeChat applet and inputting a password;
the distribution network TOKEN sending module is used for sending a request distribution network TOKEN to the intelligent equipment by the wechat applet;
the local area network connection module is used for connecting the WeChat applet with a local area network of the intelligent device through a wx.connectWifi interface;
the network packet sending module is used for sending the encrypted UDP network packet to the intelligent equipment by the WeChat applet through a UDP interface;
the distribution network information sending module is used for sending distribution network information required by connection of the target network through the local area network by the WeChat small program;
the network switching module is used for switching the network mode of the intelligent equipment, connecting the intelligent equipment to a network and completing configuration;
the registration module is used for connecting the WeChat applet with the target network through the wx.connectWifi interface, sending a TOKEN and registering the TOKEN to a server side;
the searching module is used for searching the intelligent equipment at a server side by the WeChat applet according to the TOKEN;
and the information returning module is used for returning the information of the intelligent equipment to the wechat applet by the server side to complete equipment distribution.
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.
CN202010933238.5A 2020-09-08 2020-09-08 Method and system for distributing network to intelligent equipment by WeChat small program Pending CN112165726A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010933238.5A CN112165726A (en) 2020-09-08 2020-09-08 Method and system for distributing network to intelligent equipment by WeChat small program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010933238.5A CN112165726A (en) 2020-09-08 2020-09-08 Method and system for distributing network to intelligent equipment by WeChat small program

Publications (1)

Publication Number Publication Date
CN112165726A true CN112165726A (en) 2021-01-01

Family

ID=73859190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010933238.5A Pending CN112165726A (en) 2020-09-08 2020-09-08 Method and system for distributing network to intelligent equipment by WeChat small program

Country Status (1)

Country Link
CN (1) CN112165726A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113453300A (en) * 2021-06-28 2021-09-28 青岛海尔科技有限公司 Equipment hotspot processing method and device, storage medium and electronic device
CN113747415A (en) * 2021-09-14 2021-12-03 青岛海尔科技有限公司 Connection method and device for wireless access point, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110943835A (en) * 2019-12-12 2020-03-31 杭州涂鸦信息技术有限公司 Distribution network encryption method and system for sending wireless local area network information
CN111010323A (en) * 2019-12-24 2020-04-14 杭州涂鸦信息技术有限公司 Network distribution method and system of intelligent equipment
CN111371657A (en) * 2018-12-26 2020-07-03 九阳股份有限公司 Network configuration method and system of intelligent household appliance and intelligent household appliance
CN111556500A (en) * 2020-05-11 2020-08-18 南昌傲亚信息有限公司 Technology for distributing network and authenticating WiFi (wireless fidelity) of equipment through WeChat applet

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111371657A (en) * 2018-12-26 2020-07-03 九阳股份有限公司 Network configuration method and system of intelligent household appliance and intelligent household appliance
CN110943835A (en) * 2019-12-12 2020-03-31 杭州涂鸦信息技术有限公司 Distribution network encryption method and system for sending wireless local area network information
CN111010323A (en) * 2019-12-24 2020-04-14 杭州涂鸦信息技术有限公司 Network distribution method and system of intelligent equipment
CN111556500A (en) * 2020-05-11 2020-08-18 南昌傲亚信息有限公司 Technology for distributing network and authenticating WiFi (wireless fidelity) of equipment through WeChat applet

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113453300A (en) * 2021-06-28 2021-09-28 青岛海尔科技有限公司 Equipment hotspot processing method and device, storage medium and electronic device
CN113747415A (en) * 2021-09-14 2021-12-03 青岛海尔科技有限公司 Connection method and device for wireless access point, storage medium and electronic device
CN113747415B (en) * 2021-09-14 2024-03-22 青岛海尔科技有限公司 Connection method and device of wireless access point, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN111052711B (en) Method for discovering services provided by a network repository function
CN112738805B (en) Device control method and apparatus, storage medium, and electronic device
CN108024270B (en) Information sending method, unit and system
CN109361638B (en) Method, system and storage medium for sharing control authority of intelligent device
CN106375442B (en) Method and device for cross-platform management of equipment information
CN108141724A (en) For the virtual user identification module of mobile communication equipment
CN104919758A (en) Information centric networking based service centric networking
CN109756896A (en) A kind of information processing method, the network equipment and computer readable storage medium
CN112165726A (en) Method and system for distributing network to intelligent equipment by WeChat small program
WO2018228387A1 (en) Communication method, device and system, non-transitory computer readable storage medium, computer program product and electronic device
CN104168165A (en) Access control method and device based on GPRS network and integrated identification network
CN104243266A (en) Method and device for network access
CN105472597B (en) Application registration method and device
CN112533177A (en) Method, device, apparatus and medium for providing and discovering moving edge calculation
US20170201875A1 (en) Device-to-device content providing method
CN111431818B (en) Cross-domain request flow distribution method and device, storage medium and computer equipment
CN113438314A (en) Equipment control method and device, storage medium and electronic device
CN114745724A (en) Access processing method and device, electronic equipment and computer readable medium
CN109729139A (en) Access request retransmission method, device, equipment and readable storage medium storing program for executing
CN103916444A (en) Method for displaying number information through cloud model
CN114221959A (en) Service sharing method, device and system
CN109040050A (en) Data interactive method and Related product
CN110474891A (en) Business access control method and device based on multisystem smart machine
CN110198540A (en) Authentication method and device
CN110493886A (en) Wireless network connecting method, device, electronic equipment and medium

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: 20210101

RJ01 Rejection of invention patent application after publication