CN114143129A - Gateway batch network access method, device, equipment and storage medium - Google Patents

Gateway batch network access method, device, equipment and storage medium Download PDF

Info

Publication number
CN114143129A
CN114143129A CN202010808668.4A CN202010808668A CN114143129A CN 114143129 A CN114143129 A CN 114143129A CN 202010808668 A CN202010808668 A CN 202010808668A CN 114143129 A CN114143129 A CN 114143129A
Authority
CN
China
Prior art keywords
network access
network
gateway
information
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.)
Granted
Application number
CN202010808668.4A
Other languages
Chinese (zh)
Other versions
CN114143129B (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 network access method, a device, equipment and a storage medium, wherein the method comprises the steps of obtaining a network access message for triggering gateway equipment to access a network, 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 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 in a set range by an internetwork communication technology so that the non-network access gateway equipment can be added into the current network based on the network access message. The gateway equipment broadcasts to other gateways through the internetwork communication technology, triggers all the gateways to almost simultaneously carry out the network access process, and achieves the purposes of automatic network access of the gateways in batches and simplification of network access operation.

Description

Gateway batch network access 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 and device, gateway equipment, terminal equipment and a computer readable storage medium.
Background
Today, the Internet of things is rapidly developing, and smart home devices are increasingly popularized, wherein a heavyweight role, namely a smart home gateway, exists, and serves as a connection and control center for connecting other smart home devices and finally connecting all smart home devices to a network (Internet).
At present, the mainstream wireless communication protocols of the intelligent home gateway include WI-FI, Zigbee, BLE and the like. For example, an intelligent gateway with WI-FI and Zigbee needs to perform network access configuration operation, so that the intelligent gateway can access the Internet, finally connect to a cloud server, and complete association binding with a certain user account, so as to realize that a mobile phone terminal App controls the gateway and Zigbee equipment in the Zigbee network thereof. The known process of network access of the gateway device is that the gateway device is configured one by one through the mobile phone terminal, and the gateway device is connected with the router and the network after receiving the configuration information to complete the network access processes of registration, account binding and the like of the gateway device.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a method and an apparatus for batched gateway network access, a gateway device, a terminal device, and a computer-readable storage medium, which are simple in operation and capable of efficiently accessing a network.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a gateway batch network access method, applied to a gateway device, including: acquiring a network access message for 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 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 in a set range by an internetwork 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 second aspect, an embodiment of the present invention provides a gateway batch network access 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 access 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 in a set range through an internetwork communication technology.
In a third aspect, an embodiment of the present invention provides a gateway batch network access apparatus, including: the gateway equipment comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a network access message for triggering network access of the gateway equipment, and the network access message comprises network identity information and network access identity verification information; the network access module is used for joining 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; and the broadcasting module is used for broadcasting the network access message to non-network access gateway equipment in a set range through an internetwork communication technology so that the non-network access gateway equipment can join 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 apparatus, 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 access 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 in a set range through an internetwork 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 gateway batch network accessing method 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 a computer program is stored in the memory, and when the processor runs the computer program, the method for batch network access of a gateway 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 in the computer-readable storage medium, and when the computer program code is loaded and executed by a processor, the method for batch networking of gateways according to any embodiment of the present invention is implemented.
The gateway batch network access method, the gateway device, the terminal device and the computer readable storage medium provided by the above embodiments, wherein the gateway device obtains a network access message including network identity information and network access identity verification information, joins the network based on the network access message, and can broadcast the network access message to non-network gateway devices within a set range by using an inter-network communication technology, so that the non-network gateway devices join the current network based on the network access message, so that the gateway device can communicate with other gateway devices based on the inter-network communication, and simultaneously broadcast the network access configuration to a plurality of non-network gateway devices, thereby realizing the fast batch network access of the multi-gateway devices, without using a mobile phone terminal to perform individual network access operations on the plurality of gateway devices one by one, and greatly simplifying the network access operation flow for the plurality of gateway devices, the network access efficiency is effectively improved.
Drawings
Fig. 1 is an application scenario diagram of a gateway batch network access method in an embodiment of the present invention;
fig. 2 is a flowchart of a gateway batch network access method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for batch networking of gateways according to another embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for batch networking of gateways according to another embodiment of the present invention;
FIG. 5 is a flowchart illustrating a method for batch networking of gateways according to still another embodiment of the present invention;
FIG. 6 is a flowchart illustrating a method for batch networking of gateways according to another embodiment of the present invention;
FIG. 7 is a flowchart illustrating a method for batch networking of gateways according to another embodiment of the present invention;
fig. 8 is a schematic block diagram of a gateway batch network access 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 network access device according to another embodiment of the present invention;
fig. 13 is a timing diagram of a gateway batch network accessing method according to an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further elaborated by combining the drawings and the specific embodiments in the specification. 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 in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" 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 describes a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
Referring to fig. 1, an optional application scenario diagram of the gateway batch network access method provided in 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 a WI-FI protocol or a ZigBee protocol, and the smart home devices are connected to the cloud server 40 through the connection gateway devices 20, so that a user may perform unified management by installing a client program for managing the smart home devices on a mobile terminal, where the smart home devices may include, but are not limited to, smart devices such as a water heater, a door, a curtain, a lamp, and a camera. 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 with each other, and/or the gateway device 20 and the gateway device 20 perform data communication with each other, so as to jointly implement the gateway batch network access method provided by the present invention. The terminal device 10 may store a client program for managing the network access configuration of the gateway device 20, and the client program is configured to implement at least the flow steps of 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 therein a computer program, and the computer program is used to implement at least the flow steps of the gateway batch network accessing 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 packet to the gateway device 20, the gateway device 20 is controlled to execute a network access operation after receiving the network access packet, and the terminal device 10 interacts with the gateway device 20 to implement 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 obtains a network access message from another gateway device, the network access message is sent to another non-network access gateway device 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, the method for batch networking of gateway devices is exemplified by taking the plurality of gateway devices 20 including the gateway a, the gateway B, and the gateway C as an example. In an optional embodiment, it is assumed that a user first performs network access and distribution operation on a gateway a, performs scanning search through a client program in a terminal device 10, connects a WI-FI hotspot sent by a gateway device 20, the user inputs network access information such as an SSID, a password, and a user account of a 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 receives the network access information sent by the terminal device 10, and then starts a subsequent network access process. Meanwhile, the gateway A can also broadcast the network access information to the gateway B and the gateway C by utilizing an internetwork communication technology, and the gateway B and the gateway C are triggered to automatically start to enter the network access process after receiving the network access information sent by the gateway A in a broadcasting mode. The gateway B and the gateway C may also rebroadcast the network access information by using the inter-network communication technology, thereby expanding the broadcast reach of the network access information until the gateway devices 20 within the set range complete the network access process. Thus, when accessing the network for the multiple gateway devices 20, the user may complete the network access configuration for only one of the gateway devices 20, and the gateway device 20 may broadcast the network access configuration to the non-network-access gateway device 20 based on the inter-network communication, thereby implementing fast batch network access for the multiple gateway devices 20, greatly simplifying the network access operation procedure for the multiple gateway devices 20, and effectively improving the network access efficiency.
Referring to fig. 2, a gateway batch network accessing 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 for triggering network access of gateway equipment is obtained, wherein the network access message comprises network identity information and network access identity verification information.
The network identity information refers to information that can uniquely represent the identity of the current network to be accessed of the gateway device, such as a name and an Identifier of a wireless network to be accessed, an SSID (Service Set Identifier) of a router, and the like. The network access authentication information refers to authentication information required by the gateway device to join the current network to be accessed, such as a user account, a router password and the like. The gateway device can access the network through the terminal device performing network access configuration to obtain a network access message triggering the gateway device to access the network, or can perform network communication with the gateway device already accessed to obtain the network access message. The network access message for triggering the gateway device to access the network may be obtained by the gateway device from the terminal device, or obtained by the gateway device from another gateway device.
And step S103, 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.
After the gateway device obtains the network access message, the gateway device connects 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 the server, and performs network access processes such as device registration and account binding.
Step S105, broadcasting the network access message to non-network access gateway equipment in a set range through an internetwork communication technology, so that the non-network access gateway equipment can join the current network based on the network access message.
The inter-network communication technology refers to a technology for realizing communication between different networks, and optionally, the inter-network communication technology may also refer to a communication technology for broadcasting between gateway devices such as WIFI and bluetooth. The setting range refers to the maximum range for broadcasting to other gateway devices according to different communication means adopted by the gateway devices, and the setting range may 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 non-network access gateway equipment in a set range through an internetwork communication technology, 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 network identity information and network access identity verification information in the network access message, is accessed into a network through the router and is connected with a server, and network access processes such as equipment registration, account binding and the like are carried out. The internet technology is an internetwork communication technology which can be applied to the ZigBee network, and even if two Zigbee gateway devices are not in the same Zigbee network, the two Zigbee gateway devices can communicate with each other through the Zigbee internet technology. In this embodiment, the gateway device broadcasts to other gateway devices through the interpan technology, and can quickly trigger all gateways to perform a network access process almost simultaneously, thereby achieving the purpose of batch network access of the gateways.
According to the gateway batch network access method provided by the embodiment, the network access message is broadcasted to the non-network-access gateway devices through the gateway devices based on the internetwork communication technology, when the multi-gateway device is accessed to the network, a user can complete network access configuration on one gateway device, the gateway device can communicate with other gateway devices based on the internetwork communication, the network access configuration is broadcasted to the plurality of non-network-access gateway devices simultaneously, and the multi-gateway device can be accessed to the network rapidly in batches, so that the plurality of gateway devices do not need to be accessed to the network individually one by one through the mobile phone terminal, the network access operation flow of the plurality of gateway devices is greatly simplified, and the network access efficiency is effectively improved.
In some embodiments, referring to fig. 3, in step S101, acquiring a network access message for triggering network access of a gateway device includes:
step S1010, a network access operation instruction sent by the terminal equipment is obtained, wherein the network access operation instruction comprises a network access message for triggering network access of a gateway, and the network access message carries gateway sequence information to be accessed to the network.
Step S103, joining the current network based on the network access packet, and executing a network access process according to the network identity information and the network access identity verification information, including:
step S1030, when determining that the gateway device belongs to the range of the gateway sequence to be accessed according to the identity information of the gateway device and the gateway sequence information to be accessed, directly executing an access process according to the network identity information and the access authentication information.
In this embodiment, a user performs network access configuration on a currently-accessed gateway device through a network access configuration page on a terminal device, and sends a network access operation instruction to the gateway device, so that after receiving the network access operation instruction, the gateway device connects a corresponding router according to network identity information and network access authentication information in a network access message, accesses a network through the router, and is connected with a server to perform network access processes such as registration and account binding of the device. Optionally, in order to further improve security, the network access operation instruction further includes gateway sequence information to be accessed, the user may input the gateway sequence information to be accessed through the terminal device, when the gateway device receives a network access message that includes the gateway sequence information to be accessed and is sent by the terminal device, it is determined whether the gateway device belongs to the gateway sequence range to be accessed, 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 already accessed the network may further broadcast an access message that triggers gateway access and carries gateway sequence information to be accessed to the gateway device that has not accessed the network, and when the gateway device that has not accessed the network and receives the access message belongs to the range of the gateway sequence, the gateway device that has not accessed the network may decrypt the broadcast message by using a preset encryption mechanism, and add the decrypted access message to the current network; if the non-network-accessing gateway equipment which receives the network-accessing message does not belong to the range of the gateway sequence, the broadcast information cannot be decrypted. In other optional embodiments, the network access packet further carries identity information of a sending end, the gateway device after receiving the network access packet can identify a source of the network access packet according to the identity information of the sending end, and when the gateway device confirms that the received network access packet is a directional network access packet sent by the terminal device, the gateway device can directly execute a network access process according to the directional network access packet; or, when the gateway device confirms that the received network access message is the network access message broadcast by other gateway devices, the gateway device decrypts the broadcast information by adopting a preset encryption mechanism according to whether the gateway device belongs to the range of the gateway sequence, and adds the decrypted network access message into the current network. Therefore, the method for broadcasting the network access message through the gateway equipment can be improved, and the safety of other non-network access gateway equipment can be ensured when the other non-network access gateway equipment can automatically access the network in batches.
Referring to fig. 4, in some embodiments, in step S101, acquiring a network access message for triggering network access of a gateway device includes:
step S1011, acquiring a network access packet which triggers network access of a gateway and is broadcast-transmitted by another gateway device based on an inter-network communication technology.
In this embodiment, the gateway device obtains a network access packet sent by broadcast from another gateway device through an internetwork communication technology, connects a corresponding router according to network identity information and network access identity verification information in the network access packet, accesses a network through the router, and is connected to a server to perform network access processes such as registration and account binding of the device. It can be understood that, after obtaining a network access packet from another gateway device through the inter-network communication technology and joining the network, any gateway device may further broadcast the network access packet to other non-network access gateway devices through the inter-network communication technology, thereby expanding the broadcast reach of the network access packet.
Optionally, step S103, before adding to the current network based on the network access packet, further includes:
step S1012, feeding back the encryption code to the terminal device according to the set encryption mechanism;
step S1013, a confirmation instruction after the terminal device 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 packet includes:
and step S1031, adding the network access message into the current network based on the decrypted network access message.
The gateway equipment can be preset with a uniform encryption mechanism, in the implementation process of automatically accessing the network in batches by broadcasting the network access message through the gateway equipment, after the network access message broadcasted by other gateway equipment is received by the non-network access gateway equipment, the encryption code is fed back to the terminal equipment according to the set encryption mechanism, the terminal equipment receives the encryption code and then carries out verification and confirmation, and when the non-network access gateway equipment receives a confirmation instruction after the terminal equipment verifies the encryption code, the network access message is decrypted based on the confirmation instruction, and the network access message is added to the current network according to the decrypted network access message. In this embodiment, the encryption code is preset in the gateway device according to the set encryption mechanism, when the gateway device receives the network access message broadcast by other gateway devices, the encryption code is fed back to the mobile terminal, and the mobile terminal can decrypt the broadcast information after the verification of the encryption code is passed, so that the security of any gateway device in the process of obtaining the network access message from another gateway device through the inter-network communication technology and adding the network access message into the network is improved.
Optionally, referring to fig. 5, the network entry packet carries gateway sequence information to be accessed, and step S103 further includes, before adding to the current network based on the network entry packet:
and S102, decrypting the network access message according to a set encryption mechanism when determining that the gateway equipment belongs to the range of the gateway sequence to be accessed according to the identity information of the gateway equipment and the gateway sequence information to be accessed.
In this embodiment, the gateway device carries gateway sequence information to be accessed to a network access message broadcasted by the gateway device that is not accessed to the network through an internetwork communication technology, after receiving a network access message broadcasted by another gateway device, the gateway device that is not accessed to the network judges whether the gateway sequence information belongs to a gateway sequence range to be accessed to the network according to identity information of the gateway device and the gateway sequence information to be accessed to the network, and when the gateway sequence information belongs to the gateway sequence range to be accessed to the network, the gateway device decrypts the network access message according to a set encryption mechanism, otherwise, the gateway device cannot decrypt the received broadcast information. Therefore, the security of any gateway device in the process of obtaining the network access message from another gateway device to join the network through the internetwork communication technology can be improved.
Optionally, referring to fig. 6, in step S103, adding to the current network based on the network entry packet includes:
step S1032, a network access request carrying gateway equipment identity information is sent to the server based on the network access message, so that the server completes network access when determining that the gateway equipment belongs to the range of the gateway sequence to be accessed to the network based on the gateway equipment identity information and the network access request.
In this embodiment, the gateway sequence information to be accessed to the network may be pre-stored in a server, after receiving an access packet broadcast by another gateway device or directly sent by a terminal device, a network access request carrying gateway device identity information is sent to the server based on the access packet, the server determines whether the gateway device belongs to a gateway sequence range to be accessed to the network according to the gateway device identity information and the pre-stored gateway sequence information to be accessed to the network, and when determining that the gateway device belongs to the gateway sequence range to be accessed to the network, the server allows the gateway device to access to the network; otherwise, when the server determines that the gateway device does not belong to the range of the gateway sequence to be accessed, the server can refuse to access the network. Therefore, the security of any gateway device in the process of obtaining the network access message from another gateway device to join the network through the internetwork communication technology can be improved.
In some embodiments, the gateway batch network entry method further includes:
step S106, acquiring a newly added request sent by newly added gateway equipment;
and step S107, sending the network access message to the newly-added gateway equipment through an internetwork communication technology based on the newly-added request, so that the newly-added gateway equipment can be added to 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 internetwork communication technology, the gateway device which has accessed the network obtains a new request sent by the newly-added gateway device, and the network access message is sent to the newly-added gateway device through the internetwork communication technology, so that the newly-added gateway device can join the current network based on the network access message. Therefore, for the newly added gateway equipment, automatic batch network access can be realized in a mode of broadcasting network access messages among the gateway equipment, and the network access efficiency is effectively improved.
In some embodiments, the step S103, adding to the current network based on the network access packet, and executing a network access process 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 process according to the network identity information and the network access identity verification information;
and/or the presence of a gas in the gas,
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 for the gateway device to execute the network access process may be that the triggering condition is automatically triggered by receiving a network access message, the current network access state is detected after the gateway device receives the network access message, and the network access process is automatically executed directly 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 for the gateway device to execute the network access process may also be an independent network access instruction, for example, a command that a user uses a terminal device to send and instructs the gateway device to execute the network access, operation information that the home equipment in the network to which the gateway device belongs tries to connect, and the like.
In the above embodiment, the gateway device automatically triggers the network access operation by receiving the network access message, which is beneficial to the gateway device to realize rapid automatic network access in batches; and the gateway equipment executes the network access operation according to the received network access message based on the received network access instruction, so that the defect detection and the omission mending of the network access of the gateway equipment in a special application scene are facilitated, and various use requirements are met.
Optionally, before broadcasting the network access packet to the non-network access gateway device within the set range through the inter-network communication technology, the method further includes:
confirming whether the current network access execution process is successful;
if the current network access process is successfully executed, the step of broadcasting the network access message to the non-network access gateway equipment in the set range through the internetwork communication technology is executed;
if the current network access flow is not successful, judging whether a new network access message is received or not, and returning to the step of adding the current network based on the network access message.
In the above embodiment, after the gateway device successfully joins the current network, the network access message is broadcasted to the outside, so that incomplete or wrong 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, adding to the current network based on the network access packet, and executing a network access process according to the network identity information and the network access identity verification information, including:
when a plurality of network access messages are received through broadcasting, selecting a target network access message according to a set rule, adding the target network access message into the current network based on the target network access message, and executing a network access process according to the network identity information and the network access identity verification information;
and/or the presence of a gas in the gas,
the broadcasting the network access message to the non-network access gateway equipment in the set range by the internetwork communication technology comprises the following steps: respectively sending data to gateway equipment within a set range, and when a data receiving success instruction returned by the corresponding gateway equipment is not received within specified time, determining that the corresponding gateway equipment is non-network gateway equipment; or acquiring a list of non-network-connected gateway equipment, and determining the non-network-connected gateway equipment according to the list of the non-network-connected gateway equipment; and broadcasting the network access message to the non-network access gateway equipment through an internetwork communication technology.
Wherein the setting rule may include at least one of: selecting a network access message with the nearest time according to the receiving time of the network access message; selecting a network access message broadcasted by the gateway equipment with the closest 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 for the network access message can be preset, and when the gateway equipment receives a plurality of network access messages, the more matched network access message is selected to execute the current network access process, so that the success rate of network access once is increased.
Optionally, when the gateway device broadcasts the network access packet to the outside, it may first determine whether there is an un-networked gateway within the setting range, and then broadcast the network access packet to the un-networked gateway device through the inter-network communication technology. The gateway device identifying the non-network-entry gateway device may include: the gateway device may send data to the gateway devices within the setting range, and when a successful data reception instruction returned by the corresponding gateway device is not received within the specified time, the corresponding gateway device is the non-network-connected gateway device, or the gateway device may obtain a list of the non-network-connected gateway devices from the terminal device, and determine the non-network-connected gateway device according to the list of the non-network-connected gateway devices. The gateway equipment can improve pertinence and reduce data communication resources among the gateway equipment by pre-judging whether the gateway equipment which is not accessed to the network exists or not and then broadcasting the accessed message.
In another aspect of the embodiments of the present invention, please refer to fig. 7, which further provides a gateway batch network access method, applied to a terminal device, including the following steps.
Step S201, obtaining network access configuration information of the current gateway device, where the network access configuration information includes network identity information and network access identity verification information.
The terminal device is provided with a client program for managing the network access configuration of the gateway device, and a user can configure the network access information of the current gateway device on a network access configuration page in the client program and then send the configuration information to the gateway device through the terminal device. The network identity information refers to information that can uniquely represent the identity of the current network to be accessed of the gateway device, such as a name and an Identifier of a wireless network to be accessed, an SSID (Service Set Identifier) of a router, and the like. The network access authentication information refers to authentication information required by the gateway device to join the current network to be accessed, such as a user account, a password and the like. The current gateway device performs network access configuration on the current gateway device through the terminal device to obtain a network access message for triggering the gateway device 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 is sent to the current gateway equipment so that the current gateway equipment can access the current network based on the network access message, a network access process is executed according to the network identity information and the network access identity verification information, and the network access message is broadcasted to non-network access gateway equipment in a set range through an internetwork communication technology.
The network access configuration page of the client program of the terminal device may include a network access confirmation key, and the user may press or touch the network access confirmation key to send a network access operation instruction to the gateway device after configuring the network access information of the current gateway device on the network access configuration page. 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 internetwork communication technology.
When the multi-gateway equipment is accessed to the network, a user can adopt the terminal equipment to complete network access configuration only for one gateway equipment, after the gateway equipment is accessed to the network, the accessed gateway equipment can communicate with other gateway equipment based on internetwork communication, the network access configuration is simultaneously broadcasted to a plurality of gateway equipment which is not accessed to the network, and the multi-gateway equipment can be rapidly accessed to the network in batches, so that the plurality of gateway equipment do not need to be individually accessed to the network one by one through a mobile phone terminal, the network access operation flow aiming at the plurality of gateway equipment is greatly simplified, and the network access efficiency is effectively improved.
In some embodiments, the gateway batch network access method further includes:
acquiring identity information of gateway equipment to be accessed to a network, and forming 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 sending the gateway sequence information to be accessed to the current gateway equipment along with the access message.
The terminal device can receive the identity information of the gateway device to be accessed through the network access configuration page of the client program, and form gateway sequence information to be accessed and send the gateway sequence information to the gateway device along with the network access message according to the identity information of the gateway device to be accessed. The gateway equipment is communicated with other gateway equipment based on internetwork communication, the gateway sequence information to be accessed to the network is broadcasted to the gateway equipment which is not accessed to the network along with the network accessing message, when the gateway equipment which is not accessed to the network and receives the network accessing message belongs to the range of the gateway sequence, the broadcast information can be decrypted, and the gateway equipment is added to the current network based on the decrypted network accessing message; when the gateway device which does not access the network and receives the network access message does not belong to the range of the gateway sequence, the broadcast information cannot be decrypted, so that the safety of any gateway device obtaining the network access message from another gateway device through the internetwork 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 viewing instruction, and acquiring and displaying a current network access completed gateway equipment list from a server based on the viewing instruction.
The method comprises the steps that terminal equipment obtains a network access checking instruction input by a user based on a network access configuration page, and obtains and displays a current network access-completed gateway equipment list from a server based on the checking instruction. The user can check the list information of the gateway devices which have finished network access through the mobile terminal, so that the user can timely know which gateway devices have successfully accessed the network.
Referring to fig. 8, another embodiment of the present invention provides a gateway batch network access apparatus, which may be implemented by a gateway device side in an exemplary embodiment, where the gateway batch network access apparatus includes an obtaining module 211, configured to obtain a network access message that triggers network access of a gateway device, where the network access message includes network identity information and network access identity verification information; a network access module 212, configured to join the current network based on the network access packet, and execute a network access process according to the network identity information and the network access identity verification information; a broadcasting module 213, configured to broadcast the network access packet to an un-networked gateway device within a set range through an inter-network communication technology, so that the un-networked gateway device joins a current network based on the network access packet.
In some embodiments, the obtaining module 211 is specifically configured to obtain a network access operation instruction sent by a terminal device, where the network access operation instruction includes a network access message that triggers gateway network access, and the network access message carries gateway sequence information to be accessed to the network; the network access module 212 is specifically configured to, when it is determined that the gateway device belongs to the range of the gateway sequence to be accessed according to the gateway device identity information and the gateway sequence information to be accessed, directly execute a network access process according to the network identity information and the network access identity verification information.
In some embodiments, the obtaining module 211 is specifically configured to obtain a network access packet that triggers network access of a gateway and is sent by another gateway device based on an internetwork communication technology in a broadcast manner.
In some embodiments, the network access module 212 is further configured to feed back the 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 packet carries information of a gateway sequence to be accessed, and the network access module 212 is further configured to decrypt the network access packet according to a set encryption mechanism when determining that the gateway device belongs to the range of the gateway sequence to be accessed according to the identity information of the gateway device and the gateway sequence information to be accessed.
In some embodiments, the network access module 212 is specifically configured to send a network access request carrying gateway device identity information to a server based on the network access packet, so that the server completes network access when determining that the gateway device belongs to a range of a gateway sequence to be accessed to the network based on the gateway device identity information and the network access request.
In some embodiments, the system further includes an adding module 214, and the obtaining module 211 is further configured to obtain an adding request sent by a newly added gateway device; the adding module 214 is configured to send the network access packet to the newly added gateway device through an internetwork communication technology based on the addition request, so that the newly added gateway device joins the current network based on the network access packet.
In some embodiments, the network accessing module 212 is further configured to detect a current network accessing status when the network accessing 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 process according to the network identity information and the network access identity verification information; and/or 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.
In some embodiments, the network access module 212 is further configured to, when a plurality of network access messages are received through broadcasting, select a target network access message according to a set rule, join the current network based on the target network access message, and execute a network access process according to the network identity information and the network access identity verification information; and/or, the broadcasting the network access message to the non-network access gateway device in the set range by the inter-network communication technology includes: respectively sending data to gateway equipment within a set range, and when a data receiving success instruction returned by the corresponding gateway equipment is not received within specified time, determining that the corresponding gateway equipment is non-network gateway equipment; or acquiring a list of non-network-connected gateway equipment, and determining the non-network-connected gateway equipment according to the list of the non-network-connected gateway equipment; and broadcasting the network access message to the non-network access gateway equipment through an internetwork communication technology.
It should be noted that: in the gateway batch network access device provided in the foregoing embodiment, when implementing the gateway device batch network access, only the division of each program module is illustrated, and in practical applications, the processing allocation may be completed by different program modules according to needs, that is, the internal structure of the device is divided into different program modules, so as to complete all or part of the processing described above. In addition, the gateway batch network access device provided in the above embodiment and the gateway batch network access method applied to the gateway device side belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
Another aspect of the present invention provides a gateway device, please refer to fig. 9, which is an optional hardware structure diagram of the gateway device according to an embodiment of the present invention, 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 the gateway device side according to any embodiment of the present invention, and when the computer program is executed by the processor, the computer program implements each process of the gateway batch network access method applied to the gateway device side according to the above embodiment, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
The memory may be used to store software programs and modules, and the processor may execute various functional applications and data processing by operating the software programs and modules stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs needed by functions and the like; the storage data area may store data created according to use of the apparatus, and the like. Further, 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 the processor access to the memory.
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 have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 1110 (the processors 1110 may include but are not limited to processing devices such as a microprocessor MCU or a programmable logic device FPGA), a memory 1130 for storing data, and one or more storage media 1120 (e.g., one or more mass storage devices) for storing applications 1123 or data 1122. The memory 1130 and the storage medium 1120 may be, among other things, transient storage or persistent storage. The program stored in the storage medium 1120 may include one or more modules, each of which may include a series of instruction operations for a server. Still further, processor 1110 may be configured to communicate with storage medium 1120 to execute a series of instruction operations in storage medium 1120 on gateway device 1100. Gateway apparatus 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 windows server, MacOSXTM, unix, linux, FreeBSDTM, and so forth.
The input output interface 1140 may be used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the gateway device 1100. In one example, i/o interface 1140 includes a network adapter (NIC) that may be coupled to other network devices via a base station to communicate with the internet. In one example, the input/output interface 1140 can be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
It will be understood by those skilled in the art that the structure shown in fig. 9 is only an illustration, and does not 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.
Fig. 10 is a schematic diagram of a hardware structure of a terminal device implementing various embodiments of the present invention.
The terminal devices include but are 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. Those skilled in the art will appreciate that the terminal device configuration shown in figure x does not constitute a limitation of the terminal device, and that a mobile terminal may comprise more or less components than those shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, a pedometer, and the like.
The processor 110 is configured to acquire network access configuration information of a 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 access 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 in a set range through an internetwork communication technology.
The terminal equipment can form a network access operation instruction carrying a network access message by carrying out network access configuration on one gateway equipment, the gateway equipment obtains the network access configuration information of the terminal equipment, the network access configuration can be simultaneously broadcast to a plurality of gateway equipment which does not access the network based on internetwork communication and other gateway equipment communication, the rapid batch network access of the plurality of gateway equipment is realized, the mobile phone terminal does not need to be used for carrying out individual network access operation on the plurality of gateway equipment one by one, the network access operation flow aiming at the plurality of gateway equipment is greatly simplified, and the 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 used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, 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 can also communicate with a network 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 send and receive e-mails, browse webpages, access streaming media, and the like.
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 related to a specific function performed by the terminal device (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the graphics processing unit 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 101. The image frames processed by the graphic 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. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The terminal device also includes 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 that adjusts the brightness of the display panel 1011 according to the brightness of ambient light, and a proximity sensor that turns 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 magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail 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 (LCD), an organic light-emitting diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and 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. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction 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 sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, 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 nearby, the touch operation is transmitted to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1011 according to the type of the touch event. Although in fig. 1, the touch panel 1071 and the display panel 1011 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 1071 and the display panel 1011 may be integrated to implement the input and output functions of the terminal device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal apparatus. For example, the external device may include a wired or wireless headset port, an external power supply (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 apparatus or may be used to transmit data between the terminal apparatus and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the 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 various parts of the entire terminal device by 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, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly 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 include a power supply 111 (such as a battery) for supplying power to each component, and preferably, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device includes some functional modules that are not shown, and are not described herein again.
Referring to fig. 11, an 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, where the memory 11 stores a computer program for implementing the gateway batch network access method applied to the terminal device side provided in any embodiment of the present invention, and when the computer program is executed by the processor 12, the computer program implements each process of the gateway batch network access method applied to the terminal device side, and can achieve the same technical effect, and in order to avoid repetition, details are not described here.
Referring to fig. 12, an embodiment of the present invention further provides a gateway batch network access apparatus, which may be implemented by using a terminal device in an exemplary embodiment, where the gateway batch network access apparatus includes a configuration module 110, configured to obtain network access configuration information of a current gateway device, where the network access configuration information includes network identity information and network access identity verification information; a sending module 112, configured to form a network access operation instruction carrying a network access packet 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 joins the current network based on the network access packet, execute a network access process according to the network identity information and the network access identity verification information, and broadcast the network access packet to a non-network access gateway device within a set range through an inter-network communication technology.
In some embodiments, the configuration module 110 is further configured to obtain identity information of a gateway device to be networked, and form gateway sequence information to be networked according to the identity information of the gateway device to be networked; the sending module is further configured to send the gateway sequence information to be accessed to the current gateway device along with the access packet.
In some embodiments, the viewing module 113 is further included, and is configured to obtain a viewed instruction of the network access, and obtain and display a list of currently completed gateway devices from the server based on the viewed instruction.
It should be noted that: in the gateway batch network access device provided in the foregoing embodiment, when implementing the gateway device batch network access, only the division of each program module is illustrated, and in practical applications, the processing allocation may be completed by different program modules according to needs, that is, the internal structure of the device is divided into different program modules, so as to complete all or part of the processing described above. In addition, the gateway batch network access device provided by the above embodiment and the gateway batch network access method embodiment applied to the terminal device side belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
In order to further understand the gateway batch network accessing method provided by the embodiment of the present invention, the following overall exemplary description of the gateway batch network accessing method with reference to fig. 13 includes the following steps:
step S11, the mobile terminal acquires the network access configuration information, forms the network access message with the network access configuration information and sends the network access message to the gateway A;
step S12, the gateway A receives the network access message, and starts the network access process according to the network identity information and the network access identity verification information in the network access message; the network identity information may include an SSID of the WI-FI router, and the network access identity authentication information includes a user account and a password;
step S13, the gateway A uses the interpan technology to broadcast the network access message to the gateway device which is not accessed to the network;
step S14, the gateway B and/or the gateway C receives the network access message broadcast by the gateway A, and feeds back the preset encryption code to the terminal equipment through a preset encryption mechanism;
step S15, the terminal equipment checks after receiving the encryption code, and returns a check passing instruction to the gateway B and/or the gateway C when the check passes;
and step S16, after the gateway B and/or the gateway C decrypts the network access message, starting to enter a subsequent network access process based on the decrypted network access message.
It should be noted that, after the gateway B and/or the gateway C joins the network, the network access packet may be continuously broadcast and sent to other non-network access gateway devices, so that the reachable range of the network access packet may be expanded, and after receiving the network access packet, other non-network access gateways also start to enter the network access process, and finally all gateways complete the network access process. According to the gateway batch network access method provided by the embodiment of the invention, a user can only carry out network access configuration on one gateway through a mobile phone, namely, a message for triggering network access of the gateway can be sent to other gateways which do not access the network by utilizing an internetwork communication technology between the gateways, wherein the message comprises information such as SSID (service set identifier), password, user account and the like of a WI-FI (wireless fidelity) router, so that the peripheral gateways which do not access the network can quickly and automatically access the network in batch, and the network access configuration process is efficiently completed. When a new gateway is added into the network to be accessed, request information can be sent to other gateways through the interpan technology, and the accessed gateway can broadcast the network access information to the new gateway through the interpan technology.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of any one of the embodiments of the gateway batch network access method, and can achieve the same technical effect, and is not described herein again to avoid repetition. The computer-readable storage medium may be a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. The scope of the invention is to be determined by the scope of the appended claims.

Claims (17)

1. A gateway batch network access method is applied to gateway equipment and is characterized by comprising the following steps:
acquiring a network access message for 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 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 in a set range by an internetwork communication technology so that the non-network access gateway equipment can be added into the current network based on the network access message.
2. The gateway batch network accessing method of claim 1, wherein the acquiring the network access message triggering the gateway device to access the network comprises:
acquiring a network access operation instruction sent by terminal equipment, wherein the network access operation instruction comprises a network access message for triggering network access of a gateway, and the network access message carries gateway sequence information to be accessed to the network;
the joining 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, comprising:
and when determining that the gateway equipment belongs to the range of the gateway sequence to be accessed according to the identity information of the gateway equipment and the gateway sequence information to be accessed, directly executing the access flow according to the network identity information and the access identity verification information.
3. The gateway batch network accessing method of claim 1, wherein the acquiring the network access message triggering the gateway device to access the network comprises:
and acquiring a network access message which is sent by another gateway device based on the inter-network communication technology broadcast and triggers the gateway to access the network.
4. The gateway batch networking method according to claim 3, wherein before joining the current network based on the networking message, 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 joining the current network based on the network access message comprises:
and adding the current network based on the decrypted network access message.
5. The gateway batch network accessing method of claim 3, wherein the network accessing packet carries information of a gateway sequence to be accessed, and before adding to the current network based on the network accessing packet, the method further comprises:
and decrypting the network access message according to a set encryption mechanism when determining that the gateway equipment belongs to the range of the gateway sequence to be accessed according to the identity information of the gateway equipment and the gateway sequence information to be accessed.
6. The gateway batch networking method according to claim 3, wherein said joining the current network based on the networking packet comprises:
and sending a network access request carrying gateway equipment identity information to a server based on the network access message, so that the server completes network access when determining that the gateway equipment belongs to the range of a gateway sequence to be accessed to the network based on the gateway equipment identity information and the network access request.
7. The gateway batch networking method according to any one of claims 1 to 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 internetwork 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 network accessing method of any one of claims 1 to 6, wherein the joining the current network based on the network access packet and performing the network access process according to the network identity information and the network access identity verification information comprises:
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 process according to the network identity information and the network access identity verification information;
and/or the presence of a gas in the gas,
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 network accessing method of any one of claims 1 to 6, wherein the joining the current network based on the network access packet and performing the network access process according to the network identity information and the network access identity verification information comprises:
when a plurality of network access messages are received through broadcasting, selecting a target network access message according to a set rule, adding the target network access message into the current network based on the target network access message, and executing a network access process according to the network identity information and the network access identity verification information;
and/or the presence of a gas in the gas,
the broadcasting the network access message to the non-network access gateway equipment in the set range by the internetwork communication technology comprises the following steps:
respectively sending data to gateway equipment within a set range, and when a data receiving success instruction returned by the corresponding gateway equipment is not received within specified time, determining that the corresponding gateway equipment is non-network gateway equipment; or acquiring a list of non-network-connected gateway equipment, and determining the non-network-connected gateway equipment according to the list of the non-network-connected gateway equipment;
and broadcasting the network access message to the non-network access gateway equipment through an internetwork communication technology.
10. A 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;
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 access 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 in a set range through an internetwork communication technology.
11. The gateway batch network accessing method of claim 10, further comprising:
acquiring identity information of gateway equipment to be accessed to a network, and forming 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 sending the gateway sequence information to be accessed to the current gateway equipment along with the access message.
12. The gateway batch network accessing method of claim 10, further comprising:
and acquiring a network access viewing instruction, and acquiring and displaying a current network access completed gateway equipment list from a server based on the viewing instruction.
13. The utility model provides a gateway device of networking in batches which characterized in that includes:
the gateway equipment comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a network access message for triggering network access of the gateway equipment, and the network access message comprises network identity information and network access identity verification information;
the network access module is used for joining 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;
and the broadcasting module is used for broadcasting the network access message to non-network access gateway equipment in a set range through an internetwork communication technology so that the non-network access gateway equipment can join the current network based on the network access message.
14. The utility model provides a gateway device of networking in batches which characterized in that includes:
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 access 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 in a set range through an internetwork communication technology.
15. A gateway device comprising a memory for storing a computer program and at least one processor, wherein the processor executes the computer program to perform the gateway batch networking method according to any one of claims 1 to 9.
16. A terminal device, comprising a display module, a memory and at least one processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the gateway batch network access method according to any one of claims 10 to 12.
17. A computer-readable storage medium, wherein a computer program code is stored in the computer-readable storage medium, and when the computer program code is loaded and executed by a processor, the method for gateway batch networking according to any one of claims 1 to 9 or 10 to 12 is implemented.
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 true CN114143129A (en) 2022-03-04
CN114143129B 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 (19)

* 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
CN105100213A (en) * 2015-06-26 2015-11-25 小米科技有限责任公司 Equipment binding method and device
CN105656739A (en) * 2016-03-23 2016-06-08 浙江风向标科技有限公司 Method and device for batch configuration of Internet of things devices
CN106292313A (en) * 2015-06-29 2017-01-04 中兴通讯股份有限公司 The control method of intelligent appliance, Apparatus and system
CN106375169A (en) * 2016-12-02 2017-02-01 华东交通大学 Intelligent household system and network accessing method
CN106507330A (en) * 2016-09-26 2017-03-15 海尔优家智能科技(北京)有限公司 A kind of equipment networking collocation method and device
US9648548B1 (en) * 2015-01-02 2017-05-09 Sprint Spectrum L.P. WiFi mesh configuration
CN106953782A (en) * 2017-02-28 2017-07-14 美的智慧家居科技有限公司 A kind of method and device for controlling intelligent appliance to network
CN107086934A (en) * 2017-06-12 2017-08-22 中国联合网络通信集团有限公司 The collocation method and gateway of networking equipment
CN108494638A (en) * 2018-02-09 2018-09-04 海尔优家智能科技(北京)有限公司 A kind of method, router, terminal and medium that configuration equipment networks
CN108770045A (en) * 2018-06-05 2018-11-06 云丁智能科技(北京)有限公司 Method of network entry, relevant device and network system
CN109246797A (en) * 2017-06-07 2019-01-18 阿里巴巴集团控股有限公司 A kind of method, apparatus, system and equipment connecting wireless network
CN109495358A (en) * 2018-12-10 2019-03-19 美的集团武汉制冷设备有限公司 Household electrical appliance match network method and distribution network systems
CN109548116A (en) * 2018-11-16 2019-03-29 深圳绿米联创科技有限公司 ZigBee gateway batch method of network entry, device and equipment based on NFC
CN109936845A (en) * 2017-12-19 2019-06-25 九阳股份有限公司 A kind of smart machine distribution method and apparatus
CN110235456A (en) * 2017-01-09 2019-09-13 云丁网络技术(北京)有限公司 Smart machine method of network entry, mobile terminal, Cloud Server, equipment and system
CN110320811A (en) * 2019-06-17 2019-10-11 华为技术有限公司 A kind of cut-in method and a kind of electronic equipment of smart home device
CN110830333A (en) * 2018-08-09 2020-02-21 中兴通讯股份有限公司 Intelligent household equipment access authentication method, device, gateway and storage medium
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 (19)

* 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
US9648548B1 (en) * 2015-01-02 2017-05-09 Sprint Spectrum L.P. WiFi mesh configuration
CN105100213A (en) * 2015-06-26 2015-11-25 小米科技有限责任公司 Equipment binding method and device
CN106292313A (en) * 2015-06-29 2017-01-04 中兴通讯股份有限公司 The control method of intelligent appliance, Apparatus and system
CN105656739A (en) * 2016-03-23 2016-06-08 浙江风向标科技有限公司 Method and device for batch configuration of Internet of things devices
CN106507330A (en) * 2016-09-26 2017-03-15 海尔优家智能科技(北京)有限公司 A kind of equipment networking collocation method and device
CN106375169A (en) * 2016-12-02 2017-02-01 华东交通大学 Intelligent household system and network accessing method
CN110235456A (en) * 2017-01-09 2019-09-13 云丁网络技术(北京)有限公司 Smart machine method of network entry, mobile terminal, Cloud Server, equipment and 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
CN107086934A (en) * 2017-06-12 2017-08-22 中国联合网络通信集团有限公司 The collocation method and gateway of networking equipment
CN109936845A (en) * 2017-12-19 2019-06-25 九阳股份有限公司 A kind of smart machine distribution method and apparatus
CN108494638A (en) * 2018-02-09 2018-09-04 海尔优家智能科技(北京)有限公司 A kind of method, router, terminal and medium that configuration equipment networks
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
CN109495358A (en) * 2018-12-10 2019-03-19 美的集团武汉制冷设备有限公司 Household electrical appliance match network method and distribution network systems
CN110320811A (en) * 2019-06-17 2019-10-11 华为技术有限公司 A kind of cut-in method and a kind of electronic equipment of smart home device
CN111477227A (en) * 2020-04-07 2020-07-31 四川虹美智能科技有限公司 Voice interaction method and system for voice intelligent household appliance and voice intelligent household appliance

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JUNGHAK KIM: "Home appliance control framework based on smart TV set-top box", 《IEEE TRANSACTIONS ON CONSUMER ELECTRONICS ( VOLUME: 61, ISSUE: 3, AUGUST 2015)》 *
戴文飞;: "家庭智能网关典型应用场景", 中国战略新兴产业 *

Also Published As

Publication number Publication date
CN114143129B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
US10142845B2 (en) Network connection method and apparatus, and computer storage medium
CN109257740B (en) Profile downloading method, mobile terminal and readable storage medium
EP3582530B1 (en) Method for connecting to network, mobile terminal, electronic device, and graphical user interface
JP6207794B2 (en) SMART APPLIANCE MANAGEMENT ACCOUNT SETTING METHOD, DEVICE, PROGRAM, AND RECORDING MEDIUM
EP3641366B1 (en) Wireless local area network configuration method and apparatus
US20220163647A1 (en) Ranging method and device
CN108040091B (en) Data processing method, device and storage medium
CN106936676B (en) Household equipment control method and device
EP3664491B1 (en) Wi-fi hotspot connection method and terminal
CN109257793B (en) Network connection method, device, equipment and storage medium
CN110944406B (en) Link establishment method of sidelink and terminal
CN107147549B (en) Intelligent household equipment networking method and device
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
CN111866824A (en) Method and equipment for establishing communication connection and data transmission
CN105530684B (en) Network access method, device and system
CN108924911B (en) Method and device for starting wifi hotspot sharing network
CN110769366A (en) Resource sharing method, terminal and server
CN112584334B (en) Out-of-order delivery function indication method, control method and related equipment
CN109219039B (en) eSIM card operation method, mobile terminal and eSIM card device
CN108616873B (en) Data transmission method, information transmission method, device, mobile equipment and storage medium
CN109257739B (en) eSIM card operation method, mobile terminal and eSIM card device
CN111447208A (en) Information sharing method and electronic equipment
US20220053585A1 (en) Method for pc5 link establishment, device, and system

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