CN109862608A - A kind of mobile terminal protective case detection control method, mobile terminal and storage medium - Google Patents

A kind of mobile terminal protective case detection control method, mobile terminal and storage medium Download PDF

Info

Publication number
CN109862608A
CN109862608A CN201811389620.3A CN201811389620A CN109862608A CN 109862608 A CN109862608 A CN 109862608A CN 201811389620 A CN201811389620 A CN 201811389620A CN 109862608 A CN109862608 A CN 109862608A
Authority
CN
China
Prior art keywords
protective case
mobile terminal
detection function
detection
close
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.)
Pending
Application number
CN201811389620.3A
Other languages
Chinese (zh)
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.)
TCL Mobile Communication Technology Ningbo Ltd
Original Assignee
TCL Mobile Communication Technology Ningbo 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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN201811389620.3A priority Critical patent/CN109862608A/en
Publication of CN109862608A publication Critical patent/CN109862608A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a kind of mobile terminal protective case detection control method, mobile terminal and storage mediums; the described method includes: control proximity sensor enters working condition when detecting user on mobile teminal menu interface starting protection being selected to cover detection function;When proximity sensor detected object close to when, starting protection set detection function then close protective case detection function when protective case is not detected;Detected again after proximity sensor detects that object has left object close to when, then be again started up protective case detection function.The present invention when prevented in mobile terminal using protective case mobile terminal fall etc. shocks it is impaired when; the close of protective case is perceived by proximity sensor and is left; starting in time and closing protective case detection function; the detection number and detection time of Magnetic Sensor can be reduced; and it can react in advance when closing protective case; to reduce energy consumption, brought convenience for user.

Description

A kind of mobile terminal protective case detection control method, mobile terminal and storage medium
Technical field
The present invention relates to mobile terminal applied technical fields more particularly to a kind of mobile terminal protective case to detect controlling party Method, mobile terminal and storage medium.
Background technique
Currently, each mobile terminal manufacturer is all being kept in mind as mobile terminal user increasingly pursues personalized, differentiation How oneself mobile terminal is formed with innovative point, user can be attracted, and product easy to use can be brought to user;And The appearance of mobile terminal is first impression for user, or even when mobile terminal is not turned on also, is heaved in sight first just It is shape, the color of mobile terminal.And in recent years, it hits to protect mobile terminal to fall etc., increases again on mobile terminals Protective case can prevent mobile terminal from the shocks such as falling at end and lack the impaired problem and beauty of protection.But it is existing In technology, in order to avoid the power consumption of mobile terminal is higher, it automatic will be closed when protective case covers and go out screen to save electricity, the inspection Survey the detection based on the magnet on protective case edge, it is necessary to could work when protective case covers, and need long-term open should The detection of magnetic intensity, existing detection mode increase energy consumption.
Therefore, the existing technology needs to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is that the present invention provides a kind of mobile terminal guarantor for prior art defect Sheath detects control method, mobile terminal and storage medium, when preventing mobile terminal from falling using protective case in mobile terminal Fall etc. shocks it is impaired when, the close of protective case is perceived by proximity sensor and is left, starting in time and closes protective case inspection Brake, can reduce the detection number and detection time of Magnetic Sensor, and can make in advance when closing protective case anti- It answers, to reduce energy consumption, is brought convenience for user.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of mobile terminal protective case detection control method, wherein the mobile terminal protective case detects control method and includes:
When detecting user on mobile teminal menu interface starting protection being selected to cover detection function, control proximity sensor into Enter working condition;
When proximity sensor detected object close to when, starting protection set detection function then closed when protective case is not detected Close protective case detection function;
Detected again after proximity sensor detects that object has left object close to when, then be again started up protective case detection Function.
The mobile terminal protective case detects control method, wherein described user to be detected in mobile teminal menu When selecting starting protection set detection function on interface, control proximity sensor enters before working condition further include:
Proximity sensor close for detection object in mobile terminal front edge center region setting one in advance.
The mobile terminal protective case detects control method, wherein and it is described when protective case is not detected, then close guarantor Sheath detection function specifically includes:
If protective case is not detected within a preset time, protective case detection function is closed.
The mobile terminal protective case detects control method, wherein the preset time is 2 seconds.
The mobile terminal protective case detects control method, wherein described when proximity sensor has detected that object leans on When close, starting protection set detection function then closes protective case detection function when protective case is not detected further include:
If proximity sensor detects that original close object has left in protective case detection process, protective case inspection is closed Brake.
The mobile terminal protective case detects control method, wherein and it is described when protective case is not detected, then close guarantor Sheath detection function further include:
In the inactive protective case detection function of mobile terminal, being positioned proximate to sensor detection threshold is the first thresholding, works as object Then think that object is close when apart from proximity sensor less than the first thresholding, control mobile terminal starting protection covers detection function;
After the set detection of mobile terminal starting protection, being positioned proximate to sensor detection threshold is the second thresholding, when object distance connects Nearly sensor then thinks that object is separate when being greater than or equal to the second thresholding, and control mobile terminal closes protective case detection function.
The mobile terminal protective case detects control method, wherein first thresholding is less than second thresholding.
The mobile terminal protective case detects control method, wherein the value of first thresholding is 3cm;Described second The value of thresholding is 5cm.
A kind of mobile terminal, wherein the mobile terminal includes: memory, processor and is stored on the memory And the mobile terminal protective case detection control program that can be run on the processor, the mobile terminal protective case detection control Program realizes the step of mobile terminal protective case detection control method as described above when being executed by the processor.
A kind of storage medium, wherein the storage medium is stored with mobile terminal protective case detection control program, the shifting Dynamic terminal protection set detection control program realizes mobile terminal protective case detection control method as described above when being executed by processor The step of.
The invention discloses a kind of mobile terminal protective case detection control method, mobile terminal and storage medium, the sides Method includes: to control when detecting user on mobile teminal menu interface starting protection being selected to cover detection function close to sensing Device enters working condition;When proximity sensor detected object close to when, starting protection cover detection function, when be not detected protect When sheath, then protective case detection function is closed;Detect that object leans on again after proximity sensor detects that object has left When close, then protective case detection function is again started up.The present invention works as in mobile terminal prevents mobile terminal from falling using protective case Fall etc. shocks it is impaired when, the close of protective case is perceived by proximity sensor and is left, starting in time and closes protective case inspection Brake, can reduce the detection number and detection time of Magnetic Sensor, and can make in advance when closing protective case anti- It answers, to reduce energy consumption, is brought convenience for user.
Detailed description of the invention
Fig. 1 is the flow chart of the preferred embodiment of mobile terminal protective case detection control method of the present invention;
Fig. 2 is the running environment schematic diagram of the preferred embodiment of mobile terminal of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer and more explicit, right as follows in conjunction with drawings and embodiments The present invention is further described.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and do not have to It is of the invention in limiting.
Mobile terminal protective case described in present pre-ferred embodiments detects control method, as shown in Figure 1, described mobile whole End protective cover detect control method the following steps are included:
Step S10, when detecting user on mobile teminal menu interface starting protection being selected to cover detection function, control is close Sensor enters working condition.
Specifically, before the step S10 further include: be arranged one in the mobile terminal front edge center region in advance The proximity sensor close for detection object.Wherein, proximity sensor is to replace the contact measurements modes such as limit switch, with Without contacting the general name of the sensor for the purpose of test object is detected, can test object mobile message and there are information to turn It is changed to electric signal, in the detection mode for being changed to electric signal, including the use of the metal of test object caused by electromagnetic induction The mode of the eddy current generated in body, the mode for catching the volume change close to caused electric signal for surveying body, sharp stone and guidance The mode of switch;Proximity sensor is a kind of device with perception object proximity ability, it is using displacement sensor to close Object there is sensitivity characteristic to identify the close of object, and respective switch signal is exported, therefore, usually again proximity sensor Referred to as close to switch.
That is, a proximity sensor is arranged near mobile terminal edge, do not have for the position of proximity sensor There are strict requirements, the central point of induction range is preferably arranged in, but position slightly has deviation and also may be used;When user is mobile whole When holding selection starting protection set detection function on menu interface, actually starting protection does not cover detection function but enables (to make Can refer to and be responsible for outputting and inputting for control signal, be herein the starting of control proximity sensor) proximity sensor.
Step S20, when proximity sensor detected object close to when, starting protection covers detection function, when being not detected When protective case, then protective case detection function is closed.
Specifically, when proximity sensor detected object close to when, starting protection set detection;If in one section of preset time Protective case is not detected inside, then closes protective case detection function, wherein the preset time is preferably 2 seconds.
Further, it is contemplated that the sensitivity of detection error and proximity sensor, it is close by prior art detection object When be setting one thresholding, when proximity sensor detect object distance be less than thresholding when think that object is close, otherwise it is assumed that object It is separate;When the distance between object and proximity sensor are just threshold value, a hand for carrying out user be will shake, and two carry out sensor Detection error itself, sensitivity are unlikely to be perfectly, so when will frequently detect protective case, then will frequently, it is anti- Protective case detection is closed in multiple starting protection set detection, and it is relatively high to instead result in power consumption.
To solve drawbacks described above, the present invention presets two detection thresholds: the first thresholding and the second thresholding;Inactive When protective case detects, being positioned proximate to sensor detection threshold is the first thresholding, at this time when object distance proximity sensor is less than the Think that object is close when one thresholding, then the detection of starting protection set;After starting protection set detection, it is positioned proximate to sensor detection Thresholding is the second thresholding, thinks that object is separate when object distance proximity sensor is greater than or equal to the second thresholding at this time, then Close protective case detection.Wherein, first thresholding is less than the second thresholding.
Wherein, first thresholding is less than second thresholding;Preferably, the first threshold value is 3cm, the second thresholding is 5cm。
Further, the detection threshold for being positioned proximate to sensor is the first thresholding, and opens proximity test function;It is set Detection the first thresholding be 3cm, when proximity sensor detects object distance less than first after opening proximity test function Think that object is close when thresholding;Detecting object with proximity sensor distance less than the first thresholding, more than or equal to first Different level will be exported in limited time, high level is exported when being, for example, less than the first thresholding, exported when more than or equal to the first thresholding low Level;Thus only need to be according to the edge interrupt of proximity sensor output pin to determine whether there is object less than the first thresholding.
Step S30, detected again after proximity sensor detects that object has left object close to when, then open again Dynamic protective case detection function.
Specifically, if proximity sensor has detected that object is close after proximity sensor detects that object has left again When, then step S20 is executed again.
As shown in Fig. 2, detecting control method based on above-mentioned mobile terminal protective case, the present invention further correspondingly provides a kind of shifting Dynamic terminal, the mobile terminal includes processor 10, memory 20 and display 30.Fig. 2 illustrates only the part of mobile terminal Component, it should be understood that it is not required for implementing all components shown, more or less groups of the implementation that can be substituted Part.
The memory 20 can be the internal storage unit of the mobile terminal in some embodiments, such as mobile whole The hard disk or memory at end.The external storage that the memory 20 is also possible to the mobile terminal in further embodiments is set Plug-in type hard disk that is standby, such as being equipped on the mobile terminal, intelligent memory card (Smart Media Card, SMC), safety Digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the memory 20 can also be both Internal storage unit including the mobile terminal also includes External memory equipment.The memory 20 is installed on institute for storing State the application software and Various types of data of mobile terminal, such as the program code etc. of the installation mobile terminal.The memory 20 It can be also used for temporarily storing the data that has exported or will export.In one embodiment, it is stored on memory 20 Mobile terminal protective case detection control program 40, mobile terminal protective case detection control program 40 can be held by processor 10 Row, to realize that mobile terminal protective case detects control method in the application.
The processor 10 can be in some embodiments a central processing unit (Central Processing Unit, CPU), microprocessor or other data processing chips, for running the program code stored in the memory 20 or processing number According to, such as execute the mobile terminal protective case detection control method etc..
The display 30 can be light-emitting diode display, liquid crystal display, touch-control liquid crystal display in some embodiments And OLED(Organic Light-Emitting Diode, Organic Light Emitting Diode) touch device etc..The display 30 is used In the information for being shown in the mobile terminal and for showing visual user interface.The component 10- of the mobile terminal 30 are in communication with each other by system bus.
In one embodiment, when processor 10 executes mobile terminal protective case detection control program 40 in the memory 20 When perform the steps of
When detecting user on mobile teminal menu interface starting protection being selected to cover detection function, control proximity sensor into Enter working condition;
When proximity sensor detected object close to when, starting protection set detection function then closed when protective case is not detected Close protective case detection function;
Detected again after proximity sensor detects that object has left object close to when, then be again started up protective case detection Function.
The present invention also provides a kind of storage mediums, wherein the storage medium is stored with the detection control of mobile terminal protective case Processing procedure sequence, the mobile terminal protective case detection control program realize mobile terminal protective case as described above when being executed by processor The step of detecting control method;As detailed above.
In conclusion the present invention provides a kind of mobile terminal protective case detection control method, mobile terminal and storage medium, The described method includes: control connects when detecting user on mobile teminal menu interface starting protection being selected to cover detection function Nearly sensor enters working condition;When proximity sensor detected object close to when, starting protection covers detection function, when not examining When measuring protective case, then protective case detection function is closed;It has been detected again after proximity sensor detects that object has left Object close to when, then be again started up protective case detection function.The present invention is mobile whole when being prevented in mobile terminal using protective case End fall etc. shocks it is impaired when, the close of protective case is perceived by proximity sensor and is left, starting in time and closing is protected Sheath detection function, can reduce the detection number and detection time of Magnetic Sensor, and can shift to an earlier date when closing protective case It reacts, to reduce energy consumption, is brought convenience for user.
Certainly, those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, It is that related hardware (such as processor, controller etc.) can be instructed to complete by computer program, the program can store In a computer-readable storage medium, described program may include the process such as above-mentioned each method embodiment when being executed. Wherein the storage medium can be memory, magnetic disk, CD etc..
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention Protect range.

Claims (10)

1. a kind of mobile terminal protective case detects control method, which is characterized in that the mobile terminal protective case detects controlling party Method includes:
When detecting user on mobile teminal menu interface starting protection being selected to cover detection function, control proximity sensor into Enter working condition;
When proximity sensor detected object close to when, starting protection set detection function then closed when protective case is not detected Close protective case detection function;
Detected again after proximity sensor detects that object has left object close to when, then be again started up protective case detection Function.
2. mobile terminal protective case according to claim 1 detects control method, which is characterized in that described to detect use When selecting starting protection set detection function on mobile teminal menu interface, control proximity sensor enters before working condition at family Further include:
Proximity sensor close for detection object in mobile terminal front edge center region setting one in advance.
3. mobile terminal protective case according to claim 1 detects control method, which is characterized in that described to be not detected When protective case, then closes protective case detection function and specifically includes:
If protective case is not detected within a preset time, protective case detection function is closed.
4. mobile terminal protective case according to claim 3 detects control method, which is characterized in that the preset time is 2 seconds.
5. mobile terminal protective case according to claim 1 detects control method, which is characterized in that described when close sensing Device detected object close to when, starting protection cover detection function, when protective case is not detected, then close protective case detection function It can further include:
If proximity sensor detects that original close object has left in protective case detection process, protective case inspection is closed Brake.
6. mobile terminal protective case according to claim 1 detects control method, which is characterized in that described to be not detected When protective case, then protective case detection function is closed further include:
In the inactive protective case detection function of mobile terminal, being positioned proximate to sensor detection threshold is the first thresholding, works as object Then think that object is close when apart from proximity sensor less than the first thresholding, control mobile terminal starting protection covers detection function;
After the set detection of mobile terminal starting protection, being positioned proximate to sensor detection threshold is the second thresholding, when object distance connects Nearly sensor then thinks that object is separate when being greater than or equal to the second thresholding, and control mobile terminal closes protective case detection function.
7. mobile terminal protective case according to claim 6 detects control method, which is characterized in that first thresholding is small In second thresholding.
8. mobile terminal protective case according to claim 7 detects control method, which is characterized in that first thresholding Value is 3cm;The value of second thresholding is 5cm.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes: memory, processor and is stored in the storage On device and the mobile terminal protective case detection control program that can run on the processor, mobile terminal protective case detection Control program is realized when being executed by the processor such as the described in any item mobile terminal protective case detection controls of claim 1-8 The step of method.
10. a kind of storage medium, which is characterized in that the storage medium is stored with mobile terminal protective case detection control program, The mobile terminal protective case detection control program is realized mobile whole as described in claim any one of 1-8 when being executed by processor End protective cover detects the step of control method.
CN201811389620.3A 2018-11-21 2018-11-21 A kind of mobile terminal protective case detection control method, mobile terminal and storage medium Pending CN109862608A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811389620.3A CN109862608A (en) 2018-11-21 2018-11-21 A kind of mobile terminal protective case detection control method, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811389620.3A CN109862608A (en) 2018-11-21 2018-11-21 A kind of mobile terminal protective case detection control method, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN109862608A true CN109862608A (en) 2019-06-07

Family

ID=66890072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811389620.3A Pending CN109862608A (en) 2018-11-21 2018-11-21 A kind of mobile terminal protective case detection control method, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109862608A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111050278A (en) * 2019-12-27 2020-04-21 Tcl移动通信科技(宁波)有限公司 Card detection method, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090633A (en) * 2014-06-27 2014-10-08 文爱瑶 Mobile device protective cover and method for enabling touch screen mobile device to be in dormant state
CN104767867A (en) * 2014-01-07 2015-07-08 中兴通讯股份有限公司 Automatic mobile phone sleep method and device
CN104834497A (en) * 2015-05-15 2015-08-12 北京智膜科技有限公司 On screen display control method and controller
CN106101430A (en) * 2016-06-30 2016-11-09 维沃移动通信有限公司 The method to set up of mobile terminal screen state and mobile terminal thereof
CN106233705A (en) * 2015-01-20 2016-12-14 华为技术有限公司 A kind of terminal control method and terminal
CN106339168A (en) * 2016-08-22 2017-01-18 北京小米移动软件有限公司 Screen control method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104767867A (en) * 2014-01-07 2015-07-08 中兴通讯股份有限公司 Automatic mobile phone sleep method and device
WO2015103840A1 (en) * 2014-01-07 2015-07-16 中兴通讯股份有限公司 Automatic sleep method, mobile terminal and computer storage medium
CN104090633A (en) * 2014-06-27 2014-10-08 文爱瑶 Mobile device protective cover and method for enabling touch screen mobile device to be in dormant state
CN106233705A (en) * 2015-01-20 2016-12-14 华为技术有限公司 A kind of terminal control method and terminal
CN104834497A (en) * 2015-05-15 2015-08-12 北京智膜科技有限公司 On screen display control method and controller
CN106101430A (en) * 2016-06-30 2016-11-09 维沃移动通信有限公司 The method to set up of mobile terminal screen state and mobile terminal thereof
CN106339168A (en) * 2016-08-22 2017-01-18 北京小米移动软件有限公司 Screen control method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111050278A (en) * 2019-12-27 2020-04-21 Tcl移动通信科技(宁波)有限公司 Card detection method, device and storage medium

Similar Documents

Publication Publication Date Title
KR102207206B1 (en) Electronic device for controlling display based on accessory device information, method thereof, and associated accessory device
CN109407871B (en) Method and device for identifying soaking state and electronic equipment
EP3627810B1 (en) Proximity detection method and apparatus, storage medium, and electronic device
CN107181559B (en) Processing method, device, storage medium and the terminal of radio frequency interference
CN103914208B (en) A kind of information processing method and electronic equipment
CN104732167A (en) Mobile terminal and detecting control method used for same
CN104640184A (en) Screen wake-up method and device
CN107194288A (en) The control method and terminal of display screen
KR20160106641A (en) System and method for host-augmented touch processing
CN106339168A (en) Screen control method and device
CN105404463A (en) Mobile terminal of touch screen and mistaken touch resistance method thereof
CN104468953A (en) An information processing method and electronic device
KR20160049671A (en) Method for controlling an operation and Electronic device using the same
CN104994657B (en) The brightness adjusting method and device of intelligent terminal flashlight
CN109032488A (en) Processing method, storage medium and the electronic equipment of blank screen gesture
CN104301461A (en) Method and device for detecting state of device leather case
CN103838497A (en) Screen black-out method and mobile terminal thereof
US9634517B2 (en) Battery charging mode selection
CN110032473A (en) Data guard method, device, electronic equipment and system
CN109690454B (en) Wearable device and operation method thereof
CN107040657B (en) Method and device for preventing touch screen from being triggered mistakenly
CN109862608A (en) A kind of mobile terminal protective case detection control method, mobile terminal and storage medium
CN113017591B (en) Wearable device wearing state detection method, wearable device wearing state detection device, wearable device wearing state detection equipment and storage medium
CN104252281A (en) Electronic apparatus and touch sensing method thereof
CN104460936A (en) Control method and electronic 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190607

RJ01 Rejection of invention patent application after publication