CN113015226A - Network connection method and device - Google Patents
Network connection method and device Download PDFInfo
- Publication number
- CN113015226A CN113015226A CN202110204759.1A CN202110204759A CN113015226A CN 113015226 A CN113015226 A CN 113015226A CN 202110204759 A CN202110204759 A CN 202110204759A CN 113015226 A CN113015226 A CN 113015226A
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/14—Reselecting a network or an air interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
- H04W36/30—Reselection being triggered by specific parameters by measured or perceived connection quality data
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing 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 a 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 a 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 executes an optimization program corresponding to the preset conditions. According to the embodiment of the application, on one hand, the temperature of the terminal can be reduced, the power consumption abnormity 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 in network blockage and cutoff for a long time is prevented, and the internet surfing experience of a user is ensured.
Description
Technical Field
The present application belongs to the field of communications technologies, and in particular, to a network connection method and apparatus.
Background
In the related art, electronic devices such as a mobile phone already support a 5G network, but the 5G power consumption is large, which easily causes heat generation of the mobile phone and shortens the cruising ability of the mobile phone.
Meanwhile, networking modes of a 5G network include an independent networking (SA) and a Non-independent Networking (NSA), and for a scene of the Non-independent networking, due to the complex network structure, a 5G network is easy to cut off, and a user cannot surf the internet.
Therefore, how to reduce the 5G cutoff and the heat generation caused by the 5G network is a technical problem to be solved at present.
Disclosure of Invention
An object of the embodiments of the present application is to provide a network connection method and apparatus, which can improve a 5G residence rate and reduce power consumption of a 5G network.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a terminal network connection method, including:
under the condition that the terminal is connected to the 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 executes an optimization program corresponding to the preset conditions.
In a second aspect, an embodiment of the present application provides a terminal network connection apparatus, including:
the terminal comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring the temperature grade of the terminal and the first quality grade of a 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, an embodiment of the present application provides a terminal, where the terminal includes a processor, a memory, and a program or instructions stored in the provided memory and executable on the provided processor, and the provided program or instructions, when executed by the provided processor, implement the steps of the terminal network connection method as provided in the first aspect.
In a fourth aspect, an embodiment of the present application provides a readable storage medium, which stores a program or instructions, and the provided program or instructions, 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 chip is provided and includes a processor and a communication interface, where the communication interface is provided and coupled with the provided processor, and the provided processor is configured to execute a program or instructions to implement the steps of the terminal network connection method 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, it can be understood that the embodiment of the present application is directed to solving the heating and blocking situations in the "high speed" network, and therefore, as the networks develop, the first network may also be a "6G", "7G" or other high speed networks, and the embodiment of the present application does not limit the specific network types of the first network and the second network.
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 the 5G network, the device continuously acquires the temperature level of the device and the quality level of the 5G network.
The temperature levels are preset levels divided according to temperature values of the terminal, each level corresponds to one temperature interval, for example, a temperature interval is set below 30 ℃, a temperature interval is set between 30 ℃ and 35 ℃ corresponding to the temperature level 0, a temperature interval is set between 35 ℃ and 35 ℃, a temperature interval is set between 35 ℃ and 40 ℃ corresponding to the temperature level 1, a temperature level 3 is corresponding to the temperature level, and so on, that is, the higher the temperature level is, the higher the temperature of the terminal is.
Similarly, the first quality class is a preset class reflecting the network connection quality of the first network, wherein the higher the first quality class is among the first quality class 0, the first quality class 1 and the first quality class 2, the worse the network quality of the first network is (for example, the situations of blocking, delaying, cutting off and the like occur).
And the terminal continuously judges whether the temperature grade and the first quality grade meet preset conditions, and when the preset conditions are met, the terminal is controlled to disconnect the 5G connection temporarily, is connected to the 4G network instead, and executes a corresponding optimization program.
According to the embodiment of the application, the temperature of the terminal and the quality of the 5G network are monitored simultaneously, when the temperature is high and/or the quality of the 5G network is poor (such as blockage or cut-off), the 5G network is disconnected temporarily and switched to the 4G network, meanwhile, an optimization program is executed correspondingly according to the temperature of the terminal and/or the quality of the 5G network, on one hand, the temperature of the terminal can be reduced, power consumption abnormity caused by overhigh temperature of the terminal is prevented, and further the endurance time of the terminal is ensured, on the other hand, the 5G network can be optimized, and 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 in the network for a long time is prevented.
Drawings
Fig. 1 shows one of the flow diagrams of a network connection method according to an embodiment of the application;
fig. 2 shows a second flowchart of a network connection method according to an embodiment of the present application;
fig. 3 shows 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 application;
FIG. 5 shows a fifth flowchart of a network connection method according to an embodiment of the application;
FIG. 6 shows a sixth flowchart of a network connection method according to an embodiment of the application;
FIG. 7 shows a seventh flowchart of a network connection method according to an embodiment of the application;
FIG. 8 is a block diagram illustrating a network connection device according to an embodiment of the present application;
fig. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The network connection method and apparatus, the terminal and the storage medium provided by 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, and as shown in fig. 1, the network connection method includes:
and 104, under the condition that the temperature grade and the first quality grade meet preset conditions, switching the control terminal to a second network, and executing an optimization program corresponding to the preset conditions.
In the embodiment of the present application, the first network is specifically a 5G network, and the second network is specifically a 4G network, it can be understood that the embodiment of the present application is directed to solving the heating and blocking situations in the "high speed" network, and therefore, as the networks develop, the first network may also be a "6G", "7G" or other high speed networks, and the embodiment of the present application does not limit the specific network types of the first network and the second network.
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 the 5G network, the device continuously acquires the temperature level of the device and the quality level of the 5G network.
The temperature levels are preset levels divided according to the temperature value of the terminal, each level corresponds to one temperature interval, for example, a temperature interval is set below 25 ℃, a temperature interval is set between 25 ℃ and 30 ℃ corresponding to the temperature level 0, a temperature interval is set between 30 ℃ and 30 ℃, a temperature interval is set between 30 ℃ and 35 ℃ corresponding to the temperature level 1, a temperature level 2 is corresponding to the temperature level, and so on, that is, the higher the temperature level is, the higher the temperature of the terminal is.
Similarly, the first quality class is a preset class reflecting the network connection quality of the first network, wherein the higher the first quality class is in the first quality class 1, the first quality class 2 and the first quality class 3, the worse the network quality of the first network is (for example, the situations of blocking, delaying, cutting off and the like occur).
And the terminal continuously judges whether the temperature grade and the first quality grade meet preset conditions, and when the preset conditions are met, the Modem is controlled to send an SCG Failure signaling to the network, the terminal is controlled to temporarily disconnect the 5G connection, the terminal is connected to the 4G network instead, and a corresponding optimization program is executed.
According to the embodiment of the application, the temperature and the 5G network quality of the terminal are monitored simultaneously, when the temperature is high and/or the 5G network quality is poor (such as blockage or cut-off), the 5G network is disconnected temporarily and switched to the 4G network, meanwhile, an optimization program is executed correspondingly according to the temperature and/or the 5G network quality of the terminal, on one hand, the temperature of the terminal can be reduced, the phenomenon that the power consumption is abnormal due to overhigh temperature of the terminal is prevented, the endurance time of the terminal is further guaranteed, on the other hand, the 5G network can be optimized automatically, and 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.
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, acquiring a temperature level of a terminal and a first quality level of a first network includes:
In the embodiment of the application, the terminal is provided with the temperature sensor for acquiring the current temperature value, and the current temperature grade is judged according to the data acquired by the sensor. Specifically, the temperature levels are preset levels divided according to the temperature value of the terminal, each level corresponds to one temperature interval, for example, a temperature interval is set below 30 ℃, a temperature interval is set between 30 ℃ and 35 ℃ corresponding to the temperature level 0, a temperature interval is set between 35 ℃ and 40 ℃, a temperature interval is set between 1 ℃ and 35 ℃ corresponding to the temperature level 2, a temperature interval is set above 40 ℃, and a temperature level 3 corresponds to the temperature level, that is, the higher the temperature of the terminal is, the higher the temperature level is.
When the temperature level is 0, the device temperature is normal. When the temperature level is 1, the terminal has already started to generate heat. When the temperature level is 2, the terminal generates heat seriously. When the temperature level is 3, the terminal is already severely scalded, 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 occurrence of traffic interruption, etc.), the higher the first quality level. Such as the first quality level comprising: the first quality level 0 represents the best network quality, the first quality level 1 represents the good network quality, the user experience cannot be influenced, the first quality level 2 represents the situation that the internet surfing experience is influenced by the jamming, delay and the like, and the first quality level 3 represents the situation that the disconnection 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 method comprises the steps of cell signal strength, cell signal quality, physical layer bit error rate, medium access control layer buffering, transmitting power, filling bit ratio, 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 and domain name system success average delay.
In this embodiment, the terminal includes an AP layer (upper layer) and a Modem layer (lower layer), where the AP layer associates AP parameters, and the AP parameters include:
the application user identity (uid), the network type (network type), the Transmission Control Protocol Round-Trip Time (TCP RTT), the number of successful handshaking of the Transmission Control Protocol (TCP), the number of successful Domain Name System (DNS), the number of failed Domain Name System (DNS), the average Time delay of successful DNS, etc.
The Modem layer is associated with Modem parameters, and the Modem parameters comprise:
cell signal strength, cell signal quality, physical layer error rate, Media Access Control (MAC) buffer, transmit power (Txpower), fill bit ratio, Packet Data Convergence Protocol (PDCP) Packet loss rate, Service Data Adaptation Protocol (SDAP) layer throughput, and the like.
In some embodiments of the present application, the preset condition includes a first condition that:
the sum of the temperature grade and the first quality grade is larger than or equal to a preset first threshold value, and the temperature grade is equal to the first threshold value.
In this embodiment of the application, the preset condition includes 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 and the temperature level is equal to the first threshold, it may be determined that the temperature level and the first quality level satisfy the first condition.
Specifically, for example, if 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, it is determined that the first condition is satisfied, the current terminal has a poor network state and needs to be optimized, and an excessively high temperature is a main factor of the poor network state.
At the moment, the terminal can be optimized in a targeted manner according to the temperature, so that the temperature of the terminal is reduced, power consumption abnormity 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, in a case where the temperature level and the first quality level satisfy a first condition, executing an optimization procedure corresponding to a preset condition, including:
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 the first condition, that is, the sum of the temperature level and the first quality level is greater than or equal to the preset first threshold, and the temperature level is equal to the first threshold, the terminal is prohibited from being connected to the first network, that is, the terminal is prohibited from being connected to the 5G network, and specifically, the terminal is prohibited from reporting the B1 measurement result, so that the terminal is prevented from being connected to the 5G network, thereby reducing the network power consumption overhead of the terminal, and thus reducing the temperature of the terminal.
And after the terminal is forbidden to be connected to the 5G network, continuously acquiring the temperature of the terminal, and after the temperature level is less than a second threshold value, if the temperature level is reduced to 1, controlling the terminal to exit the temperature optimization program, wherein the terminal can be normally connected to the 5G network.
In some embodiments of the present application, the preset condition includes a second condition that:
the sum of the temperature level and the first quality level is greater than or equal to a first threshold, and the first quality level is equal to the first threshold.
In the embodiment of the present application, the preset condition includes 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 and the first quality level is equal to the first threshold, it may be determined that the temperature level and the first quality level satisfy the second condition.
Specifically, for example, if 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, it is determined that the second condition is satisfied, and the current terminal has a poor network state and needs to be optimized, and the low connection quality of the 5G network is a main factor of the poor network state.
At the moment, the terminal can be optimized in a targeted manner aiming at the 5G network, so that 5G network connection is optimized, the terminal is controlled to temporarily access the Internet through the 4G network, the situation that the mobile phone is in network blockage and disconnection for a long time is prevented, and the internet surfing experience of a user is guaranteed.
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:
and step 306, controlling the terminal to reconnect to the first network under the condition that the timing duration reaches the duration threshold.
And N is a natural number greater than zero, and the time length threshold value is equal to the product of the count value and the preset unit time length.
In the embodiment of the present application, if the temperature level and the first quality level satisfy the second condition, that is, the sum of the temperature level and the first quality level is greater than or equal to the preset first threshold, and the first quality level is 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 is 1, that is, the count value is 1.
Meanwhile, the cutoff optimization is executed, the terminal is prohibited from being connected to the first network, namely, the terminal is prohibited from being connected to the 5G network, specifically, the terminal can be prevented from being connected to the NR through the prohibition of the terminal reporting the B1 measurement result, and the terminal is prevented from being connected to the 5G network, and the mobile phone is prevented from being in the situation of network blockage and cutoff for a long time through accessing the Internet through the 4G network.
And after the 5G connection is disconnected, a penalty timer of the terminal starts to time, and the terminal is controlled to reconnect the 5G network when the time duration reaches a time duration threshold. Specifically, when the 5G network is poor, on one hand, the network congestion may be caused by a large number of connected people in the current cell, and on the other hand, the signal coverage of the user location may be weak, resulting in low signal strength. Therefore, the temporary control terminal operates in the 4G network and prohibits connection to the 5G network for a certain period of time, and tries to connect to the 5G network again after the penalty timer reaches the time threshold.
The duration threshold is related to the count value of the counter, and specifically, a preset unit duration, such as 2 minutes, may be set, where the duration threshold is the product of the count value and the unit duration, and as in the above embodiment, if the count value N is 1, the duration threshold corresponds to 2 minutes.
In some embodiments of the present application, fig. 4 illustrates a fourth flowchart of a network connection method according to an embodiment of the present application, and as illustrated in fig. 4, after the control terminal is reconnected to the first network, the control method further includes:
in step 404, in the first preset duration, if the first quality level is not less than the third threshold, the count value of the counter is set to N +1, and the optimization program corresponding to the preset condition is executed again.
In the embodiment of the application, after the 5G connection is disconnected and the 5G network is reconnected, the network connection information of the 5G network is continuously acquired, and the first quality level is determined. If the first quality level is continuously smaller than the third threshold value within a period of time, specifically within a first preset time, it indicates that the 5G network returns to normal and the cutoff phenomenon disappears, at this time, the network returns to smooth due to the fact that the number of people connected to the current cell is reduced, or the position of the user is changed, the signal intensity is enhanced, at this time, the user can smoothly access the Internet through the 5G network, so that the counter is cleared, and the terminal exits the cutoff optimization program.
If the first level is still greater than or equal to the third threshold within the first preset duration, which indicates that the 5G network is still not unblocked at this time, the count value of the counter is set to N +1, i.e., the duration threshold of the penalty timer is increased, and the cutoff optimization procedure is executed again.
Specifically, assuming that the count value N of the counter is 1 and the unit time length is 2 minutes when the current interrupt optimization routine is executed for the first time, the time length threshold value corresponds to 2 minutes. When the current interruption optimization routine is executed for the second time, if the counter value N +1 of the counter is 2, the time length threshold is increased to 4 minutes. Namely, the 5G network is recovered for a longer time, and frequent network switching before the 5G network is recovered to be smooth is avoided.
In some embodiments of the present application, the preset condition includes a third condition, and the third condition is:
the sum of the temperature grade and the first quality grade is larger than or equal to a first threshold, and both the temperature grade and the first quality grade are smaller than the first threshold.
In this embodiment of the 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 both the temperature level and the first quality level are less than the first threshold, it may be determined that the temperature level and the first quality level satisfy the third condition.
Specifically, for example, if 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, it is determined that the third condition is satisfied, and the current terminal has a network state difference and needs to be optimized, and the main factor of the network state difference is not one of the temperature and the 5G network.
At the moment, the terminal is comprehensively optimized, namely, the temperature and the 5G network connection are optimized simultaneously, specifically, the control terminal temporarily accesses the internet through the 4G network, on one hand, the temperature of the terminal can be reduced, the abnormal power consumption caused by the overhigh temperature of the terminal is prevented, and the endurance time of the terminal is further ensured, on the other hand, the 5G network can be automatically optimized, and the mobile phone is controlled to be connected to the 4G network during the period, so that the situation that the mobile phone is in network blockage and disconnection for a long time is prevented, and the internet surfing experience of a user is ensured.
In some embodiments of the present application, fig. 5 illustrates a fifth flowchart of a network connection method according to an embodiment of the present application, and as illustrated in fig. 5, in a case that the temperature level and the first quality level satisfy a third condition, an optimization procedure corresponding to a preset condition is executed, including:
and step 506, under the condition that the timing duration reaches the duration threshold, the control terminal is reconnected to the first network.
In the embodiment of the present application, when the third condition is satisfied, the comprehensive optimization is started. Because the temperature of the current terminal is not too high, and the network does not reach the condition of cutoff, the control terminal can be switched back to the first network after being switched to the second network, namely, the network switching of '5G-4G-5G' is automatically executed, namely, the control terminal is reconnected to the 5G network, and whether the problem of network blockage is solved or not is judged.
If the third condition is still met at this time, i.e. the network status 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 the cutoff optimization, the temporary control terminal operates in the 4G network, and prohibits connection to the 5G network for a certain time period, specifically, after the penalty timer reaches the time period threshold, connection to the 5G network is attempted again.
The time length threshold is also related to the count value of the counter, specifically, assuming that the preset unit time length is 2 minutes, in the case that the count value N is 1, the time length threshold corresponds to 2 minutes.
In some embodiments of the present application, fig. 6 illustrates a sixth flowchart of a network connection method according to an embodiment of the present application, and as illustrated in fig. 6, after the control terminal is reconnected to the first network, the control method further includes:
in step 604, under the condition that the temperature level and the first quality level still meet the third condition, the count of the counter is set to N +1, and the optimization program corresponding to the preset condition is executed again.
In the embodiment of the application, after the 5G network is disconnected again and reconnected to the 5G network, the network connection information of the 5G network and the 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 level and the first quality level do not meet the third condition any more after the 5G network is reconnected, 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 the 5G network is reconnected, which indicates 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 executing the cutoff optimization program again.
Specifically, assuming that when the 5G network is disconnected for the second time, the count value N of the counter is 1, and the unit time length is 2 minutes, the time length threshold value for disconnecting the 5G network for the second time is corresponding to 2 minutes. When the 5G network is disconnected for the third time, the count value N +1 of the counter is 2, the duration threshold of the penalty timer is increased to 4 minutes, the 5G network is recovered by a longer time, and frequent network switching before the 5G network is recovered to be unblocked is avoided.
In some embodiments of the present application, fig. 7 illustrates a seventh flowchart of a network connection method according to an embodiment of the present application, and as illustrated in fig. 7, after the control terminal switches to the second network, the control method further includes:
step 704, acquiring cell state information of the current cell under the condition that the second quality level is greater than the fourth threshold;
In the embodiment of the present application, after the terminal is connected to the second network connection, that is, connected 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 value, it is also indicated that the 4G network is also unsmooth, 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, if the number of resident users of the currently connected base station exceeds 5, and the average value of the 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 the current cell within a second preset duration, specifically, a cell barring operation may be adopted, the priority of the cell is reduced, the cell is not resident as much as possible when the terminal searches for a network, and therefore, the influence of the abnormal cell on the internet experience of the users is avoided.
Alternatively, the terminal may search whether a suitable neighbor cell exists near the current cell, and preferentially connect to the suitable neighbor cell. When there is a neighboring cell whose signal strength satisfies a preset strength range, the cell may be determined as a suitable neighboring cell.
The preset intensity range may be rsrp > -110dBm & & rsrq > -12 dB.
In some embodiments of the present application, the network connection method further comprises:
and under the condition that the second quality level is greater than a fifth threshold, the control terminal disconnects the network connection within a third preset time, wherein the fifth threshold is greater than a fourth threshold.
In this embodiment of the application, if the second quality level is greater than the fifth threshold, it is indicated that a 4G network also has a situation of current interruption, and at this time, no matter whether the 4G network or the 5G network is connected smoothly, the control terminal disconnects the network connection, that is, the network is restarted thoroughly. And meanwhile, a punishment timer can be set, the control terminal is maintained in a state of closing the NR within a third preset time length, and the NR is restarted after the timing time length of the punishment timer reaches the third preset time length, namely the control terminal re-establishes the common sense networking.
According to the embodiment of the application, under the condition that the terminal cannot be normally connected with the network, the 4G network and the 5G network of the terminal are recovered to be normal by trying to restart the network connection of the terminal.
In some embodiments of the present application, the network connection method further comprises:
receiving a network restart instruction;
and responding to the network restart instruction, controlling the terminal to restart the network connection, and clearing the count value of the counter.
In this embodiment of the present application, the network restart instruction may be an instruction to turn on/off a flight mode, and after receiving the network restart instruction, the terminal restarts a network connection, specifically, closes a program and hardware related to the network connection, and restarts after a delay, so as to recover the 4G and 5G networks of the terminal to normal by attempting to restart the network connection of the terminal.
And (4) because 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 acquires the temperature grade and the first quality grade of the first network again, and executes the optimization program corresponding to the preset condition again 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 a temperature level of a terminal and a first quality level of a first network when the terminal is connected to the first network;
and the control module 804 is configured to control the terminal to switch to the second network and execute an optimization program corresponding to the preset condition when the temperature level and the first quality level meet 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, it can be understood that the embodiment of the present application is directed to solving the heating and blocking situations in the "high speed" network, and therefore, as the networks develop, the first network may also be a "6G", "7G" or other high speed networks, and the embodiment of the present application does not limit the specific network types of the first network and the second network.
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 the 5G network, the device continuously acquires the temperature level of the device and the quality level of the 5G network.
The temperature levels are preset levels divided according to the temperature value of the terminal, each level corresponds to one temperature interval, for example, a temperature interval is set below 25 ℃, a temperature interval is set between 25 ℃ and 30 ℃ corresponding to the temperature level 0, a temperature interval is set between 30 ℃ and 30 ℃, a temperature interval is set between 30 ℃ and 35 ℃ corresponding to the temperature level 1, a temperature level 2 is corresponding to the temperature level, and so on, that is, the higher the temperature level is, the higher the temperature of the terminal is.
Similarly, the first quality class is a preset class reflecting the network connection quality of the first network, wherein the higher the first quality class is in the first quality class 1, the first quality class 2 and the first quality class 3, the worse the network quality of the first network is (for example, the situations of blocking, delaying, cutting off and the like occur).
And the terminal continuously judges whether the temperature grade and the first quality grade meet preset conditions, and when the preset conditions are met, the Modem is controlled to send SCGFailure signaling to the network, the terminal is controlled to temporarily disconnect the 5G connection, the terminal is connected to the 4G network instead, and a corresponding optimization program is executed.
According to the embodiment of the application, the temperature and the 5G network quality of the terminal are monitored simultaneously, when the temperature is high and/or the 5G network quality is poor (such as blockage or cut-off), the 5G network is disconnected temporarily and switched to the 4G network, meanwhile, an optimization program is executed correspondingly according to the temperature and/or the 5G network quality of the terminal, on one hand, the temperature of the terminal can be reduced, the phenomenon that the power consumption is abnormal due to overhigh temperature of the terminal is prevented, the endurance time of the terminal is further guaranteed, on the other hand, the 5G network can be optimized automatically, and 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.
The obtaining module 802 is specifically configured to obtain a current temperature value of the terminal, and determine a temperature level according to the current temperature value; and
network connection information of the first network is acquired, 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 grade is judged according to data acquired by the sensor. Specifically, the temperature levels are preset levels divided according to the temperature value of the terminal, each level corresponds to one temperature interval, for example, a temperature interval is set below 30 ℃, a temperature interval is set between 30 ℃ and 35 ℃ corresponding to the temperature level 0, a temperature interval is set between 35 ℃ and 40 ℃, a temperature interval is set between 1 ℃ and 35 ℃ corresponding to the temperature level 2, a temperature interval is set above 40 ℃, and a temperature level 3 corresponds to the temperature level, that is, the higher the temperature of the terminal is, the higher the temperature level is.
When the temperature level is 0, the device temperature is normal. When the temperature level is 1, the terminal has already started to generate heat. When the temperature level is 2, the terminal generates heat seriously. When the temperature level is 3, the terminal is already severely scalded, 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 occurrence of traffic interruption, etc.), the higher the first quality level. Such as the first quality level comprising: the first quality level 0 represents the best network quality, the first quality level 1 represents the good network quality, the user experience cannot be influenced, the first quality level 2 represents the situation that the internet surfing experience is influenced by the jamming, delay and the like, and the first quality level 3 represents the situation that the disconnection occurs or the network connection is disconnected.
Wherein the network connection information includes one or a combination of the following:
the method comprises the steps of cell signal strength, cell signal quality, physical layer bit error rate, medium access control layer buffering, transmitting power, filling bit ratio, 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 and 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:
the application user identity (uid), the network type (network type), the Transmission Control Protocol Round-Trip Time (TCP RTT), the number of successful handshaking of the Transmission Control Protocol (TCP), the number of successful Domain Name System (DNS), the number of failed Domain Name System (DNS), the average Time delay of successful DNS, etc.
The Modem layer is associated with Modem parameters, and the Modem parameters comprise:
cell signal strength, cell signal quality, physical layer error rate, Media Access Control (MAC) buffer, transmit power (Txpower), fill bit ratio, Packet Data Convergence Protocol (PDCP) Packet loss rate, Service Data Adaptation Protocol (SDAP) layer throughput, and the like.
The preset conditions comprise a first condition, and the first condition is as follows: the sum of the temperature grade and the first quality grade is larger than or equal to a preset first threshold value, and the temperature grade is equal to the first threshold value.
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 and the temperature level is equal to the first threshold, it can be determined that the temperature level and the first quality level satisfy the first condition.
Specifically, for example, if 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, it is determined that the first condition is satisfied, the current terminal has a poor network state and needs to be optimized, and an excessively high temperature is a main factor of the poor network state.
At the moment, the terminal can be optimized in a targeted manner according to the temperature, so that the temperature of the terminal is reduced, power consumption abnormity 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 program corresponding to a preset condition under the condition that the temperature level and the first quality level satisfy a 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, and the temperature level is equal to the first threshold, 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 prohibited from camping on 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.
And after the terminal is forbidden to be connected to the 5G network, continuously acquiring the temperature of the terminal, and after the temperature level is less than a second threshold value, if the temperature level is reduced to 1, controlling the terminal to exit the temperature optimization program, wherein the terminal can be normally connected to the 5G network.
The preset conditions include a second condition that:
the sum of the temperature level and the first quality level is greater than or equal to a first threshold, and the first quality level is equal to the first threshold.
The preset conditions comprise a second condition, and when the sum of the temperature grade and the first quality grade is greater than or equal to a preset first threshold and the first quality grade is equal to the first threshold, the temperature grade and the first quality grade can be determined to meet the second condition.
Specifically, for example, if 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, it is determined that the second condition is satisfied, and the current terminal has a poor network state and needs to be optimized, and the low connection quality of the 5G network is a main factor of the poor network state.
At the moment, the terminal can be optimized in a targeted manner aiming at the 5G network, so that 5G network connection is optimized, the terminal is controlled to temporarily access the Internet through the 4G network, the situation that the mobile phone is in network blockage and disconnection for a long time is prevented, and the internet surfing experience of a user is guaranteed.
The control module 804 is further configured to set a count value of the counter to N; prohibiting the terminal from connecting to the first network and starting a timer; and under the condition that the timing duration reaches the duration threshold, the control terminal is reconnected to the first network.
And N is a natural number greater than zero, and the time length threshold value is equal to the product of the count value and the preset unit time length.
If the temperature level and the first quality level meet a 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 prohibited from being connected to the first network, and the count value of the counter is set to be N, wherein N is 1, namely the count value is 1.
Meanwhile, the cutoff optimization is executed, the terminal is prohibited from being connected to the first network, namely, the terminal is prohibited from being connected to the 5G network, specifically, the terminal can be prevented from being connected to the NR through the prohibition of the terminal reporting the B1 measurement result, and the terminal is prevented from being connected to the 5G network, and the mobile phone is prevented from being in the situation of network blockage and cutoff for a long time through accessing the Internet through the 4G network.
And after the 5G connection is disconnected, a penalty timer of the terminal starts to time, and the terminal is controlled to reconnect the 5G network when the time duration reaches a time duration threshold. Specifically, when the 5G network is poor, on one hand, the network congestion may be caused by a large number of connected people in the current cell, and on the other hand, the signal coverage of the user location may be weak, resulting in low signal strength. Therefore, the temporary control terminal operates in the 4G network and prohibits connection to the 5G network for a certain period of time, and tries to connect to the 5G network again after the penalty timer reaches the time threshold.
The duration threshold is related to the count value of the counter, and specifically, a preset unit duration, such as 2 minutes, may be set, where the duration threshold is the product of the count value and the unit duration, and as in the above embodiment, if the count value N is 1, the duration threshold corresponds to 2 minutes.
The control module 804 is further configured to clear the counter when the first quality level is smaller than the third threshold within the first preset time period; and in the first preset time, under the condition that the first quality level is not less than the third threshold, setting the count value of the counter to be N +1, and executing the optimization program corresponding to the preset condition again.
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, specifically within a first preset time, it indicates that the 5G network returns to normal and the cutoff phenomenon disappears, at this time, the network returns to smooth due to the fact that the number of people connected to the current cell is reduced, or the position of the user is changed, the signal intensity is enhanced, at this time, the user can smoothly access the Internet through the 5G network, so that the counter is cleared, and the terminal exits the cutoff optimization program.
If the first level is still greater than or equal to the third threshold within the first preset duration, which indicates that the 5G network is still not unblocked at this time, the count value of the counter is set to N +1, i.e., the duration threshold of the penalty timer is increased, and the cutoff optimization procedure is executed again.
Specifically, assuming that the count value N of the counter is 1 and the unit time length is 2 minutes when the current interrupt optimization routine is executed for the first time, the time length threshold value corresponds to 2 minutes. When the current interruption optimization routine is executed for the second time, if the counter value N +1 of the counter is 2, the time length threshold is increased to 4 minutes. Namely, the 5G network is recovered for a longer time, and frequent network switching before the 5G network is recovered to be smooth is avoided.
The preset conditions include a third condition that:
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 comprise a third condition, and when the sum of the temperature grade and the first quality grade is greater than or equal to a preset third threshold and the temperature grade and the first quality grade are both less than the first threshold, the temperature grade and the first quality grade can be determined to meet the third condition.
Specifically, for example, if 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, it is determined that the third condition is satisfied, and the current terminal has a network state difference and needs to be optimized, and the main factor of the network state difference is not one of the temperature and the 5G network.
At the moment, the terminal is comprehensively optimized, namely, the temperature and the 5G network connection are optimized simultaneously, specifically, the control terminal temporarily accesses the internet through the 4G network, on one hand, the temperature of the terminal can be reduced, the abnormal power consumption caused by the overhigh temperature of the terminal is prevented, and the endurance time of the terminal is further ensured, on the other hand, the 5G network can be automatically optimized, and the mobile phone is controlled to be connected to the 4G network during the period, so that the situation that the mobile phone is in network blockage and disconnection for a long time 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, the control terminal is reconnected to the first network.
And when a 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, the control terminal can be switched back to the first network after being switched to the second network, namely, the network switching of '5G-4G-5G' is automatically executed, namely, the control terminal is reconnected to the 5G network, and whether the problem of network blockage is solved or not is judged.
If the third condition is still met at this time, i.e. the network status 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 the cutoff optimization, the temporary control terminal operates in the 4G network, and prohibits connection to the 5G network for a certain time period, specifically, after the penalty timer reaches the time period threshold, connection to the 5G network is attempted again.
The time length threshold is also related to the count value of the counter, specifically, assuming that the preset unit time length is 2 minutes, in the case that the count value N is 1, the time length threshold corresponds to 2 minutes.
The control module 804 is further configured to clear the counter when the temperature level and the first quality level no longer satisfy the third condition; and under the condition that the temperature grade and the first quality grade still meet the third condition, setting the count of the counter to be N +1, and executing the optimization program corresponding to the preset condition again.
And after the 5G connection is disconnected again and the 5G network is connected again, continuously acquiring the network connection information of the 5G network and the temperature information of the terminal, and determining whether the temperature level and the first quality level meet a third condition.
If the temperature level and the first quality level do not meet the third condition any more after the 5G network is reconnected, 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 the 5G network is reconnected, which indicates 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 executing the cutoff optimization program again.
Specifically, assuming that when the 5G network is disconnected for the second time, the count value N of the counter is 1, and the unit time length is 2 minutes, the time length threshold value for disconnecting the 5G network for the second time is corresponding to 2 minutes. When the 5G network is disconnected for the third time, the count value N +1 of the counter is 2, the duration threshold of the penalty timer is increased to 4 minutes, the 5G network is recovered by a longer time, and frequent network switching before the 5G network is recovered to be unblocked 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; under the condition that the second quality level is greater than a fourth threshold value, acquiring cell state information of the current cell;
the control module 804 is configured to control the terminal to stop connecting to the current cell within a second preset time period when the cell state information is in the abnormal state.
After the terminal is connected to the second network connection, i.e. to the 4G network, the second quality level 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 value, it is also indicated that the 4G network is also unsmooth, 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, if the number of resident users of the currently connected base station exceeds 5, and the average value of the 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 the current cell within a second preset duration, specifically, a cell barring operation may be adopted, the priority of the cell is reduced, the cell is not resident as much as possible when the terminal searches for a network, and therefore, the influence of the abnormal cell on the internet experience of the users is avoided.
Alternatively, the terminal may search whether a suitable neighbor cell exists near the current cell, and preferentially connect to the suitable neighbor cell. When there is a neighboring cell whose signal strength satisfies a preset strength range, the cell may be determined as a suitable neighboring cell.
The preset intensity range may be rsrp > -110dBm & & rsrq > -12 dB.
The control module 804 is further configured to control the terminal to disconnect the network connection within a third preset time period when the second quality level is greater than a fifth threshold, where the fifth threshold is greater than a fourth threshold.
In this embodiment of the application, if the second quality level is greater than the fifth threshold, it is indicated that a 4G network also has a situation of current interruption, and at this time, no matter whether the 4G network or the 5G network is connected smoothly, the control terminal disconnects the network connection, that is, the network is restarted thoroughly. And meanwhile, a punishment timer can be set, the control terminal is maintained in a state of closing the NR within a third preset time length, and the NR is restarted after the timing time length of the punishment timer reaches the third preset time length, namely the control terminal re-establishes the common sense networking.
According to the embodiment of the application, under the condition that the terminal cannot be normally connected with the network, the 4G network and the 5G network of the terminal are recovered to be normal by trying 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 restart instruction, controlling the terminal to restart the network connection, and clearing the count value of the counter.
The network restart instruction may be an instruction to turn on/off a flight mode, and after receiving the network restart instruction, the terminal restarts a network connection, specifically, closes a program and hardware related to the network connection, and restarts after a delay, so as to restore the 4G and 5G networks of the terminal to normal by attempting to restart the network connection of the terminal.
And (4) because 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 acquires the temperature grade and the first quality grade of the first network again, and executes the optimization program corresponding to the preset condition again 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 can 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 top computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile terminal may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, 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 (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
Optionally, an electronic device 1900 is further provided in this embodiment of the present application, and includes a processor 1910, a memory 1909, and a program or an instruction stored in the memory 1909 and executable on the processor 1910, where the program or the instruction is executed by the processor 1910 to implement each process of the foregoing network connection method embodiment, and can achieve the same technical effect, and details are not described here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1900 includes, but is not limited to: a radio frequency unit 1901, a network module 1902, an audio output unit 1903, an input unit 1904, a sensor 1905, a display unit 1906, a user input unit 1907, an interface unit 1908, a memory 1909, and a processor 1910.
Those skilled in the art will appreciate that the electronic device 1900 may further include a power supply 1911 (e.g., a battery) for supplying power to various components, and the power supply 1911 may be logically connected to the processor 1910 through a power management system, so that functions such as charging, discharging, and power consumption management are managed through 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 those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The rf unit 1901 is configured to transmit and receive the rf signal of the first network and the rf signal of the second network. The network module 1902 is configured to connect a first network and a second network, and acquire network connection information of the first network and the second network to determine a corresponding network quality level.
The sensor 1905 can obtain 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 program corresponding to a preset condition when the temperature level and the first quality level satisfy the preset condition.
It should be understood that, in the embodiment of the present application, the radio frequency unit 1901 may be used for transceiving information or transceiving signals during a call, and in particular, receive downlink data of a base station or send uplink data to the base station. 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 facilitating users to send and receive e-mail, browse web pages, and access streaming media.
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 related to a specific function performed by the electronic device 1900 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 1903 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1904 is used for receiving audio or video signals. The input Unit 1904 may include a Graphics Processing Unit (GPU) 5082 and a microphone 5084, and the Graphics processor 5082 processes image data of still pictures or video obtained by an image capture device (e.g., a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 1906, or stored in the memory 1909 (or other storage medium), or transmitted via the radio 1901 or the 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 transmittable to a 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 the 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 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 is also called a touch screen, and can acquire a touch operation of a user thereon or nearby. The touch panel 5142 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1910, receives a command sent by the processor 1910, and executes the command. Other input devices 5144 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, 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 nearby, the touch operation can be transmitted to the processor 1910 to determine the type of the touch event, and then the processor 1910 can provide a corresponding visual output on the display panel 5122 according to the type of the touch event. The touch panel 5142 and the display panel 5122 can be provided as two separate components or can 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 device may include a wired or wireless headset port, an external power supply (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 device 1900 or may be used to transmit data between the electronic device 1900 and the external device.
The memory 1909 may be used to store software programs as well as various data. The memory 1909 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the mobile terminal, and the like. Further, the 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 calling data stored in the memory 1909 to thereby perform overall monitoring of the electronic device 1900. Processor 1910 may include one or more processing units; preferably, the processor 1910 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications.
The electronic device 1900 may further include a power supply 1911 for supplying power to various components, and preferably, the power supply 1911 may be logically connected to the processor 1910 through a power management system, so that functions of managing charging, discharging, power consumption, and the like are realized through the power management system.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing network connection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device in the above embodiment. Readable storage media, including computer-readable storage media, such as Read-Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, etc.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing network connection method embodiment, and the same technical effect can be achieved.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (13)
1. A network connection method, comprising:
under the condition that a terminal is connected to a first network, acquiring the temperature level of the terminal and a first quality level of the first network;
and under the condition that the temperature grade and the first quality grade meet preset conditions, controlling the terminal to be switched to a second network, and executing an optimization program corresponding to the preset conditions.
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 the network connection information of the first network, and determining the first quality level according to the network connection information of the first network.
3. The method according to claim 1, wherein the preset condition comprises a first condition that:
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.
4. The method according to claim 3, wherein in a case where the temperature level and the first quality level satisfy the first condition, the executing an optimization procedure corresponding to the preset condition includes:
prohibiting the terminal from connecting to the first network until the temperature level is less than a second threshold.
5. The method according to claim 3, wherein the preset condition comprises a second condition that:
the sum of the temperature level and the first quality level is greater than or equal to the first threshold, and the first quality level is equal to the first threshold.
6. The method according to claim 5, wherein before the executing the optimization program corresponding to the preset condition, the method further comprises:
setting the count value of the counter to be N;
when the temperature level and the first quality level satisfy the second condition, the executing an optimization program corresponding to the preset condition includes:
forbidding the terminal to be connected to the first network and starting a timer;
under the condition that the timing duration reaches a preset duration threshold, controlling the terminal to be connected to the first network again;
and N is a natural number greater than 0, and the time length threshold is equal to the product of the count value and the preset unit time length.
7. The method of claim 6, wherein after the controlling the terminal to reconnect to the first network, the method further comprises:
clearing the counter to zero when the first quality grade is smaller than a third threshold value within a first preset time length;
and in the first preset time, under the condition that the first quality level is not less than a third threshold value, setting the count value of the counter to be N +1, and executing the optimization program corresponding to the preset condition again.
8. The method of claim 6, wherein the preset condition comprises a third condition that:
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.
9. The method according to claim 8, wherein in a case where the temperature level and the first quality level satisfy the third condition, the executing an optimization procedure corresponding to the preset condition includes:
controlling 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, controlling the terminal to disconnect the first network and starting a timer;
and under the condition that the timing duration reaches the duration threshold, controlling the terminal to be reconnected to the first network.
10. The method of claim 9, wherein after the controlling the terminal to reconnect to the first network, the method further comprises:
clearing the counter when the temperature level and the first quality level no longer satisfy the third condition;
and under the condition that the temperature grade and the first quality grade still meet the third condition, setting the count of the counter to be N +1, and executing the optimization program corresponding to the preset condition again.
11. The method according to any of claims 1 to 10, wherein 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;
under the condition that the second quality level is greater than a fourth threshold value, acquiring cell state information of a current cell;
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 time length.
12. The method of claim 11, further comprising:
under the condition that the second quality level is greater than a fifth threshold, controlling the terminal to disconnect the network connection within a third preset time length;
wherein the fifth threshold is greater than the fourth threshold.
13. A network connection device, comprising:
the terminal comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring the temperature grade of the terminal and the first quality grade of a 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 be switched 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.
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 true CN113015226A (en) | 2021-06-22 |
CN113015226B 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) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114698013A (en) * | 2022-03-21 | 2022-07-01 | Oppo广东移动通信有限公司 | Network reconnection method, device, mobile terminal and storage medium |
WO2022179425A1 (en) * | 2021-02-24 | 2022-09-01 | 维沃移动通信有限公司 | Network connection method and apparatus |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102176782A (en) * | 2011-01-10 | 2011-09-07 | 华为终端有限公司 | Wireless terminal equipment and thermal protection method thereof |
US20170086119A1 (en) * | 2015-09-18 | 2017-03-23 | Samsung Electronics Co., Ltd. | Method for handover in wireless communications system and apparatus supporting the same |
CN110213794A (en) * | 2019-05-08 | 2019-09-06 | 普联技术有限公司 | A kind of temperature control method, device, terminal device and storage medium |
CN110300446A (en) * | 2019-06-28 | 2019-10-01 | 南昌黑鲨科技有限公司 | Network connection control method, system, intelligent terminal and computer readable storage medium |
CN111601377A (en) * | 2020-05-15 | 2020-08-28 | 北京小米移动软件有限公司 | Temperature control method, device and storage medium |
US20200351746A1 (en) * | 2019-05-01 | 2020-11-05 | At&T Intellectual Property I, L.P. | Mitigating user equipment overheating for 5g or other next generation network |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN113015226B (en) * | 2021-02-24 | 2023-07-25 | 维沃移动通信有限公司 | Network connection method and device |
-
2021
- 2021-02-24 CN CN202110204759.1A patent/CN113015226B/en active Active
-
2022
- 2022-02-17 WO PCT/CN2022/076560 patent/WO2022179425A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102176782A (en) * | 2011-01-10 | 2011-09-07 | 华为终端有限公司 | Wireless terminal equipment and thermal protection method thereof |
US20170086119A1 (en) * | 2015-09-18 | 2017-03-23 | Samsung Electronics Co., Ltd. | Method for handover in wireless communications system and apparatus supporting the same |
US20200351746A1 (en) * | 2019-05-01 | 2020-11-05 | At&T Intellectual Property I, L.P. | Mitigating user equipment overheating for 5g or other next generation network |
CN110213794A (en) * | 2019-05-08 | 2019-09-06 | 普联技术有限公司 | A kind of temperature control method, device, terminal device and storage medium |
CN110300446A (en) * | 2019-06-28 | 2019-10-01 | 南昌黑鲨科技有限公司 | Network connection control method, system, intelligent terminal and computer readable storage medium |
CN111601377A (en) * | 2020-05-15 | 2020-08-28 | 北京小米移动软件有限公司 | Temperature control method, device and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022179425A1 (en) * | 2021-02-24 | 2022-09-01 | 维沃移动通信有限公司 | Network connection method and apparatus |
CN114698013A (en) * | 2022-03-21 | 2022-07-01 | Oppo广东移动通信有限公司 | Network reconnection method, device, mobile terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113015226B (en) | 2023-07-25 |
WO2022179425A1 (en) | 2022-09-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7348950B2 (en) | Paging instruction method, paging method, terminal and network equipment | |
CN111800888B (en) | SDT processing method, device and system | |
CN111615141B (en) | Measurement method, measurement configuration method, terminal and network equipment | |
RU2769399C1 (en) | Reconfiguration method and user equipment | |
CN112738856B (en) | Cell switching method, device and user equipment | |
CN109089297B (en) | Network searching method and terminal | |
CN113015226A (en) | Network connection method and device | |
CN113099483B (en) | Method for processing cell congestion, terminal and network side equipment | |
CN110958662B (en) | Access control method, terminal and network side device | |
CN105517069A (en) | Communication mode switching method and mobile terminal | |
CN111417173B (en) | Cut-off recovery method and electronic equipment | |
CN110505664B (en) | Parameter adjusting method, device, terminal and storage medium | |
WO2022206612A1 (en) | Communication path switching method and apparatus, and terminal | |
CN112469096A (en) | Cell switching method and device | |
WO2020048477A1 (en) | Terminal camping method, information transmission method, terminal, and network device | |
CN110677897A (en) | Network search control method, terminal and computer readable storage medium | |
CN112399515B (en) | Communication processing method and device | |
CN105407452A (en) | Method and system for controlling data flow in Bluetooth sharing network | |
CN113099514A (en) | Method, device and computer readable storage medium for accessing independent networking network | |
CN109769262B (en) | VoLTE call recovery method and terminal equipment | |
US11412433B2 (en) | Method of processing beam failure recovery and user equipment | |
CN113242582B (en) | Call establishment method and call establishment device | |
CN113038506B (en) | Measuring method and device | |
CN113472493B (en) | Reference signal determining method and related equipment | |
CN111436143A (en) | Uplink authorization changing method, information sending method and related device |
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 |