Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, those of ordinary skill in the art's every other implementation obtained under the premise of not making creation labour
Example, shall fall within the protection scope of the present invention.
First embodiment
It is the flow chart of electronic equipment waterproof method provided in an embodiment of the present invention referring to Fig. 1, Fig. 1, as shown in Figure 1, this
Invention first embodiment for loudspeaker electronic equipment waterproof method the following steps are included:
Step 101, when the loudspeaker is in non-loudspeaking working condition, acquire the first telecommunications of loudspeaker output
Number, generate the first testing result.
In the step, the loudspeaking working condition of loudspeaker is a kind of working condition for converting electrical signals to voice signal,
Its working principle is that electrical conductor is vibrated in magnetic field by the effect of power.Loudspeaker generally comprises coil and vibration
Film, when sound passes to the vibrating membrane of coil-moving speaker, the coil of loudspeaker is also just as vibration vibration of membrane is shaken in magnetic field
It is dynamic, induced current can be generated, the induced current and the sound of driving diaphragm oscillations are closely related, for example, utilizing electronic equipment
Play music, call.And above-mentioned non-loudspeaking working condition indicates that loudspeaker is not in electric signal and is converted into voice signal
Working condition, as electronic equipment it is mute when working condition.
First electric signal of above-mentioned loudspeaker output can be first voltage signal or the first current signal, such as Fig. 2 institute
Show, Fig. 2 is the circuit connection diagram of the loudspeaker in electronic equipment, and the anode of loudspeaker is connect with detection resistance R1, works as loudspeaker
Vibrating membrane when being offset inward, the coil on vibrating membrane cuts the magnetic cylinder magnetic line of force, will generate first on detection resistance R1
Electric signal, by modulus detection circuit detect the first electric signal, generate the first testing result, wherein modulus detection circuit include than
Compared with device circuit and analog to digital conversion circuit, the input terminal of comparator circuit is connect with the first end and second end of detection resistance R1, than
It is connected compared with the output end of device circuit and the input terminal of analog to digital conversion circuit, the output end of analog to digital conversion circuit is connect with processor;
It carries out analog-to-digital conversion and obtains digital signal, the end a of detection detection resistance R1 and the b of detection resistance R1 are compared by comparator circuit
End potential obtains an output as a result, then exporting this result to the i.e. high electricity of the available digital signal of analog to digital conversion circuit
Then flat or low level is handled obtained digital signal input central processing unit.In this way, processor is by detecting
High level or low level may determine that loudspeaker vibrating membrane drift condition, when in be offset inward when start waterproof
Protected mode, in this way, having saved cost of hardware design by existing loudspeaker in multiplexing electronic equipment.
Step 102 judges whether the vibrating membrane of the loudspeaker is offset inward according to first electric signal.
In the step, when electronic equipment is in water environment, electronic device exterior pressure can become larger, this when vibrating membrane just
It can be offset inward, as shown in Fig. 2, the potential at the end a that the electric signal for being offset inward generation is detection resistance R1 is greater than detection
The end the b potential of resistance R1 can export high level by comparator circuit or low level (here will be according to analog-to-digital conversion electricity
The specific connection type on road determines).It is assumed that above-mentioned output is high level, then the flow direction that can release the first electric signal is
The end b is flowed to from the end a of detection resistance R1, so that it is determined that vibrating membrane is to be offset inward.It should be noted that the circuit that Fig. 2 is provided is only
It is the process in order to which the first electric signal of output of step 101 is better described, operational amplifier circuit is the work that loudspeaker is in loudspeaking
Operating circuit when state.As long as can detection resistance R1 and the telecommunications on the circuit of operational amplifier circuit composition in the embodiment of the present invention
Number, the electric signal being not limited on detection resistance R1, so that it may be judged according to the electric signal on circuit.
If the vibrating membrane of step 103, the loudspeaker is offset inward, start preset waterproofing protection mode.
In the step, when the vibrating membrane of loudspeaker is offset inward, start the waterproofing protection mode set, this
Sample just will start preset waterproofing protection mode when electronic equipment enters water environment, which can be with
It is to close electronic device exterior interface, control disconnection electronic device exterior interface power, close electronic equipment screen power supply etc., from
And effectively realize the function of waterproof.
In first embodiment of the invention, above-mentioned electronic equipment can be any electronic equipment for having loudspeaker, such as: hand
Machine, tablet computer (Tablet Personal Computer), laptop computer (Laptop Computer), individual digital help
Manage (personal digital assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device,
) or wearable device (Wearable Device) etc. MID.
In the electronic equipment waterproof method of first embodiment of the invention, when the loudspeaker is in non-loudspeaking working condition
When, the first electric signal of the loudspeaker output is detected, the first testing result is generated;According to first testing result, judgement
Whether the vibrating membrane of the loudspeaker is offset inward;If the vibrating membrane of the loudspeaker is offset inward, starting is default
Waterproofing protection mode.In this way, causing to raise since the external pressure of electronic equipment becomes larger when electronic equipment enters in water environment
The vibrating membrane of sound device is offset inward, and determines vibration by the first testing result of the first electric signal of detection loudspeaker output
Film is offset inward, to start waterproofing protection mode, effectively realizes the function of waterproof and the protection of electronic equipment.
Second embodiment
It is the flow chart of electronic equipment waterproof method provided in an embodiment of the present invention referring to Fig. 3, Fig. 3, as shown in figure 3, packet
Include following steps:
Step 301, when the loudspeaker is in non-loudspeaking working condition, acquire the first telecommunications of loudspeaker output
Number, generate the first testing result.
In the step, the loudspeaking working condition of loudspeaker is a kind of working condition for converting electrical signals to voice signal,
Its working principle is that electrical conductor is vibrated in magnetic field by the effect of power.Loudspeaker generally comprises coil and vibration
Film, when sound passes to the vibrating membrane of coil-moving speaker, the coil of loudspeaker is also just as vibration vibration of membrane is shaken in magnetic field
It is dynamic, induced current can be generated, the induced current and the sound of driving diaphragm oscillations are closely related, for example, utilizing electronic equipment
Play music, call.And above-mentioned non-loudspeaking working condition indicates that loudspeaker is not in electric signal and is converted into voice signal
Working condition, as electronic equipment it is mute when working condition.
First electric signal of above-mentioned loudspeaker output can be first voltage signal or the first current signal, such as Fig. 2 institute
Show, Fig. 2 is the circuit connection diagram of the loudspeaker in electronic equipment, the positive connecting detection resistance R1 of loudspeaker, when loudspeaker
When vibrating membrane is offset inward, the coil on vibrating membrane cuts the magnetic cylinder magnetic line of force, and the first electricity will be generated on detection resistance R1
Signal detects the first electric signal by modulus detection circuit, generates the first testing result, and wherein modulus detection circuit includes comparing
The input terminal of device circuit and analog to digital conversion circuit, comparator circuit is connect with the first end and second end of detection resistance R1, is compared
The output end of device circuit and the input terminal of analog to digital conversion circuit connect, and the output end of analog to digital conversion circuit is connect with processor;Into
Row analog-to-digital conversion obtains digital signal, and the end a of detection resistance R1 and the end the b potential of detection resistance R1 are compared by comparator circuit
Obtain an output as a result, then this result exported to the available digital signal of analog to digital conversion circuit i.e. high level or
Then low level is handled obtained digital signal input central processing unit.In this way, processor passes through the height electricity detected
Flat or low level may determine that the drift condition of the vibrating membrane of loudspeaker, start waterproofing protection mould when in being offset inward
Formula, in this way, having saved cost of hardware design by existing loudspeaker in multiplexing electronic equipment.
The flow direction of step 302, detection first electric signal, generates flow detection result.
In the step, when electronic equipment is in water environment, electronic device exterior pressure can become larger, this when vibrating membrane just
It can be offset inward, as shown in Fig. 2, the potential at the end a that the electric signal for being offset inward generation is detection resistance R1 is greater than detection
The end the b potential of resistance R1 can export high level by comparator circuit or low level (here will be according to analog-to-digital conversion electricity
The specific connection type on road determines).It is assumed that above-mentioned output is high level, then the flow direction that can release the first electric signal is
The end b is flowed to from the end a of detection resistance R1, so that it is determined that vibrating membrane is to be offset inward.It should be noted that the circuit that Fig. 2 is provided is only
It is the process in order to which the first electric signal of output of step 101 is better described, operational amplifier circuit is the work that loudspeaker is in loudspeaking
Operating circuit when state.As long as can detection resistance R1 and the telecommunications on the circuit of operational amplifier circuit composition in the embodiment of the present invention
Number, the electric signal being not limited on detection resistance R1, so that it may be judged according to the electric signal on circuit.
Whether step 303, the flow direction for judging first electric signal are preset first direction.
In the step, the flow direction for the electric signal that preset first direction generates when being offset inward with vibrating membrane is consistent,
For example, with reference to Fig. 2, the voltage or current that the end b is flowed to by the end a of detection resistance R1 is generated when vibrating membrane is offset inward,
Then will setting the direction be first direction, in this way, by judge the first electric signal flow direction it may determine that vibrating membrane occur to
Bias internal or outward offset, so that it is determined that the variation of electronic device exterior pressure.
Step 304, if so, determining that the vibrating membrane is offset inward, if it is not, end program.
In the step, by judging the flow direction of the first new number of electricity, the first testing result of generation is so that it is determined that vibrating membrane is sent out
Life is offset inward, through existing loudspeaker in multiplexing electronic equipment, in the case of not increasing other hardware devices
The function of realizing waterproof, has saved cost of hardware design.It should be noted that above-mentioned judging result can terminate journey when being no
Sequence also may determine that whether the flow direction of first electric signal is preset second direction, here only to terminate program citing
Explanation.
If the vibrating membrane of step 305, the loudspeaker is offset inward, start preset waterproofing protection mode.
In the step, when the vibrating membrane of loudspeaker is offset inward, start the waterproofing protection mode set, this
Sample just will start preset waterproofing protection mode when electronic equipment enters water environment, which can be with
It is to close electronic device exterior interface, control disconnection electronic device exterior interface power, close electronic equipment screen power supply etc., from
And effectively realize the function of waterproof.
Optionally, after the step of whether flow direction for judging first electric signal is preset first direction, institute
State method further include: if the flow direction of first electric signal be preset second direction, it is determined that the generation of the vibrating membrane to
Outer offset;It is deviated outward according to the generation of the vibrating membrane, determines atmospheric pressure intensity values lower than preset pressure value;Export it is preset with
Atmospheric pressure intensity values are lower than the associated prompting message of preset pressure value.
In the embodiment, above-mentioned preset second direction, that is, vibrating membrane occurs to generate when offset outward in detection resistance R1
On current direction or voltage direction, by this deterministic process can determine when electronic device exterior atmospheric pressure low value in
Preset pressure value can timely remind user, for example, atmospheric pressure intensity values will be less than when electronic equipment is in High aititude
The atmospheric pressure intensity values of 1 standard, then can remind user to be currently at High aititude, pay attention to altitude sickness.In this way, passing through multiplexing loudspeaking
Device can realize the variation of determining atmospheric pressure, and be increased without other hardware devices, to increase the same of user experience
When reduce circuit design difficulty and design cost.If it should be noted that the flow direction in first electric signal is preset the
The process that a judgement can be executed before two directions, judges whether the flow direction of first electric signal is preset second direction,
If so, determining that the generation of the vibrating membrane deviates outward, if it is not, terminating program.To terminate journey after judgement in present embodiment
Sequence is illustrated.
Optionally, the output it is preset with atmospheric pressure the step of prompting message associated lower than preset pressure value it
Before, after the step of generation of the determination vibrating membrane deviates outward, the method also includes: detection first telecommunications
Number signal parameter, generate signal parameter detection result;According to the corresponding relationship of preset signal parameter and pressure values, institute is determined
State the corresponding pressure values of signal parameter detection result;The corresponding pressure values of the signal parameter are determined as atmospheric pressure intensity values;Institute
It states and exports preset and atmospheric pressure intensity values lower than the associated prompting message of preset pressure value, comprising: output prompting message, it is described to mention
Show that message is preset and atmospheric pressure intensity values lower than the associated message of preset pressure value, and carries the atmospheric pressure intensity values.
In the embodiment, the stream of modulus detection circuit not only the first electric signal on available above-mentioned detection resistance R1
To, but also the signal parameter of the first electric signal on available detection resistance R1, for example, the voltage parameter of the first electric signal
Value, sets the corresponding relationship of voltage battery parameter value and pressure values, corresponding 1.2 standard atmospheric pressures of such as 0.1 volt of voltage
By force, corresponding 1.3 standard atmospheric pressures of 0.2 volt of voltage, determine atmospheric pressure according to the parameter value of the electric signal of detection in this way
Intensity values, and pressure values are shown on an electronic device and are exported the prompting message for carrying the atmospheric pressure intensity values, it realizes
The detection and display of atmospheric pressure, has been multiplexed existing loudspeaker, has saved design cost.It should be noted that the implementation
Mode can deviate outward with the above-mentioned generation according to the vibrating membrane determines the step of atmospheric pressure intensity values are lower than preset pressure value
It is performed simultaneously.
Optionally, after the preset waterproofing protection mode of starting, the method also includes: it is defeated to detect the loudspeaker
The second electric signal out generates the second testing result;According to second testing result, judge that the vibrating membrane of the loudspeaker is
It is no to be offset to predeterminated position;If the vibrating membrane is offset to predeterminated position, the waterproofing protection mode is closed.
In the embodiment, the second electric signal is intended merely to the first electric signal of difference, is all detection its essence is the same
The current signal on voltage signal or R1 on resistance R1.After starting waterproof operating mode, electronic equipment be would be at
A kind of working condition of waterproof, by the variation of the second electric signal be assured that loudspeaker vibrating membrane whether be offset to it is default
Position, so there is no need to users, and waterproofing protection mode is turned off manually, to make to operate simpler and conveniently.It needs to illustrate
It is that the embodiment can be applied to after step 103 implement, and can reach identical technical effect.
Optionally, first electric signal is first voltage signal or the first current signal, and second electric signal
For second voltage signal or the second current signal.
In the embodiment, the vibrating membrane of loudspeaker is judged by way of the current signal or voltage signal that detect
Variation;It can also carry out comprehensive descision in conjunction with the testing result of both electric signals, increase the accurate of atmospheric pressure detection judgement
Property.
Optionally, the preset waterproofing protection mode of starting includes at least one of below:
The external interface power supply for closing the electronic equipment, starts default work at the screen power supplies for closing the electronic equipment
Operation mode.
In the embodiment, external interface of above-mentioned electronic equipment such as USB interface, earphone interface etc., normal condition electronics
The meeting of equipment provides power supply to these external interfaces, closes external interface power supply in water environment immediately when electronic equipment enters, this
Sample can be effectively prevented interface circuit and short circuit occurs because water is entered, so that electronic equipment be made to break down;Above-mentioned electronics
The display screen of the screen of equipment such as mobile phone, can only wrist-watch display screen etc.;The preset operating mode in hole in the ground can be underwater work
Operation mode, this mode can at least work in the case where low-power consumption, such as reduce display, retain the main function of electronic equipment
Can, water-proof function can effectively can be realized by being multiplexed loudspeaker in this way, reduce design cost while increasing function.It needs
It is noted that the embodiment can be applied to after step 103 implement, and identical technical effect can be reached.
In this way, in the electronic equipment waterproof method of the embodiment of the present invention, when the loudspeaker is in non-loudspeaking working condition
When, the first electric signal of the loudspeaker output is detected, flow detection result is generated;Judge the flow detection result whether be
Preset first direction;If the flow direction of first electric signal is the first direction, it is determined that the vibrating membrane occurs inside
Offset;If the vibrating membrane of the loudspeaker is offset inward, start preset waterproofing protection mode.In this way, working as electronic equipment
Into in water environment, causes the vibrating membrane of loudspeaker to be offset inward since the external pressure of electronic equipment becomes larger, pass through
First testing result of the first electric signal of detection loudspeaker output determines that vibrating membrane is offset inward, to start waterproofing protection mould
Formula effectively realizes the function of waterproof and the protection of electronic equipment.
3rd embodiment
Referring to fig. 4, Fig. 4 is the structure chart that the present invention implements the electronic equipment provided, is able to achieve first embodiment and second
The details of electronic equipment waterproof method in embodiment, and reach identical effect.As shown in figure 4, electronic equipment 400 includes the
One electrical signal detection module 401, first judgment module 402 and starting module 403;Wherein, the first electrical signal detection module 401 with
First judgment module 402 connects, and first judgment module 402 is connect with starting module 403.
First electrical signal detection module 401, for being raised described in detection when the loudspeaker is in non-loudspeaking working condition
First electric signal of sound device output, generates the first testing result.
First judgment module 402, first detection for being detected according to the first electrical signal detection module 401 are tied
Fruit, judges whether the vibrating membrane of the loudspeaker is offset inward;
Starting module 403 judges that the vibrating membrane of the loudspeaker is biased inwardly for the first judgment module 402
It moves, starts preset waterproofing protection mode.
Optionally, as shown in figure 5, the first electrical signal detection module 401 is used to detect the stream of first electric signal
To generation flow detection result.
The first judgment module 402 includes:
Judging unit 4021, for judge the first electrical signal detection module detection the flow detection result whether
For preset first direction;
First determination unit 4022 judges the flow detection result for the first party for the judging unit 4021
To, it is determined that the vibrating membrane is offset inward.
Optionally, as shown in fig. 6, the first judgment module 402 further include:
Second determination unit 4023 judges the flow detection result for preset second for the judging unit 4021
Direction, it is determined that the generation of the vibrating membrane deviates outward.
Third determination unit 4024, the vibrating membrane for being determined according to second determination unit 4023 occur outside
It deviates and determines that atmospheric pressure intensity values are lower than preset pressure value.
Prompting message output unit 4025, for exporting the preset atmospheric pressure determined with the third determination unit 4024
Intensity values are lower than the associated prompting message of preset pressure value.
Optionally, as shown in fig. 7, the first judgment module 402 further include:
Signal parameter detection unit 4026 generates signal parameter detection knot for detecting the signal parameter of the electric signal
Fruit.
Pressure values determination unit 4027, for the corresponding relationship according to preset signal parameter and pressure values, determine described in
The corresponding pressure values of the signal parameter detection result that signal parameter detection unit 4026 detects.
Atmospheric pressure intensity values acquiring unit 4028, for examining number parameter described in the pressure values determination unit 4027 determination
It surveys the corresponding pressure values of result and is determined as atmospheric pressure intensity values.
The prompting message output unit 4025 is preset and atmospheric pressure for exporting prompting message, the prompting message
Intensity values are lower than the associated message of preset pressure value, and carry the atmospheric pressure intensity values.
Optionally, as shown in figure 8, the electronic equipment 400 further include:
Second signal detection module 404 generates the second detection knot for detecting the second electric signal of the loudspeaker output
Fruit.
Second judgment module 405, second testing result for being detected according to the second signal detection module 404
Judge whether the vibrating membrane of the loudspeaker is offset to predeterminated position.
Closedown module 406 judges that the vibrating membrane is offset to predeterminated position for second judgment module 405, closes
The waterproofing protection mode.
Optionally, first electric signal is first voltage signal or the first current signal, and second electric signal
For second voltage signal or the second current signal.
Optionally, the preset waterproofing protection mode of starting includes at least one of below:
The external interface power supply for closing the electronic equipment, starts default work at the screen power supplies for closing the electronic equipment
Operation mode.
Electronic equipment 400 can be realized each process that electronic equipment is realized in the embodiment of the method for Fig. 1 to Fig. 3, and energy
Reach identical technical effect, to avoid repeating, which is not described herein again.
In this way, when the loudspeaker is in non-loudspeaking working condition, detecting institute in the electronic equipment of the embodiment of the present invention
The first electric signal of loudspeaker output is stated, the first testing result is generated;According to first testing result, the loudspeaker is judged
Vibrating membrane whether be offset inward;If the vibrating membrane of the loudspeaker is offset inward, start preset waterproofing protection
Mode.In this way, leading to the vibration of loudspeaker since the external pressure of electronic equipment becomes larger when electronic equipment enters in water environment
Film is offset inward, and determines that vibrating membrane is biased inwardly by the first testing result of the first electric signal of detection loudspeaker output
It moves, to start waterproofing protection mode, effectively realizes the function of waterproof and the protection of electronic equipment.
Fourth embodiment
Referring to fig. 2, Fig. 2 is electronic equipment protection circuit diagram provided by the invention, is able to achieve first embodiment and second in fact
The details of the electronic equipment waterproof method in example is applied, and reaches identical effect.
The protection circuit includes:
Loudspeaker, detection resistance, operational amplifier circuit, modulus detection circuit and processor.
The loudspeaker anode connect with the first end of the detection resistance, the second end of the detection resistance with it is described
The first end of operational amplifier circuit connects, and the second end of the operational amplifier circuit is connect with the cathode of the loudspeaker, the modulus detection
The input terminal of circuit is connect with the first end and second end of the detection resistance respectively, the output end of the modulus detection circuit with
The processor connection.
The modulus detection circuit is used to detect the loudspeaker and exports the first electric signal in the detection resistance, raw
First testing result is transmitted at the first testing result, and to the processor.
The processor is used to judge whether the vibrating membrane of the loudspeaker occurs inwardly according to first testing result
Offset.
If the vibrating membrane that the processor is also used to the loudspeaker is offset inward, start preset waterproofing protection mould
Formula.
Optionally, the modulus detection circuit is used to detect the flow direction of first electric signal, generate flow detection as a result,
And the flow detection result is transferred to the processor.
The processor is also used to judge whether the flow detection result of the modulus detection circuit detection is default
First direction.
If it is the first direction that the processor, which is also used to the flow detection result, it is determined that the vibrating membrane occurs
It is offset inward.
Optionally, if it is preset second direction that the processor, which is also used to the flow detection result, it is determined that described
The generation of vibrating membrane deviates outward.
The processor is also used to that offset outward occurs according to the vibrating membrane, it is determined that atmospheric pressure intensity values are lower than default pressure
Intensity values.
The processor is also used to export preset and atmospheric pressure intensity values lower than the associated prompting message of preset pressure value.
Optionally, the modulus detection circuit is used to detect first electricity of the loudspeaker output in the detection resistance
The signal parameter of signal generates signal parameter detection as a result, and transmitting the parameter detecting result to the processor.
The processor is also used to the corresponding relationship according to preset signal parameter and pressure values, determines the parameter detecting
As a result corresponding pressure values.
The processor is also used to the corresponding pressure values of the signal parameter being determined as atmospheric pressure intensity values.
The processor is also used to export prompting message, and the prompting message is preset and atmospheric pressure intensity values lower than default
The associated message of pressure values, and carry the atmospheric pressure intensity values.
Optionally, the modulus detection circuit is used to detect second electricity of the loudspeaker output in the detection resistance
Signal generates the second testing result, and transmits second testing result to the processor.
The processor is also used to second testing result detected according to modulus detection circuit, judges the loudspeaker
Vibrating membrane whether be offset to predeterminated position.
If the processor, which is also used to the processor, judges that the vibrating membrane is offset to predeterminated position, the waterproof is closed
Protected mode.
Optionally, first electric signal is first voltage signal or the first current signal, and second electric signal
For second voltage signal or the second current signal.
Optionally, the preset waterproofing protection mode of starting includes at least one of below:
The external interface power supply for closing the electronic equipment, starts default work at the screen power supplies for closing the electronic equipment
Operation mode.
Electronic equipment protection circuit provided in an embodiment of the present invention can be realized what electronic equipment in previous embodiment was realized
Each process, and identical technical effect can be reached, to avoid repeating, which is not described herein again.
In this way, in the electronic equipment protection circuit of the embodiment of the present invention, by modulus detection circuit for detecting described raise
Sound device exports the first electric signal in the detection resistance, generates the first testing result, and to described in processor transmission
First testing result;The processor is used to judge whether the vibrating membrane of the loudspeaker is sent out according to first testing result
Life is offset inward;If the vibrating membrane that the processor is also used to the loudspeaker is offset inward, starts preset waterproof and protect
Shield mode.In this way, leading to the vibration of loudspeaker since the external pressure of electronic equipment becomes larger when electronic equipment enters in water environment
Dynamic film is offset inward, and determines that vibrating membrane is biased inwardly by the first testing result of the first electric signal of detection loudspeaker output
It moves, to start waterproofing protection mode, effectively realizes the function of waterproof and the protection of electronic equipment.
5th embodiment
It is the structure chart that the present invention implements the electronic equipment provided referring to Fig. 9, Fig. 9, is able to achieve first embodiment and second
The details of electronic equipment waterproof method in embodiment, and reach identical effect.As shown in figure 9, electronic equipment 900 includes:
At least one processor 901, memory 902, at least one network interface 904 and user interface 903.In electronic equipment 900
Various components are coupled by bus system 905.It is understood that bus system 905 is for realizing the company between these components
Connect letter.Bus system 905 except include data/address bus in addition to, further include power bus, control bus and status signal bus in addition but
It is that various buses are all designated as bus system 905 in Fig. 9 for the sake of clear explanation.
Wherein, user interface 903 may include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch screen etc., the touch screen are flexible screen.
It is appreciated that the memory 902 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synch link DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 902 of system and method described herein is intended to include but is not limited to these and arbitrarily its
It is suitble to the memory of type.
In some embodiments, memory 902 stores following element, executable modules or data structures, or
Their subset of person or their superset: operating system 9021 and application program 9022.
Wherein, operating system 9021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 9022 includes various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 9022.
In embodiments of the present invention, by the program or instruction of calling memory 902 to store, specifically, can be application
The program or instruction stored in program 9022, processor 901 are used for: when the loudspeaker is in non-loudspeaking working condition, inspection
The first electric signal for surveying the loudspeaker output, generates the first testing result;According to first testing result, raised described in judgement
Whether the vibrating membrane of sound device is offset inward;If the vibrating membrane of the loudspeaker is offset inward, start preset waterproof
Protected mode.
The method that the embodiments of the present invention disclose can be applied in processor 901, or be realized by processor 901.
Processor 901 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 901 or the instruction of software form.Above-mentioned processing
Device 901 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor
And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only
In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at
The step of memory 902, processor 901 reads the information in memory 902, completes the above method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (Application
Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic
Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,
In controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein
The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or
It is realized outside processor.
Optionally, processor 901 is also used to: the first electric signal of the detection loudspeaker output generates the first inspection
The step of surveying result, comprising: the flow direction of detection first electric signal generates flow detection result;Judge the flow detection
It as a result whether is preset first direction;If the flow detection result is the first direction, it is determined that the vibrating membrane hair
Life is offset inward.
Optionally, it is described judge the step of whether the flow detection result is preset first direction after, processing
Device 901 is also used to: if the flow direction of first electric signal is preset second direction, it is determined that the generation of the vibrating membrane is outside
Offset;It is deviated outward according to the generation of the vibrating membrane, determines atmospheric pressure intensity values lower than preset pressure value;Export it is preset with it is big
Air pressure intensity values are lower than the associated prompting message of preset pressure value.
Optionally, the output preset prompting message associated lower than preset pressure value with atmospheric pressure the step of it
Before, after the step of generation of the determination vibrating membrane deviates outward, processor 901 is also used to: detecting the electric signal
Signal parameter, generate signal parameter detection result;According to the corresponding relationship of preset signal parameter and pressure values, determine described in
The corresponding pressure values of signal parameter detection result;The corresponding pressure values of the signal parameter detection result are determined as atmospheric pressure
Value;Processor 901 is also used to: output prompting message, and the prompting message is that preset and atmospheric pressure intensity values are lower than default pressure
It is worth associated message, and carries the atmospheric pressure intensity values.
Optionally, after the starting preset waterproofing protection mode the step of, processor 901 is also used to: detection institute
The second electric signal of loudspeaker output is stated, the second testing result is generated;According to second testing result, the loudspeaker is judged
Vibrating membrane whether be offset to predeterminated position;If the vibrating membrane is offset to predeterminated position, the waterproofing protection mode is closed.
Optionally, it is first voltage signal or the first current signal that processor 901, which executes first electric signal, and is located
It is second voltage signal or the second current signal that reason device 901, which executes second electric signal,.
Optionally, it includes at least one of below that processor 901, which executes the preset waterproofing protection mode of starting: being closed
The external interface power supply of the electronic equipment, the screen power supplies for closing the electronic equipment start default operating mode.
Electronic equipment 900 can be realized each process that electronic equipment is realized in previous embodiment, and can reach identical
Technical effect, to avoid repeating, which is not described herein again.
In this way, in the electronic equipment 900 of the embodiment of the present invention, when the loudspeaker is in non-loudspeaking working condition, inspection
The first electric signal for surveying the loudspeaker output, generates the first testing result;According to first testing result, raised described in judgement
Whether the vibrating membrane of sound device is offset inward;If the vibrating membrane of the loudspeaker is offset inward, start preset waterproof
Protected mode.In this way, leading to loudspeaker since the external pressure of electronic equipment becomes larger when electronic equipment enters in water environment
Vibrating membrane is offset inward, and determines that vibrating membrane is inside by the first testing result of the first electric signal of detection loudspeaker output
Offset, to start waterproofing protection mode, effectively realizes the function of waterproof and the protection of electronic equipment.
Sixth embodiment
Referring to Fig. 10, Figure 10 be the present invention implement provide electronic equipment structure chart, be able to achieve first embodiment and
The details of electronic equipment waterproof method in second embodiment, and reach identical effect.As shown in Figure 10, electronic equipment 1000
Including radio frequency (Radio Frequency, RF) circuit 1010, memory 1020, input unit 1030, display unit 1040, place
Device 1050, voicefrequency circuit 1060, communication module 1070, power supply 1080 and modulus detection circuit 1090 are managed, wherein analog-to-digital conversion electricity
Road is exported for converting analog signals into digital signal to processor 1050.
Wherein, input unit 1030 can be used for receiving the number or character information of user's input, and generates and set with electronics
The related signal input of standby 1000 user setting and function control.Specifically, in the embodiment of the present invention, the input unit
1030 may include touch panel 1031.Touch panel 1031, also referred to as touch screen collect the touching of user on it or nearby
It touches operation (for example user uses the operations of any suitable object or attachment on touch panel 1031 such as finger, stylus), and
Corresponding attachment device is driven according to preset formula.Optionally, touch panel 1031 may include touch detecting apparatus and
Two parts of touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation bring letter
Number, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into
Contact coordinate, then give the processor 1050, and order that processor 1050 is sent can be received and executed.Furthermore, it is possible to
Touch panel 1031 is realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1031, input unit 1030 can also include other input equipments 1032, other input equipments 1032 can include but is not limited to
One of physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are more
Kind.
Wherein, display unit 1040 can be used for showing information input by user or be supplied to the information and electronics of user
The various menu interfaces of equipment 1000.Display unit 1040 may include display panel 1041, optionally, using LCD or can have
The forms such as machine light emitting diode (Organic Light-Emitting Diode, OLED) configure display panel 1041.
It should be noted that touch panel 1031 can cover display panel 1041, touch display screen is formed, when the touch display screen
After detecting touch operation on it or nearby, processor 1050 is sent to determine the type of touch event, is followed by subsequent processing
Device 1050 provides corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area
And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area
Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example,
Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 1050 is the control centre of electronic equipment 1000, utilizes various interfaces and connection whole mobile phone
Various pieces, by running or execute the software program and/or module that are stored in first memory 1021, and call and deposit
The data in second memory 1022 are stored up, the various functions and processing data of electronic equipment 1000 are executed, to set to electronics
Standby 1000 carry out integral monitoring.Optionally, processor 1050 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 1021 in software program and/or module and/
Or the data in the second memory 1022, processor 1050 are used for: when the loudspeaker is in non-loudspeaking working condition, inspection
The first electric signal for surveying the loudspeaker output, generates the first testing result;According to first testing result, raised described in judgement
Whether the vibrating membrane of sound device is offset inward;If the vibrating membrane of the loudspeaker is offset inward, start preset waterproof
Protected mode.
Optionally, processor 1050 is also used to: the first electric signal of the detection loudspeaker output generates the first inspection
The step of surveying result, comprising: the flow direction of detection first electric signal generates flow detection result;Judge the flow detection
It as a result whether is preset first direction;If the flow detection result is the first direction, it is determined that the vibrating membrane hair
Life is offset inward.
Optionally, it is described judge the step of whether the flow detection result is preset first direction after, processing
Device 1050 is also used to: if the flow direction of first electric signal be preset second direction, it is determined that the generation of the vibrating membrane to
Outer offset;Being deviated outward according to the generation of the vibrating membrane determines atmospheric pressure intensity values lower than preset pressure value;Export it is preset with
Atmospheric pressure intensity values are lower than the associated prompting message of preset pressure value.
Optionally, the output preset prompting message associated lower than preset pressure value with atmospheric pressure the step of it
Before, after the step of generation of the determination vibrating membrane deviates outward, processor 1050 is also used to: detecting the electric signal
Signal parameter, generate signal parameter detection result;According to the corresponding relationship of preset signal parameter and pressure values, determine described in
The corresponding pressure values of signal parameter detection result;The corresponding pressure values of the signal parameter detection result are determined as atmospheric pressure
Value;Processor 1050 is also used to: output prompting message, and the prompting message is that preset and atmospheric pressure intensity values are lower than default pressure
It is worth associated message, and carries the atmospheric pressure intensity values.
Optionally, after the preset waterproofing protection mode of starting, processor 1050 is also used to: detecting the loudspeaking
Second electric signal of device output, generates the second testing result;According to second testing result, the vibration of the loudspeaker is judged
Whether film is offset to predeterminated position;If the vibrating membrane is offset to predeterminated position, the waterproofing protection mode is closed.
Optionally, processor 1050 executes first electric signal as first voltage signal or the first current signal, and
It is second voltage signal or the second current signal that processor 1050, which executes second electric signal,.
Optionally, it includes at least one of below that processor 1050, which executes the preset waterproofing protection mode of starting: being closed
The external interface power supply for closing the electronic equipment, starts default operating mode at the screen power supplies for closing the electronic equipment.
Electronic equipment 1000 can be realized each process that electronic equipment is realized in previous embodiment, and can reach identical
Technical effect, to avoid repeating, which is not described herein again.
In this way, in the electronic equipment 1000 of the embodiment of the present invention, when the loudspeaker is in non-loudspeaking working condition, inspection
The first electric signal for surveying the loudspeaker output, generates the first testing result;According to first testing result, raised described in judgement
Whether the vibrating membrane of sound device is offset inward;If the vibrating membrane of the loudspeaker is offset inward, start preset waterproof
Protected mode.In this way, leading to loudspeaker since the external pressure of electronic equipment becomes larger when electronic equipment enters in water environment
Vibrating membrane is offset inward, and determines that vibrating membrane is inside by the first testing result of the first electric signal of detection loudspeaker output
Offset, to start waterproofing protection mode, effectively realizes the function of waterproof and the protection of electronic equipment.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit
It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needs
Purpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code
Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.