CN110798355A - Network distribution method and device for intelligent socket, intelligent socket and storage medium - Google Patents

Network distribution method and device for intelligent socket, intelligent socket and storage medium Download PDF

Info

Publication number
CN110798355A
CN110798355A CN201911066546.6A CN201911066546A CN110798355A CN 110798355 A CN110798355 A CN 110798355A CN 201911066546 A CN201911066546 A CN 201911066546A CN 110798355 A CN110798355 A CN 110798355A
Authority
CN
China
Prior art keywords
network
distribution
intelligent socket
broadcast packet
udp broadcast
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
CN201911066546.6A
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.)
Shanghai Mxchip Information Technology Co Ltd
Original Assignee
Shanghai Mxchip 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 Shanghai Mxchip Information Technology Co Ltd filed Critical Shanghai Mxchip Information Technology Co Ltd
Priority to CN201911066546.6A priority Critical patent/CN110798355A/en
Publication of CN110798355A publication Critical patent/CN110798355A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a network distribution method and device for an intelligent socket, the intelligent socket and a computer readable storage medium, wherein the method comprises the following steps: when a distribution network command is received, receiving a first UDP broadcast packet sent by a terminal; wherein the first UDP broadcast packet includes distribution network data; and binding the distribution network data and the equipment identification of the intelligent socket in a server to finish distribution network operation. According to the network distribution method of the intelligent socket, the TCP connection in the related technology is improved into UDP which can transmit data more quickly, the UDP does not have the mechanisms of handshaking, confirmation, window, retransmission, congestion control and the like of the TCP, and the network distribution time is shortened. After the intelligent socket receives the distribution network data through UDP broadcast, the intelligent socket has networking capability, actively binds with the server, does not need to return the equipment identification to the terminal through the router, and solves the problems of packet loss and the like caused by the router in the related technology.

Description

Network distribution method and device for intelligent socket, intelligent socket and storage medium
Technical Field
The application relates to the technical field of smart homes, in particular to a network distribution method and device for a smart socket, the smart socket and a computer readable storage medium.
Background
In the related technology, a terminal needs to obtain an equipment identifier after a TCP (Transmission Control Protocol) connection is successfully established between the terminal and the intelligent socket, and the terminal and a server bind the intelligent socket through the equipment identifier to complete the distribution network.
The intelligent socket needs to send the host address of the TCP connection to the terminal through the router, the router can generate the problems of packet loss, routing compatibility, compatibility of a mobile phone dual-antenna mode and the like, the transmission efficiency is low, and the distribution network success rate is low. In addition, TCP takes too long to establish a connection because it requires three handshakes before transferring data. Meanwhile, the acknowledgement mechanism, the retransmission mechanism, the congestion control mechanism, etc. also consume a part of the time when data is transferred. If the connection of the intelligent socket TCP is opened slowly, the terminal connection TCP can be failed, and therefore the distribution network result is influenced.
Therefore, how to increase the distribution network speed and the success rate of the smart socket is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a network distribution method and device of an intelligent socket, the intelligent socket and a computer readable storage medium, and the network distribution speed and success rate of the intelligent socket are improved.
In order to achieve the above object, the present application provides a network distribution method for an intelligent socket, including:
be applied to smart jack, include:
when a distribution network command is received, receiving a first UDP broadcast packet sent by a terminal; wherein the first UDP broadcast packet includes distribution network data;
and binding the distribution network data and the equipment identification of the intelligent socket in a server to finish distribution network operation.
Wherein, still include:
and when the first UDP broadcast packet is successfully received, sending a second UDP broadcast packet containing confirmation information, so that the terminal detects the binding state of the intelligent socket after receiving the second UDP broadcast packet.
The first UDP broadcast packet is specifically a UDP broadcast packet sent every preset time interval when the terminal receives a distribution network request.
Wherein, when receiving the distribution network command, the receiving terminal sends a first UDP broadcast packet, including:
when a key on the intelligent socket is triggered, receiving a first UDP broadcast packet sent by a terminal; wherein the keys comprise physical keys or touch keys.
The distribution network data comprises a password of a target network, account information for logging in the terminal and a token corresponding to the intelligent socket, and the distribution network data and the equipment identifier of the intelligent socket are bound in a server to complete distribution network operation, wherein the distribution network data comprises:
connecting the target network by using the password of the target network;
and sending the account information, the token and the equipment identifier of the intelligent socket to the server through the target network so as to bind the account information, the token and the intelligent socket in the server.
In order to achieve the above object, the present application provides a network distribution device for a smart jack, including:
be applied to smart jack, include:
the receiving module is used for receiving a first UDP broadcast packet sent by a terminal when a distribution network command is received; wherein the first UDP broadcast packet includes distribution network data;
and the binding module is used for binding the distribution network data and the equipment identifier of the intelligent socket in a server to complete distribution network operation.
Wherein, still include:
and the return module is used for sending a second UDP broadcast packet containing confirmation information after the first UDP broadcast packet is successfully received, so that the terminal can detect the binding state of the intelligent socket after receiving the second UDP broadcast packet.
The distribution network data comprises a password of a target network, account information for logging in the terminal and a token corresponding to the intelligent socket, and the binding module comprises:
a connection unit for connecting the target network using the password of the target network;
a sending unit, configured to send the account information, the token, and the device identifier of the smart socket to the server through the target network, so as to bind the account information, the token, and the smart socket in the server.
To achieve the above object, the present application provides a smart jack, comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of the network distribution method of the intelligent socket when executing the computer program.
To achieve the above object, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the network distribution method of the smart socket as described above.
According to the scheme, the network distribution method of the intelligent socket comprises the following steps: when a distribution network command is received, receiving a first UDP broadcast packet sent by a terminal; wherein the first UDP broadcast packet includes distribution network data; and binding the distribution network data and the equipment identification of the intelligent socket in a server to finish distribution network operation.
According to the network distribution method of the intelligent socket, the TCP connection in the related technology is improved into UDP (User Datagram Protocol, Chinese full name) which can transmit data more quickly, the UDP does not have the mechanisms of handshaking, confirming, window, retransmission, congestion control and the like of the TCP, and the network distribution time is shortened. After the intelligent socket receives the distribution network data through UDP broadcast, the intelligent socket has networking capability, actively binds with the server, does not need to return the equipment identification to the terminal through the router, and solves the problems of packet loss and the like caused by the router in the related technology. Therefore, the network distribution method of the intelligent socket improves the network distribution speed and the success rate of the intelligent socket. The application also discloses a distribution network device of the intelligent socket, the intelligent socket and a computer readable storage medium, and the technical effects can be realized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
fig. 1 is a flowchart illustrating a network distribution method for a smart socket according to an exemplary embodiment;
fig. 2 is a flow chart illustrating another method for configuring a network for a smart jack according to an example embodiment;
fig. 3 is a block diagram of a network distribution device of a smart jack, according to an example embodiment;
fig. 4 is a block diagram illustrating a smart jack according to an exemplary embodiment.
Detailed Description
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 a part of the embodiments of the present application, and not all of the 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.
In the related art, the network distribution process of the smart socket is as follows: after the intelligent socket opens the AWS distribution network, the user selects WiFi to be connected on APP of the terminal and inputs a password. The terminal sends the WiFi and the password to the intelligent socket, and the intelligent socket returns the host address of the TCP connection. The APP utilizes the host address to be connected with the intelligent socket in a TCP mode, after the connection is successful, the APP sends a TCP package to the intelligent socket, the intelligent socket returns a back package containing the equipment identification, and the APP and the cloud server utilize the equipment identification to carry out equipment binding on the intelligent socket.
The smart socket needs to send the host address of the TCP connection to the terminal through the broadcast of the router, and the router generates packet loss, routing compatibility, compatibility of a mobile phone dual-antenna mode and the like, so that the transmission efficiency is low, and the distribution network success rate is low. In addition, the data transmission mechanism for establishing the TCP connection and the TCP consumes a long time, resulting in a slow distribution network speed.
Therefore, in the application, data are transmitted between the terminal and the intelligent socket by adopting UDP broadcast, and the time of a distribution network is shortened. After the intelligent socket receives the distribution network data through UDP broadcast, equipment binding operation is actively carried out on the intelligent socket and the server, and the distribution network success rate is improved.
The embodiment of the application discloses a network distribution method of an intelligent socket, which improves the network distribution speed and success rate of the intelligent socket.
Referring to fig. 1, a flowchart of a network distribution method for a smart socket according to an exemplary embodiment is shown, as shown in fig. 1, including:
s101: when a distribution network command is received, receiving a first UDP broadcast packet sent by a terminal; wherein the first UDP broadcast packet includes distribution network data;
the execution main body of this embodiment is smart jack, and after the smart jack opened the AWS and joined in marriage the net, the user selected the wiFi that needs to connect on the APP at terminal to input the password. Preferably, a key can be arranged on the smart socket for triggering the AWS distribution network, that is, the step includes: when a key on the intelligent socket is triggered, receiving a first UDP broadcast packet sent by a terminal; wherein the keys comprise physical keys or touch keys.
After the user clicks connection, the terminal sends a first UDP broadcast packet including distribution network data every other preset time, that is, the first UDP broadcast packet in this step is specifically a UDP broadcast packet sent every other preset time when the terminal receives a distribution network request. For example, the first UDP broadcast packet containing the distribution network data is transmitted every 1.5 seconds.
The distribution network data comprises a password of a target network, account information for logging in the terminal and a token corresponding to the intelligent socket, the password is used for connecting the intelligent socket with the target network, the account information is used for binding the intelligent socket and the terminal, and the token is used for communication between the intelligent socket and the terminal in the subsequent process.
Preferably, this embodiment further includes: and when the first UDP broadcast packet is successfully received, sending a second UDP broadcast packet containing confirmation information, so that the terminal detects the binding state of the intelligent socket after receiving the second UDP broadcast packet. In specific implementation, after receiving the first UDP broadcast packet, the smart socket returns a second UDP broadcast packet to the terminal, and after receiving the second UDP broadcast packet, the terminal stops sending the first UDP broadcast packet, disconnects UDP connection with the smart socket, releases resources, and starts polling the server to detect the binding state of the smart socket. For example, http (full name of Chinese: HyperText Transfer Protocol, full name of English: HyperText Transfer Protocol) polling operation is performed to the server every 1.5 seconds, and whether the binding of the smart socket is successful is checked.
It can be understood that, in the above scheme, the terminal starts two UDP packets, one for sending the first UDP broadcast packet containing the distribution network data every preset time period, and the other for receiving the second UDP broadcast packet containing the acknowledgement information.
S102: and binding the distribution network data and the equipment identification of the intelligent socket in a server to finish distribution network operation.
In this step, since the smart socket has already had networking capability after receiving the distribution network data, the smart socket actively performs device binding operation with the server by using the distribution network data and the device identifier of the smart socket.
Preferably, the present step comprises: connecting the target network by using the password of the target network; and sending the account information, the token and the equipment identifier of the intelligent socket to the server through the target network so as to bind the account information, the token and the intelligent socket in the server. In specific implementation, the intelligent socket is connected with a target network by using a password in distribution network data to complete distribution network. The account information of the terminal and the equipment identification of the terminal are bound at the server side, the token is stored in the server, and the corresponding relation between the token and the equipment identification is established so as to facilitate subsequent communication.
According to the network distribution method of the intelligent socket, the TCP connection in the related technology is improved into UDP which can transmit data more quickly, the UDP does not have the mechanisms of handshaking, confirmation, window, retransmission, congestion control and the like of the TCP, and the network distribution time is shortened. After the intelligent socket receives the distribution network data through UDP broadcast, the intelligent socket has networking capability, actively binds with the server, does not need to return the equipment identification to the terminal through the router, and solves the problems of packet loss and the like caused by the router in the related technology. Therefore, the network distribution method of the intelligent socket improves the network distribution speed and the success rate of the intelligent socket.
The embodiment of the application discloses a network distribution method of an intelligent socket, and compared with the previous embodiment, the embodiment further describes and optimizes the technical scheme. Specifically, the method comprises the following steps:
referring to fig. 2, a flowchart of another network distribution method for a smart socket according to an exemplary embodiment is shown, and as shown in fig. 2, the method includes:
s201: when a key on the intelligent socket is triggered, receiving a first UDP broadcast packet sent by a terminal; wherein the keys comprise physical keys or touch keys.
In this embodiment, when receiving a distribution network request, a terminal sends a first UDP broadcast packet every preset time, where the first UDP broadcast packet includes distribution network data, and the distribution network data includes a password of a target network, account information for logging in the terminal, and a token corresponding to the smart socket.
S202: and when the first UDP broadcast packet is successfully received, sending a second UDP broadcast packet containing confirmation information, so that the terminal detects the binding state of the intelligent socket after receiving the second UDP broadcast packet.
S203: connecting the target network by using the password of the target network;
s204: and sending the account information, the token and the equipment identifier of the intelligent socket to the server through the target network so as to bind the account information, the token and the intelligent socket in the server.
The terminal of the embodiment does not rely on the returned equipment identifier to perform distribution network operation any more, but simultaneously starts 2 UDP, one is specially used for sending a UDP broadcast packet containing distribution network data to the intelligent socket, and the other is used for receiving information about whether the connection is successful, the TCP connection in the related technology is improved into UDP with faster data transmission, and the UDP does not have the mechanisms of TCP handshaking, confirmation, window, retransmission, congestion control and the like, so that the distribution network time is shortened. After the intelligent socket receives the distribution network data through UDP broadcast, the intelligent socket has networking capability, actively binds with the server, does not need to return the equipment identification to the terminal through the router, and solves the problems of packet loss and the like caused by the router in the related technology. The terminal only needs to be responsible for polling operation with the server so as to detect whether the smart socket is successfully bound. Therefore, the distribution success rate is improved and the distribution time is shortened.
An application embodiment of the application is introduced below, the smart socket engineering product scheme adopts an Aliyun AI background system and an Internet of things chip to realize functions such as socket remote mobile phone control and near-field voice control, and students can use the smart socket as a template to quickly develop engineering smart sockets capable of being sold in mass production and other derivatives of the smart sockets. The student is helped to realize the quick innovation of the product, and an engineered product foundation is laid for entrepreneurial.
The intelligent socket comprises an EMW3080Wi-Fi module, a switch driving unit, a power management unit, a voice control end, a teaching and training management platform, an Aliyun voice AI, an H5 development tool and an MxLab development framework, and has remote operation functions of a remote switch, a local countdown, power-off protection, cloud reservation, an LED switch and the like.
The cloud server provides a strategy making and scene application control function for accessing the networked intelligent terminal in a full-house intelligent scene, students and teachers can be used for researching and learning a system principle executed by a cloud end, and the students and the teachers can perform corresponding secondary development on the cloud service.
The strategy sent from the cloud server is controlled and executed by the edge terminal, and students and teachers can study and learn the corresponding protocol principle aiming at the gateways with different protocols. Through corresponding development kits, students and teachers can carry out secondary development on the edge gateway.
The equipment end is used for specifically executing specified operation of the cloud issuing strategy, and a series of operations such as switching on and off of the socket, remote switching on and off, local countdown, power-off protection, cloud reservation and LED switching are achieved. Students and teachers can develop single products of the intelligent socket based on the development board.
The scheme belongs to an embedded wireless intelligent distribution network technology and is used for optimizing the flow of an AWS mode distribution network based on an easy Link distribution network mode. According to the scheme, the distribution network is not carried out in a mode of obtaining returned data to carry out TCP connection after the easy link connection is successful, the UDP broadcast packet of every 1.5 seconds is started and the UDP packet is started to receive the packets while the easy link connection is carried out, and the intelligent socket actively carries out equipment binding operation with the server to improve the distribution network speed.
In the following, a network distribution device of a smart jack provided by an embodiment of the present application is introduced, and a network distribution device of a smart jack described below and a network distribution method of a smart jack described above may refer to each other.
Referring to fig. 3, a block diagram of a distribution network device of a smart socket according to an exemplary embodiment is shown, and as shown in fig. 3, the distribution network device includes:
the receiving module 301 is configured to receive a first UDP broadcast packet sent by a terminal when a distribution network command is received; wherein the first UDP broadcast packet includes distribution network data;
and a binding module 302, configured to bind, in a server, the distribution network data and the device identifier of the smart socket, so as to complete distribution network operation.
According to the distribution network device of the intelligent socket, the TCP connection in the related technology is improved into UDP which can transmit data more quickly, the UDP does not have the mechanisms of handshaking, confirmation, window, retransmission, congestion control and the like of the TCP, and the distribution network time is shortened. After the intelligent socket receives the distribution network data through UDP broadcast, the intelligent socket has networking capability, actively binds with the server, does not need to return the equipment identification to the terminal through the router, and solves the problems of packet loss and the like caused by the router in the related technology. Therefore, the distribution network device of the intelligent socket improves the distribution network speed and the success rate of the intelligent socket.
On the basis of the above embodiment, as a preferred implementation, the method further includes:
and the return module is used for sending a second UDP broadcast packet containing confirmation information after the first UDP broadcast packet is successfully received, so that the terminal can detect the binding state of the intelligent socket after receiving the second UDP broadcast packet.
On the basis of the foregoing embodiment, as a preferred implementation manner, the first UDP broadcast packet is specifically a UDP broadcast packet that is sent every preset time interval when the terminal receives a distribution network request.
On the basis of the foregoing embodiment, as a preferred implementation manner, the receiving module 301 is specifically a module that receives a first UDP broadcast packet sent by a terminal when a key on the smart socket is triggered; wherein the keys comprise physical keys or touch keys.
On the basis of the foregoing embodiment, as a preferred implementation manner, the distribution network data includes a password of a target network, account information for logging in the terminal, and a token corresponding to the smart socket, and the binding module 302 includes:
a connection unit for connecting the target network using the password of the target network;
a sending unit, configured to send the account information, the token, and the device identifier of the smart socket to the server through the target network, so as to bind the account information, the token, and the smart socket in the server.
The present application also provides a smart socket, and referring to fig. 4, a structure diagram of a smart socket 400 provided in an embodiment of the present application, as shown in fig. 4, may include a processor 11 and a memory 12. The smart jack 400 may also include one or more of a multimedia component 13, an input/output (I/O) interface 14, and a communications component 15.
The processor 11 is configured to control the overall operation of the smart socket 400, so as to complete all or part of the above-mentioned steps in the network distribution method. The memory 12 is used to store various types of data to support operation at the smart jack 400, which may include, for example, instructions for any application or method operating on the smart jack 400, as well as application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and so forth. The Memory 12 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia component 13 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 12 or transmitted via the communication component 15. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 14 provides an interface between the processor 11 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 15 is used for wired or wireless communication between the smart socket 400 and other devices. Wireless communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so that the corresponding communication component 15 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the smart socket 400 may be implemented by 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), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described network distribution method.
In another exemplary embodiment, a computer readable storage medium comprising program instructions which, when executed by a processor, implement the steps of the above-described distribution network method is also provided. For example, the computer readable storage medium may be the memory 12 described above including program instructions that are executable by the processor 11 of the smart socket 400 to perform the network distribution method described above.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A network distribution method of an intelligent socket is applied to the intelligent socket and comprises the following steps:
when a distribution network command is received, receiving a first UDP broadcast packet sent by a terminal; wherein the first UDP broadcast packet includes distribution network data;
and binding the distribution network data and the equipment identification of the intelligent socket in a server to finish distribution network operation.
2. The network distribution method according to claim 1, further comprising:
and when the first UDP broadcast packet is successfully received, sending a second UDP broadcast packet containing confirmation information, so that the terminal detects the binding state of the intelligent socket after receiving the second UDP broadcast packet.
3. The network distribution method according to claim 1, wherein the first UDP broadcast packet is a UDP broadcast packet that is sent every preset time interval when the terminal receives the network distribution request.
4. The network distribution method according to claim 1, wherein the receiving a first UDP broadcast packet sent by a terminal when receiving the distribution network command comprises:
when a key on the intelligent socket is triggered, receiving a first UDP broadcast packet sent by a terminal; wherein the keys comprise physical keys or touch keys.
5. The network distribution method according to any one of claims 1 to 4, wherein the network distribution data includes a password of a target network, account information for logging in the terminal, and a token corresponding to the smart socket, and the network distribution operation is completed by binding the network distribution data and the device identifier of the smart socket in a server, including:
connecting the target network by using the password of the target network;
and sending the account information, the token and the equipment identifier of the intelligent socket to the server through the target network so as to bind the account information, the token and the intelligent socket in the server.
6. The utility model provides a net device is joined in marriage to smart jack which characterized in that is applied to smart jack, includes:
the receiving module is used for receiving a first UDP broadcast packet sent by a terminal when a distribution network command is received; wherein the first UDP broadcast packet includes distribution network data;
and the binding module is used for binding the distribution network data and the equipment identifier of the intelligent socket in a server to complete distribution network operation.
7. The distribution network device of claim 6, further comprising:
and the return module is used for sending a second UDP broadcast packet containing confirmation information after the first UDP broadcast packet is successfully received, so that the terminal can detect the binding state of the intelligent socket after receiving the second UDP broadcast packet.
8. The distribution network device according to any one of claims 6 or 7, wherein the distribution network data includes a password of a target network, account information for logging in the terminal, and a token corresponding to the smart socket, and the binding module includes:
a connection unit for connecting the target network using the password of the target network;
a sending unit, configured to send the account information, the token, and the device identifier of the smart socket to the server through the target network, so as to bind the account information, the token, and the smart socket in the server.
9. A smart jack, comprising:
a memory for storing a computer program;
processor for implementing the steps of the network distribution method of the smart socket according to any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for network distribution of a smart socket according to any one of claims 1 to 5.
CN201911066546.6A 2019-11-04 2019-11-04 Network distribution method and device for intelligent socket, intelligent socket and storage medium Pending CN110798355A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911066546.6A CN110798355A (en) 2019-11-04 2019-11-04 Network distribution method and device for intelligent socket, intelligent socket and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911066546.6A CN110798355A (en) 2019-11-04 2019-11-04 Network distribution method and device for intelligent socket, intelligent socket and storage medium

Publications (1)

Publication Number Publication Date
CN110798355A true CN110798355A (en) 2020-02-14

Family

ID=69442582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911066546.6A Pending CN110798355A (en) 2019-11-04 2019-11-04 Network distribution method and device for intelligent socket, intelligent socket and storage medium

Country Status (1)

Country Link
CN (1) CN110798355A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112040530A (en) * 2020-08-04 2020-12-04 华帝股份有限公司 Intelligent device network distribution method and system, electronic device and readable storage medium
CN113098976A (en) * 2021-04-20 2021-07-09 深圳市康冠科技股份有限公司 IOT equipment network distribution method and device and computer storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104936304A (en) * 2015-06-01 2015-09-23 小米科技有限责任公司 Intelligent equipment binding method, intelligent equipment, and server
CN107645496A (en) * 2017-08-29 2018-01-30 上海斐讯数据通信技术有限公司 A kind of distribution method and system of intelligent electronic device
US20180139088A1 (en) * 2015-05-18 2018-05-17 Espressif Systems (Shanghai) Pte. Ltd. Compatibility Configuration Method and System for Internet of Things Device
CN108449770A (en) * 2018-04-04 2018-08-24 上海网互物联网科技有限公司 A kind of Intelligent hardware Wifi matches net mode
CN109905318A (en) * 2019-03-28 2019-06-18 腾讯科技(深圳)有限公司 Apparatus control method, device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180139088A1 (en) * 2015-05-18 2018-05-17 Espressif Systems (Shanghai) Pte. Ltd. Compatibility Configuration Method and System for Internet of Things Device
CN104936304A (en) * 2015-06-01 2015-09-23 小米科技有限责任公司 Intelligent equipment binding method, intelligent equipment, and server
CN107645496A (en) * 2017-08-29 2018-01-30 上海斐讯数据通信技术有限公司 A kind of distribution method and system of intelligent electronic device
CN108449770A (en) * 2018-04-04 2018-08-24 上海网互物联网科技有限公司 A kind of Intelligent hardware Wifi matches net mode
CN109905318A (en) * 2019-03-28 2019-06-18 腾讯科技(深圳)有限公司 Apparatus control method, device and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
网友: "IoT时代:Wi-Fi"配网"技术剖析总结", 《HTTPS://WWW.LIANGZL.COM/GET-ARTICLE-DETAIL-142002.HTML》 *
网友: "smartConfig(一键配网模式)", 《简书》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112040530A (en) * 2020-08-04 2020-12-04 华帝股份有限公司 Intelligent device network distribution method and system, electronic device and readable storage medium
CN113098976A (en) * 2021-04-20 2021-07-09 深圳市康冠科技股份有限公司 IOT equipment network distribution method and device and computer storage medium

Similar Documents

Publication Publication Date Title
WO2018126853A1 (en) Data transmission method and apparatus
KR101902159B1 (en) How SmartWatch and WiChat Platform talk, devices and smart watch
CN104333844A (en) Interconnection method of vehicle-mounted terminal and smart phone
CN109547306A (en) A kind of smart home device management method, system, intelligent gateway and server
EP2806613A1 (en) Wireless routing device, mobile terminal, and management system and method
CN110505640B (en) Device binding processing method, device and system, to-be-configured network device and terminal
CN103873342A (en) Method, terminal and system for joining social group
US9836958B2 (en) Device control method, server, system and computer storage medium
CN102638789B (en) Method for establishing point-to-point transmission and mobile communication system
CN110798355A (en) Network distribution method and device for intelligent socket, intelligent socket and storage medium
CN104243281A (en) Voice communication method based on mobile Internet
CN103237024A (en) Data conversion transmission method between TCP/IP (transmission control protocol/Internet protocol) and NDN (named data networking) protocol
CN112383612B (en) File transmission method, device, equipment and readable storage medium
CN103812900A (en) Data synchronization method, device and system
CN109981360A (en) Internet of things equipment website activating method, device, system and storage medium
CN105245556A (en) Intelligent mobile phone remote control method and device
CN110808980A (en) Network distribution method and system of intelligent lamp, intelligent lamp and storage medium
CN101888607A (en) Method for realizing mobile phone chats based on widget and mobile phone
CN103001948B (en) Method and system for controlling computer terminal by handheld device through scan codes
CN105812413A (en) Communication method and device
CN102932470B (en) Handheld device controls the method and system of computer terminal
WO2016101652A1 (en) Method, server, terminal, and system for remote assistance configuration
CN107302478A (en) The long-range control method and system of a kind of smart home
WO2012175024A1 (en) Method, system and device for realizing concurrency of wireless data transmission and short message transceiving
CN105722244A (en) Information processing method and electronic device

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

Application publication date: 20200214