CN109640374B - Wireless network access method, wireless network processing device, storage medium and computer equipment - Google Patents

Wireless network access method, wireless network processing device, storage medium and computer equipment Download PDF

Info

Publication number
CN109640374B
CN109640374B CN201710931318.5A CN201710931318A CN109640374B CN 109640374 B CN109640374 B CN 109640374B CN 201710931318 A CN201710931318 A CN 201710931318A CN 109640374 B CN109640374 B CN 109640374B
Authority
CN
China
Prior art keywords
wireless network
page
wireless
access point
authentication request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710931318.5A
Other languages
Chinese (zh)
Other versions
CN109640374A (en
Inventor
张锦建
孙铭银
饶凌河
倪虎
龙振海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710931318.5A priority Critical patent/CN109640374B/en
Publication of CN109640374A publication Critical patent/CN109640374A/en
Application granted granted Critical
Publication of CN109640374B publication Critical patent/CN109640374B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a wireless network access method, a wireless network processing method, a wireless network access device, a storage medium and computer equipment, wherein the wireless network access method comprises the following steps: connecting a wireless network; when the wireless network is accessed in a page authentication mode, a wireless access point is established locally; sending access point information corresponding to the wireless access point to auxiliary equipment so that the auxiliary equipment can access the wireless access point according to the access point information; receiving a page authentication request sent by the auxiliary equipment through the wireless access point; replacing the physical address carried in the page authentication request with a local physical address; and accessing the wireless network according to the replaced page authentication request. The scheme provided by the application solves the problem that the screen-free equipment cannot be accessed to the wireless network.

Description

Wireless network access method, wireless network processing device, storage medium and computer equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a wireless network access method, a wireless network processing method, a wireless network access device, a wireless network processing device, a storage medium, and a computer device.
Background
With the development of computer technology and the popularization of wireless networks, mobile devices can access wireless networks, and further realize various network-based functions through the wireless networks. Currently, a user may enter a wireless network settings page through a connection settings portal provided by a mobile device, select among a plurality of wireless networks presented in the page, and then connect to the wireless network.
However, if the mobile device intending to connect to the wireless network is a screen-less device, the screen-less device cannot display a plurality of wireless network setting pages of the wireless network through the display screen, thereby causing a problem that the wireless network cannot be accessed.
Disclosure of Invention
Based on this, it is necessary to provide a wireless network access method, a wireless network processing method, a wireless network access device, a wireless network processing apparatus, a storage medium, and a computer device, for solving the problem that a wireless device cannot access a wireless network in the conventional technology.
A wireless network access method, comprising:
connecting a wireless network;
when the wireless network is accessed in a page authentication mode, a wireless access point is established locally;
sending access point information corresponding to the wireless access point to auxiliary equipment so that the auxiliary equipment can access the wireless access point according to the access point information;
receiving a page authentication request sent by the auxiliary equipment through the wireless access point;
replacing the physical address carried in the page authentication request with a local physical address;
and accessing the wireless network according to the replaced page authentication request.
A wireless network access device, comprising:
the connection module is used for connecting a wireless network;
the establishing module is used for establishing a wireless access point locally when the wireless network is accessed in a page authentication mode;
a sending module, configured to send access point information corresponding to the wireless access point to an auxiliary device, so that the auxiliary device accesses the wireless access point according to the access point information;
a receiving module, configured to receive, through the wireless access point, a page authentication request sent by the auxiliary device;
the replacing module is used for replacing the physical address carried in the page authentication request with a local physical address;
and the access module is used for accessing the wireless network according to the replaced page authentication request.
A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, causes the processor to perform the steps of:
connecting a wireless network;
when the wireless network is accessed in a page authentication mode, a wireless access point is established locally;
sending access point information corresponding to the wireless access point to auxiliary equipment so that the auxiliary equipment can access the wireless access point according to the access point information;
receiving a page authentication request sent by the auxiliary equipment through the wireless access point;
replacing the physical address carried in the page authentication request with a local physical address;
and accessing the wireless network according to the replaced page authentication request.
A computer device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of:
connecting a wireless network;
when the wireless network is accessed in a page authentication mode, a wireless access point is established locally;
sending access point information corresponding to the wireless access point to auxiliary equipment so that the auxiliary equipment can access the wireless access point according to the access point information;
receiving a page authentication request sent by the auxiliary equipment through the wireless access point;
replacing the physical address carried in the page authentication request with a local physical address;
and accessing the wireless network according to the replaced page authentication request.
According to the wireless network access method, the wireless network access device, the storage medium and the computer equipment, when the local wireless network connected to the local network needs to perform page authentication, the wireless access point is established locally for the connection of the auxiliary equipment, so that the request initiated after the auxiliary equipment is connected to the wireless access point is forwarded locally. Therefore, when the page authentication request initiated by the auxiliary equipment is forwarded locally, the physical address carried in the page authentication request can be replaced by the local physical address, so that the local physical address is actually carried in the page authentication request, and the local wireless network access is realized.
A wireless network processing method, comprising:
sending wireless network information to a non-screen device so that the non-screen device is connected with a wireless network according to the wireless network information;
receiving access point information of a wireless access point created after the wireless equipment is connected with a wireless network;
accessing the wireless access point according to the access point information;
and sending a page authentication request through the wireless access point, so that the non-screen equipment is accessed to the wireless network according to the replaced page authentication request after replacing a physical address carried in the page authentication request with the physical address of the non-screen equipment.
A wireless network processing apparatus, comprising:
the information sending module is used for sending wireless network information to the non-screen equipment so that the non-screen equipment is connected with a wireless network according to the wireless network information;
the receiving module is used for receiving access point information of a wireless access point created after the wireless equipment is connected with a wireless network;
the access module is used for accessing the wireless access point according to the access point information;
and the request sending module is used for sending a page authentication request through the wireless access point so that the non-screen equipment is accessed to the wireless network according to the replaced page authentication request after replacing the physical address carried in the page authentication request with the physical address of the non-screen equipment.
A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, causes the processor to perform the steps of:
sending wireless network information to a non-screen device so that the non-screen device is connected with a wireless network according to the wireless network information;
receiving access point information of a wireless access point created after the wireless equipment is connected with a wireless network;
accessing the wireless access point according to the access point information;
and sending a page authentication request through the wireless access point, so that the non-screen equipment is accessed to the wireless network according to the replaced page authentication request after replacing a physical address carried in the page authentication request with the physical address of the non-screen equipment.
A computer device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of:
sending wireless network information to a non-screen device so that the non-screen device is connected with a wireless network according to the wireless network information;
receiving access point information of a wireless access point created after the wireless equipment is connected with a wireless network;
accessing the wireless access point according to the access point information;
and sending a page authentication request through the wireless access point, so that the non-screen equipment is accessed to the wireless network according to the replaced page authentication request after replacing a physical address carried in the page authentication request with the physical address of the non-screen equipment.
According to the wireless network processing method, the wireless network processing device, the storage medium and the computer equipment, the wireless network information is firstly sent to the non-screen equipment to enable the non-screen equipment to be connected with the wireless network, and then the wireless access point created after the non-screen equipment is connected with the wireless network is accessed, so that the request initiated after the local connection with the wireless access point is forwarded by the non-screen equipment. Therefore, when the non-screen equipment forwards the locally initiated page authentication request, the physical address carried in the page authentication request can be replaced by the physical address of the non-screen equipment, so that the physical address of the non-screen equipment is actually carried in the page authentication request, and the non-screen equipment is accessed into a wireless network.
Drawings
FIG. 1 is a diagram of an exemplary wireless network access method;
FIG. 2 is a flow diagram of a wireless network access method in one embodiment;
FIG. 3 is a flow diagram of a wireless network processing method in one embodiment;
FIG. 4 is a diagram of an interface showing candidate wireless network identifications, in one embodiment;
FIG. 5 is a schematic interface diagram of an authentication page in one embodiment;
FIG. 6 is a schematic diagram of a wireless network access process in one embodiment;
FIG. 7 is a timing diagram illustrating interaction of an auxiliary device with a screenless device in one embodiment;
FIG. 8 is a block diagram of a wireless network access device in one embodiment;
fig. 9 is a block diagram of a wireless network access device in another embodiment;
FIG. 10 is a block diagram of a wireless network processing device in one embodiment;
fig. 11 is a block diagram showing the structure of a wireless network processing apparatus according to another embodiment;
FIG. 12 is a diagram showing an internal structure of a computer device in one embodiment;
fig. 13 is an internal structural view of a computer device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments.
Fig. 1 is a diagram of an application environment of a wireless network access method in one embodiment. Referring to fig. 1, the wireless network access method is applied to a wireless network access system. The wireless network access system includes an auxiliary device 110, a screenless device 120, a gateway device 130, and an authentication server 140. The auxiliary device 110 is connected to the screenless device 120, and the screenless device 120 is connected to the gateway device 130, and the gateway device 130 is connected to the authentication server 140 via a network. Gateway device 130 provides a wireless network and authentication server 140 is used to authenticate access to the wireless network. The auxiliary device 110 may specifically be a desktop computer with a display screen or a mobile terminal, and the mobile terminal may specifically be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The screenless device 120 may specifically be a electronic device without a display screen. The screenless device 120 is used to perform the wireless network access method. After the wireless network is connected to the non-screen device 120, if the wireless network is accessed in a page authentication manner, a wireless access point is created locally; and sending the access point information corresponding to the wireless access point to the auxiliary device 110, so that the auxiliary device 110 accesses the wireless access point according to the access point information. The non-screen device 120 receives the page authentication request sent by the auxiliary device 110 through the wireless access point, and replaces the physical address carried in the page authentication request with the local physical address, so as to access the wireless network according to the replaced page authentication request.
In one embodiment, the wireless network processing method may also be used in the application environment shown in fig. 1. The auxiliary device 110 sends the wireless network information to the wireless device 120, so that the wireless device 120 connects to the wireless network according to the wireless network information, receives access point information of a wireless access point created after the wireless device 120 connects to the wireless network, and accesses to the wireless access point according to the access point information. The auxiliary device 110 may further send a page authentication request through the wireless access point, so that the wireless device 120 accesses the wireless network according to the replaced page authentication request after replacing the physical address carried in the page authentication request with the physical address of the wireless device.
Fig. 2 is a flow chart illustrating a wireless network access method according to an embodiment. The present embodiment is mainly illustrated by applying the method to the non-screen device 120 in fig. 1. Referring to fig. 2, the wireless network access method specifically includes the following steps:
and S202, connecting a wireless network.
The wireless network is realized by adopting a wireless communication technology. In this embodiment, the Wireless network is a Wireless Local Area Network (WLAN), and may specifically be Wi-Fi (Wireless fidelity).
Specifically, the wireless network searching interface provided by the operating system can be called by the non-screen device to search for wireless networks available for connection, so as to obtain candidate wireless networks, and therefore, the wireless networks are selected from the candidate wireless networks for connection according to a preset wireless network selection strategy. The wireless network selection strategy may be to randomly select among the candidate wireless networks, or to select the wireless network with the highest signal quality quantization value among the candidate wireless networks. The signal quality quantized value refers to a quantized value for measuring the quality of the wireless network. In one embodiment, the signal quality quantization value may be obtained according to the connection number, signal strength, signal stability, and the like of the corresponding wireless network.
In one embodiment, the screenless device may establish a connection with the auxiliary device, which may specifically be a bluetooth connection. The auxiliary equipment calls a wireless network searching interface provided by the operating system through a wireless network processing application running in the local area, searches for a wireless network available for connection, obtains a candidate wireless network identifier, and displays the candidate wireless network identifier through a display screen of the auxiliary equipment. The auxiliary equipment can detect a selection instruction triggered by the user aiming at the displayed wireless network identifier, determine the wireless network identifier appointed by the selection instruction, and send the wireless network identifier to the non-screen equipment, so that the non-screen equipment is connected with a wireless network according to the wireless network identifier. The auxiliary equipment is electronic equipment with a display screen. The wireless network identification is used to identify a wireless network. And finding the wireless network and connecting through the wireless network identification.
In one embodiment, the wireless network identification includes at least one of a wireless network name of the respective wireless network and a physical address of a gateway device corresponding to the respective wireless network. The wireless network name may be specifically represented by an SSID (Service Set Identifier), and the physical address of the gateway device corresponding to the wireless network may be specifically represented by a BSSID (Basic Service Set Identifier).
For example, the wireless network identifier may be represented by SSID, such as "city" or "free"; can be represented by BSSID such as "8 c: a6: df: if:7a:3 c" or "fc: a6:33:94: a0:3 c" etc.; it is also possible to use the SSID and BSSID in a common representation, which may include a direct concatenation or a connection via an intermediate connector. Such as "city 8c: a6: df: if:7a:3 c" or "free-fc: a6:33:94: a0:3 c".
In this embodiment, the wireless network identifier is represented by the wireless network name of the corresponding wireless network and the physical address of the gateway device corresponding to the corresponding wireless network, so that one wireless network can be uniquely identified, and the accuracy and uniqueness of the wireless network identifier are improved.
In an embodiment, the auxiliary device may further generate and display a graphic code according to the wireless network identifier specified by the selection instruction, and then the screen-less device may invoke a local image capturing device to capture the graphic code displayed by the auxiliary device, and analyze the graphic code to obtain the wireless network identifier, so as to connect to the wireless network corresponding to the wireless network identifier.
The graphic code is a graphic obtained by encoding characters and capable of restoring the encoded characters, and includes a two-dimensional code, a bar code and the like. The bar code is a graphic identifier which arranges a plurality of black bars and blanks with different widths according to a certain coding rule and is used for expressing a group of information. A common bar code is a pattern of parallel lines of black and white bars of widely differing reflectivity. The two-dimensional code is a bar code for recording data symbol information by black and white figures distributed in a plane two-dimensional direction according to a certain rule by using a certain specific geometric figure. The two-dimensional Code can be divided into a stacked type or row-by-row type and a matrix type two-dimensional Code, wherein the stacked type or row-by-row type two-dimensional Code coding principle is based on a one-dimensional bar Code and is stacked into two or more rows according to requirements, and representative two-dimensional codes comprise Code 16K, Code 49, PDF417 and the like. The matrix type two-dimensional code is coded in a rectangular space through different distribution of black and white pixels in a matrix. On the corresponding element position of the matrix, the appearance of the point represents binary system '1', the non-appearance of the point represents binary system '0', and the arrangement combination of the points determines the meaning represented by the matrix type two-dimensional code; the representative matrix type two-dimensional code is as follows: CodeOne, MaxiCode, or QR Code, etc.
S204, when the wireless network is accessed by adopting a page authentication mode, a wireless access point is established locally.
Specifically, the wireless network can configure the access mode when being created, and network access can be performed only after the wireless network is accessed. The access mode may be an open access mode. The wireless network corresponding to the open access mode is a wireless network which can be directly accessed without access certificates or authentication information, namely a free wireless network. The access mode can also be an encrypted access mode. The wireless network corresponding to the encrypted access mode is the wireless network which can be accessed only by the access certificate. The access mode may also be an authenticated access mode. The wireless network corresponding to the authentication type access mode is the wireless network which can be accessed only by authentication information. In this embodiment, the page authentication method is a method of performing authentication by inputting authentication information through a page, and is one of authentication access methods.
In this embodiment, when determining that a currently connected wireless network is accessed in a page authentication manner, the non-screen device creates a new wireless access point locally through a local network adapter, and sets a wireless access point identifier and a corresponding access credential for the new wireless access point to obtain wireless access point information. The wireless access point may specifically be a WI-FI hotspot. At this time, the non-screen device performs network sharing through a local network adapter, and the local device is used as a wireless access point for other devices to access.
In one embodiment, after connecting to the wireless network, the wireless network access method further includes: initiating an access request aiming at a preset page link address; and when the access request is redirected to a page link address different from the preset page link address, judging that the wireless network is accessed by adopting a page authentication mode.
The preset page link address is used for detecting a page connection address accessed by the wireless network in a page authentication mode. The preset page link address can be a uniformly set page link address or a page link address set by a device manufacturer for producing the non-screen device. The preset page link address is stored in the non-screen device and can be called by the non-screen device when needed. The access request is a request for access to a page connection address. In this embodiment, the access request is used to request access to a preset page link address. The page link address may specifically be a URL (Uniform Resource Locator).
Specifically, after the wireless network is connected, the non-screen device calls a locally stored preset page link address, and initiates an access request for the page link address. When the data packet which is received by the non-screen device and fed back according to the access request carries a keyword which indicates that authentication is not needed, the wireless network is judged to be accessed without adopting a page authentication mode, and at the moment, the non-screen device is accessed into the wireless network and can access the network. When the access request is redirected to a page link address different from the preset page link address, the wireless network is judged to be accessed in a page authentication mode, and therefore the authentication process is completed by means of the auxiliary equipment.
For example, if the preset page link address is a webpage connection address "http:// g.cn/generation _ 204" provided by google corporation on the electronic device based on the android system, if the wireless network does not adopt a page authentication mode for access, a data packet fed back by the access request carries a keyword "204" that does not need authentication, and if the access request is redirected to a portal authentication page, it is determined that the wireless network adopts a page authentication mode for access.
In this embodiment, whether the wireless network is accessed by adopting a page authentication mode is detected through a preset page link address, so that a new wireless access point is created when the wireless network is judged to be accessed by adopting the page authentication mode, and the authentication process is completed by using auxiliary equipment to realize local access to the wireless network.
S206, sending the access point information corresponding to the wireless access point to the auxiliary equipment so that the auxiliary equipment can access the wireless access point according to the access point information.
Specifically, after a new wireless access point is created locally by the non-screen device, the access point information of the wireless access point is sent to the auxiliary device, so that the auxiliary device accesses the wireless access point according to the received access point information. The wireless access point information comprises a wireless access point identification and a corresponding access credential. After receiving the access point information, the auxiliary device can directly access the wireless access point corresponding to the wireless access point identifier according to the access credential. The auxiliary equipment can also display a wireless access point access guide interface to guide the user to carry out corresponding operation after receiving the access point information, and then access the wireless access point corresponding to the wireless access point identification through the access certificate according to the operation triggered by the user.
And S208, receiving a page authentication request sent by the auxiliary equipment through the wireless access point.
The page authentication request is a request for authentication through a page. Specifically, after accessing the wireless access point, the auxiliary device may initiate an access request for a preset page link address. When the access request is redirected to a page link address different from a preset page link address, an authentication page corresponding to the redirected page link address is displayed, authentication information input in the authentication page is further acquired, a page authentication request is generated according to the acquired authentication information, and the page authentication request is sent through a wireless access point. The non-screen device can receive the page authentication request through the wireless access point.
The authentication information is data to be input through the authentication page, and may include at least one of numbers, letters, and punctuation marks. Authentication information such as a cell phone number and a verification code.
S210, replacing the physical address carried in the page authentication request with a local physical address.
Wherein the physical address is used to uniquely identify a computer device. In this embodiment, the physical address may specifically be a Media Access Control (MAC) address.
Specifically, the screenless device may parse the page authentication request packet, look up the physical address field, and replace the physical address at the page physical address field with the local physical address. For example, assume that the physical address of the auxiliary device is "8 c: a6: df: if:7a:3 c" and the physical address of the screenless device is "fc: a6:33:94: a0:3 c". Then the physical address originally carried in the page authentication request is "8 c: a6: df: if:7a:3 c", and the screenless device replaces "8 c: a6: df: if:7a:3 c" with "fc: a6:33:94: a0:3 c", so that the physical address actually carried in the page authentication request is a local physical address.
And S212, accessing the wireless network according to the replaced page authentication request.
Specifically, the screenless device uplinks the replaced page authentication request to the gateway device via the wireless network, thereby uplinking the replaced page authentication request to the authentication server. After the authentication server successfully authenticates according to the authentication information carried in the page authentication request, the computer equipment corresponding to the physical address carried in the page authentication request, namely the non-screen equipment, is accessed into the wireless network.
According to the wireless network access method, when the local wireless network connected to the current network needs to perform page authentication, the wireless access point is established locally for the connection of the auxiliary equipment, so that the request initiated by the auxiliary equipment after the auxiliary equipment is connected to the wireless access point is forwarded locally. Therefore, when the page authentication request initiated by the auxiliary equipment is forwarded locally, the physical address carried in the page authentication request can be replaced by the local physical address, so that the local physical address is actually carried in the page authentication request, and the local wireless network access is realized.
In one embodiment, S202 specifically includes: receiving wireless network information sent by auxiliary equipment; analyzing the wireless network information to obtain a wireless network identifier and a corresponding access certificate; and connecting the wireless network corresponding to the wireless network identifier through the access certificate.
The access credential is data upon which the wireless network is connected. The access credential may be a password, a swipe gesture, a biometric, or the like. Wherein, the password may include at least one of numbers, letters and punctuation marks; the sliding gesture can be represented by a position point sequence formed by a plurality of position points in sequence; biometric features such as fingerprint features, face features, voice print features, or iris features, etc.
In one embodiment, the auxiliary device may invoke a wireless network search interface provided by the operating system, search for a wireless network available for connection, obtain candidate wireless network identifiers, and then select a wireless network identifier from the candidate wireless network identifiers according to a preset wireless network identifier selection policy, thereby generating wireless network information according to the selected wireless network identifier and a corresponding access credential. The wireless network identifier selection strategy can be to randomly select from the candidate wireless network identifiers, or to select the wireless network identifier with the highest wireless network quality quantization value in the candidate wireless network identifiers, or to display the candidate wireless network identifiers, and to detect a selection instruction triggered by the user for the displayed wireless network identifier, so as to select the wireless network identifier specified by the selection instruction.
In one embodiment, the auxiliary device may obtain an image obtained by screenshot the wireless network settings interface. The method comprises the steps that a wireless network management application running in auxiliary equipment identifies a screenshot of a wireless network setting interface to obtain a wireless network identifier in the wireless network setting interface, candidate wireless network identifiers are obtained, then the wireless network identifier is selected from the candidate wireless network identifiers according to a preset wireless network identifier selection strategy, and therefore wireless network information is generated according to the selected wireless network identifier and a corresponding access certificate. The wireless network setting interface is used for displaying the wireless network identification searched by the wireless network searching interface provided by the operating system.
In one embodiment, the secondary device may identify the wireless network identification from the image via OCR (Optical Character Recognition) techniques. It will be appreciated that the auxiliary device may also use other identification techniques to identify the wireless network identification from the image. The specific identification technology of how to identify the wireless network identifier in the image into the computer text is not limited, as long as the wireless network identifier can be identified from the image.
After the auxiliary device generates the wireless network information, the wireless network information can be sent to the non-screen device. The wireless network information is further analyzed by the non-screen equipment to obtain a wireless network identifier and a corresponding access certificate, so that the wireless network corresponding to the wireless network identifier is connected through the access certificate.
In one embodiment, the auxiliary device may encrypt the wireless network information before sending the wireless network information, and then send the encrypted wireless network information to the non-screen device.
In the above embodiment, the wireless network information sent by the auxiliary device is received, so that the wireless network is connected according to the received wireless network information, and a way of locally obtaining a connectable wireless network is enriched. And the user can select the wireless network through the mobile terminal with the display screen, so that the wireless network which the user intends to access is accessed by the non-screen device.
In one embodiment, S208 includes: and receiving the page authentication request sent by the auxiliary equipment through routing to a wireless access point of the wireless network. S212 includes: and sending the replaced page authentication request through the wireless network so as to access the wireless network after the replaced page authentication request passes the authentication.
Specifically, since the wireless access point accessed by the auxiliary device is created by the non-screen device, the non-screen device can establish a routing relationship between the wireless access point and the wireless network when creating the wireless access point, so that the page authentication request sent by the auxiliary device is forwarded by the non-screen device. The non-screen device can specifically establish a routing table, start a data packet forwarding mode, and forward the data packet according to the routing table in the data packet forwarding mode, that is, forward the page authentication request.
In one embodiment, the step of establishing a routing relationship between a wireless access point and a wireless network includes: acquiring a first network address acquired after a wireless network is connected; assigning a second network address to the wireless access point after the wireless access point is created locally; and establishing a routing relation between the wireless access point and the wireless network according to the first network address and the second network address.
Wherein the network address is a logical address that a node on the internet has in the network. The network addresses corresponding to different network layer protocols are different. In this embodiment, the network Address may specifically be an IP Address (Internet Protocol Address). Here, the first network address and the second network address are both network addresses, but different network addresses.
Specifically, after the non-screen device is connected to the wireless network, the gateway device corresponding to the wireless network allocates a network address to the non-screen device, and the non-screen device can acquire the network address as the first network address. The wireless access point is assigned a network address by the non-screen device after the wireless access point is created locally, so that other devices can access the wireless access point, and the non-screen device can acquire the network address as a second network address. The screenless device may thereby establish a routing relationship between the first network address and the second network address to establish a routing relationship between the wireless access point and the wireless network.
For example, assuming that the first network address is "172.16.0.0" and the second network address is "172.16.0.1", the screenless device may record the routing relationship of "172.16.0.0" and "172.16.0.1" in the routing table IPtables. Therefore, after the non-screen device starts a data packet forwarding mode, namely an IP _ forward switch is turned on, the non-screen device can forward the page authentication request received by the wireless access point through the wireless network.
In this embodiment, a routing relationship between the wireless access point and the wireless network is established, so that the request initiated by the auxiliary device after being connected to the wireless access point is locally forwarded, and thus when the page authentication request initiated by the auxiliary device is locally forwarded, the physical address carried in the page authentication request can be replaced by the local physical address, so that the local physical address is actually carried in the page authentication request, and local access to the wireless network is realized.
In one embodiment, sending the replaced page authentication request over the wireless network comprises: updating the second network address at the source network address field to the first network address in the page authentication request; and sending the updated page authentication request through the first network address.
Specifically, the non-screen device can analyze the page authentication request data packet, search the source network address field, update the second network address in the page source network address field to the first network address, and send the updated page authentication request through the first network address, thereby realizing the forwarding of the page authentication request. Wherein, the source network address is used for identifying the network address sending the page authentication request.
For example, assume that the first network address is "172.16.0.0" and the second network address is "172.16.0.1". Then the original source network address in the page authentication request is "172.16.0.1" and the screenless device replaces "172.16.0.1" with "172.16.0.0" so that the actual source network address in the page authentication request is the local network address.
In this embodiment, the page authentication request initiated by the auxiliary device is forwarded locally, so that the physical address carried by the page authentication request can be modified during forwarding, thereby implementing that the access to the wireless network is local but not the auxiliary device through authentication.
In the above embodiment, when the wireless network to which the local device is currently connected needs to perform page authentication, the wireless access point is created locally for the connection of the auxiliary device, so that the request initiated by the auxiliary device after connecting the wireless access point is forwarded locally. Therefore, when the page authentication request initiated by the auxiliary equipment is forwarded locally, the physical address carried in the page authentication request can be replaced by the local physical address, so that the local physical address is actually carried in the page authentication request, and the local wireless network access is realized.
Fig. 3 is a flow diagram of a wireless network processing method in one embodiment. The present embodiment is mainly illustrated by applying the method to the auxiliary device 110 in fig. 1. Referring to fig. 3, the wireless network processing method specifically includes the following steps:
s302, the wireless network information is sent to the non-screen device, so that the non-screen device is connected with a wireless network according to the wireless network information.
Specifically, the auxiliary device may obtain and display a candidate wireless network identifier, detect a selection instruction for the currently displayed wireless network identifier, generate wireless network information corresponding to the wireless network identifier specified by the selection instruction, and send the generated wireless network information to the non-screen device, so that the non-screen device connects to the wireless network according to the wireless network information. In one embodiment, the auxiliary device may encrypt the wireless network information before sending the wireless network information, and then send the encrypted wireless network information to the non-screen device.
Wherein the selection instruction is an instruction to select a wireless network identifier. The selection instruction can be triggered by touch operation, pressing operation on a physical key, voice control operation or shaking operation sensed by a motion sensor in the terminal. The touch operation may be a touch-and-click operation, a touch long-press operation, a slide operation, a multi-touch operation, or the like. The selection instruction designates a wireless network to which the non-screen equipment needs to be connected, so that the auxiliary equipment can generate wireless network information corresponding to the wireless network identifier designated by the selection instruction and send the generated wireless network information to the non-screen equipment, and the non-screen equipment is connected with the wireless network according to the wireless network information.
In one embodiment, the auxiliary device may further provide an input control, and detect the wireless network identifier and the corresponding access credential input by the user through the input control, so as to generate wireless network information according to the wireless network identifier and the corresponding access credential, and send the wireless network information to the non-screen device, so that the non-screen device connects to the wireless network according to the wireless network information.
Fig. 4 shows an interface diagram for presenting candidate wireless network identifications in one embodiment. Referring to fig. 4, the interface includes selectable wireless network identifications 410 and input controls 420. The auxiliary device can detect the selection instruction for the wireless network identifier 410, generate wireless network information corresponding to the wireless network identifier specified by the selection instruction, and send the generated wireless network information to the non-screen device. The auxiliary device may also obtain the wireless network identifier and the corresponding access credential input in the input control 420, so as to generate wireless network information according to the wireless network identifier and the corresponding access credential, and send the wireless network information to the non-screen device.
S304, receiving access point information of a wireless access point created after the wireless device is connected with the wireless network.
S306, accessing the wireless access point according to the access point information.
S308, the page authentication request is sent through the wireless access point, so that the non-screen equipment is accessed to the wireless network according to the replaced page authentication request after the physical address carried in the page authentication request is replaced by the physical address of the non-screen equipment.
According to the wireless network processing method, the wireless network information is firstly sent to the wireless screen-free equipment to enable the wireless screen-free equipment to be connected with the wireless network, and then the wireless access point created after the wireless screen-free equipment is connected with the wireless network is accessed, so that the request initiated after the wireless access point is connected locally is forwarded by the wireless screen-free equipment. Therefore, when the non-screen equipment forwards the locally initiated page authentication request, the physical address carried in the page authentication request can be replaced by the physical address of the non-screen equipment, so that the physical address of the non-screen equipment is actually carried in the page authentication request, and the non-screen equipment is accessed into a wireless network.
In one embodiment, after accessing the wireless access point according to the access point information, the wireless network processing method further includes: initiating an access request aiming at a preset page link address; and when the access request is redirected to a page link address different from the preset page link address, generating a page authentication request.
The preset page link address is used for detecting a page connection address accessed by the wireless network in a page authentication mode. The preset page link address can be a uniformly set page link address or a page link address set by a device manufacturer for producing the non-screen device. The preset page link address is stored in the non-screen device and can be called by the non-screen device when needed. The access request is a request for access to a page connection address. In this embodiment, the access request is used to request access to a preset page link address.
In one embodiment, the preset page link address stored on the auxiliary device and the preset page link address stored on the non-screen device may be the same or different, but are both page connection addresses for detecting that the wireless network is accessed by using a page authentication method.
Specifically, after the auxiliary device accesses the wireless access point, a locally stored preset page link address is called, and an access request is initiated for the page link address. When the data packet which is received by the non-screen device and fed back according to the access request carries a keyword which indicates that authentication is not needed, the wireless network is judged to be accessed without adopting a page authentication mode, and at the moment, the non-screen device is accessed into the wireless network and can access the network. And when the access request is redirected to a page link address different from the preset page link address, generating a page authentication request.
In one embodiment, generating the page authentication request comprises: displaying an authentication page corresponding to the redirected page link address; acquiring authentication information input in an authentication page; and generating a page authentication request according to the acquired authentication information.
Specifically, the auxiliary device may display an authentication page corresponding to the redirected page link address, acquire authentication information input by the user in the authentication page, and package the acquired authentication information to generate a page authentication request.
FIG. 5 illustrates an interface diagram that illustrates an authentication page in one embodiment. The interface includes an authentication information input control 510 and a page authentication request initiation portal 520. The auxiliary device may acquire authentication information input through the authentication information input control 510 and generate a page authentication request according to the authentication information by detecting a trigger operation of the initiation entry 520 for the page authentication request.
In this embodiment, an interactive path with the user is provided by locally displaying the authentication page, so that the authentication information input by the user is obtained, and the authentication process is completed.
In the above embodiment, whether the wireless network is accessed by adopting a page authentication mode is detected through the preset page link address, so that when the access request is redirected to a page link address different from the preset page link address, a page authentication request is generated, the authentication process is completed locally, and the wireless network is accessed by the non-screen device.
Fig. 6 shows a schematic diagram of a wireless network access procedure in one embodiment. Referring to fig. 6, when the wireless device connects to the wireless network WLAN0 and the WLAN0 accesses in a page authentication manner, a wireless access point robot _ hotspot is created locally, and the wireless access point information of the wireless access point is sent to the auxiliary device, and the auxiliary device accesses the wireless access point robot _ hotspot and then initiates a page authentication request. The non-screen device receives a page authentication request sent by the auxiliary device through the wireless access point robot _ hotspot, replaces a physical address carried in the page authentication request with a local physical address, uploads the replaced page authentication request to the gateway device through the WLAN0, and then the gateway device uploads the replaced page authentication request to the authentication server.
FIG. 7 illustrates a timing diagram for interaction of an auxiliary device with a screenless device in one embodiment. The auxiliary equipment is used for realizing the wireless network processing method, and the non-screen equipment is used for realizing the wireless network access method.
The auxiliary equipment acquires wireless network information input by a user, encrypts the acquired wireless network information and sends the encrypted wireless network information to the screen-less equipment through Bluetooth. After the wireless network information is received by the non-screen equipment, the wireless network information is decrypted to obtain a wireless network identifier and a corresponding access certificate, and the decrypted access certificate is connected with a wireless network corresponding to the decrypted wireless network identifier.
The non-screen equipment can initiate an access request aiming at the preset page link address, and when the access request is redirected to a page link address different from the preset page link address, the wireless network connected to the current network is judged to be accessed in a page authentication mode. The non-screen equipment can acquire a first network address obtained after the non-screen equipment is connected to the wireless network, create a wireless access point locally, allocate a second network address to the wireless access point, and establish a routing relation between the wireless access point and the wireless network according to the first network address and the second network address. The wireless access point information of the wireless access point can be sent to the auxiliary equipment through the Bluetooth by the screen-free equipment.
The auxiliary equipment can access the wireless access point created by the non-screen equipment according to the received wireless access point information, and an access request is initiated aiming at the preset page link address. And when the access request is redirected to a page link address different from the preset page link address, displaying the authentication page corresponding to the redirected page link address. And then acquiring authentication information input by a user in the authentication page, and generating a page authentication request according to the acquired authentication information, so that the generated page authentication request is sent to the non-screen equipment through the wireless access point.
The non-screen equipment can replace the physical address carried in the page authentication request with a local physical address, access the wireless network according to the replaced page authentication request, and close the locally created wireless access point.
As shown in fig. 8, in one embodiment, a wireless network access device 800 is provided. Referring to fig. 8, the wireless network access apparatus 800 includes: a connection module 801, a creation module 802, a sending module 803, a receiving module 804, a replacement module 805, and an access module 806.
A connection module 801, configured to connect to a wireless network.
A creating module 802, configured to create a wireless access point locally when the wireless network accesses in a page authentication manner.
A sending module 803, configured to send access point information corresponding to the wireless access point to the auxiliary device, so that the auxiliary device accesses the wireless access point according to the access point information.
A receiving module 804, configured to receive, through the wireless access point, a page authentication request sent by the auxiliary device.
A replacing module 805, configured to replace the physical address carried in the page authentication request with a local physical address.
And an accessing module 806, configured to access the wireless network according to the replaced page authentication request.
When the wireless network currently connected to the wireless network needs to perform page authentication, the wireless access device 800 creates a wireless access point locally for the connection of the auxiliary device, so that the request initiated by the auxiliary device after connecting to the wireless access point is forwarded locally. Therefore, when the page authentication request initiated by the auxiliary equipment is forwarded locally, the physical address carried in the page authentication request can be replaced by the local physical address, so that the local physical address is actually carried in the page authentication request, and the local wireless network access is realized.
In one embodiment, the connection module 801 is further configured to receive wireless network information sent by the auxiliary device; analyzing the wireless network information to obtain a wireless network identifier and a corresponding access certificate; and connecting the wireless network corresponding to the wireless network identifier through the access certificate.
In one embodiment, the receiving module 804 is further configured to receive a page authentication request sent by an auxiliary device through a wireless access point routed to a wireless network. The access module 806 is further configured to send the replaced page authentication request through the wireless network, so as to access the wireless network after the replaced page authentication request is authenticated.
In one embodiment, the wireless network access apparatus 800 further includes: a routing module 807.
A routing module 807 configured to obtain a first network address obtained after connecting to a wireless network; after the wireless access point is created locally, a second network address is allocated to the wireless access point; and establishing a routing relation between the wireless access point and the wireless network according to the first network address and the second network address.
In one embodiment, the access module 806 is further configured to update the second network address at the source network address field to the first network address in the page authentication request; and sending the updated page authentication request through the first network address.
As shown in fig. 9, in one embodiment, the wireless network access apparatus 800 further includes: a routing module 807 and a detection module 808.
A detection module 808, configured to initiate an access request for a preset page link address; and when the access request is redirected to a page link address different from the preset page link address, judging that the wireless network is accessed by adopting a page authentication mode.
As shown in fig. 10, in one embodiment, a wireless network processing device 1000 is provided. Referring to fig. 10, the wireless network processing apparatus 1000 includes: an information sending module 1001, a receiving module 1002, an access module 1003 and a request sending module 1004.
The information sending module 1001 is configured to send wireless network information to the non-screen device, so that the non-screen device connects to a wireless network according to the wireless network information.
A receiving module 1002, configured to receive access point information of a wireless access point created after the wireless device connects to a wireless network.
An accessing module 1003, configured to access the wireless access point according to the access point information.
The request sending module 1004 is configured to send a page authentication request through a wireless access point, so that after a physical address carried in the page authentication request is replaced by the physical address of the non-screen device, the non-screen device accesses the wireless network according to the replaced page authentication request.
The wireless network processing apparatus 1000 sends the wireless network information to the wireless device to enable the wireless device to connect to the wireless network, and then accesses the wireless access point created by the wireless device after connecting to the wireless network, so that the request initiated after connecting to the wireless access point locally is forwarded by the wireless device. Therefore, when the non-screen equipment forwards the locally initiated page authentication request, the physical address carried in the page authentication request can be replaced by the physical address of the non-screen equipment, so that the physical address of the non-screen equipment is actually carried in the page authentication request, and the non-screen equipment is accessed into a wireless network.
As shown in fig. 11, in one embodiment, the wireless network processing apparatus 1000 further includes: a request generation module 1005.
A request generating module 1005, configured to initiate an access request for a preset page link address; and when the access request is redirected to a page link address different from the preset page link address, generating a page authentication request.
In one embodiment, the request generating module 1005 is further configured to display an authentication page corresponding to the redirected page link address; acquiring authentication information input in an authentication page; and generating a page authentication request according to the acquired authentication information.
FIG. 12 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be the screenless device 120 in fig. 1. As shown in fig. 12, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the wireless network access method. The internal memory may also have stored therein a computer program that, when executed by the processor, causes the processor to perform a wireless network access method. Those skilled in the art will appreciate that the architecture shown in fig. 12 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the wireless network access apparatus provided in the present application may be implemented in a form of a computer program, the computer program may be executed on a computer device as shown in fig. 12, and a non-volatile storage medium of the computer device may store various program modules that constitute the wireless network access apparatus, such as the connection module 801, the creation module 802, the transmission module 803, the reception module 804, the replacement module 805, the access module 806, and the like shown in fig. 8. The computer program comprised of the respective program modules causes the processor to execute the steps in the wireless network access method of the respective embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 12 may connect to a wireless network through the connection module 801 in the wireless network access apparatus 800 shown in fig. 8. When the wireless network is accessed by adopting a page authentication mode, the creating module 802 creates a wireless access point locally. The access point information corresponding to the wireless access point is sent to the auxiliary device through the sending module 803, so that the auxiliary device accesses the wireless access point according to the access point information. The page authentication request sent by the auxiliary device is received through the wireless access point by the receiving module 804. The physical address carried in the page authentication request is replaced with a local physical address by the replacement module 805. The wireless network is accessed by the access module 806 according to the replaced page authentication request.
Fig. 13 is a diagram showing an internal structure of a computer device in another embodiment. The computer device may specifically be the auxiliary device 110 in fig. 1. As shown in fig. 13, the computer apparatus includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the wireless network processing method. The internal memory may also have stored therein a computer program that, when executed by the processor, causes the processor to perform a wireless network processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like. Those skilled in the art will appreciate that the architecture shown in fig. 13 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the wireless network processing apparatus provided in the present application may be implemented in a form of a computer program, the computer program may be run on a computer device shown in fig. 13, and a nonvolatile storage medium of the computer device may store various program modules constituting the wireless network processing apparatus, such as an information sending module 1001, a receiving module 1002, an access module 1003, a request sending module 1004 and the like shown in fig. 11. The computer program comprised of the respective program modules causes the processor to execute the steps in the wireless network processing method of the respective embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 13 may transmit wireless network information to the non-screen device through the information transmitting module 1001 in the wireless network processing apparatus 1000 shown in fig. 10, so that the non-screen device connects to the wireless network according to the wireless network information. The access point information of the wireless access point created by the wireless device after connecting to the wireless network is received through the receiving module 1002. The wireless access point is accessed through the access module 1003 according to the access point information. The request sending module 1004 sends the page authentication request through the wireless access point, so that the non-screen device accesses the wireless network according to the replaced page authentication request after replacing the physical address carried in the page authentication request with the physical address of the non-screen device.
In one embodiment, a computer readable storage medium is provided, having a computer program stored thereon, which, when executed by a processor, causes the processor to perform the steps of: connecting a wireless network; when a wireless network is accessed in a page authentication mode, a wireless access point is established locally; sending access point information corresponding to the wireless access point to the auxiliary equipment so that the auxiliary equipment can be accessed to the wireless access point according to the access point information; receiving a page authentication request sent by auxiliary equipment through a wireless access point; replacing the physical address carried in the page authentication request with a local physical address; and accessing the wireless network according to the replaced page authentication request.
In one embodiment, connecting to a wireless network comprises: receiving wireless network information sent by auxiliary equipment; analyzing the wireless network information to obtain a wireless network identifier and a corresponding access certificate; and connecting the wireless network corresponding to the wireless network identifier through the access certificate.
In one embodiment, receiving a page authentication request sent by an auxiliary device through a wireless access point comprises: and receiving the page authentication request sent by the auxiliary equipment through routing to a wireless access point of the wireless network. Accessing the wireless network according to the replaced page authentication request, comprising: and sending the replaced page authentication request through the wireless network so as to access the wireless network after the replaced page authentication request passes the authentication.
In one embodiment, the computer program causes the processor to perform the following steps after connecting to the wireless network: and acquiring a first network address acquired after the wireless network is connected. After the wireless access point is created locally, a second network address is allocated to the wireless access point; and establishing a routing relation between the wireless access point and the wireless network according to the first network address and the second network address.
In one embodiment, sending the replaced page authentication request over the wireless network comprises: updating the second network address at the source network address field to the first network address in the page authentication request; and sending the updated page authentication request through the first network address.
In one embodiment, the computer program causes the processor to perform the following steps after connecting to the wireless network: initiating an access request aiming at a preset page link address; and when the access request is redirected to a page link address different from the preset page link address, judging that the wireless network is accessed by adopting a page authentication mode.
The storage medium establishes the wireless access point locally for the connection of the auxiliary equipment when the page authentication is needed for the wireless network currently connected locally, so that the request initiated by the auxiliary equipment after the auxiliary equipment is connected to the wireless access point is forwarded locally. Therefore, when the page authentication request initiated by the auxiliary equipment is forwarded locally, the physical address carried in the page authentication request can be replaced by the local physical address, so that the local physical address is actually carried in the page authentication request, and the local wireless network access is realized.
In one embodiment, a computer readable storage medium is provided, having a computer program stored thereon, which, when executed by a processor, causes the processor to perform the steps of: sending the wireless network information to the non-screen equipment so that the non-screen equipment is connected with a wireless network according to the wireless network information; receiving access point information of a wireless access point created after the wireless equipment is connected with a wireless network; accessing a wireless access point according to the access point information; and sending a page authentication request through the wireless access point, so that the non-screen equipment is accessed to the wireless network according to the replaced page authentication request after replacing the physical address carried in the page authentication request with the physical address of the non-screen equipment.
In one embodiment, the computer program causes the processor to perform the following further steps after accessing the wireless access point according to the access point information: initiating an access request aiming at a preset page link address; and when the access request is redirected to a page link address different from the preset page link address, generating a page authentication request.
In one embodiment, generating the page authentication request comprises: displaying an authentication page corresponding to the redirected page link address; acquiring authentication information input in an authentication page; and generating a page authentication request according to the acquired authentication information.
The storage medium firstly sends the wireless network information to the non-screen equipment to enable the non-screen equipment to be connected with the wireless network, and then accesses the wireless access point created after the non-screen equipment is connected with the wireless network, so that the request initiated after the local connection with the wireless access point is forwarded by the non-screen equipment. Therefore, when the non-screen equipment forwards the locally initiated page authentication request, the physical address carried in the page authentication request can be replaced by the physical address of the non-screen equipment, so that the physical address of the non-screen equipment is actually carried in the page authentication request, and the non-screen equipment is accessed into a wireless network.
In one embodiment, there is provided a computer device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of: connecting a wireless network; when a wireless network is accessed in a page authentication mode, a wireless access point is established locally; sending access point information corresponding to the wireless access point to the auxiliary equipment so that the auxiliary equipment can be accessed to the wireless access point according to the access point information; receiving a page authentication request sent by auxiliary equipment through a wireless access point; replacing the physical address carried in the page authentication request with a local physical address; and accessing the wireless network according to the replaced page authentication request.
In one embodiment, connecting to a wireless network comprises: receiving wireless network information sent by auxiliary equipment; analyzing the wireless network information to obtain a wireless network identifier and a corresponding access certificate; and connecting the wireless network corresponding to the wireless network identifier through the access certificate.
In one embodiment, receiving a page authentication request sent by an auxiliary device through a wireless access point comprises: and receiving the page authentication request sent by the auxiliary equipment through routing to a wireless access point of the wireless network. Accessing the wireless network according to the replaced page authentication request, comprising: and sending the replaced page authentication request through the wireless network so as to access the wireless network after the replaced page authentication request passes the authentication.
In one embodiment, the computer program causes the processor to perform the following steps after connecting to the wireless network: and acquiring a first network address acquired after the wireless network is connected. After the wireless access point is created locally, a second network address is allocated to the wireless access point; and establishing a routing relation between the wireless access point and the wireless network according to the first network address and the second network address.
In one embodiment, sending the replaced page authentication request over the wireless network comprises: updating the second network address at the source network address field to the first network address in the page authentication request; and sending the updated page authentication request through the first network address.
In one embodiment, the computer program causes the processor to perform the following steps after connecting to the wireless network: initiating an access request aiming at a preset page link address; and when the access request is redirected to a page link address different from the preset page link address, judging that the wireless network is accessed by adopting a page authentication mode.
When the wireless network connected to the local area needs to perform page authentication, the computer device creates a wireless access point locally for the connection of the auxiliary device, so that the request initiated by the auxiliary device after the auxiliary device is connected to the wireless access point is forwarded locally. Therefore, when the page authentication request initiated by the auxiliary equipment is forwarded locally, the physical address carried in the page authentication request can be replaced by the local physical address, so that the local physical address is actually carried in the page authentication request, and the local wireless network access is realized.
In one embodiment, there is provided a computer device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of: sending the wireless network information to the non-screen equipment so that the non-screen equipment is connected with a wireless network according to the wireless network information; receiving access point information of a wireless access point created after the wireless equipment is connected with a wireless network; accessing a wireless access point according to the access point information; and sending a page authentication request through the wireless access point, so that the non-screen equipment is accessed to the wireless network according to the replaced page authentication request after replacing the physical address carried in the page authentication request with the physical address of the non-screen equipment.
In one embodiment, the computer program causes the processor to perform the following further steps after accessing the wireless access point according to the access point information: initiating an access request aiming at a preset page link address; and when the access request is redirected to a page link address different from the preset page link address, generating a page authentication request.
In one embodiment, generating the page authentication request comprises: displaying an authentication page corresponding to the redirected page link address; acquiring authentication information input in an authentication page; and generating a page authentication request according to the acquired authentication information.
The computer equipment firstly sends the wireless network information to the non-screen equipment to enable the non-screen equipment to be connected with the wireless network, and then accesses the wireless access point established by the non-screen equipment after being connected with the wireless network, so that the request initiated after the local connection with the wireless access point is forwarded by the non-screen equipment. Therefore, when the non-screen equipment forwards the locally initiated page authentication request, the physical address carried in the page authentication request can be replaced by the physical address of the non-screen equipment, so that the physical address of the non-screen equipment is actually carried in the page authentication request, and the non-screen equipment is accessed into a wireless network.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), and the like.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only show some embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (18)

1. A wireless network access method, performed in a wireless device, the method comprising:
receiving a wireless network identifier sent by auxiliary equipment for pre-establishing Bluetooth connection, and connecting a wireless network corresponding to the wireless network identifier; or calling an image acquisition device to acquire a graphic code which is displayed by auxiliary equipment with a Bluetooth connection established in advance and is generated according to a wireless network identifier, and connecting a wireless network corresponding to the wireless network identifier;
acquiring a first network address acquired after the wireless network is connected;
when the wireless network is accessed by adopting a portal authentication mode, a wireless access point is established locally;
assigning a second network address to the wireless access point;
establishing a routing relation between the wireless access point and the wireless network according to the first network address and the second network address;
sending access point information corresponding to the wireless access point to the auxiliary equipment based on a Bluetooth technology so that the auxiliary equipment can access the wireless access point according to the access point information;
receiving a page authentication request sent by the auxiliary equipment through the wireless access point; the page authentication request is obtained by initiating an access request aiming at a preset page link address after the auxiliary equipment is accessed to the wireless access point, and generating authentication information acquired through an authentication page after the authentication page corresponding to the redirected page link address is displayed;
replacing the physical address carried in the page authentication request with a local physical address;
and accessing the wireless network according to the replaced page authentication request.
2. The method of claim 1, further comprising:
receiving wireless network information sent by the auxiliary equipment;
analyzing the wireless network information to obtain a wireless network identifier and a corresponding access certificate;
and connecting the wireless network corresponding to the wireless network identifier through the access certificate.
3. The method of claim 1, wherein the receiving, by the wireless access point, the page authentication request sent by the secondary device comprises:
receiving a page authentication request sent by the auxiliary equipment through a wireless access point routed to the wireless network;
the accessing the wireless network according to the replaced page authentication request comprises:
and sending the replaced page authentication request through the wireless network so as to access the wireless network after the replaced page authentication request passes authentication.
4. The method of claim 3, wherein the sending the replaced page authentication request over the wireless network comprises:
updating a second network address at a source network address field to the first network address in the page authentication request;
and sending the updated page authentication request through the first network address.
5. The method according to any one of claims 1 to 4, wherein after the connecting to the wireless network, the method further comprises:
initiating an access request aiming at a preset page link address;
and when the access request is redirected to a page link address different from the preset page link address, judging that the wireless network is accessed by adopting a portal authentication mode.
6. A wireless network processing method, comprising:
transmitting wireless network information to a non-screen device which is pre-established with Bluetooth connection based on a Bluetooth technology so that the non-screen device is connected with a wireless network according to the wireless network information; or displaying the graphic code generated according to the wireless network identifier to the non-screen equipment, and connecting the wireless network corresponding to the wireless network identifier after the non-screen equipment acquires the graphic code by calling the image acquisition equipment; the wireless network is accessed by adopting a portal authentication mode;
receiving access point information of a wireless access point created after the wireless equipment is connected with a wireless network based on a Bluetooth technology; the wireless access point establishes a routing relation between the wireless access point and the wireless network through a second network address distributed by the non-screen equipment and a first network address obtained after the non-screen equipment is connected with the wireless network;
accessing the wireless access point according to the access point information;
sending a page authentication request through the wireless access point, so that the non-screen equipment is accessed to the wireless network according to the replaced page authentication request after replacing a physical address carried in the page authentication request with the physical address of the non-screen equipment;
the page authentication request is obtained by initiating an access request aiming at a preset page link address after accessing the wireless access point, and generating authentication information acquired through an authentication page after displaying the authentication page corresponding to the redirected page link address.
7. The method of claim 6, wherein after the accessing the wireless access point according to the access point information, the method further comprises:
initiating an access request aiming at a preset page link address;
and when the access request is redirected to a page link address different from the preset page link address, generating a page authentication request.
8. The method of claim 7, wherein generating a page authentication request comprises:
displaying the authentication page corresponding to the redirected page link address;
acquiring authentication information input in the authentication page;
and generating a page authentication request according to the acquired authentication information.
9. A wireless network access device, which is arranged in a non-screen device, the device comprises:
the connection module is used for receiving a wireless network identifier sent by auxiliary equipment for pre-establishing Bluetooth connection and connecting a wireless network corresponding to the wireless network identifier; or calling an image acquisition device to acquire a graphic code which is displayed by auxiliary equipment with a Bluetooth connection established in advance and is generated according to a wireless network identifier, and connecting a wireless network corresponding to the wireless network identifier;
the creation module is used for creating a wireless access point locally when the wireless network is accessed by adopting a portal authentication mode;
a sending module, configured to send access point information corresponding to the wireless access point to the auxiliary device based on a bluetooth technology, so that the auxiliary device accesses the wireless access point according to the access point information;
a receiving module, configured to receive, through the wireless access point, a page authentication request sent by the auxiliary device; the page authentication request is obtained by initiating an access request aiming at a preset page link address after the auxiliary equipment is accessed to the wireless access point, and generating authentication information acquired through an authentication page after the authentication page corresponding to the redirected page link address is displayed;
the replacing module is used for replacing the physical address carried in the page authentication request with a local physical address;
the access module is used for accessing the wireless network according to the replaced page authentication request;
the routing module is used for acquiring a first network address acquired after the wireless network is connected; assigning a second network address to a wireless access point after the wireless access point is created locally; and establishing a routing relation between the wireless access point and the wireless network according to the first network address and the second network address.
10. The apparatus of claim 9, wherein the connection module is further configured to receive wireless network information sent by an auxiliary device; analyzing the wireless network information to obtain a wireless network identifier and a corresponding access certificate; and connecting the wireless network corresponding to the wireless network identifier through the access certificate.
11. The apparatus of claim 9, wherein the receiving module is further configured to receive a page authentication request sent by the secondary device through a wireless access point routed to the wireless network;
the access module is further configured to send the replaced page authentication request through the wireless network, so as to access the wireless network after the replaced page authentication request passes authentication.
12. The apparatus of claim 11, wherein the access module is further configured to update a second network address at a source network address field to the first network address in the page authentication request; and sending the updated page authentication request through the first network address.
13. The apparatus according to any one of claims 9-12, wherein the apparatus further comprises:
the detection module is used for initiating an access request aiming at a preset page link address; and when the access request is redirected to a page link address different from the preset page link address, judging that the wireless network is accessed by adopting a portal authentication mode.
14. A wireless network processing apparatus, comprising:
the information sending module is used for sending wireless network information to the non-screen equipment with the Bluetooth connection established in advance based on the Bluetooth technology so as to enable the non-screen equipment to be connected with a wireless network according to the wireless network information; or displaying the graphic code generated according to the wireless network identifier to the non-screen equipment, and connecting the wireless network corresponding to the wireless network identifier after the non-screen equipment acquires the graphic code by calling the image acquisition equipment; the wireless network is accessed by adopting a portal authentication mode;
the receiving module is used for receiving access point information of a wireless access point created after the wireless equipment is connected with a wireless network based on a Bluetooth technology; the wireless access point establishes a routing relation between the wireless access point and the wireless network through a second network address distributed by the non-screen equipment and a first network address obtained after the non-screen equipment is connected with the wireless network;
the access module is used for accessing the wireless access point according to the access point information;
the request sending module is used for sending a page authentication request through the wireless access point so that the non-screen equipment is accessed to the wireless network according to the replaced page authentication request after replacing a physical address carried in the page authentication request with the physical address of the non-screen equipment;
the page authentication request is obtained by initiating an access request aiming at a preset page link address after accessing the wireless access point, and generating authentication information acquired through an authentication page after displaying the authentication page corresponding to the redirected page link address.
15. The apparatus of claim 14, further comprising:
the request generation module is used for initiating an access request aiming at a preset page link address; and when the access request is redirected to a page link address different from the preset page link address, generating a page authentication request.
16. The apparatus according to claim 15, wherein the request generation module is further configured to display an authentication page corresponding to the redirected page link address; acquiring authentication information input in the authentication page; and generating a page authentication request according to the acquired authentication information.
17. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 8.
18. A computer device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 8.
CN201710931318.5A 2017-10-09 2017-10-09 Wireless network access method, wireless network processing device, storage medium and computer equipment Active CN109640374B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710931318.5A CN109640374B (en) 2017-10-09 2017-10-09 Wireless network access method, wireless network processing device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710931318.5A CN109640374B (en) 2017-10-09 2017-10-09 Wireless network access method, wireless network processing device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN109640374A CN109640374A (en) 2019-04-16
CN109640374B true CN109640374B (en) 2021-07-06

Family

ID=66051174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710931318.5A Active CN109640374B (en) 2017-10-09 2017-10-09 Wireless network access method, wireless network processing device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN109640374B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111194035B (en) * 2019-12-18 2022-02-01 腾讯科技(深圳)有限公司 Network connection method, device and storage medium
CN111194070B (en) * 2019-12-24 2021-08-31 腾讯科技(深圳)有限公司 Wireless network processing and access method, device, system, storage medium and equipment
CN113709086B (en) * 2020-05-22 2023-07-18 深圳市万普拉斯科技有限公司 Network detection method, device, electronic equipment and storage medium
CN112087819B (en) * 2020-09-10 2022-05-10 上海连尚网络科技有限公司 Information request method, equipment and computer readable medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106921675A (en) * 2017-03-30 2017-07-04 北京奇艺世纪科技有限公司 The method and apparatus that a kind of Intelligent hardware accesses limited network

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2373073B1 (en) * 2008-12-26 2016-11-09 Panasonic Intellectual Property Corporation of America Communication device
TWI479906B (en) * 2011-05-20 2015-04-01 Wistron Corp Authentication method for network connection and network device and network authentication system using the same method
CN102857915B (en) * 2012-08-23 2015-08-19 深圳雷柏科技股份有限公司 Electronic equipment, intelligent terminal and the authentication method with wireless router
US9521589B2 (en) * 2012-10-29 2016-12-13 Lg Electronics Inc. Wi-Fi direct service method using NFC and device therefor
JP6009682B2 (en) * 2012-10-29 2016-10-19 ▲華▼▲為▼終端有限公司Huawei Device Co., Ltd. Method and terminal for establishing a communication connection
JP6299097B2 (en) * 2013-07-22 2018-03-28 株式会社リコー Information processing system, information processing method, program, and recording medium
US9560524B1 (en) * 2013-12-03 2017-01-31 Sprint Communications Company L.P. Wireless network application access by a wireless communication device via an untrusted access node
CN104980412B (en) * 2014-04-14 2018-07-13 阿里巴巴集团控股有限公司 A kind of applications client, server-side and corresponding portal authentication method
CN104994129A (en) * 2015-05-15 2015-10-21 西安交通大学 Smart home communication system and method equipped with Web Service functions
CN105050083B (en) * 2015-05-25 2019-02-15 深圳锋芒信息技术有限公司 A kind of network collocating method and system of smart machine
CN105101206B (en) * 2015-06-26 2018-06-19 中国联合网络通信集团有限公司 A kind of WIFI of equipment automatically accesses method and system
CN105871595A (en) * 2016-03-24 2016-08-17 浙江风向标科技有限公司 Configuration method and configuration system of WiFi device
CN106535187B (en) * 2016-10-27 2020-02-04 上海斐讯数据通信技术有限公司 Intelligent household equipment access method and system based on wireless routing terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106921675A (en) * 2017-03-30 2017-07-04 北京奇艺世纪科技有限公司 The method and apparatus that a kind of Intelligent hardware accesses limited network

Also Published As

Publication number Publication date
CN109640374A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
US10623954B2 (en) AP connection method, terminal, and server
CN109640374B (en) Wireless network access method, wireless network processing device, storage medium and computer equipment
CN107302539B (en) Electronic identity registration and authentication login method and system
US8763101B2 (en) Multi-factor authentication using a unique identification header (UIDH)
KR101383761B1 (en) User authentication system and method thereof
WO2017000830A1 (en) Cross-terminal login-free method and device
CN104468531A (en) Authorization method, device and system for sensitive data
EP3419251B1 (en) User position verification method, controlled device access method, controlled device and user terminal
CN113079134B (en) Mobile terminal access method, mobile terminal access device, computer equipment and medium
CN104144419A (en) Identity authentication method, device and system
CN107086979B (en) User terminal verification login method and device
CN103067397A (en) Security authentication method, access gateway and authentication server of desktop cloud system
US10192042B2 (en) User verifying method, terminal device, server and storage medium
CN112559993A (en) Identity authentication method, device and system and electronic equipment
CN112073289B (en) Instant messaging control method and device
CN109286933B (en) Authentication method, device, system, computer equipment and storage medium
CN110661788A (en) Login authentication management system, login method, login device, equipment and storage medium
CN105992204A (en) Access authentication method of applications of mobile intelligent terminal and device
CN108809969B (en) Authentication method, system and device
KR101027228B1 (en) User-authentication apparatus for internet security, user-authentication method for internet security, and recorded medium recording the same
CN104618356B (en) Auth method and device
CN111769969A (en) Terminal configuration method and device based on two-dimensional code and computer equipment
CN108418809B (en) Chat data processing method and device, computer equipment and storage medium
CN105141624A (en) Login method, account management server and client system
CN107534859B (en) Network authentication method, client, terminal equipment and platform

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