CN109348458A - Network connection configuration method, apparatus, electronic equipment and network system - Google Patents

Network connection configuration method, apparatus, electronic equipment and network system Download PDF

Info

Publication number
CN109348458A
CN109348458A CN201811237830.0A CN201811237830A CN109348458A CN 109348458 A CN109348458 A CN 109348458A CN 201811237830 A CN201811237830 A CN 201811237830A CN 109348458 A CN109348458 A CN 109348458A
Authority
CN
China
Prior art keywords
zigbee
electronic equipment
network
gateway
network information
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.)
Granted
Application number
CN201811237830.0A
Other languages
Chinese (zh)
Other versions
CN109348458B (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.)
Shenzhen Lumi United Technology Co Ltd
Original Assignee
Shenzhen 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 Shenzhen Lumi United Technology Co Ltd filed Critical Shenzhen 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

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 present application discloses a kind of network connection configuration method, apparatus, electronic equipment and network system.The described method includes: the electronic equipment receives the instruction that networks, the instruction that networks is sent by terminal device based on the second short-range wireless protocol for being different from Zigbee protocol;It is instructed in response to the networking, based on the ZigBee gateway that Zigbee protocol search is accessible;If searching accessible ZigBee gateway, the electronic equipment sends the request that networks to the ZigBee gateway;The electronic equipment receives the ZigBee-network information that the ZigBee gateway returns;The electronic equipment is based on the ZigBee-network information and the ZigBee gateway is established and is connected to the network.This method allows to be added to ZigBee-network by responding the networking instruction of terminal device in the electronic equipment of ZigBee-network to be added to trigger, it is triggered without user's being powered on to electronic equipment repeatedly, improve the efficiency that ZigBee-network is added in electronic equipment, the hardware interactivity of electronic equipment is also improved simultaneously, furthermore also the user experience is improved.

Description

Network connection configuration method, apparatus, electronic equipment and network system
Technical field
This application involves network technique field, more particularly, to a kind of network connection configuration method, apparatus, electronic equipment with And network system.
Background technique
ZigBee is the low-power consumption LAN protocol based on ieee standard.It is provided according to international standard, ZigBee technology is A kind of wireless communication technique of short distance, low-power consumption.The characteristics of ZigBee be short distance, low complex degree, self-organizing, low-power consumption, Low data rate.It is mainly suitable for that various equipment can be embedded in for automatic control and remote control field.However existing ZigBee equipment network process is also more complicated, and user experience is not high.
Summary of the invention
In view of the above problems, present applicant proposes a kind of network connection configuration method, apparatus, electronic equipment and network system, Improve the above problem to realize.
In a first aspect, being applied to electronic equipment, which comprises institute this application provides a kind of network connection configuration method It states electronic equipment and receives the instruction that networks, the instruction that networks is by terminal device based on the second short distance for being different from Zigbee protocol Wireless protocols are sent;It is instructed in response to the networking, based on the ZigBee gateway that Zigbee protocol search is accessible;If searching Accessible ZigBee gateway, the electronic equipment send the request that networks to the ZigBee gateway;The electronic equipment receives The ZigBee-network information that the ZigBee gateway returns;The electronic equipment be based on the ZigBee-network information with it is described ZigBee gateway establishes network connection.
Second aspect, this application provides a kind of network connection configuration methods, are applied to terminal device, which comprises institute It states terminal device and sends ZigBee-network information acquisition request to Cloud Server;The terminal device receives the Cloud Server and returns The ZigBee-network information returned, the ZigBee-network information are stored in advance by the Cloud Server;The terminal device is based on Networking is sent to the electronic equipment of the ZigBee-network to be added different from the second short-range wireless protocol of Zigbee protocol Instruction, the networking instruction carries the ZigBee-network information, so that the electronic equipment is based on ZigBee-network information It establishes and is connected to the network with the ZigBee gateway of the ZigBee-network.
The third aspect, this application provides a kind of network connection configuration methods, applied to the ZigBee gateway of ZigBee-network, institute The method of stating includes: setting for the electronic equipment for the ZigBee-network to be added that the ZigBee gateway receiving terminal apparatus is sent Standby code, the device code is by the terminal device based on being different from the second short-range wireless protocol of Zigbee protocol from the electricity Sub- equipment obtains;The ZigBee gateway receives the networking request that the electronic equipment is sent;The ZigBee gateway is based on institute State the ZigBee-network information of the ZigBee-network described in equipment code encryption;The ZigBee gateway is returned to the electronic equipment The ZigBee-network information of the ZigBee-network of encryption is returned, so that the electronic equipment is based on the ZigBee-network information Complete the network connection with the ZigBee gateway.
Fourth aspect, this application provides a kind of network connection configuration methods, which comprises terminal device is based on being different from Second short-range wireless protocol of Zigbee protocol sends the instruction that networks;Electronic equipment receives the networking and instructs, and in response to The networking instruction, based on the ZigBee gateway that Zigbee protocol search is accessible;If the electronic equipment search it is described can The ZigBee gateway of access sends the request that networks to the ZigBee gateway;The ZigBee gateway is returned to the electronic equipment Return ZigBee-network information;The electronic equipment receives the ZigBee-network information that the ZigBee gateway returns;The electronics Equipment is based on the ZigBee-network information and the ZigBee gateway is established and is connected to the network.
5th aspect, this application provides a kind of network connection configuration devices, run on electronic equipment, and described device includes: to refer to Receiving unit is enabled, networks and instructs for reception, the instruction that networks is by terminal device based on second different from Zigbee protocol Short-range wireless protocol is sent;Equipment search unit can be connect for instructing in response to the networking based on Zigbee protocol search The ZigBee gateway entered;Networking request unit, if searching accessible ZigBee gateway, institute for the equipment search unit It states electronic equipment and sends the request that networks to the ZigBee gateway;Information receiving unit is returned for receiving the ZigBee gateway The ZigBee-network information returned;Enter net unit, for establishing net based on the ZigBee-network information and the ZigBee gateway Network connection.
6th aspect, this application provides a kind of network connection configuration devices, run on terminal device, and described device includes: letter Acquiring unit is ceased, for sending ZigBee-network information acquisition request to Cloud Server;The information acquisition unit is also used to connect The ZigBee-network information that the Cloud Server returns is received, the ZigBee-network information is stored in advance by the Cloud Server; Instruction sending unit, for based on being different from the second short-range wireless protocol of Zigbee protocol to the ZigBee net to be added The electronic equipment of network sends the instruction that networks, and the networking instruction carries the ZigBee-network information, so that the electronics is set The standby ZigBee gateway based on ZigBee-network information and the ZigBee-network, which is established, to be connected to the network.
7th aspect, this application provides a kind of network connection configuration devices, run on the ZigBee gateway of ZigBee-network, institute Stating device includes: information acquisition unit, the electronic equipment for the ZigBee-network to be added that receiving terminal apparatus is sent Device code, the device code is by the terminal device based on being different from the second short-range wireless protocol of Zigbee protocol from institute State electronic equipment acquisition;Network connection configuration unit, the networking request sent for receiving the electronic equipment;Encryption unit is used for ZigBee-network information based on the ZigBee-network described in the equipment code encryption;Information transmitting unit is used for described Electronic equipment returns to the ZigBee-network information of the ZigBee-network of encryption, so that the electronic equipment is based on described ZigBee-network information completes the network connection with the ZigBee gateway.
Eighth aspect, this application provides a kind of network system, the network system includes ZigBee gateway, electronic equipment And terminal device;The terminal device sends to network based on the second short-range wireless protocol for being different from Zigbee protocol to be referred to It enables;The electronic equipment receives the networking instruction, and instructs in response to the networking, can access based on Zigbee protocol search ZigBee gateway;If the electronic equipment searches the accessible ZigBee gateway, sent to the ZigBee gateway Network request;The ZigBee gateway returns to ZigBee-network information to the electronic equipment;Described in the electronic equipment receives The ZigBee-network information that ZigBee gateway returns;The electronic equipment is based on the ZigBee-network information and the ZigBee Gateway establishes network connection.
9th aspect, this application provides a kind of electronic equipment, including one or more processors and memory;One Or multiple programs are stored in the memory and are configured as being executed by one or more of processors, it is one or Multiple programs are configured to carry out above-mentioned method.
Tenth aspect, a kind of computer readable storage medium provided by the present application, in the computer readable storage medium It is stored with program code, wherein execute above-mentioned method in said program code operation.
A kind of network connection configuration method, apparatus, electronic equipment and network system provided by the present application, pass through terminal device base The instruction that networks is sent to the electronic equipment of ZigBee-network to be added in other short-range wireless protocols in addition to Zigbee protocol, So that the electronic equipment can instruct in response to the networking after receiving networking instruction, be based on Zigbee protocol The accessible ZigBee gateway of search, if searching the accessible ZigBee gateway, the electronic equipment is to described ZigBee gateway sends the request that networks, and receives the ZigBee-network information that the ZigBee gateway returns in the electronic equipment Afterwards, the electronic equipment is based on the ZigBee-network information and the ZigBee gateway is established and is connected to the network.To make to The electronic equipment that ZigBee-network is added can be added to ZigBee-network by responding the networking instruction of terminal device to trigger, It is triggered without user's being powered on to electronic equipment repeatedly, improves electronic equipment and ZigBee-network is added Efficiency, while the hardware interactivity of electronic equipment is also improved, furthermore also the user experience is improved.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 shows a kind of structural schematic diagram of network system of the application proposition;
Fig. 2 shows a kind of timing diagrams for network connection configuration method that the application proposes;
Fig. 3 shows a kind of schematic diagram of user interface of the application proposition;
Fig. 4 shows the structural block diagram of a kind of electronic equipment of the application proposition;
Fig. 5 shows the timing diagram of another network connection configuration method of the application proposition;
Fig. 6 shows a kind of flow chart of network connection configuration method of the application proposition;
Fig. 7 shows the flow chart of another network connection configuration method of the application proposition;
Fig. 8 shows the flow chart of another network connection configuration method of the application proposition;
Fig. 9 shows a kind of structural block diagram of network connection configuration device of the application proposition;
Figure 10 shows the structural block diagram of another network connection configuration device of the application proposition;
Figure 11 shows the structural block diagram of another network connection configuration device of the application proposition;
Figure 12 shows the electronic equipment for executing the network connection configuration method according to the embodiment of the present application of the application Structural block diagram.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description.Based on the embodiment in the application, those of ordinary skill in the art institute without creative efforts The every other embodiment obtained, shall fall in the protection scope of this application.
ZigBee technology is a kind of short distance, low complex degree, low-power consumption, low rate, the bidirectional wireless communication skill of low cost Art.It is mainly used for carrying out data transmission between the not high various electronic equipments of short, low in energy consumption and transmission rate and typical Have periodic data, intermittent data and low reaction time data transmission application.Briefly, ZigBee be it is a kind of it is high can The wireless data sending network leaned on is similar to CDMA and GSM network.ZigBee digital transmission module is similar to mobile network base station.Communication away from From the 75m from standard to several hundred rice, several kilometers, and support infinite expanding.
And with the development of ZigBee technology, also start in more Internet of things system using ZigBee technology.For example, can To configure a ZigBee gateway in the ZigBee-network constructed based on Zigbee protocol, which can be with router Interaction, so that ZigBee-network is connected to Ethernet, and the electronic equipment to be added to ZigBee-network can by with ZigBee gateway establishes network connection, to be linked into ZigBee-network.
However, inventor has found under study for action, electronic equipment is currently added to the operation during ZigBee-network It is also comparatively laborious and inconvenient.For example, being needed by electronic equipment after from power down to the state powered on for the electronic equipment having, Electronic equipment can be triggered to attempt to establish network connection with ZigBee gateway.And if electronic equipment fails and ZigBee gateway Network connection is established, then power-down state must be switched to electronic equipment again, is then switched to and powers on again, could continue to trigger Electronic equipment goes to attempt to establish with ZigBee gateway to be connected to the network.And for other electronic equipment, it needs to trigger electricity manually After the key being arranged in sub- equipment, it can just trigger electronic equipment and attempt to establish network connection with ZigBee gateway, and then not only make It obtains electronic equipment and is added to the inefficient of ZigBee-network, also reduce user experience.It (describes herein wrong, please refers to friendship Technical background in the book of bottom, sub- equipment, which passes through the RESET key being arranged thereon, can also trigger networking, but there is no disconnected at this time Electricity)
Therefore, ZigBee-network is added in electronic equipment efficiency and promotion can be promoted by inventors herein proposing in the application Network connection configuration method, apparatus, electronic equipment and the network system of user experience.
For the ease of application scheme is described in detail, will first be situated between below in conjunction with attached drawing to the application institute application environment It continues.
As shown in Figure 1, network system 10 as shown in the figure, includes electronic equipment 100, ZigBee net in the network system 10 Close 99 and terminal device 98.Wherein, electronic equipment 100 can establish network company based on Zigbee protocol and ZigBee gateway It connects, to be added in ZigBee-network.In addition, electronic equipment 100 also supports the second short distance different from Zigbee protocol Wireless protocols, to be interacted by the second short-range wireless protocol with terminal device 98.For example, the second short distance can be passed through From control instruction transmitted by wireless protocols receiving terminal apparatus 98, the control instruction can control electronic equipment 100 with ZigBee gateway 99 establishes network connection, or disconnects the network connection having built up.ZigBee gateway 99 and terminal device 98 can connect with router, and are linked into Ethernet by router.For example, ZigBee gateway 99 and terminal device 98 information that can be will acquire are stored into cloud server.
Wherein, it should be noted that the second short-range wireless protocol can be IEEE802.11 agreement, Bluetooth protocol, red Outer agreement or NFC protocol etc..
The embodiment of the present application will be described in detail below.
Referring to Fig. 2, a kind of network connection configuration method provided by the present application, which comprises
Step S110: terminal device sends to network based on the second short-range wireless protocol for being different from Zigbee protocol to be referred to It enables.
Wherein, networking command reception end transmitted by terminal device is the electronic equipment of ZigBee-network to be added.At this There are many modes to send the instruction that networks to electronic equipment with triggering terminal equipment in application.As a kind of mode, terminal device In the application program for having user interface is installed, in this case, user can carry out on user interface Operation, and terminal device can respond the touch control operation of user, and the instruction that networks is sent to electronic equipment, or send and be detached from The instruction of ZigBee-network.
As shown in figure 3, in user interface 97, including equipment selection control 96, equipment pattern displaying control 95 with And the control 93 of network is added and is detached from the control 94 of network.User can select control 96 to select by touch control device Device to be controlled, and after user has selected equipment, it can show that user is selected in equipment pattern displaying control 95 The pattern of equipment, and can be sent out with triggering terminal equipment to selected electronic equipment after triggering the control 93 that network is added in user It is sent into net instruction, and can be sent out with triggering terminal equipment to selected electronic equipment after triggering the control 94 for being detached from network in user Off-grid is sent to instruct.
In this case, terminal device can be determined according to command content into the control instruction that electronic equipment is sent Particular content.For example, if the encapsulation format of control instruction is " #B#+ON+#E# ", then " #B# " therein indicates instruction Beginning, and " ON " indicates this control instruction and instructs to network, if " #E# " therein is the end of instruction, so that electronics Equipment knows that instruction is over.It can be " #B#+OFF that so corresponding controlling electronic devices, which is detached from the instruction of ZigBee-network, + #E# ", therefore, electronic equipment can judge whether current information is control based on whether the information received is above-mentioned format Then instruction determines networking instruction or off-grid instruction according to the content of control instruction middle field.
It should be noted that terminal device can also be other than it can be the equipment such as mobile phone, tablet computer smartwatch, The wearable devices such as bracelet, correspondingly, with the change of device type, user interface can also with equipment and change Become.
In addition, alternatively mode, terminal device can be transmitted into based on the automatic trigger event of setting to trigger Net instruction.For example, if the second short-range wireless protocol used by terminal device is Bluetooth protocol, then terminal device needs elder generation After establishing bluetooth connection between electronic equipment, terminal device carries out letter based on the bluetooth connection and electronic equipment having built up again Breath interaction.So in this case, trigger event can establish bluetooth connection for terminal device and electronic equipment.
Optionally, as a kind of mode, electronic equipment can start broadcast after power-up and carry oneself device identification Bluetooth signal, and terminal device can also start after power-up scan Bluetooth signal, then when terminal device enters electricity When within the scope of the Bluetooth signal of sub- device broadcasts, the Bluetooth signal that electronic equipment is broadcasted can be scanned, electronics is then responding to The Bluetooth signal that equipment is broadcasted is established ACL link with electronic equipment and is connect, and then completes subsequent connection procedure again.So exist In this case, when the Bluetooth signal that terminal device scans to electronic equipment are broadcasted, the response returned to electronic equipment scans knot The information of fruit can be used as networking instruction, from without having been completely set up after bluetooth connection between terminal device and electronic equipment again It goes triggering terminal equipment to send the instruction that networks to electronic equipment, improves the real-time that the instruction that networks is sent.
This mode can be adapted for the mobile phone as user as aforementioned terminals equipment, and electronic equipment is the sky of household Adjust, in the case where projector or other electric appliances, during user's carrying mobile phone is gone back home, can regard as mobile phone enter it is to be added Within the scope of the Bluetooth signal of ZigBee-network electric appliance, then mobile phone, which can trigger to electric appliance, sends networking signal.So that conduct After the electric appliance of aforementioned electronic devices can be within the scope of the Bluetooth signal that terminal device enters its radiation, can just it be added to It interacts in ZigBee-network with the other equipment in ZigBee-network, need to be always held in real time to avoid electronic equipment In ZigBee-network, and then realizes and save electricity.
In addition, alternatively mode, receives the letter of the response scanning result of terminal device return in electronic equipment After breath (can be used as networking instruction), it can first start to search for ZigBee gateway, and between terminal device and electronic equipment Bluetooth connection triggers to the ZigBee gateway again after completely setting up and sends the request that networks.Again alternatively, being received in electronic equipment The information (can be used as networking instruction) for the response scanning result that terminal device returns, and search the ZigBee net for allowing to access Guan Hou can send the request that networks to the ZigBee gateway, and in the ZigBee-network for receiving the return of ZigBee gateway After information, first whether is had built up between detection electronic equipment and terminal device and complete bluetooth connection, if having been completed indigo plant Tooth connection, then electronic equipment can be directly based upon the ZigBee-network information and the ZigBee gateway is established and is connected to the network. To which the efficiency that configuration electronic equipment is added to ZigBee-network can be promoted by aforementioned several ways.
Furthermore in order to further promote the safety of ZigBee-network.Electronic equipment can receive the instruction that networks Afterwards, first the identity of terminal device for sending the instruction that networks can be verified, after having passed through authentication, then to ZigBee Gateway sends the request that networks.As a kind of mode for carrying out authentication, letter of the terminal device in the response scanning result of return When breath, the MAC Address of terminal device can be carried in information, then electronic equipment can first verify whether MAC is success before The MAC Address of the equipment of bluetooth connection was established, or whether is the MAC Address being stored in advance in the electronic device, if it is It was successfully established the MAC Address of the equipment of bluetooth connection before or MAC Address in the electronic device is stored in advance, then sentenced Surely pass through authentication.
In addition, can also lead to other than being communicated in addition to above-mentioned based on Bluetooth protocol between electronic equipment and terminal device Other short-range communication protocols are crossed, such as IEEE802.11a perhaps go back or can be NFC protocol by IEEE802.11b agreement And infrared protocol.
Step S120: electronic equipment receives the networking instruction, and instructs in response to the networking, is based on Zigbee protocol The accessible ZigBee gateway of search.
Wherein, as a kind of mode, as shown in figure 4, electronic equipment 100 may include supporting the first of Zigbee protocol to lead to Believe module, for example, ZigBee module 110, and supports the second communication module of second short-range wireless protocol, such as For bluetooth module 120.And information can be carried out between first communication module and second communication module by way of serial communication Interaction.For example, can be communicated by UART interface.So electronic equipment can by second communication module and terminal device into Row interaction, for example, receiving the instruction that networks.So after second communication module receives networking instruction, it will can network and instruct again It is transmitted to first communication module, and first communication module is instructed in response to the networking again, can be connect based on Zigbee protocol search The ZigBee gateway entered.
In addition, alternatively mode, electronic equipment may include supporting Zigbee protocol simultaneously and being different from The communication module of second short-range wireless protocol of Zigbee protocol, then in this case, as a kind of mode, working as electronics After device power, which is under bluetooth communication mode, so that electronic equipment can be based on by way of bluetooth Terminal device interacts, for example, receiving the instruction that networks.And after receiving networking instruction, then trigger communication module switching To under ZigBee mode, so that electronic equipment can search for accessible ZigBee gateway based on Zigbee protocol.
Step S130: if the electronic equipment searches the accessible ZigBee gateway, to the ZigBee gateway Send the request that networks.
Step S140: the ZigBee gateway returns to ZigBee-network information to the electronic equipment.
Step S150: the electronic equipment receives the ZigBee-network information that the ZigBee gateway returns.
Step S160: the electronic equipment is based on the ZigBee-network information and the ZigBee gateway establishes network company It connects.
As a kind of mode, ZigBee-network information includes first network information and second network information.Wherein, first The network information includes channel, network ID, netkey, and second network information includes short address.In this case, the electricity Sub- equipment receives the ZigBee-network information that the ZigBee gateway returns and refers to that the second network in ZigBee-network information is believed Breath, and for first network information therein, local is stored in after being obtained in advance by mobile terminal, or will be described First network information is sent to the terminal device and is stored in ZigBee-network information.And then with the ZigBee gateway During establishing network connection, mobile terminal be can receive second in the ZigBee-network information that the ZigBee gateway returns The network information, is then based on the first network information and second network information and the ZigBee gateway establishes network company It connects.
A kind of network connection configuration method provided by the present application, allows to pass through sound in the electronic equipment of ZigBee-network to be added It answers the networking of terminal device to instruct and is added to ZigBee-network to trigger, without user's being carried out to electronic equipment repeatedly Electricity is triggered, and the efficiency that ZigBee-network is added in electronic equipment is improved, while the hardware for also improving electronic equipment is handed over Mutual property, furthermore also the user experience is improved.
Referring to Fig. 5, a kind of network connection configuration method provided by the present application, which comprises
Step S210: the device code acquisition request that the electronic equipment receiving terminal apparatus is sent, the device code obtain Request is sent by terminal device based on the second short-range wireless protocol for being different from Zigbee protocol.
Wherein, device code be can be to the information that electronic equipment is uniquely indicated, optionally, device code Install Code。
Step S220: the electronic equipment is to the terminal device returning equipment code.
Step S230: the device code is sent to the ZigBee gateway by the terminal device.
Step S240: the electronic equipment receives the instruction that networks, and the networking instruction is based on being different from by terminal device Second short-range wireless protocol of Zigbee protocol is sent.
Step S250: instructing in response to the networking, based on the ZigBee gateway that Zigbee protocol search is accessible.
Step S260: if searching accessible ZigBee gateway, judge locally whether be stored with ZigBee-network information.
It should be noted that ZigBee-network information includes that channel, network ID, netkey, ZigBee gateway distribute At least one of short address etc..
Step S270: if being stored with ZigBee-network information, ZigBee-network is carried to ZigBee gateway transmission Information, which networks, requests, and is established and be connected to the network based on the ZigBee-network information and the ZigBee gateway.
Step S280: if not stored have ZigBee-network information, the electronic equipment is transmitted into the ZigBee gateway Net request.
Step S290: the electronic equipment receives the ZigBee-network information that the ZigBee gateway returns, wherein ZigBee-network information is that ZigBee gateway is based on the equipment code encryption.
As a kind of mode, ZigBee gateway is using the device code received as code key, then again based on the encryption of setting Algorithm encrypts ZigBee-network information.In addition, alternatively mode, electronic equipment are sent to ZigBee gateway It networks and carries the MAC Address of the electronic equipment in requesting.So in this case, ZigBee gateway can be based on reception Code key of the MAC Address and device code arrived as subsequent encryption.Optionally, device code can be stored in advance in ZigBee gateway With the correspondence table of MAC Address, the corresponding device code and MAC Address for storing same electronic equipment in the correspondence table.In addition, conduct Another mode, when ZigBee gateway receive network request in carry MAC Address after, can by the MAC Address and recently The device code that the terminal device received is sent is identified to belong to same electronic equipment.
Wherein, it should be noted that the longer or included character types of the length of used code key are more, that The consumed time is also longer when encryption, then in this case, when ZigBee gateway receives in networking request After MAC Address, can first judge whether the MAC Address is the electronic equipment for having been added to ZigBee-network before, if It is, then can individually be added using the MAC Address or device code that are carried in the request that networks to ZigBee-network information It is close.And if it is not, as the code key of encryption, and then being promoted after MAC Address and device code being so combined The safety of ZigBee-network.
Step S291: the electronic equipment is based on the ZigBee-network information and the ZigBee gateway establishes network company It connects.
In this application, it other than can be by obtaining ZigBee-network information to Cloud Server, can also be set by terminal Standby to send ZigBee-network information acquisition request to when ZigBee gateway in advance, then ZigBee gateway is by ZigBee-network information It is sent to terminal device, and terminal device is sending the networking instruction for carrying ZigBee-network information to electronic equipment, thus Allow electronic equipment to be directly based upon the ZigBee-network information of acquisition and ZigBee gateway is established and is connected to the network, and can not After initiating networking request to ZigBee gateway with elder generation, after waiting ZigBee gateway to return to ZigBee-network information, further It establishes and is connected to the network with ZigBee gateway.
A kind of network connection configuration method provided by the present application, allows to pass through sound in the electronic equipment of ZigBee-network to be added It answers the networking of terminal device to instruct and is added to ZigBee-network to trigger, and establish network in electronic equipment and ZigBee gateway During connection, ZigBee gateway can the device code based on electronic equipment the network information for being returned to electronic equipment is added It is close, to improve the safety of ZigBee-network.Also, electronic equipment network during do not need user repeatedly to electricity Sub- equipment is powered on to be triggered, and improves the efficiency that ZigBee-network is added in electronic equipment, while also improving electronics The hardware interactivity of equipment, furthermore also the user experience is improved.
Referring to Fig. 6, a kind of network connection configuration method provided by the present application, is applied to electronic equipment, which comprises
Step S310: the electronic equipment receives the instruction that networks, and the networking instruction is based on being different from by terminal device Second short-range wireless protocol of Zigbee protocol is sent.
Step S320: instructing in response to the networking, based on the ZigBee gateway that Zigbee protocol search is accessible.
Step S330: if searching accessible ZigBee gateway, the electronic equipment is sent to the ZigBee gateway Network request.
Step S340: the electronic equipment receives the ZigBee-network information that the ZigBee gateway returns.
Step S350: the electronic equipment is based on the ZigBee-network information and the ZigBee gateway establishes network company It connects.
A kind of network connection configuration method provided by the present application, allows to pass through sound in the electronic equipment of ZigBee-network to be added It answers the networking of terminal device to instruct and is added to ZigBee-network to trigger, without user's being carried out to electronic equipment repeatedly Electricity is triggered, and the efficiency that ZigBee-network is added in electronic equipment is improved, while the hardware for also improving electronic equipment is handed over Mutual property, furthermore also the user experience is improved.
Referring to Fig. 7, a kind of network connection configuration method provided by the present application, is applied to terminal device, which comprises
Step S410: the terminal device sends ZigBee-network information acquisition request to Cloud Server.
Wherein, as a kind of mode, terminal device networks after instruction receiving the electronic equipment that user triggers manually, to Cloud Server sends ZigBee-network information acquisition request.Or be also referred to described in previous embodiment, terminal device is being examined After measuring electronic equipment scan request transmitted during broadcasting Bluetooth signal, it can start to send to Cloud Server ZigBee-network information acquisition request.
It should be noted that can store the ZigBee-network information of multiple ZigBee-networks in server, then conduct A kind of mode, server can be determined currently by ZigBee-network by the corresponding public network IP of ZigBee-network information The requested ZigBee-network information of terminal device be stored which of ZigBee-network information.
For example, being taken when terminal device uploads ZigBee-network information to server into data transmitted by server Band source IP address and source MAC (based in the case where TCI/IP protocol communication), then the source IP address is to be connect The Ethernet entered distributes to the public network IP with ZigBee gateway with the router in a local area network.So server is storing When ZigBee-network information, the public network IP, source MAC and ZigBee-network information can be subjected to corresponding storage.So After server receives ZigBee-network information acquisition request, source IP address and source MAC can be therefrom extracted, so Locally searching ZigBee-network information corresponding with the source IP address and source MAC again afterwards.
It should be noted that the public network IP that Ethernet distributes to router might have change as a kind of mode.So As a kind of mode, server can be only by source MAC storage corresponding with the progress of ZigBee-network information.
Step S420: the terminal device receives the ZigBee-network information that the Cloud Server returns, the ZigBee The network information is stored in advance by the Cloud Server.
It should be noted that the ZigBee-network information that Cloud Server is stored uploads after being obtained by terminal device, Cloud Server is uploaded to after can also being obtained by electronic equipment, it can also be by ZigBee gateway active reporting to Cloud Server.
Step S430: the terminal device is based on being different from the second short-range wireless protocol of Zigbee protocol to be added The electronic equipment of the ZigBee-network sends the instruction that networks, and the networking instruction carries the ZigBee-network information, with Toilet states electronic equipment and establishes network connection based on the ZigBee gateway of ZigBee-network information and the ZigBee-network.
A kind of network connection configuration method provided by the present application, allows to pass through sound in the electronic equipment of ZigBee-network to be added It answers the networking of terminal device to instruct and is added to ZigBee-network to trigger, and terminal device can be obtained to Cloud Server in advance Then ZigBee-network information increases in networking instruction, then electronic equipment can be directly after receiving networking instruction, directly It connects to establish with ZigBee gateway and be connected to the network, improve the efficiency that ZigBee-network is added in electronic equipment, while also improving electricity The hardware interactivity of sub- equipment, furthermore also the user experience is improved.
Referring to Fig. 8, a kind of network connection configuration method provided by the present application, applied to the ZigBee gateway of ZigBee-network, The described method includes:
Step S510: the electronics for the ZigBee-network to be added that the ZigBee gateway receiving terminal apparatus is sent is set Standby device code, the device code by the terminal device based on be different from Zigbee protocol the second short-range wireless protocol from The electronic equipment obtains.
Step S520: the ZigBee gateway receives the networking request that the electronic equipment is sent.
Step S530: ZigBee net of the ZigBee gateway based on the ZigBee-network described in the equipment code encryption Network information.
Step S540: the ZigBee gateway returns to the ZigBee of the ZigBee-network of encryption to the electronic equipment The network information, so that the electronic equipment is completed to connect with the network of the ZigBee gateway based on the ZigBee-network information It connects.
Referring to Fig. 9, a kind of network connection configuration device 600 provided by the present application, runs on electronic equipment, described device 600 It include: instruction receiving unit 610, equipment search unit 620, networking request unit 630, information receiving unit 640 and networking Unit 650.
Instruction receiving unit 610, for receiving the instruction that networks, the networking instruction is based on being different from by terminal device Second short-range wireless protocol of Zigbee protocol is sent.
Equipment search unit 620 can access for instructing in response to the networking based on Zigbee protocol search ZigBee gateway.
Wherein, as a kind of mode, electronic equipment may include the first communication module and branch for supporting Zigbee protocol Hold the second communication module of second short-range wireless protocol.And it can lead between first communication module and second communication module The mode for crossing serial communication carries out information exchange.For example, can be communicated by UART interface.So electronic equipment can pass through Second communication module is interacted with terminal device, for example, receiving the instruction that networks.So when second communication module receives networking After instruction, the instruction that will can network again is transmitted to first communication module, and first communication module is instructed in response to the networking again, Based on the ZigBee gateway that Zigbee protocol search is accessible.
In addition, alternatively mode, electronic equipment may include supporting Zigbee protocol simultaneously and being different from The communication module of second short-range wireless protocol of Zigbee protocol, then in this case, as a kind of mode, working as electronics After device power, which is under bluetooth communication mode, so that electronic equipment can be based on by way of bluetooth Terminal device interacts, for example, receiving the instruction that networks.And after receiving networking instruction, then trigger communication module switching To under ZigBee mode, so that electronic equipment can search for accessible ZigBee gateway based on Zigbee protocol.
Networking request unit 630, if searching accessible ZigBee gateway, the electricity for the equipment search unit Sub- equipment sends the request that networks to the ZigBee gateway.
Information receiving unit 640, the ZigBee-network information returned for receiving the ZigBee gateway;
Enter net unit 650, is connected to the network for being established based on the ZigBee-network information and the ZigBee gateway.
Referring to Fig. 10, a kind of network connection configuration device 700 provided by the present application, runs on terminal device, described device 700 It include: information acquisition unit 710 and instruction sending unit 720.
Information acquisition unit 710, for sending ZigBee-network information acquisition request to Cloud Server.
The information acquisition unit 710 is also used to receive the ZigBee-network information that the Cloud Server returns, described ZigBee-network information is stored in advance by the Cloud Server.
Instruction sending unit 720, for based on being different from the second short-range wireless protocol of Zigbee protocol to be added The electronic equipment of the ZigBee-network sends the instruction that networks, and the networking instruction carries the ZigBee-network information, with Toilet states electronic equipment and establishes network connection based on the ZigBee gateway of ZigBee-network information and the ZigBee-network.
Figure 11 is please referred to, a kind of network connection configuration device 800 provided by the present application runs on the ZigBee net of ZigBee-network It closes, described device 800 includes: that information acquisition unit 810, network connection configuration unit 820, encryption unit 830 and information send list Member 840.
Information acquisition unit 810, the electronic equipment for the ZigBee-network to be added that receiving terminal apparatus is sent Device code, the device code is by the terminal device based on being different from the second short-range wireless protocol of Zigbee protocol from institute State electronic equipment acquisition;
Network connection configuration unit 820, the networking request sent for receiving the electronic equipment.
Wherein, device code be can be to the information that electronic equipment is uniquely indicated, optionally, device code Install Code。
Encryption unit 830, for the ZigBee-network information based on the ZigBee-network described in the equipment code encryption.
As a kind of mode, ZigBee gateway is using the device code received as code key, then again based on the encryption of setting Algorithm encrypts ZigBee-network information.In addition, alternatively mode, electronic equipment are sent to ZigBee gateway It networks and carries the MAC Address of the electronic equipment in requesting.So in this case, ZigBee gateway can be based on reception Code key of the MAC Address and device code arrived as subsequent encryption.Optionally, device code can be stored in advance in ZigBee gateway With the correspondence table of MAC Address, the corresponding device code and MAC Address for storing same electronic equipment in the correspondence table.In addition, conduct Another mode, when ZigBee gateway receive network request in carry MAC Address after, can by the MAC Address and recently The device code that the terminal device received is sent is identified to belong to same electronic equipment.
Wherein, it should be noted that the longer or included character types of the length of used code key are more, that The consumed time is also longer when encryption, then in this case, when ZigBee gateway receives in networking request After MAC Address, can first judge whether the MAC Address is the electronic equipment for having been added to ZigBee-network before, if It is, then can individually be added using the MAC Address or device code that are carried in the request that networks to ZigBee-network information It is close.And if it is not, as the code key of encryption, and then being promoted after MAC Address and device code being so combined The safety of ZigBee-network.
Information transmitting unit 840, the ZigBee net of the ZigBee-network for returning to encryption to the electronic equipment Network information, the network connection so as to the electronic equipment based on ZigBee-network information completion and the ZigBee gateway.
It should be noted that it is apparent to those skilled in the art that, for convenience and simplicity of description, on The device of description and the specific work process of unit are stated, can refer to corresponding processes in the foregoing method embodiment, herein no longer It repeats.
In conclusion a kind of network connection configuration method, apparatus, electronic equipment and network system provided by the present application, pass through Terminal device is sent out based on other short-range wireless protocols in addition to Zigbee protocol to the electronic equipment of ZigBee-network to be added It is sent into net instruction, so that the electronic equipment can be instructed in response to the networking, be based on after receiving networking instruction The accessible ZigBee gateway of Zigbee protocol search, if searching the accessible ZigBee gateway, the electronic equipment The request that networks is sent to the ZigBee gateway, and receives the ZigBee net that the ZigBee gateway returns in the electronic equipment After network information, the electronic equipment is based on the ZigBee-network information and the ZigBee gateway is established and is connected to the network.To Allow to be added in the electronic equipment of ZigBee-network to be added by responding the networking instruction of terminal device to trigger ZigBee-network is triggered without user's being powered on to electronic equipment repeatedly, improves electronic equipment addition The efficiency of ZigBee-network, while the hardware interactivity of electronic equipment is also improved, furthermore also the user experience is improved.
A kind of electronic equipment provided by the present application is illustrated below in conjunction with Figure 12.
Figure 12 is please referred to, based on above-mentioned network connection configuration method, apparatus, the another kind that the embodiment of the present application also provides can be with Execute the electronic equipment 100 of aforementioned network connection configuration method.Electronic equipment 100 include the one or more that intercouples (in figure only Show one) processor 102, memory 104 and wireless module 106.Wherein, it is stored with and can execute in the memory 104 The program of content in previous embodiment, and processor 102 can execute the program stored in the memory 104.The electronic equipment 100 can be the equipment such as intelligent socket, intelligent sound, air purifier, water purifier, sensor.
The wireless module 106 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, from And it is communicated with communication network or other equipment.The wireless module 106 may include various existing for executing these The circuit element of function, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, memory etc..The wireless module 106 can be communicated with various wireless networks.Above-mentioned wireless network can wrap Include cellular telephone networks, WLAN or Metropolitan Area Network (MAN).Above-mentioned wireless network can be used various communication standards, agreement and Technology, including but not limited to global system for mobile communications (Global System for Mobile Communication, GSM) 802 agreement of IEEE, Bluetooth protocol, infrared protocol or RFID protocol etc..Wherein, as a kind of mode, the wireless module 106 can be provided simultaneously with function of Bluetooth communication and ZigBee communication function.Or wireless module 106 includes that can pass through serial ports The bluetooth module and ZigBee module communicated.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic equipment), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.In addition, in each embodiment of the application In each functional unit can integrate in a processing module, be also possible to each unit and physically exist alone, can also two A or more than two units are integrated in a module.Above-mentioned integrated module both can take the form of hardware realization, can also It is realized in the form of using software function module.If the integrated module realized in the form of software function module and as Independent product when selling or using, also can store in a computer readable storage medium.Storage mentioned above Medium can be read-only memory, disk or CD etc..
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although The application is described in detail with reference to the foregoing embodiments, those skilled in the art are when understanding: it still can be with It modifies the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;And These are modified or replaceed, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit and Range.

Claims (18)

1. a kind of network connection configuration method, which is characterized in that be applied to electronic equipment, which comprises
The electronic equipment reception, which networks, to be instructed, and the instruction that networks is by terminal device based on second different from Zigbee protocol Short-range wireless protocol is sent;
It is instructed in response to the networking, based on the ZigBee gateway that Zigbee protocol search is accessible;
If searching accessible ZigBee gateway, the electronic equipment sends the request that networks to the ZigBee gateway;
The electronic equipment receives the ZigBee-network information that the ZigBee gateway returns;
The electronic equipment is based on the ZigBee-network information and the ZigBee gateway is established and is connected to the network.
2. the method according to claim 1, wherein the electronic equipment receives what the ZigBee gateway returned The step of ZigBee-network information includes:
The electronic equipment receives the ZigBee-network information for the encryption that the ZigBee gateway returns;
The electronic equipment is based on the ZigBee-network information with the step of ZigBee gateway foundation network connection
The electronic equipment is based on the ZigBee-network information and ZigBee gateway foundation network connection after decryption.
3. according to the method described in claim 2, it is characterized in that, the ZigBee-network information of the encryption of the return is described ZigBee gateway is obtained based on the equipment code encryption of the electronic equipment;The electronic equipment is based on the ZigBee after decryption The network information establishes the step of being connected to the network with the ZigBee gateway
The electronic equipment is decrypted based on ZigBee-network information of the device code of itself to the encryption of the return;
The electronic equipment is based on the ZigBee-network information and ZigBee gateway foundation network connection after decryption.
4. according to the method described in claim 2, it is characterized in that, the request that networks carries the MAC of the electronic equipment Address, the ZigBee-network information are equipment of the ZigBee gateway based on the MAC Address and the electronic equipment Code encryption;
The electronic equipment establishes network connection with the ZigBee gateway based on the ZigBee-network information after decryption Step includes:
The electronic equipment solves the ZigBee-network information for receiving encryption based on itself MAC Address and device code It is close, the ZigBee-network information after being decrypted;
The electronic equipment is based on the ZigBee-network information and ZigBee gateway foundation network connection after the decryption.
5. the method according to claim 3 or 4, which is characterized in that the electronic equipment receive the step of networking instruction it Before further include:
The device code acquisition request that the electronic equipment receiving terminal apparatus is sent, the device code acquisition request is by terminal device It is sent based on the second short-range wireless protocol for being different from Zigbee protocol;
The electronic equipment is to the terminal device returning equipment code, so that the device code is sent to institute by the terminal device State ZigBee gateway.
6. the method according to claim 1, wherein the electronic equipment includes support Zigbee protocol first Communication module and the second communication module for supporting second short-range wireless protocol;It is described to be instructed in response to the networking, Searching for accessible ZigBee gateway step includes:
Received networking instruction is transferred to the first communication module by the second communication module;
The first communication module starts the accessible ZigBee gateway of search after receiving the networking instruction.
7. being searched for accessible the method according to claim 1, wherein described instruct in response to the networking The step of ZigBee gateway includes:
The electronic equipment is instructed in response to the networking, and communication pattern is switched to ZigBee communication mode;
It is switched to the accessible ZigBee gateway of the electronic equipment search of ZigBee communication mode.
8. the method according to claim 1, wherein the method also includes:
First network information in the ZigBee-network information is stored in local by the electronic equipment, or by the ZigBee First network information is sent to the terminal device and is stored in the network information;The electronic equipment receives the ZigBee net The ZigBee-network information returned is closed, the electronic equipment is based on the ZigBee-network information and the ZigBee gateway is established The step of network connection includes:
The electronic equipment receives second network information in the ZigBee-network information that the ZigBee gateway returns;
The electronic equipment is based on the first network information and second network information and the ZigBee gateway establishes net Network connection.
9. a kind of network connection configuration method, which is characterized in that be applied to terminal device, which comprises
The terminal device sends ZigBee-network information acquisition request to Cloud Server;
The terminal device receives the ZigBee-network information that the Cloud Server returns, and the ZigBee-network information is by described Cloud Server is stored in advance;
The terminal device is based on being different from the second short-range wireless protocol of Zigbee protocol to the ZigBee net to be added The electronic equipment of network sends the instruction that networks, and the networking instruction carries the ZigBee-network information, so that the electronics is set The standby ZigBee gateway based on ZigBee-network information and the ZigBee-network, which is established, to be connected to the network.
10. a kind of network connection configuration method, which is characterized in that the ZigBee gateway applied to ZigBee-network, which comprises
The device code of the electronic equipment for the ZigBee-network to be added that the ZigBee gateway receiving terminal apparatus is sent, institute Device code is stated by the terminal device based on being different from the second short-range wireless protocol of Zigbee protocol from the electronic equipment It obtains;
The ZigBee gateway receives the networking request that the electronic equipment is sent;
ZigBee-network information of the ZigBee gateway based on ZigBee-network described in the equipment code encryption;
The ZigBee gateway returns to the ZigBee-network information of the ZigBee-network of encryption to the electronic equipment, so as to The electronic equipment completes the network connection with the ZigBee gateway based on the ZigBee-network information.
11. according to the method described in claim 10, it is characterized in that, networking request carries the electronic equipment MAC Address;The ZigBee gateway based on ZigBee-network described in the equipment code encryption ZigBee-network information the step of Include:
The ZigBee gateway encrypts the ZigBee-network of the ZigBee-network based on the device code and the MAC Address Information.
12. a kind of network connection configuration method, which is characterized in that the described method includes:
Terminal device sends the instruction that networks based on the second short-range wireless protocol for being different from Zigbee protocol;
Electronic equipment receives the networking instruction, and instructs in response to the networking, can access based on Zigbee protocol search ZigBee gateway;
If the electronic equipment searches the accessible ZigBee gateway, the request that networks is sent to the ZigBee gateway;
The ZigBee gateway returns to ZigBee-network information to the electronic equipment;
The electronic equipment receives the ZigBee-network information that the ZigBee gateway returns;
The electronic equipment is based on the ZigBee-network information and the ZigBee gateway is established and is connected to the network.
13. a kind of network connection configuration device, which is characterized in that run on electronic equipment, described device includes:
Instruction receiving unit, for receiving the instruction that networks, the networking instruction is based on being different from Zigbee protocol by terminal device The second short-range wireless protocol send;
Equipment search unit, for being instructed in response to the networking, based on the ZigBee gateway that Zigbee protocol search is accessible;
Networking request unit, if searching accessible ZigBee gateway, the electronic equipment for the equipment search unit The request that networks is sent to the ZigBee gateway;
Information receiving unit, the ZigBee-network information returned for receiving the ZigBee gateway;
Enter net unit, is connected to the network for being established based on the ZigBee-network information and the ZigBee gateway.
14. a kind of network connection configuration device, which is characterized in that run on terminal device, described device includes:
Information acquisition unit, for sending ZigBee-network information acquisition request to Cloud Server;
The information acquisition unit is also used to receive the ZigBee-network information that the Cloud Server returns, the ZigBee net Network information is stored in advance by the Cloud Server;
Instruction sending unit, for based on being different from the second short-range wireless protocol of Zigbee protocol to be added described The electronic equipment of ZigBee-network sends the instruction that networks, and the networking instruction carries the ZigBee-network information, with toilet It states electronic equipment and network connection is established based on the ZigBee gateway of ZigBee-network information and the ZigBee-network.
15. a kind of network connection configuration device, which is characterized in that run on the ZigBee gateway of ZigBee-network, described device includes:
Information acquisition unit, the equipment of the electronic equipment of the ZigBee-network to be added for receiving terminal apparatus transmission Code, the device code is by the terminal device based on being different from the second short-range wireless protocol of Zigbee protocol from the electronics Equipment obtains;
Network connection configuration unit, the networking request sent for receiving the electronic equipment;
Encryption unit, for the ZigBee-network information based on the ZigBee-network described in the equipment code encryption;
Information transmitting unit, the ZigBee-network information of the ZigBee-network for returning to encryption to the electronic equipment, Network connection so as to the electronic equipment based on ZigBee-network information completion and the ZigBee gateway.
16. a kind of network system, which is characterized in that the network system includes that ZigBee gateway, electronic equipment and terminal are set It is standby;
The terminal device sends the instruction that networks based on the second short-range wireless protocol for being different from Zigbee protocol;
The electronic equipment receives the networking instruction, and instructs in response to the networking, can be connect based on Zigbee protocol search The ZigBee gateway entered;
If the electronic equipment searches the accessible ZigBee gateway, the request that networks is sent to the ZigBee gateway;
The ZigBee gateway returns to ZigBee-network information to the electronic equipment;
The electronic equipment receives the ZigBee-network information that the ZigBee gateway returns;
The electronic equipment is based on the ZigBee-network information and the ZigBee gateway is established and is connected to the network.
17. a kind of electronic equipment, which is characterized in that including one or more processors and memory;
One or more programs are stored in the memory and are configured as being executed by one or more of processors, institute It states one or more programs and is configured to carry out method described in any method or 9 of claim 1-8 or 10-11 Method described in one.
18. a kind of computer readable storage medium, which is characterized in that be stored with program generation in the computer readable storage medium Code, wherein perform claim requires method or 10- described in any method or 9 of 1-8 in said program code operation 11 any methods.
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 true CN109348458A (en) 2019-02-15
CN109348458B 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)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110430557A (en) * 2019-06-21 2019-11-08 深圳绿米联创科技有限公司 Method, apparatus, system, electronic equipment and the storage medium that equipment networks
CN110740490A (en) * 2019-10-22 2020-01-31 深圳市信锐网科技术有限公司 Terminal network access method, gateway equipment, system, storage medium and device
CN110933825A (en) * 2019-10-25 2020-03-27 深圳市轩火部落科技有限公司 Communication control method of rescue equipment and related product
CN110972080A (en) * 2019-11-29 2020-04-07 广东科徕尼智能科技有限公司 ZigBee gateway searching method, equipment and storage medium
CN111818494A (en) * 2020-06-23 2020-10-23 博流智能科技(南京)有限公司 Zigbee network access method and network access system based on BLE
CN112165477A (en) * 2020-09-22 2021-01-01 广州河东科技有限公司 Gateway searching method and device, electronic equipment and storage medium
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
CN113225732A (en) * 2020-01-21 2021-08-06 深圳市云海物联科技有限公司 Data transmission method and device and terminal equipment
CN113300473A (en) * 2021-06-22 2021-08-24 武汉领普科技有限公司 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
CN113612845A (en) * 2021-08-03 2021-11-05 美智光电科技股份有限公司 Distribution network control method, distribution network control device, mobile terminal, equipment, distribution network control system and storage medium
CN113676850A (en) * 2021-08-24 2021-11-19 深圳市美科星通信技术有限公司 Network roaming method, terminal device, gateway and computer readable storage medium
CN113709743A (en) * 2021-08-04 2021-11-26 深圳市海曼科技股份有限公司 Zigbee network-based equipment network access method and system
CN114007276A (en) * 2021-10-27 2022-02-01 杭州萤石软件有限公司 Network access processing method, device, equipment and system of ZigBee network
CN114125883A (en) * 2020-09-01 2022-03-01 美的智慧家居科技有限公司 Network access method and device of intelligent device, electronic 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
CN114501439A (en) * 2022-01-07 2022-05-13 厦门盈趣科技股份有限公司 Intelligent device network access method, system, device and storage medium
CN114554522A (en) * 2022-01-29 2022-05-27 青岛海尔科技有限公司 Equipment control method and device, electronic equipment and medium
US11417159B2 (en) 2019-08-02 2022-08-16 Yunding Network Technology (Beijing) Co., Ltd. Methods and systems for controlling a smart lock

Citations (7)

* 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
CN106793001A (en) * 2017-01-19 2017-05-31 深圳市民益得信息科技有限公司 A kind of cordless communication network network-building method and device
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

Patent Citations (7)

* 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
CN106793001A (en) * 2017-01-19 2017-05-31 深圳市民益得信息科技有限公司 A kind of cordless communication network network-building method and device

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110430557A (en) * 2019-06-21 2019-11-08 深圳绿米联创科技有限公司 Method, apparatus, system, electronic equipment and the storage medium that equipment networks
US11928904B2 (en) 2019-08-02 2024-03-12 Yunding Network Technology (Beijing) Co., Ltd. Methods and systems for controlling a smart lock
CN112399410A (en) * 2019-08-02 2021-02-23 云丁网络技术(北京)有限公司 Method, apparatus, computer readable medium and device for secure communication
US11417159B2 (en) 2019-08-02 2022-08-16 Yunding Network Technology (Beijing) Co., Ltd. Methods and systems for controlling a smart lock
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
CN110933825A (en) * 2019-10-25 2020-03-27 深圳市轩火部落科技有限公司 Communication control method of rescue equipment and related product
CN110972080A (en) * 2019-11-29 2020-04-07 广东科徕尼智能科技有限公司 ZigBee gateway searching method, equipment and storage medium
CN113225732A (en) * 2020-01-21 2021-08-06 深圳市云海物联科技有限公司 Data transmission method and device and terminal equipment
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
CN114125883A (en) * 2020-09-01 2022-03-01 美的智慧家居科技有限公司 Network access method and device of intelligent device, electronic device and storage medium
CN112165477A (en) * 2020-09-22 2021-01-01 广州河东科技有限公司 Gateway searching method and device, electronic equipment and storage medium
CN113300473A (en) * 2021-06-22 2021-08-24 武汉领普科技有限公司 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
CN113612845A (en) * 2021-08-03 2021-11-05 美智光电科技股份有限公司 Distribution network control method, distribution network control device, mobile terminal, equipment, distribution network control system 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
CN113676850A (en) * 2021-08-24 2021-11-19 深圳市美科星通信技术有限公司 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
CN114554522A (en) * 2022-01-29 2022-05-27 青岛海尔科技有限公司 Equipment control method and device, electronic equipment and medium
CN114554522B (en) * 2022-01-29 2023-12-19 青岛海尔科技有限公司 Equipment control method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN109348458B (en) 2022-09-09

Similar Documents

Publication Publication Date Title
CN109348458A (en) Network connection configuration method, apparatus, electronic equipment and network system
US11109185B2 (en) Mesh network and mesh device and network distribution method thereof
CN103648181B (en) Wireless network connection method for wireless network audio equipment
WO2019029271A1 (en) Network assigning method and apparatus, storage medium, terminal, and home appliance
CN107465584A (en) Method for network access and device, the intelligent appliance of intelligent appliance
CN111132135B (en) Wireless network distribution method and system for intelligent home terminal
CN111757356A (en) Equipment distribution network system and distribution network method thereof
CN103618670A (en) Intelligent gateway and intelligent home system
CN110839271B (en) Equipment connection method, system, platform and corresponding equipment
CN106789468A (en) A kind of appliances equipment control method and system based on intelligent terminal
CN107222372A (en) A kind of method for sending information and equipment
CN108781473B (en) Method and equipment for sharing files among different terminals
CN105392185B (en) A kind of networking method of smart machine, apparatus and system
CN105612805A (en) Communication method, communication system and relevant device of wearable device
CN104200632A (en) Method and system for achieving remote control function through wearable equipment with combination of intelligent mobile terminal
CN106255176A (en) The method that smart machine is accessed wireless network
CN106341782A (en) Mobile terminal and household electric appliance communication method and system
CN104994527A (en) Method for intelligent household electrical appliance to access router, intelligent household electrical appliance and mobile terminal
CN105208583A (en) Intelligent household electrical appliance networking method and apparatus, and intelligent equipment
CN105636159A (en) Configuration method and apparatus for connection between electrical appliance and wireless router and mobile communication terminal
CN108449770A (en) A kind of Intelligent hardware Wifi matches net mode
CN104640122A (en) Wireless networking method of router and trunk equipment
CN105227594A (en) Document transmission method, Apparatus and system
CN105163371A (en) WIFI setting system and method based on Bluetooth
CN109996260A (en) Configuration system, client device, embedded device configuration method and storage 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