CN109348458B - Network access configuration method and device, electronic equipment and network system - Google Patents

Network access configuration method and device, electronic equipment and network system Download PDF

Info

Publication number
CN109348458B
CN109348458B CN201811237830.0A CN201811237830A CN109348458B CN 109348458 B CN109348458 B CN 109348458B CN 201811237830 A CN201811237830 A CN 201811237830A CN 109348458 B CN109348458 B CN 109348458B
Authority
CN
China
Prior art keywords
zigbee
network
electronic equipment
network access
gateway
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811237830.0A
Other languages
Chinese (zh)
Other versions
CN109348458A (en
Inventor
周培锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lumi United Technology Co Ltd
Original Assignee
Lumi United 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 Lumi United Technology Co Ltd filed Critical Lumi United Technology Co Ltd
Priority to CN201811237830.0A priority Critical patent/CN109348458B/en
Publication of CN109348458A publication Critical patent/CN109348458A/en
Application granted granted Critical
Publication of CN109348458B publication Critical patent/CN109348458B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application discloses a network access configuration method, a network access configuration device, electronic equipment and a network system. The method comprises the following steps: the electronic equipment receives a network access instruction, and the network access instruction is sent by the terminal equipment based on a second short-distance wireless protocol different from the ZigBee protocol; responding to the network access instruction, and searching an accessible ZigBee gateway based on a ZigBee protocol; if the ZigBee gateway which can be accessed is searched, the electronic equipment sends a network access request to the ZigBee gateway; the electronic equipment receives ZigBee network information returned by the ZigBee gateway; and the electronic equipment establishes network connection with the ZigBee gateway based on the ZigBee network information. According to the method, the electronic equipment to be added into the ZigBee network can be triggered to be added into the ZigBee network by responding to the network access instruction of the terminal equipment, and the user does not need to repeatedly power on the electronic equipment for triggering, so that the efficiency of adding the electronic equipment into the ZigBee network is improved, the hardware interactivity of the electronic equipment is improved, and the user experience is also improved.

Description

Network access configuration method and device, electronic equipment and network system
Technical Field
The present application relates to the field of network technologies, and in particular, to a network access configuration method and apparatus, an electronic device, and a network system.
Background
ZigBee is a low power consumption local area network protocol based on the IEEE standard. According to international standards, the ZigBee technology is a short-range, low-power consumption wireless communication technology. ZigBee is characterized by short distance, low complexity, self-organization, low power consumption and low data rate. The device is mainly suitable for the fields of automatic control and remote control and can be embedded into various devices. However, the networking process of the existing ZigBee device is also complex, and the user experience is not high.
Disclosure of Invention
In view of the foregoing problems, the present application provides a network access configuration method, device, electronic device, and network system to improve the foregoing problems.
In a first aspect, the present application provides a network access configuration method, which is applied to an electronic device, and the method includes: the electronic equipment receives a network access instruction, and the network access instruction is sent by the terminal equipment based on a second short-distance wireless protocol different from a ZigBee protocol; responding to the network access instruction, and searching an accessible ZigBee gateway based on a ZigBee protocol; if the ZigBee gateway which can be accessed is searched, the electronic equipment sends a network access request to the ZigBee gateway; the electronic equipment receives ZigBee network information returned by the ZigBee gateway; and the electronic equipment establishes network connection with the ZigBee gateway based on the ZigBee network information.
In a second aspect, the present application provides a network access configuration method, which is applied to a terminal device, and the method includes: the terminal equipment sends a ZigBee network information acquisition request to a cloud server; the terminal equipment receives ZigBee network information returned by the cloud server, and the ZigBee network information is prestored by the cloud server; the terminal equipment sends a network access instruction to the electronic equipment to be added into the ZigBee network based on a second short-distance wireless protocol different from the ZigBee protocol, and the network access instruction carries the ZigBee network information, so that the electronic equipment establishes network connection with a ZigBee gateway of the ZigBee network based on the ZigBee network information.
In a third aspect, the present application provides a network access configuration method, which is applied to a ZigBee gateway of a ZigBee network, and the method includes: the ZigBee gateway receives a device code of an electronic device to be added into the ZigBee network, which is sent by a terminal device, wherein the device code is obtained from the electronic device by the terminal device based on a second short-range wireless protocol different from the ZigBee protocol; the ZigBee gateway receives a network access request sent by the electronic equipment; the ZigBee gateway encrypts ZigBee network information of the ZigBee network based on the equipment code; and the ZigBee gateway returns the encrypted ZigBee network information of the ZigBee network to the electronic equipment so that the electronic equipment completes network connection with the ZigBee gateway based on the ZigBee network information.
In a fourth aspect, the present application provides a network access configuration method, where the method includes: the terminal equipment sends a network access instruction based on a second short-distance wireless protocol different from the ZigBee protocol; the electronic equipment receives the network access instruction, responds to the network access instruction and searches an accessible ZigBee gateway based on a ZigBee protocol; if the electronic equipment searches the accessible ZigBee gateway, sending a network access request to the ZigBee gateway; the ZigBee gateway returns ZigBee network information to the electronic equipment; the electronic equipment receives ZigBee network information returned by the ZigBee gateway; and the electronic equipment establishes network connection with the ZigBee gateway based on the ZigBee network information.
In a fifth aspect, the present application provides a network access configuration apparatus, operating on an electronic device, the apparatus including: the instruction receiving unit is used for receiving a network access instruction, and the network access instruction is sent by the terminal equipment based on a second short-distance wireless protocol different from the ZigBee protocol; the equipment searching unit is used for responding to the network access instruction and searching the accessible ZigBee gateway based on the ZigBee protocol; the network access request unit is used for sending a network access request to the ZigBee gateway by the electronic equipment if the equipment searching unit searches the accessible ZigBee gateway; the information receiving unit is used for receiving ZigBee network information returned by the ZigBee gateway; and the network access unit is used for establishing network connection with the ZigBee gateway based on the ZigBee network information.
In a sixth aspect, the present application provides a network access configuration apparatus, operating in a terminal device, where the apparatus includes: the information acquisition unit is used for sending a ZigBee network information acquisition request to the cloud server; the information acquisition unit is also used for receiving ZigBee network information returned by the cloud server, and the ZigBee network information is prestored by the cloud server; and the instruction sending unit is used for sending a network access instruction to the electronic equipment to be added into the ZigBee network based on a second short-distance wireless protocol different from the ZigBee protocol, wherein the network access instruction carries the ZigBee network information, so that the electronic equipment establishes network connection with a ZigBee gateway of the ZigBee network based on the ZigBee network information.
In a seventh aspect, the present application provides a network access configuration device, which operates in a ZigBee gateway of a ZigBee network, where the device includes: the information acquisition unit is used for receiving a device code of the electronic device to be added into the ZigBee network, which is sent by the terminal device, wherein the device code is acquired from the electronic device by the terminal device based on a second short-range wireless protocol different from the ZigBee protocol; the network access configuration unit is used for receiving a network access request sent by the electronic equipment; an encryption unit, configured to encrypt ZigBee network information of the ZigBee network based on the device code; and the information sending unit is used for returning the encrypted ZigBee network information of the ZigBee network to the electronic equipment so that the electronic equipment can complete network connection with the ZigBee gateway based on the ZigBee network information.
In an eighth aspect, the present application provides a network system, where the network system includes a ZigBee gateway, an electronic device, and a terminal device; the terminal equipment sends a network access instruction based on a second short-distance wireless protocol different from the ZigBee protocol; the electronic equipment receives the network access instruction, responds to the network access instruction, and searches an accessible ZigBee gateway based on a ZigBee protocol; if the electronic equipment searches the accessible ZigBee gateway, sending a network access request to the ZigBee gateway; the ZigBee gateway returns ZigBee network information to the electronic equipment; the electronic equipment receives ZigBee network information returned by the ZigBee gateway; and the electronic equipment establishes network connection with the ZigBee gateway based on the ZigBee network information.
In a ninth aspect, the present application provides an electronic device comprising one or more processors and memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the methods described above.
In a tenth aspect, the present application provides a computer-readable storage medium, in which a program code is stored, wherein the program code executes the above method when running.
According to the network access configuration method, the network access configuration device, the electronic equipment and the network system, the terminal equipment sends the network access instruction to the electronic equipment to be connected with the ZigBee network based on other short-distance wireless protocols except the ZigBee protocol, so that the electronic equipment can respond to the network access instruction after receiving the network access instruction, search for the accessible ZigBee gateway based on the ZigBee protocol, if the accessible ZigBee gateway is searched, the electronic equipment sends the network access request to the ZigBee gateway, and after the electronic equipment receives the ZigBee network information returned by the ZigBee gateway, the electronic equipment establishes network connection with the ZigBee gateway based on the ZigBee network information. Therefore, the electronic equipment to be added into the ZigBee network can be triggered to be added into the ZigBee network through responding to the network access instruction of the terminal equipment, the user does not need to repeatedly power on the electronic equipment to trigger, the efficiency of adding the electronic equipment into the ZigBee network is improved, the hardware interactivity of the electronic equipment is also improved, and the user experience is also improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a network system proposed in the present application;
fig. 2 is a timing diagram illustrating a network access configuration method proposed in the present application;
FIG. 3 is a schematic diagram of a user interface proposed in the present application;
fig. 4 shows a block diagram of an electronic device proposed in the present application;
fig. 5 is a timing diagram illustrating another network access configuration method proposed in the present application;
fig. 6 is a flowchart illustrating a network access configuration method proposed in the present application;
fig. 7 is a flowchart illustrating another network entry configuration method proposed in the present application;
fig. 8 is a flowchart illustrating another network access configuration method proposed in the present application;
fig. 9 is a block diagram illustrating a network entry configuration apparatus according to the present application;
fig. 10 is a block diagram showing another network entry configuration apparatus proposed in the present application;
fig. 11 is a block diagram illustrating a further network entry configuration device proposed in the present application;
fig. 12 is a block diagram illustrating an electronic device for executing a network access configuration method according to an embodiment of the present application.
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. 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.
The ZigBee technology is a two-way wireless communication technology with short distance, low complexity, low power consumption, low speed and low cost. The method is mainly used for data transmission among various electronic devices with short distance, low power consumption and low transmission rate and is typically applied to periodic data transmission, intermittent data transmission and low-reaction-time data transmission. Briefly, ZigBee is a highly reliable wireless data transmission network, similar to CDMA and GSM networks. The ZigBee data transmission module is similar to a mobile network base station. The communication distance ranges from standard 75m to hundreds of meters, kilometers, and supports infinite extension.
With the development of the ZigBee technology, the ZigBee technology is also beginning to be adopted in more internet of things systems. For example, a ZigBee gateway may be configured in a ZigBee network constructed based on a ZigBee protocol, the ZigBee gateway may interact with a router, so as to communicate the ZigBee network with an ethernet, and an electronic device to be added to the ZigBee network may establish network connection with the ZigBee gateway, so as to access the ZigBee network.
However, the inventor finds in research that the operation in the process of adding the electronic device to the ZigBee network is still cumbersome and inconvenient. For example, for some electronic devices, the electronic device is triggered to attempt to establish network connection with the ZigBee gateway only after the electronic device is powered down to a powered-up state. And if the electronic equipment is not successfully connected with the ZigBee gateway, the electronic equipment is switched to a power-off state and then to power-on state, and the electronic equipment can be continuously triggered to try to establish network connection with the ZigBee gateway. For other electronic equipment, after the key arranged on the electronic equipment needs to be manually triggered, the electronic equipment is triggered to try to establish network connection with the ZigBee gateway, so that the efficiency of adding the electronic equipment into the ZigBee network is not high, and the user experience is also reduced. (in this case, please refer to the technical background of the book of intersection, the slave device can be triggered to access the network through the RESET button arranged on the slave device, but the power is not cut off at this time.)
Therefore, the inventor provides a network access configuration method, device, electronic device and network system which can improve the efficiency of adding the electronic device into the ZigBee network and improve the user experience in the application.
In order to facilitate the detailed description of the solution of the present application, the environment in which the present application is applied will be described below with reference to the accompanying drawings.
As shown in fig. 1, a network system 10 is shown, where the network system 10 includes an electronic device 100, a ZigBee gateway 99, and a terminal device 98. The electronic device 100 may establish a network connection with a ZigBee gateway based on a ZigBee protocol, thereby joining in a ZigBee network. Furthermore, the electronic device 100 also supports a second short-range wireless protocol, different from the ZigBee protocol, for interacting with the terminal device 98 via the second short-range wireless protocol. For example, a control instruction transmitted by the terminal device 98 may be received through the second short-range wireless protocol, and the control instruction may control the electronic device 100 to establish a network connection with the ZigBee gateway 99 or to disconnect an already established network connection. Both the ZigBee gateway 99 and the terminal device 98 may be connected to a router and access to the ethernet via the router. For example, the ZigBee gateway 99 and the terminal device 98 may store the acquired information in the cloud server.
It should be noted that the second short-range wireless protocol may be an IEEE802.11 protocol, a bluetooth protocol, an infrared protocol, or an NFC protocol.
The following will describe embodiments of the present application in detail.
Referring to fig. 2, a network access configuration method provided in the present application includes:
step S110: the terminal equipment sends a network access instruction based on a second short-distance wireless protocol different from the ZigBee protocol.
The receiving end of the network access instruction sent by the terminal equipment is the electronic equipment to be added into the ZigBee network. In the application, there are various ways to trigger the terminal device to send the network access instruction to the electronic device. As one mode, the terminal device is installed with an application program having a user operation interface, in this case, the user can operate on the user operation interface, and the terminal device can transmit a network access instruction to the electronic device or transmit an instruction to detach from the ZigBee network in response to a touch operation by the user.
As shown in fig. 3, a device selection control 96, a device pattern display control 95, and a control 93 to join the network and a control 94 to leave the network are included in the user operation interface 97. The user can select a device to be controlled by touching the device selection control 96, and after the user selects the device, the pattern of the device selected by the user can be displayed in the device pattern display control 95, and after the user triggers the network joining control 93, the terminal device can be triggered to send a network entry instruction to the selected electronic device, and after the user triggers the network leaving control 94, the terminal device can be triggered to send a network leaving instruction to the selected electronic device.
In this case, the terminal device may determine the specific content in the control instruction transmitted to the electronic device according to the instruction content. For example, if the packaging format of the control instruction is "# B # + ON + # E #", then "# B #" therein indicates the beginning of the instruction, and "ON" indicates that the control instruction is a network access instruction, and if "# E #" therein is the end of the instruction, the electronic device knows that the instruction has ended. The corresponding command for controlling the electronic device to leave the ZigBee network may be "# B # + OFF + # E #", and thus, the electronic device may determine whether the current information is a control command based on whether the received information is in the above-described format, and then determine whether the command is an access command or an OFF-network command according to the content of the middle field of the control command.
It should be noted that the terminal device may be a wearable device such as a smart watch and a bracelet, in addition to a mobile phone and a tablet computer, and accordingly, as the type of the device changes, the user operation interface may also change along with the device.
In addition, as another mode, the terminal device may trigger sending of the network access instruction based on a set automatic trigger event. For example, if the second short-range wireless protocol adopted by the terminal device is a bluetooth protocol, the terminal device needs to establish a bluetooth connection with the electronic device first, and then perform information interaction with the electronic device based on the established bluetooth connection. In this case, the triggering event may be the establishment of a bluetooth connection between the terminal device and the electronic device.
Optionally, as a mode, the electronic device may start broadcasting the bluetooth signal carrying the device identifier of the electronic device after powering on, and the terminal device may also start scanning the bluetooth signal after powering on, so that when the terminal device enters a range of the bluetooth signal broadcasted by the electronic device, the bluetooth signal broadcasted by the electronic device may be scanned, then an ACL link connection is established between the bluetooth signal broadcasted by the electronic device and the electronic device in response to the bluetooth signal broadcasted by the electronic device, and then a subsequent connection process is completed. In this case, when the terminal device scans the bluetooth signal broadcast by the electronic device, the information of the response scanning result returned to the electronic device can be used as a network access instruction, so that the terminal device is not required to be triggered to send the network access instruction to the electronic device after the bluetooth connection is completely established between the terminal device and the electronic device, and the real-time performance of sending the network access instruction is improved.
The method is suitable for the situation that when the mobile phone of the user serves as the terminal device and the electronic device is a household air conditioner, a projector or other electrical appliances, the user returns home with the mobile phone and can be regarded as the mobile phone entering the Bluetooth signal range of the ZigBee network electrical appliance to be added, and then the mobile phone can trigger to send the network access signal to the electrical appliance. Therefore, the electric appliance serving as the electronic equipment can be added into the ZigBee network to interact with other equipment in the ZigBee network after the terminal equipment enters a Bluetooth signal range radiated by the terminal equipment, so that the electronic equipment is prevented from being always kept in the ZigBee network in real time, and the electric quantity is saved.
In addition, as another mode, after the electronic device receives information (which may be used as a network access instruction) returned by the terminal device and responding to the scanning result, the electronic device may start to search for the ZigBee gateway, and when the bluetooth connection between the terminal device and the electronic device is completely established, the electronic device triggers to send a network access request to the ZigBee gateway. And then, or after the electronic device receives information (which can be used as a network access instruction) of a response scanning result returned by the terminal device and searches for a ZigBee gateway allowing access, a network access request can be sent to the ZigBee gateway, and after the ZigBee network information returned by the ZigBee gateway is received, whether Bluetooth connection between the electronic device and the terminal device is established or not is detected, and if the Bluetooth connection is established, the electronic device can directly establish network connection with the ZigBee gateway based on the ZigBee network information. Therefore, the efficiency of adding the configuration electronic equipment into the ZigBee network can be improved through the modes.
Furthermore, in order to further improve the security of the ZigBee network. The electronic device can verify the identity of the terminal device sending the network access instruction after receiving the network access instruction, and then sends a network access request to the ZigBee gateway after passing the identity verification. As a way of performing identity authentication, when the terminal device returns information responding to a scanning result, the information carries the MAC address of the terminal device, and then the electronic device may first verify whether the MAC address is the MAC address of the device that has successfully established the bluetooth connection before, or the MAC address that is stored in the electronic device in advance, and if the MAC address is the MAC address of the device that has successfully established the bluetooth connection before, or the MAC address that is stored in the electronic device in advance, it is determined that the MAC address passes the identity authentication.
Besides the communication based on the bluetooth protocol, the electronic device and the terminal device may also communicate with each other via other short-range communication protocols, such as the ieee802.11a or ieee802.11b protocol, or may also be the NFC protocol and the infrared protocol.
Step S120: and the electronic equipment receives the network access instruction, responds to the network access instruction and searches the accessible ZigBee gateway based on the ZigBee protocol.
As one way, as shown in fig. 4, the electronic device 100 may include a first communication module supporting the ZigBee protocol, for example, a ZigBee module 110, and a second communication module supporting the second short-range wireless protocol, for example, a bluetooth module 120. And the first communication module and the second communication module can perform information interaction in a serial port communication mode. For example, communication may be through a UART interface. The electronic device may interact with the terminal device through the second communication module, for example, receive a network entry instruction. Then, after receiving the network access instruction, the second communication module may forward the network access instruction to the first communication module, and the first communication module responds to the network access instruction and searches for an accessible ZigBee gateway based on the ZigBee protocol.
In addition, as another way, the electronic device may include a communication module that supports both the ZigBee protocol and a second short-range wireless protocol different from the ZigBee protocol, in this case, as a way, after the electronic device is powered on, the communication module is in a bluetooth communication mode, so that the electronic device may interact with the terminal device by means of bluetooth, for example, receive a network access instruction. And after receiving the network access instruction, triggering the communication module to switch to the ZigBee mode, so that the electronic equipment can search the accessible ZigBee gateway based on the ZigBee protocol.
Step S130: and if the electronic equipment searches the accessible ZigBee gateway, sending a network access request to the ZigBee gateway.
Step S140: and the ZigBee gateway returns ZigBee network information to the electronic equipment.
Step S150: and the electronic equipment receives ZigBee network information returned by the ZigBee gateway.
Step S160: and the electronic equipment establishes network connection with the ZigBee gateway based on the ZigBee network information.
In one mode, the ZigBee network information includes first network information and second network information. Wherein the first network information comprises a channel, a network ID, a network key, and the second network information comprises a short address. In this case, the ZigBee network information returned by the ZigBee gateway received by the electronic device refers to second network information in the ZigBee network information, and for first network information in the ZigBee network information, the first network information may be obtained in advance by a mobile terminal and then stored locally, or the first network information in the ZigBee network information is sent to the terminal device for storage. And in the process of establishing network connection with the ZigBee gateway, the mobile terminal can receive second network information in ZigBee network information returned by the ZigBee gateway, and then establishes network connection with the ZigBee gateway based on the first network information and the second network information.
According to the network access configuration method, the electronic equipment to be added into the ZigBee network can be triggered to be added into the ZigBee network through the network access instruction of the response terminal equipment, and the user does not need to repeatedly power on the electronic equipment to trigger, so that the efficiency of adding the electronic equipment into the ZigBee network is improved, the hardware interactivity of the electronic equipment is also improved, and the user experience is also improved.
Referring to fig. 5, a network access configuration method provided in the present application includes:
step S210: the electronic equipment receives an equipment code acquisition request sent by the terminal equipment, and the equipment code acquisition request is sent by the terminal equipment based on a second short-distance wireless protocol different from the ZigBee protocol.
The device Code is information that can uniquely identify the electronic device, and optionally, the device Code is an Install Code.
Step S220: and the electronic equipment returns an equipment code to the terminal equipment.
Step S230: and the terminal equipment sends the equipment code to the ZigBee gateway.
Step S240: and the electronic equipment receives a network access instruction, and the network access instruction is sent by the terminal equipment based on a second short-distance wireless protocol different from the ZigBee protocol.
Step S250: and responding to the network access instruction, and searching an accessible ZigBee gateway based on the ZigBee protocol.
Step S260: and if the accessible ZigBee gateway is searched, judging whether the ZigBee network information is stored locally.
The ZigBee network information includes at least one of a channel, a network ID, a network key, a short address assigned by the ZigBee gateway, and the like.
Step S270: and if the ZigBee network information is stored, sending a network access request carrying the ZigBee network information to the ZigBee gateway, and establishing network connection with the ZigBee gateway based on the ZigBee network information.
Step S280: and if the ZigBee network information is not stored, the electronic equipment sends a network access request to the ZigBee gateway.
Step S290: and the electronic equipment receives ZigBee network information returned by the ZigBee gateway, wherein the ZigBee network information is encrypted by the ZigBee gateway based on the equipment code.
As one mode, the ZigBee gateway uses the received device code as a secret key, and then encrypts the ZigBee network information based on a set encryption algorithm. In addition, as another mode, the network access request sent by the electronic device to the ZigBee gateway carries the MAC address of the electronic device. Then in this case the ZigBee gateway may act as a key for subsequent encryption based on the received MAC address and the device code. Optionally, a correspondence table between the device code and the MAC address may be pre-stored in the ZigBee gateway, and the device code and the MAC address of the same electronic device are correspondingly stored in the correspondence table. In addition, as another mode, when the ZigBee gateway receives the MAC address carried in the network access request, the MAC address and the device code sent by the terminal device that is received recently are identified as belonging to the same electronic device.
It should be noted that, if the length of the used key is longer, or the included character types are more, the time consumed during encryption is longer, in this case, after the ZigBee gateway receives the MAC address in the network access request, it may be determined whether the MAC address is an electronic device that has been previously added to the ZigBee network, and if so, the ZigBee network information may be encrypted by separately using the MAC address or the device code carried in the network access request. If not, the MAC address and the equipment code can be combined to be used as an encrypted secret key, and therefore the safety of the ZigBee network is improved.
Step S291: and the electronic equipment establishes network connection with the ZigBee gateway based on the ZigBee network information.
In the application, the ZigBee network information can be acquired from the cloud server, the terminal device can also send a ZigBee network information acquisition request to the ZigBee gateway in advance, then the ZigBee gateway sends the ZigBee network information to the terminal device, and the terminal device sends a network access instruction carrying the ZigBee network information to the electronic device, so that the electronic device can directly establish network connection with the ZigBee gateway based on the acquired ZigBee network information, and can further establish network connection with the ZigBee gateway after waiting for the ZigBee gateway to return the ZigBee network information without initiating the network access request to the ZigBee gateway.
According to the network access configuration method, the electronic equipment to be added into the ZigBee network can be triggered to be added into the ZigBee network through responding to the network access instruction of the terminal equipment, and in the process of establishing network connection between the electronic equipment and the ZigBee gateway, the ZigBee gateway can encrypt the network information returned to the electronic equipment based on the equipment code of the electronic equipment, so that the safety of the ZigBee network is improved. In addition, the electronic equipment does not need to be repeatedly powered on by a user to trigger in the network access process of the electronic equipment, so that the efficiency of adding the electronic equipment into the ZigBee network is improved, the hardware interactivity of the electronic equipment is also improved, and the user experience is also improved.
Referring to fig. 6, a network access configuration method provided by the present application is applied to an electronic device, and the method includes:
step S310: and the electronic equipment receives a network access instruction, and the network access instruction is sent by the terminal equipment based on a second short-distance wireless protocol different from the ZigBee protocol.
Step S320: and responding to the network access instruction, and searching an accessible ZigBee gateway based on the ZigBee protocol.
Step S330: and if the ZigBee gateway which can be accessed is searched, the electronic equipment sends a network access request to the ZigBee gateway.
Step S340: and the electronic equipment receives ZigBee network information returned by the ZigBee gateway.
Step S350: and the electronic equipment establishes network connection with the ZigBee gateway based on the ZigBee network information.
According to the network access configuration method, the electronic equipment to be added into the ZigBee network can be triggered to be added into the ZigBee network through the network access instruction of the response terminal equipment, and the user does not need to repeatedly power on the electronic equipment to trigger, so that the efficiency of adding the electronic equipment into the ZigBee network is improved, the hardware interactivity of the electronic equipment is also improved, and the user experience is also improved.
Referring to fig. 7, a network access configuration method provided in the present application is applied to a terminal device, and the method includes:
step S410: and the terminal equipment sends a ZigBee network information acquisition request to the cloud server.
As one mode, the terminal equipment sends a ZigBee network information acquisition request to the cloud server after receiving an electronic equipment network access instruction manually triggered by a user. Or, as described in the foregoing embodiment, after detecting a scanning request sent by the electronic device in the process of broadcasting the bluetooth signal, the terminal device may start sending a ZigBee network information acquisition request to the cloud server.
It should be noted that, the server may store ZigBee network information of a plurality of ZigBee networks, and as one mode, the server may determine, through a public network IP corresponding to the ZigBee network information, which one of the stored ZigBee network information is the ZigBee network information requested by the current terminal device, through the ZigBee network.
For example, when the terminal device uploads ZigBee network information to the server, the data sent to the server carries an active IP address and a source MAC address (in the case of TCI/IP protocol-based communication), then the source IP address is a public network IP allocated to a router in a local area network with the ZigBee gateway through the accessed ethernet. When storing the ZigBee network information, the server may store the public network IP, the source MAC address, and the ZigBee network information correspondingly. After receiving the ZigBee network information acquisition request, the server may extract the source IP address and the source MAC address from the ZigBee network information acquisition request, and then locally search for the ZigBee network information corresponding to the source IP address and the source MAC address.
It should be noted that, as one approach, the public network IP assigned to the router by the ethernet may change. Then, as one way, the server may store only the source MAC address corresponding to the ZigBee network information.
Step S420: and the terminal equipment receives ZigBee network information returned by the cloud server, and the ZigBee network information is prestored by the cloud server.
It should be noted that the ZigBee network information stored in the cloud server may be acquired by the terminal device and then uploaded, may also be acquired by the electronic device and then uploaded to the cloud server, and may also be actively reported to the cloud server by the ZigBee gateway.
Step S430: the terminal equipment sends a network access instruction to the electronic equipment to be added into the ZigBee network based on a second short-distance wireless protocol different from the ZigBee protocol, and the network access instruction carries the ZigBee network information, so that the electronic equipment establishes network connection with a ZigBee gateway of the ZigBee network based on the ZigBee network information.
According to the network access configuration method, the electronic equipment to be added into the ZigBee network can be triggered to be added into the ZigBee network through responding to the network access instruction of the terminal equipment, the terminal equipment can acquire ZigBee network information from the cloud server in advance and then adds the ZigBee network information into the network access instruction, and then the electronic equipment can directly establish network connection with the ZigBee gateway after receiving the network access instruction, so that the efficiency of adding the electronic equipment into the ZigBee network is improved, the hardware interactivity of the electronic equipment is improved, and the user experience is also improved.
Referring to fig. 8, a network access configuration method provided in the present application is applied to a ZigBee gateway of a ZigBee network, and the method includes:
step S510: and the ZigBee gateway receives a device code of the electronic device to be added into the ZigBee network, which is sent by the terminal device, and the device code is obtained from the electronic device by the terminal device based on a second short-range wireless protocol different from the ZigBee protocol.
Step S520: and the ZigBee gateway receives a network access request sent by the electronic equipment.
Step S530: and the ZigBee gateway encrypts ZigBee network information of the ZigBee network based on the equipment code.
Step S540: and the ZigBee gateway returns the encrypted ZigBee network information of the ZigBee network to the electronic equipment, so that the electronic equipment completes network connection with the ZigBee gateway based on the ZigBee network information.
Referring to fig. 9, a network access configuration apparatus 600 provided by the present application, operating on an electronic device, includes: an instruction receiving unit 610, a device searching unit 620, a network entry requesting unit 630, an information receiving unit 640, and a network entry unit 650.
And an instruction receiving unit 610, configured to receive a network access instruction, where the network access instruction is sent by the terminal device based on a second short-range wireless protocol that is different from the ZigBee protocol.
And the device searching unit 620 is used for responding to the network access instruction and searching the accessible ZigBee gateway based on the ZigBee protocol.
As one mode, the electronic device may include a first communication module supporting the ZigBee protocol and a second communication module supporting the second short-range wireless protocol. And the first communication module and the second communication module can perform information interaction in a serial port communication mode. For example, communication may be through a UART interface. The electronic device may interact with the terminal device through the second communication module, for example, receive a network entry instruction. Then, after receiving the network access instruction, the second communication module may forward the network access instruction to the first communication module, and the first communication module responds to the network access instruction and searches for an accessible ZigBee gateway based on the ZigBee protocol.
In addition, as another way, the electronic device may include a communication module that supports both the ZigBee protocol and a second short-range wireless protocol different from the ZigBee protocol, in this case, as a way, after the electronic device is powered on, the communication module is in a bluetooth communication mode, so that the electronic device may interact with the terminal device by means of bluetooth, for example, receive a network access instruction. And after receiving the network access instruction, triggering the communication module to switch to the ZigBee mode, so that the electronic equipment can search the accessible ZigBee gateway based on the ZigBee protocol.
And a network access request unit 630, configured to, if the device search unit searches for an accessible ZigBee gateway, send a network access request to the ZigBee gateway by the electronic device.
An information receiving unit 640, configured to receive ZigBee network information returned by the ZigBee gateway;
and the network access unit 650 is configured to establish network connection with the ZigBee gateway based on the ZigBee network information.
Referring to fig. 10, a network access configuration apparatus 700 provided by the present application, operating in a terminal device, includes: an information acquisition unit 710 and an instruction transmission unit 720.
The information acquisition unit 710 is configured to send a ZigBee network information acquisition request to the cloud server.
The information obtaining unit 710 is further configured to receive ZigBee network information returned by the cloud server, where the ZigBee network information is pre-stored by the cloud server.
The instruction sending unit 720 is configured to send a network access instruction to an electronic device to be added to the ZigBee network based on a second short-range wireless protocol different from the ZigBee protocol, where the network access instruction carries the ZigBee network information, so that the electronic device establishes network connection with a ZigBee gateway of the ZigBee network based on the ZigBee network information.
Referring to fig. 11, a network access configuration device 800 provided by the present application runs in a ZigBee gateway of a ZigBee network, where the device 800 includes: an information acquisition unit 810, a network access configuration unit 820, an encryption unit 830, and an information transmission unit 840.
An information obtaining unit 810, configured to receive a device code of an electronic device to be added to the ZigBee network, where the device code is obtained by the terminal device from the electronic device based on a second short-range wireless protocol different from a ZigBee protocol;
a network access configuration unit 820, configured to receive a network access request sent by the electronic device.
The device Code is information that can uniquely identify the electronic device, and optionally, the device Code is an Install Code.
An encryption unit 830 for encrypting the ZigBee network information of the ZigBee network based on the device code.
As one mode, the ZigBee gateway uses the received device code as a secret key, and then encrypts the ZigBee network information based on a set encryption algorithm. In addition, as another mode, the network access request sent by the electronic device to the ZigBee gateway carries the MAC address of the electronic device. Then in this case the ZigBee gateway may act as a key for subsequent encryption based on the received MAC address and the device code. Optionally, a correspondence table between the device code and the MAC address may be pre-stored in the ZigBee gateway, and the device code and the MAC address of the same electronic device are correspondingly stored in the correspondence table. In addition, as another mode, after the ZigBee gateway receives the MAC address carried in the network access request, the MAC address and the device code sent by the terminal device that has been received recently are identified as belonging to the same electronic device.
It should be noted that, if the length of the used secret key is longer, or the number of the included character types is larger, the time consumed in encryption is longer, in this case, after the ZigBee gateway receives the MAC address in the network access request, it may be determined first whether the MAC address is an electronic device that has been previously added to the ZigBee network, and if so, the ZigBee network information may be encrypted by separately using the MAC address or the device code carried in the network access request. If not, the MAC address and the equipment code can be combined to be used as an encrypted secret key, and therefore the safety of the ZigBee network is improved.
An information sending unit 840, configured to return the encrypted ZigBee network information of the ZigBee network to the electronic device, so that the electronic device completes network connection with the ZigBee gateway based on the ZigBee network information.
It should be noted that, for convenience and simplicity of description, it may be clearly understood by those skilled in the art that the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In summary, according to the network access configuration method, device, electronic device and network system provided by the application, the terminal device sends the network access instruction to the electronic device to be added into the ZigBee network based on other short-distance wireless protocols except the ZigBee protocol, so that the electronic device can respond to the network access instruction after receiving the network access instruction, search for the accessible ZigBee gateway based on the ZigBee protocol, if the accessible ZigBee gateway is searched, the electronic device sends the network access request to the ZigBee gateway, and after the electronic device receives the ZigBee network information returned by the ZigBee gateway, the electronic device establishes network connection with the ZigBee gateway based on the ZigBee network information. Therefore, the electronic equipment to be added into the ZigBee network can be triggered to be added into the ZigBee network through responding to the network access instruction of the terminal equipment, the user does not need to repeatedly power on the electronic equipment to trigger, the efficiency of adding the electronic equipment into the ZigBee network is improved, the hardware interactivity of the electronic equipment is also improved, and the user experience is also improved.
An electronic device provided by the present application will be described with reference to fig. 12.
Referring to fig. 12, based on the foregoing network access configuration method and apparatus, another electronic device 100 capable of performing the network access configuration method is further provided in the embodiment of the present application. Electronic device 100 includes one or more processors 102 (only one shown), memory 104, and wireless module 106 coupled to each other. The memory 104 stores programs that can execute the content of the foregoing embodiments, and the processor 102 can execute the programs stored in the memory 104. The electronic device 100 may be a smart socket, a smart audio, an air purifier, a water purifier, a sensor, or the like.
The wireless module 106 is configured to receive and transmit electromagnetic waves, and achieve mutual conversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The wireless module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The wireless module 106 may communicate with various wireless networks. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM) IEEE802 protocol, bluetooth protocol, infrared protocol or RFID protocol. As one mode, the wireless module 106 may have a bluetooth communication function and a ZigBee communication function. Or the wireless module 106 comprises a bluetooth module and a ZigBee module which can communicate through a serial port.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments. In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium. The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (18)

1. A network access configuration method is applied to an electronic device, and comprises the following steps:
the electronic equipment receives a network access instruction, wherein the network access instruction is information of a response scanning result returned by the terminal equipment based on a second short-range wireless protocol after scanning a target wireless signal broadcasted by the electronic equipment based on the second short-range wireless protocol, and the second short-range wireless protocol is different from a ZigBee protocol;
responding to the network access instruction, and searching an accessible ZigBee gateway based on a ZigBee protocol;
if the accessible ZigBee gateway is searched, detecting whether the connection between the electronic equipment and the terminal equipment is successfully established based on the second short-distance wireless protocol;
if the connection is successfully established based on the second short-distance wireless protocol, the electronic equipment sends a network access request to the ZigBee gateway;
the electronic equipment receives ZigBee network information returned by the ZigBee gateway;
and the electronic equipment establishes network connection with the ZigBee gateway based on the ZigBee network information.
2. The method of claim 1, wherein the step of the electronic device receiving the ZigBee network information returned by the ZigBee gateway comprises:
the electronic equipment receives encrypted ZigBee network information returned by the ZigBee gateway;
the step of establishing network connection between the electronic equipment and the ZigBee gateway based on the ZigBee network information comprises the following steps:
and the electronic equipment establishes network connection with the ZigBee gateway based on the decrypted ZigBee network information.
3. The method according to claim 2, wherein the returned encrypted ZigBee network information is obtained by the ZigBee gateway based on the device code encryption of the electronic device; the step that the electronic equipment establishes network connection with the ZigBee gateway based on the decrypted ZigBee network information comprises the following steps:
the electronic equipment decrypts the returned encrypted ZigBee network information based on the own equipment code;
and the electronic equipment establishes network connection with the ZigBee gateway based on the decrypted ZigBee network information.
4. The method according to claim 2, wherein the network access request carries a MAC address of the electronic device, and the ZigBee network information is encrypted by the ZigBee gateway based on the MAC address and a device code of the electronic device;
the step that the electronic equipment establishes network connection with the ZigBee gateway based on the decrypted ZigBee network information comprises the following steps:
the electronic equipment decrypts the received encrypted ZigBee network information based on the MAC address and the equipment code of the electronic equipment to obtain the decrypted ZigBee network information;
and the electronic equipment establishes network connection with the ZigBee gateway based on the decrypted ZigBee network information.
5. The method according to claim 3 or 4, wherein the step of the electronic device receiving the network access instruction is preceded by the steps of:
the electronic equipment receives an equipment code acquisition request sent by the terminal equipment, wherein the equipment code acquisition request is sent by the terminal equipment based on the second short-distance wireless protocol different from the ZigBee protocol;
and the electronic equipment returns an equipment code to the terminal equipment so that the terminal equipment can send the equipment code to the ZigBee gateway.
6. The method of claim 1, wherein the electronic device comprises a first communication module supporting a ZigBee protocol and a second communication module supporting the second short-range wireless protocol; the step of searching for an accessible ZigBee gateway based on the ZigBee protocol in response to the network access instruction comprises the following steps:
the second communication module transmits the received network access instruction to the first communication module;
and after receiving the network access instruction, the first communication module starts to search the accessible ZigBee gateway.
7. The method according to claim 1, wherein the step of searching for an accessible ZigBee gateway based on a ZigBee protocol in response to the network entry instruction comprises:
the electronic equipment responds to the network access instruction and switches a communication mode into a ZigBee communication mode;
and the electronic equipment switched into the ZigBee communication mode searches the accessible ZigBee gateway.
8. The method of claim 1, further comprising:
the electronic equipment stores the ZigBee network information locally or sends the ZigBee network information to the terminal equipment for storage;
the step that the electronic equipment sends a network access request to the ZigBee gateway further comprises the following steps:
judging whether ZigBee network information is stored locally;
if the ZigBee network information is stored, sending a network access request carrying the ZigBee network information to the ZigBee gateway, and establishing network connection with the ZigBee gateway based on the ZigBee network information;
and if the ZigBee network information is not stored, sending a network access request to the ZigBee gateway.
9. A network access configuration method is applied to terminal equipment, and the method comprises the following steps:
the terminal equipment sends a ZigBee network information acquisition request to a cloud server;
the terminal equipment receives ZigBee network information returned by the cloud server, and the ZigBee network information is prestored by the cloud server;
the terminal equipment sends a network access instruction to the electronic equipment to be added into the ZigBee network based on a second short-distance wireless protocol different from the ZigBee protocol, wherein the network access instruction carries ZigBee network information, so that the electronic equipment establishes network connection with a ZigBee gateway of the ZigBee network based on the ZigBee network information under the condition that the electronic equipment successfully establishes connection between the electronic equipment and the terminal equipment based on the second short-distance wireless protocol, and the network access instruction is information of a response scanning result returned by the terminal equipment based on the second short-distance wireless protocol after scanning a target wireless signal broadcasted by the electronic equipment based on the second short-distance wireless protocol.
10. A network access configuration method is characterized in that the method is applied to a ZigBee gateway of a ZigBee network, and comprises the following steps:
the ZigBee gateway receives a device code of an electronic device to be added into the ZigBee network, wherein the device code is sent by a terminal device and is acquired from the electronic device by the terminal device based on a second short-distance wireless protocol different from a ZigBee protocol;
the ZigBee gateway receives a network access request sent by the electronic equipment, wherein the network access request is sent by the electronic equipment in response to a network access instruction under the condition that the electronic equipment and the terminal equipment successfully establish connection based on the second short-range wireless protocol, and the network access instruction is information of a response scanning result returned by the terminal equipment based on the second short-range wireless protocol after scanning a target wireless signal broadcasted by the electronic equipment based on the second short-range wireless protocol;
the ZigBee gateway encrypts ZigBee network information of the ZigBee network based on the equipment code;
and the ZigBee gateway returns the encrypted ZigBee network information of the ZigBee network to the electronic equipment, so that the electronic equipment completes network connection with the ZigBee gateway based on the ZigBee network information.
11. The method of claim 10, wherein the network entry request carries a MAC address of the electronic device; the ZigBee gateway encrypts ZigBee network information of the ZigBee network based on the equipment code, and the steps comprise:
and the ZigBee gateway encrypts ZigBee network information of the ZigBee network based on the equipment code and the MAC address.
12. A network access configuration method, the method comprising:
the terminal equipment sends a network access instruction based on a second short-range wireless protocol different from a ZigBee protocol, wherein the network access instruction is information of a response scanning result returned by the terminal equipment based on the second short-range wireless protocol after the terminal equipment scans a target wireless signal broadcasted by the electronic equipment based on the second short-range wireless protocol;
the electronic equipment receives the network access instruction, responds to the network access instruction, and searches an accessible ZigBee gateway based on a ZigBee protocol;
if the electronic equipment searches the accessible ZigBee gateway, detecting whether the connection between the electronic equipment and the terminal equipment is successfully established based on the second short-range wireless protocol;
if the connection is successfully established based on the second short-distance wireless protocol, the electronic equipment sends a network access request to the ZigBee gateway;
the ZigBee gateway returns ZigBee network information to the electronic equipment;
the electronic equipment receives ZigBee network information returned by the ZigBee gateway;
and the electronic equipment establishes network connection with the ZigBee gateway based on the ZigBee network information.
13. A network entry configuration apparatus, operable on an electronic device, the apparatus comprising:
the instruction receiving unit is used for receiving a network access instruction, wherein the network access instruction is information of a response scanning result returned by the terminal equipment based on a second short-distance wireless protocol after scanning a target wireless signal broadcasted by the electronic equipment based on the second short-distance wireless protocol, and the second short-distance wireless protocol is different from a ZigBee protocol;
the equipment searching unit is used for responding to the network access instruction and searching the accessible ZigBee gateway based on the ZigBee protocol;
the network access request unit is used for detecting whether the connection between the electronic equipment and the terminal equipment is successfully established based on the second short-range wireless protocol or not if the equipment searching unit searches the accessible ZigBee gateway, and the electronic equipment sends a network access request to the ZigBee gateway if the connection is successfully established based on the second short-range wireless protocol;
the information receiving unit is used for receiving ZigBee network information returned by the ZigBee gateway;
and the network access unit is used for establishing network connection with the ZigBee gateway based on the ZigBee network information.
14. A network access configuration apparatus, operating on a terminal device, the apparatus comprising:
the information acquisition unit is used for sending a ZigBee network information acquisition request to the cloud server;
the information acquisition unit is further used for receiving ZigBee network information returned by the cloud server, and the ZigBee network information is prestored by the cloud server;
the instruction sending unit is used for sending a network access instruction to the electronic equipment to be added into the ZigBee network based on a second short-distance wireless protocol different from the ZigBee protocol, wherein the network access instruction carries the ZigBee network information, so that the electronic equipment establishes network connection with a ZigBee gateway of the ZigBee network based on the ZigBee network information under the condition that the electronic equipment successfully establishes connection between the electronic equipment and the terminal equipment based on the second short-distance wireless protocol, and the network access instruction is information of a response scanning result returned by the terminal equipment based on the second short-distance wireless protocol after scanning a target wireless signal broadcasted by the electronic equipment based on the second short-distance wireless protocol.
15. A network access configuration device, operating in a ZigBee gateway of a ZigBee network, the device comprising:
the information acquisition unit is used for receiving a device code of the electronic device to be added into the ZigBee network, which is sent by the terminal device, wherein the device code is acquired from the electronic device by the terminal device based on a second short-range wireless protocol different from the ZigBee protocol;
a network access configuration unit, configured to receive a network access request sent by the electronic device, where the network access request is sent by the electronic device in response to a network access instruction when the electronic device and the terminal device have successfully established a connection based on the second short-range wireless protocol, and the network access instruction is information of a response scanning result returned by the terminal device based on the second short-range wireless protocol after scanning a target wireless signal broadcasted by the electronic device based on the second short-range wireless protocol;
the encryption unit is used for encrypting the ZigBee network information of the ZigBee network based on the equipment code;
and the information sending unit is used for returning the encrypted ZigBee network information of the ZigBee network to the electronic equipment so that the electronic equipment can complete network connection with the ZigBee gateway based on the ZigBee network information.
16. The network system is characterized by comprising a ZigBee gateway, electronic equipment and terminal equipment;
the terminal equipment sends a network access instruction based on a second short-distance wireless protocol different from a ZigBee protocol, wherein the network access instruction is information of a response scanning result returned by the terminal equipment based on the second short-distance wireless protocol after scanning a target wireless signal broadcasted by the electronic equipment based on the second short-distance wireless protocol;
the electronic equipment receives the network access instruction, responds to the network access instruction, and searches an accessible ZigBee gateway based on a ZigBee protocol;
if the electronic equipment searches the accessible ZigBee gateway, detecting whether the connection between the electronic equipment and the terminal equipment is successfully established based on the second short-range wireless protocol, and if the connection is successfully established based on the second short-range wireless protocol, the electronic equipment sends a network access request to the ZigBee gateway;
the ZigBee gateway returns ZigBee network information to the electronic equipment;
the electronic equipment receives ZigBee network information returned by the ZigBee gateway;
and the electronic equipment establishes network connection with the ZigBee gateway based on the ZigBee network information.
17. An electronic device comprising one or more processors and memory;
one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-8 or 9 or 10-11.
18. A computer-readable storage medium, having program code stored therein, wherein the program code when executed performs the method of any one of claims 1-8 or 9 or 10-11.
CN201811237830.0A 2018-10-23 2018-10-23 Network access configuration method and device, electronic equipment and network system Active CN109348458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811237830.0A CN109348458B (en) 2018-10-23 2018-10-23 Network access configuration method and device, electronic equipment and network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811237830.0A CN109348458B (en) 2018-10-23 2018-10-23 Network access configuration method and device, electronic equipment and network system

Publications (2)

Publication Number Publication Date
CN109348458A CN109348458A (en) 2019-02-15
CN109348458B true CN109348458B (en) 2022-09-09

Family

ID=65311202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811237830.0A Active CN109348458B (en) 2018-10-23 2018-10-23 Network access configuration method and device, electronic equipment and network system

Country Status (1)

Country Link
CN (1) CN109348458B (en)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110430557B (en) * 2019-06-21 2023-01-03 深圳绿米联创科技有限公司 Method, device and system for accessing equipment to network, electronic equipment and storage medium
WO2021023164A1 (en) 2019-08-02 2021-02-11 云丁网络技术(北京)有限公司 Intelligent lock control method and system
CN112399410A (en) * 2019-08-02 2021-02-23 云丁网络技术(北京)有限公司 Method, apparatus, computer readable medium and device for secure communication
CN112422599A (en) * 2019-08-22 2021-02-26 北京奇虎科技有限公司 Networking method and device for security control center
CN110740490A (en) * 2019-10-22 2020-01-31 深圳市信锐网科技术有限公司 Terminal network access method, gateway equipment, system, storage medium and device
CN110933825B (en) * 2019-10-25 2021-10-29 深圳市轩火部落科技有限公司 Communication control method of rescue equipment and related product
CN110972080B (en) * 2019-11-29 2022-03-04 广东好太太智能家居有限公司 ZigBee gateway searching method, equipment and storage medium
CN113225732B (en) * 2020-01-21 2023-07-04 深圳市云海物联科技有限公司 Data transmission method and device and terminal equipment
CN111818494A (en) * 2020-06-23 2020-10-23 博流智能科技(南京)有限公司 Zigbee network access method and network access system based on BLE
CN114125883B (en) * 2020-09-01 2024-04-05 美的智慧家居科技有限公司 Network access method and device of intelligent equipment, electronic equipment and storage medium
CN112165477B (en) * 2020-09-22 2023-05-02 广州河东科技有限公司 Gateway searching method and device, electronic equipment and storage medium
CN113300473B (en) * 2021-06-22 2023-04-18 武汉领普科技有限公司 Intelligent controller, processing method thereof and control system
CN113573254A (en) * 2021-07-16 2021-10-29 上海顺舟智能科技股份有限公司 Networking control method and device for smart home, control equipment and storage medium
CN113612845B (en) * 2021-08-03 2023-06-30 美智光电科技股份有限公司 Distribution network control method, device, mobile terminal, equipment, system and storage medium
CN113709743A (en) * 2021-08-04 2021-11-26 深圳市海曼科技股份有限公司 Zigbee network-based equipment network access method and system
CN113676850B (en) * 2021-08-24 2022-09-06 深圳市美科星通信技术有限公司 Network roaming method, terminal device, gateway and computer readable storage medium
CN114007276A (en) * 2021-10-27 2022-02-01 杭州萤石软件有限公司 Network access processing method, device, equipment and system of ZigBee network
CN114501439A (en) * 2022-01-07 2022-05-13 厦门盈趣科技股份有限公司 Intelligent device network access method, system, device and storage medium
CN114449553A (en) * 2022-01-18 2022-05-06 江苏国强兴晟能源科技有限公司 Communication method, device and system of photovoltaic support controller based on wisun protocol
CN114554522B (en) * 2022-01-29 2023-12-19 青岛海尔科技有限公司 Equipment control method and device, electronic equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103490234A (en) * 2013-09-17 2014-01-01 深圳市北电仪表有限公司 Intelligent ZigBee power socket and network communication system thereof
CN105635950A (en) * 2016-01-07 2016-06-01 烽火通信科技股份有限公司 Smart home gateway control system and method based on Zigbee
CN106304417A (en) * 2015-05-29 2017-01-04 美的集团股份有限公司 Household electrical appliance networking system and method based on ZigBee-network
CN106412803A (en) * 2016-09-30 2017-02-15 美的智慧家居科技有限公司 Terminal, ZigBee device, gateway, ZigBee device network configuration system and method
WO2018040741A1 (en) * 2016-08-30 2018-03-08 中兴通讯股份有限公司 Method and apparatus for controlling household appliance, and system and storage medium
CN108353442A (en) * 2016-10-27 2018-07-31 硅实验室公司 The second network is entrusted using network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106793001A (en) * 2017-01-19 2017-05-31 深圳市民益得信息科技有限公司 A kind of cordless communication network network-building method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103490234A (en) * 2013-09-17 2014-01-01 深圳市北电仪表有限公司 Intelligent ZigBee power socket and network communication system thereof
CN106304417A (en) * 2015-05-29 2017-01-04 美的集团股份有限公司 Household electrical appliance networking system and method based on ZigBee-network
CN105635950A (en) * 2016-01-07 2016-06-01 烽火通信科技股份有限公司 Smart home gateway control system and method based on Zigbee
WO2018040741A1 (en) * 2016-08-30 2018-03-08 中兴通讯股份有限公司 Method and apparatus for controlling household appliance, and system and storage medium
CN106412803A (en) * 2016-09-30 2017-02-15 美的智慧家居科技有限公司 Terminal, ZigBee device, gateway, ZigBee device network configuration system and method
CN108353442A (en) * 2016-10-27 2018-07-31 硅实验室公司 The second network is entrusted using network

Also Published As

Publication number Publication date
CN109348458A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN109348458B (en) Network access configuration method and device, electronic equipment and network system
CN106878923B (en) Quick networking method for ultra-low power consumption intelligent equipment and intelligent home system
EP3484196B1 (en) Method and apparatus for registering wireless device in wireless communication system
CN110602692B (en) Data updating method and device and electronic equipment
US20200136902A1 (en) Network management method and apparatus
CN108781473B (en) Method and equipment for sharing files among different terminals
EP2995128B1 (en) Delegating wifi network discovery and traffic monitoring
KR20160021046A (en) A method for detecting manipulation by a user of a device provided with a communication tag, corresponding computer program product, user terminal, device, and system
CN110839271B (en) Equipment connection method, system, platform and corresponding equipment
US9894616B2 (en) Delegating WiFi network discovery and traffic monitoring
CA2905862A1 (en) Network setup for limited user interface devices
CN105392185B (en) A kind of networking method of smart machine, apparatus and system
CN109890065B (en) Networking method and system of household appliance
CN104731066A (en) Intelligent housing system and control method thereof
CN105069875A (en) Electronic key, electronic devices and electronic device networking/pairing method
CN108462953B (en) File transmission method and device, electronic equipment and storage medium
CN112188488A (en) Network distribution method, device and system
CN105163371A (en) WIFI setting system and method based on Bluetooth
CN111093105A (en) Remote control method and device
CN105159121A (en) Household electrical appliance and on-off control method and system and intelligent apparatus
KR102214940B1 (en) Method and apparatus for registering wireless device in wireless communication system
CN114270781A (en) Device access method, device, system control method, electronic device and storage medium
CN103345828A (en) Method and system for controlling computer through intelligent terminal
US10070289B1 (en) Client association for provisioning devices in a communication network
CN112867041B (en) Network distribution method of household appliance, mobile terminal 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
GR01 Patent grant
GR01 Patent grant