CN108594705A - Condition detection method, device, storage medium and the mobile terminal of mobile terminal - Google Patents

Condition detection method, device, storage medium and the mobile terminal of mobile terminal Download PDF

Info

Publication number
CN108594705A
CN108594705A CN201810316065.5A CN201810316065A CN108594705A CN 108594705 A CN108594705 A CN 108594705A CN 201810316065 A CN201810316065 A CN 201810316065A CN 108594705 A CN108594705 A CN 108594705A
Authority
CN
China
Prior art keywords
humidity
mobile terminal
humidity information
information
variable quantity
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
Application number
CN201810316065.5A
Other languages
Chinese (zh)
Other versions
CN108594705B (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 Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810316065.5A priority Critical patent/CN108594705B/en
Publication of CN108594705A publication Critical patent/CN108594705A/en
Application granted granted Critical
Publication of CN108594705B publication Critical patent/CN108594705B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the present application discloses a kind of condition detection method of mobile terminal, device, storage medium and mobile terminal.This method includes:The humidity information inside mobile terminal is obtained according to the period of setting;Humidity variable quantity is determined according to the humidity information;When the humidity variable quantity meets default water inlet decision condition, determines that mobile terminal is in into water state, the humidity information is preserved to the non-erasable subregion of mobile terminal.Since user can not wipe the humidity information being stored in non-erasable subregion, the accuracy that result is judged into water ensure that.Using the technical solution of the application, solves the problems, such as that the water inlet detection mode of the relevant technologies is easy to cause guarantee erroneous judgement, improve the degree of intelligence detected into water and accuracy.

Description

Condition detection method, device, storage medium and the mobile terminal of mobile terminal
Technical field
The invention relates to mobile communication equipment technology more particularly to a kind of condition detection method of mobile terminal, Device, storage medium and mobile terminal.
Background technology
The mobile terminals such as smart mobile phone, tablet computer have become the necessity of people's daily life.
Although current mobile terminal has waterproofing design, for example, the seal degree by increasing mobile terminal, utilizes tool There is the material of high-quality water resistance to make shell, however, after prolonged use, being caused with the abrasion of mobile terminal case Gap may cause leakproofness to be deteriorated.Therefore, it is higher and higher that ratio is repaired in reality scene caused by water inlet.Due to water inlet Whether be important evidence that can mobile terminal of the judgement within the guarantee period be guaranteed to keep in good repair, how accurately to send repair mobile terminal into The judgement of traveling water is a technical problem to be solved urgently.In the related technology, generally use tears machine open and checks water inlet inside mobile terminal The mode that whether changes colour of detection patch carries out water inlet judgement, this mode may be detected due to patch is artificially replaced etc. the water inlet and Guarantee is caused to be judged by accident.
Invention content
The embodiment of the present application provides a kind of condition detection method of mobile terminal, device, storage medium and mobile terminal, can To optimize water inlet detection mode in the related technology, the degree of intelligence of detection operation is improved.
In a first aspect, the embodiment of the present application provides a kind of condition detection method of mobile terminal, including:
The humidity information inside mobile terminal is obtained according to the period of setting;
Humidity variable quantity is determined according to the humidity information;
When the humidity variable quantity meets default water inlet decision condition, determine that mobile terminal is in into water state, by institute Humidity information is stated to preserve to the non-erasable subregion of mobile terminal.
Second aspect, the embodiment of the present application also provides a kind of condition checkout gear of mobile terminal, which includes:
Humidity information acquisition module, for obtaining the humidity information inside mobile terminal according to the period of setting;
Humidity changes determining module, for determining humidity variable quantity according to the humidity information;
Humidity information preserving module, for when the humidity variable quantity meets default water inlet decision condition, determining movement Terminal is in into water state, and the humidity information is preserved to the non-erasable subregion of mobile terminal.
The third aspect, the embodiment of the present application also provides a kind of computer readable storage mediums, are stored thereon with computer Program realizes the state-detection side of the mobile terminal as described in above-mentioned first aspect when the computer program is executed by processor Method.
Fourth aspect processor and is stored in the embodiment of the present application also provides a kind of mobile terminal, including memory And can be in the computer program of processor operation on reservoir, the memory includes non-erasable subregion, and the processor executes The condition detection method of the mobile terminal as described in above-mentioned first aspect is realized when the computer program.
The embodiment of the present application provides a kind of state-detection scheme of mobile terminal, by obtaining movement according to the period of setting The humidity information of terminal inner;Humidity variable quantity is determined according to the humidity information;When the humidity variable quantity is more than given threshold, It determines that the mobile terminal is in into water state, which is preserved to the non-erasable subregion of mobile terminal, in user Send the humidity information read when repairing mobile terminal in the non-erasable subregion, according to the humidity information judge mobile terminal whether into Water is crossed, since user can not wipe the humidity information being stored in non-erasable subregion, ensure that into water and judge the accurate of result Property.Using the technical solution of the application, solves the problems, such as that the water inlet detection mode of the relevant technologies is easy to cause guarantee erroneous judgement, improve The degree of intelligence of water inlet detection and accuracy.
Description of the drawings
Fig. 1 is a kind of flow chart of the condition detection method of mobile terminal provided by the embodiments of the present application;
Fig. 2 is the flow chart of the condition detection method of another mobile terminal provided by the embodiments of the present application;
Fig. 3 is a kind of structural schematic diagram of the condition checkout gear of mobile terminal provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram of mobile terminal provided by the embodiments of the present application;
Fig. 5 is a kind of structure diagram of smart mobile phone provided by the embodiments of the present application.
Specific implementation mode
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the application, rather than the restriction to the application.It also should be noted that in order to just It is illustrated only in description, attached drawing and the relevant part of the application rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing described as flow chart or method.Although each step is described as the processing of sequence, many of which by flow chart Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation The processing can be terminated when completion, it is also possible to the additional step being not included in attached drawing.The processing can be with Corresponding to method, function, regulation, subroutine, subprogram etc..
In the related technology, before mobile terminal manufacture, setting position exchange premium water detection inside it in advance is pasted.Work as movement When terminal inner is intake, water inlet detection patch reacts with water and is changed colour.When mobile terminal send and repaiies, maintenance personal can tear open Checked after machine into water detect paste, if discoloration, it is determined that mobile terminal into cross water, otherwise, it determines mobile terminal not into cross water.So And water inlet detection patch can be replaced artificially, it is thus possible to which guarantee is caused to judge by accident.It follows that using water inlet detection patch The mode degree of intelligence that mode detects water inlet is not high, and accuracy is not also high.
In order to solve the above-mentioned technical problem, the embodiment of the present application provides a kind of state-detection scheme of mobile terminal, can be with The water inlet detection mode of optimization in the related technology, improves accuracy of detection and degree of intelligence.
Fig. 1 is a kind of flow chart of the condition detection method of mobile terminal provided by the embodiments of the present application, and this method can be with It is executed by the condition checkout gear of mobile terminal, wherein the device can be generally integrated in by software and or hardware realization In mobile terminal.As shown in Figure 1, this method includes:
Step 110, according to setting period obtain mobile terminal inside humidity information.
It should be noted that humidity sensor is configured in mobile terminal, for acquiring the humidity inside mobile terminal Information, the humidity information can be humidity values.
Humidity sensor can be electric resistance moisture sensor or capacitance type humidity sensor, and principle is on substrate Coating wet sensory material and form humidity-sensitive film, the water vapor adsorption in air when wet sensory material, the impedance (resistance-type) of element or Dielectric constant (condenser type) can change therewith, and then the output signal of the humidity sensor is caused to change.The humidity Sensor can be set to the position that water inlet is easy on mobile terminal.
The period of setting is the time interval that processor (such as CPU) is obtained humidity information by humidity sensor.Periodic quantity can To be system default, which can be according to mobile terminal by intaking to causing the time difference of chip short circuit to determine.For example, Determine that mobile terminal causes the time difference (can be that theoretical value can also be measured according to experiment) of chip short circuit by intaking to short circuit, It can be by the 1/2 of the time difference as the periodic quantity for obtaining humidity information.It is understood that the periodic quantity can be than the time 1/2 smaller of difference can increase the frequency for reading humidity information by humidity sensor, improve the promptness of detection.Certainly, this week Time value can be than 1/2 bigger of the time difference, but is less than the time difference, it is possible to reduce the data volume of CPU processing reduces power consumption.
Illustratively, at least one output parameter is obtained by least one humidity sensor according to the period of setting.Wherein, The output parameter include but not limited to be humidity value, voltage value, current value or frequency values.For example, Linear voltage output formula is integrated It is in the volt magnitude voltage signals of proportionate relationship that humidity sensor, which can be exported with relative humidity,.If according to the period of setting by least At least one output parameter that one humidity sensor obtains is humidity value, then one using humidity value as humidity information wants Element.If the output parameter obtained by least one humidity sensor according to the period set as voltage value, current value or frequency values, Humidity information corresponding with voltage value (or current value, frequency values) is then determined according to the parameter list of humidity sensor.
Humidity sensor is respectively set in the position easily to intake that can be different in mobile terminal.In same period, point Humidity information is not obtained by each humidity sensor.If the output parameter is humidity value, humidity information and humidity can be passed The mark associated storage of sensor, to distinguish the humidity information read by different humidity sensor.
If the output parameter is voltage value, current value or frequency values, according to being associated with for output parameter and humidity information System determines humidity information (i.e. humidity value) corresponding with the output parameter.For example, having been recorded in the parameter list of humidity sensor defeated The incidence relation for going out parameter and humidity information, according to the output parameter inquire the parameter list can determine it is corresponding with output parameter Humidity information.
It should be noted that in same period, a humidity information can be obtained by same humidity sensor, it can be with Obtain two or more humidity informations.If the humidity information that same humidity sensor obtains in one cycle is two Or more than two, the then humidity information obtained medial humidity as the period.For example, in same period, obtain respectively each The output parameter of a humidity sensor.It is true respectively if output parameter is two or more for a humidity sensor It is fixed corresponding with output parameter with reference to humidity information, the average value for referring to humidity information is calculated, using the average value as humidity Information.
Step 120 determines humidity variable quantity according to the humidity information.
Illustratively, to obtain the humidity information inside mobile terminal for the first time as the time zero of first time timing, every Before the secondary humidity information for obtaining mobile terminal memory by humidity sensor, judge whether timing time reaches preset time threshold Value.When timing time reaches preset time threshold, at least two humidity informations obtained in the timing time are determined, to extremely Few two humidity informations are ranked up, and determine maximal humidity information and minimum humidity information, by maximal humidity information and minimum The difference of humidity information is as humidity variable quantity.
It should be noted that if only there are one humidity sensor, each period obtains at least two by the humidity sensor Output parameter then determines the corresponding humidity value of output parameter, calculates the average value of humidity value, humidity abnormal sudden change is avoided to lead respectively The erroneous judgement of cause improves the accuracy of detection.By the humidity value of (time span is determined by preset time threshold) in a period of time Average value carries out descending arrangement, calculates the difference of the average value for the humidity value for making number one and rolling into last place, obtains wet Spend variable quantity.
If the quantity at least two of the humidity sensor in mobile terminal, according to the period of setting respectively by each biography Sensor obtains output parameter, determines the corresponding humidity value of output parameter respectively.By the mark associated storage of humidity value and sensor, Which obtained by humidity sensor to distinguish.Using above-mentioned similar fashion, it is corresponding to calculate separately each humidity sensor The humidity variable quantity of humidity value.
Humidity variable quantity is compared with given threshold, determines whether mobile terminal intakes according to comparison result.It needs Illustrate, if there is more than one humidity sensor, respectively by the corresponding humidity of each humidity sensor in mobile terminal Variable quantity is compared with given threshold.If the corresponding judgement result of one of humidity sensor is mobile terminal water inlet, Determine that mobile terminal is intake.
It should be noted that if judging that mobile terminal is not intake according to the humidity variable quantity, then with last timing end point For the starting point of second of timing, humidity variable quantity is determined in the manner described above.Optionally, can also with determine mobile terminal not into Starting point at the time of water as second of timing, the application are simultaneously not especially limited.
It alternatively, can also be using the list of the humidity information in a period of time as humidity variable quantity.
Step 130, when the humidity variable quantity meets default water inlet decision condition, determine that mobile terminal is in into watery State preserves the humidity information to the non-erasable subregion of mobile terminal.
It should be noted that it is more than given threshold that default water inlet decision condition, which can be humidity variable quantity, one can also be Humidity variable quantity (or moist gradient) in the section time meets the humidity changing rule after mobile terminal water inlet.
Given threshold can be arranged by system.When the given threshold is intake by mobile terminal, the humidity inside mobile terminal Value determines that the value can be theoretical value, can also be determined by test of many times.
Humidity changing rule after mobile terminal water inlet can be determined by test of many times, and the humidity changing rule can be The curve etc. that humidity changes over time.
Non-erasable subregion, i.e. NV subregions, user cannot wipe the number in non-erasable subregion using magnetic disk erasing tool According to.
If the humidity variable quantity is more than given threshold, it is determined that mobile terminal is in into water state.It can be by least two Maximal humidity information and minimum humidity information are determined in humidity information, by the maximal humidity information and minimum humidity information preservation To the non-erasable subregion of mobile terminal.
It should be noted that if having at least two humidity sensors in mobile terminal, then each humidity is obtained respectively and is passed The humidity information of sensor acquisition, the corresponding humidity variable quantity of each humidity sensor is calculated separately using aforesaid way.If wherein The humidity variable quantity of one humidity sensor is more than given threshold, it is determined that mobile terminal is in into water state.If at least two The humidity variable quantity of humidity sensor is respectively less than given threshold, it is determined that mobile terminal is not intake, is returned and is executed according to setting Period obtains the operation of the humidity information inside mobile terminal.
Alternatively, according to the humidity information in the list of the humidity information in a period of time, determine humidity information at any time Between the humidity variable quantity curve that changes, the song that the humidity after the humidity variable quantity curve and mobile terminal water inlet is changed over time Line is matched.If the similarity of two curves is no more than predetermined threshold value, it is determined that successful match determines that humidity variable quantity is full The default water inlet decision condition of foot, and then determine that mobile terminal is in into water state.By the list of the humidity information in a period of time It is saved into the non-erasable subregion of mobile terminal.
It should be noted that if having at least two humidity sensors in mobile terminal, then each humidity is obtained respectively and is passed The humidity information of sensor acquisition, using aforesaid way, be respectively compared the corresponding humidity variable quantity curve of each humidity sensor with The similarity of curve after water inlet.If the humidity variable quantity curve of one of humidity sensor is similar to the curve after water inlet Degree is less than predetermined threshold value, it is determined that mobile terminal is intake.Calculate separately the humidity variable quantity curve of at least two humidity sensors With the similarity of the curve after water inlet, if the corresponding similarity of each humidity sensor is all higher than predetermined threshold value, it is determined that move Dynamic terminal is not intake, and the operation for executing and obtaining the humidity information inside mobile terminal according to the period of setting is returned.
It should be noted that there are many kinds of the modes of the similarity of determining two curves, the embodiment of the present application is not made to have Body limits.For example, the method based on point may be used, including but not limited to DTW (Dynamic Time Warping, when dynamic Between regular algorithm) or LCSS (Longest Common Sub-Sequence, longest common subsequence algorithm).For another example, it can adopt With the method based on shape, including but not limited to Frechet Distance (Fu Leixie distances) or Hausdorff distance (Hausdorff distance).
Illustratively, if the humidity variable quantity is more than given threshold, it is determined that mobile terminal is in into water state.Its In, at least two, the humidity information is ranked up, using the difference of wherein maximal humidity information and minimum humidity information as wet Spend variable quantity.Obtain the absolute address in preset address space in the non-erasable subregion of mobile terminal, wherein the preset address is empty Between be when compiling be the memory space stored in the reserved non-erasable subregion of humidity information.CPU is determining that humidity variable quantity is big When given threshold, start write-in process.The write-in process obtains the absolute address in the preset address space, utterly according to this Location accesses the non-erasable subregion, and inquiry preset address space determines the target address space that data are not written.It needs to illustrate It is that, if mobile terminal is to intake for the first time, the target address space is preset address space.If mobile terminal be not for the first time into Water, then the target address space is to remove the sky for having been written into the humidity information under history water inlet scene in the preset address space Between outer address space left space.It is starting point by the first address of the target address space, is written into preset address space maximum wet Spend information and minimum humidity information.
It adopts in a similar manner, can be starting point by the first address of the target address space, be write into preset address space Enter the list of humidity information.
The technical solution of the present embodiment, by obtaining the humidity information inside mobile terminal according to the period of setting;According to The humidity information determines humidity variable quantity;When the humidity variable quantity is more than given threshold, determine that the mobile terminal is in water inlet State preserves the humidity information to the non-erasable subregion of mobile terminal, to read this not when user send and repaiies mobile terminal Humidity information in erasable subregion judges mobile terminal whether into water is crossed, since user can not wipe according to the humidity information The humidity information being stored in non-erasable subregion ensure that the accuracy that result is judged into water.Using the technical side of the application Case, solve the problems, such as the water inlet detection mode of the relevant technologies be easy to cause guarantee erroneous judgement, improve the degree of intelligence detected into water and Accuracy.
Fig. 2 is the flow chart of the condition detection method of another mobile terminal provided by the embodiments of the present application.Such as Fig. 2 institutes Show, this method includes:
Step 201 obtains at least one humidity information according to the period of setting by least one humidity sensor, and association is deposited Store up the identification information of the humidity sensor and the humidity information.
It should be noted that humidity sensor is set to the position of mobile terminal being easy into water.Processor is according to setting Period obtain at least one humidity information of each humidity sensor respectively.Statistics is by the same humidity sensor same The quantity of the reference humidity information obtained in period.If a humidity information, then the mark letter of associated storage humidity sensor Breath and humidity information.Humidity information is referred to if two or more, then obtains the corresponding ginseng of each humidity sensor respectively Humidity information is examined, the average value of the corresponding humidity of each humidity sensor is calculated with reference to humidity information according to this respectively, this is put down Identification information associated storage of the mean value as humidity information and corresponding humidity sensor.
Step 202 determines humidity variable quantity according to the humidity information.
To at least two, the humidity information is ranked up, and determines maximal humidity information and minimum humidity information, by the maximum The difference of humidity information and minimum humidity information is as humidity variable quantity.
Step 203 judges otherwise whether humidity variable quantity more than given threshold, executes step if so, thening follow the steps 204 Rapid 201.
Humidity variable quantity is compared with given threshold, wherein humidity variable quantity is that same humidity passes in a period of time The difference of maximal humidity information and minimum humidity information in the humidity information of sensor.If there are one humidity sensors for mobile terminal tool Device, and the corresponding humidity variable quantity of the humidity sensor is more than given threshold, thens follow the steps 204.If having in mobile terminal The corresponding humidity variable quantity of each humidity sensor is then compared by least two humidity sensors with given threshold respectively. If the corresponding humidity variable quantity of one of humidity sensor is more than given threshold, 204 are thened follow the steps.If humidity variable quantity is small In given threshold, then the humidity information obtained in this time is abandoned, executes step 201.
Step 204 determines that mobile terminal is in into water state.
Step 205, the maximal humidity information at least two humidity informations of acquisition and minimum humidity information.
Step 206, the absolute address for obtaining preset address space in the non-erasable subregion of mobile terminal.
It should be noted that before mobile dispatch from the factory, subregion is carried out to mobile terminal, and mobile terminal is started and run Key code or data etc. are burned onto corresponding subregion.In addition, reserving the address space of default size in non-erasable subregion, use In storage humidity information, and preset buffer memory is stored in after the absolute address in the preset address space for presetting size is encrypted.
Alternatively, the partition identifier for recording the reserved preset address space of non-erasable subregion is can also be, with root Preset address space is determined according to the partition identifier.
Step 207, according to the absolute address, by the maximal humidity information and minimum humidity information preservation to mobile terminal Non-erasable subregion.
The target address space that data are not written for the preset address space determination is inquired according to the absolute address, by institute The first address for stating the target address space is starting point, and the maximal humidity information and minimum humidity letter are written into preset address space Breath.
Step 208 controls the mobile terminal power-off by the power management services in inner nuclear layer Kernel.
It should be noted that power management (PowerManager, abbreviation PM), is to be based on standard Linux power management system The Android power managements of the lightweight of system drive.The PowerManagerService defined in the PowerManager classes (power management services, abbreviation PMS) interface is communicated with calling Power classes with next layer. PowerManagerService realizes shutdown interfaces, to realize power-off shutdown function.
Illustratively, due to the shell opposing seal of mobile terminal, by water inlet to short circuit damage tool, there are one the times Difference therefore can be when determining that mobile terminal is in into water state, by inner nuclear layer Kernel PowerManagerService calls Power classes to be communicated with power management chip, realizes the power-off of shutdown interfaces Shut-off function, it is thus possible to which the memory chip caused by short circuit is avoided to damage.
Alternatively, shutdown broadcast can also be sent when determining that mobile terminal is in into water state Intent.ACTION_REQUEST_SHUTDOWN, to notify battery runs down, can to avoid caused by short circuit memory chip damage.
The technical solution of the present embodiment is believed by the identification information and the humidity of humidity sensor described in associated storage Breath determines the corresponding humidity variable quantity of each humidity sensor respectively when mobile terminal has multiple humidity sensors;If depositing Be more than given threshold in the humidity variable quantity of a humidity sensor, it is determined that mobile terminal is intake, by maximal humidity information and Minimum humidity information preservation and notifies mobile terminal power-off shutdown to the non-erasable subregion of mobile terminal, can be to avoid because short Memory chip is caused to damage in road.
Fig. 3 is a kind of structural schematic diagram of the condition checkout gear of mobile terminal provided by the embodiments of the present application.The device It can be integrated in mobile terminal by software and or hardware realization, for executing movement provided by the embodiments of the present application The condition detection method of terminal.As shown in figure 3, the device includes:
Humidity information acquisition module 310, for obtaining the humidity information inside mobile terminal according to the period of setting;
Humidity changes determining module 320, for determining humidity variable quantity according to the humidity information;
Humidity information preserving module 330, for when the humidity variable quantity meets default water inlet decision condition, determining and moving Dynamic terminal is in into water state, and the humidity information is preserved to the non-erasable subregion of mobile terminal.
The technical solution of the present embodiment provides a kind of condition checkout gear of mobile terminal, can intake in mobile terminal When, humidity information is preserved to the non-erasable subregion of the mobile terminal, it can not to read this when user send and repaiies mobile terminal The humidity information in subregion is wiped, judges that mobile terminal whether into water is crossed, is deposited since user can not wipe according to the humidity information The humidity information being stored in non-erasable subregion ensure that the accuracy that result is judged into water.Using the technical solution of the application, Solve the problems, such as the water inlet detection mode of the relevant technologies be easy to cause guarantee erroneous judgement, improve degree of intelligence detect into water and accurately Degree.
Optionally, humidity information acquisition module 310 is specifically used for:
At least one humidity information is obtained by humidity sensor according to the period of setting, humidity sensor described in associated storage Identification information and the humidity information.
Optionally, further include:
Information Statistics module, before the identification information of the humidity sensor described in associated storage and the humidity information Count the quantity of the reference humidity information obtained in same period by the same humidity sensor;
Mean value calculation module calculates described with reference to humidity information if being two or more for the quantity Average value, using the average value as humidity information.
Optionally, humidity variation determining module 320 is specifically used for:
At least two humidity informations are ranked up, determine maximal humidity information and minimum humidity information, it will be described The difference of maximal humidity information and minimum humidity information is as humidity variable quantity.
Optionally, humidity information preserving module 330 includes:
Intake decision sub-module, if for the humidity variable quantity be more than given threshold, it is determined that mobile terminal be in into Water state;
Submodule is written in information, for obtaining maximal humidity information and minimum humidity at least two humidity informations Information, by the non-erasable subregion of the maximal humidity information and minimum humidity information preservation to mobile terminal.
Optionally, information write-in submodule is specifically used for:
Obtain the absolute address in preset address space in the non-erasable subregion of mobile terminal;
The target address space that data are not written for the preset address space determination is inquired according to the absolute address, by institute The first address for stating the target address space is starting point, and the maximal humidity information and minimum humidity letter are written into preset address space Breath.
Optionally, further include:
Power-off control module, for after determining that mobile terminal is in into water state, sending shutdown broadcast;
It is powered off alternatively, controlling the mobile terminal by the power management services in inner nuclear layer Kernel.
The embodiment of the present application also provides a kind of storage medium including computer executable instructions, and the computer is executable Condition detection method of the instruction when being executed by computer processor for executing mobile terminal, this method include:
The humidity information inside mobile terminal is obtained according to the period of setting;
Humidity variable quantity is determined according to the humidity information;
When the humidity variable quantity meets default water inlet decision condition, determine that mobile terminal is in into water state, by institute Humidity information is stated to preserve to the non-erasable subregion of mobile terminal.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap It includes:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium (such as hard disk or optical storage);The memory component etc. of register or other similar types.Storage medium can further include other Memory of type or combinations thereof.In addition, storage medium can be located at program in the first computer system being wherein performed, Or can be located in different second computer systems, second computer system is connected to the by network (such as internet) One computer system.Second computer system can provide program instruction to the first computer for executing." storage is situated between term Matter " may include may reside in different location two of (such as in different computer systems by network connection) or More storage mediums.Storage medium can store the program instruction that can be executed by one or more processors and (such as implement For computer program).
Certainly, a kind of storage medium including computer executable instructions that the embodiment of the present application is provided, computer The state-detection for the mobile terminal that executable instruction is not limited to the described above operates, and the application any embodiment institute can also be performed Relevant operation in the condition detection method of the mobile terminal of offer.
The embodiment of the present application provides a kind of mobile terminal, has operating system in the mobile terminal, in the mobile terminal The condition checkout gear of mobile terminal provided by the embodiments of the present application can be integrated.Wherein, mobile terminal can be smart mobile phone, PAD (tablet computer), handheld device and intelligent wearable device etc..Fig. 4 is a kind of mobile terminal provided by the embodiments of the present application Structural schematic diagram.As shown in figure 4, the mobile terminal includes memory 410 and processor 420.The memory 410, is used for The absolute address or subregion of storage computer program, humidity information, humidity variable quantity, water inlet decision condition and non-erasable subregion Mark etc., wherein the memory includes non-erasable subregion;The processor 420 reads and executes in the memory 410 The computer program of storage.The processor 420 realizes following steps when executing the computer program:
The humidity information inside mobile terminal is obtained according to the period of setting;Determine that humidity changes according to the humidity information Amount;When the humidity variable quantity meets default water inlet decision condition, determine that mobile terminal is in into water state, by the humidity Information preservation to mobile terminal non-erasable subregion.
The memory and processor enumerated in above-mentioned example are the part component of mobile terminal, and the mobile terminal is also May include other components.By taking smart mobile phone as an example, illustrate the possible structure of above-mentioned mobile terminal.Fig. 5 is that the application is implemented A kind of structure diagram for smart mobile phone that example provides.As shown in figure 5, the smart mobile phone may include:Memory 501, centre Manage device (Central Processing Unit, CPU) 502 (also known as processor, hereinafter referred to as CPU), Peripheral Interface 503, RF (Radio Frequency, radio frequency) circuit 505, voicefrequency circuit 506, loud speaker 511, touch screen 512, power management chip 508, input/output (I/O) subsystem 509, other input/control devicess 510 and outside port 504, these components pass through One or more communication bus or signal wire 507 communicate.
It should be understood that diagram smart mobile phone 500 is only an example of mobile terminal, and smart mobile phone 500 Can have than shown in the drawings more or less component, can combine two or more components, or can be with It is configured with different components.Various parts shown in the drawings can be including one or more signal processings and/or special It is realized in the combination of hardware, software or hardware and software including integrated circuit.
The smart mobile phone of the condition checkout gear provided in this embodiment for being integrated with mobile terminal is carried out below detailed Description.
Memory 501, including non-erasable subregion, the memory 501 can be by visits such as CPU502, Peripheral Interfaces 503 It asks, the memory 501 may include high-speed random access memory, can also be including nonvolatile memory, such as one Or multiple disk memories, flush memory device or other volatile solid-state parts.Computer is stored in memory 501 Program can also store humidity information, the absolute address or subregion of humidity variable quantity, water inlet decision condition and non-erasable subregion Mark etc..
The peripheral hardware that outputs and inputs of equipment can be connected to CPU502 and deposited by Peripheral Interface 503, the Peripheral Interface 503 Reservoir 501.
I/O subsystems 509, the I/O subsystems 509 can be by the input/output peripherals in equipment, such as touch screen 512 With other input/control devicess 510, it is connected to Peripheral Interface 503.I/O subsystems 509 may include 5091 He of display controller One or more input controllers 5092 for controlling other input/control devicess 510.Wherein, one or more input controls Device 5092 processed receives electric signal from other input/control devicess 510 or sends electric signal to other input/control devicess 510, Other input/control devicess 510 may include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole clicks idler wheel.It is worth noting that input controller 5092 can with it is following any one connect:Keyboard, infrared port, The indicating equipment of USB interface and such as mouse.
Touch screen 512, the touch screen 512 are the input interface and output interface between user terminal and user, can It is shown to user depending on output, visual output may include figure, text, icon, video etc..
Display controller 5091 in I/O subsystems 509 receives electric signal from touch screen 512 or is sent out to touch screen 512 Electric signals.Touch screen 512 detects the contact on touch screen, and the contact detected is converted to and is shown by display controller 5091 The interaction of user interface object on touch screen 512, that is, realize human-computer interaction, the user interface being shown on touch screen 512 Object can be the icon of running game, be networked to the icon etc. of corresponding network.It is worth noting that equipment can also include light Mouse, light mouse are the extensions for the touch sensitive surface for not showing the touch sensitive surface visually exported, or formed by touch screen.
RF circuits 505 are mainly used for establishing the communication of mobile phone and wireless network (i.e. network side), realize mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 505 receive and send RF letters Number, RF signals are also referred to as electromagnetic signal, and RF circuits 505 convert electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications Number, and communicated with communication network and other equipment by the electromagnetic signal.RF circuits 505 may include for executing The known circuit of these functions comprising but it is not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 506 is mainly used for receiving audio data from Peripheral Interface 503, which is converted to telecommunications Number, and the electric signal is sent to loud speaker 511.
Loud speaker 511, the voice signal for receiving mobile phone from wireless network by RF circuits 505, is reduced to sound And play the sound to user.
Power management chip 508, the hardware for being connected by CPU502, I/O subsystem and Peripheral Interface are powered And power management.When CPU502 judgement mobile terminals are in water, the control instruction of power source-responsive management service controls power supply Carry out power down process.
Mobile terminal provided by the embodiments of the present application can preserve humidity information to the shifting when mobile terminal is intake The non-erasable subregion of dynamic terminal, to read the humidity information in the non-erasable subregion, root when user send and repaiies mobile terminal According to humidity information judgement mobile terminal whether into water is crossed, since user can not wipe the humidity being stored in non-erasable subregion Information ensure that the accuracy that result is judged into water.Using the technical solution of the application, the water inlet detection side of the relevant technologies is solved Formula is easy to cause the problem of guarantee erroneous judgement, improves the degree of intelligence detected into water and accuracy.
Condition checkout gear, storage medium and the mobile terminal of the mobile terminal provided in above-described embodiment can perform this Shen Please the condition detection method of mobile terminal that is provided of any embodiment, have and execute the corresponding function module of this method and beneficial Effect.The not technical detail of detailed description in the above-described embodiments, reference can be made to the mobile end that the application any embodiment is provided The condition detection method at end.
Note that above are only preferred embodiment and the institute's application technology principle of the application.It will be appreciated by those skilled in the art that The application is not limited to specific embodiment described here, can carry out for a person skilled in the art it is various it is apparent variation, The protection domain readjusted and substituted without departing from the application.Therefore, although being carried out to the application by above example It is described in further detail, but the application is not limited only to above example, in the case where not departing from the application design, also May include other more equivalent embodiments, and scope of the present application is determined by scope of the appended claims.

Claims (10)

1. a kind of condition detection method of mobile terminal, which is characterized in that including:
The humidity information inside mobile terminal is obtained according to the period of setting;
Humidity variable quantity is determined according to the humidity information;
When the humidity variable quantity meets default water inlet decision condition, determine that mobile terminal is in into water state, it will be described wet Information preservation is spent to the non-erasable subregion of mobile terminal.
2. according to the method described in claim 1, it is characterized in that, obtaining the humidity inside mobile terminal according to the period of setting Information, including:
At least one humidity information is obtained by humidity sensor according to the period of setting, the mark of humidity sensor described in associated storage Know information and the humidity information.
3. according to the method described in claim 2, it is characterized in that, the identification information of the humidity sensor described in associated storage with Before the humidity information, further include:
Count the quantity of the reference humidity information obtained in same period by the same humidity sensor;
If the quantity is two or more, the average value with reference to humidity information is calculated, the average value is made For humidity information.
4. according to the method described in claim 1, it is characterized in that, determine humidity variable quantity according to the humidity information, including:
At least two humidity informations are ranked up, determine maximal humidity information and minimum humidity information, by the maximum The difference of humidity information and minimum humidity information is as humidity variable quantity.
5. according to the method described in claim 1, it is characterized in that, meeting default water inlet decision condition in the humidity variable quantity When, it determines that mobile terminal is in into water state, the humidity information is preserved to the non-erasable subregion of mobile terminal, including:
If the humidity variable quantity is more than given threshold, it is determined that mobile terminal is in into water state;
The maximal humidity information and minimum humidity information at least two humidity informations are obtained, by the maximal humidity information And minimum humidity information preservation is to the non-erasable subregion of mobile terminal.
6. according to the method described in claim 5, it is characterized in that, by the maximal humidity information and minimum humidity information preservation To the non-erasable subregion of mobile terminal, including:
Obtain the absolute address in preset address space in the non-erasable subregion of mobile terminal;
The target address space that data are not written for the preset address space determination is inquired according to the absolute address, by the mesh The first address for marking address space is starting point, and the maximal humidity information and minimum humidity information are written into preset address space.
7. method according to any one of claim 1 to 6, which is characterized in that determining that mobile terminal is in into watery After state, further include:
Send shutdown broadcast;
It is powered off alternatively, controlling the mobile terminal by the power management services in inner nuclear layer Kernel.
8. a kind of condition checkout gear of mobile terminal, which is characterized in that including:
Humidity information acquisition module, for obtaining the humidity information inside mobile terminal according to the period of setting;
Humidity changes determining module, for determining humidity variable quantity according to the humidity information;
Humidity information preserving module, for when the humidity variable quantity meets default water inlet decision condition, determining mobile terminal In into water state, the humidity information is preserved to the non-erasable subregion of mobile terminal.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt The condition detection method of the mobile terminal as described in any one of claim 1 to 7 is realized when processor executes.
10. a kind of mobile terminal, including memory, processor and storage are on a memory and can be in the computer of processor operation Program, the memory include non-erasable subregion, which is characterized in that the processor is realized when executing the computer program The condition detection method of mobile terminal as described in any one of claim 1 to 7.
CN201810316065.5A 2018-04-10 2018-04-10 State detection method and device of mobile terminal, storage medium and mobile terminal Expired - Fee Related CN108594705B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810316065.5A CN108594705B (en) 2018-04-10 2018-04-10 State detection method and device of mobile terminal, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810316065.5A CN108594705B (en) 2018-04-10 2018-04-10 State detection method and device of mobile terminal, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN108594705A true CN108594705A (en) 2018-09-28
CN108594705B CN108594705B (en) 2020-09-15

Family

ID=63621609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810316065.5A Expired - Fee Related CN108594705B (en) 2018-04-10 2018-04-10 State detection method and device of mobile terminal, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN108594705B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023160343A1 (en) * 2022-02-25 2023-08-31 华为技术有限公司 Water entrance detection method and related apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202309804U (en) * 2011-11-03 2012-07-04 深圳市金万通电子有限公司 Handset having waterproof circuit
CN102750205A (en) * 2012-06-12 2012-10-24 宇龙计算机通信科技(深圳)有限公司 Data backup method of mobile terminals and mobile terminal
CN105825153A (en) * 2016-03-17 2016-08-03 广东欧珀移动通信有限公司 Method and device for protecting mobile terminal
CN106097650A (en) * 2016-08-11 2016-11-09 北京小米移动软件有限公司 The alarm method of terminal, device and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202309804U (en) * 2011-11-03 2012-07-04 深圳市金万通电子有限公司 Handset having waterproof circuit
CN102750205A (en) * 2012-06-12 2012-10-24 宇龙计算机通信科技(深圳)有限公司 Data backup method of mobile terminals and mobile terminal
CN105825153A (en) * 2016-03-17 2016-08-03 广东欧珀移动通信有限公司 Method and device for protecting mobile terminal
CN106097650A (en) * 2016-08-11 2016-11-09 北京小米移动软件有限公司 The alarm method of terminal, device and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023160343A1 (en) * 2022-02-25 2023-08-31 华为技术有限公司 Water entrance detection method and related apparatus

Also Published As

Publication number Publication date
CN108594705B (en) 2020-09-15

Similar Documents

Publication Publication Date Title
US11397590B2 (en) Method for preloading application, storage medium, and terminal
CN107463329B (en) Detection method, device, storage medium and the mobile terminal of blank screen gesture
US20190370095A1 (en) Method and device for preloading application, storage medium and intelligent terminal
CN109960507A (en) Compile optimization method, device, storage medium, intelligent terminal and server
CN111078406B (en) Memory management method and device, storage medium and electronic equipment
CN107527048B (en) Fingerprint identification method and device, storage medium and mobile terminal
CN107316033A (en) Fingerprint identification method, device and the storage medium and mobile terminal of mobile terminal
CN107370877B (en) Application program pushing method and device, storage medium and electronic equipment
CN109005350A (en) Image repeats shooting reminding method, device, storage medium and mobile terminal
CN109033247B (en) Application program management method and device, storage medium and terminal
CN108663696A (en) Update method, device, storage medium and the mobile terminal of temperature and frequency deviation relationship
CN107463289A (en) A kind of calibration method of touch-screen, device, storage medium and terminal
CN107402713B (en) Accelerate method, apparatus, storage medium and the mobile terminal of the processing of blank screen gesture
CN109040467A (en) Interface electricity determines method, apparatus, storage medium and mobile terminal
CN108551552A (en) Image processing method, device, storage medium and mobile terminal
CN108765380A (en) Image processing method, device, storage medium and mobile terminal
CN109460364A (en) Application program detection method, device, storage medium and mobile terminal
CN111475384A (en) Shell temperature calculation method and device, storage medium and electronic equipment
CN107766177A (en) Start optimization method, device, storage medium and terminal device
CN108012237A (en) Position control method, device, storage medium and terminal device
CN108594705A (en) Condition detection method, device, storage medium and the mobile terminal of mobile terminal
CN108811055A (en) Frame per second method of adjustment, device, terminal device and storage medium
CN108628429A (en) Frame per second method of adjustment, device, terminal device and storage medium
CN108600542B (en) Gyroscope calibration method and device
CN108055644A (en) Position control method, device, storage medium and terminal 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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200915