CN108702417A - Terminal control method and terminal - Google Patents

Terminal control method and terminal Download PDF

Info

Publication number
CN108702417A
CN108702417A CN201780012406.3A CN201780012406A CN108702417A CN 108702417 A CN108702417 A CN 108702417A CN 201780012406 A CN201780012406 A CN 201780012406A CN 108702417 A CN108702417 A CN 108702417A
Authority
CN
China
Prior art keywords
rule
terminal
optical sensor
intensity value
light intensity
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
CN201780012406.3A
Other languages
Chinese (zh)
Other versions
CN108702417B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN108702417A publication Critical patent/CN108702417A/en
Application granted granted Critical
Publication of CN108702417B publication Critical patent/CN108702417B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Telephone Function (AREA)

Abstract

The present invention provides a kind of terminal control method and terminals.This method includes:In the case where protective shell is in the open state, terminal carries out switch control with the first rule to light-emitting device, and when the changing rule for detecting the first light intensity value that optical sensor receives is consistent with the first rule, terminal executes the first operation;In the case where protective shell is in closed state; terminal carries out switch control with the second rule to light-emitting device; and when the changing rule and the second rule for detecting the second light intensity value that optical sensor receives are not met; terminal executes the second operation; wherein; protective shell is provided with light-strip, and light-strip covers the light-emitting device and optical sensor being arranged in terminal to protective shell in the closure state.The present invention also provides a kind of terminal control method and terminals.Control of the protective shell to terminal can be realized by light-emitting device and optical sensor not against Hall sensor in the method provided through the embodiment of the present invention, terminal.

Description

Terminal control method and terminal Technical field
The present invention relates to field of terminal technology more particularly to a kind of terminal control method and terminals.
Background technique
Currently, various terminals, such as smart phone, tablet computer have become essential communication, amusement, life tool in for people's lives.The auxiliary product of terminal such as protective shell is also widely used for terminal with the functions such as its shatter-resistant, scratch resistant, beautiful.Currently, effect of the protective shell of terminal in addition to can protect terminal, also has other miscellaneous functions, is such as controlled by protective shell terminal.For example, the screen locking function of protective shell: when user closes the protective shell of terminal, terminal screen locking;Leather sheath is opened in user, terminal wakes up screen, and then saves power consumption of terminal, and user-friendly.
The state for the magnetic field identification protecting shell that the magnet that existing protective shell is mainly the overturning lid for incuding leather sheath by the Hall sensor of terminal built-in to the control principle of terminal generates.However, part terminal deletes Hall sensor, and then can not achieve control of the protective shell to terminal to reduce cost, the thickness for reducing terminal etc..
Summary of the invention
The embodiment of the invention provides a kind of terminal control method and terminals, and control of the protective shell to terminal can be realized not against Hall sensor.
In a first aspect, the embodiment of the present invention provides a kind of terminal control method, comprising:
In the case where protective shell is in the open state, terminal carries out switch control to light emitting device with the first rule, and when the changing rule for detecting the first light intensity value that optical sensor receives is consistent with the first rule, terminal executes first and operates;
In the case where protective shell is in closed state, terminal carries out switch control to light emitting device with the second rule, and when the changing rule and the second rule for detecting the second light intensity value that optical sensor receives are not met, terminal executes second and operates;
Wherein, protective shell is provided with light-strip, and light-strip covers the light emitting device and optical sensor being arranged in terminal to protective shell in the closure state.
It can be seen that; terminal control method provided in an embodiment of the present invention is in the case where protective shell is in the open state; terminal carries out switch control to light emitting device with the first rule; and when the changing rule for detecting the first light intensity value that optical sensor receives is consistent with the first rule; illustrate that terminal detects the closed procedure of protective shell; executable first operation of terminal, such as sleep operation;In the case where protective shell is in closed state; terminal carries out switch control to light emitting device with the second rule; and when the changing rule and the second rule for detecting the second light intensity value that optical sensor receives are not met; illustrate that terminal detects the opening operation of protective shell; executable second operation of terminal; terminal control method provided in an embodiment of the present invention does not depend on Hall sensor; control of the protective shell to terminal can be realized by light emitting device and optical sensor; it avoids after user fastens protective shell, terminal continues to run program and increases energy consumption.
In one embodiment of the invention, in the case where protective shell is in the open state, terminal may is that terminal obtains light intensity value by optical sensor with a kind of embodiment that the first rule carries out switch control to light emitting device;When the variation that light intensity value is greater than the first Intensity threshold and detects the light intensity value got in moment T1 to moment T0 is greater than the second Intensity threshold, terminal carries out switch control N number of period to light emitting device with the first rule;N is positive integer;Moment T0 is current time, Before T1 is current time at the time of the first duration;
When the changing rule and the first rule for detecting light intensity value that optical sensor receives meet, a kind of embodiment that terminal executes the first operation may is that terminal executes first and operates when the changing rule and the first rule for detecting the first light intensity value that optical sensor receives meet.
It can be seen that; in the embodiment of the present invention; terminal is greater than the first Intensity threshold by detection light intensity value and identifies that the state of current protective shell is in an open state; the switch control of light emitting device is just carried out when the variation of light intensity value is greater than the second Intensity threshold; light emitting device is avoided frequently to shine in the open state in protective shell; the user of terminal is interfered, terminal energy consumption is further saved.
In one embodiment of the invention, this method can also include:
When light intensity value is not more than the first Intensity threshold, whether terminal detection receives user's operation in moment T0 to moment T2;Moment T0 be current time, T2 be current time after the second duration at the time of;
When terminal does not receive user's operation in moment T0 to moment T2, terminal carries out switch control N number of period to light emitting device with the first rule;
When the changing rule and the first rule for detecting the first light intensity value that shown optical sensor receives meet, terminal executes the first operation.
It can be seen that; the embodiment of the invention provides a kind of condition detection methods of protective shell under dark surrounds; when terminal is in dark surrounds; terminal is by detection user's operation come the state of identification protecting shell; i.e. when terminal detects user's operation, identification protecting shell is in the open state, when detecting that the no user operating time is greater than the second duration; triggering terminal carries out the switch control of light emitting device, and then detects whether to occur the closed procedure of protective shell.
In one embodiment of the invention, terminal may is that terminal carries out switch control N number of period to light emitting device with first frequency with a kind of embodiment that the first rule carries out switch control N number of period to light emitting device;
When the changing rule and the first rule for detecting the first light intensity value that optical sensor receives meet, a kind of embodiment that terminal executes the first operation may is that whether the change frequency for the first light intensity value that detection optical sensor receives is first frequency;When the change frequency for the first light intensity value that optical sensor receives is first frequency, terminal executes the first operation.
As it can be seen that terminal sends optical signal by control light emitting device with certain frequency, the optical signal that can avoid in the environment received with optical sensor is obscured, and the accuracy of state recognition of the terminal to protective shell can be improved.
In one embodiment of the invention, in the case where protective shell is in closed state, it includes: that terminal carries out switch control to light emitting device with second frequency that terminal, which carries out switch control to light emitting device with the second rule,;
When the changing rule and the second rule for detecting the second light intensity value that optical sensor receives are not met, it includes: to detect whether the change frequency for the second light intensity value that optical sensor receives is second frequency that terminal, which executes the second operation,;When the change frequency for the second light intensity value that optical sensor receives is second frequency, terminal executes the second operation.
As it can be seen that terminal sends optical signal by control light emitting device with certain frequency, the optical signal that can avoid in the environment received with optical sensor is obscured, and the accuracy of state recognition of the terminal to protective shell can be improved.
Second aspect, the embodiment of the invention also discloses a kind of terminal, the terminal includes functional module, and the functional module is for some or all of executing described in first aspect either method of the embodiment of the present invention step.
The third aspect, the embodiment of the invention also discloses a kind of terminal, the terminal includes: processor, memory, optical sensor, light emitting device and communication bus;The processor is connected to the memory, light sensing by the communication bus Device and light emitting device;
The processor is for calling the program code stored in the memory and data, step some or all of described in execution first aspect either method.
Fourth aspect, the embodiment of the invention also discloses a kind terminal control methods, comprising:
Terminal carries out switch control to light emitting device with the first rule;
The changing rule for detecting light intensity value that optical sensor receives from do not meet the first rule be changed into meet the first rule when, terminal executes the first operation;
The changing rule for detecting light intensity value that optical sensor receives from meet the first rule be changed into do not meet the first rule when, terminal executes the second operation;
Wherein, protective shell is provided with light-strip, and light-strip covers the light emitting device and optical sensor being arranged in terminal to protective shell in the closure state.
It can be seen that, terminal control method terminal provided in an embodiment of the present invention carries out switch control to light emitting device with the first rule, the changing rule for detecting light intensity value that optical sensor receives from do not meet the first rule be changed into meet the first rule when, terminal executes the first operation;The changing rule for detecting light intensity value that optical sensor receives from meet the first rule be changed into do not meet the first rule when, terminal executes the second operation.Terminal control method provided in an embodiment of the present invention does not depend on Hall sensor, and control of the protective shell to terminal can be realized by light emitting device and optical sensor, avoids after user fastens protective shell, and terminal continues to run program and increases energy consumption.
In one embodiment of the invention,
Terminal may is that terminal carries out switch control to light emitting device with first frequency with a kind of embodiment that the first rule carries out switch control to light emitting device;
The changing rule for detecting light intensity value that optical sensor receives from do not meet the first rule be changed into meet the first rule when, terminal, which executes first and operates a kind of embodiment, may is that terminal executes the first operation when the frequency for detecting light intensity value that optical sensor receives is changed into first frequency from non-first frequency;
The variation for detecting light intensity value that optical sensor receives from meet the first rule be changed into do not meet the first rule when, terminal, which executes second and operates a kind of embodiment, may is that terminal executes the second operation when the frequency for detecting light intensity value that optical sensor receives is changed into non-first frequency from first frequency.
As it can be seen that terminal sends optical signal by control light emitting device with certain frequency, the optical signal that can avoid in the environment received with optical sensor is obscured, and the accuracy of state recognition of the terminal to protective shell can be improved.
5th aspect, the embodiment of the invention also discloses a kind of terminal, the terminal includes functional module, and the functional module is for some or all of executing described in fourth aspect either method of the embodiment of the present invention step.
6th aspect, the embodiment of the invention also discloses a kind of terminal, the terminal includes: processor, memory, optical sensor, light emitting device and communication bus;The processor is connected to the memory, optical sensor and light emitting device by the communication bus;
The processor is for calling the program code stored in the memory and data, step some or all of described in execution fourth aspect either method.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, the drawings to be used in the description of the embodiments or prior art will be briefly described below.
Fig. 1 is the main view of protective shell provided in an embodiment of the present invention terminal and protective shell in the open state;
Fig. 2 is a kind of schematic cross sectional view of light-strip working principle provided in an embodiment of the present invention;
Fig. 3 is the schematic cross sectional view of another light-strip working principle provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of the set-up mode of light-strip provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of the set-up mode of another light-strip provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention;
Fig. 7 is a kind of terminal control method provided in an embodiment of the present invention;
Fig. 8 is another terminal control method provided in an embodiment of the present invention;
Fig. 9 is the detection schematic diagram of the changing rule of the first light intensity value provided in an embodiment of the present invention;
Figure 10 is the flow diagram of another terminal control method provided in an embodiment of the present invention;
Figure 11 is another terminal structure schematic diagram provided in an embodiment of the present invention;
Figure 12 is another terminal structure schematic diagram provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, every other embodiment obtained by those of ordinary skill in the art without making creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is the main view of protective shell provided in an embodiment of the present invention terminal and protective shell in the open state.Each embodiment of terminal control method of the present invention can be implemented based on the system that terminal 11 is formed with protective shell 12.Wherein, terminal 11 may include light emitting device 111 and optical sensor 112;Protective shell 12 may include: the base plate 121 and overturning lid 122 for fixed terminal.Optionally, base plate 121 and overturning lid 122 can be structure as a whole.Light-strip 1221 is equipped in overturning lid 122 position corresponding with light emitting device 111 and optical sensor 112.When protective shell, which is in, closes state, light-strip 1221 covers the light emitting device 111 and optical sensor 112 in terminal 11, so that the light that light emitting device 111 issues propagates to optical sensor 112 by the light-strip 1221.Light emitting device 111 can be indicator light, infrared light-emitting diode, laser etc. for issuing visible light, infrared light, ultraviolet light etc..Optical sensor 112 can also be handled the optical signal received for receiving external optical signals.
In the embodiment of the application, the optical transport for emitting light emitting device by light-strip can be realized to optical sensor by the principle of mirror-reflection.Referring to Fig. 2, Fig. 2 is a kind of schematic cross sectional view of light-strip working principle provided in an embodiment of the present invention.When protective shell in the closure state, protective shell 122 is covered in the top of terminal 11, overturns light emitting device 111 and optical sensor 112 that the light-strip 1221 on lid 122 covers terminal 11.Light-strip 1221 can be made of optical material (such as glass, transparent resin material, transparent polymer material etc.).Light-strip 1221 is platform prismatoid, and the first side 12211 and second side 12212 of light-strip 1221 include reflecting layer, and the material in the reflecting layer can be metallic film.The angle at 45 ° of third side 12213 of first side 12211 and second side 12212 and light-strip, and in the case where protective shell is in closed state, first side 12211 and second side 12212 are located at the upper of light emitting device 111 and optical sensor 112 Side.It is appreciated that working as protective shell in the closure state, the light that light emitting device 111 emits is sent to optical sensor 112, the propagation path of light as shown in phantom in Figure 2 respectively after the reflection of first side 12211 and second side 12212.
In another embodiment of the application, the optical transport for emitting light emitting device by light-strip can be realized to optical sensor by the principle of diffusing reflection or total reflection.Referring to Fig. 3, Fig. 3 is the schematic cross sectional view of another light-strip working principle provided in an embodiment of the present invention.When protective shell in the closure state, the covering 122 of protective shell above terminal 11, overturn lid 122 on light-strip 1221 cover terminal 11 light emitting device 111 and optical sensor 112.Light-strip 1221 can be rectangular parallelepiped structure or column structure, light-strip 1221 may include first material layer 12211 and second material layer 12212, wherein, 12212 part of second material layer covers first material layer 12211, and second material layer 12212 opens up the first perforation 122121 and the second perforation 122122 relative to the position of light emitting device 111 and optical sensor 112.First material layer 12211 can be to be made of optical material (such as glass, transparent resin material, transparent polymer material etc.), and second material layer 12212 can be the coating being made of non-optical material, such as metal coating, polymeric coating layer etc..It is appreciated that working as protective shell in the closure state, the light that light emitting device 111 emits is sent to optical sensor 112 after the reflection of second material layer 12212.
Optionally, light-strip 1221 can be optical fiber, and first material layer 12211 forms fibre core, and second material layer 12212 forms covering.It is appreciated that the refractive index of first material layer 12211 is greater than the refractive index of second material layer 12212.It is appreciated that working as protective shell in the closure state, the light that light emitting device 111 emits is totally reflected in the interface of first material layer 12211 and second material layer 12212, is sent to optical sensor 112 by fibre core.
Wherein, d1 > 0, d2 > 0, d3 > 0, d4 > 0, L > d1+d2+d3+d4.It is understood that; in protective shell after being used for a long time; abrasion, aging etc. may occur; at this point, protective shell in close state when, overturning lid 122 cover terminal when slight dislocation may occur; it can be guaranteed by the way that the size of d1, d2, d3, d4 is arranged; for protective shell in the closure state, the first perforation 122121 and the second perforation 122122 are located at the top of light emitting device 111 and optical sensor 112, and the light that light emitting device 111 is emitted is transmitted to optical sensor 112.
It should be noted that Fig. 2 or light-strip shown in Fig. 3 can be embedded in overturning lid or be embedded in overturning lid.Please refer to Fig. 4 and Fig. 5.
Fig. 4 is a kind of structural schematic diagram of the set-up mode of light-strip provided in an embodiment of the present invention.Light-strip 401 is embedded in overturning lid 402, and light-strip can play the role of decoration.
Fig. 5 is the structural schematic diagram of the set-up mode of another light-strip provided in an embodiment of the present invention.Light-strip 401 is embedded in overturning lid 402.
It should also be noted that, terminal may include at least two light emitting devices, such as the first indicator light, the second indicator light, wherein the method for controlling mobile terminal that the first indicator light is used to that optical sensor to be cooperated to realize each embodiment description in the application.Second indicator light can serve to indicate that electricity, information, missed call etc..It is appreciated that working as protective shell in the closure state, light-strip covers the first indicator light, and does not cover the second indicator light, so that the light of the second indicator light transmitting does not influence identification of the terminal to the state of protective shell.
It should also be noted that, light emitting device can emit the light of different wavelength, pass through the different suggestion content of the user of the light prompt terminal of different wave length.For example, indicator light is displayed in red the remaining capacity of instruction terminal less than 10%;Indicator light display green indicates that terminal receives new information or has missed call;Light for the sending of the indicator light of terminal control method in the application can be the light different from above-mentioned wavelength, for example, non-visible light (such as infrared light), to avoid the function and purposes generation entanglement with indicator light in the prior art.
Referring to Fig. 6, Fig. 6 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.The terminal includes at least one A processor 610, memory 620, input equipment 630, output equipment 640 and communication module 650, processor can connect memory 620, input equipment 630, output equipment 640 and communication module 650 by communication bus 660.Input equipment 630 includes optical sensor 6301.Output equipment 640 may include light emitting device 6401.
Wherein, processor 610 is the control centre of terminal, utilize the various pieces of various interfaces and the entire terminal of connection, by running or executing the computer program being stored in memory 620 and/or module, and call the data being stored in memory 620, the various functions and processing data for executing terminal, to carry out integral monitoring to terminal.Optionally, processor 610 may include one or more processing cores;Preferably, processor 610 can integrate application processor and modem processor, wherein the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 610.
Memory 620 can be used for storing computer program and module, and processor 610 is stored in the computer program and module of memory 620 by operation, thereby executing various function application and data processing.Memory 620 can mainly include storing program area and storage data area, wherein storing program area can application program (such as sound-playing function, image player function etc.) needed for storage program area, at least one function etc.;Storage data area, which can be stored, uses created data (such as parking lot map described in the embodiment of the present invention, geographical location etc.) etc. according to terminal.In addition, memory 620 may include high-speed random access memory, it can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 620 can also include Memory Controller, to provide the access of processor 610 and input equipment 630 to memory 620.
Input equipment 630 can be used for receiving the number or character information of input, and generate keyboard related with user setting and function control, mouse, operating stick, optics or trackball signal input.Input equipment 630 includes optical sensor 6301, and optical sensor 6301 is used to obtain the optical signal in environment, realizes the terminal control method of various embodiments of the present invention description.Input equipment 630 may also include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display panel or Trackpad, the touch operation (for example user uses the operations of any suitable object or attachment on touch sensitive surface or near touch sensitive surface such as finger, stylus) of collectable user on it or nearby, and corresponding attachment device is driven according to preset formula.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 610, and can receive order that processor 610 is sent and be executed.Furthermore, it is possible to realize touch sensitive surface using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch sensitive surface, input equipment 630 can also include other input equipments.Specifically, other input equipments 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. or a variety of.
Input equipment 630 may also include other sensors or device, such as at least one of gyro sensor, acceleration transducer, gravity sensor, imaging sensor, distance detection device etc., wherein, gyro sensor is used to detect the information of the moving direction of terminal;Acceleration transducer is used to detect the change information of the movement speed of terminal;Distance detection device can be laser ranging system, sound ranging device, image range unit etc., can be used to detect the present embodiments relate to distance value etc.;As for the other sensors that terminal can also configure, details are not described herein again.
Output equipment 640 can be used for showing information input by user or be supplied to the information of user and the various graphic user interfaces (for example motion track display interface described in the embodiment of the present invention is set) of terminal, these graphic user interfaces can be made of figure, text, icon, video and any combination thereof.Output equipment 640 may include light emitting device 6401 and Display panel etc., light emitting device 6401 can be indicator light, infrared light-emitting diode, laser etc..Optionally, display panel can be configured using forms such as liquid crystal display (English: liquid crystal display, LCD), Organic Light Emitting Diodes (English: organic light-emitting diode, OLED).Further, touch sensitive surface can cover display panel, after touch sensitive surface detects touch operation on it or nearby, processor 610 is sent to determine the type of touch event, is followed by subsequent processing device 610 according to the type of touch event and corresponding visual output is provided on a display panel.Touch sensitive surface and display panel can be used as two independent components to realize input and input function, but in some embodiments it is possible to touch sensitive surface and display panel are integrated and realizes and outputs and inputs function.
Optionally, terminal can also include communication module 650, which makes terminal by the communication channel to be connected to Correspondent Node, and pass through the communication channel and the Correspondent Node interaction data for establishing communication channel.Communication module may include bluetooth module, NFC module, mobile communication module, WiFi module, locating module (such as GPS module).Terminal can help user to send and receive e-mail by communication module 650, browse webpage and access streaming video etc..
It should be noted that, although Fig. 6 shows communication module 650, but it is understood that, and it is not belonging to must be configured into for terminal, it can according to need within the scope of not changing the essence of the invention and omit completely.
Specifically in embodiments of the present invention, the program code that processor 610 is used to that memory 620 (nonvolatile memory) to be called to store executes step of the embodiment of the present invention:
Processor 610 in above-mentioned terminal can couple at least one processor 620, and the executable program code in at least one processor 620 can be called to execute Fig. 7, Fig. 8 disclosed by the embodiments of the present invention and terminal processing method shown in Fig. 10.Terminal control method provided in an embodiment of the present invention is discussed in detail below.
Referring to Fig. 7, Fig. 7 is a kind of terminal control method provided in an embodiment of the present invention.
Step S100: the current state of terminal detection protective shell.
Specifically, the state of protective shell includes opening state and closed state, and when the current state of terminal detection protective shell is in an open state, terminal can execute step S200 and step S300;When the current state of terminal detection protective shell is closed state, terminal can execute step S400 and step S500.
Referring to Fig. 8, Fig. 8 is another terminal control method provided in an embodiment of the present invention.Wherein, a kind of embodiment of the current state of detection of electrons protective shell may include: step S101, S102, S103, S104, S105 etc..
Step S101: terminal obtains light intensity value by optical sensor.
It is appreciated that the luminous energy in the available environment of optical sensor, and luminous energy is converted to electric signal, to obtain light intensity value.
Step S102: terminal judges whether light intensity value is greater than the first Intensity threshold.
Specifically, in the case that light is sufficient in the environment, terminal is far longer than the light intensity value detected when protective shell is respectively at closed state by light sensing by the light intensity value that light sensing detects when protective shell is respectively at opening state.And in the environment in the insufficient situation of light, the light intensity value that terminal is detected when protective shell is respectively at opening state and closed state by light sensing is all smaller.First Intensity threshold is not less than in environment light abundance and protective shell is under closed state terminal and obtains light intensity value by optical sensor.
When light intensity value is greater than the first Intensity threshold, then illustrates that protective shell is in the open state and light is sufficient in current environment, terminal can execute step S103;When light intensity value is not more than the first Intensity threshold, then illustrate that protective shell is in closed state, or illustrate that protective shell is in the open state and gauge without light source or light are inadequate in current environment, terminal can execute step S104.
Step S103: whether the variation of the light intensity value got in terminal detection moment T1 to moment T0 is greater than the second light intensity threshold Value.
Wherein, moment T0 is current time, before T1 is the current time at the time of the first duration.First duration can be 0.5s, 1s or 2s etc..
In the environment when light abundance; when the slave opening state of protective shell is changed into closed state; the light intensity value that terminal detects in the state transition times of protective shell can send strong fluctuation, that is to say, that the variation of the light intensity value got in the period is greater than the second Intensity threshold.Wherein, which can be that light in the environment is sufficient and the protective shell minimum light intensity values that terminal obtains in the open state are sufficient with light in the environment and the difference of the protective shell largest light intensity value of terminal acquisition in the closure state.
If detecting, the variation of light intensity value is greater than the second Intensity threshold, and it is inadequate to illustrate that the optical sensor for having shelter to block terminal or environment from light abundance are changed into light; the shelter may be the hand of user; it is also likely to be the overturning lid of protective shell, at this point, terminal can execute step 200;If detecting the variation of light intensity value no more than the second Intensity threshold, big variation does not occur for the state of protective shell, and terminal can execute step S101, obtains light intensity value again through optical sensor.
Step S104: whether terminal detection receives user's operation in moment T0 to moment T2.
Specifically, in the case where terminal receives user's operation, protective shell is in the open state;When terminal does not receive user's operation, terminal, which is likely to be at opening state, may also be in closed state.Terminal can monitor user's operation in real time, when terminal detection is not receive user's operation in moment T0 to moment T2, can execute step S200 with triggering terminal.
Wherein, moment T0 is current time, and T2 is at the time of the second duration, which can be 5s, 10s, 16s etc. after current time.Second duration can be less than terminal setting into auto sleep without operation response time.User's operation can be user by the operation of the inputs such as keyboard, mouse, key, touch screen, remote controler, such as the clicking operation of target is directed on the touch screen of terminal.
When terminal detection receives user's operation in moment T0 to moment T2, then it is assumed that for user in using terminal, the protective shell of terminal is in the open state, at this point, terminal can execute step S101, can continue to execute step S104;When terminal detection does not receive user's operation in moment T0 to moment T2, then it is assumed that user stops the operation to terminal, and user may execute closed procedure to protective shell, at this point, terminal can execute step S200, further verifies whether protective shell has been closed.
It is appreciated that terminal can also identify by other device or method or assist in identifying the current state of protective shell.Such as; terminal may include pressure sensor; when the protective shell of terminal, which is in, closes state; the pressure sensor can detecte the pressure information that the overturning lid of protective shell is generated due to covering the pressure sensor; when terminal detects that pressure information is greater than preset pressure threshold value by pressure sensor, then identification protecting shell is in closed state;Otherwise, protective shell is in the open state.
For another example terminal may include being set to the distance detection device of terminal front side, the object distance right above terminal can be detected by distance detection device.When protective shell, which is in, closes state, overturning covers tightly patch distance detection device, and the distance value that terminal detects is far smaller than in the protective shell distance value that distance detection device detects in the open state.When the distance value that distance detection device detects is less than pre-determined distance threshold value, for example when 1cm, then identification protecting shell is in closed state;Otherwise, protective shell is in the open state.
In another example terminal can also pass through the current state of Hall sensor identification protecting shell.
Step S200: terminal carries out switch control to light emitting device with the first rule, and whether the changing rule of the first light intensity value that detection optical sensor receives is consistent with first rule.
Specifically, it may refer to the guide-lighting principle of light-strip in Fig. 2 or protective shell shown in Fig. 3, it is seen then that at protective shell When opening state, the light almost all of light emitting device transmitting is diffused in ambient enviroment, and the light that can be captured by optical sensor is seldom, is not enough to show the information that light emitting device regularity is opened and closure is entrained;Only protective shell in the closure state, what optical sensor can just detect the first light intensity value regularity variation or the changing rule of the first light intensity value that is consistent with the first rule.
First rule can be the rule that terminal is formed by the opening time and shut-in time of control light emitting device.First rule, which can be, has periodic switch control, such as open instruction lamp, after 1s, closes indicator light, and indicator light is then turned on after 2s, and the switch control of light emitting device is carried out as the period.
Such as, please refer to Fig. 9, Fig. 9 is the detection schematic diagram of the changing rule of the first light intensity value provided in an embodiment of the present invention, first rule as shown in square wave 901 can be presented in terminal to the carry out switch control of light emitting device, wherein, high level indicates that light emitting device is in the open state, and low level indicates that light emitting device is in close state.It is appreciated that the square wave has certain frequency, duty ratio etc..
Protective shell in the closure state, the first light intensity value that optical sensor receives is formed by image as shown in waveform 902.First aspect, whether terminal can be the regular waveform changed by analysis waveform 902, than such as whether when waveform 902 is the waveform of regularity variation, then the changing rule for the first light intensity value that optical sensor receives is consistent with first rule comprising specific frequency.Second aspect, terminal can pass through the frequency of analysis waveform 902, when equal or difference is less than preset threshold (such as 1Hz etc.) to the frequency of waveform 902 with the frequency of square wave 901, then the changing rule for the first light intensity value that optical sensor receives is consistent with first rule.The third aspect, terminal can calculate the duty ratio of waveform 902 and the duty ratio of square wave 901, when the difference of the duty ratio of the duty ratio and square wave 901 of waveform 902 is less than preset threshold, for example when 0.05, then the changing rule for the first light intensity value that optical sensor receives is consistent with first rule.Fourth aspect, the filtering processing that terminal can carry out waveform 902, after being such as compared operation, form waveform 903, it is whether equal by the frequency for comparing square wave 901 and waveform 903, or whether the difference of the duty ratio of square wave 901 and waveform 903 is less than preset threshold, determines whether the changing rule for the first light intensity value that sensor receives is consistent with first rule, reference can be made to associated description in above-mentioned second aspect and the third aspect.
It is understood that; when terminal is placed on user's pocket; or in the vehicle of traveling; since the regularity of user is walked about or the regularity of vehicle is jolted, protective shell opens and closes in which may be constantly occurring low-angle, and terminal can also detect the regularity variation of the first light intensity value at this time; at this time; whether can be consistent with the first rule by the frequency or duty ratio for further judging the first light intensity value, if it is, the changing rule for the first light intensity value that optical sensor receives is consistent with first rule.
It is appreciated that working as protective shell in the open state, in step S200, terminal can carry out the switch control in 1 period to light emitting device, can also carry out the switch control in multiple periods.
When the changing rule for the first light intensity value that optical sensor receives is consistent with first rule, protective shell enters closed state, and terminal can execute step S300;No person, protective shell is in the open state, and terminal can execute step S100, S101 or S104, terminal can also monitor terminal without operation duration be more than terminal setting into auto sleep without operation response time when, controlling terminal enters dormant state.
Step S300: terminal executes the first operation.
Specifically, when the changing rule for detecting the first light intensity value that optical sensor receives is consistent with the first rule, then terminal detects the closed procedure of protective shell, and terminal can execute the first operation.First operation can be sleep operation or breath screen operation, to reduce the energy consumption of terminal.
Step S400: terminal carries out switch control to light emitting device with the second rule, and detection optical sensor receive the Whether the changing rule of two light intensity values is consistent with the second rule.
Specifically; when terminal recognition protective shell in the closure state; terminal can carry out switch control to light emitting device with the second rule; wherein; the testing principle of the changing rule of description and the second light intensity value as described in the second rule; can be respectively referring to the description in step S200 about the first rule and the testing principle of the changing rule of the first light intensity value, the application is not repeating.Second rule can be identical as the first rule or different with the first rule, i.e., frequency, duty ratio that frequency, duty ratio that the second rule is included etc. can be included with the first rule etc. is identical or different.
It is appreciated that terminal constantly carries out switch control to light emitting device with the second rule until terminal detects that the changing rule of the second light intensity value does not meet the second rule, at this point, terminal can execute step S500.
Step 500: terminal executes the second operation.
Specifically, when the changing rule and the second rule for detecting the second light intensity value that optical sensor receives are not met, then terminal detects that the opening operation of protective shell, terminal can execute the second operation.Second operation can be wake-up system, be also possible to screen wake operation.
Step S600: terminal closes light emitting device.
It is appreciated that terminal is while execution second operates or later, terminal can close light emitting device, and execute step S101, and the shadow for avoiding light emitting device from emitting rings the identification to protective shell state.
In the embodiment of the present application; in the case where protective shell is in the open state; terminal carries out switch control to light emitting device with the first rule, and when the changing rule for detecting the first light intensity value that optical sensor receives is consistent with the first rule, terminal executes first and operates;In the case where protective shell is in closed state; terminal carries out switch control to light emitting device with the second rule; and when the changing rule and the second rule for detecting the second light intensity value that optical sensor receives are not met, terminal executes the second operation, and then realizes control of the protective shell to terminal.
Moreover, terminal sends optical signal by control light emitting device with certain rule, the optical signal that can avoid in the environment received with optical sensor is obscured, and improves terminal to the accuracy of the state recognition of protective shell.
Referring to Fig. 10, Figure 10 is the flow diagram of another terminal control method provided in an embodiment of the present invention, which may include:
Step S1010: terminal carries out switch control to light emitting device with the first rule.
Specifically; it may refer to the guide-lighting principle of light-strip in Fig. 2 or protective shell shown in Fig. 3; it can be seen that; protective shell in the open state; the light almost all of light emitting device transmitting diffuses in ambient enviroment; the light that can be captured by optical sensor is seldom, is not enough to show the information that light emitting device regularity is opened and closure is entrained;Only protective shell in the closure state, what optical sensor can just detect the first light intensity value regularity variation or the changing rule of the first light intensity value that is consistent with the first rule.
Terminal can carry out switch control to light emitting device with the first rule always.The description as described in the first rule may refer to the description as described in the first rule, the application in embodiment of the method step S200 shown in Fig. 7 and not repeat.
Step S1020: the changing rule for detecting light intensity value that optical sensor receives from do not meet the first rule be changed into meet the first rule when, terminal executes the first operation.
The testing principle of the changing rule of light intensity value may refer to the associated description in Fig. 7 or embodiment of the method step S200 shown in Fig. 8 about the testing principle of the changing rule of the first light intensity value, and the present invention is not repeating.
It is appreciated that the changing rule for the light intensity value that terminal real-time detection optical sensor receives.It is currently received in optical sensor To light intensity value changing rule do not meet first rule when, then protective shell is currently at opening state;When the changing rule for the light intensity value that optical sensor is currently received meets the first rule, then protective shell is currently at opening state.
When detect the changing rule of light intensity value that optical sensor receives from do not meet the first rule be changed into meet the first rule when; then illustrate that protective shell is changed into closed state from opening state; the closed procedure for protective shell is detected, at this point, terminal can execute the first operation.First operation can be sleep operation, to reduce the energy consumption of terminal.
For example, for terminal when the frequency for detecting light intensity value that optical sensor receives is changed into first frequency from non-first frequency, terminal can execute the first operation when terminal carries out switch control to light emitting device with first frequency.
Step S1030: the changing rule for detecting light intensity value that optical sensor receives from meet the first rule be changed into do not meet the first rule when, terminal executes the second operation.
When detect the changing rule of light intensity value that optical sensor receives from meet the first rule be changed into do not meet the first rule when; then illustrate that protective shell is in an open state from closed state transformation; the opening operation for being directed to protective shell is detected, at this point, terminal can execute the second operation.Second operation can be wake-up system.
For example, for terminal when the frequency for detecting light intensity value that optical sensor receives is changed into non-first frequency from first frequency, terminal can execute the second operation when terminal carries out switch control to light emitting device with first frequency.
In the embodiment of the present application, terminal carries out switch control to light emitting device with the first rule, the changing rule for detecting light intensity value that optical sensor receives from do not meet the first rule be changed into meet the first rule when, terminal executes the first operation;The changing rule for detecting light intensity value that optical sensor receives from meet the first rule be changed into do not meet the first rule when, terminal executes the second operation, to realize control of the protective shell to terminal.
Moreover, terminal sends optical signal by control light emitting device with certain rule, the optical signal that can avoid in the environment received with optical sensor is obscured, and improves terminal to the accuracy of the state recognition of protective shell.
It should also be noted that, in Fig. 7, Fig. 8 and embodiment of the method shown in Fig. 10, terminal may include display screen, and the first operation can be the operation of breath screen, and the second operation can be screen wake operation in the application;First operation can also be that screen locking operates, and the second operation can be unlock operation or enter the operation etc. of unlock interface;First operation is also possible to the shutoff operation for specified application, and the second operation can be the opening operation for specified application, such as the operation of exiting that the first operation is Facebook, the register that the second operation is Facebook;First operation is also possible to power-off operation, and the second operation can be power-on operation;When there is incoming call, the first operation is also possible to the operation of hanging up to current call, and the second operation, which can be, answers operation to current call;When current display interface is the display interface of Video Applications, the first operation can be the play operation for current display video for the pausing operation of current display video, the second operation.First operation and the second operation can also be other operations, and the application repeats no more.
Figure 11 is please referred to, Figure 11 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.The terminal may include:
Detection unit 1101, for detecting the current state of protective shell;
Control unit 1102, for carrying out switch control to light emitting device with the first rule in the case where the protective shell is in the open state;
Processing unit 1103, in the case where the protective shell is in the open state and when the changing rule for detecting the first light intensity value that optical sensor receives is consistent with first rule, the terminal to execute the first operation;
Described control unit 1102 is also used to: in the case where the protective shell is in closed state, carrying out switch control to light emitting device with the second rule;
The processing unit 1103 is also used to: in the case where the protective shell is in closed state and when the changing rule and second rule for detecting the second light intensity value that optical sensor receives are not met, the terminal executes the second operation;
Wherein, protective shell is provided with light-strip, and light-strip covers the light emitting device and optical sensor being arranged in terminal to protective shell in the closure state.
Optionally, the processing unit 1103 is also used to: obtaining light intensity value by optical sensor;
Described control unit 1102 is also used to: when the variation that the light intensity value is greater than the first Intensity threshold and detects the light intensity value got in moment T1 to moment T0 is greater than the second Intensity threshold, carrying out switch control N number of period to light emitting device with the first rule;N is positive integer;The moment T0 is current time, before the T1 is the current time at the time of the first duration;
The processing unit 1103 is also used to: when the changing rule and first rule for detecting the first light intensity value that the optical sensor receives meet, executing the first operation.
Optionally, the processing unit 1103 is also used to: when the light intensity value is not more than first Intensity threshold, whether detection receives user's operation in moment T0 to moment T2;The moment T0 be current time, the T2 be the current time after the second duration at the time of;
When not receiving user's operation in moment T0 to moment T2, triggering described control unit executes described regular to light emitting device progress switch control N number of period with first;
When the changing rule and first rule for detecting the first light intensity value that shown optical sensor receives meet, the first operation is executed.
Optionally, the processing unit 1103 executes that described to carry out switch control N number of period to light emitting device with the first rule include: to carry out switch control N number of period to light emitting device with first frequency;
The processing unit 1103 executes described when the changing rule for detecting the first light intensity value that the optical sensor receives and first rule meet, and whether it is the first frequency that execute the first operation include: the change frequency of the first light intensity value that the detection optical sensor receives;When the change frequency for the first light intensity value that the optical sensor receives is the first frequency, the first operation is executed.
Optionally, the processing unit 1103 executes that described to carry out switch control to light emitting device with the second rule include: to carry out switch control to light emitting device with second frequency;
The processing unit 1103 executes described when the changing rule for detecting the second light intensity value that optical sensor receives and second rule are not met, and executing the second operation includes: to detect whether the change frequency for the second light intensity value that optical sensor receives is the second frequency;When the change frequency for the second light intensity value that the optical sensor receives is the second frequency, the second operation is executed.
In the embodiment of the present application; in the case where protective shell is in the open state; terminal carries out switch control to light emitting device with the first rule, and when the changing rule for detecting the first light intensity value that optical sensor receives is consistent with the first rule, terminal executes first and operates;In the case where protective shell is in closed state; terminal carries out switch control to light emitting device with the second rule; and when the changing rule and the second rule for detecting the second light intensity value that optical sensor receives are not met, terminal executes the second operation, and then realizes control of the protective shell to terminal.
Moreover, terminal sends optical signal by control light emitting device with certain frequency, the optical signal that can avoid in the environment received with optical sensor is obscured, and the accuracy of state recognition of the terminal to protective shell can be improved.
Figure 12 is please referred to, Figure 12 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.The terminal may include:
Control unit 1201, for carrying out switch control to light emitting device with the first rule;
Processing unit 1202, for the changing rule for detecting light intensity value that optical sensor receives from do not meet first rule be changed into meet first rule when, execute the first operation;And
The changing rule for detecting light intensity value that optical sensor receives from meet first rule be changed into do not meet first rule when, execute the second operation;
Wherein, protective shell is provided with light-strip, and light-strip covers the light emitting device and optical sensor being arranged in terminal to protective shell in the closure state.
Optionally,
Described control unit 1201 is specifically used for: terminal carries out switch control to light emitting device with first frequency;
The processing unit 1202 execute it is described the changing rule for detecting light intensity value that optical sensor receives from do not meet first rule be changed into meet first rule when, executing the first operation includes: to execute the first operation when the frequency for detecting light intensity value that optical sensor receives is changed into the first frequency from non-first frequency;
The processing unit 1202 execute it is described the variation for detecting light intensity value that optical sensor receives from meet first rule be changed into do not meet first rule when, it includes: to execute the second operation when the frequency for detecting light intensity value that optical sensor receives is changed into non-first frequency from the first frequency that the terminal, which executes the second operation,.
In the embodiment of the present application, terminal carries out switch control to light emitting device with the first rule, the changing rule for detecting light intensity value that optical sensor receives from do not meet the first rule be changed into meet the first rule when, terminal executes the first operation;The changing rule for detecting light intensity value that optical sensor receives from meet the first rule be changed into do not meet the first rule when, terminal executes the second operation, to realize control of the protective shell to terminal.
Moreover, terminal sends optical signal by control light emitting device with certain rule, the optical signal that can avoid in the environment received with optical sensor is obscured, and improves terminal to the accuracy of the state recognition of protective shell.
Technical term used in the embodiment of the present invention is merely to illustrate specific embodiment and is not intended to be limiting the present invention.Herein, singular " one ", "the" and " described " for simultaneously including plural form, unless clearly being explained separately in context.Further, refer to that there are the feature, entirety, step, operation, element and/or components for " include " and or " include " used in the description, but it is not excluded that in the presence of or increase one or more of the other feature, entirety, step, operation, element and/or component.
The equivalent form (if present) of counter structure, material, movement and all devices or step and function element is intended to include any structure, material or the movement that the element being distinctly claimed in conjunction with other is used to execute the function in the following claims.Description of the invention for embodiment and the purpose of description are presented, but be not intended to exhaustion or will be limited in disclosed form by invention.

Claims (21)

  1. A kind of terminal control method characterized by comprising
    In the case where protective shell is in the open state, terminal carries out switch control to light emitting device with the first rule, and when the changing rule for detecting the first light intensity value that optical sensor receives is consistent with first rule, the terminal executes first and operates;
    In the case where protective shell is in closed state, terminal carries out switch control to light emitting device with the second rule, and when the changing rule and second rule for detecting the second light intensity value that optical sensor receives are not met, the terminal executes the second operation;
    Wherein, the protective shell is provided with light-strip, and the light-strip covers the light emitting device and the optical sensor being arranged in the terminal to the protective shell in the closure state.
  2. The method as described in claim 1, which is characterized in that
    It is described in the case where protective shell is in the open state, terminal with first rule to light emitting device carry out switch control include: that terminal obtains light intensity value by optical sensor;When the variation that the light intensity value is greater than the first Intensity threshold and detects the light intensity value got in moment T1 to moment T0 is greater than the second Intensity threshold, the terminal carries out switch control N number of period to light emitting device with the first rule;N is positive integer;The moment T0 is current time, before the T1 is the current time at the time of the first duration;
    It is described when the changing rule for detecting light intensity value that optical sensor receives and first rule meet, it includes: when the changing rule and first rule for detecting the first light intensity value that the optical sensor receives meet that the terminal, which executes the first operation, and the terminal executes the first operation.
  3. Method according to claim 2, which is characterized in that the method also includes:
    When the light intensity value is not more than first Intensity threshold, whether the terminal detection receives user's operation in moment T0 to moment T2;The moment T0 be current time, the T2 be the current time after the second duration at the time of;
    When the terminal does not receive user's operation in moment T0 to moment T2, the terminal carries out switch control N number of period to light emitting device with the first rule;
    When the changing rule and first rule for detecting the first light intensity value that shown optical sensor receives meet, the terminal executes the first operation.
  4. Method as claimed in claim 2 or claim 3, which is characterized in that
    The terminal includes: that the terminal carries out switch control N number of period to light emitting device with first frequency to light emitting device progress switch control N number of period with the first rule;
    It is described when the changing rule for detecting the first light intensity value that the optical sensor receives and first rule meet, whether it include: the change frequency of the first light intensity value that the detection optical sensor receives is the first frequency that the terminal executes the first operation;When the change frequency for the first light intensity value that the optical sensor receives is the first frequency, the terminal executes the first operation.
  5. Method as described in claim 1-4 any claim, which is characterized in that
    In the case where protective shell is in closed state, it includes: that the terminal carries out switch control to light emitting device with second frequency that the terminal, which carries out switch control to light emitting device with the second rule,;
    It is described when the changing rule for detecting the second light intensity value that optical sensor receives and second rule are not met, it includes: to detect whether the change frequency for the second light intensity value that optical sensor receives is the second frequency that the terminal, which executes the second operation,;When the change frequency for the second light intensity value that the optical sensor receives is the second frequency, the terminal executes the second operation.
  6. A kind of terminal characterized by comprising
    Detection unit, for detecting the current state of protective shell;
    Control unit, for carrying out switch control to light emitting device with the first rule in the case where the protective shell is in the open state;
    Processing unit, in the case where the protective shell is in the open state and when the changing rule for detecting the first light intensity value that optical sensor receives is consistent with first rule, the terminal to execute the first operation;
    Described control unit is also used to: in the case where the protective shell is in closed state, carrying out switch control to light emitting device with the second rule;
    The processing unit is also used to: in the case where the protective shell is in closed state and when the changing rule and second rule for detecting the second light intensity value that optical sensor receives are not met, the terminal executes the second operation;
    Wherein, the protective shell is provided with light-strip, and the light-strip covers the light emitting device and the optical sensor being arranged in the terminal to the protective shell in the closure state.
  7. Terminal as claimed in claim 6, which is characterized in that
    The processing unit is also used to: obtaining light intensity value by optical sensor;
    Described control unit is also used to: when the variation that the light intensity value is greater than the first Intensity threshold and detects the light intensity value got in moment T1 to moment T0 is greater than the second Intensity threshold, carrying out switch control N number of period to light emitting device with the first rule;N is positive integer;The moment T0 is current time, before the T1 is the current time at the time of the first duration;
    The processing unit is also used to: when the changing rule and first rule for detecting the first light intensity value that the optical sensor receives meet, executing the first operation.
  8. Terminal as claimed in claim 7, which is characterized in that
    The processing unit is also used to: when the light intensity value is not more than first Intensity threshold, whether detection receives user's operation in moment T0 to moment T2;The moment T0 be current time, the T2 be the current time after the second duration at the time of;
    When not receiving user's operation in moment T0 to moment T2, triggering described control unit executes described regular to light emitting device progress switch control N number of period with first;
    When the changing rule and first rule for detecting the first light intensity value that shown optical sensor receives meet, the first operation is executed.
  9. Terminal as claimed in claim 7 or 8, which is characterized in that the processing unit executes that described to carry out switch control N number of period to light emitting device with the first rule include: to carry out switch control N number of period to light emitting device with first frequency;
    The processing unit executes described when the changing rule for detecting the first light intensity value that the optical sensor receives and first rule meet, and whether it is the first frequency that execute the first operation include: the change frequency of the first light intensity value that the detection optical sensor receives;When the change frequency for the first light intensity value that the optical sensor receives is the first frequency, the first operation is executed.
  10. Terminal as described in claim 6-9 any claim, which is characterized in that
    Carrying out switch control to light emitting device with the second rule described in the processing unit execution includes: to carry out switch control to light emitting device with second frequency;
    The processing unit executes described when the changing rule for detecting the second light intensity value that optical sensor receives and second rule are not met, and executing the second operation includes: to detect whether the change frequency for the second light intensity value that optical sensor receives is the second frequency;When the change frequency for the second light intensity value that the optical sensor receives is the second frequency, the second operation is executed.
  11. A kind of terminal, which is characterized in that the terminal includes: processor, memory, optical sensor, light emitting device and communication bus;The processor is connected to the memory, optical sensor and light emitting device by the communication bus;
    The processor is for calling the program code stored in the memory and data, execution following steps:
    In the case where protective shell is in the open state, switch control is carried out to light emitting device with the first rule, and when the changing rule for detecting the first light intensity value that optical sensor receives is consistent with first rule, executes first and operate;
    In the case where protective shell is in closed state, switch control is carried out to light emitting device with the second rule, and when the changing rule and second rule for detecting the second light intensity value that optical sensor receives are not met, execute the second operation;
    Wherein, the protective shell is provided with light-strip, and the light-strip covers the light emitting device and the optical sensor being arranged in the terminal to the protective shell in the closure state.
  12. Terminal as claimed in claim 11, which is characterized in that
    The processor execution is described in the case where protective shell is in the open state, and carrying out switch control to light emitting device with the first rule includes: to obtain light intensity value by optical sensor;And when the light intensity value is greater than the first Intensity threshold and detects the variation of the light intensity value got in moment T1 to moment T0 greater than the second Intensity threshold, switch control N number of period is carried out to light emitting device with the first rule;N is positive integer;The moment T0 is current time, before the T1 is the current time at the time of the first duration;
    The processor executes described when the changing rule for detecting light intensity value that optical sensor receives and first rule meet, executing the first operation includes: to execute the first operation when the changing rule and first rule for detecting the first light intensity value that the optical sensor receives meet.
  13. Terminal as claimed in claim 12, which is characterized in that the processor is also used to execute:
    When the light intensity value is not more than first Intensity threshold, whether detection receives user's operation in moment T0 to moment T2;The moment T0 be current time, the T2 be the current time after the second duration at the time of;
    When the processor does not receive the user's operation in moment T0 to moment T2, switch control N number of period is carried out to light emitting device with the first rule;N is positive integer;
    When the changing rule and first rule for detecting the first light intensity value that shown optical sensor receives meet, the first operation is executed.
  14. Terminal as described in claim 12 or 13, which is characterized in that
    The processor executes that described to carry out switch control N number of period to light emitting device with the first rule include: to carry out switch control N number of period to light emitting device with first frequency;
    The processor executes described when the changing rule for detecting the first light intensity value that the optical sensor receives and first rule meet, and whether it is the first frequency that execute the first operation include: the change frequency of the first light intensity value that the detection optical sensor receives;When the change frequency for the first light intensity value that the optical sensor receives is the first frequency, the first operation is executed.
  15. Terminal as described in claim 11-14 any claim, which is characterized in that
    The processor execution is described in the case where protective shell is in closed state, and it includes: to carry out switch control to light emitting device with second frequency that the terminal, which carries out switch control to light emitting device with the second rule,;
    The processor executes described when the changing rule for detecting the second light intensity value that optical sensor receives and second rule are not met, and executing the second operation includes: to detect whether the change frequency for the second light intensity value that optical sensor receives is the second frequency;When the change frequency for the second light intensity value that the optical sensor receives is the second frequency, the second operation is executed.
  16. A kind of terminal control method characterized by comprising
    Terminal carries out switch control to light emitting device with the first rule;
    The changing rule for detecting light intensity value that optical sensor receives from do not meet first rule be changed into meet first rule when, the terminal executes the first operation;
    The changing rule for detecting light intensity value that optical sensor receives from meet first rule be changed into do not meet first rule when, the terminal executes the second operation;
    Wherein, the protective shell is provided with light-strip, and the light-strip covers the light emitting device and the optical sensor being arranged in the terminal to the protective shell in the closure state.
  17. The method described in claim 16, which is characterized in that
    It includes: that terminal carries out switch control to light emitting device with first frequency that the terminal, which carries out switch control to light emitting device with the first rule,;
    It is described the changing rule for detecting light intensity value that optical sensor receives from do not meet first rule be changed into meet first rule when, it includes: when the frequency for detecting light intensity value that optical sensor receives is changed into the first frequency from non-first frequency that the terminal, which executes the first operation, and the terminal executes the first operation;
    It is described the variation for detecting light intensity value that optical sensor receives from meet first rule be changed into do not meet first rule when, it includes: in the frequency for detecting light intensity value that optical sensor receives from institute that the terminal, which executes the second operation, When stating first frequency and being changed into non-first frequency, the terminal executes the second operation.
  18. A kind of terminal characterized by comprising
    Control unit, for carrying out switch control to light emitting device with the first rule;
    Processing unit, for the changing rule for detecting light intensity value that optical sensor receives from do not meet first rule be changed into meet first rule when, execute the first operation;And
    The changing rule for detecting light intensity value that optical sensor receives from meet first rule be changed into do not meet first rule when, execute the second operation;
    Wherein, the protective shell is provided with light-strip, and the light-strip covers the light emitting device and the optical sensor being arranged in the terminal to the protective shell in the closure state.
  19. The method described in claim 16, which is characterized in that
    Described control unit is specifically used for: terminal carries out switch control to light emitting device with first frequency;
    The processing unit execute it is described the changing rule for detecting light intensity value that optical sensor receives from do not meet first rule be changed into meet first rule when, executing the first operation includes: to execute the first operation when the frequency for detecting light intensity value that optical sensor receives is changed into the first frequency from non-first frequency;
    The processing unit execute it is described the variation for detecting light intensity value that optical sensor receives from meet first rule be changed into do not meet first rule when, it includes: to execute the second operation when the frequency for detecting light intensity value that optical sensor receives is changed into non-first frequency from the first frequency that the terminal, which executes the second operation,.
  20. A kind of terminal, which is characterized in that the terminal includes: processor, memory, optical sensor, light emitting device and communication bus;The processor is connected to the memory, optical sensor and light emitting device by the communication bus;
    The processor is for calling the program code stored in the memory and data, execution following steps:
    Switch control is carried out to light emitting device with the first rule;
    The changing rule for detecting light intensity value that optical sensor receives from do not meet first rule be changed into meet first rule when, execute the first operation;
    The changing rule for detecting light intensity value that optical sensor receives from meet first rule be changed into do not meet first rule when, execute the second operation;
    Wherein, the protective shell is provided with light-strip, and the light-strip covers the light emitting device and the optical sensor being arranged in the terminal to the protective shell in the closure state.
  21. Terminal as claimed in claim 20, which is characterized in that
    Carrying out switch control to light emitting device with the first rule described in the processor execution includes: to carry out switch control to light emitting device with first frequency;
    The processor execute it is described the changing rule for detecting light intensity value that optical sensor receives from do not meet first rule be changed into meet first rule when, executing the first operation includes: to execute the first operation when the frequency for detecting light intensity value that optical sensor receives is changed into the first frequency from non-first frequency;
    The processor, which executes, described to be turned in the variation for detecting light intensity value that optical sensor receives from first rule is met When becoming not meeting first rule, it includes: to execute the second operation when the frequency for detecting light intensity value that optical sensor receives is changed into non-first frequency from the first frequency that the terminal, which executes the second operation,.
CN201780012406.3A 2016-12-19 2017-03-17 Terminal control method and terminal Active CN108702417B (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN2016111770131 2016-12-19
CN201611177013 2016-12-19
PCT/CN2017/077029 WO2018113111A1 (en) 2016-12-19 2017-03-17 Terminal control method and terminal

Publications (2)

Publication Number Publication Date
CN108702417A true CN108702417A (en) 2018-10-23
CN108702417B CN108702417B (en) 2022-04-12

Family

ID=62624271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780012406.3A Active CN108702417B (en) 2016-12-19 2017-03-17 Terminal control method and terminal

Country Status (2)

Country Link
CN (1) CN108702417B (en)
WO (1) WO2018113111A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067609A (en) * 2013-01-23 2013-04-24 广东欧珀移动通信有限公司 Unlock method and system and device of mobile terminal
CN103516902A (en) * 2013-09-18 2014-01-15 广东欧珀移动通信有限公司 Method and device for controlling screen state of electronic equipment through protection cover
CN103546645A (en) * 2013-10-30 2014-01-29 上海斐讯数据通信技术有限公司 System, method and mobile terminal for achieving smart cover function of mobile terminal
CN204316574U (en) * 2014-12-31 2015-05-06 华森科技(深圳)有限公司 Leather cover for handset
CN104834497A (en) * 2015-05-15 2015-08-12 北京智膜科技有限公司 On screen display control method and controller
US9122392B2 (en) * 2010-08-13 2015-09-01 Lg Electronics Inc. Mobile terminal, display device and controlling method thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201222323A (en) * 2010-11-30 2012-06-01 Hon Hai Prec Ind Co Ltd Electronic device having proximity detection function
CN103309572A (en) * 2012-03-16 2013-09-18 联想(北京)有限公司 Method and device for state switching

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9122392B2 (en) * 2010-08-13 2015-09-01 Lg Electronics Inc. Mobile terminal, display device and controlling method thereof
CN103067609A (en) * 2013-01-23 2013-04-24 广东欧珀移动通信有限公司 Unlock method and system and device of mobile terminal
CN103516902A (en) * 2013-09-18 2014-01-15 广东欧珀移动通信有限公司 Method and device for controlling screen state of electronic equipment through protection cover
CN103546645A (en) * 2013-10-30 2014-01-29 上海斐讯数据通信技术有限公司 System, method and mobile terminal for achieving smart cover function of mobile terminal
CN204316574U (en) * 2014-12-31 2015-05-06 华森科技(深圳)有限公司 Leather cover for handset
CN104834497A (en) * 2015-05-15 2015-08-12 北京智膜科技有限公司 On screen display control method and controller

Also Published As

Publication number Publication date
CN108702417B (en) 2022-04-12
WO2018113111A1 (en) 2018-06-28

Similar Documents

Publication Publication Date Title
CN107943345B (en) Method and device for calibrating proximity sensor, storage medium and electronic equipment
WO2018210145A1 (en) Screen-off control method and apparatus, storage medium, and electronic device
WO2018201848A1 (en) Optical fingerprint acquisition method, and related product
CN107942306B (en) Method and device for calibrating proximity sensor, storage medium and electronic equipment
US20140354567A1 (en) Apparatus and method for operating proximity sensing function in electronic device having touch screen
KR20180088099A (en) Light sensing apparatus in electronic device and method thereof
WO2018201849A1 (en) Optical fingerprint acquisition method, and related product
AU2016224175B2 (en) Electronic device and control method thereof
CN106506794A (en) The state monitoring method of terminal unit, device and terminal unit
CN111405110B (en) Screen control method and device, storage medium and mobile terminal
JP6369816B2 (en) Biometric authentication system using proximity sensor
CN110249613A (en) Display screen condition control method, device, storage medium and electronic equipment
KR20130118918A (en) Mobile device and method for proximity detection verification
CN106293076A (en) Communication terminal and intelligent terminal's gesture identification method and device
CN106598444B (en) Control method of mobile terminal and mobile terminal
CN106233705B (en) A kind of terminal control method and terminal
US20150009144A1 (en) Method and apparatus for activating electronic devices with gestures
CN108319421A (en) A kind of display triggering method and mobile terminal
CN109521933A (en) A kind of display control method and mobile terminal
CN109871246A (en) A kind of message display method and terminal device
CN107463897A (en) Fingerprint identification method and mobile terminal
CN110233933A (en) A kind of call method and terminal device
CN110753155A (en) Proximity detection method and terminal equipment
CN109002223A (en) A kind of touch interface display methods and mobile terminal
CN110166618A (en) Screen control method and 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