CN114143129B - Gateway batch networking method, device, equipment and storage medium - Google Patents

Gateway batch networking method, device, equipment and storage medium Download PDF

Info

Publication number
CN114143129B
CN114143129B CN202010808668.4A CN202010808668A CN114143129B CN 114143129 B CN114143129 B CN 114143129B CN 202010808668 A CN202010808668 A CN 202010808668A CN 114143129 B CN114143129 B CN 114143129B
Authority
CN
China
Prior art keywords
network access
network
gateway
information
access message
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
CN202010808668.4A
Other languages
Chinese (zh)
Other versions
CN114143129A (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 CN202010808668.4A priority Critical patent/CN114143129B/en
Publication of CN114143129A publication Critical patent/CN114143129A/en
Application granted granted Critical
Publication of CN114143129B publication Critical patent/CN114143129B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • H04L12/2858Access network architectures
    • H04L12/2859Point-to-point connection between the data network and the subscribers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources

Abstract

The embodiment of the invention provides a gateway batch networking method, device, equipment and storage medium, wherein the method comprises the steps of obtaining networking messages triggering gateway equipment to network, wherein the networking messages comprise network identity information and networking identity verification information; adding the current network based on the network access message, and executing a network access flow according to the network identity information and the network access identity verification information; broadcasting the network access message to non-network access gateway equipment within a set range through an inter-network communication technology so that the non-network access gateway equipment can be added into a current network based on the network access message. Broadcasting to other gateways through gateway equipment by an inter-network communication technology, triggering all the gateways to perform network access processes almost simultaneously, and achieving the purposes of automatic network access of the gateways in batches and simplifying network access operation.

Description

Gateway batch networking method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of intelligent home, in particular to a gateway batch networking method, a gateway batch networking device, gateway equipment, terminal equipment and a computer readable storage medium.
Background
Today, the Internet of things is developing at a high speed, smart home devices are becoming more and more popular, and there is a heavyweight role, namely, smart home gateway, which is used as a connection and control center for other smart home devices to connect and finally connect all the smart home devices to the network (Internet).
Currently, the mainstream wireless communication protocol of the smart home gateway is WI-FI, zigbee, BLE and the like. For example, the intelligent gateway with WI-FI and Zigbee needs to perform network access configuration operation, so that the intelligent gateway can be connected to the Internet, finally connected to a cloud server, and associated binding with a certain user account is completed, so as to control the gateway and Zigbee devices in the Zigbee network by the mobile phone terminal App. The known gateway equipment performs the network access process, namely the gateway equipment is configured one by one through the mobile phone terminal, the router and the network are connected after the gateway equipment receives the configuration information, and network access processes such as registration, account binding and the like of the gateway equipment are completed, so that the network access operation for a plurality of gateway equipment is multiple in steps, long in operation time and low in efficiency.
Disclosure of Invention
In order to solve the existing technical problems, the embodiment of the invention provides a gateway batch networking method, a gateway device, a terminal device and a computer readable storage medium, wherein the gateway batch networking method and the device are easy to operate and can efficiently access to the network.
In order to achieve the above object, the technical solution of the embodiment of the present invention is as follows:
in a first aspect, an embodiment of the present invention provides a method for batch network access of a gateway, which is applied to a gateway device, and includes: acquiring a network access message triggering network access of gateway equipment, wherein the network access message comprises network identity information and network access identity verification information; adding the current network based on the network access message, and executing a network access flow according to the network identity information and the network access identity verification information; broadcasting the network access message to non-network access gateway equipment within a set range through an inter-network communication technology so that the non-network access gateway equipment can be added into a current network based on the network access message.
In a second aspect, an embodiment of the present invention provides a gateway batch networking method, which is applied to a terminal device, and includes: acquiring network access configuration information of current gateway equipment, wherein the network access configuration information comprises network identity information and network access identity verification information; and forming a network access operation instruction carrying a network access message according to the network access configuration information and sending the network access operation instruction to the current gateway equipment so that the current gateway equipment can join the current network based on the network access message, executing a network access process according to the network identity information and the network access identity verification information, and broadcasting the network access message to non-network access gateway equipment within a set range through an inter-network communication technology.
In a third aspect, an embodiment of the present invention provides a gateway batch network access device, including: the acquisition module is used for acquiring a network access message triggering the gateway equipment to access the network, wherein the network access message comprises network identity information and network access identity verification information; the network access module is used for adding the current network based on the network access message and executing a network access flow according to the network identity information and the network access identity verification information; and the broadcasting module is used for broadcasting the network access message to the non-network access gateway equipment within the setting range through the inter-network communication technology so that the non-network access gateway equipment can be added into the current network based on the network access message.
In a fourth aspect, an embodiment of the present invention provides a gateway batch network access device, including: the configuration module is used for acquiring network access configuration information of the current gateway equipment, wherein the network access configuration information comprises network identity information and network access identity verification information; and the sending module is used for forming a network access operation instruction carrying a network access message according to the network access configuration information and sending the network access operation instruction to the current gateway equipment so that the current gateway equipment can add the current network based on the network access message, execute a network access process according to the network identity information and the network access identity verification information, and broadcast the network access message to the gateway equipment which is not accessed in the set range through an inter-network communication technology.
In a fifth aspect, an embodiment of the present invention provides a gateway device, including a memory for storing a computer program and at least one processor, where when the processor runs the computer program, the method for gateway batch network access applied to a gateway device side according to any embodiment of the present invention is executed.
In a sixth aspect, an embodiment of the present invention provides a terminal device, including a display module, a memory, and at least one processor, where the memory stores a computer program, and when the processor runs the computer program, the method for gateway batch network access applied to a terminal device side according to any embodiment of the present invention is executed.
In a seventh aspect, an embodiment of the present invention provides a computer readable storage medium, where a computer program code is stored, where the computer program code implements the gateway batch networking method according to any embodiment of the present invention when loaded and executed by a processor.
According to the gateway batch networking method, the device, the gateway equipment, the terminal equipment and the computer readable storage medium, the gateway equipment acquires the networking message containing the network identity information and the networking identity verification information, the networking message is added into the network based on the networking message, the networking message can be broadcasted to the non-networking gateway equipment within the set range through the inter-network communication technology, so that the non-networking gateway equipment can be added into the current network based on the networking message, the gateway equipment can communicate with other gateway equipment based on the inter-network communication, the networking configuration can be broadcasted to the plurality of non-networking gateway equipment at the same time, the rapid batch networking of the multi-gateway equipment is realized, the independent networking operation is not required to be carried out on the plurality of gateway equipment one by one through the mobile phone terminal, the networking operation flow aiming at the plurality of gateway equipment is greatly simplified, and the networking efficiency is effectively improved.
Drawings
Fig. 1 is an application scenario diagram of a gateway batch networking method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a gateway batch networking method according to an embodiment of the invention;
FIG. 3 is a flowchart of a gateway batch networking method according to another embodiment of the present invention;
FIG. 4 is a flowchart of a gateway batch networking method according to another embodiment of the present invention;
FIG. 5 is a flowchart of a gateway batch networking method according to another embodiment of the present invention;
FIG. 6 is a flowchart of a gateway batch networking method according to another embodiment of the present invention;
FIG. 7 is a flowchart of a gateway batch networking method according to another embodiment of the present invention;
fig. 8 is a schematic block diagram of a gateway batch networking device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a gateway device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a terminal device according to another embodiment of the present invention;
fig. 12 is a schematic block diagram of a gateway batch networking device according to another embodiment of the present invention;
fig. 13 is a timing diagram of a gateway batch networking method according to an embodiment of the invention.
Detailed Description
The technical scheme of the invention is further elaborated below by referring to the drawings in the specification and the specific embodiments. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
In the following description, reference is made to the expression "some embodiments" which describe a subset of all possible embodiments, but it should be understood that "some embodiments" may be the same subset or a different subset of all possible embodiments and may be combined with each other without conflict.
Referring to fig. 1, an optional application scenario diagram of a gateway batch networking method provided by an embodiment of the present invention includes a terminal device 10, a plurality of gateway devices 20, a router 30 and a cloud server 40, where the gateway devices 20 may be built based on WI-FI protocol or ZigBee protocol, and an intelligent home device is connected to the cloud server 40 through the gateway devices 20, so that a user may perform unified management by installing a client program for managing the intelligent home device on a mobile terminal, where the intelligent home device may include, but is not limited to, a water heater, a door, a curtain, a lamp, a camera, and other intelligent devices. The terminal device 10 may be any intelligent terminal with communication, display and storage functions, including but not limited to a mobile phone, a tablet computer, etc. The terminal device 10 and the gateway device 20 interact and/or the gateway device 20 and the gateway device 20 perform data communication, so as to jointly realize the gateway batch network access method provided by the invention. The terminal device 10 may store a client program for managing the network access configuration of the gateway device 20, where the client program is used to implement at least the flow steps in the gateway batch network access method applied to the terminal device side provided by the embodiment of the present invention when executed. The gateway device 20 stores a computer program, where the computer program is used to at least implement the flow steps in the gateway batch network access method applied to the gateway device side provided by the embodiment of the present invention when executed. As an optional implementation manner, the terminal device 10 sends a network access message to the gateway device 20, the gateway device 20 is controlled to execute network access operation after receiving the network access message, and the terminal device 10 and the gateway device 20 interact to realize batch network access of the gateway device; as another optional implementation manner, after the gateway device 20 completes network access, or after the gateway device 20 receives a network access message sent by the terminal device 10, or after the gateway device 20 acquires the network access message from other gateway devices, the gateway device sends the network access message to other non-network access gateway devices in a broadcast manner, so that the non-network access gateway device can execute network access operation after receiving the network access message.
For convenience of description, a method of mass-networking gateway devices will be exemplarily described by taking a plurality of gateway devices 20 including gateway a, gateway B, and gateway C as an example. In an alternative embodiment, assuming that the user performs the network access operation on the gateway a first, performs a scan search through a client program in the terminal device 10, connects with the WI-FI hotspot sent by the gateway device 20, inputs network access information such as the SSID, the password, and the user account number of the WI-FI router 30 to be connected through the terminal device 10, the terminal device 10 sends the network access information to the gateway a, and the gateway a starts to perform a subsequent network access procedure after receiving the network access information sent by the terminal device 10. Meanwhile, the gateway A can broadcast the network access information to the gateway B and the gateway C by using the inter-network communication technology, and the gateway B and the gateway C trigger to automatically start the network access process after receiving the network access information broadcast and transmitted by the gateway A. The gateway B and the gateway C may rebroadcast the network access information by using the inter-network communication technology, so as to enlarge the broadcast reachable range of the network access information, until the gateway devices 20 within the set range all complete the network access process. In this way, when the multi-gateway device 20 is connected to the network, the user can complete the network connection configuration for only one gateway device 20, the gateway device 20 can communicate with other gateway devices based on the inter-network communication, and broadcast the network connection configuration to the gateway devices 20 which are not connected to the network, so as to realize the rapid batch network connection of the multi-gateway device 20, greatly simplify the network connection operation flow for the plurality of gateway devices 20, and effectively improve the network connection efficiency.
Referring to fig. 2, a gateway batch network access method provided in an embodiment of the present invention is applied to a gateway device side, and includes the following steps.
Step S101, a network access message triggering the gateway equipment to access the network is obtained, wherein the network access message comprises network identity information and network access identity verification information.
The network identity information refers to information capable of uniquely characterizing the current network identity to be accessed by the gateway device, such as a wireless network name to be accessed, an identifier, an SSID (Service Set Identifier ) of a router, and the like. The network access authentication information refers to verification information required by the gateway device to join the current network to be accessed, such as a user account number, a router password, and the like. The network access of the gateway device can be completed by performing network access configuration on the gateway device through the terminal device to obtain a network access message triggering the network access of the gateway device, or can be completed by performing inter-network communication with the network access gateway device to obtain the network access message. The acquiring the network access message triggering the gateway device to access the network may be that the gateway device acquires the network access message from the terminal device or that the gateway device acquires the network access message from another gateway device.
Step S103, joining the current network based on the network access message, and executing the network access flow according to the network identity information and the network access identity verification information.
After the gateway equipment acquires the network access message, the gateway equipment is connected with a corresponding router according to the network identity information and the network access identity verification information in the network access message, accesses the network through the router, is connected with a server, and performs network access processes such as equipment registration, account binding and the like.
Step S105, broadcasting the network access message to the non-network access gateway equipment within a set range through an inter-network communication technology, so that the non-network access gateway equipment can be added into the current network based on the network access message.
The inter-network communication technology refers to a technology for realizing communication between different networks, for example, may include an inter-path technology, and optionally, the inter-network communication technology may also refer to a communication technology for broadcasting between gateway devices, such as WIFI, bluetooth, and the like. The setting range refers to the maximum range of broadcasting to other gateway devices according to different communication means adopted by the gateway device, and the setting range can be related to the location area where the gateway device is located or related to the communication means adopted by the gateway device. The gateway equipment broadcasts the network access message to the non-network access gateway equipment within the set range through the inter-network communication technology, and after the non-network access gateway equipment receives the network access message, the non-network access gateway equipment is connected with a corresponding router according to the network identity information and the network access identity verification information in the network access message, accesses the network through the router, is connected with a server, and performs network access processes such as equipment registration, account binding and the like. The inter-pad technology is an inter-network communication technology that can be applied to a ZigBee network, and even if two ZigBee gateway devices are not in the same ZigBee network, they can communicate with each other through the ZigBee inter-pad technology. In this embodiment, the gateway device broadcasts to other gateway devices through the interface technology, so that all the gateways can be triggered quickly to access the network almost simultaneously, and the purpose of batch network access of the gateways is achieved.
According to the gateway batch networking method provided by the embodiment, networking messages are broadcast to the gateway devices which are not networked based on the inter-network communication technology among the gateway devices, when the multi-gateway device is networked, a user can only complete networking configuration for one gateway device, the gateway device can communicate with other gateway devices based on inter-network communication, the networking configuration is broadcast to a plurality of gateway devices which are not networked at the same time, and rapid batch networking of the multi-gateway device is realized, so that independent networking operation for the gateway devices one by one is not needed by using a mobile phone terminal, networking operation flow for the gateway devices is greatly simplified, and networking efficiency is effectively improved.
In some embodiments, referring to fig. 3, the step S101 of obtaining a network access message triggering the gateway device to access the network includes:
step S1010, obtaining a network access operation instruction sent by a terminal device, wherein the network access operation instruction comprises a network access message triggering a gateway to access the network, and the network access message carries gateway sequence information to be accessed.
Step S103, based on the network access message, adds to the current network, and executes a network access process according to the network identity information and the network access identity verification information, including:
Step S1030, when the gateway equipment is determined to be in the range of the gateway sequence to be networked according to the gateway equipment identity information and the gateway sequence information to be networked, the networking process is directly executed according to the network identity information and the networking identity verification information.
In this embodiment, a user performs network access configuration on a gateway device currently accessing the network through a network access configuration page on a terminal device, and sends a network access operation instruction to the gateway device, so that after the gateway device receives the network access operation instruction, the gateway device connects to a corresponding router according to network identity information and network access authentication information in a network access message, accesses to a network through the router, connects to a server, and performs network access flows such as device registration, account binding, and the like. Optionally, in order to further improve security, the network access operation instruction further includes gateway sequence information to be accessed to the network, the user may input the gateway sequence information to be accessed to the network through the terminal device, when the gateway device receives an access message including the gateway sequence information to be accessed to the network sent by the terminal device, it is determined whether the gateway device belongs to the gateway sequence range to be accessed to the network, and when the gateway device belongs to the gateway sequence range, the network access process may be directly executed according to the network identity information and the network access identity verification information. In other optional embodiments, the gateway device that has been logged in may further broadcast a network access message that triggers the gateway to log in, which carries the gateway sequence information to be logged in, to the gateway device that has not been logged in, and when the gateway device that has not been logged in, which has received the network access message, belongs to the gateway sequence range, may decrypt the broadcast information using a preset encryption mechanism, and add the decrypted network access message to the current network; if the non-network-access gateway equipment which receives the network-access message does not belong to the gateway sequence range, the broadcast information cannot be decrypted. In other optional embodiments, the network access message further carries identity information of a sending end, the gateway device after receiving the network access message can identify a source of the network access message according to the identity information of the sending end, and when the gateway device confirms that the received network access message is a directional network access message sent by the terminal device, the network access process can be directly executed according to the directional network access message; or when the gateway equipment confirms that the received network access message is the network access message broadcast and sent by other gateway equipment, the broadcast information is decrypted by adopting a preset encryption mechanism according to whether the gateway equipment belongs to the gateway sequence range or not, and the decrypted network access message is added into the current network. Therefore, the broadcasting mode of the network access message through the gateway equipment can be improved, so that the safety of other gateway equipment which does not access the network in batches can be automatically improved.
Referring to fig. 4, in some embodiments, the step S101 of obtaining a network access message triggering the gateway device to access the network includes:
step S1011, obtaining a network access message which is broadcasted and sent by another gateway device based on the inter-network communication technology and triggers the gateway to access the network.
In this embodiment, the gateway device obtains a broadcast-sent network access message from another gateway device through an inter-network communication technology, connects to a corresponding router according to network identity information and network access authentication information in the network access message, accesses to a network through the router, connects to a server, and performs network access procedures such as device registration and account binding. It can be understood that after any gateway device obtains a network access message from another gateway device through an inter-network communication technology and joins the network, the network access message can be further broadcast to other gateway devices which are not connected to the network through the inter-network communication technology, so that the broadcast reachable range of the network access message is enlarged.
Optionally, step S103, before joining the current network based on the network access packet, further includes:
step S1012, the encryption code is fed back to the terminal equipment according to the set encryption mechanism;
step S1013, a confirmation instruction after the terminal equipment verifies the encryption code is obtained, and the network access message is decrypted based on the confirmation instruction;
The step S103 of joining the current network based on the network access message includes:
step S1031, adding the current network based on the decrypted network access message.
In the implementation process that the gateway device broadcasts the network access message through the gateway device, so that other gateway devices which are not connected to the network in batch can automatically access the network, after receiving the network access message broadcast by other gateway devices, the gateway device feeds back the encryption code to the terminal device according to the set encryption mechanism, the terminal device receives the encryption code and then verifies and confirms, when the gateway device receives a confirmation instruction after verifying the encryption code, the gateway device decrypts the network access message based on the confirmation instruction, and the decrypted network access message is added to the current network. In this embodiment, an encryption code is preset in the gateway device according to a set encryption mechanism, when the gateway device receives a network access message broadcast by other gateway devices, the encryption code is fed back to the mobile terminal, and the mobile terminal verifies the encryption code and then decrypts the broadcast information, so that the security of any gateway device in the process of adding the network access message to the network obtained from another gateway device through an inter-network communication technology is improved.
Optionally, referring to fig. 5, the network access message carries gateway sequence information to be accessed, and step S103 further includes, before the network access message is added to the current network:
step S102, according to the identity information of the gateway equipment and the gateway sequence information to be accessed to the network, when the gateway equipment is determined to be in the range of the gateway sequence to be accessed to the network, the access message is decrypted according to the set encryption mechanism.
In this embodiment, the gateway device carries the gateway sequence information to be accessed to the network, which is broadcasted to the gateway device not accessed to the network through the inter-network communication technology, and after the gateway device not accessed to the network receives the gateway message broadcasted and sent by another gateway device, the gateway device not accessed to the network judges whether the gateway device belongs to the gateway sequence range to be accessed to the network according to the self-identity information and the gateway sequence information to be accessed to the network, when the gateway device is determined to belong to the gateway sequence range to be accessed to the network, the gateway device decrypts the gateway message according to the set encryption mechanism, otherwise, the gateway device cannot decrypt the received broadcast information. Therefore, the security of any gateway device in the process of adding the network access message to the network obtained from another gateway device through the inter-network communication technology can be improved.
Optionally, referring to fig. 6, the step S103 of joining the current network based on the network entry message includes:
step S1032, based on the network access message, sending a network access request carrying gateway equipment identity information to a server, so that the server can complete network access when determining that the gateway equipment belongs to the range of the gateway sequence to be accessed based on the gateway equipment identity information and the network access request.
In this embodiment, the gateway sequence information to be networked may be pre-stored in the server, when the gateway device receives a networking message broadcast by another gateway device or directly sent by the terminal device, a networking request carrying the identity information of the gateway device is sent to the server based on the networking message, the server determines whether the gateway device belongs to the gateway sequence range to be networked according to the identity information of the gateway device and the pre-stored gateway sequence information to be networked, and when the server determines that the gateway device belongs to the gateway sequence range to be networked, the server allows the gateway device to be networked; otherwise, when the server determines that the gateway device does not belong to the gateway sequence range to be networked, the server can reject the network access. Therefore, the security of any gateway device in the process of adding the network access message to the network obtained from another gateway device through the inter-network communication technology can be improved.
In some embodiments, the gateway batch networking method further includes:
step S106, obtaining a new adding request sent by newly added gateway equipment;
step S107, the network access message is sent to the newly added gateway equipment through the inter-network communication technology based on the newly added request, so that the newly added gateway equipment can be added into the current network based on the network access message.
When a new gateway device joins a network to be accessed, request information can be sent to other gateway devices through an inter-network communication technology, the gateway device which has accessed the network obtains a new request sent by the newly joined gateway device, and the network access message is sent to the newly joined gateway device through the inter-network communication technology so that the newly joined gateway device joins the current network based on the network access message. Therefore, for newly added gateway equipment, automatic batch networking can be realized in a mode of broadcasting networking messages between gateway equipment, and networking efficiency is effectively improved.
In some embodiments, the step S103 adds the current network based on the network access message, and executes a network access procedure according to the network identity information and the network access identity verification information, including:
When the network access message is received, detecting the current network access state;
when the current network access state is not network access, adding the current network based on the network access message and executing a network access flow according to the network identity information and the network access identity verification information;
and/or the number of the groups of groups,
and when a network access instruction is received, adding the current network based on the network access message, and executing a network access process according to the network identity information and the network access identity verification information.
The triggering condition of the gateway device executing the network access process can be automatically triggered by receiving the network access message, detecting the current network access state after the gateway device receives the network access message, and directly executing the network access process according to the network identity information and the network access identity verification information in the network access message if the current network access state is not network access. Optionally, the triggering condition of the gateway device for executing the network access process may be an independent network access instruction, for example, a command sent by the terminal device and indicating the gateway device to execute the network access, the operation information of the home device attempting to connect in the network to which the gateway device belongs, etc., where after receiving the network access instruction, the gateway device automatically executes the network access process according to the network identity information and the network access identity verification information in the network access message according to the currently acquired network access message.
In the embodiment, the gateway equipment automatically triggers the network access operation by receiving the network access message, so that the gateway equipment is facilitated to realize rapid batch automatic network access; and the gateway equipment executes the network access operation according to the received network access message based on the received network access instruction, thereby being beneficial to carrying out network access missing checking and leak repairing on the gateway equipment in special application scenes and meeting various use requirements.
Optionally, before broadcasting the network access message to the gateway device that is not in the setting range through the inter-network communication technology, the method further includes:
confirming whether the current network access flow is successful or not;
if the current network access process is successful, the step of broadcasting the network access message to the gateway equipment which is not accessed in the setting range through the inter-network communication technology is executed;
if the current network access execution flow is unsuccessful, judging whether a new network access message is received currently or not, and returning to the step of joining the current network based on the network access message.
In the above embodiment, after the gateway device joins the current network successfully, the network access message is broadcasted to the outside, so that incomplete or erroneous transmission of the network access message can be avoided, and the overall network access efficiency and accuracy of the gateway device are improved.
In some embodiments, the step S103 adds the current network based on the network access message, and executes a network access procedure according to the network identity information and the network access identity verification information, including:
when the number of the network access messages received through broadcasting is multiple, selecting a target network access message according to a set rule, adding a current network based on the target network access message, and executing a network access flow according to the network identity information and the network access identity verification information;
and/or the number of the groups of groups,
the broadcasting the network access message to the gateway equipment which is not accessed in the setting range through the inter-network communication technology comprises the following steps: respectively transmitting data to gateway equipment in a set range, and when a data receiving success instruction returned by the corresponding gateway equipment is not received within a designated time, determining that the corresponding gateway equipment is the gateway equipment which is not connected to the network; or, acquiring a non-network-access gateway equipment list, and determining non-network-access gateway equipment according to the non-network-access gateway equipment list; and broadcasting the network access message to the non-network access gateway equipment through an inter-network communication technology.
Wherein, the setting rule may include at least one of the following: selecting the network access message with the latest time according to the receiving time of the network access message; selecting a network access message broadcasted by gateway equipment with the nearest distance according to the broadcasting distance; and selecting the network access message with the highest information integrity according to the information carried in the network access message. The selection rule of the gateway equipment on the network access messages can be preset, and when the gateway equipment receives a plurality of network access messages, the network access messages which are more matched are selected to execute the current network access flow, so that the success rate of network access once can be increased.
Optionally, when the gateway device broadcasts the network access message outwards, it may first determine whether there is a non-network access gateway in the setting range, and then broadcast the network access message to the non-network access gateway device through an inter-network communication technology. Wherein the gateway device identifying the non-network-entered gateway device may include: the gateway device may send data to the gateway devices within the setting range, and when the data receiving success instruction returned by the corresponding gateway device is not received within the specified time, the corresponding gateway device is an uninterruptable gateway device, or the gateway device may obtain an uninterruptable gateway device list from the terminal device, and determine the uninterruptable gateway device according to the uninterruptable gateway device list. The gateway equipment can improve pertinence and reduce data communication resources between gateway equipment by pre-judging whether the gateway equipment which is not connected with the network exists or not and broadcasting the network access message.
On the other hand, referring to fig. 7, the embodiment of the present invention further provides a gateway batch network access method, which is applied to a terminal device, and includes the following steps.
Step S201, network access configuration information of the current gateway equipment is obtained, wherein the network access configuration information comprises network identity information and network access identity verification information.
The terminal equipment is provided with a client program for managing network access configuration of the gateway equipment, a user can configure network access information of the current gateway equipment on a network access configuration page in the client program, and the configuration information is sent to the gateway equipment through the terminal equipment. The network identity information refers to information capable of uniquely characterizing the current network identity to be accessed by the gateway device, such as a wireless network name to be accessed, an identifier, an SSID (Service Set Identifier ) of a router, and the like. The network access authentication information refers to verification information such as user account numbers, passwords and the like required by the gateway equipment to join the current network to be accessed. The current gateway equipment performs network access configuration on the gateway equipment through the terminal equipment so as to obtain a network access message triggering the gateway equipment to access the network.
Step S203, a network access operation instruction carrying a network access message is formed according to the network access configuration information and sent to the current gateway device, so that the current gateway device adds the current network based on the network access message, executes a network access process according to the network identity information and the network access identity verification information, and broadcasts the network access message to non-network access gateway devices within a set range through an inter-network communication technology.
The network access configuration page of the client program of the terminal device may include a network access confirmation key, and after the network access configuration page configures the network access information of the current gateway device, the user may press or touch the network access confirmation key to send a network access operation instruction to the gateway device. The terminal equipment forms a network access operation instruction carrying a network access message according to the network access configuration information, and sends the network access operation instruction to the current gateway equipment so that the current gateway equipment can join the current network based on the network access message, and broadcasts the network access message to non-network access gateway equipment within a set range through an inter-network communication technology.
When the multi-gateway device is used for networking, a user can complete networking configuration on only one gateway device by adopting the terminal device, after the gateway device is used for networking, the networking configuration can be simultaneously broadcast to a plurality of gateway devices which are not networked based on inter-network communication, so that the rapid batch networking of the multi-gateway device is realized, the plurality of gateway devices do not need to be independently networked one by one through the mobile phone terminal, the networking operation flow of the plurality of gateway devices is greatly simplified, and the networking efficiency is effectively improved.
In some embodiments, the gateway batch network access method further includes:
acquiring gateway equipment identity information to be accessed to a network, and forming gateway sequence information to be accessed to the network according to the gateway equipment identity information to be accessed to the network;
and sending the gateway sequence information to be accessed to the network to the current gateway equipment along with the access message.
The terminal equipment can receive the identity information of the gateway equipment to be accessed to the network through the network access configuration page of the client program, form gateway sequence information to be accessed to the network according to the identity information of the gateway equipment to be accessed to the network, and send the gateway sequence information to the gateway equipment along with the network access message. The gateway equipment communicates with other gateway equipment based on inter-network communication, broadcasts gateway sequence information to be accessed to the network to the non-accessed gateway equipment along with the network access message, and when the non-accessed gateway equipment which receives the network access message belongs to the gateway sequence range, the gateway equipment can decrypt the broadcast information and add the network access message into the current network based on the decrypted network access message; when the non-network-access gateway equipment which receives the network access message does not belong to the gateway sequence range, the broadcast information cannot be decrypted, so that the security in the process that any gateway equipment obtains the network access message from another gateway equipment through the inter-network communication technology to automatically join the network in batches can be improved.
Optionally, the gateway batch network access method further includes:
and acquiring a network access checking instruction, and acquiring and displaying a gateway equipment list which is currently finished to access the network from a server based on the checking instruction.
The terminal equipment acquires a network access checking instruction input by a user based on a network access configuration page, acquires a gateway equipment list which is currently finished to access the network from a server based on the checking instruction and displays the gateway equipment list. The user can check the gateway equipment list information of the network access completion through the mobile terminal, so that the user can know which gateway equipment is successfully accessed in time.
Referring to fig. 8, another embodiment of the present invention provides a gateway batch networking device, in an exemplary embodiment, the gateway batch networking device may be implemented by using a gateway device side, where the gateway batch networking device includes an obtaining module 211, configured to obtain a networking packet that triggers a gateway device to network, where the networking packet includes network identity information and network identity verification information; a network access module 212, configured to add to the current network based on the network access message, and execute a network access procedure according to the network identity information and the network access identity verification information; and a broadcasting module 213, configured to broadcast the network access message to a gateway device that is not in the setting range through an inter-network communication technology, so that the gateway device that is not in the network access adds to the current network based on the network access message.
In some embodiments, the obtaining module 211 is specifically configured to obtain a network access operation instruction sent by the terminal device, where the network access operation instruction includes a network access message triggering a gateway to access a network, and the network access message carries gateway sequence information to be accessed to the network; the network access module 212 is specifically configured to directly execute a network access procedure according to the network identity information and the network access identity verification information when it is determined that the gateway device belongs to the gateway sequence range to be accessed according to the gateway device identity information and the gateway sequence information to be accessed.
In some embodiments, the obtaining module 211 is specifically configured to obtain an access message sent by another gateway device based on the internet communication technology broadcast and triggering the gateway to access the network.
In some embodiments, the network access module 212 is further configured to feed back an encryption code to the terminal device according to the set encryption mechanism; acquiring a confirmation instruction after the terminal equipment verifies the encryption code, and decrypting the network access message based on the confirmation instruction; and adding the current network based on the decrypted network access message.
In some embodiments, the network access message carries gateway sequence information to be accessed to the network, and the network access module 212 is further configured to decrypt the network access message according to a set encryption mechanism when it is determined that the gateway device belongs to the range of the gateway sequence to be accessed to the network according to the gateway device identity information and the gateway sequence information to be accessed to the network.
In some embodiments, the network access module 212 is specifically configured to send a network access request carrying gateway equipment identity information to a server based on the network access message, so that the server can complete network access when determining that the gateway equipment belongs to a range of gateway sequences to be accessed based on the gateway equipment identity information and the network access request.
In some embodiments, the device further includes a new adding module 214, where the obtaining module 211 is further configured to obtain a new adding request sent by the newly added gateway device; the adding module 214 is configured to send the network access message to the newly added gateway device through an inter-network communication technology based on the adding request, so that the newly added gateway device joins the current network based on the network access message.
In some embodiments, the networking module 212 is further configured to detect a current networking state when the networking packet is received; when the current network access state is not network access, adding the current network based on the network access message and executing a network access flow according to the network identity information and the network access identity verification information; and/or when receiving a network access instruction, adding the network access instruction into the current network based on the network access message and executing a network access process according to the network identity information and the network access identity verification information.
In some embodiments, the network access module 212 is further configured to select a target network access message according to a set rule when the number of network access messages received by broadcasting is multiple, add the target network access message to the current network, and execute a network access procedure according to the network identity information and network access identity verification information; and/or broadcasting the network access message to the non-network access gateway equipment within the setting range through an inter-network communication technology, including: respectively transmitting data to gateway equipment in a set range, and when a data receiving success instruction returned by the corresponding gateway equipment is not received within a designated time, determining that the corresponding gateway equipment is the gateway equipment which is not connected to the network; or, acquiring a non-network-access gateway equipment list, and determining non-network-access gateway equipment according to the non-network-access gateway equipment list; and broadcasting the network access message to the non-network access gateway equipment through an inter-network communication technology.
It should be noted that: when the gateway batch networking device provided in the above embodiment realizes batch networking of gateway equipment, only the division of each program module is used for illustration, in practical application, the processing allocation can be completed by different program modules according to needs, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the gateway batch networking device provided in the above embodiment and the gateway batch networking method embodiment applied to the gateway device side belong to the same concept, and detailed implementation processes of the gateway batch networking device are shown in the method embodiment, and are not described herein.
In another aspect, referring to fig. 9, an optional hardware structure schematic diagram of a gateway device provided by an embodiment of the present invention is shown, where the gateway device includes a memory and at least one processor, and the memory stores a computer program for implementing the gateway batch network access method applied to a gateway device side provided by any embodiment of the present invention, where when the computer program is executed by the processor, each process of the gateway batch network access method embodiment applied to the gateway device side is implemented, and the same technical effect can be achieved, so that repetition is avoided and details are not repeated herein.
The memory may be used to store software programs and modules that the processor executes to perform various functional applications and data processing by executing the software programs and modules stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for functions, and the like; the storage data area may store data created according to the use of the device, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory may also include a memory controller to provide access to the memory by the processor.
Fig. 9 is a block diagram of a hardware structure of a gateway device according to an embodiment of the present invention. As shown in fig. 9, the gateway device 1100 may vary considerably in configuration or performance and may include one or more processors (ProcessingUnits, CPU) 1110 (the processor 1110 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA), a memory 1130 for storing data, one or more storage mediums 1120 (e.g., one or more mass storage devices) for storing applications 1123 or data 1122. Wherein the memory 1130 and the storage medium 1120 may be transitory or persistent storage. The program stored on the storage medium 1120 may include one or more modules, each of which may include a series of instruction operations on a server. Still further, the processor 1110 may be configured to communicate with a storage medium 1120 to execute a series of instruction operations in the storage medium 1120 on the gateway device 1100. Gateway device 1100 may also include one or more power supplies 1160, one or more wired or wireless network interfaces 1150, one or more input output interfaces 1140, and/or one or more operating systems 1121, such as WindowsServerTM, macOSXTM, unixTM, linuxTM, freeBSDTM, and the like.
The input-output interface 1140 may be used to receive or transmit data via a network. The specific examples of the network described above may include a wireless network provided by a communication provider of gateway apparatus 1100. In one example, the input/output interface 1140 includes a network adapter (NetworkInterfaceController, NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the input-output interface 1140 may be a radio frequency (RadioFrequency, RF) module for communicating wirelessly with the internet.
It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely illustrative, and is not intended to limit the structure of the gateway device. For example, gateway device 1100 may also include more or fewer components than shown in fig. 9, or have a different configuration than shown in fig. 9.
In another aspect, the present invention provides a terminal device, and fig. 10 is a schematic hardware structure of a terminal device implementing various embodiments of the present invention.
The terminal device includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 101, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. It will be appreciated by those skilled in the art that the terminal device structure shown in figure x does not constitute a limitation of the terminal device, and that the mobile terminal may comprise more or less components than shown, or may combine certain components, or may have a different arrangement of components. In the embodiment of the invention, the terminal equipment comprises, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal equipment, a wearable device, a pedometer and the like.
The processor 110 is configured to obtain network access configuration information for the current gateway device, where the network access configuration information includes network identity information and network access identity verification information; and forming a network access operation instruction carrying a network access message according to the network access configuration information and sending the network access operation instruction to the current gateway equipment so that the current gateway equipment can join the current network based on the network access message, executing a network access process according to the network identity information and the network access identity verification information, and broadcasting the network access message to non-network access gateway equipment within a set range through an inter-network communication technology.
The terminal equipment can carry out network access configuration on one gateway equipment, the gateway equipment obtains network access configuration information of the terminal equipment to form a network access operation instruction carrying network access messages, the network access configuration can be simultaneously broadcast to a plurality of gateway equipment which are not connected with the network based on communication between networks, rapid batch network access of the multi-gateway equipment is realized, independent network access operation is not required to be carried out on the gateway equipment one by one through the mobile phone terminal, network access operation flow of the gateway equipment is greatly simplified, and network access efficiency is effectively improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be configured to receive and send information or signals during a call, specifically, receive downlink data from a base station, and then process the received downlink data with the processor 110; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 may also communicate with networks and other devices through a wireless communication system.
The terminal device provides wireless broadband internet access to the user through the network module 102, such as helping the user to send and receive e-mail, browse web pages, access streaming media, etc.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the terminal device. The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used for receiving an audio or video signal. The input unit 104 may include a graphic processor (GraphicsProcessingUnit, GPU) 1041 and a microphone 1042, the graphic processor 1041 processing image data of still pictures or videos obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frame may be displayed on the display unit 101. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. Microphone 1042 may receive sound and be capable of processing such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode.
The terminal device further comprises at least one sensor 105, such as a light sensor, a motion sensor and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1011 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1011 and/or the backlight when the terminal device moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when the accelerometer sensor is stationary, and can be used for recognizing the gesture (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking) and the like of the terminal equipment; the sensor 105 may further include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described herein.
The display unit 101 is used to display information input by a user or information provided to the user. The display unit 101 may include a display panel 1011, and the display panel 1011 may be configured in the form of a liquid crystal display (LiquidCrystalDisplay, LCD), an organic light-emitting diode (organic light-EmittingDiode, OLED), or the like.
The user input unit 107 is operable to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1071 or thereabout using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. Further, the touch panel 1071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1011, and when the touch panel 1071 detects a touch operation thereon or thereabout, the touch panel is transferred to the processor 110 to determine the type of touch event, and then the processor 110 provides a corresponding visual output on the display panel 1011 according to the type of touch event. Although in fig. 1, the touch panel 1071 and the display panel 1011 are provided as two separate components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 1071 may be integrated with the display panel 1011 to implement the input and output functions of the terminal device, which is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal apparatus. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal device or may be used to transmit data between the terminal device and the external device.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 110 is a control center of the terminal device, connects respective parts of the entire terminal device using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The terminal device may further comprise a power source 111 (such as a battery) for supplying power to the respective components, and preferably the power source 111 may be logically connected to the processor 110 through a power management system, so that functions of managing charging, discharging, power consumption management, etc. are implemented through the power management system.
In addition, the terminal device includes some functional modules, which are not shown, and will not be described in detail herein.
Referring to fig. 11, the embodiment of the present invention further provides a terminal device, where the terminal device includes a display module 13, a memory 11 and at least one processor 12, and the memory 11 stores a computer program for implementing the gateway batch networking method applied to the terminal device side provided in any embodiment of the present invention, where when the computer program is executed by the processor 12, each process of the gateway batch networking method embodiment applied to the terminal device side is implemented, and the same technical effect can be achieved, so that repetition is avoided and redundant description is omitted herein.
Referring to fig. 12, the embodiment of the present invention further provides a gateway batch networking device, where in an exemplary embodiment, the gateway batch networking device may be implemented by using a terminal device, and the gateway batch networking device includes a configuration module 110, configured to obtain networking configuration information for a current gateway device, where the networking configuration information includes network identity information and networking identity verification information; and the sending module 112 is configured to form a network access operation instruction carrying a network access message according to the network access configuration information and send the network access operation instruction to the current gateway device, so that the current gateway device adds the current network based on the network access message, executes a network access process according to the network identity information and the network access identity verification information, and broadcasts the network access message to non-network access gateway devices within a set range through an inter-network communication technology.
In some embodiments, the configuration module 110 is further configured to obtain gateway equipment identity information to be networked, and form gateway sequence information to be networked according to the gateway equipment identity information to be networked; the sending module is further configured to send the gateway sequence information to be network-accessed along with the network-accessing message to the current gateway device.
In some embodiments, the system further comprises a viewing module 113, configured to obtain an online viewing instruction, and obtain, from a server and display, based on the viewing instruction, a gateway device list that has completed online.
It should be noted that: when the gateway batch networking device provided in the above embodiment realizes batch networking of gateway equipment, only the division of each program module is used for illustration, in practical application, the processing allocation can be completed by different program modules according to needs, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the gateway batch networking device provided in the above embodiment and the gateway batch networking method embodiment applied to the terminal device side belong to the same concept, and detailed implementation processes of the gateway batch networking device are shown in the method embodiment, and are not described herein.
In order to further understand the gateway batch networking method provided by the embodiment of the present invention, an overall exemplary description of the gateway batch networking method is provided below with reference to fig. 13, where the method includes the following steps:
step S11, the mobile terminal acquires network access configuration information, and the network access configuration information is formed into a network access message and sent to the gateway A;
step S12, gateway A receives the network access message and starts the network access flow according to the network identity information and the network access identity verification information in the network access message; the network identity information can comprise the SSID of the WI-FI router, and the network access identity verification information comprises a user account number and a password;
step S13, gateway A uses the interface technology to broadcast the network access message to the gateway equipment which is not accessed to the network;
step S14, gateway B and/or gateway C receives the network access message broadcast by gateway A, and feeds back the preset encryption code to the terminal equipment through a preset encryption mechanism;
step S15, the terminal equipment receives the encryption code and then performs verification, and when verification passes, a verification passing instruction is returned to the gateway B and/or the gateway C;
and S16, after the gateway B and/or the gateway C decrypt the network access message, starting to enter a subsequent network access flow based on the decrypted network access message.
It should be noted that, after the gateway B and/or the gateway C join the network, the gateway B and/or the gateway C may continue to broadcast the network access message to other non-network access gateway devices, so as to expand the reachable range of the network access message, and after receiving the network access message, the other non-network access gateways also start to enter the network access process, and finally all the gateways complete the network access process. According to the gateway batch networking method provided by the embodiment of the invention, a user can perform networking configuration on only one gateway through a mobile phone, and can send a message triggering gateway networking to other non-networking gateways by utilizing an inter-gateway communication technology, wherein the message contains information such as SSID, password and user account number of the WI-FI router, so that surrounding non-networking gateways can automatically networking in batches, and the networking configuration flow can be completed efficiently. When a new gateway joins the network to be accessed, request information can be sent to other gateways through the interface technology, and the gateway which has accessed the network can broadcast the network access information to the new gateway through the interface technology.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements each process of any gateway batch networking method embodiment described above, and can achieve the same technical effect, so that repetition is avoided, and no further description is provided herein. Wherein, the computer readable storage medium is Read-only memory (ROM), random Access Memory (RAM), magnetic disk or optical disk, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. The scope of the invention is to be determined by the appended claims.

Claims (16)

1. A gateway batch networking method applied to gateway equipment, comprising the following steps:
acquiring a network access message triggering network access of gateway equipment, wherein the network access message comprises network identity information, network access identity verification information, gateway sequence information to be accessed to the network and sender identity information of the network access message;
adding the current network based on the network access message, and executing a network access flow according to the network identity information and the network access identity verification information;
broadcasting the network access message to non-network access gateway equipment within a set range through an inter-network communication technology so that the non-network access gateway equipment can be added into a current network based on the network access message;
before the network access message is added into the current network and the network access process is executed according to the network identity information and the network access identity verification information, the gateway batch network access method further comprises the following steps:
Identifying the sender of the acquired network access message according to the sender identity information;
if the obtained sending end of the network access message is another gateway device, determining whether the gateway device belongs to the gateway sequence range to be accessed according to the identity information of the gateway device and the gateway sequence information to be accessed;
when the gateway equipment is determined to belong to the range of the gateway sequence to be accessed to the network, decrypting the access message according to the set encryption mechanism;
the network access process is executed according to the network identity information and the network access identity verification information based on the network access message to the current network, and the network access process comprises the following steps:
when the number of the network access messages received through broadcasting is multiple, selecting a target network access message according to a set rule, adding the target network access message into a current network, and executing a network access process according to the network identity information and the network access identity verification information.
2. The method for batch network access of gateways according to claim 1, wherein the obtaining a network access message triggering network access of gateway equipment comprises:
acquiring a network access operation instruction sent by a terminal device, wherein the network access operation instruction comprises a network access message triggering a gateway to access the network;
The network access process is executed according to the network identity information and the network access identity verification information based on the network access message to the current network, and the network access process comprises the following steps:
and when the gateway equipment is determined to belong to the range of the gateway sequence to be networked according to the gateway equipment identity information and the gateway sequence information to be networked, directly executing the networking process according to the network identity information and the networking identity verification information.
3. The method for batch network access of gateways according to claim 1, wherein the obtaining a network access message triggering network access of gateway equipment comprises:
and acquiring a network access message which is broadcasted and transmitted by another gateway device based on the inter-network communication technology and triggers the gateway to access the network.
4. The method for batch network access by gateway according to claim 3, wherein before the network access message is added to the current network, the method further comprises:
feeding back the encryption code to the terminal equipment according to the set encryption mechanism;
acquiring a confirmation instruction after the terminal equipment verifies the encryption code, and decrypting the network access message based on the confirmation instruction;
the step of joining the current network based on the network access message comprises the following steps:
and adding the current network based on the decrypted network access message.
5. The gateway batch networking method of claim 1, wherein the set rules comprise at least one of:
selecting the network access message with the latest time as the target network access message according to the receiving time of the network access message;
selecting the network access message broadcasted by the gateway equipment with the nearest distance as the target network access message according to the broadcasting distance;
and selecting the network access message with the highest information integrity as the target network access message according to the information carried in the network access message.
6. The gateway batch networking method of claim 3, wherein the joining the current network based on the networking message comprises:
and sending a network access request carrying the identity information of the gateway equipment to a server based on the network access message, so that the server can finish network access when determining that the gateway equipment belongs to the range of the gateway sequence to be accessed based on the identity information of the gateway equipment and the network access request.
7. The gateway batch networking method of any of claims 1-6, further comprising:
acquiring a new adding request sent by newly added gateway equipment;
and sending the network access message to the newly added gateway equipment through an inter-network communication technology based on the newly added request so that the newly added gateway equipment can be added into the current network based on the network access message.
8. The gateway batch networking method according to any one of claims 1 to 6, wherein the step of adding the current network based on the networking message and performing a networking process according to the network identity information and the networking authentication information includes:
when the network access message is received, detecting the current network access state;
when the current network access state is not network access, adding the current network based on the network access message and executing a network access flow according to the network identity information and the network access identity verification information;
and/or the number of the groups of groups,
and when a network access instruction is received, adding the current network based on the network access message, and executing a network access process according to the network identity information and the network access identity verification information.
9. The gateway batch networking method according to any one of claims 1 to 6, wherein broadcasting the networking message to non-networking gateway devices within a set range through an inter-network communication technology comprises:
respectively transmitting data to gateway equipment in a set range, and when a data receiving success instruction returned by the corresponding gateway equipment is not received within a designated time, determining that the corresponding gateway equipment is the gateway equipment which is not connected to the network; or, acquiring a non-network-access gateway equipment list, and determining non-network-access gateway equipment according to the non-network-access gateway equipment list;
And broadcasting the network access message to the non-network access gateway equipment through an inter-network communication technology.
10. The gateway batch network access method is applied to terminal equipment and is characterized by comprising the following steps:
acquiring network access configuration information of current gateway equipment, wherein the network access configuration information comprises network identity information and network access identity verification information;
forming a network access operation instruction carrying a network access message according to the network access configuration information, sending the network access operation instruction to the current gateway equipment, acquiring gateway equipment identity information to be accessed to the network, forming gateway sequence information to be accessed to the network according to the gateway equipment identity information to be accessed to the network, sending the gateway sequence information to be accessed to the network to the current gateway equipment along with the network access message, so that the current gateway equipment adds the current network based on the network access message, executing a network access process according to the network identity information and the network access identity verification information, and broadcasting the network access message to non-network access gateway equipment within a set range through an inter-network communication technology.
11. The gateway batch networking method of claim 10, further comprising:
and acquiring a network access checking instruction, and acquiring and displaying a gateway equipment list which is currently finished to access the network from a server based on the checking instruction.
12. A gateway batch networking device, comprising:
the network access module is used for acquiring a network access message triggering the gateway equipment to access the network, wherein the network access message comprises network identity information, network access identity verification information, gateway sequence information to be accessed to the network and sender identity information of the network access message;
the network access module is used for adding the current network based on the network access message and executing a network access flow according to the network identity information and the network access identity verification information;
the broadcasting module is used for broadcasting the network access message to non-network access gateway equipment in a setting range through an inter-network communication technology so that the non-network access gateway equipment can be added into a current network based on the network access message;
the network access module is specifically used for identifying the sending end of the acquired network access message according to the identity information of the sending end; if the obtained sending end of the network access message is another gateway device, determining whether the gateway device belongs to the gateway sequence range to be accessed according to the identity information of the gateway device and the gateway sequence information to be accessed; when the gateway equipment is determined to belong to the range of the gateway sequence to be accessed to the network, decrypting the access message according to the set encryption mechanism;
The network access module is further specifically configured to add the network access message to the current network, and execute a network access procedure according to the network identity information and the network access identity verification information, where the network access procedure includes:
when the number of the network access messages received through broadcasting is multiple, selecting a target network access message according to a set rule, adding the target network access message into a current network, and executing a network access process according to the network identity information and the network access identity verification information.
13. A gateway batch networking device, comprising:
the configuration module is used for acquiring network access configuration information of the current gateway equipment, wherein the network access configuration information comprises network identity information and network access identity verification information;
the sending module forms a network access operation instruction carrying a network access message according to the network access configuration information and sends the network access operation instruction to the current gateway equipment, acquires gateway equipment identity information to be accessed to the network, forms gateway sequence information to be accessed to the network according to the gateway equipment identity information to be accessed to the network, sends the gateway sequence information to be accessed to the network to the current gateway equipment along with the network access message so that the current gateway equipment adds the current network based on the network access message, executes a network access process according to the network identity information and the network access identity verification information, and broadcasts the network access message to gateway equipment which is not accessed to the network in a setting range through an inter-network communication technology.
14. Gateway device comprising a memory for storing a computer program and at least one processor, characterized in that the processor, when running the computer program, performs the gateway batch networking method of any of claims 1 to 9.
15. A terminal device comprising a display module, a memory and at least one processor, said memory having stored therein a computer program, characterized in that the processor, when running said computer program, performs the gateway batch networking method of any of claims 10 to 11.
16. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein computer program code which, when loaded and executed by a processor, implements the gateway batch networking method of any of claims 1 to 9 or 10 to 11.
CN202010808668.4A 2020-08-12 2020-08-12 Gateway batch networking method, device, equipment and storage medium Active CN114143129B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010808668.4A CN114143129B (en) 2020-08-12 2020-08-12 Gateway batch networking method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010808668.4A CN114143129B (en) 2020-08-12 2020-08-12 Gateway batch networking method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114143129A CN114143129A (en) 2022-03-04
CN114143129B true CN114143129B (en) 2023-05-23

Family

ID=80438033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010808668.4A Active CN114143129B (en) 2020-08-12 2020-08-12 Gateway batch networking method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114143129B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621406A (en) * 2009-07-28 2010-01-06 中兴通讯股份有限公司 Method for configuring domestic gateways in batch, configuring equipment and domestic gateways
CN105656739A (en) * 2016-03-23 2016-06-08 浙江风向标科技有限公司 Method and device for batch configuration of Internet of things devices
CN108770045A (en) * 2018-06-05 2018-11-06 云丁智能科技(北京)有限公司 Method of network entry, relevant device and network system
CN109548116A (en) * 2018-11-16 2019-03-29 深圳绿米联创科技有限公司 ZigBee gateway batch method of network entry, device and equipment based on NFC
CN110830333A (en) * 2018-08-09 2020-02-21 中兴通讯股份有限公司 Intelligent household equipment access authentication method, device, gateway and storage medium

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9648548B1 (en) * 2015-01-02 2017-05-09 Sprint Spectrum L.P. WiFi mesh configuration
CN105100213B (en) * 2015-06-26 2018-11-06 小米科技有限责任公司 Apparatus bound method and device
CN106292313A (en) * 2015-06-29 2017-01-04 中兴通讯股份有限公司 The control method of intelligent appliance, Apparatus and system
CN106507330A (en) * 2016-09-26 2017-03-15 海尔优家智能科技(北京)有限公司 A kind of equipment networking collocation method and device
CN106375169B (en) * 2016-12-02 2019-09-03 华东交通大学 A kind of smart home system and its method of network entry
CN106878923B (en) * 2017-01-09 2021-04-23 云丁网络技术(北京)有限公司 Quick networking method for ultra-low power consumption intelligent equipment and intelligent home system
CN106953782A (en) * 2017-02-28 2017-07-14 美的智慧家居科技有限公司 A kind of method and device for controlling intelligent appliance to network
CN109246797A (en) * 2017-06-07 2019-01-18 阿里巴巴集团控股有限公司 A kind of method, apparatus, system and equipment connecting wireless network
CN107086934B (en) * 2017-06-12 2019-09-10 中国联合网络通信集团有限公司 The configuration method and gateway of networking equipment
CN109936845B (en) * 2017-12-19 2022-09-06 九阳股份有限公司 Intelligent equipment network distribution method and device
CN108494638A (en) * 2018-02-09 2018-09-04 海尔优家智能科技(北京)有限公司 A kind of method, router, terminal and medium that configuration equipment networks
CN109495358B (en) * 2018-12-10 2022-01-28 美的集团武汉制冷设备有限公司 Network distribution method and network distribution system for household appliances
CN110320811B (en) * 2019-06-17 2021-12-14 华为技术有限公司 Access method of intelligent household equipment and electronic equipment
CN111477227A (en) * 2020-04-07 2020-07-31 四川虹美智能科技有限公司 Voice interaction method and system for voice intelligent household appliance and voice intelligent household appliance

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621406A (en) * 2009-07-28 2010-01-06 中兴通讯股份有限公司 Method for configuring domestic gateways in batch, configuring equipment and domestic gateways
CN105656739A (en) * 2016-03-23 2016-06-08 浙江风向标科技有限公司 Method and device for batch configuration of Internet of things devices
CN108770045A (en) * 2018-06-05 2018-11-06 云丁智能科技(北京)有限公司 Method of network entry, relevant device and network system
CN110830333A (en) * 2018-08-09 2020-02-21 中兴通讯股份有限公司 Intelligent household equipment access authentication method, device, gateway and storage medium
CN109548116A (en) * 2018-11-16 2019-03-29 深圳绿米联创科技有限公司 ZigBee gateway batch method of network entry, device and equipment based on NFC

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Home appliance control framework based on smart TV set-top box;Junghak Kim;《IEEE Transactions on Consumer Electronics ( Volume: 61, Issue: 3, August 2015)》;全文 *
家庭智能网关典型应用场景;戴文飞;;中国战略新兴产业(第28期);全文 *

Also Published As

Publication number Publication date
CN114143129A (en) 2022-03-04

Similar Documents

Publication Publication Date Title
US20220159471A1 (en) Information sharing method, terminal device, storage medium, and computer program product
US10142845B2 (en) Network connection method and apparatus, and computer storage medium
US11368453B2 (en) Network configuration method and device, electronic device and storage medium
CN106936676B (en) Household equipment control method and device
CN110431868B (en) Wi-Fi hotspot connection method and terminal
WO2019128982A1 (en) Device bootstrap method, terminal, and server
CN109257793B (en) Network connection method, device, equipment and storage medium
CN104581993B (en) It is wirelessly connected the method and terminal of the method established, data transmission
CN111867148A (en) Method and equipment for establishing equipment connection and data transmission
CN113489630A (en) Network distribution method, device, storage medium and electronic terminal
CN105530684B (en) Network access method, device and system
WO2017000495A1 (en) Method and device for adding contacts
US11483677B2 (en) Information pushing method and terminal device
CN108616873B (en) Data transmission method, information transmission method, device, mobile equipment and storage medium
CN110418311B (en) Interconnection method and device based on multiple terminals and terminal
CN114143129B (en) Gateway batch networking method, device, equipment and storage medium
US20220053585A1 (en) Method for pc5 link establishment, device, and system
CN113873684A (en) Connection establishing method and device based on local area network, terminal equipment and storage medium
CN114501449B (en) Information query method, device, electronic equipment and storage medium
CN111464962B (en) Device connection method, first electronic device and operator device
CN112689274B (en) Prompting method and device for short-distance wireless communication connection and massaging equipment
CN116938701A (en) Module configuration method, device, computer readable storage medium and computer equipment
CN116975836A (en) Application control method and device, electronic equipment 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