Summary of the invention
The technical problem to be solved in the present invention is that in view of the above drawbacks of the prior art, providing a kind of mobile terminal
WIFI method for detecting abnormality, storage device and mobile terminal, it is intended to user is reminded when WIFI power amplifier chips exception, with
The phenomenon that avoiding user's use for a long time that WIFI power amplifier chips is caused to damage.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of WIFI method for detecting abnormality of mobile terminal comprising:
When mobile terminal receives WIFI sending and receiving data interrupt signal, the work number of WIFI power amplifier chips in the predetermined time is obtained
According to, wherein the operational data includes electric current and voltage;
It is detected according to the data acquisition system that preset condition forms all operational datas got;
When testing result is unsatisfactory for the use condition of WIFI power amplifier chips, prompt to deactivate WIFI.
The WIFI method for detecting abnormality of the mobile terminal, wherein described when mobile terminal receives WIFI sending and receiving data
When interrupt signal, the operational data for obtaining WIFI power amplifier chips in the predetermined time is specifically included:
When the mobile terminal receives WIFI sending and receiving data interrupt signal, the described of the WIFI power amplifier chips is persistently obtained
Operational data, and record the duration of acquisition;
When the duration reaching the predetermined time, stop the acquisition of the operational data.
The WIFI method for detecting abnormality of the mobile terminal, wherein it is described according to preset condition to all institutes got
The data acquisition system for stating operational data formation carries out detection and specifically includes:
Using electric current as abscissa, voltage is that ordinate establishes coordinate system;
Obtain two current values and two voltage values in the data acquisition system according to preset rules, according to described two current values and
Described two voltage values delimit rectangular area in the coordinate system;
Any first coordinate points are chosen in the rectangular area, when first coordinate points are not present in the data acquisition system
When, the second coordinate points obtained after first coordinate points are moved up and down respectively with preset value are calculated, and judge each
A second coordinate points whether there is in the data acquisition system;
When each second coordinate points are present in the data acquisition system, determine that first coordinate points are abnormal number
According to.
The WIFI method for detecting abnormality of the mobile terminal, wherein described to obtain the data acquisition system according to preset rules
In two current values and two voltage values specifically:
Current minimum, current maxima, voltage minimum and voltage max are obtained from the data acquisition system.
The WIFI method for detecting abnormality of the mobile terminal, wherein described according to described two current values and described two
Voltage value delimited rectangular area in the coordinate system and specifically included:
To correspond to the coordinate points of the current minimum and the voltage minimum in the coordinate system for the first vertex, with correspondence
The coordinate points of the current minimum and the voltage max are the second vertex, with the correspondence current maxima and the electricity
The coordinate points for pressing maximum value are third vertex, and are with the coordinate points of the correspondence current maxima and the voltage minimum
4th vertex;
It delimited in the coordinate system with first vertex, second vertex, the third vertex and the 4th vertex
The rectangular area.
The WIFI method for detecting abnormality of the mobile terminal, wherein the use condition of the WIFI power amplifier chips specifically:
The number that the abnormal data occurs is lower than preset threshold.
The WIFI method for detecting abnormality of the mobile terminal, wherein described when testing result is unsatisfactory for WIFI power amplifier chips
Use condition when, prompt deactivate WIFI specifically include:
The number that the abnormal data occurs is recorded, and the number is compared with the preset threshold;
When the number is not less than the preset threshold, prompt to deactivate WIFI.
The WIFI method for detecting abnormality of the mobile terminal, wherein the predetermined time is 200 milliseconds.
A kind of storage device, wherein the storage device is stored with computer program, and the computer program is able to carry out
To realize the WIFI method for detecting abnormality of mobile terminal described in any one as above.
A kind of mobile terminal comprising: central processing unit, the storage equipment being connect with the central processing unit, it is described to deposit
Storage equipment is stored with computer program, and the computer program realizes any one institute as above when being executed by the central processing unit
State the WIFI method for detecting abnormality of mobile terminal;
The central processing unit is used to call the computer program in the storage equipment, to execute shifting described in above-mentioned any one
The WIFI method for detecting abnormality of dynamic terminal.
The utility model has the advantages that the present invention when mobile terminal receives WIFI sending and receiving data interrupt signal, obtains in the predetermined time
The operational data of WIFI power amplifier chips, wherein the operational data includes electric current and voltage;According to preset condition to getting
The data acquisition system that all working data are formed is detected;When testing result is unsatisfactory for the use condition of WIFI power amplifier chips,
The phenomenon that prompting to deactivate WIFI, causing WIFI power amplifier chips to damage to avoid user's use for a long time.
Specific embodiment
WIFI method for detecting abnormality, storage device and the mobile terminal of mobile terminal provided by the invention, to make the present invention
Objects, technical solutions and advantages it is clearer, clear, as follows in conjunction with drawings and embodiments further specifically to the present invention
It is bright.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
With reference to the accompanying drawing, by the description of the embodiment, further explanation of the contents of the invention are made.
The present invention provides WIFI method for detecting abnormality, storage device and the mobile terminals of a kind of mobile terminal, such as Fig. 1 institute
Show, the WIFI method for detecting abnormality of the mobile terminal includes the following steps:
S100, when mobile terminal receives WIFI sending and receiving data interrupt signal, obtain WIFI power amplifier chips in the predetermined time
Operational data, wherein the operational data includes electric current and voltage.
The WIFI method for detecting abnormality of mobile terminal of the present invention can run on any with storage and communication function
Mobile terminal, such as tablet computer, mobile phone, electronic reader, remote controler, personal computer (Personal Computer,
PC), laptop, mobile unit, Web TV etc..
The step S100 is specifically included:
S101, when the mobile terminal receives WIFI sending and receiving data interrupt signal, persistently obtain WIFI power amplifier chips institute
Operational data is stated, and records the duration of acquisition;
Specifically, the WIFI sending and receiving data interrupt signal, the shifting can be generated when interrupting during WIFI sending and receiving data
For dynamic terminal when receiving the WIFI sending and receiving data terminal signaling, triggering obtains the movement of the operational data, the movement
Terminal starts the operational data for continuing to obtain the WIFI power amplifier chips, and to the operational data and obtains the work
The duration for making data is stored and recorded.Heretofore described operational data be the corresponding electric current of specific time unit and
Voltage power supply data, the mobile terminal is available multiple to matching with the duration within the duration
The operational data;Preferred embodiment, the present invention in using millisecond as chronomere, each described operational data corresponds to
Electric current and voltage power supply data accessed by 1 millisecond, and the mobile terminal by each described operational data with
The form of (electric current, voltage) data group is stored.
The mobile terminal will be every one millisecond of corresponding electric current and voltage power supply data with (electric current, voltage) data group
Form stores, then in 200 milliseconds, the mobile terminal can store 200 described in (electric current, voltage) data group.Into one
Step, (electric current, voltage) data group described in 200 is formed data acquisition system by heretofore described mobile terminal.
S102, when the duration reaching the predetermined time, stop the acquisition of the operational data.
Specifically, setting the mobile terminal in the present invention from starting to obtain the operational data to the stopping acquisition work
The total duration for making data is equal to the predetermined time, therefore, when all in the acquisition for mobile terminal predetermined time
After the operational data, just stop the acquisition of the operational data.
S200, it is examined according to the data acquisition system that preset condition forms all operational datas got
It surveys.
The step S200 is specifically included:
S201, using electric current as abscissa, voltage be ordinate establish coordinate system;
Heretofore described operational data is stored in the form of (electric current, the voltage) data group, then for described in correspondence (electric current,
Voltage) data group, when being detected to the data acquisition system, first using electric current as abscissa, using voltage as ordinate, establish flat
Face rectangular coordinate system.
S202, two current values and two voltage values in the data acquisition system are obtained according to preset rules, according to described two
A current value and described two voltage values delimit rectangular area in the coordinate system;
Specifically, storage is multiple (electric current, voltage) data groups in the data acquisition system, after establishing the coordinate system,
Two current values and two voltage values, current value and voltage value are independently obtained out of described data acquisition system according to the preset rules
It is likely to be present in (electric current, a voltage) data group, it is also possible to be distributed in different (electric current, voltage) data groups, then
Rectangular area delimited in the coordinate system according to described two current values and described two voltage values.
The preset rules are specially that current minimum, current maxima, voltage are independently obtained out of described data acquisition system
Minimum value and voltage max after establishing the coordinate system, obtain the current minimum, described out of described data acquisition system
Current maxima, the voltage minimum and the voltage max.
Four coordinate points are selected in the present invention in the coordinate system, and are the rectangular area by four coordinate points
Four vertex, to delimit the rectangular area in the coordinate system.
It is described that delimit rectangular area in the coordinate system according to described two current values and described two voltage values specific
Include:
To correspond to the coordinate points of the current minimum and the voltage minimum in the coordinate system for the first vertex, with correspondence
The coordinate points of the current minimum and the voltage max are the second vertex, with the correspondence voltage max and the electricity
The coordinate points for flowing maximum value are third vertex, and are with the coordinate points of the correspondence current maxima and the voltage minimum
4th vertex;
It delimited in the coordinate system with first vertex, second vertex, the third vertex and the 4th vertex
The rectangular area.
Specifically, obtaining the current minimum, the current maxima, the voltage minimum and described in the present invention
After voltage max, using the current minimum as abscissa value in the coordinate system, the voltage minimum is ordinate value
Coordinate points as be located at the rectangular area lower left corner the first vertex coordinate value;In the coordinate system most with the electric current
Small value is abscissa value, and the voltage max is that the coordinate points of ordinate value are used as the positioned at the rectangular area upper left corner
The coordinate value on two vertex;Using the current maxima as abscissa value in the coordinate system, the voltage max is ordinate
Coordinate value of the coordinate points of value as the third vertex for being located at the rectangular area upper right corner;With the electric current in the coordinate system
Maximum value is abscissa value, and the voltage minimum is the coordinate points of ordinate value as positioned at the rectangular area lower right corner
The coordinate value on the 4th vertex, to obtain the coordinate value on four vertex of the rectangular area.
Then first vertex, second vertex, the third vertex and described delimited in the coordinate system
Four vertex, by being sequentially connected from beginning to end between first vertex, second vertex, the third vertex and the 4th vertex
Back wall at region be the rectangular area.
S203, any first coordinate points are chosen in the rectangular area, when first coordinate points be not present in it is described
When data acquisition system, the second coordinate points obtained after first coordinate points are moved up and down respectively with preset value are calculated,
And judge that each second coordinate points whether there is in the data acquisition system;
First coordinate points be the rectangular area in any one coordinate points, by first coordinate points it is corresponding (electric current,
Voltage) own (electric current, voltage) data groups in data group and the data acquisition system and compare, judge be in the data acquisition system
No presence and current value are identical as the abscissa value of first coordinate points, and the vertical seat of voltage value and first coordinate points
Identical (electric current, the voltage) data group of scale value, when it is present, then first coordinate points are present in the data acquisition system;When
In the absence of, then first coordinate points are not present in the data acquisition system.
When first coordinate points are present in the data acquisition system, calculate first coordinate points and distinguished with preset value
The second coordinate points obtained after being moved up and down, preferred embodiment, the preset value are 1, first coordinate points
For (X, Y), then first coordinate points obtain the second coordinate points (X-1, Y) to moving to left 1, and first coordinate points move right 1
To the second coordinate points (X+1, Y), first coordinate points obtain the second coordinate points (X, Y+1) to moving up 1, first coordinate points
The second coordinate points (X, Y-1) is obtained to moving down 1.After four second coordinate points are calculated, judge in the data acquisition system
With the presence or absence of four operational datas identical with four second coordinate points.
S204, when each second coordinate points are present in the data acquisition system, determine first coordinate points
For abnormal data.
Specifically, when first coordinate points are not present in the data acquisition system, and four second coordinate points
When being present in the data acquisition system, determine that first coordinate points are abnormal data, the mobile terminal is to described first
Coordinate points are recorded, and are 1 by the number that abnormal data described in counter records occurs, and are then proceeded to from the rectangle region
Unduplicated first coordinate points are selected in domain, and when determining first coordinate points for abnormal data, the counter note
The number of record abnormal data adds 1.
S300, when testing result is unsatisfactory for the use condition of WIFI power amplifier chips, prompt deactivate WIFI.
It is used to judge the WIFI power amplifier according to the detection that the preset condition does the data acquisition system in the present invention
It whether there is abnormal data in chip use process, when there are the abnormal data, user prompted to stop using WIFI.Preferably
Embodiment, when testing result is unsatisfactory for the use condition of WIFI power amplifier chips, issuing short message or voice prompting user will
WIFI is closed, and deactivates WIFI, and detect to WIFI use state every preset time, when detecting that WIFI is not turned off,
WIFI is closed again through short message or voice prompting user;When the number that follow-up prompts deactivate WIFI reaches pre-determined number
When, WIFI is automatically closed in the mobile terminal, when to avoid the use condition for being unsatisfactory for WIFI power amplifier chips when testing result, uses
Family, to testing result and ignorant, can not close WIFI not close to the mobile terminal in time.Preferred embodiment, it is described pre-
If the time is 30 seconds, the pre-determined number is 2 times.
The use condition of the WIFI power amplifier chips specifically: the number that the abnormal data occurs is lower than preset threshold,
When the use condition for being unsatisfactory for WIFI power amplifier chips when testing result, deactivated WIFI is prompted to specifically include:
The number that the abnormal data occurs is recorded, and the number is compared with the preset threshold;
When the number is not less than the preset threshold, prompt to deactivate WIFI.
I.e. when the number that the abnormal data of the counter records occurs is less than the preset threshold, the WIFI
The risk of power amplifier chips damage is smaller, can continue to use;When the number that the abnormal data of the counter records occurs
When equal to the even greater than preset threshold, the WIFI power amplifier chips easily because damaging using overheat for a long time, need to mention
Show that user deactivates WIFI.
The present invention also provides a kind of storage device, the storage device is stored with computer program, the computer program
It is able to carry out the WIFI method for detecting abnormality to realize mobile terminal described in any one as above.
The present invention also provides a kind of mobile terminals, as shown in Fig. 2, comprising: central processing unit 10 and the central processing
Storage equipment 20, communication interface (Communications Interface) 30 and the communication bus 40 that device 10 connects, wherein institute
It states central processing unit 10, the storage equipment 20, the communication interface 30 and mutual lead to is completed by the communication bus 40
Letter;The communication interface 30 is for the information transmission between the communication equipment of the mobile terminal;The storage equipment 20 stores
There is computer program, the computer program is realized mobile whole described in any one as above when being executed by the central processing unit 10
The WIFI method for detecting abnormality at end;
The central processing unit 10 is used to call the computer program in the storage equipment 20, to execute above-mentioned any one institute
State the WIFI method for detecting abnormality of mobile terminal.
In conclusion WIFI method for detecting abnormality, storage device and the mobile terminal of mobile terminal provided by the invention, when
When mobile terminal receives WIFI sending and receiving data interrupt signal, the operational data of WIFI power amplifier chips in the predetermined time is obtained,
In, the operational data includes electric current and voltage;
It is detected according to the data acquisition system that preset condition forms all working data got;When testing result is unsatisfactory for
It when the use condition of WIFI power amplifier chips, prompts to deactivate WIFI, causes WIFI power amplifier chips to damage to avoid user's use for a long time
Bad phenomenon.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can
With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention
Protect range.