CN113015226B - Network connection method and device - Google Patents

Network connection method and device Download PDF

Info

Publication number
CN113015226B
CN113015226B CN202110204759.1A CN202110204759A CN113015226B CN 113015226 B CN113015226 B CN 113015226B CN 202110204759 A CN202110204759 A CN 202110204759A CN 113015226 B CN113015226 B CN 113015226B
Authority
CN
China
Prior art keywords
network
terminal
condition
temperature
level
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
CN202110204759.1A
Other languages
Chinese (zh)
Other versions
CN113015226A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110204759.1A priority Critical patent/CN113015226B/en
Publication of CN113015226A publication Critical patent/CN113015226A/en
Priority to PCT/CN2022/076560 priority patent/WO2022179425A1/en
Application granted granted Critical
Publication of CN113015226B publication Critical patent/CN113015226B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • 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

Landscapes

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

Abstract

The application discloses a network connection method and device, wherein the network connection method comprises the following steps: under the condition that the electronic equipment is connected to a first network, acquiring the temperature grade of the terminal and the first quality grade of the first network; and under the condition that the temperature grade and the first quality grade meet the preset conditions, the control terminal is switched to the second network, and an optimization program corresponding to the preset conditions is executed. According to the embodiment of the application, on one hand, the temperature of the terminal can be reduced, the power consumption abnormality caused by overhigh temperature of the terminal is prevented, the endurance time of the terminal is further ensured, on the other hand, the 5G network can be automatically optimized, the mobile phone is controlled to be connected to the 4G network during the period, the situation that the mobile phone is blocked and cut off for a long time is prevented, and the Internet surfing experience of a user is ensured.

Description

Network connection method and device
Technical Field
The application belongs to the technical field of communication, and particularly relates to a network connection method and device.
Background
In the related art, electronic devices such as mobile phones support a 5G network, but because the 5G power consumption is larger, the mobile phones are easy to generate heat, and the cruising ability of the mobile phones is shortened.
Meanwhile, the networking mode of the 5G network comprises independent networking (SA) and Non-independent Networking (NSA), and for the scene of the Non-independent networking, 5G current interruption is easy to exist due to the complex network structure, and a user cannot access the network.
Therefore, how to reduce the 5G current interruption and the heating caused by the 5G network is a technical problem to be solved.
Disclosure of Invention
The embodiment of the application aims to provide a network connection method and device, which can improve 5G residence rate and reduce power consumption of a 5G network.
In order to solve the technical problems, the application is realized as follows:
in a first aspect, an embodiment of the present application provides a method for connecting a terminal to a network, including:
acquiring a temperature grade of a terminal and a first quality grade of a first network under the condition that the terminal is connected to the first network;
and under the condition that the temperature grade and the first quality grade meet the preset conditions, the control terminal is switched to the second network, and an optimization program corresponding to the preset conditions is executed.
In a second aspect, an embodiment of the present application provides a terminal network connection device, including:
the acquisition module is used for acquiring the temperature grade of the terminal and the first quality grade of the first network under the condition that the terminal is connected to the first network;
and the control module is used for controlling the terminal to switch to the second network and executing an optimization program corresponding to the preset condition under the condition that the temperature grade and the first quality grade meet the preset condition.
In a third aspect, embodiments of the present application provide a terminal comprising a processor, a memory and a program or instructions stored on the provided memory and executable on the provided processor, the provided program or instructions implementing the steps of the terminal network connection method as provided in the first aspect when executed by the provided processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium, where a program or an instruction is stored, the program or the instruction provided, when executed by a processor, implement the steps of the terminal network connection method as provided in the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the provided chip includes a processor and a communication interface, where the provided communication interface is coupled to the provided processor, and where the provided processor is configured to execute a program or instructions to implement the steps of the method for connecting a terminal network as provided in the first aspect.
In the embodiment of the present application, the first network is specifically a 5G network, and the second network is specifically a 4G network, and it can be understood that the embodiment of the present application aims to solve the heat generation and current interruption situations under the "high-speed" network, so, as the network progresses, the first network may also be a "6G", "7G" or other high-speed network, and the specific network types of the first network and the second network are not limited in the embodiment of the present application.
The first network is exemplified as a 5G network. Specifically, when a terminal, such as a mobile phone or a tablet computer, is connected to a 5G network, the device continuously acquires its own temperature level and the quality level of the 5G network.
The temperature levels are preset levels divided according to the temperature values of the terminals, each level corresponds to a temperature interval, for example, a temperature interval below 30 ℃, a temperature interval between 30 ℃ and 35 ℃, a temperature interval between 1 and 35 ℃ and a temperature interval between 3 and 3, and so on, that is, the higher the temperature level, the higher the temperature of the terminal.
Similarly, the first quality level is a preset level reflecting the network connection quality of the first network, wherein the higher the first quality level is, the worse the network quality of the first network is (such as the situation of blocking, delaying, cutting off, etc.) indicated in the first quality level 0, the first quality level 1, the first quality level 2.
And continuously judging whether the temperature grade and the first quality grade meet preset conditions by the terminal, and when the preset conditions are met, temporarily disconnecting the 5G connection by the control terminal, connecting to the 4G network instead, and executing a corresponding optimization program.
According to the method and the device for monitoring the temperature of the terminal and the quality of the 5G network, when the temperature is high and/or the quality of the 5G network is poor (such as blocking or cutting off), the 5G network is temporarily disconnected and switched to the 4G network, meanwhile, according to the temperature of the terminal and/or the quality of the 5G network, an optimization program is correspondingly executed, on one hand, the temperature of the terminal can be reduced, the power consumption abnormality caused by the overhigh temperature of the terminal is prevented, further the endurance time of the terminal is guaranteed, on the other hand, the 5G network can be optimized, the mobile phone is controlled to be connected to the 4G network during the period, the situation that the mobile phone is blocked and cut off for a long time is prevented, and the Internet surfing experience of a user is improved.
Drawings
FIG. 1 illustrates one of the flowcharts of a network connection method according to an embodiment of the present application;
FIG. 2 illustrates a second flowchart of a network connection method according to an embodiment of the present application;
FIG. 3 illustrates a third flowchart of a network connection method according to an embodiment of the present application;
FIG. 4 shows a fourth flowchart of a network connection method according to an embodiment of the present application;
FIG. 5 illustrates a fifth flow chart of a network connection method according to an embodiment of the present application;
FIG. 6 shows a sixth flowchart of a network connection method according to an embodiment of the present application;
FIG. 7 illustrates a seventh of a flow chart of a network connection method according to an embodiment of the present application;
fig. 8 shows a block diagram of a network connection device according to an embodiment of the present application;
fig. 9 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The network connection method and device, the terminal and the storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
In some embodiments of the present application, fig. 1 shows one of flowcharts of a network connection method according to an embodiment of the present application, as shown in fig. 1, the network connection method includes:
step 102, acquiring a temperature grade of a terminal and a first quality grade of a first network under the condition that the terminal is connected to the first network;
and 104, under the condition that the temperature grade and the first quality grade meet the preset conditions, the control terminal is switched to the second network, and an optimization program corresponding to the preset conditions is executed.
In the embodiment of the present application, the first network is specifically a 5G network, and the second network is specifically a 4G network, and it can be understood that the embodiment of the present application aims to solve the heat generation and current interruption situations under the "high-speed" network, so, as the network progresses, the first network may also be a "6G", "7G" or other high-speed network, and the specific network types of the first network and the second network are not limited in the embodiment of the present application.
The first network is exemplified as a 5G network. Specifically, when a terminal, such as a mobile phone or a tablet computer, is connected to a 5G network, the device continuously acquires its own temperature level and the quality level of the 5G network.
The temperature levels are preset levels divided according to the temperature values of the terminals, each level corresponds to a temperature interval, for example, a temperature interval below 25 ℃, a temperature interval between 25 ℃ and 30 ℃, a temperature interval between 1 and 35 ℃, a temperature interval between 2 and 30 ℃, and the like, i.e. the higher the temperature level, the higher the temperature of the terminal.
Similarly, the first quality level is a preset level reflecting the network connection quality of the first network, wherein the higher the first quality level is, the worse the network quality of the first network is (such as the situation of blocking, delaying, cutting off, etc.) indicated in the first quality level 1, the first quality level 2, the first quality level 3.
The terminal continuously judges whether the temperature grade and the first quality grade meet preset conditions, when the preset conditions are met, the Modem is controlled to send SCG Failure signaling to the network, the terminal is controlled to temporarily disconnect 5G, the terminal is connected to the 4G network instead, and a corresponding optimization program is executed.
According to the method and the device for monitoring the temperature of the terminal and the quality of the 5G network, when the temperature is high and/or the quality of the 5G network is poor (such as blocking or cutting off), the 5G network is temporarily disconnected and switched to the 4G network, meanwhile, according to the temperature of the terminal and/or the quality of the 5G network, an optimization program is correspondingly executed, on one hand, the temperature of the terminal can be reduced, the power consumption abnormality caused by the overhigh temperature of the terminal is prevented, further the endurance time of the terminal is guaranteed, on the other hand, the 5G network can be automatically optimized, the mobile phone is controlled to be connected to the 4G network during the period, the situation that the mobile phone is blocked and cut off for a long time is prevented, and the Internet surfing experience of a user is guaranteed.
In some embodiments of the present application, fig. 2 shows a second flowchart of a network connection method according to an embodiment of the present application, and as shown in fig. 2, obtaining a temperature level of a terminal and a first quality level of a first network includes:
step 202, obtaining a current temperature value of a terminal, and determining a temperature grade according to the current temperature value;
step 204, obtaining network connection information of the first network, and determining a first quality level according to the network connection information of the first network.
In the embodiment of the application, a temperature sensor for acquiring a current temperature value is arranged on the terminal, and the current temperature level is judged through data acquired by the sensor. Specifically, the temperature levels are preset levels divided according to the temperature values of the terminals, each level corresponds to a temperature interval, for example, a temperature interval below 30 ℃, a temperature interval between 30 ℃ and 35 ℃, a temperature interval between 1 and 35 ℃, a temperature interval between 2 and 40 ℃, a temperature interval above 40 ℃, and a temperature level 3, that is, the higher the temperature of the terminal, the higher the temperature level.
When the temperature level is 0, the device temperature is normal. When the temperature level is 1, the terminal has started to generate heat. When the temperature level is 2, the terminal heating condition is serious. When the temperature level is 3, the terminal has been burned again, which may affect the user's use and even the lifetime of the electronic device.
Similarly, the first quality level is a preset level reflecting the network connection quality of the first network, and the worse the network quality of the first network (the more stuck, the more delayed, the current cut-off, etc.), the higher the first quality level. The first quality class includes: the network quality control method comprises the steps of a first quality level 0, a first quality level 1, a first quality level 2 and a first quality level 3, wherein the first quality level 0 represents that the network quality is best, the first quality level 1 represents that the network quality is fair and the user experience cannot be affected, the first quality level 2 represents that the conditions of blocking, delaying and the like affecting the internet experience occur, and the first quality level 3 represents that the current interruption occurs or the network connection is disconnected.
In some embodiments of the present application, the network connection information includes one or a combination of the following:
cell signal strength, cell signal quality, physical layer bit error rate, medium access control layer buffer, transmit power, fill bit duty cycle, packet data convergence protocol packet loss rate, service data adaptation protocol layer throughput, application user identification, network type, transmission control protocol round trip delay, transmission control protocol handshake success number, domain name system failure number, domain name system success average delay.
In this embodiment, the terminal includes an AP layer (upper layer) and a Modem layer (bottom layer), where the AP layer associates AP parameters including:
user identification (uid), network type (network type), transmission control protocol round Trip Time (Transmission Control Protocol Round-Trip Time, TCP RTT), transmission control protocol (Transmission Control Protocol, TCP) handshake success number, domain name system (Domain Name System, DNS) success number, domain Name System (DNS) failure number, domain Name System (DNS) success average Time delay, etc. are applied.
The Modem layer associates Modem parameters, and the Modem parameters comprise:
cell signal strength, cell signal quality, physical layer bit error rate, medium access control layer buffer (MAC (Media Access Control, MAC) buffer), transmit power (Txpower), fill bit duty cycle, packet data convergence protocol (Packet Data Convergence Peotocol, PDCP) packet loss rate, service data adaptation protocol (Service Data Adaptation Protocol, SDAP) layer throughput, etc.
In some embodiments of the present application, the preset conditions include a first condition, where the first condition is:
the sum of the temperature level and the first quality level is greater than or equal to a preset first threshold, and the temperature level is equal to the first threshold.
In the embodiment of the present application, the preset conditions include a first condition, and when the sum of the temperature level and the first quality level is greater than or equal to a preset first threshold value and the temperature level is equal to the first threshold value, it may be determined that the temperature level and the first quality level satisfy the first condition.
For example, assuming that the first threshold is 3, the terminal determines that the current temperature level is 3 and the first quality level of the first network is 1, then the first condition is determined to be satisfied, the current terminal has a poor network state, optimization is required, and the temperature is too high as a main factor of the poor network state.
At this time, the terminal can be optimized specifically for the temperature, so that the temperature of the terminal is reduced, abnormal power consumption caused by overhigh temperature of the terminal is prevented, the endurance time of the terminal is further ensured, and the service life of the terminal is prolonged.
In some embodiments of the present application, executing an optimization procedure corresponding to a preset condition in a case where the temperature level and the first quality level satisfy the first condition includes:
the terminal is prohibited from connecting to the first network until the temperature level is less than the second threshold.
In this embodiment of the present application, if the temperature level and the first quality level satisfy a first condition, that is, satisfy a sum of the temperature level and the first quality level, and be greater than or equal to a preset first threshold, and satisfy the temperature level equal to the first threshold, the terminal is prohibited from being connected to the first network, that is, from being connected to the 5G network, specifically, the terminal may be prohibited from reporting the B1 measurement result, so as to avoid the terminal from residing on the NR, thereby preventing the terminal from being connected to the 5G network, so as to reduce the network power consumption overhead of the terminal, and thereby reduce the temperature of the terminal.
After the terminal is forbidden to be connected to the 5G network, the temperature of the terminal is continuously acquired, and after the temperature level is smaller than a second threshold value, if the temperature level is reduced to be 1, the terminal is controlled to exit the temperature optimization program, and at the moment, the terminal can be normally connected to the 5G network.
In some embodiments of the present application, the preset conditions include a second condition, where the second condition is:
the sum of the temperature level and the first quality level is greater than or equal to a first threshold value, and the first quality level is equal to the first threshold value.
In the embodiment of the present application, the preset conditions include a second condition, and when the sum of the temperature level and the first quality level is greater than or equal to a preset first threshold value and the first quality level is equal to the first threshold value, it may be determined that the temperature level and the first quality level satisfy the second condition.
For example, assuming that the first threshold is 3, the terminal determines that the current temperature level is 1 and the first quality level of the first network is 3, then the second condition is determined to be satisfied, the current terminal has a poor network state, optimization is required, and the low quality of the 5G network connection is a main factor of the poor network state.
At this time, the terminal can be optimized specifically for the 5G network, so as to optimize the 5G network connection, control the terminal to access the Internet temporarily through the 4G network, prevent the mobile phone from being in the condition of network blocking and breaking for a long time, and ensure the Internet surfing experience of the user.
In some embodiments of the present application, fig. 3 shows a third flowchart of a network connection method according to an embodiment of the present application, and as shown in fig. 3, the control method further includes:
step 302, setting the count value of the counter to N;
step 304, prohibiting the terminal from connecting to the first network and starting a timer;
and 306, in the case that the time duration reaches the duration threshold, the control terminal is reconnected to the first network.
Wherein N is a natural number greater than zero, and the duration threshold is equal to the product of the count value and the preset unit duration.
In this embodiment of the present application, if the temperature level and the first quality level satisfy the second condition, that is, satisfy the sum of the temperature level and the first quality level, and are greater than or equal to a preset first threshold, and satisfy the first quality level equal to the first threshold, the terminal is prohibited from being connected to the first network, and the count value of the counter is set to N, where n=1, that is, the count value is 1.
Meanwhile, the interruption optimization is executed, the terminal is forbidden to be connected to the first network, namely, the terminal is forbidden to be connected to the 5G network, specifically, the terminal is prevented from residing on NR by prohibiting the terminal from reporting the B1 measurement result, the terminal is prevented from being connected to the 5G network, the Internet is accessed through the 4G network, and the mobile phone is prevented from being in the condition of network interruption and interruption for a long time.
And after the 5G connection is disconnected, the penalty timer of the terminal starts to count, and when the count duration reaches the duration threshold value, the terminal is controlled to reconnect the 5G network. In particular, when the 5G network is poor, on the one hand, the network is blocked due to the large number of current cell connections, and on the other hand, the signal coverage of the location where the user is located is weak, resulting in low signal strength. Therefore, the temporary control terminal operates in the 4G network, and is forbidden to connect to the 5G network for a certain period of time, and after the penalty timer reaches the period of time threshold, the connection to the 5G network is tried again.
The duration threshold is related to the count value of the counter, specifically, a preset unit duration may be set, for example, 2 minutes, where the duration threshold is a product of the count value and the unit duration, and in the foregoing embodiment, the duration threshold corresponds to 2 minutes, for example, where the count value n=1.
In some embodiments of the present application, fig. 4 shows a fourth flowchart of a network connection method according to an embodiment of the present application, as shown in fig. 4, after the control terminal is reconnected to the first network, the control method further includes:
step 402, resetting the counter when the first quality level is less than the third threshold value within the first preset time period;
Step 404, setting the count value of the counter to n+1 and executing the optimization procedure corresponding to the preset condition again under the condition that the first quality level is not less than the third threshold value within the first preset duration.
In the embodiment of the application, after disconnecting the 5G connection and reconnecting to the 5G network, network connection information of the 5G network is continuously acquired, and a first quality level is determined. If the first quality level is continuously smaller than the third threshold value within a period of time, the first quality level is continuously smaller than the third threshold value, the 5G network returns to normal, the current interruption phenomenon disappears, at this time, the current number of the cell connections is reduced, the network returns to smooth, the position where the user is located is possibly changed, the signal strength is enhanced, at this time, the user can smoothly access the Internet through the 5G network, therefore, the counter can be cleared, and the terminal exits from the interruption optimization program.
If the first level is still greater than or equal to the third threshold value within the first preset duration, the 5G network is still not smooth, the count value of the counter is set to be n+1, namely the duration threshold value of the penalty timer is increased, and the cut-off optimization procedure is re-executed.
Specifically, assuming that the count value n=1 of the counter when the flow break optimization program is executed for the first time, the unit time length is 2 minutes, the time length threshold corresponds to 2 minutes. At the second execution of the flow break optimization procedure, the count value n+1=2 of the counter, the duration threshold is increased to 4 minutes. And the 5G network is recovered through longer time, so that frequent network switching before the 5G network is recovered is avoided.
In some embodiments of the present application, the preset conditions include a third condition, where the third condition is:
the sum of the temperature level and the first quality level is greater than or equal to a first threshold, and both the temperature level and the first quality level are less than the first threshold.
In this embodiment of the present application, the preset conditions include a third condition, and when the sum of the temperature level and the first quality level is greater than or equal to a preset third threshold, and the temperature level and the first quality level are both less than the first threshold, it may be determined that the temperature level and the first quality level satisfy the third condition.
For example, assuming that the first threshold is 3, the terminal determines that the current temperature level is 2 and the first quality level of the first network is 2, then it is determined that the third condition is satisfied, the current terminal has a poor network state, optimization is required, and the main factor of the poor network state is not one of the temperature or the 5G network.
At this moment, the terminal is comprehensively optimized, namely, the temperature and 5G network connection are simultaneously optimized, specifically, the control terminal temporarily accesses the Internet through the 4G network, on one hand, the temperature of the terminal can be reduced, the power consumption abnormality caused by overhigh temperature of the terminal is prevented, the endurance time of the terminal is further ensured, on the other hand, the 5G network can be automatically optimized, the mobile phone is controlled to be connected to the 4G network during the period, the situation that the mobile phone is blocked and cut off is prevented, and the Internet surfing experience of a user is ensured.
In some embodiments of the present application, fig. 5 shows a fifth flowchart of a network connection method according to an embodiment of the present application, and as shown in fig. 5, in a case where the temperature level and the first quality level satisfy the third condition, executing an optimization procedure corresponding to the preset condition includes:
step 502, a control terminal is switched to a first network;
step 504, under the condition that the temperature level and the first quality level still meet the third condition, the control terminal disconnects the first network and starts a timer;
step 506, in the case that the time duration reaches the duration threshold, the control terminal is reconnected to the first network.
In an embodiment of the present application, the integrated optimization is started when the third condition is satisfied. Because the temperature of the current terminal is not too high and the network does not reach the condition of cutoff, after the control terminal is switched to the second network, the control terminal can be switched back to the first network, namely the network switching of '5G-4G-5G' is automatically executed, which is equivalent to the control terminal being reconnected to the 5G network and judging whether the problem of network blocking is solved.
If the third condition is still met at this time, i.e. the network state is not improved, the 5G network is disconnected again, the terminal is connected to the 4G network, and the penalty timer starts the timer. Here, similar to the step of optimizing the interruption, the temporary control terminal operates in the 4G network, and prohibits the connection to the 5G network for a certain period of time, specifically, after the penalty timer reaches the period threshold, the connection to the 5G network is tried again.
The duration threshold is also related to the count value of the counter, specifically, assuming that the preset unit duration is 2 minutes, and in the case of the count value n=1, the duration threshold corresponds to 2 minutes.
In some embodiments of the present application, fig. 6 shows a sixth flowchart of a network connection method according to an embodiment of the present application, as shown in fig. 6, after the control terminal is reconnected to the first network, the control method further includes:
step 602, resetting the counter when the temperature level and the first quality level no longer satisfy the third condition;
in step 604, in the case that the temperature level and the first quality level still satisfy the third condition, the count of the counter is set to n+1, and the optimization procedure corresponding to the preset condition is executed again.
In the embodiment of the application, after the 5G connection is disconnected again and the 5G network is reconnected, network connection information of the 5G network and temperature information of the terminal are continuously acquired, and whether the temperature level and the first quality level meet the third condition is determined.
If the temperature grade and the first quality grade no longer meet the third condition after being reconnected to the 5G network, the networking state of the terminal is improved, and at the moment, the user can smoothly access the Internet through the 5G network, so that the counter can be cleared, and the terminal exits the comprehensive optimization program.
And if the temperature level and the first quality level still meet the third condition after reconnecting to the 5G network, indicating that the networking state of the terminal is not improved at the moment, setting the count value of the counter to be N+1, namely increasing the duration threshold of the penalty timer, and re-executing the cut-off optimization procedure.
Specifically, assuming that the count value n=1 of the counter is 2 minutes when the 5G network is disconnected for the second time, the threshold value of the duration of the 5G network is disconnected for the second time is 2 minutes. When the 5G network is disconnected for the third time, the count value of the counter is n+1=2, the time length threshold of the penalty timer is increased to 4 minutes, the 5G network is recovered through longer time, and frequent network switching before the 5G network is recovered is avoided.
In some embodiments of the present application, fig. 7 shows a seventh flowchart of a network connection method according to an embodiment of the present application, as shown in fig. 7, after the control terminal is switched to the second network, the control method further includes:
step 702, obtaining network connection information of a second network, and determining a second quality level according to the network connection information of the second network;
step 704, obtaining the cell state information of the current cell when the second quality level is greater than the fourth threshold;
And step 706, if the cell state information is in an abnormal state, the control terminal stops connecting the current cell within a second preset duration.
In the embodiment of the present application, after the terminal is connected to the second network connection, that is, to the 4G network, the second quality level of the 4G network is evaluated according to the network connection information of the 4G network. If the second quality level is greater than the fourth threshold, it means that the 4G network is not smooth, and at this time, it is determined whether the current cell is in an abnormal state, specifically, the current cell state may be obtained through big data, and if the number of resident users of the currently connected base station exceeds 5 and the average value of handshake timeout failure rates of the users is greater than 60%, it may be determined that the current cell state is in an abnormal state, at this time, the control terminal stops connecting to the current cell within a second preset duration, specifically, may adopt a forbidden cell operation, reduce the priority of the cell, so that the terminal does not reside in the cell as much as possible when searching for the network, thereby avoiding that the abnormal cell affects the internet surfing experience of the user.
Alternatively, the terminal may search whether there is a suitable neighbor cell in the vicinity of the current cell, preferentially connecting to the suitable neighbor cell. When there is a neighboring cell whose signal strength satisfies a preset strength range, the cell can be considered as a suitable neighboring cell.
The preset intensity range may be rsrp > -110dBm & & rsrq > -12dB.
In some embodiments of the present application, the network connection method further includes:
and under the condition that the second quality level is larger than a fifth threshold value, the control terminal disconnects the network in a third preset time period, wherein the fifth threshold value is larger than a fourth threshold value.
In this embodiment of the present application, if the second quality level is greater than the fifth threshold, it is indicated that the 4G network is also disconnected, and at this time, neither the 4G network nor the 5G network can be smoothly connected, and at this time, the control terminal disconnects the network, i.e. completely restarts the network. During the period, a punishment timer can be set, the control terminal is kept in a state of closing NR within a third preset time period, and after the time period of the punishment timer reaches the third preset time period, the NR is restarted, namely the control terminal is controlled to restart common sense networking.
In the case that the terminal cannot normally connect to the network, the 4G network and the 5G network of the terminal are restored to be normal by attempting to restart the network connection of the terminal.
In some embodiments of the present application, the network connection method further includes:
receiving a network restarting instruction;
and responding to the network restarting instruction, controlling the terminal to restart the network connection, and resetting the count value of the counter.
In this embodiment of the present application, the network restart instruction may be an instruction for opening/closing the flight mode, and after receiving the network restart instruction, the terminal restarts the network connection, specifically, closes a program and hardware related to the network connection, restarts after a delay, and returns the 4G and 5G networks of the terminal to normal by attempting to restart the network connection of the terminal.
Since the network connection of the terminal is restarted, the currently running optimization program can be terminated, and the count value of the counter is cleared. And the terminal re-acquires the temperature grade and the first quality grade of the first network, and re-executes the optimization program corresponding to the preset condition under the condition that the temperature grade and the first quality grade meet the preset condition.
In some embodiments of the present application, fig. 8 shows a block diagram of a network connection device according to an embodiment of the present application, and as shown in fig. 8, a network connection device 800 includes:
an obtaining module 802, configured to obtain, in a case where the terminal is connected to the first network, a temperature level of the terminal and a first quality level of the first network;
the control module 804 is configured to control the terminal to switch to the second network and execute an optimization procedure corresponding to the preset condition when the temperature level and the first quality level satisfy the preset condition.
In the embodiment of the present application, the first network is specifically a 5G network, and the second network is specifically a 4G network, and it can be understood that the embodiment of the present application aims to solve the heat generation and current interruption situations under the "high-speed" network, so, as the network progresses, the first network may also be a "6G", "7G" or other high-speed network, and the specific network types of the first network and the second network are not limited in the embodiment of the present application.
The first network is exemplified as a 5G network. Specifically, when a terminal, such as a mobile phone or a tablet computer, is connected to a 5G network, the device continuously acquires its own temperature level and the quality level of the 5G network.
The temperature levels are preset levels divided according to the temperature values of the terminals, each level corresponds to a temperature interval, for example, a temperature interval below 25 ℃, a temperature interval between 25 ℃ and 30 ℃, a temperature interval between 1 and 35 ℃, a temperature interval between 2 and 30 ℃, and the like, i.e. the higher the temperature level, the higher the temperature of the terminal.
Similarly, the first quality level is a preset level reflecting the network connection quality of the first network, wherein the higher the first quality level is, the worse the network quality of the first network is (such as the situation of blocking, delaying, cutting off, etc.) indicated in the first quality level 1, the first quality level 2, the first quality level 3.
The terminal continuously judges whether the temperature grade and the first quality grade meet preset conditions, when the preset conditions are met, the Modem is controlled to send SCGFailur signaling to the network, the terminal is controlled to temporarily disconnect 5G, the terminal is connected to the 4G network instead, and a corresponding optimization program is executed.
According to the method and the device for monitoring the temperature of the terminal and the quality of the 5G network, when the temperature is high and/or the quality of the 5G network is poor (such as blocking or cutting off), the 5G network is temporarily disconnected and switched to the 4G network, meanwhile, according to the temperature of the terminal and/or the quality of the 5G network, an optimization program is correspondingly executed, on one hand, the temperature of the terminal can be reduced, the power consumption abnormality caused by the overhigh temperature of the terminal is prevented, further the endurance time of the terminal is guaranteed, on the other hand, the 5G network can be automatically optimized, the mobile phone is controlled to be connected to the 4G network during the period, the situation that the mobile phone is blocked and cut off for a long time is prevented, and the Internet surfing experience of a user is guaranteed.
The acquiring module 802 is specifically configured to acquire a current temperature value of the terminal, and determine a temperature level according to the current temperature value; and
network connection information of a first network is obtained, and a first quality level is determined according to the network connection information of the first network.
The terminal is provided with a temperature sensor for acquiring a current temperature value, and the current temperature level is judged through data acquired by the sensor. Specifically, the temperature levels are preset levels divided according to the temperature values of the terminals, each level corresponds to a temperature interval, for example, a temperature interval below 30 ℃, a temperature interval between 30 ℃ and 35 ℃, a temperature interval between 1 and 35 ℃, a temperature interval between 2 and 40 ℃, a temperature interval above 40 ℃, and a temperature level 3, that is, the higher the temperature of the terminal, the higher the temperature level.
When the temperature level is 0, the device temperature is normal. When the temperature level is 1, the terminal has started to generate heat. When the temperature level is 2, the terminal heating condition is serious. When the temperature level is 3, the terminal has been burned again, which may affect the user's use and even the lifetime of the electronic device.
Similarly, the first quality level is a preset level reflecting the network connection quality of the first network, and the worse the network quality of the first network (the more stuck, the more delayed, the current cut-off, etc.), the higher the first quality level. The first quality class includes: the network quality control method comprises the steps of a first quality level 0, a first quality level 1, a first quality level 2 and a first quality level 3, wherein the first quality level 0 represents that the network quality is best, the first quality level 1 represents that the network quality is fair and the user experience cannot be affected, the first quality level 2 represents that the conditions of blocking, delaying and the like affecting the internet experience occur, and the first quality level 3 represents that the current interruption occurs or the network connection is disconnected.
Wherein the network connection information includes one or a combination of the following:
cell signal strength, cell signal quality, physical layer bit error rate, medium access control layer buffer, transmit power, fill bit duty cycle, packet data convergence protocol packet loss rate, service data adaptation protocol layer throughput, application user identification, network type, transmission control protocol round trip delay, transmission control protocol handshake success number, domain name system failure number, domain name system success average delay.
The terminal comprises an AP layer (upper layer) and a Modem layer (bottom layer), wherein the AP layer is associated with AP parameters, and the AP parameters comprise:
user identification (uid), network type (network type), transmission control protocol round Trip Time (Transmission Control Protocol Round-Trip Time, TCP RTT), transmission control protocol (Transmission Control Protocol, TCP) handshake success number, domain name system (Domain Name System, DNS) success number, domain Name System (DNS) failure number, domain Name System (DNS) success average Time delay, etc. are applied.
The Modem layer associates Modem parameters, and the Modem parameters comprise:
cell signal strength, cell signal quality, physical layer bit error rate, medium access control layer buffer (MAC (Media Access Control, MAC) buffer), transmit power (Txpower), fill bit duty cycle, packet data convergence protocol (Packet Data Convergence Peotocol, PDCP) packet loss rate, service data adaptation protocol (Service Data Adaptation Protocol, SDAP) layer throughput, etc.
The preset conditions comprise first conditions, wherein the first conditions are as follows: the sum of the temperature level and the first quality level is greater than or equal to a preset first threshold, and the temperature level is equal to the first threshold.
The preset conditions include a first condition, and when the sum of the temperature level and the first quality level is greater than or equal to a preset first threshold value and the temperature level is equal to the first threshold value, it may be determined that the temperature level and the first quality level satisfy the first condition.
For example, assuming that the first threshold is 3, the terminal determines that the current temperature level is 3 and the first quality level of the first network is 1, then the first condition is determined to be satisfied, the current terminal has a poor network state, optimization is required, and the temperature is too high as a main factor of the poor network state.
At this time, the terminal can be optimized specifically for the temperature, so that the temperature of the terminal is reduced, abnormal power consumption caused by overhigh temperature of the terminal is prevented, the endurance time of the terminal is further ensured, and the service life of the terminal is prolonged.
The control module 804 executes an optimization procedure corresponding to a preset condition when the temperature level and the first quality level meet the first condition, including:
The terminal is prohibited from connecting to the first network until the temperature level is less than the second threshold.
If the temperature level and the first quality level meet a first condition, that is, the sum of the temperature level and the first quality level is greater than or equal to a preset first threshold value, and the temperature level is equal to the first threshold value, the terminal is prohibited from being connected to the first network, that is, the terminal is prohibited from being connected to the 5G network, specifically, the terminal is prevented from being resident in NR by prohibiting the terminal from reporting the B1 measurement result, so that the terminal is prevented from being connected to the 5G network, the network power consumption overhead of the terminal is reduced, and the temperature of the terminal is reduced.
After the terminal is forbidden to be connected to the 5G network, the temperature of the terminal is continuously acquired, and after the temperature level is smaller than a second threshold value, if the temperature level is reduced to be 1, the terminal is controlled to exit the temperature optimization program, and at the moment, the terminal can be normally connected to the 5G network.
The preset conditions include a second condition, where the second condition is:
the sum of the temperature level and the first quality level is greater than or equal to a first threshold value, and the first quality level is equal to the first threshold value.
The preset conditions include a second condition, and when the sum of the temperature level and the first quality level is greater than or equal to a preset first threshold value and the first quality level is equal to the first threshold value, it may be determined that the temperature level and the first quality level satisfy the second condition.
For example, assuming that the first threshold is 3, the terminal determines that the current temperature level is 1 and the first quality level of the first network is 3, then the second condition is determined to be satisfied, the current terminal has a poor network state, optimization is required, and the low quality of the 5G network connection is a main factor of the poor network state.
At this time, the terminal can be optimized specifically for the 5G network, so as to optimize the 5G network connection, control the terminal to access the Internet temporarily through the 4G network, prevent the mobile phone from being in the condition of network blocking and breaking for a long time, and ensure the Internet surfing experience of the user.
The control module 804 is further configured to set a count value of the counter to N; prohibiting the terminal from being connected to the first network and starting a timer; and under the condition that the timing duration reaches the duration threshold value, the control terminal is reconnected to the first network.
Wherein N is a natural number greater than zero, and the duration threshold is equal to the product of the count value and the preset unit duration.
If the temperature level and the first quality level meet the second condition, namely, the sum of the temperature level and the first quality level is greater than or equal to a preset first threshold value, and the first quality level is equal to the first threshold value, the terminal is forbidden to be connected to the first network, the count value of the counter is set to be N, and n=1 is taken here, namely, the count value is 1.
Meanwhile, the interruption optimization is executed, the terminal is forbidden to be connected to the first network, namely, the terminal is forbidden to be connected to the 5G network, specifically, the terminal is prevented from residing on NR by prohibiting the terminal from reporting the B1 measurement result, the terminal is prevented from being connected to the 5G network, the Internet is accessed through the 4G network, and the mobile phone is prevented from being in the condition of network interruption and interruption for a long time.
And after the 5G connection is disconnected, the penalty timer of the terminal starts to count, and when the count duration reaches the duration threshold value, the terminal is controlled to reconnect the 5G network. In particular, when the 5G network is poor, on the one hand, the network is blocked due to the large number of current cell connections, and on the other hand, the signal coverage of the location where the user is located is weak, resulting in low signal strength. Therefore, the temporary control terminal operates in the 4G network, and is forbidden to connect to the 5G network for a certain period of time, and after the penalty timer reaches the period of time threshold, the connection to the 5G network is tried again.
The duration threshold is related to the count value of the counter, specifically, a preset unit duration may be set, for example, 2 minutes, where the duration threshold is a product of the count value and the unit duration, and in the foregoing embodiment, the duration threshold corresponds to 2 minutes, for example, where the count value n=1.
The control module 804 is further configured to clear the counter when the first quality level is less than the third threshold within the first preset duration; and setting the count value of the counter to be N+1 under the condition that the first quality grade is not smaller than the third threshold value within the first preset time period, and executing the optimization program corresponding to the preset condition again.
After disconnecting the 5G connection and reconnecting to the 5G network, continuously acquiring network connection information of the 5G network, and determining a first quality level. If the first quality level is continuously smaller than the third threshold value within a period of time, the first quality level is continuously smaller than the third threshold value, the 5G network returns to normal, the current interruption phenomenon disappears, at this time, the current number of the cell connections is reduced, the network returns to smooth, the position where the user is located is possibly changed, the signal strength is enhanced, at this time, the user can smoothly access the Internet through the 5G network, therefore, the counter can be cleared, and the terminal exits from the interruption optimization program.
If the first level is still greater than or equal to the third threshold value within the first preset duration, the 5G network is still not smooth, the count value of the counter is set to be n+1, namely the duration threshold value of the penalty timer is increased, and the cut-off optimization procedure is re-executed.
Specifically, assuming that the count value n=1 of the counter when the flow break optimization program is executed for the first time, the unit time length is 2 minutes, the time length threshold corresponds to 2 minutes. At the second execution of the flow break optimization procedure, the count value n+1=2 of the counter, the duration threshold is increased to 4 minutes. And the 5G network is recovered through longer time, so that frequent network switching before the 5G network is recovered is avoided.
The preset conditions include a third condition, where the third condition is:
the sum of the temperature level and the first quality level is greater than or equal to a first threshold, and both the temperature level and the first quality level are less than the first threshold.
The preset conditions include a third condition, and when the sum of the temperature level and the first quality level is greater than or equal to a preset third threshold value and the temperature level and the first quality level are both smaller than the first threshold value, it may be determined that the temperature level and the first quality level satisfy the third condition.
For example, assuming that the first threshold is 3, the terminal determines that the current temperature level is 2 and the first quality level of the first network is 2, then it is determined that the third condition is satisfied, the current terminal has a poor network state, optimization is required, and the main factor of the poor network state is not one of the temperature or the 5G network.
At this moment, the terminal is comprehensively optimized, namely, the temperature and 5G network connection are simultaneously optimized, specifically, the control terminal temporarily accesses the Internet through the 4G network, on one hand, the temperature of the terminal can be reduced, the power consumption abnormality caused by overhigh temperature of the terminal is prevented, the endurance time of the terminal is further ensured, on the other hand, the 5G network can be automatically optimized, the mobile phone is controlled to be connected to the 4G network during the period, the situation that the mobile phone is blocked and cut off is prevented, and the Internet surfing experience of a user is ensured.
The control module 804 is further configured to control the terminal to switch to the first network; under the condition that the temperature grade and the first quality grade still meet the third condition, the control terminal disconnects the first network and starts a timer; and under the condition that the timing duration reaches the duration threshold value, the control terminal is reconnected to the first network.
And when the third condition is met, starting comprehensive optimization. Because the temperature of the current terminal is not too high and the network does not reach the condition of cutoff, after the control terminal is switched to the second network, the control terminal can be switched back to the first network, namely the network switching of '5G-4G-5G' is automatically executed, which is equivalent to the control terminal being reconnected to the 5G network and judging whether the problem of network blocking is solved.
If the third condition is still met at this time, i.e. the network state is not improved, the 5G network is disconnected again, the terminal is connected to the 4G network, and the penalty timer starts the timer. Here, similar to the step of optimizing the interruption, the temporary control terminal operates in the 4G network, and prohibits the connection to the 5G network for a certain period of time, specifically, after the penalty timer reaches the period threshold, the connection to the 5G network is tried again.
The duration threshold is also related to the count value of the counter, specifically, assuming that the preset unit duration is 2 minutes, and in the case of the count value n=1, the duration threshold corresponds to 2 minutes.
The control module 804 is further configured to zero the counter if the temperature level and the first quality level no longer satisfy the third condition; and setting the count of the counter to be n+1 under the condition that the temperature grade and the first quality grade still meet the third condition, and executing the optimization program corresponding to the preset condition again.
After the 5G connection is disconnected again and the 5G network is reconnected, continuously acquiring network connection information of the 5G network and temperature information of the terminal, and determining whether the temperature level and the first quality level meet a third condition.
If the temperature grade and the first quality grade no longer meet the third condition after being reconnected to the 5G network, the networking state of the terminal is improved, and at the moment, the user can smoothly access the Internet through the 5G network, so that the counter can be cleared, and the terminal exits the comprehensive optimization program.
And if the temperature level and the first quality level still meet the third condition after reconnecting to the 5G network, indicating that the networking state of the terminal is not improved at the moment, setting the count value of the counter to be N+1, namely increasing the duration threshold of the penalty timer, and re-executing the cut-off optimization procedure.
Specifically, assuming that the count value n=1 of the counter is 2 minutes when the 5G network is disconnected for the second time, the threshold value of the duration of the 5G network is disconnected for the second time is 2 minutes. When the 5G network is disconnected for the third time, the count value of the counter is n+1=2, the time length threshold of the penalty timer is increased to 4 minutes, the 5G network is recovered through longer time, and frequent network switching before the 5G network is recovered is avoided.
The obtaining module 802 is further configured to obtain network connection information of a second network, and determine a second quality level according to the network connection information of the second network; acquiring cell state information of the current cell under the condition that the second quality level is larger than a fourth threshold value;
The control module 804 is configured to control the terminal to stop connecting to the current cell within a second preset duration when the cell state information is in an abnormal state.
After the terminal is connected to the second network connection, i.e. to the 4G network, the second quality class of the 4G network is evaluated based on the network connection information of the 4G network. If the second quality level is greater than the fourth threshold, it means that the 4G network is not smooth, and at this time, it is determined whether the current cell is in an abnormal state, specifically, the current cell state may be obtained through big data, and if the number of resident users of the currently connected base station exceeds 5 and the average value of handshake timeout failure rates of the users is greater than 60%, it may be determined that the current cell state is in an abnormal state, at this time, the control terminal stops connecting to the current cell within a second preset duration, specifically, may adopt a forbidden cell operation, reduce the priority of the cell, so that the terminal does not reside in the cell as much as possible when searching for the network, thereby avoiding that the abnormal cell affects the internet surfing experience of the user.
Alternatively, the terminal may search whether there is a suitable neighbor cell in the vicinity of the current cell, preferentially connecting to the suitable neighbor cell. When there is a neighboring cell whose signal strength satisfies a preset strength range, the cell can be considered as a suitable neighboring cell.
The preset intensity range may be rsrp > -110dBm & & rsrq > -12dB.
The control module 804 is further configured to control the terminal to disconnect the network for a third preset duration if the second quality level is greater than a fifth threshold, where the fifth threshold is greater than the fourth threshold.
In this embodiment of the present application, if the second quality level is greater than the fifth threshold, it is indicated that the 4G network is also disconnected, and at this time, neither the 4G network nor the 5G network can be smoothly connected, and at this time, the control terminal disconnects the network, i.e. completely restarts the network. During the period, a punishment timer can be set, the control terminal is kept in a state of closing NR within a third preset time period, and after the time period of the punishment timer reaches the third preset time period, the NR is restarted, namely the control terminal is controlled to restart common sense networking.
In the case that the terminal cannot normally connect to the network, the 4G network and the 5G network of the terminal are restored to be normal by attempting to restart the network connection of the terminal.
The control module 804 is further configured to receive a network restart instruction;
and responding to the network restarting instruction, controlling the terminal to restart the network connection, and resetting the count value of the counter.
The network restart instruction may be an instruction for opening/closing the flight mode, and after receiving the network restart instruction, the terminal restarts the network connection, specifically, closes a program and hardware related to the network connection, restarts after delay, and returns the 4G and 5G networks of the terminal to normal by attempting to restart the network connection of the terminal.
Since the network connection of the terminal is restarted, the currently running optimization program can be terminated, and the count value of the counter is cleared. And the terminal re-acquires the temperature grade and the first quality grade of the first network, and re-executes the optimization program corresponding to the preset condition under the condition that the temperature grade and the first quality grade meet the preset condition.
The control device of the terminal in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in the terminal. The device may be a mobile terminal or a non-mobile terminal. By way of example, the mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile terminal may be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine or a self-service machine, etc., and the embodiments of the present application are not limited in particular.
The control device of the terminal in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
Optionally, the embodiment of the present application further provides an electronic device 1900, including a processor 1910, a memory 1909, and a program or an instruction stored in the memory 1909 and capable of being executed on the processor 1910, where the program or the instruction implements each process of the above-mentioned network connection method embodiment when executed by the processor 1910, and the same technical effects can be achieved, so that repetition is avoided, and details are not repeated here.
It should be noted that, the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 9 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1900 includes, but is not limited to: radio frequency unit 1901, network module 1902, audio output unit 1903, input unit 1904, sensor 1905, display unit 1906, user input unit 1907, interface unit 1908, memory 1909, and processor 1910.
Those skilled in the art will appreciate that the electronic device 1900 may further include a power source 1911 (e.g., a battery) for powering the various components, wherein the power source 1911 may be logically coupled to the processor 1910 by a power management system for performing functions such as managing charging, discharging, and power consumption by the power management system. The electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The radio frequency unit 1901 is configured to transmit and receive the radio frequency signal of the first network and the radio frequency signal of the second network. The network module 1902 is configured to connect the first network and the second network, and obtain network connection information of the first network and the second network to determine a corresponding network quality level.
The sensor 1905 can acquire temperature information of the electronic device to determine a temperature level of the electronic device.
The processor 1910 is configured to control the electronic device to switch to the second network and execute an optimization procedure corresponding to the preset condition when the temperature level and the first quality level satisfy the preset condition.
It should be understood that, in this embodiment of the present application, the radio frequency unit 1901 may be used to receive and send information or signals during a call, and specifically, receive downlink data of a base station or send uplink data to the base station. The radio frequency unit 1901 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
The network module 1902 provides wireless broadband internet access to users, such as helping users send and receive e-mail, browse web pages, and access streaming media, etc.
The audio output unit 1903 may convert audio data received by the radio frequency unit 1901 or the network module 1902 or stored in the memory 1909 into an audio signal and output as sound. Also, the audio output unit 1903 may also provide audio output (e.g., call signal reception sound, message reception sound, etc.) related to a specific function performed by the electronic device 1900. The audio output unit 1903 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1904 is used to receive an audio or video signal. The input unit 1904 may include a graphics processor (Graphics Processing Unit, GPU) 5082 and a microphone 5084, the graphics processor 5082 processing image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on a display unit 1906, or stored in a memory 1909 (or other storage medium), or transmitted via a radio frequency unit 1901 or network module 1902. The microphone 5084 may receive sound and may be capable of processing the sound into audio data, and the processed audio data may be converted into a format output that may be transmitted to the mobile communication base station via the radio frequency unit 1901 in case of a phone call mode.
The electronic device 1900 also includes at least one sensor 1905, such as a fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, infrared sensor, light sensor, motion sensor, and other sensors.
The display unit 1906 is used to display information input by a user or information provided to the user. The display unit 1906 may include a display panel 5122, and the display panel 5122 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
The user input unit 1907 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 1907 includes a touch panel 5142 and other input devices 5144. The touch panel 5142, which is also referred to as a touch screen, can acquire a touch operation thereon or thereabout by a user. The touch panel 5142 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 1910, and receives and executes commands sent from the processor 1910. Other input devices 5144 can include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
Further, the touch panel 5142 can be overlaid on the display panel 5122, and when the touch panel 5142 detects a touch operation thereon or thereabout, the touch panel is transferred to the processor 1910 to determine a type of touch event, and then the processor 1910 provides a corresponding visual output on the display panel 5122 according to the type of touch event. The touch panel 5142 and the display panel 5122 may be two independent components or may be integrated into one component.
The interface unit 1908 is an interface for connecting an external device to the electronic apparatus 1900. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 1908 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 1900 or may be used to transmit data between the electronic apparatus 1900 and an external device.
The memory 1909 may be used to store software programs and various data. The memory 1909 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebooks, etc.) created according to the use of the mobile terminal, etc. In addition, memory 1909 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 1910 performs various functions of the electronic device 1900 and processes data by running or executing software programs and/or modules stored in the memory 1909 and invoking data stored in the memory 1909, thereby overall monitoring the electronic device 1900. The processor 1910 may include one or more processing units; preferably, the processor 1910 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications.
The electronic device 1900 may also include a power supply 1911 for powering the various components, wherein the power supply 1911 may be logically coupled to the processor 1910 via a power management system such that charge, discharge, and power management functions are performed by the power management system.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, where the program or the instruction implements each process of the network connection method embodiment described above when executed by a processor, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic or optical disks, and the like.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or instructions, the processes of the network connection method embodiment can be realized, the same technical effects can be achieved, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), including several instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (11)

1. A method of network connection, comprising:
acquiring a temperature grade of a terminal and a first quality grade of a first network under the condition that the terminal is connected to the first network;
under the condition that the temperature grade and the first quality grade meet preset conditions, controlling the terminal to switch to a second network, and executing an optimization program corresponding to the preset conditions;
the preset conditions include a first condition, and the first condition is:
the sum of the temperature level and the first quality level is greater than or equal to a preset first threshold value, and the temperature level is equal to the first threshold value;
the preset conditions include a second condition, and the second condition is:
the sum of the temperature level and the first quality level is greater than or equal to the first threshold value, and the first quality level is equal to the first threshold value.
2. The method of claim 1, wherein the obtaining the temperature level of the terminal and the first quality level of the first network comprises:
acquiring a current temperature value of the terminal, and determining the temperature grade according to the current temperature value;
and acquiring network connection information of the first network, and determining the first quality grade according to the network connection information of the first network.
3. The method according to claim 1, wherein, in the case where the temperature level and the first quality level satisfy the first condition, the executing the optimization program corresponding to the preset condition includes:
and prohibiting the terminal from being connected to the first network until the temperature level is less than a second threshold.
4. The method according to claim 1, wherein before the executing the optimization program corresponding to the preset condition, the method further comprises:
setting the count value of the counter to N;
and executing an optimization program corresponding to the preset condition under the condition that the temperature grade and the first quality grade meet the second condition, wherein the optimization program comprises the following steps:
prohibiting the terminal from being connected to the first network and starting a timer;
controlling the terminal to be reconnected to the first network under the condition that the timing duration reaches a preset duration threshold;
wherein N is a natural number greater than 0, and the duration threshold is equal to a product of the count value and a preset unit duration.
5. The method of claim 4, wherein after said controlling the terminal to reconnect to the first network, the method further comprises:
When the first quality level is smaller than a third threshold value within a first preset duration, resetting the counter;
and setting the count value of the counter to be N+1 under the condition that the first quality grade is not smaller than a third threshold value within the first preset duration, and executing the optimization program corresponding to the preset condition again.
6. The method of claim 4, wherein the preset condition comprises a third condition, the third condition being:
the sum of the temperature level and the first quality level is greater than or equal to the first threshold, and both the temperature level and the first quality level are less than the first threshold.
7. The method according to claim 6, wherein, in the case where the temperature level and the first quality level satisfy the third condition, the executing the optimization program corresponding to the preset condition includes:
controlling the terminal to switch to the first network;
controlling the terminal to disconnect the first network and starting a timer under the condition that the temperature level and the first quality level still meet the third condition;
and controlling the terminal to be reconnected to the first network under the condition that the timing duration reaches the duration threshold value.
8. The method of claim 7, wherein after said controlling the terminal to reconnect to the first network, the method further comprises:
resetting the counter if the temperature level and the first quality level no longer satisfy the third condition;
and setting the count of the counter to be N+1 under the condition that the temperature grade and the first quality grade still meet the third condition, and executing the optimization program corresponding to the preset condition again.
9. The method according to any one of claims 1 to 8, characterized in that after said controlling the terminal to switch to a second network, the method further comprises:
acquiring network connection information of the second network, and determining a second quality level according to the network connection information of the second network;
acquiring cell state information of the current cell under the condition that the second quality level is larger than a fourth threshold value;
and under the condition that the cell state information is in an abnormal state, controlling the terminal to stop connecting the current cell within a second preset duration.
10. The method as recited in claim 9, further comprising:
If the second quality level is larger than a fifth threshold value, the terminal is controlled to disconnect the network connection within a third preset duration;
wherein the fifth threshold is greater than the fourth threshold.
11. A network connection device, comprising:
the acquisition module is used for acquiring the temperature grade of the terminal and the first quality grade of the first network under the condition that the terminal is connected to the first network;
the control module is used for controlling the terminal to switch to a second network and executing an optimization program corresponding to the preset condition under the condition that the temperature grade and the first quality grade meet the preset condition;
the preset conditions include a first condition, and the first condition is:
the sum of the temperature level and the first quality level is greater than or equal to a preset first threshold value, and the temperature level is equal to the first threshold value;
the preset conditions include a second condition, and the second condition is:
the sum of the temperature level and the first quality level is greater than or equal to the first threshold value, and the first quality level is equal to the first threshold value.
CN202110204759.1A 2021-02-24 2021-02-24 Network connection method and device Active CN113015226B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110204759.1A CN113015226B (en) 2021-02-24 2021-02-24 Network connection method and device
PCT/CN2022/076560 WO2022179425A1 (en) 2021-02-24 2022-02-17 Network connection method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110204759.1A CN113015226B (en) 2021-02-24 2021-02-24 Network connection method and device

Publications (2)

Publication Number Publication Date
CN113015226A CN113015226A (en) 2021-06-22
CN113015226B true CN113015226B (en) 2023-07-25

Family

ID=76408907

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110204759.1A Active CN113015226B (en) 2021-02-24 2021-02-24 Network connection method and device

Country Status (2)

Country Link
CN (1) CN113015226B (en)
WO (1) WO2022179425A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113015226B (en) * 2021-02-24 2023-07-25 维沃移动通信有限公司 Network connection method and device
CN114698013A (en) * 2022-03-21 2022-07-01 Oppo广东移动通信有限公司 Network reconnection method, device, mobile terminal and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102176782A (en) * 2011-01-10 2011-09-07 华为终端有限公司 Wireless terminal equipment and thermal protection method thereof
CN111601377A (en) * 2020-05-15 2020-08-28 北京小米移动软件有限公司 Temperature control method, device and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102394978B1 (en) * 2015-09-18 2022-05-09 삼성전자주식회사 Method for handover in wireless communication system and apparatus therefore
CN105307228B (en) * 2015-10-23 2018-09-04 广东欧珀移动通信有限公司 A kind of method for switching network of mobile terminal, device and mobile terminal
KR102402639B1 (en) * 2017-11-24 2022-05-26 삼성전자주식회사 Electronic device and method for communicating thereof
US10880805B2 (en) * 2019-05-01 2020-12-29 At&T Intellectual Property I, L.P. Mitigating user equipment overheating for 5G or other next generation network
CN110213794B (en) * 2019-05-08 2023-03-17 成都市联洲国际技术有限公司 Temperature adjusting method and device, terminal equipment and storage medium
CN110300446B (en) * 2019-06-28 2022-03-22 南昌黑鲨科技有限公司 Network connection control method, system, intelligent terminal and computer readable storage medium
CN113015226B (en) * 2021-02-24 2023-07-25 维沃移动通信有限公司 Network connection method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102176782A (en) * 2011-01-10 2011-09-07 华为终端有限公司 Wireless terminal equipment and thermal protection method thereof
CN111601377A (en) * 2020-05-15 2020-08-28 北京小米移动软件有限公司 Temperature control method, device and storage medium

Also Published As

Publication number Publication date
WO2022179425A1 (en) 2022-09-01
CN113015226A (en) 2021-06-22

Similar Documents

Publication Publication Date Title
CN110831096B (en) Network switching method and electronic equipment
WO2021027821A1 (en) Sdt processing method, device and system
CN111615141B (en) Measurement method, measurement configuration method, terminal and network equipment
US20220132589A1 (en) Method for random access procedure fallback, device, and system
WO2022143520A1 (en) Cell switching method and apparatus, and user equipment
CN110831041B (en) Cell beam failure processing method, mobile communication terminal and network equipment
CN111970683B (en) Method, device, terminal equipment and storage medium for switching SIM card
CN110022567B (en) Data transmission method and user terminal
CN113015226B (en) Network connection method and device
CN111818658B (en) Scheduling request sending method, scheduling request receiving method, terminal and network equipment
CN111417173B (en) Cut-off recovery method and electronic equipment
WO2018120032A1 (en) Cell switching method and terminal device
WO2020048477A1 (en) Terminal camping method, information transmission method, terminal, and network device
CN112399515B (en) Communication processing method and device
CN110677897A (en) Network search control method, terminal and computer readable storage medium
CN113038513A (en) Method, terminal device and storage medium for independent networking weak coverage
US11412433B2 (en) Method of processing beam failure recovery and user equipment
CN114143842B (en) Cell access method and device
CN113242582B (en) Call establishment method and call establishment device
CN112584408B (en) Method, device and electronic equipment for reestablishing radio link failure
CN113038506B (en) Measuring method and device
CN111836300B (en) Network switching method and communication terminal
CN113472493A (en) Reference signal determination method and related equipment
CN115209493B (en) Measurement method and apparatus
US20240040532A1 (en) Network Access Method, Network Side Device, 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