CN108834221B - Network connection control method, computer-readable storage medium, and mobile terminal - Google Patents

Network connection control method, computer-readable storage medium, and mobile terminal Download PDF

Info

Publication number
CN108834221B
CN108834221B CN201810559265.3A CN201810559265A CN108834221B CN 108834221 B CN108834221 B CN 108834221B CN 201810559265 A CN201810559265 A CN 201810559265A CN 108834221 B CN108834221 B CN 108834221B
Authority
CN
China
Prior art keywords
mobile terminal
wireless network
connection
network
access
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
CN201810559265.3A
Other languages
Chinese (zh)
Other versions
CN108834221A (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.)
Nanchang Black Shark Technology Co Ltd
Original Assignee
Nanchang Black Shark 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 Nanchang Black Shark Technology Co Ltd filed Critical Nanchang Black Shark Technology Co Ltd
Priority to CN201810559265.3A priority Critical patent/CN108834221B/en
Publication of CN108834221A publication Critical patent/CN108834221A/en
Application granted granted Critical
Publication of CN108834221B publication Critical patent/CN108834221B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • H04W76/34Selective release of ongoing connections

Landscapes

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

Abstract

The invention provides a network connection control method, a computer readable storage medium and a mobile terminal. The network connection control method comprises the following steps: s100: a mobile terminal is in communication connection with a wireless network; s200: controlling the mobile terminal to send an access request to a preset website by taking the wireless network as a route; s300: receiving access feedback for the access request over the wireless network; s400: and controlling the on-off of the mobile terminal and the wireless network according to the access feedback. By adopting the scheme, the network connection state of the mobile terminal can be identified, and the connection with the wireless network and the mobile network can be switched in time according to the connection feedback.

Description

Network connection control method, computer-readable storage medium, and mobile terminal
Technical Field
The present invention relates to the field of intelligent control, and in particular, to a network connection control method, a computer-readable storage medium, and a mobile terminal.
Background
At present, mobile terminals such as mobile phones and tablet computers have become an indispensable part of people's daily life. Such mobile terminals pay more and more attention to the development of playability and functional diversity in addition to the realization of basic communication functions. Through a plurality of application programs (APP) developed according to the requirements of users, after the authority of network connection is obtained, information of a server established by a social platform and a manufacturer developing the application programs is obtained. Therefore, maintaining the network connection state (online state) of the mobile terminal at all times becomes a basic requirement of the user of the mobile terminal.
Meanwhile, with the continuous improvement of wireless network basic equipment, wireless network environments for connecting mobile terminals are established in many outdoor areas such as restaurants, shopping malls, vehicles and the like except for homes and offices where users stay for a long time. In order to attract users to connect mobile terminals with these wireless networks and facilitate users' use, these wireless networks are mostly set to be visible and open, i.e. mobile terminals can be connected without threshold, but at the same time, in order to ensure security, the external links can be accessed through the wireless networks only by authentication after connection. Therefore, a user often encounters the situation that the mobile terminal is carried in a pocket and is automatically connected to a wireless network needing authentication, but the mobile terminal cannot be connected to an external link because the mobile terminal is not taken out to complete an authentication link, so that the mobile terminal is always connected with the wireless network, but the mobile terminal is disconnected from the outside in network communication, and the mobile terminal is influenced to receive information through the network in time.
Therefore, a new network connection control method is needed to help a user automatically identify whether a connected wireless network is an open wireless network requiring authentication, and maintain the online status of the mobile terminal through judgment.
Disclosure of Invention
In order to overcome the above technical drawbacks, an object of the present invention is to provide a network connection control method, a computer-readable storage medium, and a mobile terminal, which identify a network connection status of the mobile terminal and switch between connections with a wireless network and a mobile network in time according to connection feedback.
The invention discloses a network connection control method, which comprises the following steps:
s100: a mobile terminal is in communication connection with a wireless network;
s200: controlling the mobile terminal to send an access request to a preset website by taking the wireless network as a route;
s300: receiving access feedback for the access request over the wireless network;
s400: and controlling the on-off of the mobile terminal and the wireless network according to the access feedback.
Preferably, the step S100 of a mobile terminal communicatively connecting to a wireless network includes:
s110: a mobile terminal scans available wireless networks around;
s120: the mobile terminal is connected with an open wireless network.
Preferably, the step S200 of controlling the mobile terminal to send the access request to a predetermined website by using the wireless network as a route includes:
s210: the mobile terminal sends the access request to the wireless network through an http protocol;
s220: the wireless network judges whether the mobile terminal passes the connection verification of the wireless network;
s230: when the mobile terminal passes through the connection verification of the wireless network, the wireless network establishes an access link with the preset website and sends access feedback of successful connection to the mobile terminal; and when the mobile terminal is not verified through the connection of the wireless network, the wireless network sends access feedback of connection failure to the mobile terminal.
Preferably, when the access feedback indicates that the connection is successful, the step S400 of controlling the connection and disconnection between the mobile terminal and the wireless network according to the access feedback includes:
s410: maintaining a connection of the mobile terminal with the wireless network;
when the access feedback is a connection failure, the step S400 of controlling the connection and disconnection between the mobile terminal and the wireless network according to the access feedback includes:
s410': and disconnecting the mobile terminal from the wireless network.
Preferably, when the access feedback is connection failure, the step S400 of controlling connection and disconnection between the mobile terminal and the wireless network according to the access feedback includes:
s410': displaying a prompt window on a display interface of the mobile terminal, wherein the prompt window displays the wireless network;
s420: and receiving an operation instruction, and controlling the on-off of the mobile terminal and the wireless network according to the operation instruction.
Preferably, the step S420 of receiving the operation instruction of the user and controlling the connection and disconnection between the mobile terminal and the wireless network according to the operation instruction includes:
s421: receiving an operation instruction for ignoring the prompt window, and disconnecting the mobile terminal from the wireless network
S421': and receiving an operation instruction of connection verification through the wireless network, and maintaining the connection of the mobile terminal and the wireless network.
Preferably, in the steps S100-S400, the mobile terminal maintains a communication connection with a mobile network.
Preferably, when the mobile terminal is connected to the mobile network, no data is transmitted between the mobile terminal and the mobile network.
The invention also discloses a computer readable storage medium for a mobile terminal, on which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of the network connection control method as described above.
The invention also discloses a mobile terminal, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the steps of the network connection control method when executing the computer program.
After the technical scheme is adopted, compared with the prior art, the method has the following beneficial effects:
1. the method comprises the steps that a user operation is not needed, the mobile network is automatically switched to according to the network connection on-off condition of the mobile terminal, and the online state of the mobile terminal is kept;
2. the operation mode familiar to the user is reserved, and the learning cost of the user is saved.
Drawings
FIG. 1 is a flow chart illustrating a network connection control method according to a preferred embodiment of the present invention;
fig. 2 is a flowchart illustrating a step S200 of the network connection control method according to a preferred embodiment of the present invention;
FIG. 3 is a flow chart illustrating a network connection control method according to another preferred embodiment of the present invention;
FIG. 4 is a flow chart illustrating a network connection control method according to another preferred embodiment of the present invention;
fig. 5 is a flow chart illustrating a network connection control method according to a further preferred embodiment of the present invention.
Detailed Description
The advantages of the invention are further illustrated in the following description of specific embodiments in conjunction with the accompanying drawings.
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. Depending on context, the word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination"
In the description of the present invention, it is to be understood that the terms "longitudinal", "lateral", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on those shown in the drawings, and are merely for convenience of description and simplicity of description, but do not indicate or imply that the device or element referred to must have a particular orientation, be constructed in a particular orientation, and be operated, and thus, are not to be construed as limiting the present invention.
In the description of the present invention, unless otherwise specified and limited, it should be noted that the terms "mounted," "connected," and "connected" are to be interpreted broadly, and may be, for example, a mechanical connection or an electrical connection, a communication between two elements, a direct connection, or an indirect connection through an intermediate medium, and those skilled in the art will understand the specific meaning of the terms as they are used in the specific case.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
Referring to fig. 1, in a preferred embodiment of the present invention, the network connection of the mobile terminal is controlled according to the following steps:
s100: mobile terminal and wireless network communication connection
First, a mobile terminal needs to be controlled to connect to a wireless network under an environment covered by the wireless network. Specifically, the mobile terminal needs to open a wireless network connection function with the outside, and uses an antenna supporting a wireless network communication protocol installed in the mobile terminal, such as a Wifi antenna, to scan the surrounding environment, and after obtaining a plurality of wireless networks with different strengths, the mobile terminal usually selects a wireless network that has been connected and stored or a wireless network without a connection password. And then, a connection request is initiated to the wireless network and the wireless network is connected with each other under the same communication protocol, so that a communication link between the mobile terminal and the wireless network is established.
S200: controlling mobile terminal to send access request to a predetermined website by using wireless network as route
After the mobile terminal is connected with a wireless network, if the wireless network is connected by a user before and stores a password for connecting the wireless network, the mobile terminal can access an external network through the wireless network without obstacles and receive messages sent by each remote server; if the wireless network is a wireless network with strong openness, the security measures are usually no password connection, but the connection with the external network needs to be verified. In order to determine whether the connected wireless network is such a wireless network that needs to be verified, in step S200, after the mobile terminal completes the connection with the wireless network, the mobile terminal attempts to access a website by using the wireless network as a route, so as to determine whether the website will respond to the access request of the mobile terminal, and feed back a response result. That is to say, the mobile terminal sends an access request pointing to a predetermined website to the wireless network, and after receiving the access request, the base station or the routing device establishing the wireless network forwards the access request of the mobile terminal to the server establishing the predetermined website according to the pointing of the predetermined website, so that the access request is sent by the mobile terminal and forwarded through the wireless network. If the mobile terminal passes the verification of the wireless network, the data receiving and sending are realized according to the process, if the mobile terminal does not pass the verification of the wireless network, in the process, after the mobile terminal sends an access request pointing to the preset website to the wireless network, a base station or a routing device of the wireless network is established to confirm that the mobile terminal is the device which does not pass the verification, the access request of the mobile terminal is not forwarded to a server establishing the preset website according to the access request, and the website which needs to be verified is sent to the mobile terminal. On a display interface of the mobile terminal, if an access request of a preset website is sent by using a web browsing application, the web browsing application jumps to the website to be verified.
It is understood that the predetermined website in this embodiment may be built in the operating system of the mobile terminal by the manufacturer of the mobile terminal when the operating system of the mobile terminal is established. Or a predetermined website list consisting of a plurality of websites is established, and after the mobile terminal is connected with the wireless network each time, one or more websites are randomly or regularly taken out from the list as the predetermined websites. Similarly, any one of the website with the most connection times selected by the user, the website with the fastest response time (and updated periodically), any website in the favorite, and the like may be read from the web browsing application of the mobile terminal, and selected as the preset mode of the predetermined website.
S300: receiving access feedback for access requests over a wireless network
Step S200 is continued, and further as described above, if the mobile terminal is connected to the wireless network that has been connected and stored before, the normal use will not be described again later. If the mobile terminal is connected with a wireless network to be verified and the mobile terminal does not pass the verification of the wireless network, the wireless network sends a page which needs to pass the verification firstly and then can be connected with the preset website to the mobile terminal, the page is used as the access feedback of the wireless network, and the page is displayed as a webpage of a verification interface on the mobile terminal (if the mobile terminal is in a using or bright screen state at the moment). That is, after sending the access request to the wireless network, the mobile terminal also receives an access feedback from the wireless network whether the predetermined website is accessible.
It will also be appreciated that the access rights and access controls of different wireless networks may differ for a mobile terminal that has not been authenticated. When the mobile terminal is confirmed as a non-authenticated mobile terminal as in some embodiments, after receiving the access request, the wireless network will not forward the access request to a predetermined website, but directly reject the access request and send a notification to the mobile terminal requesting authentication; as in the wireless network in other embodiments, when it is determined that the mobile terminal is a mobile terminal that has not been authenticated, after receiving the access request, the wireless network forwards the access request to the predetermined website according to the access request, but does not forward the result of the access response to the mobile terminal directly after the response of the predetermined website, and conversely, provides an interface that needs to be authenticated to the mobile terminal, and forwards the access response to the mobile terminal after the authentication of the mobile terminal is completed. Under such a configuration, there is no need to issue an access request by the mobile terminal any more, and operation steps can be saved on the mobile terminal side.
S400: controlling the connection and disconnection of the mobile terminal and the wireless network according to the access feedback
After receiving the access feedback of the wireless network aiming at the access request, the mobile terminal determines whether to continue to be connected with the wireless network or not according to different types of the access feedback. Specifically, when the access feedback received by the mobile terminal indicates that the predetermined website has normally established a communication link with the wireless network, and the mobile terminal can access the predetermined website and other websites except the predetermined website at an unimpeded and high speed, the mobile terminal is controlled to continue to be connected with the wireless network until the connection with the wireless network is disconnected by user operation, or the mobile terminal is far away from the coverage of the wireless network and cannot be connected with the wireless network until the connection with the wireless network is disconnected; when the access feedback received by the mobile terminal fails to receive the normal feedback of the predetermined website, that is, the predetermined website cannot be opened for web browsing, it is described that, due to the setting of the wireless network, the mobile terminal may be normally connected to the external network only after a verification process, that is, if the user does not operate the mobile terminal all the time for verification, during this period of time, the mobile terminal cannot be normally connected to the external network, which affects the reception or transmission of messages by the mobile terminal through the external network and the connection with the wireless network.
Therefore, when the above situation occurs, the mobile terminal is controlled, that is, the connection between the mobile terminal and the wireless network is disconnected, for example, the wireless network connection is directly disconnected, and the connection record and the password (if any) connected with the wireless network are deleted, or the function of directly closing the connection between the mobile terminal and the wireless network is adopted, the closed state is maintained, or the mobile terminal is closed within a preset time period, and after the preset time period is consumed, the function is turned on again, and the like.
Through the configuration, the mobile terminal can automatically judge whether the wireless network can provide a data routing function for the mobile terminal under the condition that a user does not operate after being connected with the wireless network, if the judgment result is that the wireless network needs the user to actively operate to help the mobile terminal pass the verification, the connection with the wireless network is not kept, the connection with the wireless network is disconnected, and the mobile network is continuously used for carrying out data transmission with an external network. The configuration has the advantages that when the mobile terminal is always in a pocket of a user, the mobile terminal is not operated or passes through the range covered by the wireless network, the mobile terminal is connected with the wireless network, but normal communication can not be disconnected quickly after the mobile terminal is connected, the mobile terminal can be always ensured to be in an online state of receiving and sending data, and the mobile terminal is prevented from being disconnected from the network.
In step S100, the following steps are specifically performed:
s110: a mobile terminal scans available wireless networks around;
as described above, after the mobile terminal opens the function of connecting with the external wireless network, it will use the Wifi antenna installed therein to scan whether there is a wireless network that can connect within a certain range and possibly replace the mobile network and the external network for data transmission.
S120: mobile terminal is connected with an open wireless network
The results of the Wifi antenna scanning typically include the following:
A. not scanning for any wireless networks
In this case, the mobile terminal naturally needs to continue data transmission based on the mobile network.
B. Scanning the connected wireless network with the wireless network but without the open wireless network and with the encryption property
In this case, the mobile terminal continues to perform data transmission based on the mobile network as in case a.
C. Scanning wireless network, and only scanning self-encryption connected wireless network
In this case, the password that has been saved before is actively used, passes through authentication of the wireless network, and is connected to the wireless network.
D. Scanning for wireless networks, and only scanning for open wireless networks
In this case, the wireless network is connected, and the on-off of the wireless network is verified through the steps of S100-S400 of the invention.
E. Scanning to wireless network, and scanning to open wireless network, and connected wireless network with encryption property
In this case, it is preferable to select a connected wireless network, which is more secure and safe.
F. Scanning to wireless network, and scanning to open wireless network, and wireless network with encryption property, but not connected before, and without password
In this case, since other wireless networks than the open wireless network cannot be normally connected, it is preferable to select the wireless network
Therefore, in the different cases described above, it may be preferable that the mobile terminal can connect with an open wireless network when only an open wireless network is scanned or only an open wireless network is connectable, based on the security of the mobile terminal.
Referring to fig. 2, step S200 specifically includes the following steps:
s210: the mobile terminal sends an access request to the wireless network through an http protocol;
after the mobile terminal is connected with the wireless network, an http protocol can be used for sending an access request to the wireless network by utilizing a framework layer under an operating system architecture installed in the mobile terminal so as to access the preset website.
S220: the wireless network judges whether the mobile terminal passes the connection verification of the wireless network;
and on the wireless network side, verifying whether the mobile terminal passes the connection verification of the wireless network through a base station or a routing device which establishes the wireless network. Generally, for connection authentication of a wireless network, a mobile terminal is required to provide a device ID number, a designation character string, etc., a registration network ID number, etc., to the wireless network.
S230: when the mobile terminal passes through the connection verification of the wireless network, the wireless network establishes an access link with a preset website and sends access feedback of successful connection to the mobile terminal; and when the mobile terminal fails to pass the connection verification of the wireless network, the wireless network sends access feedback of connection failure to the mobile terminal.
In step S230, once the connection verification of the mobile terminal through the wireless network is performed, for example, the user is using the mobile terminal when the mobile terminal is connected to the wireless network, and the verification is completed through a series of operations in order to save traffic of the mobile network, the wireless network may naturally establish an access link with the predetermined website according to the access request, and send a successful access feedback, such as an OK value or other specific identifier, to the mobile terminal, indicating that the wireless network is in a usable state. If the mobile terminal does not pass the connection verification of the wireless network, for example, when the mobile terminal is not operated, the wireless network similarly sends an access feedback of connectivity failure, such as an ERROR value, or other specific identifier, to the mobile terminal, so that the mobile terminal performs subsequent operations after receiving the access feedback of connectivity failure.
Referring to fig. 3 and 4, for different access feedbacks, the mobile terminal may perform different subsequent operations according to the user's requirements.
Example one
In this embodiment, if the access feedback received by the mobile terminal is successful in connection, which indicates that the access can be routed through the wireless network relay normally, step S400 includes S410: the connection of the mobile terminal to the wireless network is maintained, i.e. the connection is kept uninterrupted.
Example two
In this embodiment, the access feedback received by the mobile terminal is connectivity failure, which indicates that the relay routing cannot be performed normally through the wireless network, and then step S400 includes S410': the mobile terminal is disconnected from the wireless network, i.e. no longer connected to the wireless network, and the mobile network is used instead.
EXAMPLE III
In this embodiment, the access feedback received by the mobile terminal is connectivity failure, which indicates that the relay routing cannot be performed normally through the wireless network, and step S400 includes:
s410': displaying a prompt window on a display interface of the mobile terminal, wherein the prompt window displays a wireless network;
s420: and receiving an operation instruction, and controlling the on-off of the mobile terminal and the wireless network according to the operation instruction.
That is to say, in the third embodiment, the mobile terminal does not autonomously select the final "execution right" for the user, but actively provides the "selection right" for the user, and displays a prompt window on the display interface of the mobile terminal to inform the user that the user can connect to the wireless network through the verification work, and controls the connection and disconnection between the mobile terminal and the wireless network according to the operation instruction corresponding to the operation selected by the user, such as completing the verification, not completing the verification, disconnecting the connection with the wireless network, closing the wireless network connection function of the mobile terminal, and the like.
Therefore, referring to fig. 5, in the third embodiment, it is further preferable that step S420 includes:
s421: receiving an operation instruction of ignoring the prompt window, and disconnecting the mobile terminal from the wireless network
S421': and receiving an operation instruction of connection verification through the wireless network, and maintaining the connection of the mobile terminal and the wireless network.
That is, in the third embodiment, the final determination of whether to disconnect the mobile terminal from the wireless network or to maintain the result of disconnecting the mobile terminal from the wireless network is performed according to the operation instruction provided by the user, rather than being selected autonomously, and the user who wants to have more decision rights is more in line with the use experience of the user.
In any of the above embodiments, preferably or optionally, during the execution of all steps S100 to S400, the mobile terminal maintains a communication connection with a mobile network, that is, the mobile terminal continues to operate through a mobile data service of the mobile network, but may choose not to perform data transmission, that is, only to connect without using the mobile terminal, and when the connection between the mobile terminal and the wireless network is disconnected in step S400, seamless connection may be performed, the mobile network may be directly used for taking over, the mobile data function does not need to be restarted, and the network disconnection time of the mobile terminal is shortened.
Further preferably, in another embodiment, after the mobile terminal uses the steps of the present invention for a period of time, the attributes of the common wireless network are stored and classified, and then the process is optimized for the properties of the wireless network. If the wireless network with the password is a private network, once the wireless network is connected, the security is high, and the judgment of the steps S100 to S400 may not be performed; for the wireless network that has been connected before and needs to be connected through verification, the determination in steps S100-S400 may not be executed, instead, the wireless network is not connected directly, so as to save the time for determination and maintain the state of the mobile terminal always on-line.
Having the above network connection control method, the steps corresponding to the method may be stored in a computer-readable storage medium and installed in a mobile terminal, on which a computer program is stored, which, once executed by a processor, will perform the steps in any of the above embodiments. When the computer readable storage medium is used in the intelligent terminal, the processor calls the computer readable storage medium stored in the storage period by matching with a memory fixedly installed in the mobile terminal, reads a computer program in the computer readable storage medium, can realize the network connection control method on the mobile terminal after execution, and presents the network connection control method to a user in an interactive mode.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
It should be noted that the embodiments of the present invention have been described in terms of preferred embodiments, and not by way of limitation, and that those skilled in the art can make modifications and variations of the embodiments described above without departing from the spirit of the invention.

Claims (8)

1. A network connection control method, comprising the steps of:
s100: a mobile terminal is in communication connection with a wireless network;
s200: controlling the mobile terminal to send an access request to a preset website by taking the wireless network as a route; wherein the predetermined website address is set as: when an operating system of the mobile terminal is established by a manufacturer of the mobile terminal, the operating system is built in the mobile terminal; or, establishing a preset website list consisting of a plurality of websites, and randomly or regularly taking out one or more websites from the list after the mobile terminal completes the connection with the wireless network each time; or reading any one of the websites with the most connection times, the websites with the fastest response time and any websites in the favorites selected by the periodically updated user from the webpage browsing application of the mobile terminal;
s300: receiving access feedback for the access request over the wireless network; the access feedback comprises successful communication, the preset website has normally established a communication link with the wireless network and failed to communicate, the wireless network does not forward the access request to the preset website and directly refuses the access request and fails to communicate, the wireless network forwards the access request to the preset website and needs to forward the access response after the verification is finished;
s400: controlling the on-off of the mobile terminal and the wireless network according to the access feedback;
when the access feedback is a connection failure, the step S400 of controlling the connection and disconnection between the mobile terminal and the wireless network according to the access feedback includes:
s410': displaying a prompt window on a display interface of the mobile terminal, wherein the prompt window displays the wireless network;
s420: receiving an operation instruction, and controlling the on-off of the mobile terminal and the wireless network according to the operation instruction; the operation instruction comprises the steps of completing verification, not completing verification, disconnecting the connection with a wireless network and closing the wireless network function of the mobile terminal;
in the steps S100 to S400, the mobile terminal maintains a communication connection with a mobile network, and the mobile terminal does not perform data transmission through the mobile network.
2. The network connection control method of claim 1,
step S100 of a mobile terminal communicatively connecting to a wireless network includes:
s110: a mobile terminal scans available wireless networks around;
s120: the mobile terminal is connected with an open wireless network.
3. The network connection control method of claim 1,
the step S200 of controlling the mobile terminal to send an access request to a predetermined website using the wireless network as a route includes:
s210: the mobile terminal sends the access request to the wireless network through an http protocol;
s220: the wireless network judges whether the mobile terminal passes the connection verification of the wireless network;
s230: when the mobile terminal passes through the connection verification of the wireless network, the wireless network establishes an access link with the preset website and sends access feedback of successful connection to the mobile terminal; and when the mobile terminal is not verified through the connection of the wireless network, the wireless network sends access feedback of connection failure to the mobile terminal.
4. The network connection control method of claim 3,
when the access feedback is successful, the step S400 of controlling the connection and disconnection between the mobile terminal and the wireless network according to the access feedback includes:
s410: maintaining a connection of the mobile terminal with the wireless network;
when the access feedback is a connection failure, the step S400 of controlling the connection and disconnection between the mobile terminal and the wireless network according to the access feedback includes:
s410': and disconnecting the mobile terminal from the wireless network.
5. The network connection control method of claim 1,
step S420 of receiving the operation instruction of the user and controlling the connection and disconnection between the mobile terminal and the wireless network according to the operation instruction includes:
s421: receiving an operation instruction for ignoring the prompt window, and disconnecting the mobile terminal from the wireless network
S421': and receiving an operation instruction of connection verification through the wireless network, and maintaining the connection of the mobile terminal and the wireless network.
6. The network connection control method of claim 1,
and when the mobile terminal is connected with the mobile network, no data is transmitted between the mobile terminal and the mobile network.
7. A computer-readable storage medium for a mobile terminal, having a computer program stored thereon, wherein the computer program, when being executed by a processor, is adapted to carry out the steps of the network connection control method according to any of the claims 1-6.
8. A mobile terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the network connection control method according to any of claims 1-6 when executing the computer program.
CN201810559265.3A 2018-06-01 2018-06-01 Network connection control method, computer-readable storage medium, and mobile terminal Active CN108834221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810559265.3A CN108834221B (en) 2018-06-01 2018-06-01 Network connection control method, computer-readable storage medium, and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810559265.3A CN108834221B (en) 2018-06-01 2018-06-01 Network connection control method, computer-readable storage medium, and mobile terminal

Publications (2)

Publication Number Publication Date
CN108834221A CN108834221A (en) 2018-11-16
CN108834221B true CN108834221B (en) 2022-09-20

Family

ID=64146948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810559265.3A Active CN108834221B (en) 2018-06-01 2018-06-01 Network connection control method, computer-readable storage medium, and mobile terminal

Country Status (1)

Country Link
CN (1) CN108834221B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007077234A1 (en) * 2005-12-30 2007-07-12 Siemens Aktiengesellschaft Ip address allocation method and its usage
CN102196533A (en) * 2011-04-15 2011-09-21 成都市华为赛门铁克科技有限公司 Network access control method and related device
EP2469945A1 (en) * 2010-12-23 2012-06-27 British Telecommunications public limited company WLAN location services
CN103188662A (en) * 2011-12-30 2013-07-03 中国移动通信集团广西有限公司 Method and device for verifying wireless access point
CN104159275A (en) * 2014-07-17 2014-11-19 小米科技有限责任公司 Network connection method and device

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2964814B1 (en) * 2010-09-15 2012-09-28 Alcatel Lucent SECURE REGISTRATION TO A SERVICE PROVIDED BY A WEB SERVER
CN104144163B (en) * 2014-07-24 2019-06-11 腾讯科技(深圳)有限公司 Auth method, apparatus and system
US9544838B2 (en) * 2014-08-01 2017-01-10 Apple Inc. Detecting and connecting to Wi-Fi™ networks
CN105592458B (en) * 2014-10-22 2018-10-09 中国电信股份有限公司 The authentication method and system of wireless local area network service, server
CN104320863B (en) * 2014-11-07 2017-10-31 广东欧珀移动通信有限公司 Wireless network access method and mobile terminal applied to mobile terminal
CN104852915B (en) * 2015-04-30 2019-02-22 Oppo广东移动通信有限公司 A kind of upper network control method and equipment
CN104981030B (en) * 2015-07-10 2016-11-09 努比亚技术有限公司 network connection control method and device
CN105430763A (en) * 2015-11-30 2016-03-23 上海斐讯数据通信技术有限公司 Data acquisition method and device synchronously used by WIFI (Wireless Fidelity) data and mobile data
CN105635472A (en) * 2016-01-11 2016-06-01 上海斐讯数据通信技术有限公司 Mobile terminal, and wireless local area network and mobile network concurrent method of mobile terminal
CN105848235A (en) * 2016-03-31 2016-08-10 乐视控股(北京)有限公司 Communication control method and device
CN105916150B (en) * 2016-06-30 2019-07-05 北京奇虎科技有限公司 Realize the method for connecting network and system for exempting from user's input
US10057770B2 (en) * 2016-07-28 2018-08-21 Hewlett Packard Enterprise Development Lp Deauthenticate a client device during an association validation phase based on a plurality of capabilities associated with the client device
CN106792702A (en) * 2017-01-23 2017-05-31 北京坤腾畅联科技有限公司 Router identification detection method and terminal device based on unusual route
CN107197470A (en) * 2017-05-24 2017-09-22 努比亚技术有限公司 Wireless network connecting method, mobile terminal and computer-readable recording medium
CN107294811A (en) * 2017-07-28 2017-10-24 广东欧珀移动通信有限公司 Network detecting method, network detection means and intelligent terminal
CN107484190B (en) * 2017-08-07 2019-04-12 Oppo广东移动通信有限公司 Method for connecting network, mobile terminal and computer readable storage medium
CN107395633A (en) * 2017-08-25 2017-11-24 广东欧珀移动通信有限公司 A kind of network detecting method, network detection means and intelligent terminal
CN107580336A (en) * 2017-10-30 2018-01-12 努比亚技术有限公司 A kind of method for connecting network, terminal and computer-readable recording medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007077234A1 (en) * 2005-12-30 2007-07-12 Siemens Aktiengesellschaft Ip address allocation method and its usage
EP2469945A1 (en) * 2010-12-23 2012-06-27 British Telecommunications public limited company WLAN location services
CN102196533A (en) * 2011-04-15 2011-09-21 成都市华为赛门铁克科技有限公司 Network access control method and related device
CN103188662A (en) * 2011-12-30 2013-07-03 中国移动通信集团广西有限公司 Method and device for verifying wireless access point
CN104159275A (en) * 2014-07-17 2014-11-19 小米科技有限责任公司 Network connection method and device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"S2-113649".《3GPP tsg_sa\WG2_Arch》.2011, *
Wireless_Network_Virtualization_A_Survey_Some_Research_Issues_and_Challenges;Chengchao Liang;《IEEE XPLORE》;20150312;全文 *
基于实际场景的LTE与Wi_Fi异构网布网研究;李建新;《中国优秀硕士学位论文全文数据库(电子期刊)信息科技辑》;20140325;全文 *

Also Published As

Publication number Publication date
CN108834221A (en) 2018-11-16

Similar Documents

Publication Publication Date Title
US10771955B2 (en) Method and apparatus for selecting profile of terminal in mobile network
JP6161076B2 (en) An extensible framework for wireless network connectivity
AU2004200809B2 (en) Method and system for providing data services to mobile communication terminals and mobile communication terminal therefor
CN105376738A (en) Wireless network access method, apparatus and system
JP5301131B2 (en) Wireless communication terminal and control method thereof
CN103685733A (en) Remote control method and terminal
JP2017085520A (en) Communication apparatus
CN105554845B (en) A kind of method of access, router and terminal
CN110601986A (en) Router supporting peripheral control over mobile terminal equipment, control method and device
CN108834221B (en) Network connection control method, computer-readable storage medium, and mobile terminal
US20120020341A1 (en) Method for downloading predetermined entertainment content to customers
US20120020245A1 (en) Mobile router and method for autosynching predetermined content
US8949942B2 (en) Apparatus and method for providing authorization based enhanced address book service in mobile communication system
CN108419302B (en) Communication device
US11805560B2 (en) Peer to peer communication system
US10716049B2 (en) Non-transitory computer-readable recording medium storing computer-readable instructions for communication device, communication device, and method executed by communication device
KR101012418B1 (en) Smart router, system and method for providing network service using the same
JP2010183268A (en) Message communication system, message communication method, terminal, and program
US9294632B2 (en) Mobile terminal and computer-readable recording medium for a mobile terminal using near field wireless communication to transmit a scan command to a scanning device
KR101535808B1 (en) Contents Service System and Method
KR102239919B1 (en) Apparatus and method for providing forced roaming service in wireless local area network
KR101810623B1 (en) Mobile device, control method thereof, message sending apparatus and message sending method
JP4036656B2 (en) Service control apparatus, network system, service control method for service control apparatus, and service control program for service control apparatus
JP2009122984A (en) Simplified it asset location update system
US9426803B2 (en) Base station, method for controlling base station, and information processing system

Legal Events

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