CN107846325B - Network state detection method and terminal - Google Patents

Network state detection method and terminal Download PDF

Info

Publication number
CN107846325B
CN107846325B CN201711093679.3A CN201711093679A CN107846325B CN 107846325 B CN107846325 B CN 107846325B CN 201711093679 A CN201711093679 A CN 201711093679A CN 107846325 B CN107846325 B CN 107846325B
Authority
CN
China
Prior art keywords
terminal
coefficient
network
internal temperature
temperature
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711093679.3A
Other languages
Chinese (zh)
Other versions
CN107846325A (en
Inventor
谢照霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201711093679.3A priority Critical patent/CN107846325B/en
Publication of CN107846325A publication Critical patent/CN107846325A/en
Application granted granted Critical
Publication of CN107846325B publication Critical patent/CN107846325B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions

Abstract

The embodiment of the invention relates to the technical field of terminals, and discloses a network state detection method and a terminal, wherein the method comprises the following steps: acquiring the current internal temperature of the terminal; when the current internal temperature is higher than the preset temperature, acquiring a network fluctuation coefficient of the terminal; when the network fluctuation coefficient is matched with the preset coefficient, executing the preset operation corresponding to the network fluctuation coefficient on the wireless network of the terminal; by implementing the embodiment of the invention, on one hand, the terminal is prevented from frequently scanning the network to aggravate terminal heating under the condition of unstable network signals, and the purpose of protecting the terminal is achieved; on the other hand, the wireless network is prevented from being disconnected and disconnected, and the use comfort of the user is improved.

Description

Network state detection method and terminal
Technical Field
The invention relates to the technical field of terminals, in particular to a network state detection method and a terminal.
Background
When the temperature of the terminal (such as a mobile phone, a tablet personal computer and the like) is too high, if a WiFi network signal is worse (WiFi fluctuation is larger, which means that WiFi is disconnected and reconnected, and the step is repeated continuously), the machine is higher in WiFi searching and scanning frequency, so that the system is operated quickly, the terminal is further aggravated to generate heat, if the temperature is too high, the terminal is easily abnormally heated, the machine is damaged, WiFi fluctuation is serious, and very poor use experience can be brought to a user.
Disclosure of Invention
The embodiment of the invention discloses a network state detection method and a terminal, which are used for solving the problem of machine heating caused by frequent scanning of unstable networks by a machine in the prior art.
The first aspect of the present invention discloses a network status detection method, which may include:
acquiring the current internal temperature of the terminal;
when the current internal temperature is higher than a preset temperature, acquiring a network fluctuation coefficient of the terminal;
and when the network fluctuation coefficient is matched with a preset coefficient, executing preset operation corresponding to the network fluctuation coefficient on a wireless network of the terminal.
As an optional implementation manner, in the first aspect of the present invention, when the current internal temperature is greater than a preset temperature, and before the obtaining the network fluctuation coefficient of the terminal, the method further includes:
when the current internal temperature is higher than a preset temperature, acquiring the historical internal temperature of the terminal corresponding to a certain previous time point at the time point corresponding to the current internal temperature by taking the time point corresponding to the current internal temperature as a basis, and judging whether the current internal temperature is higher than the historical internal temperature;
and when the current internal temperature is higher than the historical internal temperature, obtaining a time length according to a time point corresponding to the current internal temperature and the certain time point, obtaining a temperature change coefficient according to the current internal temperature, the historical internal temperature and the time length, and executing the step of obtaining the network fluctuation coefficient of the terminal.
As an optional implementation manner, in the first aspect of the present invention, when the network fluctuation coefficient is matched with a preset coefficient, the performing, on the wireless network of the terminal, a preset operation corresponding to the network fluctuation coefficient includes:
judging whether the temperature change coefficient is larger than or equal to a temperature change threshold value or not;
when the temperature variation coefficient is smaller than the temperature variation threshold, judging whether the network fluctuation coefficient is larger than or equal to a first threshold, and when the network fluctuation coefficient is larger than or equal to the first threshold, closing the wireless network of the terminal;
when the temperature change coefficient is larger than or equal to the temperature change threshold value, judging whether the network fluctuation coefficient is larger than or equal to a second threshold value; when the network fluctuation coefficient is larger than or equal to the second threshold value, judging whether the network fluctuation coefficient is larger than or equal to the first threshold value, and when the network fluctuation coefficient is larger than or equal to the first threshold value, closing the wireless network of the terminal; when the network fluctuation coefficient is smaller than the first threshold value, reminding a user to close a wireless network of the terminal; and when the network fluctuation coefficient is smaller than the second threshold value, reminding a user to close the wireless network of the terminal.
As an alternative implementation, in the first aspect of the present invention, the method further includes:
when the current internal temperature is lower than the historical internal temperature, judging whether the temperature change coefficient is larger than or equal to a temperature change threshold value;
and when the temperature variation coefficient is smaller than the temperature variation threshold, judging whether the network fluctuation coefficient is larger than or equal to a second threshold, and when the network fluctuation coefficient is larger than or equal to the second threshold, reminding a user to close the wireless network of the terminal.
As an optional implementation manner, in the first aspect of the present invention, the obtaining a network fluctuation coefficient of the terminal includes:
and detecting the number of times of reconnection of the wireless network of the terminal after disconnection in the time length, and taking the number of times as the network fluctuation coefficient of the terminal.
A second aspect of the present invention discloses a terminal, which may include:
the temperature acquisition unit is used for acquiring the current internal temperature of the terminal;
the coefficient acquisition unit is used for acquiring a network fluctuation coefficient of the terminal when the current internal temperature is higher than a preset temperature;
and the operation execution unit is used for executing the preset operation corresponding to the network fluctuation coefficient on the wireless network of the terminal when the network fluctuation coefficient is matched with the preset coefficient.
As an optional implementation manner, in the second aspect of the present invention, the terminal further includes:
a numerical value determining unit, configured to, when the current internal temperature is greater than a preset temperature, before the operation executing unit obtains a network fluctuation coefficient of the terminal, obtain, based on a time point corresponding to the current internal temperature, a historical internal temperature of the terminal corresponding to a previous time point at the time point corresponding to the current internal temperature, and determine whether the current internal temperature is greater than the historical internal temperature; when the current internal temperature is higher than the historical internal temperature, obtaining a time length according to a time point corresponding to the current internal temperature and the certain time point, and obtaining a temperature change coefficient according to the current internal temperature, the historical internal temperature and the time length.
As an optional implementation manner, in the second aspect of the present invention, when the network fluctuation coefficient is matched with a preset coefficient, the manner of performing the preset operation corresponding to the network fluctuation coefficient on the wireless network of the terminal by the operation performing unit is specifically:
the operation execution unit is used for judging whether the temperature change coefficient is larger than or equal to a temperature change threshold value; when the temperature variation coefficient is smaller than the temperature variation threshold, judging whether the network fluctuation coefficient is larger than or equal to a first threshold, and when the network fluctuation coefficient is larger than or equal to the first threshold, closing the wireless network of the terminal; when the temperature change coefficient is larger than or equal to the temperature change threshold value, judging whether the network fluctuation coefficient is larger than or equal to a second threshold value; when the network fluctuation coefficient is larger than or equal to the second threshold value, judging whether the network fluctuation coefficient is larger than or equal to the first threshold value, and when the network fluctuation coefficient is larger than or equal to the first threshold value, closing the wireless network of the terminal; when the network fluctuation coefficient is smaller than the first threshold value, reminding a user to close a wireless network of the terminal; and when the network fluctuation coefficient is smaller than the second threshold value, reminding a user to close the wireless network of the terminal.
As an optional implementation manner, in the second aspect of the present invention, the operation execution unit is further configured to determine whether the temperature change coefficient is greater than or equal to a temperature change threshold value when the current internal temperature is less than the historical internal temperature; and when the temperature variation coefficient is smaller than the temperature variation threshold, judging whether the network fluctuation coefficient is larger than or equal to a second threshold, and when the network fluctuation coefficient is larger than or equal to the second threshold, reminding a user to close the wireless network of the terminal.
As an optional implementation manner, in the second aspect of the present invention, the manner that the coefficient obtaining unit is configured to obtain the network fluctuation coefficient of the terminal is specifically:
and the coefficient acquisition unit detects the number of times of reconnection of the wireless network of the terminal after disconnection within the time length, and the number of times is used as the network fluctuation coefficient of the terminal.
A third aspect of the present invention discloses a terminal, which may include:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the network state detection method disclosed in the first aspect of the present invention.
A fourth aspect of the present invention discloses a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute the network status detection method as disclosed in the first aspect of the present invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the current internal temperature of the terminal is obtained, when the current internal temperature is higher than the preset temperature, the network fluctuation coefficient of the terminal is obtained, and when the network fluctuation coefficient is matched with the preset coefficient, the preset operation corresponding to the network fluctuation coefficient is executed on the wireless network of the terminal; it can be seen that, in the embodiment of the present invention, by detecting the current internal temperature of the terminal, when the current internal temperature is greater than the preset temperature (indicating that the terminal is in a heating state), and then further performing the preset operation corresponding to the network fluctuation coefficient on the wireless network of the terminal according to the network fluctuation coefficient, the terminal can be prevented from frequently scanning the network to aggravate the heating of the terminal under the condition that the network signal is unstable, thereby achieving the purpose of protecting the terminal; in addition, the preset operation can be executed on the wireless network when the wireless network is unstable according to the network fluctuation coefficient, so that the wireless network is prevented from being disconnected and disconnected, and the use comfort of a user is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a network status detection method according to an embodiment of the present invention;
fig. 2 is another schematic flow chart of a network status detection method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a terminal disclosed in the embodiment of the present invention;
fig. 4 is another schematic structural diagram of the terminal disclosed in the embodiment of the present invention;
fig. 5 is another schematic structural diagram of the terminal disclosed in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "comprises" and "comprising," and any variations thereof, of embodiments of the present invention are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the invention discloses a network state detection method, which is used for preventing a terminal from frequently scanning a network under the condition of unstable network signals to aggravate the heating of the terminal, thereby achieving the purpose of protecting the terminal, further avoiding the disconnection and disconnection of the wireless network and improving the use comfort of a user. The embodiment of the invention also correspondingly discloses a terminal.
The terminal according to the embodiment of the present invention may include, but is not limited to, various devices capable of having network connection capability, such as a Mobile phone, a Mobile tablet, a Personal Digital Assistant (PDA), a multimedia player, an electronic reader, a wearable Device, a Mobile Internet Device (MID), and a computer. The technical solution of the present invention will be described in detail with reference to specific embodiments from the terminal perspective.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a network status detection method according to an embodiment of the present invention; as shown in fig. 1, a network status detection method may include:
101. the terminal acquires the current internal temperature.
As an alternative embodiment, the terminal starts a built-in temperature acquisition device to acquire the current internal temperature B2.
102. And when the current internal temperature is higher than the preset temperature, the terminal acquires the network fluctuation coefficient.
The network fluctuation factor is used to indicate the number of reconnection times after a terminal network (e.g., a wireless network) is disconnected within a certain time period. If the current collection time point of the internal temperature is T2, a time duration (time period) T2-T1 is obtained before the time point T2 (time elapsed according to the time axis) at time point T1 according to T1 and T2, and a network fluctuation coefficient is a number of times that a network (e.g., a wireless network) of the terminal is reconnected after being disconnected within the time duration (repeatedly disconnecting and reconnecting for multiple times), and further, in some embodiments of the present invention, the acquiring, by the terminal, the network fluctuation coefficient specifically includes: and the terminal detects the reconnection times of the wireless network after disconnection within the time length, and the reconnection times are used as the network fluctuation coefficient of the terminal.
For example, the terminal WiFi is set to have a WiFi fluctuation coefficient after 5 minutes disconnection in a normal environment, that is, when the number of times of reconnection after WiFi disconnection is 3 in 5 minutes, a WiFi fluctuation coefficient a is 3. Wherein the larger a, the more unstable the WiFi connection signal.
If A is less than or equal to 2, the WiFi connection signal is stable;
when A is more than or equal to 3 and less than or equal to 5, the WiFi connection signal is slightly unstable;
when A is more than or equal to 6 and less than or equal to 8, the WiFi connection signal is moderately unstable;
when 9 ≦ A, the WiFi connection signal is very unstable.
Based on the above description, in the embodiment of the present invention, a first threshold and a second threshold may be set according to a network connection signal stability condition reflected by a network fluctuation coefficient, where the first threshold is used to indicate two degrees of network instability of a terminal, the first threshold indicates that a network signal is very unstable, and the second threshold indicates that the network signal is moderately unstable, which will be described in more detail in the following embodiments, and will not be described again here.
As an optional implementation manner, when the current internal temperature is greater than the preset temperature and before the terminal acquires the network fluctuation coefficient, the physical state of the router is detected, and when the physical state indicates that the router normally works, the step of acquiring the network fluctuation coefficient is performed.
Further, the physical state of the router includes, but is not limited to, whether the router is properly started, whether the router is damaged and unrecognized, whether the firewall is isolated, and the like.
103. And when the network fluctuation coefficient is matched with the preset coefficient, the terminal executes the preset operation corresponding to the network fluctuation coefficient on the wireless network.
In the embodiment of the invention, the current internal temperature of the terminal is obtained, when the current internal temperature is higher than the preset temperature, the network fluctuation coefficient of the terminal is obtained, and when the network fluctuation coefficient is matched with the preset coefficient, the preset operation corresponding to the network fluctuation coefficient is executed on the wireless network of the terminal; it can be seen that, in the embodiment of the present invention, by detecting the current internal temperature of the terminal, when the current internal temperature is greater than the preset temperature (indicating that the terminal is in a heating state), and then further performing the preset operation corresponding to the network fluctuation coefficient on the wireless network of the terminal according to the network fluctuation coefficient, the terminal can be prevented from frequently scanning the network to aggravate the heating of the terminal under the condition that the network signal is unstable, thereby achieving the purpose of protecting the terminal; in addition, the preset operation can be executed on the wireless network when the wireless network is unstable according to the network fluctuation coefficient, so that the wireless network is prevented from being disconnected and disconnected, and the use comfort of a user is improved.
Example two
Referring to fig. 2, fig. 2 is another schematic flow chart of a network status detection method according to an embodiment of the present invention; as shown in fig. 2, a network status detection method may include:
201. the terminal acquires the current internal temperature B2. Wherein, when the current internal temperature B2 is greater than the preset temperature C1, the process goes to step 202; when the current internal temperature B2 is less than or equal to the preset temperature C1, the process ends.
It is understood that the terminal has a corresponding normal operating temperature, and an abnormal temperature (abnormal heating) is obtained when the normal operating temperature is exceeded, so as to further identify whether the terminal is in a heating state by detecting the current internal temperature B2 of the terminal.
202. When the current internal temperature B2 is higher than the preset temperature C1, the terminal obtains the historical internal temperature B1 corresponding to the time point T2 corresponding to the current internal temperature B2 at the previous time point T1 based on the time point T2 corresponding to the current internal temperature B2.
The preset temperature C1 is a normal working temperature, and then the internal temperatures of the terminal corresponding to the two time points T1 and T2 are obtained.
203. The terminal determines whether the current internal temperature B2 is greater than the historical internal temperature B1. Wherein when the current interior temperature B2 is greater than the historical interior temperature B1, the process goes to step 204.
As an alternative embodiment, when the current internal temperature B2 is less than the historical internal temperature B1, and after performing steps 204 and 205, the terminal further determines whether the temperature change coefficient B is greater than or equal to the temperature change threshold C; and when the temperature change coefficient B is smaller than the temperature change threshold C, judging whether the network fluctuation coefficient A is larger than or equal to a second threshold A2, and when the network fluctuation coefficient A is larger than or equal to the second threshold A2, reminding a user to close the wireless network. By the implementation mode, when the current internal temperature B2 is lower than the historical internal temperature B1, the network fluctuation coefficient A is further seen, and when the network fluctuation coefficient A reflects network instability, a user is reminded, and can select to close the wireless network.
As another alternative, when the current internal temperature B2 is equal to the historical internal temperature B1, that is, the temperature variation coefficient B is zero, and after performing steps 204 and 205, the terminal further identifies whether the network fluctuation coefficient a is greater than or equal to the first threshold, and when the network fluctuation coefficient a is greater than or equal to the first threshold, the terminal reminds the user to turn off the wireless network.
204. The terminal obtains a time length S according to a time point T2 corresponding to the current internal temperature B2 and a certain time point T1, and obtains a temperature change coefficient B according to the current internal temperature B2, the historical internal temperature B1 and the time length S.
In connection with the description of the first embodiment, for example, if the normal temperature of the machine is set to 0 ℃ to 30 ℃, then 30 ℃ is set to the preset temperature, and the fact that the current internal temperature B2 is higher than the preset temperature C1 means that the current internal temperature B2 is higher than 30 ℃. The current internal temperature of the terminal is B2, and the temperature change coefficient B has the following conditions:
1) when B2 belongs to [0, 30], the terminal is in a normal temperature state, and the temperature change coefficient is not calculated at the moment;
2) when B2 ∈ (30, + ∞), the terminal temperature is too high, the internal temperature is B1 at the time point T1 in the exothermic state, and the temperature change coefficient B is | B2-B1|/N, | B2-B1| refers to the absolute value of B2-B1, and N is the time period from the time point T1 to the time point T2.
When B2 is greater than B1, the temperature is rising, and if B is larger, the amplitude of the terminal temperature rise is larger;
when B2 < B1, the temperature is falling, and if B is larger, the amplitude of the terminal temperature drop is larger;
when B2 is B1, the temperature is unchanged, and B is 0;
3) when B2 ∈ (— ∞, 0), the terminal temperature is low, i.e., in a relatively cold environment state, and no temperature change coefficient calculation is performed at this time (the terminal needs to generate heat to keep the machine operating normally in the cold environment, so that the network does not need to be shut down regardless of network fluctuations).
205. And the terminal acquires a network fluctuation coefficient A.
In some embodiments, the network fluctuation coefficient a is obtained at the same time as the current internal temperature B2 is obtained, or the network fluctuation coefficient a is obtained first and then the current internal temperature B2 is obtained, which is not specifically limited in the embodiments of the present invention.
206. The terminal judges whether the temperature change coefficient B is greater than or equal to a temperature change threshold C. If the temperature variation coefficient B is smaller than the temperature variation threshold C, go to step 207; when the temperature change coefficient B is greater than or equal to the temperature change threshold C, the process goes to step 208.
C is 3, and when B is more than or equal to C, the change range of the temperature is larger in the time period.
In the embodiment of the present invention, C may take a value of 3.
207. The terminal determines whether the network fluctuation coefficient a is greater than or equal to a first threshold a 1. Wherein, when the network fluctuation coefficient A is greater than or equal to the first threshold value A1, the process goes to step 210;
208. when the temperature change coefficient B is larger than or equal to the temperature change threshold value C, the terminal judges whether the network fluctuation coefficient A is larger than or equal to a second threshold value A2. When the network fluctuation coefficient A is greater than or equal to the second threshold value A2, the process goes to step 209; when the network fluctuation coefficient a is smaller than the second threshold, the process goes to step 211.
209. When the network fluctuation coefficient A is larger than or equal to the second threshold value A2, the terminal judges whether the network fluctuation coefficient A is larger than or equal to the first threshold value A1. Wherein, when the network fluctuation coefficient A is greater than or equal to the first threshold value A1, the flow goes to step 210; when the network fluctuation coefficient a is less than the first threshold a1, the process goes to step 211.
210. The terminal shuts down the wireless network.
When the terminal closes the wireless network, a prompt window pops up to prompt the user that the wireless network is closed.
211. The terminal reminds the user to close the wireless network.
As an optional implementation manner, the step of the terminal prompting the user to close the wireless network specifically includes: and popping up a prompt window by the terminal, displaying prompt information in the prompt window, wherein the prompt information is used for prompting that the wireless network of the user terminal is unstable, and suggesting to close so as to avoid aggravating the heating of the terminal and causing abnormal heating of the terminal.
As another optional implementation, the step of the terminal prompting the user to turn off the wireless network specifically includes: the terminal acquires other mobile terminals bound with the terminal, and sends prompt information to the other mobile terminals, wherein the prompt information is used for prompting that a wireless network of the user terminal is unstable, and closing is recommended so as to avoid aggravating heating of the terminal and causing abnormal heating of the terminal.
By the embodiment, the terminal is prevented from frequently scanning the network to aggravate the terminal heating under the condition that the network signal is unstable by directly closing the wireless network or suggesting a user to close the wireless network under the condition that the network is unstable, so that the purpose of protecting the terminal is achieved; in addition, the preset operation can be executed on the wireless network when the wireless network is unstable according to the network fluctuation coefficient, so that the wireless network is prevented from being disconnected and disconnected, and the use comfort of a user is improved.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention; as shown in fig. 3, a terminal may include:
a temperature obtaining unit 310 for obtaining a current internal temperature of the terminal;
a coefficient obtaining unit 320, configured to obtain a network fluctuation coefficient of the terminal when the current internal temperature is greater than a preset temperature;
and the operation executing unit 330 is configured to execute a preset operation corresponding to the network fluctuation coefficient on the wireless network of the terminal when the network fluctuation coefficient is matched with the preset coefficient.
By implementing the terminal shown in fig. 3, the temperature obtaining unit 310 obtains the current internal temperature of the terminal, when the current internal temperature is greater than the preset temperature, the coefficient obtaining unit 320 obtains the network fluctuation coefficient of the terminal, and the operation executing unit 330 executes the preset operation corresponding to the network fluctuation coefficient on the wireless network of the terminal when the network fluctuation coefficient is matched with the preset coefficient; it can be seen that, in the embodiment of the present invention, by detecting the current internal temperature of the terminal, when the current internal temperature is greater than the preset temperature (indicating that the terminal is in a heating state), and then further performing the preset operation corresponding to the network fluctuation coefficient on the wireless network of the terminal according to the network fluctuation coefficient, the terminal can be prevented from frequently scanning the network to aggravate the heating of the terminal under the condition that the network signal is unstable, thereby achieving the purpose of protecting the terminal; in addition, the preset operation can be executed on the wireless network when the wireless network is unstable according to the network fluctuation coefficient, so that the wireless network is prevented from being disconnected and disconnected, and the use comfort of a user is improved.
It will be appreciated that the terminal shown in fig. 3 may be used to perform the network status detection method shown in steps 101-103.
As an optional implementation manner, the temperature obtaining unit 310 is specifically configured to start a built-in temperature collecting device to collect the current internal temperature.
As an optional implementation manner, the coefficient obtaining unit 320 detects a physical state of the router when the current internal temperature is greater than the preset temperature and before obtaining the network fluctuation coefficient of the terminal, and performs the step of obtaining the network fluctuation coefficient when the physical state indicates that the router normally operates. The physical state of the router includes, but is not limited to, whether the router is started correctly, whether the router is damaged and cannot be identified, whether a firewall is isolated, and the like.
Referring to fig. 3, in the terminal shown in fig. 4, the terminal further includes:
a value determining unit 410, configured to, when the current internal temperature is greater than the preset temperature, before the operation executing unit 330 obtains the network fluctuation coefficient of the terminal, obtain, based on a time point corresponding to the current internal temperature, a historical internal temperature of the terminal corresponding to a previous time point at the time point corresponding to the current internal temperature, and determine whether the current internal temperature is greater than the historical internal temperature; when the current internal temperature is higher than the historical internal temperature, obtaining a time length according to a time point corresponding to the current internal temperature and a certain time point, and obtaining a temperature change coefficient according to the current internal temperature, the historical internal temperature and the time length.
As an optional implementation manner, the manner of the coefficient obtaining unit 320 for obtaining the network fluctuation coefficient of the terminal is specifically:
the coefficient obtaining unit 320 detects the number of reconnection times after the wireless network of the terminal is disconnected within a time duration, and uses the number of reconnection times as a network fluctuation coefficient of the terminal.
As an optional implementation manner, when the network fluctuation coefficient is matched with the preset coefficient, the operation performing unit 330 is configured to perform the preset operation corresponding to the network fluctuation coefficient on the wireless network of the terminal in a specific manner:
the operation executing unit 330 is configured to determine whether the temperature variation coefficient is greater than or equal to a temperature variation threshold; when the temperature variation coefficient is smaller than the temperature variation threshold, judging whether the network fluctuation coefficient is larger than or equal to a first threshold, and when the network fluctuation coefficient is larger than or equal to the first threshold, closing the wireless network of the terminal; when the temperature change coefficient is larger than or equal to the temperature change threshold value, judging whether the network fluctuation coefficient is larger than or equal to a second threshold value; when the network fluctuation coefficient is larger than or equal to the second threshold value, judging whether the network fluctuation coefficient is larger than or equal to the first threshold value, and when the network fluctuation coefficient is larger than or equal to the first threshold value, closing the wireless network of the terminal; when the network fluctuation coefficient is smaller than a first threshold value, reminding a user to close a wireless network of the terminal; and when the network fluctuation coefficient is smaller than a second threshold value, reminding the user to close the wireless network of the terminal.
Further, the operation executing unit 330 is further configured to determine whether the temperature change coefficient is greater than or equal to a temperature change threshold value when the current internal temperature is less than the historical internal temperature; and when the temperature variation coefficient is smaller than the temperature variation threshold, judging whether the network fluctuation coefficient is larger than or equal to a second threshold, and reminding a user to close the wireless network of the terminal when the network fluctuation coefficient is larger than or equal to the second threshold.
As an optional implementation manner, the operation performing unit 330 is specifically configured to pop up a prompt window, and display a prompt message in the prompt window, where the prompt message is used to prompt that the wireless network of the user terminal is unstable, and to recommend closing, so as to avoid aggravating heating of the terminal and causing abnormal heating of the terminal.
As another optional implementation manner, the operation performing unit 330 is specifically configured to acquire other mobile terminals bound to the terminal, and send a prompt message to the other mobile terminals, where the prompt message is used to prompt that a wireless network of the user terminal is unstable, and to recommend to shut down the terminal, so as to avoid aggravating heating of the terminal and causing abnormal heating of the terminal.
It is understood that the terminal shown in fig. 4 may be used to perform the network status detection method shown in steps 201 to 211.
Example four
Referring to fig. 5, fig. 5 is another schematic structural diagram of a terminal according to an embodiment of the disclosure; the terminal shown in fig. 5 may include: at least one processor 510, such as a CPU, memory 520, at least one communication bus 530, input devices 540, output devices 550. Wherein a communication bus 530 is used to enable communication connections between these components. Memory 520 may be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The memory 520 may optionally be at least one memory device located remotely from the processor 510. Wherein, the processor 510 can be combined with the terminal described in fig. 3 to fig. 4, the memory 520 stores a set of program codes, and the processor 510 calls the program codes stored in the memory 520 to perform the following operations:
acquiring the current internal temperature of the terminal;
when the current internal temperature is higher than a preset temperature, acquiring a network fluctuation coefficient of the terminal;
and when the network fluctuation coefficient is matched with a preset coefficient, executing preset operation corresponding to the network fluctuation coefficient on a wireless network of the terminal.
In some alternative embodiments, the processor 510 may be configured to perform the following steps:
when the current internal temperature is higher than a preset temperature, acquiring the historical internal temperature of the terminal corresponding to a certain previous time point at the time point corresponding to the current internal temperature by taking the time point corresponding to the current internal temperature as a basis, and judging whether the current internal temperature is higher than the historical internal temperature;
and when the current internal temperature is higher than the historical internal temperature, obtaining a time length according to a time point corresponding to the current internal temperature and the certain time point, obtaining a temperature change coefficient according to the current internal temperature, the historical internal temperature and the time length, and executing the step of obtaining the network fluctuation coefficient of the terminal.
In some alternative embodiments, the processor 510 may be configured to perform the following steps:
judging whether the temperature change coefficient is larger than or equal to a temperature change threshold value or not;
when the temperature variation coefficient is smaller than the temperature variation threshold, judging whether the network fluctuation coefficient is larger than or equal to a first threshold, and when the network fluctuation coefficient is larger than or equal to the first threshold, closing the wireless network of the terminal;
when the temperature change coefficient is larger than or equal to the temperature change threshold value, judging whether the network fluctuation coefficient is larger than or equal to a second threshold value; when the network fluctuation coefficient is larger than or equal to the second threshold value, judging whether the network fluctuation coefficient is larger than or equal to the first threshold value, and when the network fluctuation coefficient is larger than or equal to the first threshold value, closing the wireless network of the terminal; when the network fluctuation coefficient is smaller than the first threshold value, reminding a user to close a wireless network of the terminal; and when the network fluctuation coefficient is smaller than the second threshold value, reminding a user to close the wireless network of the terminal.
In some alternative embodiments, the processor 510 may be configured to perform the following steps:
when the current internal temperature is lower than the historical internal temperature, judging whether the temperature change coefficient is larger than or equal to a temperature change threshold value;
and when the temperature variation coefficient is smaller than the temperature variation threshold, judging whether the network fluctuation coefficient is larger than or equal to a second threshold, and when the network fluctuation coefficient is larger than or equal to the second threshold, reminding a user to close the wireless network of the terminal.
In some alternative embodiments, the processor 510 may be configured to perform the following steps:
and detecting the number of times of reconnection of the wireless network of the terminal after disconnection in the time length, and taking the number of times as the network fluctuation coefficient of the terminal.
Through the terminal, the first aspect can prevent the terminal from frequently scanning the network to aggravate the terminal heating under the condition that the network signal is unstable, thereby achieving the purpose of protecting the terminal; according to the second aspect, the preset operation can be executed on the wireless network when the wireless network is unstable according to the network fluctuation coefficient, the wireless network is prevented from being disconnected, and the use comfort of a user is improved.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by instructions associated with a program, which may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), compact disc-Read-Only Memory (CD-ROM), or other Memory, magnetic disk, magnetic tape, or magnetic tape, Or any other medium which can be used to carry or store data and which can be read by a computer.
The network state detection method and the terminal disclosed in the embodiments of the present invention are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present invention, and the description of the embodiments above is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A network state detection method is characterized by comprising the following steps:
acquiring the current internal temperature of the terminal;
when the current internal temperature is higher than a preset temperature, acquiring a network fluctuation coefficient of the terminal;
when the network fluctuation coefficient is matched with a preset coefficient, executing preset operation corresponding to the network fluctuation coefficient on a wireless network of the terminal;
when the current internal temperature is higher than the preset temperature and before the network fluctuation coefficient of the terminal is acquired, the method further includes:
detecting the physical state of the router; when the physical state indicates that the router works normally, the step of acquiring the network fluctuation coefficient of the terminal is executed;
when the current internal temperature is greater than a preset temperature and before the network fluctuation coefficient of the terminal is acquired, the method further includes:
when the current internal temperature is higher than a preset temperature, acquiring the historical internal temperature of the terminal corresponding to a certain previous time point at the time point corresponding to the current internal temperature by taking the time point corresponding to the current internal temperature as a basis, and judging whether the current internal temperature is higher than the historical internal temperature;
when the current internal temperature is higher than the historical internal temperature, obtaining a time length according to a time point corresponding to the current internal temperature and the certain time point, obtaining a temperature change coefficient according to the current internal temperature, the historical internal temperature and the time length, and executing the step of obtaining the network fluctuation coefficient of the terminal;
further, when the network fluctuation coefficient is matched with a preset coefficient, executing a preset operation corresponding to the network fluctuation coefficient on the wireless network of the terminal includes:
judging whether the temperature change coefficient is larger than or equal to a temperature change threshold value or not;
when the temperature variation coefficient is smaller than the temperature variation threshold, judging whether the network fluctuation coefficient is larger than or equal to a first threshold, and when the network fluctuation coefficient is larger than or equal to the first threshold, closing the wireless network of the terminal;
when the temperature change coefficient is larger than or equal to the temperature change threshold value, judging whether the network fluctuation coefficient is larger than or equal to a second threshold value; when the network fluctuation coefficient is larger than or equal to the second threshold value, judging whether the network fluctuation coefficient is larger than or equal to the first threshold value, and when the network fluctuation coefficient is larger than or equal to the first threshold value, closing the wireless network of the terminal; when the network fluctuation coefficient is smaller than the first threshold value, reminding a user to close a wireless network of the terminal; when the network fluctuation coefficient is smaller than the second threshold value, reminding a user to close a wireless network of the terminal;
and the network fluctuation coefficient is used for indicating the number of times of reconnection of the wireless network of the terminal after disconnection in the time length.
2. The method of claim 1, further comprising:
when the current internal temperature is lower than the historical internal temperature, judging whether the temperature change coefficient is larger than or equal to a temperature change threshold value;
and when the temperature variation coefficient is smaller than the temperature variation threshold, judging whether the network fluctuation coefficient is larger than or equal to a second threshold, and when the network fluctuation coefficient is larger than or equal to the second threshold, reminding a user to close the wireless network of the terminal.
3. The method of claim 1, wherein the obtaining the network fluctuation coefficient of the terminal comprises:
and detecting the number of times of reconnection of the wireless network of the terminal after disconnection in the time length, and taking the number of times as the network fluctuation coefficient of the terminal.
4. A terminal, comprising:
the temperature acquisition unit is used for acquiring the current internal temperature of the terminal;
the coefficient acquisition unit is used for acquiring a network fluctuation coefficient of the terminal when the current internal temperature is higher than a preset temperature;
the operation execution unit is used for executing the preset operation corresponding to the network fluctuation coefficient on the wireless network of the terminal when the network fluctuation coefficient is matched with the preset coefficient;
the coefficient acquisition unit is specifically configured to detect a physical state of the router when the current internal temperature is greater than the preset temperature, and acquire a network fluctuation coefficient when the physical state indicates that the router normally operates;
the terminal further comprises:
a numerical value determining unit, configured to, when the current internal temperature is greater than a preset temperature, before the operation executing unit obtains a network fluctuation coefficient of the terminal, obtain, based on a time point corresponding to the current internal temperature, a historical internal temperature of the terminal corresponding to a previous time point at the time point corresponding to the current internal temperature, and determine whether the current internal temperature is greater than the historical internal temperature; when the current internal temperature is higher than the historical internal temperature, obtaining a time length according to a time point corresponding to the current internal temperature and the certain time point, and obtaining a temperature change coefficient according to the current internal temperature, the historical internal temperature and the time length;
the operation executing unit is configured to, when the network fluctuation coefficient is matched with a preset coefficient, execute a preset operation corresponding to the network fluctuation coefficient on the wireless network of the terminal in a specific manner:
the operation execution unit is used for judging whether the temperature change coefficient is larger than or equal to a temperature change threshold value; when the temperature variation coefficient is smaller than the temperature variation threshold, judging whether the network fluctuation coefficient is larger than or equal to a first threshold, and when the network fluctuation coefficient is larger than or equal to the first threshold, closing the wireless network of the terminal; when the temperature change coefficient is larger than or equal to the temperature change threshold value, judging whether the network fluctuation coefficient is larger than or equal to a second threshold value; when the network fluctuation coefficient is larger than or equal to the second threshold value, judging whether the network fluctuation coefficient is larger than or equal to the first threshold value, and when the network fluctuation coefficient is larger than or equal to the first threshold value, closing the wireless network of the terminal; when the network fluctuation coefficient is smaller than the first threshold value, reminding a user to close a wireless network of the terminal; when the network fluctuation coefficient is smaller than the second threshold value, reminding a user to close a wireless network of the terminal;
and the network fluctuation coefficient is used for indicating the number of times of reconnection of the wireless network of the terminal after disconnection in the time length.
5. The terminal of claim 4,
the operation execution unit is further used for judging whether the temperature change coefficient is larger than or equal to a temperature change threshold value when the current internal temperature is smaller than the historical internal temperature; and when the temperature variation coefficient is smaller than the temperature variation threshold, judging whether the network fluctuation coefficient is larger than or equal to a second threshold, and when the network fluctuation coefficient is larger than or equal to the second threshold, reminding a user to close the wireless network of the terminal.
6. The terminal according to claim 4, wherein the coefficient obtaining unit is configured to obtain the network fluctuation coefficient of the terminal by specifically:
and the coefficient acquisition unit detects the number of times of reconnection of the wireless network of the terminal after disconnection within the time length, and the number of times is used as the network fluctuation coefficient of the terminal.
7. A terminal, comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to perform the network status detection method of any one of claims 1 to 3.
8. A computer-readable storage medium, characterized in that it stores a computer program for electronic data exchange, wherein the computer program causes a computer to execute the network status detection method according to any one of claims 1 to 3.
CN201711093679.3A 2017-11-08 2017-11-08 Network state detection method and terminal Active CN107846325B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711093679.3A CN107846325B (en) 2017-11-08 2017-11-08 Network state detection method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711093679.3A CN107846325B (en) 2017-11-08 2017-11-08 Network state detection method and terminal

Publications (2)

Publication Number Publication Date
CN107846325A CN107846325A (en) 2018-03-27
CN107846325B true CN107846325B (en) 2020-09-04

Family

ID=61682503

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711093679.3A Active CN107846325B (en) 2017-11-08 2017-11-08 Network state detection method and terminal

Country Status (1)

Country Link
CN (1) CN107846325B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110300446B (en) * 2019-06-28 2022-03-22 南昌黑鲨科技有限公司 Network connection control method, system, intelligent terminal and computer readable storage medium
CN111211937B (en) * 2019-12-28 2022-03-22 苏州浪潮智能科技有限公司 Method, device and system for testing stability of server link signals

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101868021A (en) * 2010-06-18 2010-10-20 华为终端有限公司 Heat protection method and wireless access network equipment
CN105100422A (en) * 2015-05-29 2015-11-25 努比亚技术有限公司 Intelligent information reminding method and intelligent information reminding terminal
CN105791033A (en) * 2016-05-09 2016-07-20 浪潮电子信息产业股份有限公司 Method, device and system for regulating operating state of server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9405303B2 (en) * 2013-04-22 2016-08-02 Emerson Electric Co. Power stealing for a wireless-enabled thermostat

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101868021A (en) * 2010-06-18 2010-10-20 华为终端有限公司 Heat protection method and wireless access network equipment
CN105100422A (en) * 2015-05-29 2015-11-25 努比亚技术有限公司 Intelligent information reminding method and intelligent information reminding terminal
CN105791033A (en) * 2016-05-09 2016-07-20 浪潮电子信息产业股份有限公司 Method, device and system for regulating operating state of server

Also Published As

Publication number Publication date
CN107846325A (en) 2018-03-27

Similar Documents

Publication Publication Date Title
CN106412293B (en) Foreign matter detection method and device and terminal equipment
CN107846325B (en) Network state detection method and terminal
WO2018103402A1 (en) Wireless fidelity (wifi) scan method and related product
CN104021218A (en) Information display method and device
US20180164980A1 (en) Method, Apparatus, and Device for Enabling Task Management Interface
CN110990733B (en) Page loading method and device, electronic equipment and medium
CN106162805B (en) WIFI hotspot service access control method and device
EP3229130B1 (en) Smart terminal information display method and smart terminal
CN106258009A (en) A kind of gather the method for fingerprint, fingerprint capturer and terminal
CN112361555B (en) Air conditioner control method and device, electronic equipment and storage medium
CN115823708A (en) Method and device for detecting gas concentration, air conditioner and storage medium
CN107682909B (en) Control method and device for connecting access point
CN111917606B (en) Method and device for processing fault information, storage medium and electronic equipment
CN112583617B (en) Fault determination method, server, control terminal and storage medium
CN115219930B (en) Vehicle storage battery aging early warning method and device, electronic equipment and storage medium
CN107222847B (en) Data transmission method, device and terminal
US11005675B2 (en) Electronic device and method for providing notification service therefor
CN107491332B (en) Method and device for identifying false installation of application program and server
CN112230088B (en) Household appliance power-on self-checking method, system, equipment and storage medium
CN110829623A (en) Charging method based on smart antenna and wearable device
CN105988835B (en) Software upgrading method and terminal
CN109710339B (en) Information processing method and device
CN112731840B (en) Parameter adjusting method and device of electronic equipment and processor
CN112413850A (en) Control method and device of air conditioner, storage medium and electronic device
US11043091B2 (en) Method for controlling an image capturing device that captures an image to be displayed or stored by a terminal device from among a plurality of image capturing devices

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