CN113038547B - Network connection method and device and mobile terminal - Google Patents

Network connection method and device and mobile terminal Download PDF

Info

Publication number
CN113038547B
CN113038547B CN201911354295.1A CN201911354295A CN113038547B CN 113038547 B CN113038547 B CN 113038547B CN 201911354295 A CN201911354295 A CN 201911354295A CN 113038547 B CN113038547 B CN 113038547B
Authority
CN
China
Prior art keywords
network
target
address
mobile terminal
target network
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
CN201911354295.1A
Other languages
Chinese (zh)
Other versions
CN113038547A (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.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN201911354295.1A priority Critical patent/CN113038547B/en
Publication of CN113038547A publication Critical patent/CN113038547A/en
Application granted granted Critical
Publication of CN113038547B publication Critical patent/CN113038547B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention provides a network connection method, a network connection device and a mobile terminal, wherein the method comprises the following steps: if the mobile terminal is switched from the current network to the target network under monitoring, judging whether the network speed of the target network connected through the current address is less than a preset threshold value; wherein, the current address is obtained by the mobile terminal registering the current network; if yes, acquiring a target address; the target address is obtained by registering a target network by the mobile terminal; the target network is connected through the target address. The invention can effectively improve the reliability of network connection, thereby improving the user experience.

Description

Network connection method and device and mobile terminal
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a network connection method, an apparatus, and a mobile terminal.
Background
With the development of RAT (Radio access technology), network connection of mobile devices such as smart phones or tablet computers is becoming more convenient, for example, the mobile devices may perform autonomous network handover based on the current environment. At present, in order to standardize the network switching, the network of the mobile terminal is switched in the following manner, and it is assumed that the mobile terminal is currently connected to the network a through an IP (Internet Protocol) address of the network a, and if the mobile terminal is to be switched from the network a to the network B, the mobile terminal will continue to use the IP address of the network a to connect to the network B.
Disclosure of Invention
In view of this, the present invention provides a network connection method, a network connection device and a mobile terminal, which can effectively improve the reliability of network connection, and further improve the user experience.
In a first aspect, an embodiment of the present invention provides a network connection method, which is applied to a mobile terminal, and the method includes: if the mobile terminal is monitored to be switched from the current network to the target network, judging whether the network speed of the target network connected through the current address is less than a preset threshold value; wherein, the current address is obtained by the mobile terminal registering the current network; if yes, acquiring a target address; wherein, the target address is obtained by the mobile terminal registering the target network; and connecting the target network through the target address.
In one embodiment, if the priority of the current network is lower than the priority of the target network, the step of switching from the current network to the target network comprises: searching a target network according to a preset protocol specification, and judging whether the searched target network meets a preset access condition; if so, registering the target network, and connecting the target network through the current address so as to switch from the current network to the target network.
In an embodiment, the step of determining whether the network speed at which the mobile terminal connects to the target network through the current address is less than a preset threshold includes: generating first communication data based on the current address through the AP side of the mobile terminal; judging whether the target network responds to the first communication data within a preset time length; if not, determining that the network speed of the target network connected through the current address is less than a preset threshold value.
In one embodiment, the step of connecting the target network via the target address includes: reporting the target address to an AP side of the mobile terminal; generating second communication data based on the target address through the AP side of the mobile terminal; judging whether the target network responds to the second communication data within a preset time length; if yes, connecting the target network through the target address.
In one embodiment, the method further comprises: if the target network does not respond to the second communication data within the preset time length, the target network is registered again to obtain a new target address, and the target network is connected through the new target address.
In one embodiment, the current network comprises an EVDO network; the target network comprises an LTE network.
In a second aspect, an embodiment of the present invention further provides a network connection apparatus, which is applied to a mobile terminal, where the apparatus includes: the judging module is used for judging whether the network speed of the mobile terminal connected with the target network through the current address is less than a preset threshold value or not if the mobile terminal is monitored to be switched from the current network to the target network; wherein, the current address is obtained by the mobile terminal registering the current network; the target address acquisition module is used for acquiring a target address when the judgment result of the judgment module is yes; wherein, the target address is obtained by the mobile terminal registering the target network; and the first connecting module is used for connecting the target network through the target address.
In one embodiment, if the priority of the current network is lower than the priority of the target network, the determining module is further configured to: searching a target network according to a preset protocol specification, and judging whether the searched target network meets a preset access condition; if so, registering the target network, and connecting the target network through the current address so as to switch from the current network to the target network.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor and a memory; the memory has stored thereon a computer program which, when executed by the processor, performs the method of any one of the aspects as provided in the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium for storing computer software instructions for use in any one of the methods provided in the first aspect.
The embodiment of the invention provides a network connection method, a network connection device and a mobile terminal. According to the method, when the network speed of the current address connected with the target network is smaller than the preset threshold value, the current address is switched to the target address, and compared with the mode that the current address is connected with the target network in the prior art, the target address obtained by registering the target network can be timely connected with the target network, so that the reliability of network connection is better improved, and the network connection experience of a user is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flowchart of a network connection method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another network connection method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a network connection device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another network connection device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the embodiments, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In view of the problem of poor reliability of the existing network connection method, the invention provides a network connection method, a network connection device and a mobile terminal to improve the problem, which can effectively improve the reliability of network connection and further improve the user experience.
To facilitate understanding of the present embodiment, first, a detailed description is given to a network connection method disclosed in the embodiment of the present invention, which is applied to a mobile terminal, such as a device applied to a smart phone or a tablet computer, with reference to a flowchart of a network connection method shown in fig. 1, the method mainly includes the following steps S102 to S106:
step S102, if the mobile terminal is monitored to be switched from the current network to the target network, whether the network speed of the target network connected through the current address is smaller than a preset threshold value is judged.
In practical application, the mobile terminal registers the current network to obtain an Internet Protocol (IP) Address corresponding to the current network, and connects to the current network through the IP corresponding to the current network, wherein the IP corresponding to the current network is also the current Address, and if the mobile terminal is switched from the current network to the target network, the current network is connected to the target network through the current Address. For example, if the mobile terminal is switched from the 3G network to the 4G network, the mobile terminal first connects to the 4G network using the IP corresponding to the 3G network, and detects the network connection speed for comparing with the preset threshold.
And step S104, if yes, acquiring the target address.
In one embodiment, the target address obtained by registration is stored in a designated area, and when the network speed of connecting with the target network through the current address is determined to be less than a preset threshold value, that is, when the network speed of connecting with the target network through the current address is determined to be less or the network connection fails, the mobile terminal can directly read the target address from the designated area, wherein the target address can be understood as an IP corresponding to the target network.
And step S106, connecting the target network through the target address.
When the network speed of connecting the target network through the current address is less than the preset threshold, it indicates that the mobile terminal cannot keep a better connection state with the target network through the current address, and in order to alleviate the problem that the user cannot surf the internet due to a poor network connection state, the embodiment of the invention adopts the target address to establish the connection between the mobile terminal and the target network.
In the network connection method provided by the embodiment of the invention, when it is monitored that the mobile terminal is switched from the current network to the target network and the network speed for connecting the target network through the current address is less than the preset threshold value, the target address obtained by registering the target network is obtained and the target network is connected through the target address. According to the method, when the network speed of the current address connected with the target network is smaller than the preset threshold value, the current address is switched to the target address, and compared with the mode that the current address is connected with the target network in the prior art, the target address obtained by registering the target network can be timely connected with the target network, so that the reliability of network connection is better improved, and the network connection experience of a user is improved.
Generally, in a data network, the network speed of a 5G network is the fastest, the network speed of a 4G network is the second, the network speed of a 3G network is the slower, and the network speed of a 2G network is the slowest, and in order to enable a user to experience a faster network connection speed, the priority of each data network is usually set according to the network connection speed, so that the mobile terminal of the user is switched to the data network with a higher priority when meeting the access condition of the data network with the higher priority.
In one embodiment, if the priority of the current network is lower than that of the target network, the embodiment of the present invention may perform handover from the current network to the target network according to the following steps (1) to (2): (1) and searching a target network according to a preset protocol standard, and judging whether the searched target network meets a preset access condition. The protocol specification may include a period for searching for a target network, so that the mobile terminal may search for the target network according to the period, and if the mobile terminal searches for a target network having a higher priority than a current network, determine whether the searched target network satisfies a preset access condition, where the preset access condition may include a frequency range or a signal strength, and the like, such as when the frequency range of the target network is within a preset range and the signal strength of the target network is greater than a preset strength threshold, it is determined that the target network satisfies the preset access condition. (2) If so, registering the target network, and connecting the target network through the current address to switch from the current network to the target network. When the searched target network meets the preset access condition, the mobile terminal registers the target network to obtain a target address corresponding to the target network, and sends a connection request to the target network through the AP side based on the current address, so that the target network is connected through the current address. For example, the current network of the mobile terminal is a 3G network, if the mobile terminal searches for a 4G network once every minute, if the searched 4G network meets the preset 4G access condition, the mobile terminal registers the 4G network to obtain a target address corresponding to the 4G network, and at this time, the mobile terminal connects to the 4G network through the current address corresponding to the 3G network, so as to implement a switching process from the 3G network to the 4G network.
In another embodiment, if the priority of the current network is higher than that of the target network, the mobile terminal switches from the current network to the target network when the preset access condition of the current network is not met, for example, the current network of the mobile terminal is a 4G network, when the mobile terminal cannot be connected to the 4G network due to the fact that the 4G network is not deployed in the area where the mobile terminal is located or due to other reasons, the mobile terminal determines whether the 3G network meets the preset 3G access condition, and connects to the 3G network through the current address corresponding to the 4G network when the 3G network meets the preset access condition, so as to implement a switching process from the 4G network to the 3G network. The 3G access condition may be different from the 4G access condition.
Considering that when the network connection speed of the mobile terminal is low, the waiting time of the user for accessing the page is prolonged, and further the user experience is poor, so that in order to reduce the waiting time of the user for accessing the page, the embodiment of the present invention determines whether the network speed of the mobile terminal for connecting with the target network through the current address is less than the preset threshold, and obtains the target address obtained by registering the target network when the determination result is yes, and further connects with the target network through the target address, wherein when determining whether the network speed of the mobile terminal for connecting with the target network through the current address is less than the preset threshold, the embodiment of the present invention can refer to the following steps a to c:
and a, generating first communication data on the basis of the current address through the AP side of the mobile terminal. In one embodiment, the mobile terminal reports the current address to the AP side, generates a connection request including the current address through the AP side, and uses the connection request including the current address as the first communication data.
And b, judging whether the target network responds to the first communication data within a preset time length. Generally, after the mobile terminal is switched from the current network to the target network, it needs to wait for several seconds (for example, 3 seconds) before the mobile terminal can successfully connect with the target network, so in order to reduce the possibility of misjudgment on the network connection state during the waiting period, in the embodiment of the present invention, whether the target network responds to the first communication data is determined within a preset time period after the mobile terminal is switched from the current network to the target network. In a specific embodiment, the timing duration of the timer T may be preset to 10 seconds, when the mobile terminal switches from the current network to the target network, the mobile terminal starts the timer T, and within 10 seconds, the mobile terminal sends the first communication data to the target network through the AP side, and detects whether the target network responds to the uplink first communication data through the AP side, where the first communication data may be TCP (Transmission Control Protocol) data.
And c, if not, determining that the network speed of the target network connected through the current address is less than a preset threshold value. When the target network responds to the first communication data within the preset time, it can be determined that the mobile terminal fails to connect the target network through the current address, that is, the network speed of the mobile terminal connecting the target network through the current address is 0, and the preset threshold value can be any constant greater than 0, so that it can be determined that the network speed of connecting the target network through the current address is less than the preset threshold value.
To facilitate understanding of step S106, the embodiment of the present invention provides a specific implementation manner of connecting to the target network through the target address, as shown in step 1 to step 5:
step 1, reporting the target address to the AP side of the mobile terminal. For example, the mobile terminal is switched from the 3G network to the 4G network, a target address corresponding to the 4G network is obtained when the mobile terminal registers the 4G network, and if it is determined that the network speed for connecting with the target network through the current address is less than a preset threshold, the target address corresponding to the 4G network is reported to the AP side, so that the AP side connects with the target network through the target address.
And 2, generating second communication data on the basis of the target address through the AP side of the mobile terminal. The second communication data is also a connection request including a destination address, and is also TCP data. For example, when the AP side receives the reported destination address corresponding to the 4G network, the AP side generates second communication data including the destination address corresponding to the 4G network, so as to request to connect to the destination network through the destination address corresponding to the 4G network.
And 3, judging whether the target network responds to the second communication data within the preset time length. If yes, executing step 4; if not, go to step 5. For example, the mobile terminal sends second communication data containing a target address corresponding to the 4G network to the target network through the AP side, and detects whether the target network responds to the second uplink communication data within a preset time duration through the AP side, and if so, may determine that the network speed for connecting to the target network through the target address is not less than a preset threshold, and may further connect to the target network through the target address.
And 4, connecting the target network through the target address. Wherein the process that the target network responds to the second communication data indicates that the mobile terminal has successfully connected to the target network through the target address. For example, the 4G network responds to the second communication data including the destination address corresponding to the 4G network, which indicates that the mobile terminal has established a connection with the 4G network through the destination address corresponding to the 4G network.
And 5, re-registering the target network to obtain a new target address, and connecting the target network through the new target address. When the AP side detects that the target network does not respond to the second uplink communication data within the preset time period, it indicates that the mobile terminal cannot maintain a better connection state with the target network through the target address, so that the mobile terminal provided in the embodiment of the present invention may perform attach again to re-register the target network to obtain a new target address, report the new target address to the AP side of the mobile terminal, the AP side generates a connection request including the new target address, and sends the connection request to the target network, if the AP side detects that the target network responds to the connection request, the mobile terminal may connect to the target network through the new target address, and if the AP side detects that the target network does not respond to the connection request, the mobile terminal repeatedly performs step 5 to perform attach again until the target network responds to the new target address, and connects to the target network through the new target address. It should be noted that the new destination address obtained by the mobile terminal every time the attach is performed may be different.
On the basis of the network connection method provided in the foregoing embodiment, an embodiment of the present invention provides a specific application example of a network connection method, where the method is applied to a mobile phone, a current network includes an evdo (Evolution Data only) network, a target network includes an LTE (Long Term Evolution) network, and referring to a flow diagram of another network connection method shown in fig. 2, the method mainly includes the following steps S202 to S214:
step S202, the mobile phone registers the EVDO network (i.e., the current network) to obtain the IP address a (i.e., the current address). The EVDO is a 3G network, when the EVDO network cell is searched by the mobile phone and the preset access condition is met, the EVDO network is registered to obtain an IP address A, and the EVDO network is connected through the IP address A.
Step S204, the mobile phone switches to the LTE network (i.e., the target network) to obtain the IP address B (i.e., the target address). The priority of the LTE network is higher than that of the EVDO network, so that when the mobile phone is connected with the EVDO network, an LTE network cell is searched according to a preset protocol specification, and when the searched LTE network cell meets a preset access condition, the LTE network is registered to obtain an IP address B, and a connection request containing the IP address A is sent to the LTE network through an AP side of the mobile phone so as to try to connect the LTE network through the IP address A.
Step S206, judging whether the mobile phone can be connected with the LTE network through the IP address A. If yes, go to step S214; if not, step S208 is performed. In practical application, whether the LTE network responds to a connection request containing an IP address A is detected through the AP side of the mobile phone, and if the LTE network does not respond to the connection request containing the IP address A, the mobile phone is determined to be incapable of connecting with the LTE network through the IP address A.
And step S208, the mobile phone is connected with the LTE network through the IP address B. When the mobile phone can not be connected with the LTE network through the IP address A, the mobile phone reports the IP address B to the AP side, and generates a connection request containing the IP address B through the AP side so as to request to connect with the LTE network.
And step S210, judging whether the mobile phone can be connected with the LTE network through the IP address B. If yes, go to step S214; if not, step S212 is performed. And the AP side detects whether the LTE network responds to the connection request containing the IP address B, and if the LTE network responds to the connection request containing the IP address B, the mobile phone is determined to be capable of connecting the LTE network through the IP address B.
Step S212, the mobile phone re-registers the LTE network to obtain an IP address C, and is connected with the LTE network through the IP address C. If the LTE network does not respond to the connection request containing the IP address B, the mobile phone re-registers the LTE network to obtain a new IP address C, and then reports the IP address C to the AP side, so that the AP side generates a connection request containing the IP address C to request to connect the LTE network. In practical application, if the IP address C still cannot be connected to the LTE network, the LTE network continues to be re-registered until an IP address that can be connected to the LTE network is obtained.
And step S214, the mobile phone is successfully connected with the LTE network.
In summary, in the network connection method provided in the embodiment of the present invention, after the mobile phone is switched from the EVDO network to the LTE network, it is determined whether the LTE network can be connected through the IP address a corresponding to the EVDO network, if the LTE network cannot be connected through the IP address a, the LTE network is connected through the IP address B corresponding to the LTE network, and if the LTE network cannot be connected through the IP address B, the IP address is obtained again until the mobile phone can establish connection with the LTE network. Compared with the prior art that the switched network is connected only through the IP address before switching, the method can better relieve the problem that the data network cannot be used due to network switching, and effectively improve the reliability of network connection.
In response to the network connection method provided in the foregoing embodiment, an embodiment of the present invention further provides a network connection device, which is applied to a mobile terminal, and referring to a schematic structural diagram of a network connection device shown in fig. 3, the network connection device mainly includes the following components:
a determining module 302, configured to determine whether a network speed for connecting the target network through the current address is less than a preset threshold value if it is monitored that the mobile terminal is switched from the current network to the target network; wherein, the current address is obtained by the mobile terminal registering the current network.
A target address obtaining module 304, configured to obtain a target address when a determination result of the determining module is yes; wherein, the target address is obtained by the mobile terminal registering the target network.
A first connection module 306, configured to connect to the target network through the target address.
Compared with the mode that the current address is only connected with the target network in the prior art, the network connection device provided by the embodiment of the invention can be used for timely connecting the target network through the target address obtained by registering the target network, thereby better improving the reliability of network connection and further improving the network connection experience of users.
In one embodiment, if the priority of the current network is lower than the priority of the target network, the determining module 302 is further configured to: searching a target network according to a preset protocol specification, and judging whether the searched target network meets a preset access condition; if so, registering the target network, and connecting the target network through the current address to switch from the current network to the target network.
In an embodiment, the determining module 302 is further configured to: generating first communication data based on the current address through an AP side of the mobile terminal; judging whether the target network responds to the first communication data within a preset time length; if not, determining that the network speed of the target network connected through the current address is less than a preset threshold value.
In one embodiment, the first connection module 306 is further configured to: reporting the target address to an AP side of the mobile terminal; generating second communication data on the basis of the target address through the AP side of the mobile terminal; judging whether the target network responds to the second communication data within a preset time length; if so, the target network is connected through the target address.
In an embodiment, the network connection apparatus further includes a second connection module, referring to the schematic structural diagram of another network connection apparatus shown in fig. 4, fig. 4 further illustrates the second connection module 402 on the basis of fig. 3, where the second connection module 402 is configured to, if the target network does not respond to the second communication data within a preset time period, re-register the target network to obtain a new target address, and connect to the target network through the new target address.
In one embodiment, the current network comprises an EVDO network; the target network includes an LTE network.
The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments.
The embodiment of the invention provides a mobile terminal, which particularly comprises a processor and a storage device; the storage means has stored thereon a computer program which, when executed by the processor, performs the method of any of the above described embodiments.
Fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention, where the mobile terminal 100 includes: the device comprises a processor 50, a memory 51, a bus 52 and a communication interface 53, wherein the processor 50, the communication interface 53 and the memory 51 are connected through the bus 52; the processor 50 is arranged to execute executable modules, such as computer programs, stored in the memory 51.
The Memory 51 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 53 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
The bus 52 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 5, but this does not indicate only one bus or one type of bus.
The memory 51 is used for storing a program, the processor 50 executes the program after receiving an execution instruction, and the method executed by the apparatus defined by the flow process disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 50, or implemented by the processor 50.
The processor 50 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 50. The Processor 50 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 51, and the processor 50 reads the information in the memory 51 and completes the steps of the method in combination with the hardware thereof.
The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the foregoing method embodiment, which is not described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A network connection method is applied to a mobile terminal, and the method comprises the following steps:
if the mobile terminal is monitored to be switched from the current network to the target network, judging whether the network speed of the target network connected through the current address is less than a preset threshold value; wherein, the current address is obtained by the mobile terminal registering the current network;
if yes, acquiring a target address; wherein, the target address is obtained by the mobile terminal registering the target network;
connecting the target network through the target address;
if the priority of the current network is lower than that of the target network, the step of switching from the current network to the target network comprises the following steps:
searching a target network according to a preset protocol specification, and judging whether the searched target network meets a preset access condition;
if yes, registering the target network, and connecting the target network through the current address so as to switch from the current network to the target network.
2. The method according to claim 1, wherein the step of determining whether the network speed of the mobile terminal connecting to the target network through the current address is less than a preset threshold value comprises:
generating first communication data based on the current address through the AP side of the mobile terminal;
judging whether the target network responds to the first communication data within a preset time length;
if not, determining that the network speed of the target network connected through the current address is less than a preset threshold value.
3. The method of claim 1, wherein the step of connecting the target network via the target address comprises:
reporting the target address to an AP side of the mobile terminal;
generating second communication data based on the target address through the AP side of the mobile terminal;
judging whether the target network responds to the second communication data within a preset time length;
if so, connecting the target network through the target address.
4. The method of claim 3, further comprising:
if the target network does not respond to the second communication data within the preset time length, the target network is registered again to obtain a new target address, and the target network is connected through the new target address.
5. The method of any of claims 1 to 4, wherein the current network comprises an EVDO network; the target network comprises an LTE network.
6. A network connection device, applied to a mobile terminal, the device comprising:
the judging module is used for judging whether the network speed of the mobile terminal connected with the target network through the current address is less than a preset threshold value or not if the mobile terminal is monitored to be switched from the current network to the target network; wherein, the current address is obtained by the mobile terminal registering the current network;
the target address acquisition module is used for acquiring a target address when the judgment result of the judgment module is yes; wherein, the target address is obtained by the mobile terminal registering the target network;
the first connection module is used for connecting the target network through the target address;
if the priority of the current network is lower than that of the target network, the judging module is further configured to:
searching a target network according to a preset protocol specification, and judging whether the searched target network meets a preset access condition;
if so, registering the target network, and connecting the target network through the current address so as to switch from the current network to the target network.
7. A mobile terminal comprising a processor and a memory;
the memory has stored thereon a computer program which, when executed by the processor, performs the method of any of claims 1 to 5.
8. A computer storage medium storing computer software instructions for use in the method of any one of claims 1 to 5.
CN201911354295.1A 2019-12-24 2019-12-24 Network connection method and device and mobile terminal Active CN113038547B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911354295.1A CN113038547B (en) 2019-12-24 2019-12-24 Network connection method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911354295.1A CN113038547B (en) 2019-12-24 2019-12-24 Network connection method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN113038547A CN113038547A (en) 2021-06-25
CN113038547B true CN113038547B (en) 2022-09-16

Family

ID=76452465

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911354295.1A Active CN113038547B (en) 2019-12-24 2019-12-24 Network connection method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN113038547B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212463A (en) * 2006-12-26 2008-07-02 联想(北京)有限公司 Dynamic IP address allocation method, system, mobile node, and access point
CN105554854A (en) * 2015-12-31 2016-05-04 天彩电子(深圳)有限公司 WIFI switching method and system in local area network
CN106507419A (en) * 2016-12-07 2017-03-15 广东欧珀移动通信有限公司 The method and device of connection Wi-Fi hotspot

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2010052920A1 (en) * 2008-11-07 2012-04-05 パナソニック株式会社 Handover method, mobile terminal and home agent used in the method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212463A (en) * 2006-12-26 2008-07-02 联想(北京)有限公司 Dynamic IP address allocation method, system, mobile node, and access point
CN105554854A (en) * 2015-12-31 2016-05-04 天彩电子(深圳)有限公司 WIFI switching method and system in local area network
CN106507419A (en) * 2016-12-07 2017-03-15 广东欧珀移动通信有限公司 The method and device of connection Wi-Fi hotspot

Also Published As

Publication number Publication date
CN113038547A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
KR101587422B1 (en) Methods and apparatus for improving a call fallback user experience
CN110572859B (en) AP switching method, device, equipment and medium
CN111586811B (en) Information processing method and terminal
CN110072244B (en) Control method and device of radio link failure timer
CN113366815A (en) Network resource request method, device, electronic equipment and storage medium
CN112243280B (en) Service initiation method, device, terminal and storage medium
CN113835771A (en) Data preloading enhancement method and device and mobile terminal
CN113038547B (en) Network connection method and device and mobile terminal
CN106686627B (en) WiFi/hotspot starting method and device
KR102351876B1 (en) Method for paging, terminal device and network device
CN114245432B (en) Network connection method, device, system, electronic equipment and storage medium
CN106105365B (en) Network switching method, device and terminal
JP5998295B2 (en) Adaptive transition of user equipment
CN112822716B (en) Control method and control device for service downloading
CN108632264B (en) Control method and device of internet access authority and server
CN112423287A (en) Control method and device for registration network, computer equipment and storage medium
CN112579956A (en) Website account management method and device and electronic equipment
CN112543464B (en) Network returning method and device and computing equipment
CN113676894A (en) Service processing method and device
CN112543476A (en) Information processing method, network node and terminal
US11546949B2 (en) Paging processing method, network device, user equipment, and computer storage medium
CN106465254B (en) Network access processing method, device and terminal
US20180007567A1 (en) Paging enhancement for signaling optimization
WO2016180230A1 (en) Method of providing early warning on large data service availability, and deice and terminal utilizing same
CN111294878B (en) Network searching method and device, storage medium and terminal

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