CN112740762A - Wireless fidelity Wi-Fi access method and device, electronic equipment and storage medium - Google Patents

Wireless fidelity Wi-Fi access method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112740762A
CN112740762A CN201880097757.3A CN201880097757A CN112740762A CN 112740762 A CN112740762 A CN 112740762A CN 201880097757 A CN201880097757 A CN 201880097757A CN 112740762 A CN112740762 A CN 112740762A
Authority
CN
China
Prior art keywords
pppoe
mode
configuration
client
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201880097757.3A
Other languages
Chinese (zh)
Inventor
林进全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN112740762A publication Critical patent/CN112740762A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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)
  • Telephonic Communication Services (AREA)

Abstract

The application relates to a wireless fidelity Wi-Fi access method which is applied to a client side and comprises the following steps: receiving a wireless local area network starting command, and searching for an alternative network in the wireless local area network; selecting and confirming an access network in the alternative network, and selecting a preset configuration Internet Protocol (IP) mode for the access network to configure an IP address of the access network, wherein the preset configuration IP mode comprises the following steps: a static IP configuration mode, a dynamic IP configuration mode and a point-to-point communication protocol PPPoE configuration mode based on Ethernet; detecting that the configuration IP mode is a PPPoE configuration mode, and popping up an account information input box of a user to acquire account information input by the user; and performing PPPoE authentication according to the input account information, and establishing connection with the access network. In this application introduces the electronic equipment with PPPoE access mode, high security and the simple wiFi access mode of configuration have widened electronic equipment WiFi access mode, promote user experience.

Description

Wireless fidelity Wi-Fi access method and device, electronic equipment and storage medium Technical Field
The invention relates to the technical field of wireless network communication, in particular to a wireless fidelity Wi-Fi access method and device, electronic equipment and a storage medium.
Background
At present, the wifi access mode of the mobile phone device only includes two access modes of Dynamic Host Configuration Protocol (DHCP) and Static IP configuration, for a hotspot needing authentication, after the hotspot is connected, a browser is automatically started to pop up an authentication page, and a user can input an account password in the browser to perform authentication login. However, the static IP configuration allocates a fixed IP address to each computer, so that it is easy for an address allocated by a valid user to be illegally stolen, which not only affects the normal use of the network, but also easily causes loss and potential safety hazard to the valid user because the stolen address often has higher authority. The DHCP server with dynamic IP configuration has no limitation to the access of users, and any computer can obtain correct network configuration through the DHCP server after networking, thereby accessing the network. Illegal users can easily enter the internal network, and potential safety hazards are brought. Especially, when the DHCP server is impersonated, the DHCP server cannot find out the leased IP address, which causes network confusion.
Disclosure of Invention
Based on this, there is a need to provide a Wi-Fi access method, an apparatus, an electronic device and a storage medium with high security and simple configuration for a client.
The embodiment of the application provides a wireless fidelity Wi-Fi access method, which is applied to a client and comprises the following steps: receiving a wireless local area network starting command, and searching for an alternative network in the wireless local area network; selecting and confirming an access network in the alternative network, and selecting a preset configuration Internet Protocol (IP) mode for the access network to configure an IP address of the access network, wherein the preset configuration IP mode comprises the following steps: a static IP configuration mode, a dynamic IP configuration mode and a point-to-point communication protocol PPPoE configuration mode based on Ethernet; detecting that the configuration IP mode is a PPPoE configuration mode, and popping up an account information input box of a user to acquire account information input by the user; and performing PPPoE authentication according to the input account information, and establishing connection with the access network.
An embodiment of the present application further provides a device for Wi-Fi access, where the device includes: the system comprises a network searching module, a configuration IP module, an input module and a connection module; the network searching module is used for receiving a wireless local area network starting command and searching for an alternative network in the wireless local area network; an IP configuration module, configured to select and confirm an access network from the candidate networks, and select a preset IP configuration mode for the access network to configure an IP address of the access network, where the preset IP configuration mode includes: a static IP configuration mode, a dynamic IP configuration mode and a point-to-point communication protocol PPPoE configuration mode based on Ethernet; the input module is used for detecting that the configuration IP mode is a PPPoE configuration mode and popping up an account information input box of a user to acquire account information input by the user; and the connection module is used for performing PPPoE authentication according to the input account information and establishing connection with the access network.
An embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the wireless fidelity Wi-Fi access method.
An embodiment of the present application further provides a computer-readable non-transitory storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the Wi-Fi access method as described above.
When the electronic equipment and the computer readable storage medium realize the method, detecting that the configuration IP mode is a PPPoE configuration mode, and popping up an account information input box of a user to acquire account information input by the user; and performing PPPoE authentication according to the input account information, and establishing connection with the access network. In this application introduces the electronic equipment with PPPoE access mode, high security and the simple wiFi access mode of configuration have widened electronic equipment WiFi access mode, promote user experience.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings of the embodiments can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow diagram of a Wi-Fi access method in one embodiment;
FIG. 2 is a block diagram of a Wi-Fi access device in an embodiment;
FIG. 3 is a schematic diagram of an internal structure of an electronic device according to an embodiment;
fig. 4 is a block diagram of a partial structure of an electronic device related to a computer device provided in an embodiment of the present application.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
An embodiment of the present application provides a wireless fidelity Wi-Fi access method, which is applied to a client, and as shown in fig. 1, the method includes:
s101, receiving a wireless local area network starting command, and searching for an alternative network in the wireless local area network;
the electronic device can monitor the receiving behavior of the wlan open command of the application program through a built-in monitoring function (listen ()), for example, taking the electronic device of the android system as an example, a system-level monitoring module can be created in a system framework layer (native/frame layer), the wlan open command behavior of the application program is monitored through the monitoring module, or a monitoring process is created independently, and whether the wlan is open or not is monitored through a message transmission mechanism. For example, a monitoring module can be set up in a framework layer and run in a system service program (system _ server), and because the monitoring module is set up in a service framework layer of a system level, interaction with other system services can be facilitated without worrying about the authority problem when the system is called. In addition, an independent monitoring process can be created, an independent monitoring function is set and called in the process, the process can be set to be started up automatically, the command receiving line and the command inquiring line of any other application program are monitored in real time, and specifically, data information and an opening state identifier of a currently called wireless local area network interface can be captured in real time, so that whether a wireless local area network opening command is received currently or not is determined, independent development can be achieved, coupling with a system is avoided, and subsequent development and upgrading are facilitated.
The power consumption of the electronic product Wi-Fi is large. Thus, the upper layer application sets a switch for turning on and off the Wi-Fi function. When a user clicks on the mobile phone to open the Wi-Fi, the Wi-Fi module is powered on to run, and certainly, a driver of the Wi-Fi is loaded correspondingly. And monitoring a wireless local area network starting command by using a monitoring function (listen ()), namely indicating that the Wi-Fi function is started, displaying and searching nearby Wi-Fi hotspots by the electronic product, and Scanning (Scanning). Wireless networks are found using the scan and then joined to the alternate network. In the process of accessing the network, an Access Point (AP) sends a beacon frame to a mobile terminal, where the beacon frame may include a Service Set Identifier (SSID) of the network, and a user may select a wireless local area network that the user can join according to the SSID. SSID is actually a parameter carried by an Access Point (Access Point) in response to a station scan, and other network parameters include a Media Access Control (MAC) Address, signal strength, encryption and authentication methods, and the like of the Access Point. It needs to be pointed out that when the Wi-Fi alternative network is scanned for network detection, if it is detected that the network cannot be accessed within the preset time, other alternative network detection is triggered. The preset time is set according to the Wi-Fi alternative network scanning detection process, and the specific time can be set by an engineer according to hardware parameters or a software algorithm, which is not described herein again.
S102, selecting and confirming an access network from the alternative networks, selecting a preset configuration Internet Protocol (IP) mode for the access network to configure an IP address of the access network, wherein the preset configuration IP mode comprises the following steps: static IP configuration mode, dynamic IP configuration mode and Point-to-Point protocol over Ethernet (PPPoE) configuration mode based on Ethernet. It should be noted that, the selection manner for configuring the IP manner of the internet protocol may be to automatically select the preset configuration IP manner according to the priority policy of the IP configuration manner. Setting the priority policy may be: the priority of the dynamic IP configuration mode is higher than that of the PPPoE configuration IP mode; the priority of the PPPoE configuration IP mode is higher than that of the static IP configuration mode. Wherein the modification authority of the priority policy can be provided for the user. The user can modify the priority policy according to personal requirements.
In a WIreless local area network, an electronic device communicates based on a WIreless-FIdelity (Wi-Fi) protocol, and in a process of accessing a network, an Access Point (AP) sends a beacon frame to a mobile terminal, where the beacon frame may include a Service Set Identifier (SSID) of the network, and a user may select a WIreless local area network that the user can join according to the SSID.
The static IP configuration is a static IP address set by a user for the electronic device according to the characteristics of the IP address of the router, and the address cannot be changed due to device restart or router restart. The Dynamic IP Configuration is automatically assigned by a Dynamic Host Configuration Protocol (DHCP) server, and the DHCP is a network Protocol of a local area network and works using a UDP Protocol. The DHCP protocol allows the server to dynamically assign IP addresses and configuration information to clients. The DHCP protocol supports a C/S structure and is mainly divided into a client and a server. The IP address allocated by the DHCP server is influenced by the address lease and the equipment state, after the lease expires, the IP address is recovered by the DHCP server, and the IP address is reallocated by the DHCP server due to the equipment restart, the router restart or the network re-access.
The PPPoE configuration mode has higher cost performance, is widely adopted in a series of applications including cell networking construction and the like, and the current popular broadband access mode such as Asymmetric Digital Subscriber Line (ADSL) uses a PPPoE protocol. PPPoE uses Ethernet to form a network with a large number of hosts, and connects to the Internet through a remote access device, and realizes control and charging functions for each host. Computers accessing the internet in the ADSL mode are mostly connected to the internet through an Ethernet card (Ethernet). The same is used with the ordinary TCP/IP method, and no new protocol is added. The dial-up networking of the modem uses a Point-to-Point Protocol (PPP) which has the functions of user authentication and IP address notification. The PPP over Ethernet (PPPoE) protocol is a technique for relaying PPP frame information in an Ethernet network, and is particularly suitable for ADSL and other systems.
The priority policy of the IP configuration may be automatically selected, mainly involving a jump from high priority to low priority, and includes, for example: in both cases, the number of the first and second cases,
first, the current IP configuration mode is automatically selected as the dynamic IP configuration mode, but the DHCP server cannot allocate the dynamic IP and automatically switches to the PPPoE configuration IP mode. The method comprises the following specific steps: detecting that the IP configuration mode is automatically selected as a dynamic IP configuration mode; and configuring a DHCP protocol according to the dynamic host, and directly switching the IP configuration mode of the client to the PPPoE mode if detecting that the physical network interface connecting end of the client does not have a DHCP server. Or, detecting that the IP configuration mode is automatically selected as a dynamic IP configuration mode; configuring a DHCP protocol according to a dynamic host, detecting that the DHCP server exists at the connection end of the physical network interface, further detecting whether a DHCP session is established between the physical network interface and the DHCP server, and finding that a call is not established between the physical network interface and the DHCP server; the IP configuration mode of the client is switched to the PPPoE mode.
Secondly, the current IP configuration mode is automatically selected as a PPPoE configuration mode, but the PPPoE server can not distribute dynamic IP and automatically switches to a static configuration IP mode. The method comprises the following specific steps: detecting that the IP configuration mode is automatically selected to be a PPPoE mode; according to the PPPOE protocol, detecting that a PPPOE server does not exist at a physical network interface connecting end of a client, and switching an IP configuration mode of the client to a static IP configuration mode. Or, detecting that the IP configuration mode is automatically selected to be a PPPoE mode; detecting whether a PPPoE server exists at the physical network interface connecting end according to a PPPoE protocol, and detecting whether a PPPoE session is established between the physical network interface and the PPPoE server; and if the call is not established, switching the IP configuration mode of the client to the static IP configuration mode.
It should be noted that, if the priority policy is a priority policy set by the user, for example: the priority of the PPPoE configuration IP mode is higher than that of the dynamic IP configuration mode or the priority of the dynamic IP configuration mode is higher than that of the dynamic IP configuration mode. The automatic switching detection methods of the IP configuration modes are consistent, for example: if the priority of the PPPoE configuration IP mode is higher than that of the dynamic IP configuration mode, detecting that the IP configuration mode of the electronic equipment is automatically selected to be the PPPoE mode; according to the PPPOE protocol, detecting that a PPPOE server does not exist at a physical network interface connecting end of a client, and switching the IP configuration mode of the client to the dynamic IP configuration mode. Or, detecting that the IP configuration mode is automatically selected to be a PPPoE mode; detecting whether a PPPoE server exists at the physical network interface connecting end according to a PPPoE protocol, and detecting whether a PPPoE session is established between the physical network interface and the PPPoE server; and if the call is not established, switching the IP configuration mode of the client to the dynamic IP configuration mode. Other priority policies are set, and the switching detection method of the IP configuration mode is similar, and is not described herein again.
S103, detecting that the configuration IP mode is a PPPoE configuration mode, and popping up an account information input box of a user to acquire account information input by the user;
the method for detecting the configured IP mode can monitor the occupied information of the configured IP interface of the application program through a monitoring function built in the electronic equipment, for example, the electronic equipment of an android system can create a system-level monitoring module on a system framework layer (native/frame layer), and monitor the configured IP mode of the application program through the monitoring module, or independently create a monitoring process and monitor the configured IP mode of the application program through a message transmission mechanism. For example, a monitoring module can be set up in a framework layer and run in a system service program (system _ server), and because the monitoring module is set up in a service framework layer of a system level, interaction with other system services can be facilitated without worrying about the authority problem when the system is called. If the configured IP mode is a PPPoE configuration mode, namely the condition that the account information input box of the user triggers display is met, the screen of the electronic equipment displays the account information input box, and the user fills in legal account information, so that connection can be established.
The user confirms the network to be selected by inputting the wireless network selection information, the user sets an IP configuration mode for the network to be selected, if the IP configuration mode is a PPPoE configuration mode, an account information input box of the user is popped up, and the user establishes network connection by inputting the account information. The input information comprises legal user name information and password information matched with the user name.
And S104, performing PPPoE authentication according to the input account information, and establishing connection with the access network. The account information input box is further used for backing up the account information by using a cloud server. The specific method comprises the following steps: storing the account information, uploading the account information to the cloud server, and receiving a response that the account information returned by the cloud server is successfully stored; if the client is reset or replaced, sending a request for acquiring a password corresponding to the user name to the server according to the input user name; and receiving a password corresponding to the user name issued by the cloud server, and filling the password in a password input box so as to perform PPPoE authentication on the account information of the user.
The method for configuring the IP connection access network by the PPPoE comprises the following steps: a client and an Access Concentrator (AC) acquire an Ethernet physical address of an opposite terminal, and the client and the Access Concentrator share a unique session ID; the client sends a Discovery phase Discovery Initiation (PADI) broadcast packet to a preset broadcast domain to apply for a service to an AC in the preset broadcast domain, where the preset broadcast domain may be in a cell. Or any value of the square circle 1m-1000m can be included in the range; one or more AC Discovery phase reply (PADO) messages in a preset broadcast domain can provide service for a client; the client host selects an AC according to preset requirements, and sends a Discovery phase Request (PADR) message to the AC to Request services from the AC, wherein the preset requirements of the client host can be signal strength, distance information or safety information; the AC sends a Session acceptance (PADS) message to the client to announce that the service is provided to the client and shares a unique Session ID with the client. The client and the access concentrator establish dial-up connection through the session ID and carry out point-to-point network layer data message transmission; PPP negotiation in the PPPoE session negotiation stage is consistent with a common PPP negotiation mode; the client accesses the network and carries out data interaction. When the client or the access concentrator needs to Terminate the session, the client or the server can send a terminating message (PADT) according to the requirement, so as to disconnect the PPPoE connections of the two parties of the session.
The method provided by the embodiment of the application can further comprise the following steps:
s105, if the dialing connection established in the PPPoE mode is abnormally off-line and the abnormal off-line belongs to the preset abnormal off-line table item, the client sends a request to a server to authenticate the identity of the PPPoE client, and if the server is successfully authenticated, the dialing connection is recovered. The method specifically comprises the following steps: acquiring abnormal offline data information; inquiring the abnormal offline identification of the data information, and confirming that the abnormal offline identification is in the preset abnormal offline table entry, wherein the preset abnormal offline table entry can comprise router restart, equipment short-time power failure, link oscillation, hardware failure, client restart and the like; if the list item belongs to any one of the list items, sending an authentication message for requesting authentication of the client identity to the server; and receiving an identity authentication success response returned by the server, and recovering the abnormal offline dialing connection.
In a current network based on Point-to-Point protocol over Ethernet (PPPoE), a client and a Broadband Remote Access Server (BRAS) device are typically interconnected through a two-layer switch. When the link of the access port of the BRAS equipment vibrates or hardware fails, the client is abnormally off-line, the public network address of the BRAS equipment in the client still exists, the client can still access the public network, but the user table entry of the access port corresponding to the client on the BRAS equipment is automatically cleared, the BRAS equipment cannot send a PADT message to the client, and therefore the client cannot sense the failure. In this case, the client can only rely on its periodic keep-alive detection mechanism to sense that it has been abnormally taken off-line. Acquiring data information of abnormal offline through a client; inquiring the abnormal offline identification of the data information, and sending an authentication message for requesting authentication of the client identity to the server if the abnormal offline identification is confirmed to be in the preset abnormal offline table entry; and when receiving an identity authentication success response returned by the server, recovering the abnormal offline dialing connection. The network recovery connection mode of other conditions in the preset abnormal offline table entry is similar to the network recovery connection mode of link oscillation and hardware failure. And will not be described in detail herein.
An embodiment of the present application provides a device for wireless fidelity Wi-Fi access, and as shown in fig. 2, the device includes: a network search module 21, a configuration IP module 22, an input module 23 and a connection module 24,
the network searching module 21 is configured to receive a wireless local area network start command, and search for an alternative network in the wireless local area network.
The electronic device may monitor a receiving behavior of the wlan startup command of the network search module 21 of the application through a built-in monitoring function (listen ()), and taking the electronic device of the android system as an example, a system level monitoring module may be created in a system framework layer (native/frame layer), and the wlan startup command behavior of the application is monitored through the monitoring module, or a monitoring process is independently created, and whether the wlan is started or not is monitored through a message transmission mechanism. For example, a monitoring module can be set up in a framework layer and run in a system service program (system _ server), and because the monitoring module is set up in a service framework layer of a system level, interaction with other system services can be facilitated without worrying about the authority problem when the system is called. In addition, an independent monitoring process can be created, an independent monitoring function is set and called in the process, the process can be set to be started up automatically, the command receiving line and the command inquiring line of any other application program are monitored in real time, and specifically, data information and an opening state identifier of a currently called wireless local area network interface can be captured in real time, so that whether a wireless local area network opening command is received currently or not is determined, independent development can be achieved, coupling with a system is avoided, and subsequent development and upgrading are facilitated.
The power consumption of the electronic product Wi-Fi is large. Thus, the upper layer application sets a switch for turning on and off the Wi-Fi function. When a user clicks on the mobile phone to open the Wi-Fi, the Wi-Fi module is powered on to run, and certainly, a driver of the Wi-Fi is loaded correspondingly. And monitoring a wireless local area network starting command by using a monitoring function (listen ()), namely indicating that the Wi-Fi function is started, displaying and searching nearby Wi-Fi hotspots by the electronic product, and Scanning (Scanning). Wireless networks are found using the scan and then joined to the alternate network. In the process of accessing the network, an Access Point (AP) sends a beacon frame to a mobile terminal, where the beacon frame may include a Service Set Identifier (SSID) of the network, and a user may select a wireless local area network that the user can join according to the SSID. SSID is actually a parameter carried by an Access Point (Access Point) in response to a station scan, and other network parameters include a Media Access Control (MAC) Address, signal strength, encryption and authentication methods, and the like of the Access Point. It needs to be pointed out that when the Wi-Fi alternative network is scanned for network detection, if it is detected that the network cannot be accessed within the preset time, other alternative network detection is triggered. The preset time is set according to the Wi-Fi alternative network scanning detection process, and the specific time can be set by an engineer according to hardware parameters or a software algorithm, which is not described herein again.
An IP configuration module 22, configured to select and confirm an access network in the candidate network, and select a preset configuration Internet Protocol (IP) mode for the access network to configure an IP address of the access network, where the preset configuration IP mode includes: static IP configuration mode, dynamic IP configuration mode and Point-to-Point Protocol over Ethernet (PPPoE) configuration mode based on Ethernet. It should be noted that, the selection manner for configuring the IP manner of the internet protocol may be to automatically select the preset configuration IP manner according to the priority policy of the IP configuration manner. Setting the priority policy may be: the priority of the dynamic IP configuration mode is higher than that of the PPPoE configuration IP mode; the priority of the PPPoE configuration IP mode is higher than that of the static IP configuration mode. Wherein the modification authority of the priority policy can be provided for the user. The user can modify the priority policy according to personal requirements.
In a WIreless local area network, an electronic device communicates based on a WIreless-FIdelity (Wi-Fi) protocol, and in a process of accessing a network, an Access Point (AP) sends a beacon frame to a mobile terminal, where the beacon frame may include a Service Set Identifier (SSID) of the network, and a user may select a WIreless local area network that the user can join according to the SSID.
The static IP configuration is a static IP address set by a user for the electronic device according to the characteristics of the IP address of the router, and the address cannot be changed due to device restart or router restart. The Dynamic IP Configuration is automatically assigned by a Dynamic Host Configuration Protocol (DHCP) server, and the DHCP is a network Protocol of a local area network and works using a UDP Protocol. The DHCP protocol allows the server to dynamically assign IP addresses and configuration information to clients. The DHCP protocol supports a C/S structure and is mainly divided into a client and a server. The IP address allocated by the DHCP server is influenced by the address lease and the equipment state, after the lease expires, the IP address is recovered by the DHCP server, and the IP address is reallocated by the DHCP server due to the equipment restart, the router restart or the network re-access.
The PPPoE configuration mode has higher cost performance, is widely adopted in a series of applications including cell networking construction and the like, and the current popular broadband access mode such as Asymmetric Digital Subscriber Line (ADSL) uses a PPPoE protocol. PPPoE uses Ethernet to form a network with a large number of hosts, and connects to the Internet through a remote access device, and realizes control and charging functions for each accessed host. Computers accessing the internet in the ADSL mode are mostly connected to the internet through an Ethernet card (Ethernet). The same is used with the ordinary TCP/IP method, and no new protocol is added. The dial-up networking of the modem uses a Point-to-Point Protocol (PPP) which has the functions of user authentication and IP address notification. The PPP over Ethernet (PPPoE) protocol is a technique for relaying PPP frame information in an Ethernet network, and is particularly suitable for ADSL and other systems.
The configuration IP module 22 includes a detecting unit 221, a determining unit 222, and a switching unit 223, and the priority policy of the IP configuration mode may be automatically selected, mainly involving a jump from a high priority to a low priority, for example, two cases are included:
first, the current IP configuration mode is automatically selected as the dynamic IP configuration mode, but the DHCP server cannot allocate the dynamic IP and automatically switches to the PPPoE configuration IP mode. The method comprises the following specific steps: the detection unit 221, configured to detect that the IP configuration mode is automatically selected as a dynamic IP configuration mode; a determining unit 222, configured to configure a DHCP protocol according to the dynamic host, and detect that the physical network interface connection end of the client has no DHCP server, and a switching unit 223, configured to switch the IP configuration mode of the client to the PPPoE mode. Or, the detecting unit 221 is configured to detect that the IP configuration mode is automatically selected as a dynamic IP configuration mode; a determining unit 222, configured to configure a DHCP protocol according to a dynamic host, detect that the DHCP server exists at the physical network interface connection end, further detect whether a DHCP session is established between the physical network interface and the DHCP server, and find that a call is not established between the physical network interface and the DHCP server; a switching unit 223, configured to switch the IP configuration mode of the client to the PPPoE mode.
Secondly, the current IP configuration mode is automatically selected as a PPPoE configuration mode, but the PPPoE server can not distribute dynamic IP and automatically switches to a static configuration IP mode. The method comprises the following specific steps: the detecting unit 221 is further configured to detect that the IP configuration mode is automatically selected as a PPPoE mode; the determining unit 222 is further configured to detect, according to the PPPOE protocol, that the PPPOE server does not exist at the physical network interface connection end of the client, and the switching unit 223 is further configured to switch the IP configuration mode of the client to the static IP configuration mode. Or, the detecting unit 221 is further configured to detect that the IP configuration mode is automatically selected as a PPPoE mode; the determining unit 222 is further configured to detect, according to a PPPOE protocol, that a PPPOE server exists at the physical network interface connection end, and detect whether a PPPOE session is established between the physical network interface and the PPPOE server; if the call is not established, the switching unit 223 is further configured to switch the IP configuration mode of the client to the static IP configuration mode.
It should be noted that, if the priority policy is a priority policy set by the user, for example: the priority of the PPPoE configuration IP mode is higher than that of the dynamic IP configuration mode or the priority of the dynamic IP configuration mode is higher than that of the dynamic IP configuration mode. The automatic switching detection methods of the IP configuration modes are consistent, for example: if the priority of the PPPoE configuration IP mode is higher than that of the dynamic IP configuration mode, the detection unit 221 detects that the IP configuration mode of the electronic device is automatically selected as the PPPoE mode; according to the PPPOE protocol, the determining unit 222 detects that the PPPOE server does not exist at the physical network interface connection end of the client, and the switching unit 223 switches the IP configuration mode of the client to the dynamic IP configuration mode. Or, the detecting unit 221 detects that the IP configuration mode is automatically selected as a PPPoE mode; the determining unit 222 detects that a PPPOE server exists at the physical network interface connection end according to a PPPOE protocol, and then detects whether a PPPOE session is established between the physical network interface and the PPPOE server; if the call is not established, the switching unit 223 switches the IP configuration mode of the client to the dynamic IP configuration mode. Other priority policies are set, and the switching detection method of the IP configuration mode is similar, and is not described herein again.
The input module 23 is configured to detect that the configuration IP mode is a PPPoE configuration mode, and pop up an account information input box of the user to obtain account information input by the user;
the method for detecting the configured IP mode can monitor the occupied information of the configured IP interface of the application program through a monitoring function built in the electronic equipment, for example, the electronic equipment of an android system can create a system-level monitoring module on a system framework layer (native/frame layer), and monitor the configured IP mode of the application program through the monitoring module, or independently create a monitoring process and monitor the configured IP mode of the application program through a message transmission mechanism. For example, a monitoring module can be set up in a framework layer and run in a system service program (system _ server), and because the monitoring module is set up in a service framework layer of a system level, interaction with other system services can be facilitated without worrying about the authority problem when the system is called. If the configured IP mode is a PPPoE configuration mode, namely the condition that the account information input box of the user triggers display is met, the screen of the electronic equipment displays the account information input box, and the user fills in legal account information, so that connection can be established.
The user confirms the network to be selected by inputting the wireless network selection information, the user sets an IP configuration mode for the network to be selected, if the IP configuration mode is a PPPoE configuration mode, an account information input box of the user is popped up, and the user establishes network connection by inputting the account information. The input information comprises legal user name information and password information matched with the user name.
And the connection module 24 is configured to perform PPPoE authentication according to the input account information, and establish a connection with the access network. In one embodiment, connection module 24 is further configured to backup the account information with a cloud server. The connection module 24 includes a storage unit 241, a password request unit 242, and a password recovery unit 243. The storage unit 241 is configured to store the account information, upload the account information to the cloud server, and receive a response that the account information returned by the cloud server is successfully stored; a password requesting unit 242, configured to send, to the server, a request for obtaining a password corresponding to the user name according to the input user name if the client is reset or replaced; and a password recovery unit 243, configured to receive the password corresponding to the user name issued by the cloud server, and fill the password in a password input box, so that the account information of the user is subjected to PPPoE authentication.
The method for configuring the IP connection access network by the PPPoE comprises the following steps: a client and an Access Concentrator (AC) acquire an Ethernet physical address of an opposite terminal, and the client and the Access Concentrator share a unique session ID; the client sends a Discovery phase Discovery Initiation (PADI) broadcast packet to a preset broadcast domain to apply for a service to an AC in the preset broadcast domain, where the preset broadcast domain may be in a cell. Or any value of the square circle 1m-1000m can be included in the range; one or more AC Discovery phase reply (PADO) messages in a preset broadcast domain can provide service for a client; the client host selects an AC according to preset requirements, and sends a Discovery Request (PADR) message to the AC to Request service from the AC, wherein the preset requirements of the client host can be signal strength, distance information or safety information; the AC sends a Session acceptance (PADS) message to the client to announce that the service is provided to the client and shares a unique Session ID with the client. The client and the access concentrator establish dial-up connection through the session ID and carry out point-to-point network layer data message transmission; PPP negotiation in the PPPoE session negotiation stage is consistent with a common PPP negotiation mode; the client accesses the network and carries out data interaction. When the client or the access concentrator needs to Terminate the session, the client or the server can send a terminating message (PADT) according to the requirement, so as to disconnect the PPPoE connections of the two parties of the session.
The apparatus provided by the embodiment of the present application may further include: and an abnormal offline recovery module 25, configured to send a request to a server to authenticate the identity of the PPPoE client if the dial-up connection established in the PPPoE mode is abnormally offline and the abnormal offline belongs to the preset abnormal offline table entry, and recover the dial-up connection if the server authenticates successfully. The abnormal down recovery module 25 may include: the acquiring unit 251, the querying unit 252, the authentication requesting unit 253, and the recovering unit 254, wherein the process of recovering the dial-up connection is as follows: the acquiring unit 251 acquires data information of abnormal offline; the query unit 252 queries the abnormal offline identifier of the data information, and confirms that the abnormal offline identifier is in the preset abnormal offline table entry, where the preset abnormal offline table entry may include a router restart, a device short-term power failure, a link oscillation, a hardware failure, a client restart, and the like, and it needs to be pointed out that the preset abnormal offline table entry may be set according to a user requirement; if the user belongs to any one of the above table entries, the authentication request unit 253 sends an authentication message for requesting authentication of the client identity to the server; the recovery unit 254 receives the identity authentication success response returned by the server, and recovers the abnormal offline dialing connection.
In a current Point-to-Point protocol over ethernet (PPPoE) application, a client and a Broadband Remote Access Server (BRAS) device are typically interconnected through a two-layer switch. When the link of the access port of the BRAS equipment vibrates or hardware fails, the client is abnormally off-line, the public network address of the BRAS equipment in the client still exists, the client can still access the public network, but the user table entry of the access port corresponding to the client on the BRAS equipment is automatically cleared, the BRAS equipment cannot send a PADT message to the client, and therefore the client cannot sense the failure. In this case, the client can only rely on its periodic keep-alive detection mechanism to sense that it has been abnormally taken off-line. Acquiring data information of abnormal offline through the client acquisition unit 251; the query unit 252 queries the abnormal offline identifier of the data information, and if it is confirmed that the abnormal offline identifier is in the preset abnormal offline table entry, sends an authentication message for requesting authentication of the client identity to the server of the authentication request unit 253; when the recovery unit 254 receives the identity authentication success response returned by the server, the abnormal offline dialing connection is recovered. The network recovery connection mode of other conditions in the preset abnormal offline table entry is similar to the network recovery connection mode of link oscillation and hardware failure. And will not be described in detail herein.
Fig. 3 is a schematic diagram of an internal structure of an electronic device according to an embodiment. As shown in fig. 3, the electronic device includes a processor, a nonvolatile storage medium, an internal memory, and a network interface, a sound collection device, a speaker, a display screen, and an input device, which are connected by a system bus. Wherein the non-volatile storage medium of the terminal stores an operating system and computer readable instructions. The computer readable instructions, when executed by a processor, implement a method of processing an application program for an electronic device. The processor is used for providing calculation and control capability and supporting the operation of the whole electronic equipment. Internal memory in the electronic device provides an environment for the execution of computer-readable instructions in the non-volatile storage medium. The display screen of the electronic device may be a liquid crystal display screen or an electronic ink display screen, and the input device may be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a housing of the electronic device, or an external keyboard, a touch pad or a mouse. The electronic device may be a mobile phone, a tablet computer, or a personal digital assistant or a wearable device, etc. Those skilled in the art will appreciate that the architecture shown in fig. 3 is a block diagram of only a portion of the architecture associated with the subject application, and does not constitute a limitation on the electronic devices to which the subject application may be applied, and that a particular electronic device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The method for processing the application program may specifically be:
receiving a wireless local area network starting command, and searching for an alternative network in the wireless local area network;
selecting and confirming an access network in the alternative network, and selecting a preset configuration Internet Protocol (IP) mode for the access network to configure an IP address of the access network, wherein the preset configuration IP mode comprises the following steps: a static IP configuration mode, a dynamic IP configuration mode and a point-to-point communication protocol PPPoE configuration mode based on Ethernet;
detecting that the configuration IP mode is a PPPoE configuration mode, and popping up an account information input box of a user to acquire account information input by the user;
performing PPPoE authentication according to the input account information, and establishing connection with the access network;
if the dialing connection established in the PPPoE mode is abnormally off-line and the abnormal off-line belongs to the preset abnormal off-line table item, the client sends a request to a server to authenticate the identity of the PPPoE client, and if the server is successfully authenticated, the dialing connection is recovered.
In addition, the embodiment of the present application also provides a computer non-volatile readable storage medium, on which a computer program is stored, and the computer program realizes the steps of processing the application program as described above when being executed by a processor.
The embodiment of the invention also provides computer equipment. As shown in fig. 4, for convenience of illustration, only the portion related to the embodiment of the present invention is shown, and details of the technology are not disclosed, please refer to the method portion of the embodiment of the present invention. The computer device may be any terminal device including an electronic device, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of sales), a vehicle-mounted computer, a wearable device, and the like, taking the computer device as the electronic device as an example.
In addition, the embodiment of the application also provides a non-volatile readable storage medium of a computer, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the alarm clock playing are realized.
The embodiment of the application also provides computer equipment. As shown in fig. 4, for convenience of explanation, only the parts related to the embodiments of the present application are shown, and details of the technology are not disclosed, please refer to the method part of the embodiments of the present application. The computer device may be any terminal device including an electronic device, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of sales), a vehicle-mounted computer, a wearable device, and the like, taking the computer device as the electronic device as an example:
fig. 4 is a block diagram of a partial structure of an electronic device related to a computer device provided in an embodiment of the present application. Referring to fig. 4, the electronic device includes: radio Frequency (RF) circuit 410, memory 420, input unit 430, display unit 440, sensor 450, audio circuit 460, wireless fidelity (WiFi) module 470, processor 480, and power supply 490. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 410 may be used for receiving and transmitting signals during information transmission or communication, and may receive downlink information of a base station and then process the downlink information to the processor 480; the uplink data may also be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 410 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Messaging Service (SMS), and the like.
The memory 420 may be used to store software programs and modules, and the processor 480 executes various functional applications and data processing of the electronic device by operating the software programs and modules stored in the memory 420. The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an application program for a sound playing function, an application program for an image playing function, and the like), and the like; the data storage area may store data (such as audio data, an address book, etc.) created according to the use of the electronic device, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 430 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device 400. Specifically, the input unit 430 may include a touch panel 431 and other input devices 432. The touch panel 431, which may also be referred to as a touch screen, may collect touch operations of a user on or near the touch panel 431 (e.g., operations of a user on or near the touch panel 431 using any suitable object or accessory such as a finger or a stylus) and drive a corresponding connection device according to a preset program. In one embodiment, the touch panel 431 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 480, and receives and executes commands sent from the processor 480. In addition, the touch panel 431 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 430 may include other input devices 432 in addition to the touch panel 431. In particular, other input devices 432 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), and the like.
The display unit 440 may be used to display information input by a user or information provided to the user and various menus of the electronic device. The display unit 440 may include a display panel 441. In one embodiment, the Display panel 441 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. In one embodiment, the touch panel 431 may cover the display panel 441, and when the touch panel 431 detects a touch operation thereon or nearby, the touch panel is transmitted to the processor 480 to determine the type of the touch event, and then the processor 480 provides a corresponding visual output on the display panel 441 according to the type of the touch event. Although in fig. 4, the touch panel 431 and the display panel 441 are two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 431 and the display panel 441 may be integrated to implement the input and output functions of the electronic device.
The electronic device 400 may also include at least one sensor 450, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 441 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 441 and/or the backlight when the electronic device is moved to the ear. The motion sensor can comprise an acceleration sensor, the acceleration sensor can be used for detecting the magnitude of acceleration in each direction, the magnitude and the direction of gravity can be detected when the motion sensor is static, and the motion sensor can be used for identifying the application (such as horizontal and vertical screen switching) of the posture of the electronic equipment, and relevant functions (such as pedometer and knocking) of vibration identification and the like; the electronic device may be provided with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor.
The audio circuit 460, speaker 461 and microphone 462 may provide an audio interface between a user and the electronic device. The audio circuit 460 may transmit the electrical signal converted from the received audio data to the speaker 461, and convert the electrical signal into a sound signal for output by the speaker 461; on the other hand, the microphone 462 converts the collected sound signal into an electrical signal, which is received by the audio circuit 460 and converted into audio data, which is then processed by the audio data output processor 480 and then transmitted to another electronic device via the RF circuit 410, or the audio data is output to the memory 420 for subsequent processing.
WiFi belongs to short-range wireless transmission technology, and the electronic device can help the user send and receive e-mails, browse web pages, access streaming media, etc. through the WiFi module 470, which provides wireless broadband internet access for the user. Although fig. 4 illustrates WiFi module 470, it is understood that it does not belong to the essential components of electronic device 400 and may be omitted as desired.
The processor 480 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 420 and calling data stored in the memory 420, thereby integrally monitoring the electronic device. In one embodiment, processor 480 may include one or more processing units. In one embodiment, processor 480 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, and the like; the modem processor handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 480.
The electronic device 400 further includes a power supply 490 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 480 via a power management system that may be configured to manage charging, discharging, and power consumption.
In one embodiment, the electronic device 400 may also include a camera, a bluetooth module, and the like.
In the embodiments of the present application, the processor 480 included in the computer device implements the methods of the embodiments described above when executing the computer program stored on the memory.
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. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like. The embodiment of the application also provides a computer readable storage medium, on which a computer program is stored, and the program is executed by a processor to execute the method of the above embodiments.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the 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 (22)

  1. A wireless fidelity (Wi-Fi) access method is applied to a client, and is characterized by comprising the following steps:
    receiving a wireless local area network starting command, and searching for an alternative network in the wireless local area network;
    selecting and confirming an access network in the alternative network, and selecting a preset configuration Internet Protocol (IP) mode for the access network to configure an IP address of the access network, wherein the preset configuration IP mode comprises the following steps: a static IP configuration mode, a dynamic IP configuration mode and a point-to-point communication protocol PPPoE configuration mode based on Ethernet;
    detecting that the configuration IP mode is a PPPoE configuration mode, and popping up an account information input box of a user to acquire account information input by the user;
    and performing PPPoE authentication according to the input account information, and establishing connection with the access network.
  2. The method of claim 1, wherein selecting a default configuration IP mode for the access network comprises:
    and automatically selecting the preset configuration IP mode according to the priority strategy of the IP configuration mode.
  3. The method of claim 2, wherein the priority policy is:
    the priority of the dynamic IP configuration mode is higher than that of the PPPoE mode;
    the PPPoE mode has higher priority than the static IP configuration mode.
  4. The method according to claim 2, wherein the automatically selecting the preset configuration IP mode according to the priority policy of the IP configuration mode comprises:
    detecting that the IP configuration mode is automatically selected as a dynamic IP configuration mode;
    configuring DHCP protocol according to dynamic host, detecting that no DHCP server exists at the physical network interface connection end of the client,
    or, detecting that the DHCP server exists at the connection end of the physical network interface, wherein the physical network interface does not establish a DHCP session with the DHCP server;
    and switching the IP configuration mode of the client to the PPPoE mode.
  5. The method of claim 2, wherein automatically selecting the preset configuration IP mode according to the priority policy of the IP configuration mode further comprises:
    detecting that the IP configuration mode is automatically selected to be a PPPoE mode;
    according to PPPOE protocol, detecting that no PPPOE server exists at the physical network interface connection end of the client,
    or, detecting that a PPPoE server exists at the connection end of the physical network interface, wherein the PPPoE session is not established by the PPPoE server at the physical network interface;
    and switching the IP configuration mode of the client to the static IP configuration mode.
  6. The method of claim 1, further comprising: if the dialing connection established in the PPPoE mode is abnormally off-line and the abnormal off-line belongs to the preset abnormal off-line table item, the client sends a request to a server to authenticate the identity of the PPPoE client, and if the server is successfully authenticated, the dialing connection is recovered.
  7. The method of claim 6, wherein the recovering the dial-up connection if the server authentication is successful comprises:
    acquiring abnormal offline data information;
    inquiring the abnormal offline identification of the data information, and confirming that the abnormal offline identification is in the preset abnormal offline table entry;
    sending an authentication message for requesting authentication of the client identity to the server;
    and receiving an identity authentication success response returned by the server, and recovering the abnormal offline dialing connection.
  8. The method of claim 1, wherein the performing PPPoE authentication according to the account information input box input information comprises: and backing up the account information by using a cloud server.
  9. The method of claim 8, wherein the backing up the account information with a cloud server comprises:
    storing the account information, uploading the account information to the cloud server, and receiving a response that the account information returned by the cloud server is successfully stored;
    if the client is reset or replaced, sending a request for acquiring a password corresponding to the user name to the server according to the input user name;
    and receiving a password corresponding to the user name issued by the cloud server, and filling the password in a password input box so as to perform PPPoE authentication on the account information of the user.
  10. The method of claim 1, wherein said performing PPPoE authentication dial-up access to said access network comprises:
    the method comprises the steps that a client and an access concentrator terminal acquire an Ethernet physical address of an opposite terminal, and the client and the access concentrator terminal share a unique session ID;
    the client and the access concentrator establish dial-up connection through the session ID and carry out point-to-point network layer data message transmission;
    and the client or the access concentrator sends a point-to-point terminating message according to the requirement so as to disconnect the PPPoE connection.
  11. An apparatus for wireless fidelity Wi-Fi access, the apparatus comprising:
    the network searching module is used for receiving a wireless local area network starting command and searching for an alternative network in the wireless local area network;
    an IP configuration module, configured to select and confirm an access network from the candidate networks, and select a preset IP configuration mode for the access network to configure an IP address of the access network, where the preset IP configuration mode includes: a static IP configuration mode, a dynamic IP configuration mode and a point-to-point communication protocol PPPoE configuration mode based on Ethernet;
    the input module is used for detecting that the configuration IP mode is a PPPoE configuration mode and popping up an account information input box of a user to acquire account information input by the user;
    and the connection module is used for performing PPPoE authentication according to the input account information and establishing connection with the access network.
  12. The apparatus according to claim 11, wherein the configuration IP module is further configured to automatically select the preset configuration IP manner according to a priority policy of the IP configuration manner.
  13. The apparatus according to claim 12, wherein the priority policy for configuring the IP configuration mode of the IP module is:
    the priority of the dynamic IP configuration mode is higher than that of the PPPoE mode;
    the PPPoE mode has higher priority than the static IP configuration mode.
  14. The apparatus of claim 12, wherein the configure IP module comprises:
    the detection unit is used for detecting that the IP configuration mode is automatically selected as a dynamic IP configuration mode;
    the judging unit is used for configuring a DHCP protocol according to the dynamic host, detecting that a physical network interface connecting end of a client does not have a DHCP server, or detecting that the physical network interface connecting end has the DHCP server, and the DHCP conversation of the physical network interface and the DHCP server is in a disconnected state;
    and the switching unit is used for switching the IP configuration mode of the client to the PPPoE mode.
  15. The apparatus of claim 12, wherein the configure IP module comprises:
    the detection unit is also used for detecting that the IP configuration mode is automatically selected to be a PPPoE mode;
    the judging unit is also used for detecting that a physical network interface connecting end of a client side does not have a PPPoE server according to a PPPoE protocol, or detecting that the physical network interface connecting end has the PPPoE server, and a PPPoE session between the physical network interface and the PPPoE server is in a disconnected state;
    and the switching unit is also used for switching the IP configuration mode of the client to the static IP configuration mode.
  16. The apparatus according to claim 11, further comprising an abnormal offline recovery module, configured to send a request to a server to authenticate the identity of the PPPoE client if the dial-up connection established in the PPPoE mode is abnormally offline and the abnormal offline belongs to the preset abnormal offline entry, and recover the dial-up connection if the authentication of the server is successful.
  17. The apparatus of claim 16, wherein the abnormal downline restoration module comprises:
    the acquisition unit is used for acquiring data information of abnormal offline;
    the query unit is used for querying the abnormal offline identification of the data information and confirming that the abnormal offline identification is in the preset abnormal offline table entry;
    the authentication request unit is used for sending an authentication message for requesting authentication of the client identity to the server;
    and the recovery unit is used for receiving the identity authentication success response returned by the server and recovering the abnormal offline dialing connection.
  18. The apparatus of claim 11, wherein the connection module is further configured to backup the account information with a cloud server.
  19. The apparatus of claim 18, wherein the connection module further comprises:
    the storage unit is used for storing the account information, uploading the account information to the cloud server, and receiving a response that the account information returned by the cloud server is successfully stored;
    the password request unit is used for sending a request for acquiring a password corresponding to the user name to the server according to the input user name if the client is reset or replaced;
    and the password recovery unit is used for receiving the password corresponding to the user name issued by the cloud server and filling the password in a password input box so as to enable the account information of the user to carry out PPPoE authentication.
  20. The apparatus of claim 11, wherein the connection module performs PPPoE authentication according to the input account information and establishes a connection with the access network, and comprises:
    the method comprises the steps that a client and an access concentrator terminal acquire an Ethernet physical address of an opposite terminal, and the client and the access concentrator terminal share a unique session ID;
    the client and the access concentrator establish dial-up connection through the session ID and carry out point-to-point network layer data message transmission;
    and the client or the access concentrator sends a point-to-point terminating message according to the requirement so as to disconnect the PPPoE connection.
  21. An electronic 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 Wi-Fi access method according to any one of claims 1-10.
  22. A computer non-transitory readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, performs the steps of the Wi-Fi access method of any of claims 1-10.
CN201880097757.3A 2018-11-01 2018-11-01 Wireless fidelity Wi-Fi access method and device, electronic equipment and storage medium Pending CN112740762A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/113455 WO2020087450A1 (en) 2018-11-01 2018-11-01 Wireless fidelity (wi-fi) access method and apparatus, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
CN112740762A true CN112740762A (en) 2021-04-30

Family

ID=70461761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880097757.3A Pending CN112740762A (en) 2018-11-01 2018-11-01 Wireless fidelity Wi-Fi access method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN112740762A (en)
WO (1) WO2020087450A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115767602A (en) * 2022-11-01 2023-03-07 荣耀终端有限公司 Automatic error correction method for device protocol subsystem exception and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012089030A1 (en) * 2010-12-27 2012-07-05 中兴通讯股份有限公司 Method, access device and authentication device for network access by multiple access methods
CN102883407A (en) * 2012-09-13 2013-01-16 中兴通讯股份有限公司 Dialing method and device
CN106850867A (en) * 2015-12-04 2017-06-13 中兴通讯股份有限公司 A kind of Home eNodeB obtains location device and obtains location method
CN107592240A (en) * 2017-09-07 2018-01-16 上海斐讯数据通信技术有限公司 A kind of method and system of router automatic detection network access
CN108206765A (en) * 2018-03-30 2018-06-26 新华三技术有限公司 PPPoE reaches the standard grade restoration methods, BRAS equipment and aaa server
CN108667672A (en) * 2018-06-13 2018-10-16 四川斐讯信息技术有限公司 A kind of automatic adaptation method and router of LAN interface and wan interface

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904879A (en) * 2012-09-18 2013-01-30 中兴通讯股份有限公司 Dialing mobile terminal and dialing method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012089030A1 (en) * 2010-12-27 2012-07-05 中兴通讯股份有限公司 Method, access device and authentication device for network access by multiple access methods
CN102883407A (en) * 2012-09-13 2013-01-16 中兴通讯股份有限公司 Dialing method and device
CN106850867A (en) * 2015-12-04 2017-06-13 中兴通讯股份有限公司 A kind of Home eNodeB obtains location device and obtains location method
CN107592240A (en) * 2017-09-07 2018-01-16 上海斐讯数据通信技术有限公司 A kind of method and system of router automatic detection network access
CN108206765A (en) * 2018-03-30 2018-06-26 新华三技术有限公司 PPPoE reaches the standard grade restoration methods, BRAS equipment and aaa server
CN108667672A (en) * 2018-06-13 2018-10-16 四川斐讯信息技术有限公司 A kind of automatic adaptation method and router of LAN interface and wan interface

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115767602A (en) * 2022-11-01 2023-03-07 荣耀终端有限公司 Automatic error correction method for device protocol subsystem exception and electronic device

Also Published As

Publication number Publication date
WO2020087450A1 (en) 2020-05-07

Similar Documents

Publication Publication Date Title
CN109429363B (en) Session management method and device
CN116232667A (en) Method for edge computing service and electronic device thereof
US20180368058A1 (en) Method for controlling device access, and related device and system
CN106686070B (en) Database data migration method, device, terminal and system
US10069818B2 (en) Method, system, device, and terminal for network initialization of multimedia playback device
WO2019128982A1 (en) Device bootstrap method, terminal, and server
CN106936676B (en) Household equipment control method and device
EP3609162B1 (en) Method and terminal for realizing data service
CN107147549B (en) Intelligent household equipment networking method and device
CN108769976B (en) Network attachment control method and device and mobile terminal
CN109039989B (en) Address resolution protocol spoofing detection method, host and computer-readable storage medium
US9392537B2 (en) Terminal and connection method for same
CN110944313B (en) Bluetooth connection method, device, storage medium and terminal
CN111491365A (en) Gateway access method and electronic equipment
CN112654073B (en) Network attachment method and user equipment
CN111314900B (en) Wireless connection method, wireless connection device and mobile terminal
CN112740762A (en) Wireless fidelity Wi-Fi access method and device, electronic equipment and storage medium
CN110891262A (en) Bluetooth pairing method, system and terminal equipment
CN110072235B (en) Networking method and device for intelligent equipment, electronic device and storage medium
WO2019237954A1 (en) Network connection method and device, readable storage medium and intelligent terminal
CN104113582B (en) Communication equipment and its control method
CN111432394B (en) Wireless network voice bearer registration method and user equipment
CN106879046B (en) Network scanning method and terminal equipment
CN111132275A (en) Method and device for establishing data connection, storage medium and electronic equipment
CN114501449B (en) Information query method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210430

RJ01 Rejection of invention patent application after publication