CN110808980A - Network distribution method and system of intelligent lamp, intelligent lamp and storage medium - Google Patents

Network distribution method and system of intelligent lamp, intelligent lamp and storage medium Download PDF

Info

Publication number
CN110808980A
CN110808980A CN201911065987.4A CN201911065987A CN110808980A CN 110808980 A CN110808980 A CN 110808980A CN 201911065987 A CN201911065987 A CN 201911065987A CN 110808980 A CN110808980 A CN 110808980A
Authority
CN
China
Prior art keywords
distribution network
distribution
network
intelligent lamp
broadcast packet
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
CN201911065987.4A
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 CN201911065987.4A priority Critical patent/CN110808980A/en
Publication of CN110808980A publication Critical patent/CN110808980A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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]
    • 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 Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application discloses a network distribution method and system for an intelligent lamp, and an intelligent lamp and a computer readable storage medium, wherein the system comprises: the terminal is used for sending first UDP broadcast packets every preset time length when receiving a distribution network request; wherein the first UDP broadcast packet includes distribution network data; the intelligent lamp is used for receiving the first UDP broadcast packet when a distribution network command is received, finishing distribution network operation by using the distribution network data and sending the distribution network data and the equipment identification of the intelligent lamp to the server; and the server is used for binding the intelligent lamp by utilizing the distribution network data and the equipment identifier. Therefore, the distribution network system of the intelligent lamp improves the distribution network speed and the success rate of the intelligent lamp.

Description

Network distribution method and system of intelligent lamp, intelligent lamp and storage medium
Technical Field
The application relates to the technical field of smart homes, in particular to a network distribution method and system of a smart lamp, the smart lamp 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 with the intelligent lamp, and the terminal and a server bind the intelligent lamp through the equipment identifier to complete the distribution network.
The intelligent lamp 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 lamp TCP is started 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 intelligent lamp 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 system of an intelligent lamp, the intelligent lamp and a computer readable storage medium, and the network distribution speed and success rate of the intelligent lamp are improved.
In order to achieve the above object, the present application provides a network distribution system of intelligent lamps, including:
the terminal is used for sending first UDP broadcast packets every preset time length when receiving a distribution network request; wherein the first UDP broadcast packet includes distribution network data;
the intelligent lamp is used for receiving the first UDP broadcast packet when a distribution network command is received, finishing distribution network operation by using the distribution network data and sending the distribution network data and the equipment identification of the intelligent lamp to the server;
and the server is used for binding the intelligent lamp by utilizing the distribution network data and the equipment identifier.
The intelligent lamp is further used for sending a second UDP broadcast packet containing confirmation information after the first UDP broadcast packet is successfully received;
the terminal is further used for detecting 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 lamp;
the intelligent lamp is used for connecting the target network by using the password of the target network so as to complete the operation of distribution network, and the account information, the token and the equipment identification of the intelligent lamp are sent to the server by using the target network;
the server is used for binding the account information, the token and the intelligent lamp.
In order to achieve the above object, the present application provides a network distribution method for intelligent lamps, including:
when a distribution network command is received, receiving a first UDP broadcast packet sent by a terminal; the first UDP broadcast packet is specifically a UDP broadcast packet which is sent by the terminal every preset time length and comprises distribution network data when the terminal receives a distribution network request;
and completing distribution network operation by using the distribution network data, and sending the distribution network data and the equipment identifier of the distribution network data and the equipment identifier to a server so that the server can bind the intelligent lamp by using the distribution network data and the equipment identifier.
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 lamp after receiving the second UDP broadcast packet.
Wherein, when receiving the distribution network command, the receiving terminal sends a first UDP broadcast packet, including:
when a key on the intelligent lamp 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 comprise a password of a target network, account information for logging in the terminal and a token corresponding to the intelligent lamp.
The method for completing distribution network operation by using the distribution network data and sending the distribution network data and the equipment identifier of the server to the server so that the server can bind the intelligent lamp by using the distribution network data and the equipment identifier comprises the following steps:
connecting the target network by using the password of the target network so as to complete the operation of the distribution network;
and sending the account information, the token and the equipment identifier of the intelligent lamp to the server through the target network so that the server can bind the account information, the token and the intelligent lamp.
To achieve the above object, the present application provides an intelligent lamp, 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 lamp 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 for the intelligent lamp.
According to the scheme, the distribution network system of the intelligent lamp comprises: the terminal is used for sending first UDP broadcast packets every preset time length when receiving a distribution network request; wherein the first UDP broadcast packet includes distribution network data; the intelligent lamp is used for receiving the first UDP broadcast packet when a distribution network command is received, finishing distribution network operation by using the distribution network data and sending the distribution network data and the equipment identification of the intelligent lamp to the server; and the server is used for binding the intelligent lamp by utilizing the distribution network data and the equipment identifier.
According to the distribution network system of the intelligent lamp, 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 distribution network time is shortened. After the intelligent lamp receives the distribution network data through UDP broadcast, the intelligent lamp has networking capability, actively performs equipment binding operation with the server, does not need to return 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 system of the intelligent lamp improves the distribution network speed and the success rate of the intelligent lamp. The application also discloses a network distribution method of the intelligent lamp, the intelligent lamp 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 block diagram of a distribution network system of smart lights, according to an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a network distribution method for smart lights in accordance with an exemplary embodiment;
FIG. 3 is a block diagram illustrating a smart lamp 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 intelligent lamp is as follows: after the intelligent lamp is started and the AWS distribution network is connected, the user selects WiFi needing to be connected on APP of the terminal and inputs a password. The terminal sends WiFi and password to the intelligent lamp, and the intelligent lamp returns the host address of TCP connection. APP utilizes this host computer address to carry out TCP with the intelligent lamp and is connected, and APP sends TCP package to the intelligent lamp after connecting successfully, and the intelligent lamp returns the package that returns that contains equipment identification, and APP and cloud ware utilize equipment identification to carry out equipment binding to this intelligent lamp.
The intelligent lamp 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, UDP broadcasting is adopted between the terminal and the intelligent lamp to transmit data, and the time of a distribution network is shortened. After the intelligent lamp receives the distribution network data through UDP broadcasting, equipment binding operation is actively carried out on the intelligent lamp and the server, and the distribution network success rate is improved.
The embodiment of the application discloses a distribution network system of an intelligent lamp, and the distribution network speed and the success rate of the intelligent lamp are improved.
Referring to fig. 1, a block diagram of a distribution network system of intelligent lamps according to an exemplary embodiment is shown, as shown in fig. 1, including:
the terminal 100 is configured to send a first UDP broadcast packet every preset time interval when receiving a distribution network request; wherein the first UDP broadcast packet includes distribution network data;
the intelligent lamp 200 is configured to receive the first UDP broadcast packet when receiving a distribution network command, complete distribution network operation by using the distribution network data, and send the distribution network data and the device identifier of the intelligent lamp to the server 300;
the server 300 is configured to bind the smart lamp by using the distribution network data and the device identifier.
In a specific implementation, after the smart lamp 200 turns on the AWS distribution network, the user selects WiFi to be connected on the APP of the terminal 100, and inputs a password. Preferably, a button may be provided on the smart lamp 200, where the button may include a physical button or a touch button, and when the user triggers the button, the AWS distribution network is triggered, and the smart lamp 200 starts to receive the first UDP broadcast packet.
After the user clicks the connection, the terminal 100 sends a first UDP broadcast packet including the distribution network data every preset time. For example, the first UDP broadcast packet containing the distribution network data is transmitted every 1.5 seconds. The distribution network data comprise a password of a target network, account information for logging in the terminal and a token corresponding to the intelligent lamp, the password is used for connecting the intelligent lamp with the target network, the account information is used for binding the intelligent lamp with the terminal, and the token is used for communication between the intelligent lamp and the terminal in the subsequent process.
Preferably, the intelligent lamp 200 is further configured to send a second UDP broadcast packet containing acknowledgement information after the first UDP broadcast packet is successfully received; the terminal 100 is further configured to detect a binding state of the smart lamp after receiving the second UDP broadcast packet.
In a specific implementation, after receiving the first UDP broadcast packet, the smart lamp 200 returns a second UDP broadcast packet to the terminal 200, and after receiving the second UDP broadcast packet, the terminal 100 stops sending the first UDP broadcast packet, disconnects UDP connection with the smart lamp 200, releases resources, and starts polling the server 300 to detect the binding state of the smart lamp. 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 intelligent lamp is successfully bound is checked.
It can be understood that, in the above solution, the terminal 100 turns on 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.
The intelligent lamp has networking capability after receiving the distribution network data, and actively performs equipment binding operation with the server by using the distribution network data and the equipment identifier of the intelligent lamp. Preferably, the smart lamp is used for connecting the target network by using a password of the target network so as to complete the operation of the distribution network, and sending the account information, the token and the own equipment identifier to the server by using the target network; the server is used for binding the account information, the token and the intelligent lamp. 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.
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.
The embodiment of the application discloses a network distribution method of an intelligent lamp, which improves the network distribution speed and success rate of the intelligent lamp.
Referring to fig. 2, a flowchart of a network distribution method for intelligent lamps according to an exemplary embodiment is shown, and as shown in fig. 2, the method includes:
s101: when a distribution network command is received, receiving a first UDP broadcast packet sent by a terminal; the first UDP broadcast packet is specifically a UDP broadcast packet which is sent by the terminal every preset time length and comprises distribution network data when the terminal receives a distribution network request;
s102: and completing distribution network operation by using the distribution network data, and sending the distribution network data and the equipment identifier of the distribution network data and the equipment identifier to a server so that the server can bind the intelligent lamp by using the distribution network data and the equipment identifier.
On the basis of the above embodiment, as a preferred implementation, the method 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 lamp after receiving the second UDP broadcast packet.
On the basis of the foregoing embodiment, as a preferred implementation manner, when receiving the distribution network command, the receiving a first UDP broadcast packet sent by a terminal includes:
when a key on the intelligent lamp is triggered, receiving a first UDP broadcast packet sent by a terminal; wherein the keys comprise physical keys or touch keys.
On the basis of the above 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 lamp.
On the basis of the foregoing embodiment, as a preferred implementation manner, the completing a distribution network operation by using the distribution network data, and sending the distribution network data and the device identifier of the server to a server, so that the server binds the intelligent lamp by using the distribution network data and the device identifier, includes:
connecting the target network by using the password of the target network so as to complete the operation of the distribution network;
and sending the account information, the token and the equipment identifier of the intelligent lamp to the server through the target network so that the server can bind the account information, the token and the intelligent lamp.
According to the network distribution method of the intelligent lamp, 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 lamp receives the distribution network data through UDP broadcast, the intelligent lamp has networking capability, actively performs equipment binding operation with the server, does not need to return 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 lamp improves the network distribution speed and the success rate of the intelligent lamp.
An application embodiment of the application is introduced below, the intelligent bulb lamp engineering product scheme adopts an Ali cloud AI background system and an Internet of things chip to realize functions of bulb remote mobile phone control, near-field voice control and the like, and students can use the intelligent bulb lamp as a template to quickly develop engineering intelligent bulb lamps which can be sold in mass production and other derivatives of the intelligent bulbs. The student is helped to realize the quick innovation of the product, and an engineered product foundation is laid for entrepreneurial.
The intelligent lamp comprises a light source board, a networking module, a power panel, a transformer and the like, and has the functions of brightness adjustment, color temperature adjustment, color adjustment, remote control, timing control, a time delay 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 teachers can perform corresponding secondary development at the cloud end based on the system.
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, color adjustment, color temperature adjustment, remote control and timing control of the lamp are achieved. Students and teachers can develop single products of the intelligent bulb lamp 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.
The present application also provides a smart lamp, referring to fig. 3, a structure diagram of a smart lamp 200 provided in the embodiment of the present application, as shown in fig. 3, may include a processor 11 and a memory 12. The smart lamp 200 may also include one or more of a multimedia component 13, an input/output (I/O) interface 14, and a communication component 15.
The processor 11 is configured to control the overall operation of the smart lamp 200, so as to complete all or part of the steps in the network distribution method for the smart lamp. The memory 12 is used to store various types of data to support operation at the smart lamp 200, which may include, for example, instructions for any application or method operating on the smart lamp 200, as well as application-related data, such as contact data, messaging, 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 assembly 15 is used for wired or wireless communication between the smart lamp 200 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 lamp 200 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-mentioned network distribution method of the smart lamp.
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 smart light distribution network method is also provided. For example, the computer readable storage medium may be the above-mentioned memory 12 comprising program instructions executable by the processor 11 of the smart lamp 200 to perform the above-mentioned network distribution method of the smart lamp.
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. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, 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 system of intelligent lamps is characterized by comprising:
the terminal is used for sending first UDP broadcast packets every preset time length when receiving a distribution network request; wherein the first UDP broadcast packet includes distribution network data;
the intelligent lamp is used for receiving the first UDP broadcast packet when a distribution network command is received, finishing distribution network operation by using the distribution network data and sending the distribution network data and the equipment identification of the intelligent lamp to the server;
and the server is used for binding the intelligent lamp by utilizing the distribution network data and the equipment identifier.
2. The distribution network system of claim 1, wherein the smart light is further configured to send a second UDP broadcast packet including acknowledgement information after the first UDP broadcast packet is successfully received;
the terminal is further used for detecting the binding state of the intelligent socket after receiving the second UDP broadcast packet.
3. The distribution network system of claim 1, wherein the distribution network data comprises a password of a target network, account information for logging in the terminal, and a token corresponding to the smart lamp;
the intelligent lamp is used for connecting the target network by using the password of the target network so as to complete the operation of distribution network, and the account information, the token and the equipment identification of the intelligent lamp are sent to the server by using the target network;
the server is used for binding the account information, the token and the intelligent lamp.
4. A network distribution method of intelligent lamps is characterized by comprising the following steps:
when a distribution network command is received, receiving a first UDP broadcast packet sent by a terminal; the first UDP broadcast packet is specifically a UDP broadcast packet which is sent by the terminal every preset time length and comprises distribution network data when the terminal receives a distribution network request;
and completing distribution network operation by using the distribution network data, and sending the distribution network data and the equipment identifier of the distribution network data and the equipment identifier to a server so that the server can bind the intelligent lamp by using the distribution network data and the equipment identifier.
5. The network distribution method according to claim 4, 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 lamp after receiving the second UDP broadcast packet.
6. The distribution network method according to claim 4, wherein the receiving of the first UDP broadcast packet sent by the terminal when receiving the distribution network command comprises:
when a key on the intelligent lamp is triggered, receiving a first UDP broadcast packet sent by a terminal; wherein the keys comprise physical keys or touch keys.
7. The network distribution method according to any one of claims 4 to 6, wherein the network distribution data comprises a password of a target network, account information for logging in the terminal, and a token corresponding to the smart lamp.
8. The network distribution method according to claim 7, wherein the completing network distribution operation by using the network distribution data and sending the network distribution data and the device identifier thereof to a server so that the server binds the intelligent lamp by using the network distribution data and the device identifier comprises:
connecting the target network by using the password of the target network so as to complete the operation of the distribution network;
and sending the account information, the token and the equipment identifier of the intelligent lamp to the server through the target network so that the server can bind the account information, the token and the intelligent lamp.
9. A smart lamp, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the network distribution method for the intelligent lamps according to any one of claims 4 to 8 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for network distribution of smart lights according to any one of claims 4 to 8.
CN201911065987.4A 2019-11-04 2019-11-04 Network distribution method and system of intelligent lamp, intelligent lamp and storage medium Pending CN110808980A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911065987.4A CN110808980A (en) 2019-11-04 2019-11-04 Network distribution method and system of intelligent lamp, intelligent lamp and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911065987.4A CN110808980A (en) 2019-11-04 2019-11-04 Network distribution method and system of intelligent lamp, intelligent lamp and storage medium

Publications (1)

Publication Number Publication Date
CN110808980A true CN110808980A (en) 2020-02-18

Family

ID=69501048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911065987.4A Pending CN110808980A (en) 2019-11-04 2019-11-04 Network distribution method and system of intelligent lamp, intelligent lamp and storage medium

Country Status (1)

Country Link
CN (1) CN110808980A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111474859A (en) * 2020-04-02 2020-07-31 深圳创维-Rgb电子有限公司 Control method and device of non-intelligent device and electronic device
CN113630727A (en) * 2021-07-09 2021-11-09 珠海荣邦智能科技有限公司 Intelligent household network distribution method, device, system, electronic equipment and storage medium
CN118573502A (en) * 2024-07-31 2024-08-30 杭州老板电器股份有限公司 Equipment network distribution method, system, electronic equipment and computer readable 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
CN104994073A (en) * 2015-05-29 2015-10-21 北京奇虎科技有限公司 Cell phone terminal, server and account-device linking control and executing method
CN105072012A (en) * 2015-08-14 2015-11-18 四川长虹电器股份有限公司 Quick network access method of intelligent device
US20160241401A1 (en) * 2015-02-13 2016-08-18 Xiaomi Inc. Method and apparatus for binding device
CN107592372A (en) * 2017-11-03 2018-01-16 惠州市物联微电子有限公司 A kind of intelligent wireless lighting control system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160241401A1 (en) * 2015-02-13 2016-08-18 Xiaomi Inc. Method and apparatus for binding device
CN104994073A (en) * 2015-05-29 2015-10-21 北京奇虎科技有限公司 Cell phone terminal, server and account-device linking control and executing method
CN104936304A (en) * 2015-06-01 2015-09-23 小米科技有限责任公司 Intelligent equipment binding method, intelligent equipment, and server
CN105072012A (en) * 2015-08-14 2015-11-18 四川长虹电器股份有限公司 Quick network access method of intelligent device
CN107592372A (en) * 2017-11-03 2018-01-16 惠州市物联微电子有限公司 A kind of intelligent wireless lighting control system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111474859A (en) * 2020-04-02 2020-07-31 深圳创维-Rgb电子有限公司 Control method and device of non-intelligent device and electronic device
CN113630727A (en) * 2021-07-09 2021-11-09 珠海荣邦智能科技有限公司 Intelligent household network distribution method, device, system, electronic equipment and storage medium
CN118573502A (en) * 2024-07-31 2024-08-30 杭州老板电器股份有限公司 Equipment network distribution method, system, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN110912789B (en) Intelligent household Internet of things communication method based on Alicloud IoT Hub platform
CN110808980A (en) Network distribution method and system of intelligent lamp, intelligent lamp and storage medium
EP2883423B1 (en) Timed lighting control
US9906935B2 (en) Bluetooth low energy beacon device and advertising method
CN105898893B (en) Full-duplex communication method for mobile terminal and Internet of things equipment
CN110505640B (en) Device binding processing method, device and system, to-be-configured network device and terminal
WO2008147099A3 (en) Method and apparatus for discovering universal plug and play device using resource information
KR100542368B1 (en) System and method for trivial file transfer protocol including broadcasting function
WO2019041962A1 (en) Smart refrigerator-based networking and control method and system, and smart refrigerator
CN110868707A (en) BLE MESH-based intelligent device network distribution method
US20160300483A1 (en) Device Control Method, Server, System and Computer Storage Medium
WO2017143743A1 (en) Heterogeneous protocol communication method and controller
WO2015000379A1 (en) Method for remotely controlling air conditioner and remote control system for air conditioner
WO2023029815A1 (en) Ad hoc network method and ad hoc network system
CN110798355A (en) Network distribution method and device for intelligent socket, intelligent socket and storage medium
US20160330565A1 (en) Z-wave controller shift in thermostats
CN105376209A (en) Network agent equipment, building monitoring system and method thereof
WO2010148723A1 (en) Telnet method for external terminal and master device, slave device thereof
CN106998501B (en) Television control method and device
WO2013185696A2 (en) Data processing method and device
WO2012175024A1 (en) Method, system and device for realizing concurrency of wireless data transmission and short message transceiving
CN104168302A (en) Device control realizing method, device control realizing system and proxy gateway
CN114500136B (en) Smart home networking method, system, equipment and storage medium
JP2006060464A (en) Wireless network communication control apparatus and network system
CN102035858A (en) Method and device for controlling file breakpoint continuous transmission

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

RJ01 Rejection of invention patent application after publication