CN112702328B - Network access method, system and electronic equipment - Google Patents
Network access method, system and electronic equipment Download PDFInfo
- Publication number
- CN112702328B CN112702328B CN202011514657.1A CN202011514657A CN112702328B CN 112702328 B CN112702328 B CN 112702328B CN 202011514657 A CN202011514657 A CN 202011514657A CN 112702328 B CN112702328 B CN 112702328B
- Authority
- CN
- China
- Prior art keywords
- equipment
- client
- ssid
- distributed
- configuration page
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/083—Network architectures or network communication protocols for network security for authentication of entities using passwords
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application relates to a network access method, a system and electronic equipment, belonging to the technical field of network communication. The method comprises the steps that a client sends a configuration page access request to a server; the client receives a configuration page returned by the server based on the configuration page access request; the client acquires an SSID name and an access password input by a user in a configuration page and generates a distribution network request; and the client sends a distribution network request to the equipment to be distributed connected with the client so that the equipment to be distributed establishes connection with the SSID according to the SSID name and the access password in the distribution network request. The configuration page is obtained through the access server, so that the equipment to be configured does not need to provide a web access function to the outside, and only needs to establish connection with the corresponding SSID according to the SSID and the access password carried in the distribution network request, thereby greatly reducing the hardware requirement of the equipment to be configured and effectively saving the overhead.
Description
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a network access method, system and electronic device.
Background
With the application and popularization of the technology of the devices to be networked in life, the convenience and operability of the devices to be networked become more and more important. The equipment to be distributed can realize important functions and provide services for users only when the equipment to be distributed is accessed to the network, and the equipment distribution network is used as a key link of the networking, so that the use of the equipment to be distributed is influenced to a great extent.
The current distribution network mode mainly comprises a one-key distribution network (SmartConfig) mode and a web distribution network mode. The key distribution network encodes the distribution network information, then sends broadcast messages with different lengths through an air interface, and transmits the distribution network information to the equipment to be distributed, so that the distribution network function is realized, but the success rate of the distribution network mode is greatly influenced by the actual environment, the equipment to be distributed needs to support the function of monitoring the air interface, and the requirement on the equipment to be distributed is high. The web distribution network transmits distribution network data by using a hypertext Transfer Protocol (HTTP), so that the distribution network success rate is high, but the to-be-distributed network equipment needs to provide a web access function to the outside, a complex web page is provided for the distribution network, the requirements on the functions and performance of the equipment are high, and the cost is high and the expansibility is poor.
Disclosure of Invention
In view of this, an object of the present application is to provide a network access method, a network access system, and an electronic device, so as to solve the problems of high cost and poor scalability caused by a higher requirement on a network to be distributed in an existing network distribution manner.
The embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a network access method, including: a client sends a configuration page access request to a server; the client receives a configuration page returned by the server based on the configuration page access request; the client acquires an SSID name and an access password input by a user in the configuration page and generates a distribution network request, wherein the distribution network request comprises the SSID name and the access password; and the client sends the distribution network request to the equipment to be distributed connected with the client so that the equipment to be distributed establishes connection with the SSID according to the SSID name and the access password in the distribution network request. In the embodiment of the application, the configuration page is obtained through the access server, and the mode that the webpage data and the distribution network data are separated from each other is adopted, so that the equipment to be distributed does not need to provide a web access function externally, and only the connection is established with the corresponding SSID according to the SSID and the access password carried in the distribution network request, therefore, the hardware requirement on the equipment to be distributed is greatly reduced, and the expenditure can be effectively saved.
With reference to a possible implementation manner of the embodiment of the first aspect, the obtaining, by the client, an SSID name input by a user in the configuration page includes: when detecting that a user inputs part of characters in the SSID name in the configuration page, the client matches the input part of characters with the SSID in the scanned SSID list, and automatically fills the matched SSID name into the corresponding position of the configuration page. In the embodiment of the application, when the fact that the user inputs part of characters in the SSID name in the configuration page is detected, the input part of characters are matched with the SSID in the scanned SSID list, and the matched SSID name is automatically filled in the corresponding position of the configuration page, so that the user does not need to input all the characters contained in the SSID, and the efficiency of a distribution network is improved.
With reference to a possible implementation manner of the embodiment of the first aspect, automatically filling the matched SSID name into a corresponding position of the configuration page includes: if a plurality of matched SSIDs exist, displaying the matched SSIDs; and automatically filling the SSID name selected by the user from the displayed plurality of SSIDs into a corresponding position of the configuration page. In the embodiment of the application, if a plurality of matched SSIDs are provided, the matched SSIDs are displayed, so that a user can conveniently select the SSID, and the SSID name selected by the user from the displayed SSIDs is automatically filled in the corresponding position of the configuration page, so that the problem that the SSID name required by the user can be correctly filled even if a plurality of SSIDs matched with the input partial characters exist is solved.
With reference to one possible implementation manner of the embodiment of the first aspect, the process of acquiring the scanned SSID list includes: the client sends an acquisition request for acquiring an SSID list scanned by the equipment to be networked to the equipment to be networked; and the equipment to be distributed sends the scanned SSID list to the client based on the acquisition request. In the embodiment of the application, the acquisition request for acquiring the SSID list scanned by the device to be networked is sent to the device to be networked, so that the SSID list scanned by the device to be networked is acquired, and a mode that a complete SSID can be automatically filled in a matching mode becomes possible when a user can only input partial characters in the SSID.
With reference to one possible implementation manner of the embodiment of the first aspect, the method further includes: and the client acquires the ID information of the user and sends the ID information to the equipment to be distributed, so that the equipment to be distributed and the ID information are sent to the server after the equipment to be distributed is connected with the SSID, and the binding relationship between the equipment ID and the ID information is established. In the embodiment of the application, the ID information representing the user identity is sent to the equipment to be distributed, so that the equipment ID of the equipment to be distributed and the ID information can be sent to the server after the equipment to be distributed is connected with the SSID, the binding relationship between the equipment ID and the ID information is established, the binding relationship between the equipment and the user is automatically established, the identification of the equipment to be distributed is completed, and preparation is provided for subsequent services.
In a second aspect, an embodiment of the present application further provides a network access method, including: the method comprises the steps that a distribution network request sent by a client side is received by a device to be distributed; the distribution network request is generated by the client based on an SSID name and an access password input by a user in a configuration page, and the configuration page is returned by the server based on a configuration page access request sent by the client; the equipment to be distributed acquires the SSID name and the access password in the distribution network request; and the equipment to be distributed is connected with the SSID according to the SSID name and the access password and is connected with the SSID.
With reference to a possible implementation manner of the embodiment of the second aspect, before receiving the distribution network request sent by the client, the method further includes: the network equipment to be configured receives an acquisition request sent by the client and used for acquiring an SSID list scanned by the network equipment to be configured; and the equipment to be distributed sends the scanned SSID list to the client based on the acquisition request.
In combination with one possible implementation manner of the embodiment of the second aspect, the method further includes: the equipment to be distributed receives the user ID sent by the client; and after the equipment to be distributed is connected with the SSID, sending the equipment ID of the equipment to be distributed and the ID information to the server so as to establish the binding relationship between the equipment ID and the ID information and acquire the equipment to be distributed.
In a third aspect, an embodiment of the present application further provides a network access system, including: a server and a client; the client is used for sending a configuration page access request to the server; the server is used for accessing a configuration page returned to the client based on the configuration page access request; the client is further configured to acquire an SSID name and an access password input by a user in the configuration page, and generate a distribution network request, where the distribution network request includes the SSID name and the access password; and sending the distribution network request to equipment to be distributed connected with the distribution network request, so that the equipment to be distributed establishes connection with the SSID according to the SSID name and the access password in the distribution network request.
In a fourth aspect, an embodiment of the present application further provides an electronic device, including: a memory and a processor, the processor coupled to the memory; the memory is used for storing programs; the processor is configured to invoke a program stored in the memory to perform the method according to the foregoing first aspect embodiment and/or any possible implementation manner in combination with the first aspect embodiment, or to perform the method according to the foregoing second aspect embodiment and/or any possible implementation manner in combination with the second aspect embodiment.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts. The foregoing and other objects, features and advantages of the application will be apparent from the accompanying drawings. Like reference numerals refer to like parts throughout the drawings. The drawings are not intended to be to scale as practical, emphasis instead being placed upon illustrating the subject matter of the present application.
Fig. 1 shows a schematic structural diagram of a network access system according to an embodiment of the present application.
Fig. 2 shows a flowchart of a network access method applied in a client according to an embodiment of the present application.
Fig. 3 shows a flowchart of a network access method applied to a device to be configured according to an embodiment of the present application.
Fig. 4 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, relational terms such as "first," "second," and the like may be used solely in the description herein to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 identical elements in a process, method, article, or apparatus that comprises the element.
Further, the term "and/or" in the present application is only one kind of association relationship describing the associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone.
In view of the problems of the existing network access method for accessing the equipment to be distributed to the network, if the one-key distribution network mode needs the equipment to be distributed to support the function of monitoring an air interface, the requirement on the equipment to be distributed is high, and the distribution success rate is greatly influenced by the actual environment; the existing web network distribution mode needs that the equipment to be distributed needs to provide a web access function for the outside, so that a complex web page is provided for the network distribution, and the cost is high and the expansibility is poor. In order to solve the problems, in the embodiment of the application, a connection is established between the device to be configured and the webpage data, and a mode that the webpage data and the distribution network data are separated from each other is adopted, that is, static data of a web page is provided by a server, and distribution network information is sent to the device to be configured as dynamic data, so that the device to be configured does not need to provide a web access function to the outside, and only needs to establish a connection with a corresponding SSID according to an SSID and an access password carried in a distribution network request.
A network access system 100 provided in the embodiment of the present application will be described with reference to fig. 1. The network access system 100 includes: client 110 and server 120. Client 110 interacts with server 120 through a network. In the embodiment of the present Application, an Application (APP) such as a browser is installed in the client 110, so that a user sends a configuration page access request to the server 120 through the browser. In the embodiment of the present invention, the server 120 may be, but is not limited to, a web server, a database server, a cloud server, and the like. The client 110 may be, but is not limited to, an electronic Device such as a Personal Computer (PC), a smart phone, a tablet computer, a Mobile Internet Device (MID), a Personal Digital Assistant (PDA), and the like.
When a user performs network distribution on equipment to be distributed, a configuration page access request can be sent to the server 120 through the client 110, after the server 120 receives the configuration page access request, a configuration page is returned to the client 110 based on the configuration page access request, the user can input an SSID name to be connected with the equipment to be distributed and an access password required for accessing the SSID on the configuration page, the client 110 obtains the SSID name and the access password input by the user to generate a network distribution request, and the client 110 sends the network distribution request to the equipment to be distributed connected with the client 110 so that the equipment to be distributed establishes connection with the SSID according to the SSID name and the access password in the network distribution request. When the client 110 communicates with the device to be networked, the communication may be performed in an asynchronous interaction manner, for example, the client 110 performs asynchronous communication with the device to be networked through ajax (asynchronous Javascript And xml). After the network distribution of the network distribution equipment is successful (after connection is established with the SSID according to the SSID name and the access password in the network distribution request), the network distribution equipment can communicate with the server.
When the user accesses the website for the distribution network deployed on the server 120, the website can be accessed by inputting a domain name in a browser, or by a public number, for example, by a wechat public number, when the user accesses the website for the distribution network through the wechat public number, the user can automatically jump to the browser by clicking a configuration page in the wechat public number without inputting the domain name, and the access to the website deployed on the server 120 is automatically initiated.
When a user performs network distribution on equipment to be distributed, the equipment to be distributed is powered on, the equipment to be distributed works in an AP (Access Point ) + STA (Station) mode by default after being powered on, and a Service Set Identifier (SSID) signal is released to the outside, so that the client can establish connection with the SSID through the SSID released by the equipment to be distributed. After the power is turned on, the device to be networked firstly enters an STA mode, and scans surrounding WiFi signals to obtain SSID names of surrounding WiFi networks, so that a scanned SSID list can be provided for a user. After the detection of the surrounding WiFi signals is completed in the STA mode, the AP mode is switched to send out WiFi signals, so that the user can use the client 110 to access the WiFi network of the device to be configured, thereby implementing the establishment of the wireless connection between the client 110 and the device to be configured. The device to be networked can be an intelligent device equipped with a wireless network card, such as a refrigerator, a television, an air conditioner, a washing machine and other devices which can be connected to the network.
In order to improve the efficiency of the network distribution, in one embodiment, when a user inputs the SSID name to be connected to the network equipment to be distributed on a configuration page, the user may input only a part of characters without inputting all characters contained in the SSID, and then the complete SSID is automatically filled in a matching manner, so that the process of configuring the network for the network equipment to be distributed by the user is more convenient. In this embodiment, the process of the client 110 acquiring the SSID name input by the user in the configuration page may be: when detecting that the user inputs a part of characters in the SSID name in the configuration page, the client 110 matches the input part of characters with the SSIDs in the scanned SSID list, and automatically fills the matched SSID names into corresponding positions (such as SSID input boxes) of the configuration page. By the method, a user does not need to input all characters contained in the SSID, and therefore the efficiency of the distribution network is improved.
When the matched SSID names are automatically filled in the corresponding positions of the configuration page, if there are multiple matched SSIDs, the multiple matched SSIDs may be displayed so that a user can select from the multiple matched SSIDs, and the client 110 automatically fills the SSID names selected by the user from the multiple displayed SSIDs into the corresponding positions of the configuration page based on the selection of the user.
The SSID list is obtained by scanning SSID names of surrounding WiFi networks by the device to be networked in an STA mode. The client 110 may obtain the SSID list scanned by the network to be configured device in the following manner. The client 110 sends an acquisition request for acquiring an SSID list scanned by the device to be networked to the device to be networked; the device to be configured sends the scanned SSID list to the client 110 based on the acquisition request.
In an embodiment, the client 110 is further configured to obtain ID information of the user, and send the ID information to the device to be networked, so that the device to be networked sends the device ID of the device to be networked and the ID information to the server 120 after establishing connection with the SSID, so as to establish a binding relationship between the device ID and the ID information, thereby completing automatic binding between the user and the device to be networked. In this embodiment, the ID information acquired by the client 110 is the ID information that is allocated by the server 120 to the user and used for characterizing the identity of the user. In this embodiment, after receiving the configuration page access request, the server 120 may first identify the identity of the user, and after the identity information of the identified user is obtained, return the configuration page to the client 110. At this time, the server 120 may first return an authentication page to complete the identification of the user identity by directing the user to register and log in, and assign the user ID to the user. When a user accesses a website deployed on the server 120 through the wechat community number, the wechat ID of the user may be used as user information for identifying the user.
When the client 110 sends the ID information to the device to be networked, the ID information may be sent together with an SSID name to be connected by the device to be networked and an access password required for accessing the SSID, for example, the client 110 may periodically send an AJAX request (may be a network distribution request) to the device to be networked, where the request includes the SSID name to be connected by the device to be networked, the access password required for accessing the SSID, and the ID information, and after receiving the request, the device to be networked returns to the current state in real time until the network distribution is successful or failed. For the user, the distribution network progress can be seen in real time through the web page. And when the device to be networked successfully connects to the network, the registration is automatically initiated to the server 120, the registration message carries the ID information and the device ID of the device to be networked, and when the registration is successful, the server 120 automatically establishes the binding relationship between the device and the user, so that the identification of the device to be networked is completed, preparation is provided for subsequent services, and the user can conveniently check the data periodically sent to the server by the device of the internet of things. After the network distribution of the equipment to be distributed is successful, the data acquired or operated by the equipment to be distributed can be periodically sent to the server, the server stores the data sent by the equipment to be distributed in the database, and after the equipment and the user establish a binding relationship, the user can access the server to check the data of the equipment to be distributed which establishes the binding relationship with the user.
In the embodiment of the application, a mode that the web page data and the distribution network data are separated from each other is adopted, that is, the static data of the web page is provided by the server 120, and the distribution network information is sent to the equipment to be distributed as the dynamic data, so that the equipment to be distributed does not need to provide a web access function to the outside, and only the connection with the corresponding SSID needs to be established according to the SSID and the access password carried in the distribution network request, thus the hardware requirement on the equipment to be distributed is greatly reduced, and the overhead of the system can be effectively saved. Meanwhile, as the webpage data of the distribution network are placed on the server 120 side, unified maintenance and updating of webpage resources can be facilitated, and the maintenance cost can be effectively reduced while management is facilitated. The client 110 communicates with the device to be networked through the AJAX cross-domain request, and a user can monitor the real-time state of the device to be networked. Meanwhile, when the SSID input by the user is obtained, the SSID automatic completion function is adopted, the user does not need to remember a lengthy SSID string, and the improvement of the distribution network efficiency is facilitated.
The embodiment of the present application further provides a network access method applied to a client side, and the network access method provided in the embodiment of the present application will be described below with reference to fig. 2.
Step S101: the client sends a configuration page access request to the server.
And the server feeds back a configuration page corresponding to the configuration page access request to the client after receiving the configuration page access request.
Step S102: and the client receives a configuration page returned by the server based on the configuration page access request.
Step S103: and the client acquires the SSID name and the access password input by the user in the configuration page and generates a distribution network request.
In one embodiment, the user may input a partial character of the SSID name in a corresponding position of the configuration page, and the client may obtain the complete SSID name. In this embodiment, the process of the client acquiring the SSID name input by the user in the configuration page may be: when detecting that a user inputs part of characters in the SSID name in a configuration page, the client matches the input part of characters with the SSID in the scanned SSID list, and automatically fills the matched SSID name into the corresponding position of the configuration page.
When the matched SSID names are automatically filled into the corresponding positions of the configuration page, if a plurality of matched SSIDs exist, the matched plurality of SSIDs can be displayed so that a user can select the SSIDs, and the client automatically fills the SSID names selected by the user from the displayed plurality of SSIDs into the corresponding positions of the configuration page based on the selection of the user.
The process of acquiring the scanned SSID list may be: the client sends an acquisition request for acquiring an SSID list scanned by the equipment to be networked to the equipment to be networked; and the equipment to be distributed sends the scanned SSID list to the client based on the acquisition request.
Step S104: and the client sends the distribution network request to the equipment to be distributed connected with the client so that the equipment to be distributed establishes connection with the SSID according to the SSID name and the access password in the distribution network request.
The client side can periodically send the distribution network request to the equipment to be distributed, after the equipment to be distributed receives the distribution network request, the SSID name and the access password in the equipment to be distributed are obtained through analysis, the access password is used for establishing connection with the SSID, and the current state is returned to the client side in real time until the distribution network is successful or fails.
In one embodiment, the method further includes: and the client acquires the ID information of the user and sends the ID information to the equipment to be distributed, so that the equipment to be distributed and the ID information are sent to the server after the equipment to be distributed is connected with the SSID, and the binding relationship between the equipment ID and the ID information is established. The ID information of the user acquired by the client is the ID distributed to the user after the identity of the user is identified and authenticated when the server sends a configuration page access request to the server from the client, and the ID information is returned to the client in a mode of loading to the configuration page.
It should be noted that, in this embodiment, the client may not form the network access system with the server, that is, the client is no longer a device belonging to the network access system.
The embodiment of the present application further provides a network access method applied to a device side of a network to be distributed, which will be described below with reference to fig. 3.
Step S201: and the equipment to be distributed receives a distribution network request sent by the client.
The distribution network request is generated by the client based on an SSID name and an access password input by a user in a configuration page, and the configuration page is returned by the server based on a configuration page access request sent by the client.
When a user performs network distribution on equipment to be distributed, the equipment to be distributed is powered on, the equipment to be distributed works in an AP + STA mode by default after the equipment to be distributed is powered on, and a Service Set Identifier (SSID) signal is released to the outside to wait for the user to access. The user can use the client to access the WiFi network of the equipment to be networked, so that the client and the equipment to be networked establish wireless connection. After the connection is established, the client can send a distribution network request to the equipment to be distributed.
Step S202: and the equipment to be distributed acquires the SSID name and the access password in the distribution network request.
Step S203: and the equipment to be distributed is connected with the SSID according to the SSID name and the access password and is connected with the SSID.
In an optional implementation manner, before receiving the distribution network request sent by the client, the method further includes: the equipment to be configured receives an acquisition request sent by the client and used for acquiring an SSID list scanned by the equipment to be configured; and the equipment to be distributed sends the scanned SSID list to the client based on the acquisition request. The client side obtains the SSID list scanned by the equipment to be configured, so that when the fact that a user inputs part of characters in the SSID name in a configuration page is detected, the input part of characters are matched with the SSID in the scanned SSID list, the user can only input part of characters, and then the complete SSID is automatically filled in a matching mode.
Optionally, the method further comprises: the equipment to be distributed receives the user ID sent by the client; and after the equipment to be distributed is connected with the SSID, sending the equipment ID of the equipment to be distributed and the ID information to the server so as to establish the binding relationship between the equipment ID and the ID information and acquire the equipment to be distributed. In the embodiment, after the network to be distributed is successfully connected with the network, the registration is automatically initiated to the server, the registration message carries the ID information and the device ID of the network to be distributed, and after the registration is successful, the server automatically establishes the binding relationship between the device and the user, so that the identification of the network to be distributed is completed, and preparation is provided for subsequent services.
The network access method provided by the embodiment of the present application has the same implementation principle and technical effect as the foregoing system embodiment, and for brief description, reference may be made to corresponding contents in the foregoing system embodiment for the part where the method embodiment is not mentioned.
As shown in fig. 4, fig. 4 is a block diagram illustrating a structure of an electronic device 200 for performing a network access method according to an embodiment of the present application. The electronic device 200 includes: a transceiver 210, a memory 220, a communication bus 230, and a processor 240.
The elements of the transceiver 210, the memory 220, and the processor 240 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, the components may be electrically coupled to each other via one or more communication buses 230 or signal lines. The transceiver 210 is used for transceiving data. The memory 220 is used for storing computer programs, such as computer programs needed for executing the above-mentioned network access method. Wherein the computer program comprises at least one software functional module which can be stored in the memory 220 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the electronic device 200.
When the electronic device is the client, the processor 240 is configured to send a configuration page access request to a server, receive a configuration page returned by the server based on the configuration page access request, acquire an SSID name and an access password input by a user in the configuration page, and generate a distribution network request, where the distribution network request includes the SSID name and the access password, and send the distribution network request to a device to be distributed connected to the processor, so that the device to be distributed establishes a connection with the SSID according to the SSID name and the access password in the distribution network request. At this time, the electronic Device includes, but is not limited to, an electronic Device such as a Personal Computer (PC), a smart phone, a tablet PC, a Mobile Internet Device (MID), a Personal Digital Assistant (PDA), and the like
When the electronic device is the above-mentioned device to be configured, the processor 240 is configured to receive a network distribution request sent by the client; the distribution network request is generated by the client based on an SSID name and an access password input by a user in a configuration page, and the configuration page is returned by the server based on a configuration page access request sent by the client; acquiring the SSID name and the access password in the distribution network request; and establishing connection with the SSID according to the SSID name and the access password. The equipment to be distributed can be intelligent equipment with a wireless network card, such as equipment which can be accessed to a network, such as a refrigerator, a television, an air conditioner, a washing machine and the like.
The Memory 220 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Read Only Memory (EPROM), an electrically Erasable Read Only Memory (EEPROM), and the like.
The processor 240 may be an integrated circuit chip having signal processing capabilities. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor 240 may be any conventional processor or the like.
The present embodiment also provides a non-volatile computer readable storage medium (hereinafter, referred to as a storage medium), where the storage medium stores a computer program, and when the computer program is executed by the electronic device 200 as described above, the computer program performs the above-described network access method.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a notebook computer, a server, or an electronic device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application 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 application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. A network access method, comprising:
a client sends a configuration page access request to a server;
the client receives a configuration page returned by the server based on the configuration page access request;
the client acquires an SSID name and an access password input by a user in the configuration page and generates a distribution network request, wherein the distribution network request comprises the SSID name and the access password;
the client sends the distribution network request to the equipment to be distributed connected with the client so as to enable the equipment to be distributed to be connected with the SSID according to the SSID name and the access password in the distribution network request, wherein the client and the equipment to be distributed are communicated in an asynchronous interaction mode, so that the equipment to be distributed does not need to provide a web access function to the outside.
2. The method of claim 1, wherein the client obtains an SSID name entered by a user in the configuration page, comprising:
when detecting that a user inputs part of characters in the SSID name in the configuration page, the client matches the input part of characters with the SSID in the scanned SSID list, and automatically fills the matched SSID name into the corresponding position of the configuration page.
3. The method of claim 2, wherein automatically populating the matched SSID name into a corresponding location of the configuration page comprises:
if a plurality of matched SSIDs exist, displaying the plurality of matched SSIDs;
and automatically filling the SSID name selected by the user from the displayed plurality of SSIDs into a corresponding position of the configuration page.
4. The method of claim 2, wherein obtaining the scanned list of SSIDs comprises:
the client sends an acquisition request for acquiring an SSID list scanned by the equipment to be networked to the equipment to be networked;
and the equipment to be distributed sends the scanned SSID list to the client based on the acquisition request.
5. The method according to any one of claims 1-4, further comprising:
and the client acquires the ID information of the user and sends the ID information to the equipment to be distributed, so that the equipment to be distributed and the ID information are sent to the server after the equipment to be distributed is connected with the SSID, and the binding relationship between the equipment ID and the ID information is established.
6. A network access method, comprising:
the method comprises the steps that a distribution network request sent by a client side is received by a device to be distributed; the network distribution request is generated by the client based on an SSID name and an access password input by a user in a configuration page, the configuration page is returned by the server based on a configuration page access request sent by the client, and the client communicates with the equipment to be distributed in an asynchronous interaction mode, so that the equipment to be distributed does not need to provide a web access function to the outside;
the equipment to be distributed acquires the SSID name and the access password in the distribution network request;
and the equipment to be distributed is connected with the SSID according to the SSID name and the access password and is connected with the SSID.
7. The method of claim 6, wherein before receiving the distribution network request sent by the client, the method further comprises:
the network equipment to be configured receives an acquisition request sent by the client and used for acquiring an SSID list scanned by the network equipment to be configured;
and the equipment to be distributed sends the scanned SSID list to the client based on the acquisition request.
8. The method of claim 6, further comprising:
the equipment to be distributed receives user ID information sent by the client;
and after the equipment to be distributed is connected with the SSID, sending the equipment ID of the equipment to be distributed and the ID information to the server so as to establish the binding relationship between the equipment ID and the ID information and acquire the equipment to be distributed.
9. A network access system, comprising:
the client is used for sending a configuration page access request to the server;
the server is used for accessing the configuration page returned to the client based on the configuration page access request;
the client is further configured to acquire an SSID name and an access password input by a user in the configuration page, and generate a distribution network request, where the distribution network request includes the SSID name and the access password; and sending the distribution network request to a device to be distributed connected with the client, so that the device to be distributed is connected with the SSID according to the SSID name and the access password in the distribution network request, and the client communicates with the device to be distributed in an asynchronous interaction mode, so that the device to be distributed does not need to provide a web access function to the outside.
10. An electronic device, comprising:
a memory and a processor, the processor coupled to the memory;
the memory is used for storing programs;
the processor for invoking a program stored in the memory to perform the method of any of claims 1-5 or to perform the method of any of claims 6-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011514657.1A CN112702328B (en) | 2020-12-18 | 2020-12-18 | Network access method, system and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011514657.1A CN112702328B (en) | 2020-12-18 | 2020-12-18 | Network access method, system and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112702328A CN112702328A (en) | 2021-04-23 |
CN112702328B true CN112702328B (en) | 2022-05-17 |
Family
ID=75507746
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011514657.1A Active CN112702328B (en) | 2020-12-18 | 2020-12-18 | Network access method, system and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112702328B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114666255B (en) * | 2022-03-16 | 2024-04-05 | 京东科技信息技术有限公司 | Method for testing network distribution performance of Internet of things equipment and related equipment thereof |
CN115442871A (en) * | 2022-08-31 | 2022-12-06 | 杭州微影软件有限公司 | Equipment network access method, system and device and terminal equipment |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010133458A1 (en) * | 2009-05-18 | 2010-11-25 | Skype Limited | Network access nodes |
CN103870501A (en) * | 2012-12-14 | 2014-06-18 | 联想(北京)有限公司 | Automatic matching method and device |
CN105101206A (en) * | 2015-06-26 | 2015-11-25 | 中国联合网络通信集团有限公司 | Automatic WIFI accessing method and system of device |
CN106535357A (en) * | 2015-09-10 | 2017-03-22 | 中国电信股份有限公司 | Method and system for configuring wifi parameters |
CN109041062A (en) * | 2018-07-03 | 2018-12-18 | 阿里巴巴集团控股有限公司 | A kind of method for network access and device |
CN109451042A (en) * | 2018-12-10 | 2019-03-08 | 苏州思必驰信息科技有限公司 | For matching network method without screen smart machine |
CN110912761A (en) * | 2019-12-31 | 2020-03-24 | 美的集团股份有限公司 | Binding method and false allocation prevention method for automatic distribution network of equipment and cloud server |
CN111565137A (en) * | 2020-04-28 | 2020-08-21 | 北京芯创睿胜科技有限公司 | System and method for binding WiFi distribution network and equipment |
CN111866997A (en) * | 2020-07-24 | 2020-10-30 | 深圳创维数字技术有限公司 | WPS connection-based network distribution method, network to be distributed equipment and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8125965B1 (en) * | 2005-12-19 | 2012-02-28 | Kyocera Corporation | Wireless multi-mode system and method |
CN108307479B (en) * | 2017-12-15 | 2020-03-24 | 珠海格力电器股份有限公司 | Communication module, network distribution method and device thereof, storage medium, equipment and terminal |
CN109981421B (en) * | 2017-12-27 | 2022-02-01 | 九阳股份有限公司 | Intelligent device network distribution method and device |
-
2020
- 2020-12-18 CN CN202011514657.1A patent/CN112702328B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010133458A1 (en) * | 2009-05-18 | 2010-11-25 | Skype Limited | Network access nodes |
CN103870501A (en) * | 2012-12-14 | 2014-06-18 | 联想(北京)有限公司 | Automatic matching method and device |
CN105101206A (en) * | 2015-06-26 | 2015-11-25 | 中国联合网络通信集团有限公司 | Automatic WIFI accessing method and system of device |
CN106535357A (en) * | 2015-09-10 | 2017-03-22 | 中国电信股份有限公司 | Method and system for configuring wifi parameters |
CN109041062A (en) * | 2018-07-03 | 2018-12-18 | 阿里巴巴集团控股有限公司 | A kind of method for network access and device |
CN109451042A (en) * | 2018-12-10 | 2019-03-08 | 苏州思必驰信息科技有限公司 | For matching network method without screen smart machine |
CN110912761A (en) * | 2019-12-31 | 2020-03-24 | 美的集团股份有限公司 | Binding method and false allocation prevention method for automatic distribution network of equipment and cloud server |
CN111565137A (en) * | 2020-04-28 | 2020-08-21 | 北京芯创睿胜科技有限公司 | System and method for binding WiFi distribution network and equipment |
CN111866997A (en) * | 2020-07-24 | 2020-10-30 | 深圳创维数字技术有限公司 | WPS connection-based network distribution method, network to be distributed equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
《智能产品配网绑定时效问题的定位方法》;李昱兵;《计算机系统应用》;20200430;第29卷(第4期);第163-169页 * |
Also Published As
Publication number | Publication date |
---|---|
CN112702328A (en) | 2021-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108449418B (en) | Hybrid cloud platform management system and method | |
CN108737327B (en) | Method, device and system for intercepting malicious website and memory | |
US20190037399A1 (en) | Ap connection method, terminal, and server | |
CN107809383B (en) | MVC-based path mapping method and device | |
CN112702328B (en) | Network access method, system and electronic equipment | |
CN110740490A (en) | Terminal network access method, gateway equipment, system, storage medium and device | |
EP3413594B1 (en) | Methods for connecting communication devices, terminal device and server system | |
CN113316926B (en) | Domain name processing method, device, electronic equipment and storage medium | |
CN113366815B (en) | Network resource request method, device, electronic equipment and storage medium | |
CN103401907A (en) | Synchronous processing method and system for login information of application program | |
CN104980448B (en) | Remote monitoring method, device and system | |
CN104363226A (en) | Method, device and system for logging in operating system | |
CN109726545B (en) | Information display method, equipment, computer readable storage medium and device | |
CN111400777A (en) | Network storage system, user authentication method, device and equipment | |
CN103250442A (en) | Methods and apparatus for obtaining a service | |
CN111263338A (en) | Network distribution method of Bluetooth Mesh network and related network distribution equipment and system | |
CN112929224A (en) | Network distribution method and device of equipment, server and computer readable storage medium | |
CN102790675B (en) | Authentication method of network connection, network device and network authentication system thereof | |
CN102571688B (en) | Device, system and method for synchronizing browser bookmark | |
CN102170631B (en) | Service information acquisition method, equipment and system | |
CN108684044A (en) | A kind of user behavior detecting system, method and device | |
JP5061991B2 (en) | Browser-mounted device / phone linkage method, browser-mounted device / phone linkage system, and browser-mounted device / phone linkage device | |
CN111511043B (en) | Network connection method, device, electronic equipment and storage medium | |
CN110704498A (en) | Data extraction method, device, equipment and computer readable storage medium | |
US11799982B2 (en) | Message push method, apparatus, device and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |