CN116405937A - Networking method, gateway device, intelligent device and storage medium - Google Patents

Networking method, gateway device, intelligent device and storage medium Download PDF

Info

Publication number
CN116405937A
CN116405937A CN202310245161.6A CN202310245161A CN116405937A CN 116405937 A CN116405937 A CN 116405937A CN 202310245161 A CN202310245161 A CN 202310245161A CN 116405937 A CN116405937 A CN 116405937A
Authority
CN
China
Prior art keywords
network access
connection
intelligent
intelligent equipment
authentication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310245161.6A
Other languages
Chinese (zh)
Inventor
高靖轩
幸云辉
陈熙
王雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ecoflow Technology Ltd
Original Assignee
Ecoflow Technology 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 Ecoflow Technology Ltd filed Critical Ecoflow Technology Ltd
Priority to CN202310245161.6A priority Critical patent/CN116405937A/en
Publication of CN116405937A publication Critical patent/CN116405937A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/068Authentication using credential vaults, e.g. password manager applications or one time password [OTP] applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The embodiment of the invention provides a networking method, gateway equipment, intelligent equipment and a storage medium, belonging to the field of wireless communication. The method comprises the following steps: when an authentication connection request sent by the intelligent equipment is received, establishing authentication connection with the intelligent equipment, wherein the authentication connection request is generated by the intelligent equipment according to a preset service set identifier in the intelligent equipment in response to network access operation of a user; outputting connection prompt information corresponding to the intelligent equipment; if the permission operation of the user to the connection prompt information is detected within the preset time, sending network access information to the intelligent equipment through authentication connection; when a network access connection request sent by the intelligent equipment is received, establishing network access connection with the intelligent equipment, and communicating with the intelligent equipment through the network access connection, wherein the network access connection request is generated by the intelligent equipment according to network access information. The method improves the efficiency and the safety of intelligent equipment networking.

Description

Networking method, gateway device, intelligent device and storage medium
Technical Field
The present invention relates to the field of wireless communications, and in particular, to a networking method, a gateway device, an intelligent device, and a storage medium.
Background
With the rapid development of internet technology and the increasing demand of people for intelligent devices, more and more intelligent devices need to access to a network through gateway devices to realize information exchange and communication requirements.
At present, a common networking mode mainly includes that a mobile phone installs a corresponding Application program (APP), a user realizes networking setting of intelligent equipment through the Application program, three parties involved in the mobile phone, gateway equipment and the intelligent equipment are involved together, the networking process is long in time consumption, and the operation process is complex and complicated, and the existing networking mode has the condition that surrounding other users maliciously connect the intelligent equipment to gateway equipment of other people, so that the security is low. Therefore, how to improve the efficiency, convenience and security of intelligent device networking is a problem to be solved at present.
Disclosure of Invention
The embodiment of the invention provides a networking method, gateway equipment, intelligent equipment and a storage medium, aiming at improving the efficiency, convenience and safety of intelligent equipment networking.
In a first aspect, an embodiment of the present invention provides a networking method, applied to a gateway device, where the method includes: when an authentication connection request sent by intelligent equipment is received, establishing authentication connection with the intelligent equipment, wherein the authentication connection request is generated by the intelligent equipment according to a preset service set identifier in the intelligent equipment in response to network access operation of a user; outputting connection prompt information corresponding to the intelligent equipment; if the permission operation of the user to the connection prompt information is detected within the preset time, sending network access information to the intelligent equipment through the authentication connection; when a network access connection request sent by the intelligent equipment is received, establishing network access connection with the intelligent equipment, and communicating with the intelligent equipment through the network access connection, wherein the network access connection request is generated by the intelligent equipment according to the network access information.
According to the networking method provided by the first aspect, the intelligent device can store a preset service set identifier, and under the condition that the networking operation of the user is detected, the intelligent device can attempt to establish authentication connection with the gateway device. When the gateway equipment receives an authentication connection request sent by the intelligent equipment, after the authentication connection is established with the intelligent equipment, the gateway equipment outputs connection prompt information corresponding to the intelligent equipment so as to prompt a user to confirm whether the intelligent equipment is allowed to be connected with the gateway equipment, so that the intelligent equipment of other people can be effectively prevented from being connected to the gateway equipment, the situation that the equipment of other people occupies communication bandwidth and communication service of the gateway equipment is avoided, the condition that the intelligent equipment of the gateway equipment is connected with the gateway equipment of other people is also prevented from happening, the networking safety of the intelligent equipment is greatly improved, and meanwhile, in the whole process of connecting the gateway equipment of the intelligent equipment, only network access operation and permission operation are needed by the user, other man-machine interaction operation is not involved, and the networking efficiency and convenience of the intelligent equipment are greatly improved.
In a second aspect, an embodiment of the present invention further provides a networking method, applied to an intelligent device, where the method includes: responding to network access operation of a user, and generating an authentication connection request according to a preset service set identifier; based on the authentication connection request, establishing authentication connection with gateway equipment corresponding to the service set identifier; receiving network access information sent by the gateway equipment after detecting the permission operation of a user through the authentication connection, and generating a network access connection request according to the network access information; and establishing network access connection with the gateway equipment based on the network access connection request, and communicating with the gateway equipment through the network access connection.
According to the networking method provided by the second aspect, the intelligent device stored with the preset service set identifier is used for attempting to authenticate the gateway device under the condition that the network access operation of the user is detected, authentication connection is established between the gateway device and the intelligent device, and the gateway device sends network access information to the intelligent device after detecting the permission operation of the user, so that the intelligent device of other people is effectively prevented from being connected with the gateway device of the intelligent device, the condition that the intelligent device of the intelligent device is connected with the gateway device of other people is prevented from occurring, the networking safety of the intelligent device is greatly improved, meanwhile, in the whole process of connecting the intelligent device with the gateway device, only the network access operation and the permission operation are needed by the user, the rest of man-machine interaction operation is not involved, and the networking efficiency and convenience of the intelligent device are greatly improved.
In a third aspect, an embodiment of the present invention further provides a gateway device, the gateway device including a processor, a memory, a computer program stored on the memory and executable by the processor, and a data bus for enabling a connection communication between the processor and the memory, wherein the computer program, when executed by the processor, implements the networking method according to the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a smart device, where the smart device includes a processor, a memory, a computer program stored on the memory and executable by the processor, and a data bus for implementing a connection communication between the processor and the memory, where the computer program, when executed by the processor, implements the networking method according to the second aspect.
In a fifth aspect, embodiments of the present invention further provide a storage medium for computer readable storage, where the storage medium stores one or more programs executable by one or more processors to implement the networking method according to the first or second aspect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a networking method according to an embodiment of the present invention;
Fig. 2 is another schematic view of a networking method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a networking method according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating substeps of the networking method of FIG. 3;
FIG. 5 is a flow chart illustrating another sub-step of the networking method of FIG. 3;
FIG. 6 is a schematic diagram showing connection prompt information according to an embodiment of the present invention;
fig. 7 is a schematic flow chart of another networking method according to an embodiment of the present invention;
fig. 8 is a schematic block diagram of a gateway device according to an embodiment of the present invention;
fig. 9 is a schematic block diagram of a structure of an intelligent device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
It is to be understood that 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 in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic diagram of a scenario in which a networking method according to an embodiment of the present invention is implemented. As shown in fig. 1, the scenario includes a gateway device 100 and a smart device 200, where the gateway device 100 is configured to be connectable to one or more smart devices 200 as a WiFi hotspot, and the smart device 200 is configured to connect to the gateway device using access information of the gateway device 100, thereby enabling the smart device 200 to establish a network connection with the gateway device 100, such that the smart device 200 communicates with the gateway device 100 through the network connection.
In an embodiment, the smart device 200 sends an authentication connection request to the gateway device 100 according to a service set identifier (Service Set Identifier, SSID) preset in the smart device 200 in response to a network access operation of a user, where the service set identifier preset in the smart device 200 is a service set identifier of the gateway device 100 as a WiFi hotspot. When receiving the authentication connection request sent by the intelligent device 200, the gateway device 100 establishes authentication connection with the intelligent device 200, and the gateway device 100 outputs connection prompt information corresponding to the intelligent device 200. If the gateway device 100 detects the permission operation of the user to the connection prompt information within the preset time, the gateway device 100 sends the network access information to the intelligent device 200 through the authentication link; the intelligent device 200 receives the network access information sent by the gateway device 100 through the authentication connection, generates a network access connection request according to the network access information, and sends the network access connection request to the gateway device 100. Upon receiving the network connection request sent by the smart device 200, the gateway device 100 establishes a network connection with the smart device 200, and the gateway device 100 communicates with the smart device 200 through the network connection.
In an embodiment, the smart device 200 includes a network access key 210, and in response to a network access operation of a user, the smart device 200 may send an authentication connection request to the gateway device 100 according to a service set identifier preset in the smart device 200, including: the intelligent device 200 responds to the triggering operation of the user on the network access key 210, and sends an authentication connection request to the gateway device 100 according to a preset service set identifier in the intelligent device 200. The network access key 210 is a physical key, and the triggering operation of the network access key 210 by the user may include any one of a single click operation, a double click operation, a long press operation and a sliding operation of the network access key 210 by the user.
In an embodiment, as shown in fig. 2, the smart device 200 includes a display 220, where the display 220 displays an access button 221, and sending an authentication connection request to the gateway device 100 according to a preset service set identifier in the smart device 200 may include: the smart device 200 transmits an authentication connection request to the gateway device 100 according to a service set identifier preset in the smart device 200 in response to a trigger operation of the access button 221 by a user. The network access button 221 is a virtual button, and the triggering operation of the network access button 221 by the user may include any one of a single click operation, a double click operation, a long press operation, and a sliding operation of the network access button 221 by the user.
In an embodiment, the gateway apparatus 100 is communicatively connected to a display device, which may be a display screen integrated with the gateway apparatus 100, or may be a display communicatively connected to the gateway apparatus 100 externally, which is not specifically limited in this embodiment. For example, the gateway device 100 has a display embedded therein. As another example, gateway device 100 connects to an external display by wire or wirelessly. The gateway device 100 outputting the connection prompt information corresponding to the smart device 200 may include: a display device in communication connection with the gateway apparatus 100 is controlled to display connection prompt information corresponding to the smart apparatus 200.
The gateway device 100 includes, but is not limited to, a router and a switch, the intelligent device 200 may be an electric device or an energy storage device, the electric device includes, but is not limited to, a refrigerator, a washing machine, an air conditioner, a sound device, and an electric heating device, and the energy storage device may be a charger or an outdoor power supply. The networking method provided by the embodiment of the present invention will be described in detail below with reference to the scenario in fig. 1 or fig. 2. It should be noted that the scenario in fig. 1 or fig. 2 is only used to explain the networking method provided by the embodiment of the present invention, but does not limit the application scenario of the networking method provided by the embodiment of the present invention.
Referring to fig. 3, fig. 3 is a flow chart of a networking method according to an embodiment of the invention. The networking method is applied to gateway equipment and used for improving the efficiency, convenience and safety of intelligent equipment networking.
As shown in fig. 3, the networking method includes steps S101 to S104.
And step S101, when an authentication connection request sent by the intelligent equipment is received, an authentication connection is established with the intelligent equipment, wherein the authentication connection request is generated by the intelligent equipment according to a preset service set identifier in the intelligent equipment in response to network access operation of a user.
In this embodiment, the authentication connection between the gateway device and the intelligent device may be a weak connection without password verification, or may be a strong connection requiring password verification, where the authentication connection request at least includes a service set identifier preset in the intelligent device.
When the intelligent device is concretely implemented, the intelligent device responds to the network access operation of a user, sends a detection frame to the gateway device according to a preset service set identifier in the intelligent device, returns a response frame to the intelligent device in response to the detection frame, sends an authentication connection request to the gateway device after receiving the response request, and the gateway device responds to the authentication request, namely, establishes authentication connection with the intelligent device.
In an embodiment, the manner of establishing an authentication connection with the smart device may be: the intelligent device sends an authentication connection request to the gateway device, and the gateway device does not need to carry out password verification when receiving the authentication connection request, and establishes authentication connection with the intelligent device.
In one embodiment, the intelligent device sends an authentication connection request to the gateway device, the gateway device determines whether the password information in the authentication connection request is the same as the password information of the WiFi hotspot of the gateway device when receiving the authentication connection request, and the gateway device establishes an authentication connection with the intelligent device when the password information in the authentication connection request is the same as the password information of the WiFi hotspot of the gateway device.
In an embodiment, the intelligent device includes a network access key, and the manner of generating the authentication connection request according to the service set identifier preset in the intelligent device by the intelligent device in response to the network access operation of the user may be: and the intelligent equipment responds to the triggering operation of the user on the network access key, and generates an authentication connection request according to a preset service set identifier in the intelligent equipment. The network access key is a physical key, and the triggering operation of the network access key by the user can comprise any one of a single click operation, a double click operation, a long press operation and a sliding operation of the network access key by the user. Through the networking button on the smart machine, can realize the one-key networking of smart machine, improve the networking convenience of smart machine.
In an embodiment, the intelligent device includes a display screen, a network access button is displayed on the display screen, and the intelligent device responds to a network access operation of a user, and a manner of generating an authentication connection request according to a preset service set identifier in the intelligent device may include: and the intelligent equipment responds to the triggering operation of the user on the network access button, and sends an authentication connection request to the gateway equipment according to a preset service set identifier in the intelligent equipment. The network access button is a virtual button, and the triggering operation of the network access button by the user can comprise any one of a single click operation, a double click operation, a long press operation and a sliding operation of the network access button by the user.
Step S102, outputting connection prompt information corresponding to the intelligent equipment.
In this embodiment, the connection prompt information is used to prompt the user that the intelligent device applies for network access to the gateway device.
In a specific implementation, the gateway device outputs connection prompt information corresponding to the intelligent device, which may be voice prompt information, text prompt information output to a mobile phone terminal of a user, and prompt information displayed on a gateway display screen.
In one embodiment, the WiFi hotspot of the gateway device is a hidden hotspot, that is, the gateway device does not send a wireless broadcast to the outside to broadcast the service set identifier of the WiFi hotspot of the gateway device, so that other intelligent devices cannot scan the WiFi hotspot of the gateway device. The service set identification of the hidden hot spot cannot be searched by other intelligent devices. Because the WiFi hot spot of the gateway equipment is the hidden hot spot, the intelligent equipment which does not store the service set identification of the WiFi hot spot of the gateway equipment can be prevented from scanning the WiFi hot spot, the safety of the gateway equipment is improved, and meanwhile, the frequent output of connection prompt information of the gateway equipment caused by excessive authentication connection requests can be avoided. And the gateway equipment does not need to continuously broadcast service set identification of the WiFi hot spot outwards, so that standby energy consumption can be reduced. It will be appreciated that in some embodiments, a wireless broadcast on button may also be provided on the gateway device. If the preset service set identifier stored by the intelligent device is lost or damaged, the intelligent device cannot be connected with the gateway device, and at the moment, a user can start the wireless broadcasting function of the gateway device through the start button. When the wireless broadcasting function is started, the gateway equipment externally broadcasts service set identifiers of WiFi hot spots, the intelligent equipment responds to network access operation of a user, the WiFi hot spot service can be obtained by scanning surrounding wireless broadcasting, and then an authentication connection request is sent to the gateway equipment, and after network access connection is successfully established, the service set identifiers are stored as preset service set identifiers.
In one embodiment, after the intelligent device establishes an authentication connection with the gateway device, the intelligent device sends a user datagram protocol (User Datagram Protocol, UDP) authentication request to the gateway device through the authentication connection; and the gateway equipment outputs the connection prompt information corresponding to the intelligent equipment under the condition of receiving the UDP authentication request sent by the intelligent equipment.
In an embodiment, the manner of outputting the connection prompt information corresponding to the intelligent device may be: the method comprises the steps of displaying connection prompt information corresponding to the intelligent equipment, broadcasting the connection prompt information corresponding to the intelligent equipment and/or controlling a preset breathing lamp to flash in a preset color. The preset breathing lamp flashes in a preset color to indicate that the intelligent device applies for network access to the gateway device, and the preset color and the preset breathing lamp can be set based on actual conditions, which is not particularly limited in the embodiment of the invention.
In an embodiment, the connection prompt information corresponding to the intelligent device may include a device identifier of the intelligent device and a prompt text, where the device identifier is used to uniquely identify the intelligent device, and the device identifier and the prompt text are used to prompt the user that the intelligent device applies for connection to the gateway device. Through the connection prompt message that contains the equipment identification of smart machine for the user knows which smart machine is applied for the access network and is connected gateway equipment specifically, avoids the smart machine connection gateway equipment that is not user's use like this.
In one embodiment, as shown in fig. 4, step S102 includes sub-steps S1021 through S1023.
Substep S1021, displaying an identity verification page, wherein the identity verification page comprises a password input field.
In this embodiment, the display device in communication connection with the gateway device may be controlled to display the authentication page, and the display device in communication connection with the gateway device may be a display screen integrated with the gateway device, or may be a display device in communication connection with the gateway device externally. The password input field may include at least one of a character password input field, a gesture password input field, and a biometric input field. The biometric input fields may include fingerprints, voice, facial images, and the like.
Sub-step S1022, responding to the input operation of the user on the password input field, and acquiring the password data to be verified.
In this embodiment, the user may input password information to be verified through the password input field, where the password information to be verified may include at least one of a character password, a gesture password, and a biometric feature. For example, the authentication page includes a digital password input field, and the digital password to be authenticated input by the user is acquired in response to the input operation of the user to the digital password input field.
And executing the substep S1023 under the condition that the password data to be verified is the same as the pre-input password data, namely displaying the connection prompt information corresponding to the intelligent equipment.
In this embodiment, the pre-input password data may include at least one of a pre-input digital password, a gesture password and a biometric feature, after the gateway device obtains the password data to be verified, it is determined whether the password data to be verified is the same as the pre-input password data, and under the condition that the password data to be verified is the same as the pre-input password data, a user using the gateway device may be determined to be a legal user, and the gateway device displays connection prompt information corresponding to the intelligent device, so that the intelligent device which is not the legal user of the gateway device and allows others to connect with the gateway device may be prevented, and further security of the gateway device is improved.
In one embodiment, as shown in fig. 5, before the substep S1021, the method further comprises: step S1024, obtaining the security level of the intelligent equipment; executing the substep S1021, namely displaying the identity verification page, under the condition that the security level is smaller than the preset security level; and under the condition that the security level is greater than or equal to the preset security level, the step S1023 is to display the connection prompt information corresponding to the intelligent equipment.
In the specific implementation, the security level of the intelligent device may be specifically set to 3 security levels, the lower the security level is, the lower the security of the intelligent device is, the higher the security level is, the higher the security of the intelligent device is, and the preset security level may be set based on the actual situation, which is not specifically limited in the embodiment of the present invention.
In this embodiment, through further performing identity verification on the user under the condition that the security level of the intelligent device is low, the security of the gateway device can be improved, and under the condition that the security level of the intelligent device is high, the identity verification is not required, but connection prompt information corresponding to the intelligent device is directly displayed, so that the convenience of network access of the intelligent device can be improved.
In an embodiment, the manner of obtaining the security level of the smart device may be: acquiring a device identifier corresponding to the intelligent device; reading an identification code at a preset position in the equipment identification; determining whether the identification code is positioned in a preset identification code library, and determining the security level of the intelligent equipment as a first security level under the condition that the identification code is positioned in the preset identification code library, wherein the first security level is greater than or equal to a preset security level; and under the condition that the identification code is not positioned in the preset identification code library, determining the security level of the intelligent equipment as a second security level, wherein the second security level is smaller than the preset security level. The preset position in the device identifier may be set based on an actual situation, which is not specifically limited in this embodiment.
Step S103, if the permission operation of the user to the connection prompt information is detected within the preset time, network access information is sent to the intelligent equipment through authentication connection.
In this embodiment, the preset time may be set based on actual situations, which is not specifically limited in this embodiment. It is understood that the preset time may be considered as a time when the gateway device waits for the user to perform the response operation on the prompt information.
For example, the preset time is 5 seconds or 10 seconds. The user permission operation of the connection prompt information comprises triggering operation of a network access permission key on the gateway equipment by the user, wherein the network access permission key can be an entity physical key on the gateway equipment or a virtual key displayed in a display screen of the gateway equipment, and the triggering operation of the network access permission key by the user can comprise any one of clicking operation, double clicking operation, sliding operation and long-pressing operation of the network access permission key by the user.
In an embodiment, if the permission operation of the user to the connection prompt information is not detected within the preset time, or if the rejection operation of the user to the connection prompt information is detected within the preset time, an authentication failure message is sent to the intelligent device, and the authentication connection between the gateway device and the intelligent device is disconnected. The user's operation of rejecting the connection prompt message may include a triggering operation of a network access reject key on the gateway device by the user, where the network access reject key may be an entity physical key on the gateway device, or may be a virtual key displayed in a display screen of the gateway device, and the triggering operation of the network access reject key by the user may include any one of a single click operation, a double click operation, a sliding operation, and a long press operation of the network access reject key by the user.
For example, as shown in fig. 6, the display screen of the gateway device displays connection prompt information 11 "whether the intelligent device a is allowed to access", an access permission key 12 and an access rejection key 13, if the gateway device detects a triggering operation of the access permission key 12 by a user within 5 seconds, the gateway device sends the access information to the intelligent device a through the authentication connection, if the triggering operation of the access permission key 12 by the user is not detected within 5 seconds or if the triggering operation of the access rejection key 13 by the user is detected within 5 seconds, an authentication failure message is sent to the intelligent device a, and the authentication connection between the gateway device and the intelligent device a is disconnected.
In one embodiment, after step S103, the method further includes:
acquiring a device identifier corresponding to the intelligent device; and adding the device identifier corresponding to the intelligent device into a preset authentication list.
The preset authentication list is used for recording the device identification of the authenticated intelligent device. When detecting the permission operation of the user to the connection prompt information in the preset time, sending network access information to the intelligent equipment through the authentication connection, and adding the equipment identification corresponding to the intelligent equipment into a preset authentication list, so that the authentication list of the gateway equipment is updated, and the gateway equipment can quickly determine whether the intelligent equipment for network access connection is authenticated or not through the authentication list when the intelligent equipment is connected with the network access.
Step S104, when a network access connection request sent by the intelligent equipment is received, establishing network access connection with the intelligent equipment, and communicating with the intelligent equipment through the network access connection, wherein the network access connection request is generated by the intelligent equipment according to network access information.
In this embodiment, the network access information includes an IP address, a port, and the like, after receiving the network access information, the intelligent device generates a network access connection request according to the network access information, and sends the network access connection request to the gateway device, and when receiving the network access connection request sent by the intelligent device, the gateway device establishes network access connection with the intelligent device through the network access connection request. The network access connection request may be a transmission control protocol (TCP, transmission Control Protocol) connection request, and the network access connection between the gateway device and the intelligent device may be a TCP connection.
In an embodiment, in the case that the intelligent device is an energy storage device, receiving state information sent by the energy storage device through the network connection; under the condition that the energy storage equipment is in a charging state according to the state information and the electricity storage quantity of the energy storage equipment is larger than the preset electricity storage quantity, generating a control instruction for controlling the energy storage equipment to stop charging; and sending the control command to the energy storage device through the network connection so that the energy storage device can disconnect the connection between the charging circuit and the lithium battery according to the control command to stop charging.
According to the networking method provided by the embodiment, after the authentication connection is established between the gateway equipment and the intelligent equipment, the gateway equipment outputs the connection prompt information corresponding to the intelligent equipment so as to prompt a user to confirm whether the intelligent equipment is allowed to be connected with the gateway equipment, so that the intelligent equipment of other people is effectively prevented from being connected to the gateway equipment, the situation that the equipment of other people occupies the communication bandwidth and the communication service of the gateway equipment is avoided, the situation that the intelligent equipment of the user is connected with the gateway equipment of other people is also prevented from happening, the networking safety of the intelligent equipment is greatly improved, and meanwhile, in the whole process of connecting the intelligent equipment with the gateway equipment, only the user is required to perform network access operation and permission operation, other man-machine interaction operations are not involved, and the networking efficiency and convenience of the intelligent equipment are greatly improved.
Referring to fig. 7, fig. 7 is a flowchart of another networking method according to an embodiment of the present invention.
The networking method is applied to the intelligent equipment and used for improving the efficiency, convenience and safety of networking of the intelligent equipment.
As shown in fig. 7, the networking method includes steps S201 to S204.
Step S201, responding to the network access operation of the user, and generating an authentication connection request according to a preset service set identifier.
In this embodiment, the authentication connection request includes a service set identifier preset in the intelligent device, or the authentication connection request includes a service set identifier preset in the intelligent device and password information. The user's network access operation includes a user's triggering operation of a network access button on the smart device or a user's triggering operation of a network access button displayed in a display screen on the smart device.
In an embodiment, the intelligent device includes a network access key, and responding to a network access operation of a user, generating an authentication connection request according to a preset service set identifier may include: the intelligent equipment responds to the triggering operation of the user on the network access key, and generates an authentication connection request according to a preset service set identifier or generates the authentication connection request according to the preset service set identifier and password information. The network access key is a physical key, and the triggering operation of the network access key by the user can comprise any one of a single click operation, a double click operation, a long press operation and a sliding operation of the network access key by the user. Through the networking button on the smart machine, can realize the one-key networking of smart machine, improve the networking convenience of smart machine.
In an embodiment, the intelligent device includes a display screen, a network access button is displayed on the display screen, and the intelligent device responds to a network access operation of a user, and the manner of generating the authentication connection request according to a preset service set identifier may include: the intelligent device responds to the triggering operation of the user on the network access button, and sends an authentication connection request to the gateway device according to a preset service set identifier or generates the authentication connection request according to the preset service set identifier and password information. The network access button is a virtual button, and the triggering operation of the network access button by the user can comprise any one of a single click operation, a double click operation, a long press operation and a sliding operation of the network access button by the user.
Step S202, based on the authentication connection request, the gateway equipment corresponding to the service set identifier establishes authentication connection.
In this embodiment, after generating the authentication connection request, the intelligent device sends the authentication connection request to the gateway device, and the gateway device establishes authentication connection with the intelligent device by responding to the authentication connection request.
When the intelligent device is concretely implemented, the intelligent device responds to the network access operation of a user, sends a detection frame to the gateway device according to a preset service set identifier in the intelligent device, returns a response frame to the intelligent device in response to the detection frame, sends an authentication connection request to the gateway device after receiving the response request, and the gateway device responds to the authentication request, namely, establishes authentication connection with the intelligent device.
In an embodiment, the intelligent device sends an authentication connection request to the gateway device, and the gateway device establishes an authentication connection with the intelligent device without performing password verification when receiving the authentication connection request.
In one embodiment, the intelligent device sends an authentication connection request to the gateway device, the gateway device determines whether the password information in the authentication connection request is the same as the password information of the WiFi hotspot of the gateway device when receiving the authentication connection request, and the gateway device establishes an authentication connection with the intelligent device when the password information in the authentication connection request is the same as the password information of the WiFi hotspot of the gateway device.
Step S203, receiving the network access information sent by the gateway equipment after detecting the permission operation of the user through authentication connection, and generating a network access connection request according to the network access information.
In this embodiment, after the gateway device establishes authentication connection with the intelligent device, the gateway device outputs connection prompt information corresponding to the intelligent device, and if a permission operation of a user to the connection prompt information is detected within a preset time, network access information is sent to the intelligent device through the authentication connection, and after receiving the network access information, the intelligent device generates a network access connection request according to the network access information. The network access information includes an IP address and a port, and the network access connection request may be a TCP connection request.
Step S204, establishing network connection with the gateway equipment based on the network connection request, and communicating with the gateway equipment through the network connection.
In this embodiment, the network connection between the intelligent device and the gateway device may be a TCP connection, and after the TCP connection between the intelligent device and the gateway device is established, the intelligent device and the gateway device may communicate through the TCP connection. It can be understood that the specific implementation manner in this embodiment may refer to the corresponding process in the foregoing embodiment, which is not described in detail in this embodiment.
According to the networking method provided by the embodiment, the intelligent device stored with the preset service set identifier is used for attempting to authenticate the gateway device under the condition that the network access operation of the user is detected, authentication connection is established between the gateway device and the intelligent device, and the gateway device sends network access information to the intelligent device after detecting the permission operation of the user, so that the intelligent device of other people is effectively prevented from being connected with the gateway device of the intelligent device, the condition that the intelligent device of the intelligent device is connected with the gateway device of other people is prevented from occurring, the networking safety of the intelligent device is greatly improved, meanwhile, in the whole process of connecting the intelligent device with the gateway device, only the network access operation and the permission operation are needed by the user, other man-machine interaction operations are not involved, and the networking efficiency and convenience of the intelligent device are greatly improved.
Referring to fig. 8, fig. 8 is a schematic block diagram of a gateway device according to an embodiment of the present invention.
As shown in fig. 8, the gateway apparatus 100 includes a processor 101 and a memory 102, and the processor 101 and the memory 102 are connected by a bus 103, such as an I2C (Inter-integrated Circuit) bus.
In particular, the processor 101 is configured to provide computing and control capabilities, supporting the operation of the overall gateway device. The processor 101 may be a central processing unit (Central Processing Unit, CPU), the processor 101 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Specifically, the Memory 102 may be a Flash chip, a Read-Only Memory (ROM) disk, an optical disk, a U-disk, a removable hard disk, or the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 8 is merely a block diagram of a portion of the structure associated with an embodiment of the present invention and is not limiting of the gateway device to which an embodiment of the present invention may be applied, and that a particular gateway device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In an embodiment, the processor 101 is configured to run a computer program stored in the memory 102 and to implement the following steps when executing the computer program:
when an authentication connection request sent by intelligent equipment is received, establishing authentication connection with the intelligent equipment, wherein the authentication connection request is generated by the intelligent equipment according to a preset service set identifier in the intelligent equipment in response to network access operation of a user;
outputting connection prompt information corresponding to the intelligent equipment;
if the permission operation of the user to the connection prompt information is detected within the preset time, sending network access information to the intelligent equipment through the authentication connection;
When a network access connection request sent by the intelligent equipment is received, establishing network access connection with the intelligent equipment, and communicating with the intelligent equipment through the network access connection, wherein the network access connection request is generated by the intelligent equipment according to the network access information.
In an embodiment, when implementing output of the connection prompt information corresponding to the smart device, the processor 101 is configured to implement:
displaying an identity verification page, wherein the identity verification page comprises a password input field;
responding to the input operation of the user on the password input field, and acquiring password data to be verified;
and displaying the connection prompt information corresponding to the intelligent equipment under the condition that the password data to be verified is the same as the pre-input password data.
In an embodiment, before implementing displaying the authentication page, the processor 101 is further configured to implement:
acquiring the security level of the intelligent equipment;
the processor 101, when implementing displaying the authentication page, is configured to implement:
and displaying the identity verification page under the condition that the security level is smaller than a preset security level.
In an embodiment, after implementing the obtaining the security level of the smart device, the processor 101 is further configured to implement:
And displaying the connection prompt information corresponding to the intelligent equipment under the condition that the security level is greater than or equal to a preset security level.
In an embodiment, after implementing sending the network access information to the smart device through the authentication connection, the processor 101 is further configured to implement:
acquiring a device identifier corresponding to the intelligent device;
and adding the equipment identifier corresponding to the intelligent equipment into a preset authentication list.
In an embodiment, after implementing outputting the connection prompt information corresponding to the smart device, the processor 101 is further configured to implement:
if the refusing operation of the user to the connection prompt information is detected within the preset time, sending an authentication failure message to the intelligent equipment, and disconnecting the authentication connection.
It should be noted that, for convenience and brevity of description, a specific working process of the gateway device described above may refer to a corresponding process in the foregoing networking method embodiment, which is not described herein again.
Referring to fig. 9, fig. 9 is a schematic block diagram of an intelligent device according to an embodiment of the present invention.
As shown in fig. 9, the smart device 200 includes a processor 201 and a memory 202, the processor 201 and the memory 202 being connected by a bus 203, such as an I2C (Inter-integrated Circuit) bus.
In particular, the processor 201 is used to provide computing and control capabilities, supporting the operation of the entire smart device. The processor 201 may be a central processing unit (Central Processing Unit, CPU), and the processor 301 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), field programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Specifically, the Memory 202 may be a Flash chip, a Read-Only Memory (ROM) disk, an optical disk, a U-disk, a removable hard disk, or the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely a block diagram of a portion of the structure associated with an embodiment of the present invention, and is not intended to limit the smart device to which an embodiment of the present invention is applied, and that a particular smart device may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components.
In an embodiment, the processor 201 is configured to run a computer program stored in the memory 202 and implement the following steps when executing the computer program:
responding to network access operation of a user, and generating an authentication connection request according to a preset service set identifier;
based on the authentication connection request, establishing authentication connection with gateway equipment corresponding to the service set identifier;
receiving network access information sent by the gateway equipment after detecting the permission operation of a user through the authentication connection, and generating a network access connection request according to the network access information;
and establishing network access connection with the gateway equipment based on the network access connection request, and communicating with the gateway equipment through the network access connection.
It should be noted that, for convenience and brevity of description, a person skilled in the art may clearly understand that, for a specific working process of the above-described intelligent device, reference may be made to a corresponding process in the foregoing networking method embodiment, which is not described herein again.
Embodiments of the present invention also provide a storage medium for computer readable storage, where the storage medium stores one or more programs, and the one or more programs may be executed by one or more processors to implement any of the networking methods provided in the embodiments of the present invention.
The storage medium may be an internal storage unit of the smart device or the gateway device according to the foregoing embodiment, for example, a hard disk or a memory of the smart device or the gateway device. The storage medium may also be an external storage device of the Smart device or gateway device, such as a plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash memory Card (Flash Card) or the like, which are provided on the Smart device or gateway device.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, functional modules/units in the apparatus, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware embodiment, the division between the functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed cooperatively by several physical components. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
It should be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations. 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 system 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 system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments. While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. A networking method, applied to a gateway device, the method comprising:
when an authentication connection request sent by intelligent equipment is received, establishing authentication connection with the intelligent equipment, wherein the authentication connection request is generated by the intelligent equipment according to a preset service set identifier in the intelligent equipment in response to network access operation of a user;
outputting connection prompt information corresponding to the intelligent equipment;
if the permission operation of the user to the connection prompt information is detected within the preset time, sending network access information to the intelligent equipment through the authentication connection;
when a network access connection request sent by the intelligent equipment is received, establishing network access connection with the intelligent equipment, and communicating with the intelligent equipment through the network access connection, wherein the network access connection request is generated by the intelligent equipment according to the network access information.
2. The networking method according to claim 1, wherein the outputting the connection prompt information corresponding to the intelligent device includes:
displaying an identity verification page, wherein the identity verification page comprises a password input field;
responding to the input operation of the user on the password input field, and acquiring password data to be verified;
And displaying the connection prompt information corresponding to the intelligent equipment under the condition that the password data to be verified is the same as the pre-input password data.
3. The networking method of claim 2, wherein prior to displaying the authentication page, further comprising:
acquiring the security level of the intelligent equipment;
the display identity verification page comprises:
and displaying the identity verification page under the condition that the security level is smaller than a preset security level.
4. The networking method of claim 3, wherein after the obtaining the security level of the intelligent device, further comprises:
and displaying the connection prompt information corresponding to the intelligent equipment under the condition that the security level is greater than or equal to a preset security level.
5. The networking method of claim 1, wherein after the sending the networking information to the intelligent device through the authentication connection, further comprises:
acquiring a device identifier corresponding to the intelligent device;
and adding the equipment identifier corresponding to the intelligent equipment into a preset authentication list.
6. The networking method according to any one of claims 1-5, wherein after the outputting the connection prompt information corresponding to the intelligent device, the method further comprises:
If the refusing operation of the user to the connection prompt information is detected within the preset time, sending an authentication failure message to the intelligent equipment, and disconnecting the authentication connection.
7. A networking method, characterized by being applied to an intelligent device, the method comprising:
responding to network access operation of a user, and generating an authentication connection request according to a preset service set identifier;
based on the authentication connection request, establishing authentication connection with gateway equipment corresponding to the service set identifier;
receiving network access information sent by the gateway equipment after detecting the permission operation of a user through the authentication connection, and generating a network access connection request according to the network access information;
and establishing network access connection with the gateway equipment based on the network access connection request, and communicating with the gateway equipment through the network access connection.
8. Gateway device, characterized in that it comprises a processor, a memory, a computer program stored on the memory and executable by the processor, and a data bus for enabling a connection communication between the processor and the memory, wherein the computer program, when executed by the processor, implements the networking method according to any of claims 1-6.
9. A smart device comprising a processor, a memory, a computer program stored on the memory and executable by the processor, and a data bus for enabling a connected communication between the processor and the memory, wherein the computer program when executed by the processor implements the networking method of claim 7.
10. A storage medium for computer readable storage, wherein the storage medium stores one or more programs executable by one or more processors to implement the networking method of any of claims 1-7.
CN202310245161.6A 2023-03-02 2023-03-02 Networking method, gateway device, intelligent device and storage medium Pending CN116405937A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310245161.6A CN116405937A (en) 2023-03-02 2023-03-02 Networking method, gateway device, intelligent device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310245161.6A CN116405937A (en) 2023-03-02 2023-03-02 Networking method, gateway device, intelligent device and storage medium

Publications (1)

Publication Number Publication Date
CN116405937A true CN116405937A (en) 2023-07-07

Family

ID=87009429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310245161.6A Pending CN116405937A (en) 2023-03-02 2023-03-02 Networking method, gateway device, intelligent device and storage medium

Country Status (1)

Country Link
CN (1) CN116405937A (en)

Similar Documents

Publication Publication Date Title
US11310239B2 (en) Network connection method, hotspot terminal and management terminal
US11729594B2 (en) Network access method, device, and system
EP3503670B1 (en) Electronic device and computer-readable recording medium for controlling nodes in a network
CN107241679B (en) Connection establishing method, information sending method, message sending method and device
US10171997B2 (en) Method and apparatus for interconnection between terminal device and gateway device
EP3905671B1 (en) Method and device for processing request
US20180041893A1 (en) Method and system of multi-terminal mapping to a virtual sim card
US11096051B2 (en) Connection establishment method, device, and system
US9967099B2 (en) Method and apparatus for providing information
US10887745B2 (en) Method and device for sharing file between different terminals
US11739970B2 (en) Air-conditioning device control method and air-conditioning device
CN110730446A (en) Login method, terminal and computer storage medium
CN111901208A (en) Intelligent equipment control method and device, intelligent control panel and storage medium
CN111193900B (en) Monitoring video sharing method and device and storage medium
US9756608B1 (en) Systems and methods for providing wireless unconnected communication between devices
CN116405937A (en) Networking method, gateway device, intelligent device and storage medium
WO2019014928A1 (en) Method and device for controlling operable device in accessing network
CN106559850B (en) Network access switching method and device
KR101342697B1 (en) Connection management system and method thereof
CN112822679B (en) WLAN hotspot connection method and device and readable storage medium
CN117544954A (en) Network access authentication method, device, electronic equipment and storage medium
CN114205811A (en) AP access method, AP, client and storage medium
US9648000B2 (en) Authenticating a device when connecting it to a service
CN112654040A (en) Method and device for associating equipment, processor and nonvolatile storage medium
CN115696284A (en) File sharing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination