CN110708733A - Network connection control method and device, storage medium and electronic equipment - Google Patents

Network connection control method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110708733A
CN110708733A CN201911081951.5A CN201911081951A CN110708733A CN 110708733 A CN110708733 A CN 110708733A CN 201911081951 A CN201911081951 A CN 201911081951A CN 110708733 A CN110708733 A CN 110708733A
Authority
CN
China
Prior art keywords
network
mobile terminal
network connection
test request
abnormal
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
CN201911081951.5A
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.)
Realme Chongqing Mobile Communications Co Ltd
Original Assignee
Realme Chongqing Mobile Communications 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 Realme Chongqing Mobile Communications Co Ltd filed Critical Realme Chongqing Mobile Communications Co Ltd
Priority to CN201911081951.5A priority Critical patent/CN110708733A/en
Publication of CN110708733A publication Critical patent/CN110708733A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • H04W36/0058Transmission of hand-off measurement information, e.g. measurement reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • H04W36/0061Transmission or use of information for re-establishing the radio link of neighbour cell information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data

Landscapes

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

Abstract

The invention discloses a network connection control method, a network connection control device, a storage medium and electronic equipment, which are applied to a mobile terminal and relate to the technical field of network communication. The network connection control method comprises the following steps: sending a first network test request to a target end; the mobile terminal is in a state of accessing a first network cell; determining whether the network connection of the mobile terminal is abnormal or not according to a feedback result corresponding to the first network test request; if the network connection of the mobile terminal is abnormal, controlling the mobile terminal to access a second network cell; the second network cell is the network cell with the best network signal in the network cells adjacent to the first network cell. The method and the device can optimize network connection and ensure normal network communication.

Description

Network connection control method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of network communication technologies, and in particular, to a network connection control method, a network connection control apparatus, a storage medium, and an electronic device.
Background
With the development of information technology, mobile terminals such as mobile phones become indispensable tools for people to work and live in daily life, and as an important function of the mobile terminals, network connection is very important.
However, the network data transmission is not smooth due to the problems of poor signal quality of the network, and even more, the network may be disconnected, which seriously affects the normal use of the user.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure is directed to a network connection control method, a network connection control apparatus, a storage medium, and an electronic device, which overcome a problem that a user is affected by a bad network connection state at least to some extent.
According to a first aspect of the present disclosure, there is provided a network connection control method applied to a mobile terminal, the method including: sending a first network test request to a target end; the mobile terminal is in a state of accessing a first network cell; determining whether the network connection of the mobile terminal is abnormal or not according to a feedback result corresponding to the first network test request; if the network connection of the mobile terminal is abnormal, controlling the mobile terminal to access a second network cell; the second network cell is the network cell with the best network signal in the network cells adjacent to the first network cell.
According to a second aspect of the present disclosure, there is provided a network connection control apparatus applied to a mobile terminal, the apparatus including: the test starting module is used for sending a first network test request to the target terminal; the mobile terminal is in a state of accessing a first network cell; the abnormality judgment module is used for determining whether the network connection of the mobile terminal is abnormal or not according to a feedback result corresponding to the first network test request; the cell switching module is used for controlling the mobile terminal to access a second network cell if the network connection of the mobile terminal is abnormal; the second network cell is the network cell with the best network signal in the network cells adjacent to the first network cell.
According to a third aspect of the present disclosure, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the network connection control method described above.
According to a fourth aspect of the present disclosure, there is provided an electronic apparatus, comprising: a processor; and a memory for storing executable instructions for the processor; wherein the processor is configured to execute the network connection control method described above via execution of the executable instructions.
In the technical solutions provided by some embodiments of the present disclosure, a mobile terminal sends a network test request, determines whether a current network connection is abnormal according to a feedback result of the network test request, and automatically switches a network cell when the network connection is abnormal. By actively carrying out network test and determining whether to switch network cells according to a feedback result, the normal network connection is ensured, and the user internet experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
fig. 1 schematically illustrates a flow chart of a network connection control method according to an exemplary embodiment of the present disclosure;
fig. 2 schematically shows a flow chart of an overall network connection control procedure according to an exemplary embodiment of the present disclosure;
fig. 3 schematically illustrates a block diagram of a network connection control apparatus according to an exemplary embodiment of the present disclosure;
FIG. 4 schematically illustrates a block diagram of an anomaly determination module according to a first exemplary embodiment of the present disclosure;
FIG. 5 schematically illustrates a block diagram of an anomaly determination module according to a second exemplary embodiment of the present disclosure;
FIG. 6 schematically illustrates a block diagram of an anomaly determination module according to a third exemplary embodiment of the present disclosure;
fig. 7 schematically illustrates a block diagram of a network connection control apparatus according to another exemplary embodiment of the present disclosure;
fig. 8 schematically illustrates a block diagram of a network connection control apparatus according to yet another exemplary embodiment of the present disclosure;
fig. 9 schematically shows a block diagram of an electronic device according to an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the steps. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation. The terms "first," "second," "third," and the like as used in this disclosure are for purposes of distinction only and should not be construed as limiting the disclosure.
The network connection control method described below is applied to a mobile terminal, that is, the mobile terminal performs the respective steps of the network connection control method of the exemplary embodiment of the present disclosure. In this case, the network connection control apparatus of the exemplary embodiment of the present disclosure is disposed at the mobile terminal.
The mobile terminal according to the present disclosure may include, but is not limited to, a mobile phone, a tablet computer, a smart wearable device (e.g., a smart watch), and the like, and the type of the mobile terminal is not limited by the present disclosure.
Fig. 1 schematically shows a flowchart of a network connection control method of an exemplary embodiment of the present disclosure. Referring to fig. 1, the network connection control method may include the steps of:
s12, sending a first network test request to a target end; wherein the mobile terminal is in a state of accessing the first network cell.
In the exemplary embodiments of the present disclosure, the network cell corresponds to the coverage of the base station, for example, the mobile terminal accesses one network cell, i.e. performs network connection through a corresponding base station. Different network cells may correspond to different network systems, such as LTE (Long Term Evolution), WCDMA (Wideband Code Division Multiple Access), TDS-CDMA (Time Division-Synchronous Code Division Multiple Access), GSM (Global System for mobile communication), etc.
The target end can be any normally operating website or a server specially used for network connection testing, and the type, address and the like of the target end are not limited by the method.
The network test request according to the present disclosure may be a request generated based on Ping (Packet Internet Groper) operation. The Ping operation is an action of connecting a target network based on an ICMP (Internet Control message protocol) transport protocol, and the ICMP serves as a subprotocol of a TCP/IP protocol cluster for transmitting a Control message in front of a terminal and a router. The control messages may include messages of whether the network is clear, whether the host is reachable, whether routing is available, etc., which, although not directly transferring user data, play an important role in the delivery of user data.
The mobile terminal may send a first network test request to the target terminal, where the mobile terminal accesses the first network cell.
In one embodiment of the disclosure, the mobile terminal may detect a current network speed, and automatically perform an operation of sending the first network test request to the target terminal if the network speed is less than a network speed threshold. In another embodiment of the present disclosure, the mobile terminal may automatically perform the operation of sending the first network test request to the target terminal at intervals.
S14, determining whether the network connection of the mobile terminal is abnormal or not according to a feedback result corresponding to the first network test request.
In an exemplary embodiment of the present disclosure, after sending the first network test request to the target, the mobile terminal may determine a feedback result corresponding to the first network test request.
The feedback result corresponding to the network test request may include one or more of the following information: whether information fed back by the target terminal is received, time delay for sending the first network test request to the target terminal, time delay for sending feedback information to the mobile terminal by the target terminal and the like.
It should be understood that the feedback results characterize statistics over a period of time. That is, rather than being directed to a Ping operation only once, the feedback results are characterized after multiple Ping operations over a period of time.
According to some embodiments of the present disclosure, whether the network connection of the mobile terminal is abnormal may be determined by using whether the information fed back by the target terminal is received.
Firstly, the times of sending a first network test request and the times of receiving feedback information by the mobile terminal in a first preset time period are determined. The length of the first preset time period may be set artificially, for example, the first preset time period may be set as a unit time. Ideally, the number of times the first network test request is sent should be the same as the number of times the feedback information is received.
Next, a ratio of the number of times the feedback information is received to the number of times the first network test request is sent may be calculated, which may also be referred to as a success rate of testing the network connection. If the ratio is smaller than the first threshold, it indicates that the current network state is poor, and the network connection mode needs to be switched, that is, it is determined that the network connection of the mobile terminal is abnormal. The first threshold value can be set by a developer, and the value of the first threshold value is not limited by the disclosure.
In addition, if the ratio is greater than or equal to the first threshold, it can be considered that the current network state is not an ideal state, but does not affect normal use.
According to other embodiments of the present disclosure, whether the network connection of the mobile terminal is abnormal may be determined by using a time delay of sending the first network test request to the target and a time delay of sending the feedback information from the target to the mobile terminal. For a network test request, the two delays can be collectively recorded as round-trip delay.
Firstly, the average time delay of the mobile terminal for sending the first network test request and receiving the feedback information in a second preset time period is determined. Here, the second preset time period may be different from the first preset time period, however, the second preset time period may also be set as the unit time.
For example, 10 Ping operations are included in the second preset time period, and for each Ping operation, the sum of the time delay for sending the first network test request and the time delay for receiving the feedback information may be calculated as one round trip time delay. Thus, the average value of the 10 round trip delays is the average delay of the mobile terminal for sending the first network test request and receiving the feedback information in the second preset time period.
And then, judging whether the average time delay is greater than a second threshold, if so, indicating that the current network state is poor and the network connection mode needs to be switched, namely, determining that the network connection of the mobile terminal is abnormal. The second threshold may be tested by a developer in advance, and the value of the second threshold is not limited by the disclosure.
In addition, if the average delay is less than or equal to the second threshold, it can be considered that the current network state does not affect the normal use.
It should be understood that the determination of whether the network connection is abnormal may also be implemented by only using the time delay of the first network test request sent to the target or the time delay of the target sending the feedback information to the mobile terminal.
According to further embodiments of the present disclosure, the success rate of testing the network connection and the average time delay of the test may be integrated to determine whether the network connection of the mobile terminal is abnormal.
Firstly, determining the times of sending the first network test request and receiving the feedback information by the mobile terminal in a third preset time period, and determining the average time delay of sending the first network test request and receiving the feedback information. Wherein, the present disclosure does not limit the length of the third preset time period.
And if the ratio of the number of times of receiving the feedback information to the number of times of sending the first network test request is smaller than a third threshold value, and the average time delay of sending the first network test request and receiving the feedback information is larger than a fourth threshold value, determining that the network connection of the mobile terminal is abnormal. The third threshold may be the same as or different from the first threshold, and the fourth threshold may be the same as or different from the second threshold, and specific values of the third threshold and the fourth threshold are not limited in this disclosure.
S16, if the network connection of the mobile terminal is abnormal, controlling the mobile terminal to access a second network cell; the second network cell is the network cell with the best network signal in the network cells adjacent to the first network cell.
In the case that it is determined that the network connection is abnormal, first, the mobile terminal may determine network cells adjacent to the first network cell, and select a network cell with the best network signal from the network cells.
Next, the mobile terminal may automatically perform an operation of decreasing the signal reception quality value of the first network cell so that the signal reception quality value of the first network cell is less than the network access threshold. And, the mobile terminal may automatically perform an operation of increasing the signal reception quality value of the second network cell so that the signal reception quality value of the second network cell is greater than the network access threshold. Therefore, the mobile terminal realizes the cell switching process from the first network cell to the second network cell.
In addition, if the network cell is a 4G network cell and the TCP delay is large, the delay problem is still not solved after the handover to the adjacent 4G network cell, and the handover to the 3G network cell may be attempted. With the appearance of the 5G network cell, if the 5G network cell exists adjacently, the 5G network cell is preferentially switched to.
After switching to the network cell, or after switching the network cell for many times, if the problem of network connection abnormality still exists, the network connection mode can be further adjusted by switching the network access point.
Specifically, after switching the network cell, the mobile terminal may send a second network test request to the target terminal. In addition, it is understood that the mobile terminal may also send the second network test request to other target terminals besides the target terminal. The second network test request may also be a request corresponding to Ping operation, where "second" is only used to distinguish from the above "first" and represents a network test procedure in different stages.
Next, whether the network connection of the mobile terminal is abnormal may be determined according to a feedback result corresponding to the second network test request. This process is similar to the step of determining whether the network connection is abnormal in step S14, and is not repeated herein.
If the network connection of the mobile terminal is abnormal, whether the mobile terminal includes a plurality of network Access points is determined, and the network Access points can be represented as different APNs (Access Point names) which determine the Access mode of the mobile terminal to Access the network.
If the mobile terminal includes multiple network access points, the first network access point currently employed may be handed off to a second network access point to reestablish the network connection. Specifically, the second Network access point serves as a new access point on which a PDN (Public Data Network) connection may be established. The PDN is a wide area network established by an operator, provides a service for accessing the wide area network, and can provide a high-quality data transmission service for a user.
After the network access points are switched or the network access points are switched for many times, if the problem of abnormal network connection still exists, the network connection mode can be further adjusted by switching the data card.
Specifically, after switching the access point, the mobile terminal may send a third network test request to the target. In addition, it is understood that the mobile terminal may also send a third network test request to other target terminals besides the target terminal described above. The third network test request may also be a request corresponding to Ping operation, and the third network test request is only used for distinguishing from the first network test request and the second network test request, and is characterized by network test processes in different stages.
Next, whether the network connection of the mobile terminal is abnormal may be determined according to a feedback result corresponding to the third network test request. This process is similar to the step of determining whether the network connection is abnormal in step S14, and is not repeated herein.
And if the network connection of the mobile terminal is abnormal, judging whether the mobile terminal comprises a plurality of data cards. The data card according to the exemplary embodiment of the present disclosure may also be referred to as a mobile data card, and is a Subscriber Identity Module (SIM) card for providing a mobile terminal with an internet access function.
If the mobile terminal includes a plurality of data cards, the currently used first data card may be switched to the second data card to reestablish the connection.
It should be noted that, although the exemplary embodiment of the present disclosure performs the cell handover in the process of describing the network connection control method, if the network connection is abnormal, the network access point is handed over again, and if the problem of the network connection abnormality is still not solved, the data card handover operation is performed. However, the execution processing sequences of cell switching, network access point switching, and data card switching may be interchanged, that is, for example, data card switching may be performed first, and if the network connection is still abnormal, the other two switching manners may be performed. The combination of these switching modes in any order shall belong to the concept of the present disclosure.
The entire network connection control procedure of the exemplary embodiment of the present disclosure will be explained with reference to fig. 2.
In step S202, the mobile terminal sends a network test request, specifically, a Ping operation may be performed, and then, the mobile terminal determines whether the current network connection is abnormal by combining the feedback result, if the network connection is normal, step S202 may be performed again at a time interval, and if the network connection is abnormal, step S204 is performed.
In step S204, the mobile terminal may switch network cells; in step S206, the network test request is sent again, and whether the network connection is abnormal or not is determined, if the network connection is normal, step S202 may be executed again at a time interval, and if the network connection is abnormal, step S208 is executed.
In step S208, the mobile terminal may switch APNs, i.e. switch PDN networks; in step S210, the network test request is sent again, and whether the network connection is abnormal or not is determined, if the network connection is normal, step S202 may be executed again at a time interval, and if the network connection is abnormal, step S212 is executed.
In step S212, the data card may be switched.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Further, the present exemplary embodiment also provides a network connection control apparatus, which is applied to a mobile terminal.
Fig. 3 schematically shows a block diagram of a network connection control apparatus according to an exemplary embodiment of the present disclosure. Referring to fig. 3, the network connection control apparatus 3 according to an exemplary embodiment of the present disclosure may include a test initiation module 31, an abnormality determination module 33, and a cell switching module 35.
Specifically, the test starting module 31 may be configured to send a first network test request to the target; the mobile terminal is in a state of accessing a first network cell; the anomaly determination module 33 may be configured to determine whether the network connection of the mobile terminal is abnormal according to a feedback result corresponding to the first network test request; the cell switching module 35 may be configured to control the mobile terminal to access the second network cell if the network connection of the mobile terminal is abnormal; the second network cell is the network cell with the best network signal in the network cells adjacent to the first network cell.
By using the network connection control device of the exemplary embodiment of the disclosure, through actively performing network test and determining whether to switch network cells according to a feedback result, the network connection is ensured to be normal, and the user experience of surfing the internet is improved.
According to an exemplary embodiment of the present disclosure, referring to fig. 4, the abnormality determining module 33 may include a first abnormality determining unit 401.
Specifically, the first abnormality determination unit 401 may be configured to perform: determining the times of sending the first network test request and the times of receiving the feedback information in a first preset time period; and if the ratio of the number of times of receiving the feedback information to the number of times of sending the first network test request is smaller than a first threshold value, determining that the network connection of the mobile terminal is abnormal.
According to an exemplary embodiment of the present disclosure, referring to fig. 5, the abnormality determining module 33 may include a second abnormality determining unit 501.
Specifically, the second abnormality determination unit 501 may be configured to perform: determining the average time delay of sending the first network test request and receiving the feedback information in a second preset time period; and if the average time delay of sending the first network test request and receiving the feedback information is greater than a second threshold value, determining that the network connection of the mobile terminal is abnormal.
According to an exemplary embodiment of the present disclosure, referring to fig. 6, the abnormality determining module 33 may include a third abnormality determining unit 601.
Specifically, the third anomaly determination unit 601 may be configured to perform: determining the times of sending the first network test request and the times of receiving the feedback information and determining the average time delay of sending the first network test request and receiving the feedback information in a third preset time period; and if the ratio of the number of times of receiving the feedback information to the number of times of sending the first network test request is smaller than a third threshold value, and the average time delay of sending the first network test request and receiving the feedback information is larger than a fourth threshold value, determining that the network connection of the mobile terminal is abnormal.
According to an example embodiment of the present disclosure, the cell switching module 35 may be configured to perform: reducing the signal reception quality value of the first network cell so that the signal reception quality value of the first network cell is less than a network access threshold; and increasing the signal reception quality value of the second network cell such that the signal reception quality value of the second network cell is greater than the network access threshold.
According to an exemplary embodiment of the present disclosure, referring to fig. 7, the network connection control apparatus 7 may further include an access point switching module 71, compared to the network connection control apparatus 3.
In particular, the access point switching module 71 may be configured to perform: sending a second network test request to the target terminal, and determining whether the network connection of the mobile terminal is abnormal or not according to a feedback result corresponding to the second network test request; if the network connection of the mobile terminal is abnormal, judging whether the mobile terminal comprises a plurality of network access points; and if the mobile terminal comprises a plurality of network access points, switching the currently adopted first network access point to a second network access point so as to reestablish the network connection.
According to an exemplary embodiment of the present disclosure, referring to fig. 8, the network connection control apparatus 8 may further include a data card switching module 81, compared to the network connection control apparatus 7.
Specifically, the data card switching module 81 may be configured to perform: sending a third network test request to the target terminal, and determining whether the network connection of the mobile terminal is abnormal or not according to a feedback result corresponding to the third network test request; if the network connection of the mobile terminal is abnormal, judging whether the mobile terminal comprises a plurality of data cards; and if the mobile terminal comprises a plurality of data cards, switching the currently adopted first data card into a second data card so as to reestablish the network connection.
Since each functional module of the network connection control apparatus according to the embodiment of the present invention is the same as that in the embodiment of the present invention, it is not described herein again.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above section "exemplary methods" of the present description, when said program product is run on the terminal device.
The program product for implementing the above method according to an embodiment of the present invention may employ a portable compact disc read only memory (CD-ROM) and include program codes, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical disk, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 900 according to this embodiment of the invention is described below with reference to fig. 9. The electronic device 900 shown in fig. 9 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present invention.
As shown in fig. 9, the electronic device 900 is embodied in the form of a general purpose computing device. Components of electronic device 900 may include, but are not limited to: the at least one processing unit 910, the at least one storage unit 920, a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910), and a display unit 940.
Wherein the storage unit stores program code that is executable by the processing unit 910 to cause the processing unit 910 to perform steps according to various exemplary embodiments of the present invention described in the above section "exemplary methods" of the present specification. For example, the processing unit 910 may perform steps S12 through S16 as shown in fig. 1.
The storage unit 920 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM)9201 and/or a cache memory unit 9202, and may further include a read only memory unit (ROM) 9203.
Storage unit 920 may also include a program/utility 9204 having a set (at least one) of program modules 9205, such program modules 9205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 930 can be any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 900 may also communicate with one or more external devices 1000 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 900, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 900 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interface 950. Also, the electronic device 900 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via the network adapter 960. As shown, the network adapter 960 communicates with the other modules of the electronic device 900 via the bus 930. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (10)

1. A network connection control method is applied to a mobile terminal, and is characterized by comprising the following steps:
sending a first network test request to a target end; wherein the mobile terminal is in a state of accessing a first network cell;
determining whether the network connection of the mobile terminal is abnormal or not according to a feedback result corresponding to the first network test request;
if the network connection of the mobile terminal is abnormal, controlling the mobile terminal to access a second network cell; the second network cell is a network cell with the best network signal in network cells adjacent to the first network cell.
2. The method according to claim 1, wherein determining whether the network connection of the mobile terminal is abnormal according to the feedback result corresponding to the first network test request comprises:
determining the times of sending the first network test request and the times of receiving feedback information in a first preset time period;
and if the ratio of the number of times of receiving the feedback information to the number of times of sending the first network test request is smaller than a first threshold value, determining that the network connection of the mobile terminal is abnormal.
3. The method according to claim 1, wherein determining whether the network connection of the mobile terminal is abnormal according to the feedback result corresponding to the first network test request comprises:
determining the average time delay for sending the first network test request and receiving feedback information in a second preset time period;
and if the average time delay for sending the first network test request and receiving the feedback information is greater than a second threshold value, determining that the network connection of the mobile terminal is abnormal.
4. The method according to claim 1, wherein determining whether the network connection of the mobile terminal is abnormal according to the feedback result corresponding to the first network test request comprises:
determining the times of sending the first network test request and the times of receiving feedback information and determining the average time delay of sending the first network test request and receiving the feedback information in a third preset time period;
and if the ratio of the number of times of receiving the feedback information to the number of times of sending the first network test request is smaller than a third threshold value, and the average time delay of sending the first network test request and receiving the feedback information is larger than a fourth threshold value, determining that the network connection of the mobile terminal is abnormal.
5. The network connection control method of claim 1, wherein controlling the mobile terminal to access a second network cell comprises:
reducing the signal reception quality value of the first network cell such that the signal reception quality value of the first network cell is less than a network access threshold; and
increasing the signal reception quality value of the second network cell such that the signal reception quality value of the second network cell is greater than the network access threshold.
6. The network connection control method according to any one of claims 1 to 5, wherein after controlling the mobile terminal to access a second network cell, the network connection control method further comprises:
sending a second network test request to the target terminal, and determining whether the network connection of the mobile terminal is abnormal or not according to a feedback result corresponding to the second network test request;
if the network connection of the mobile terminal is abnormal, judging whether the mobile terminal comprises a plurality of network access points;
and if the mobile terminal comprises a plurality of network access points, switching the currently adopted first network access point to a second network access point so as to reestablish network connection.
7. The network connection control method according to claim 6, wherein after switching a currently used first network access point to a second network access point, the network connection control method further comprises:
sending a third network test request to the target terminal, and determining whether the network connection of the mobile terminal is abnormal or not according to a feedback result corresponding to the third network test request;
if the network connection of the mobile terminal is abnormal, judging whether the mobile terminal comprises a plurality of data cards;
and if the mobile terminal comprises a plurality of data cards, switching the currently adopted first data card into a second data card so as to reestablish network connection.
8. A network connection control device applied to a mobile terminal, the device comprising:
the test starting module is used for sending a first network test request to the target terminal; wherein the mobile terminal is in a state of accessing a first network cell;
the abnormality judgment module is used for determining whether the network connection of the mobile terminal is abnormal or not according to a feedback result corresponding to the first network test request;
the cell switching module is used for controlling the mobile terminal to access a second network cell if the network connection of the mobile terminal is abnormal; the second network cell is a network cell with the best network signal in network cells adjacent to the first network cell.
9. A storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the network connection control method of any one of claims 1 to 7.
10. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the network connection control method of any of claims 1-7 via execution of the executable instructions.
CN201911081951.5A 2019-11-07 2019-11-07 Network connection control method and device, storage medium and electronic equipment Pending CN110708733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911081951.5A CN110708733A (en) 2019-11-07 2019-11-07 Network connection control method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911081951.5A CN110708733A (en) 2019-11-07 2019-11-07 Network connection control method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN110708733A true CN110708733A (en) 2020-01-17

Family

ID=69204496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911081951.5A Pending CN110708733A (en) 2019-11-07 2019-11-07 Network connection control method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110708733A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111542080A (en) * 2020-06-05 2020-08-14 北京字节跳动网络技术有限公司 Mobile network recovery method and device of terminal, terminal and storage medium
CN111556541A (en) * 2020-04-30 2020-08-18 海南掌上能量传媒有限公司 Network switching method for mobile power supply leasing terminal
CN112492703A (en) * 2020-11-16 2021-03-12 珠海格力电器股份有限公司 Network connection management method, device, equipment and storage medium
CN112911633A (en) * 2021-02-08 2021-06-04 西南科技大学城市学院 Network self-adaption method and system for heat pump unit control system
CN113038563A (en) * 2021-02-24 2021-06-25 南昌黑鲨科技有限公司 Network system adjusting method and system of intelligent terminal and computer readable storage medium
CN113645675A (en) * 2021-09-08 2021-11-12 维沃移动通信有限公司 Non-independent networking NSA mode communication method and device and electronic equipment
WO2021227615A1 (en) * 2020-05-14 2021-11-18 华为技术有限公司 Method for improving call quality, and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1829369A (en) * 2006-04-07 2006-09-06 姜宏伟 Base station monitoring method based on GSM dual-network
CN101977410A (en) * 2010-10-20 2011-02-16 中兴通讯股份有限公司 Method and device for dual-network and dual-standby terminal to perform communication
CN107548114A (en) * 2017-08-28 2018-01-05 新华三技术有限公司 A kind of switching method and apparatus of SIM card
CN107770768A (en) * 2017-10-17 2018-03-06 维沃移动通信有限公司 A kind of data network restoration methods, mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1829369A (en) * 2006-04-07 2006-09-06 姜宏伟 Base station monitoring method based on GSM dual-network
CN101977410A (en) * 2010-10-20 2011-02-16 中兴通讯股份有限公司 Method and device for dual-network and dual-standby terminal to perform communication
CN107548114A (en) * 2017-08-28 2018-01-05 新华三技术有限公司 A kind of switching method and apparatus of SIM card
CN107770768A (en) * 2017-10-17 2018-03-06 维沃移动通信有限公司 A kind of data network restoration methods, mobile terminal

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111556541A (en) * 2020-04-30 2020-08-18 海南掌上能量传媒有限公司 Network switching method for mobile power supply leasing terminal
CN111556541B (en) * 2020-04-30 2022-07-29 海南掌上能量传媒有限公司 Network switching method for mobile power supply leasing terminal
WO2021227615A1 (en) * 2020-05-14 2021-11-18 华为技术有限公司 Method for improving call quality, and terminal
CN111542080A (en) * 2020-06-05 2020-08-14 北京字节跳动网络技术有限公司 Mobile network recovery method and device of terminal, terminal and storage medium
CN112492703A (en) * 2020-11-16 2021-03-12 珠海格力电器股份有限公司 Network connection management method, device, equipment and storage medium
CN112492703B (en) * 2020-11-16 2023-01-13 珠海格力电器股份有限公司 Network connection management method, device, equipment and storage medium
CN112911633A (en) * 2021-02-08 2021-06-04 西南科技大学城市学院 Network self-adaption method and system for heat pump unit control system
CN113038563A (en) * 2021-02-24 2021-06-25 南昌黑鲨科技有限公司 Network system adjusting method and system of intelligent terminal and computer readable storage medium
CN113645675A (en) * 2021-09-08 2021-11-12 维沃移动通信有限公司 Non-independent networking NSA mode communication method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN110708733A (en) Network connection control method and device, storage medium and electronic equipment
CN110868746B (en) Network switching method and device, electronic equipment and storage medium
CN110446235B (en) Call mode determination method and device, electronic equipment and storage medium
US10045263B2 (en) Network switching method and terminal device
CN111654852B (en) Data card switching method and device, terminal and storage medium
CN110784879A (en) Network mode switching test method, system, equipment and medium of communication module
US10412778B2 (en) Data transmission method and apparatus for data service
CN112235780B (en) Data service switching method, equipment, device and storage medium
EP3846538B1 (en) Method for controlling display of service identifier, and related product
CN105050123A (en) Load control method for wireless network and terminal
CN112218343B (en) Cell different frequency switching method, device and computer equipment
CN113726608B (en) Data processing method and device
CN113613239B (en) Network mode switching method, network mode switching device, medium, and electronic device
CN114079988B (en) Network link switching method and device of cluster terminal
CN113612659A (en) Equipment networking test method and device, electronic equipment and storage medium
CN111418227B (en) System switching method and device without interface between systems and storage medium
CN112615916A (en) File deployment method and device, electronic equipment and storage medium
CN112714420A (en) Network access method and device of wifi hotspot providing equipment and electronic equipment
CN113824482B (en) Antenna switching method, equipment and mobile terminal
CN114363981B (en) Network connection state switching method and device
CN108462967B (en) Mobile terminal and data service processing method thereof
CN117354769A (en) Access control method and device from remote user side to network side and storage medium
CN104660804A (en) Voice communication device
CN116887443A (en) Personal networking communication method, device, equipment and storage medium
CN114666857A (en) Communication networking control method, device, medium and electronic equipment

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: 20200117

RJ01 Rejection of invention patent application after publication