CN106790889A - The method and terminal of a kind of illumination - Google Patents

The method and terminal of a kind of illumination Download PDF

Info

Publication number
CN106790889A
CN106790889A CN201611195632.3A CN201611195632A CN106790889A CN 106790889 A CN106790889 A CN 106790889A CN 201611195632 A CN201611195632 A CN 201611195632A CN 106790889 A CN106790889 A CN 106790889A
Authority
CN
China
Prior art keywords
terminal
light intensity
motion state
lighting apparatus
presently
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.)
Withdrawn
Application number
CN201611195632.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.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201611195632.3A priority Critical patent/CN106790889A/en
Publication of CN106790889A publication Critical patent/CN106790889A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/22Illumination; Arrangements for improving the visibility of characters on dials
    • 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/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Abstract

The method and terminal of a kind of illumination are the embodiment of the invention provides, wherein method includes:Obtain the light intensity of present terminal local environment;Judge light intensity whether less than default light intensity threshold value;If so, be presently in motion state to terminal being identified;Judge that whether terminal is presently in motion state and meets generation to open the first pre-conditioned of lighting apparatus instruction;If so, open lighting apparatus being illuminated.By judging light intensity whether less than default light intensity threshold value, and motion state residing for terminal is identified during to less than default light intensity threshold value, determine whether that automatically opening up lighting apparatus is illuminated by judging motion state residing for terminal, so as to automatically open up lighting apparatus in the section that some light are bad, road conditions are bad, user's active operation is not needed, the personal safety of user is improve, makes the more preferable experience of User Activity.

Description

The method and terminal of a kind of illumination
Technical field
The present invention relates to electronic technology field, more particularly to a kind of illumination method and terminal.
Background technology
The lighting apparatus of existing mobile terminal is all manually operated, and clicks on lighting apparatus switch manually by user. Manually handle is slow, time-consuming, and there is certain danger, such as, in light bad stair activity or bump course On, user bows operating handset light switch, is likely to result in personal accident.
The content of the invention
The embodiment of the present invention provides a kind of method of illumination, and the experience of safe ready can be brought to user.
In a first aspect, the embodiment of the invention provides a kind of method of illumination, the method includes:
Obtain the light intensity of present terminal local environment;
Judge the light intensity whether less than default light intensity threshold value;
If so, be presently in motion state to terminal being identified;
Judge that the terminal is presently in whether motion state meets the first default bar that lighting apparatus instruction is opened in generation Part;
If so, open lighting apparatus being illuminated.
On the other hand, a kind of terminal is the embodiment of the invention provides, the terminal includes:
First acquisition unit, the light intensity for obtaining present terminal local environment;
First judging unit, for judging the light intensity whether less than default light intensity threshold value;
Recognition unit, for being identified if so, being presently in motion state to terminal;
Second judging unit, for judging that the terminal is presently in whether motion state meets generation opening lighting apparatus The first of instruction is pre-conditioned;
Execution unit, for being illuminated if so, opening lighting apparatus.
The method and terminal of the illumination of the embodiment of the present invention, by judging light intensity whether less than default light intensity threshold Value, and motion state residing for terminal is identified during to less than default light intensity threshold value, by judging to move shape residing for terminal State determines whether that automatically opening up lighting apparatus is illuminated, so as to be beaten automatically in the section that some light are bad, road conditions are bad Drive lighting apparatus, it is not necessary to user's active operation, improve the personal safety of user, make the more preferable experience of User Activity.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, embodiment will be described below needed for be used Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow diagram of the method for illumination that the embodiment of the present invention one is provided;
Fig. 2 is a kind of schematic flow diagram of the method for illumination that the embodiment of the present invention two is provided;
Fig. 3 is a kind of schematic flow diagram of the method for illumination that the embodiment of the present invention three is provided;
Fig. 4 is the schematic block diagram of the terminal that the embodiment of the present invention one is provided;
Fig. 5 is the schematic block diagram of the terminal that the embodiment of the present invention two is provided;
Fig. 6 is the schematic block diagram of the terminal that the embodiment of the present invention three is provided;
Fig. 7 is the schematic block diagram that the embodiment of the present invention four is provided.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
It should be appreciated that when using in this specification and in the appended claims, term " including " and "comprising" instruction The presence of described feature, entirety, step, operation, element and/or component, but it is not precluded from one or more of the other feature, whole The presence or addition of body, step, operation, element, component and/or its set.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, " one " and " being somebody's turn to do " is intended to include plural form.
As in this specification and in the appended claims as use, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In implementing, the terminal described in the embodiment of the present invention including but not limited to such as has touch sensitive surface Other of the mobile phone of (for example, touch-screen display and/or touch pad), laptop computer or tablet PC etc are just Portable device.It is to be further understood that in certain embodiments, the equipment not portable communication device, but with touching Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch pad).
In discussion below, describe to include the terminal of display and touch sensitive surface.It is, however, to be understood that It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as it is following in one or more:Drawing application program, demonstration application journey Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application Program, telephony application, videoconference application, email application, instant messaging applications, exercise Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application Program, digital music player application and/or video frequency player application program.
The various application programs that can be performed in terminal can be public using at least one of such as touch sensitive surface Physical user-interface device.Can be adjusted among applications and/or in corresponding application programs and/or changed and touch sensitive table The corresponding information shown in the one or more functions and terminal in face.So, the public physical structure of terminal is (for example, touch Sensing surface) can support that there are the various application programs of user interface directly perceived and transparent for a user.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, or two or more units are integrated in a unit.It is above-mentioned integrated Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
It should be appreciated that in embodiments of the present invention, alleged processor can be CPU (CentralProcessing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other can Programmed logic device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor Or the processor can also be any conventional processor etc..
It should be appreciated that terminal is only an example of portable multifunction device, and terminal can have than The shown more or less component of component, two or more components can be combined or can have different component Configuration or cloth Put.Can be with the combination of the hardware including one or more signal transactings and/or application specific integrated circuit, software or hardware and software To realize various parts.
It will also be understood that although term first, second etc. can be used for describing various elements herein, these elements should not This is limited to these terms.These terms are only used for being distinguished from each other open these elements.For example, not departing from the scope of the invention Under the premise of, first terminal can be referred to as second terminal, and similarly, second terminal can be referred to as first terminal.First Terminal and second terminal are terminal, but their not same terminals.
It is a kind of schematic flow diagram of the method for illumination that the embodiment of the present invention one is provided referring to Fig. 1, as illustrated, should Method comprises the following steps S11~S17:
Step S11:Obtain the light intensity of present terminal local environment.
Specifically, terminal senses the light intensity of current environment, the electricity of light sensor output by light sensor Stream size changes according to light intensity, and terminal obtains current light by obtaining the size of current of light sensor come correspondence According to intensity.
Step S12:Judge light intensity whether less than default light intensity threshold value.
Specifically, a light intensity threshold value for triggering lighting instruction is preset, that is, sets a triggering lighting instruction Light sensor output current size threshold value, the size of current current light of correspondence of light sensor currently output is strong Degree.With default light intensity threshold value be compared the light intensity of acquisition by terminal, judges whether the light intensity for obtaining is less than Default light intensity threshold value, i.e., the size of current that terminal exports current light sensor is carried out with the threshold value of predetermined current size Compare.Meanwhile, lighting instruction is generated in order to prevent from covering light sensor unintentionally, electricity can be exported to light sensor Stream is defined less than the duration of current threshold, for example, the time is 3S, is then only less than in light sensor output current The duration of current threshold can just trigger lighting instruction when reaching 3S.
Step S13:If so, whether sensing terminal is currently held.
Specifically, if light intensity is less than default light intensity threshold value, can be carried out to whether terminal is currently held Judge, terminal is held by setting sensing element (such as pressure sensor, temperature sensor, fingerprint sense) to judge whether to be in Hold state.
Step S14:If so, obtaining the data of terminal three axis accelerometer.
Specifically, it is held if sensing terminal, the data of present terminal three axis accelerometer can be acquired, For example, sensing after terminal is held, a moment to being held starts to enter to the accelerometer data of the last period Preset Time Row collection, or a moment for being held of collection starts the accelerometer data of latter section of Preset Time, or to gripping Front and rear accelerometer data is acquired.
Step S15:Data identification terminal current motion state according to three axis accelerometer.
Specifically, the accelerometer data of collection is analyzed, identify terminal be presently in motion state, example Such as, when user goes upstairs, acceleration of motion integrated distribution can increase in+X-axis ,+Y-axis, Y-axis component.Meanwhile, it is one to go upstairs Periodically action, Y-axis component can reduce again after increasing to certain value, hereafter constantly repeat the mistake of this first increases and then decreases Journey.Define ay be acceleration in Y-axis component, with the difference delta k=of Y-axis component, | ayk-ay (k-1) | identifications are moved upstairs herein. Motion recognition threshold Ma (Ma takes a larger value) is defined, the moment k1, k2, k3 ... of Δ k=Ma is recorded, referred to as Intersection point.Take t1=(k1+k2)/2, t2=(k3+k3)/2 ..., referred to as intersection point center.The variance Dt at intersection point center is calculated, if Dt is less than a threshold value Md, then it is assumed that the motion is to move upstairs.
Step S16:Judge that whether terminal is presently in motion state and meets generation to open the first pre- of lighting apparatus instruction If condition.
Specifically, the motion state that lighting apparatus instruction is opened in generation is pre-set, terminal is by gathering 3-axis acceleration The data of meter come recognize be presently in motion state, and judge current motion state whether with pre-set generation open shine The motion state of bright device directive matches.
Step S17:If so, open lighting apparatus being illuminated.
Specifically, if current motion state opens the motion state phase that lighting apparatus is instructed with generation is pre-set Match somebody with somebody, then lighting apparatus instruction is opened in generation, is opened lighting apparatus and is illuminated.By judging light intensity whether less than default light Line strength threshold value, and motion state residing for terminal is identified during to less than default light intensity threshold value, by judging terminal institute Locate motion state to determine whether that automatically opening up lighting apparatus is illuminated, so as on the road that some light are bad, road conditions are bad Section automatically open up lighting apparatus, it is not necessary to user's active operation, improve the personal safety of user, whether terminal is held into Row judgement can avoid terminal because be placed on bag or pocket in do not receive light open lighting apparatus, it is to avoid cause false triggering Illumination.
It is a kind of schematic flow diagram of the method for illumination that the embodiment of the present invention two is provided referring to Fig. 2, as illustrated, should Method comprises the following steps S21~S28:
Step S21:Obtain the light intensity of present terminal local environment.
Specifically, terminal senses the light intensity of current environment, the electricity of light sensor output by light sensor Stream size changes according to light intensity, and terminal obtains current light by obtaining the size of current of light sensor come correspondence According to intensity.
Step S22:Judge light intensity whether less than default light intensity threshold value.
Specifically, a light intensity threshold value for triggering lighting instruction is preset, that is, sets a triggering lighting instruction Light sensor output current size threshold value, the size of current current light of correspondence of light sensor currently output is strong Degree.With default light intensity threshold value be compared the light intensity of acquisition by terminal, judges whether the light intensity for obtaining is less than Default light intensity threshold value, i.e., the size of current that terminal exports current light sensor is carried out with the threshold value of predetermined current size Compare.Meanwhile, lighting instruction is generated in order to prevent from covering light sensor unintentionally, electricity can be exported to light sensor Stream is defined less than the duration of current threshold, for example, the time is 3S, is then only less than in light sensor output current The duration of current threshold can just trigger lighting instruction when reaching 3S.
Step S23:If so, judging whether terminal illumination equipment is blocked.
Specifically, if light intensity is less than default light intensity threshold value, whether terminal illumination equipment is blocked into Row is judged, for example, disposing a proximity transducer at the light outlet of lighting apparatus, is determined whether by proximity transducer Foreign object covers the light outlet of lighting apparatus, can set one close to threshold value, when foreign object is close proximity to the distance of sensor During less than close to threshold value, proximity transducer sends the signal being blocked, if foreign object is more than close proximity to the distance of sensor connect During nearly threshold value, that is, it is judged to that lighting apparatus is not blocked.
Step S24:If it is not, whether sensing terminal is currently held.
Specifically, if terminal illumination equipment is not blocked, can judge whether terminal is currently held, eventually End is judged whether in grip state by setting sensing element (such as pressure sensor, temperature sensor, fingerprint sense).
Step S25:If so, obtaining the data of terminal three axis accelerometer.
Specifically, it is held if sensing terminal, the data of present terminal three axis accelerometer can be acquired, For example, sensing after terminal is held, a moment to being held starts to enter to the accelerometer data of the last period Preset Time Row collection, or a moment for being held of collection starts the accelerometer data of latter section of Preset Time, or to gripping Front and rear accelerometer data is acquired.
Step S26:Data identification terminal current motion state according to three axis accelerometer.
Specifically, the accelerometer data of collection is analyzed, identify terminal be presently in motion state, example Such as, when user goes upstairs, acceleration of motion integrated distribution can increase in+X-axis ,+Y-axis, Y-axis component.Meanwhile, it is one to go upstairs Periodically action, Y-axis component can reduce again after increasing to certain value, hereafter constantly repeat the mistake of this first increases and then decreases Journey.Define ay be acceleration in Y-axis component, with the difference delta k=of Y-axis component, | ayk-ay (k-1) | identifications are moved upstairs herein. Motion recognition threshold Ma (Ma takes a larger value) is defined, the moment k1, k2, k3 ... of Δ k=Ma is recorded, referred to as Intersection point.Take t1=(k1+k2)/2, t2=(k3+k3)/2 ..., referred to as intersection point center.The variance Dt at intersection point center is calculated, if Dt is less than a threshold value Md, then it is assumed that the motion is to move upstairs.
Step S27:Judge that whether terminal is presently in motion state and meets generation to open the first pre- of lighting apparatus instruction If condition.
Specifically, the motion state that lighting apparatus instruction is opened in generation is pre-set, terminal is by gathering 3-axis acceleration The data of meter come recognize be presently in motion state, and judge current motion state whether with pre-set generation open shine The motion state of bright device directive matches.
Step S28:If so, open lighting apparatus being illuminated.
Specifically, if current motion state opens the motion state phase that lighting apparatus is instructed with generation is pre-set Match somebody with somebody, then lighting apparatus instruction is opened in generation, is opened lighting apparatus and is illuminated.By open lighting apparatus before to lighting apparatus Whether it is blocked and is judged, can more accurately judges whether terminal is currently in the occasion for needing to be illuminated, it is to avoid Light of the terminal caused by being blocked is bad and false triggering is illuminated.
It is a kind of schematic flow diagram of the method for illumination that the embodiment of the present invention one is provided referring to Fig. 3, as illustrated, should Method comprises the following steps S31~S38:
Step S31:Obtain the light intensity of present terminal local environment.
Specifically, terminal senses the light intensity of current environment, the electricity of light sensor output by light sensor Stream size changes according to light intensity, and terminal obtains current light by obtaining the size of current of light sensor come correspondence According to intensity.
Step S32:Judge light intensity whether less than default light intensity threshold value.
Specifically, a light intensity threshold value for triggering lighting instruction is preset, that is, sets a triggering lighting instruction Light sensor output current size threshold value, the size of current current light of correspondence of light sensor currently output is strong Degree.With default light intensity threshold value be compared the light intensity of acquisition by terminal, judges whether the light intensity for obtaining is less than Default light intensity threshold value, i.e., the size of current that terminal exports current light sensor is carried out with the threshold value of predetermined current size Compare.Meanwhile, lighting instruction is generated in order to prevent from covering light sensor unintentionally, electricity can be exported to light sensor Stream is defined less than the duration of current threshold, for example, the time is 3S, is then only less than in light sensor output current The duration of current threshold can just trigger lighting instruction when reaching 3S.
Step S33:If so, whether sensing terminal is currently held.
Specifically, if light intensity is less than default light intensity threshold value, can be carried out to whether terminal is currently held Judge, terminal is held by setting sensing element (such as pressure sensor, temperature sensor, fingerprint sense) to judge whether to be in Hold state.
Step S34:If so, obtaining the data of terminal three axis accelerometer.
Specifically, it is held if sensing terminal, the data of present terminal three axis accelerometer can be acquired, For example, sensing after terminal is held, a moment to being held starts to enter to the accelerometer data of the last period Preset Time Row collection, or a moment for being held of collection starts the accelerometer data of latter section of Preset Time, or to gripping Front and rear accelerometer data is acquired.
Step S35:Data identification terminal current motion state according to three axis accelerometer.
Specifically, the accelerometer data of collection is analyzed, identify terminal be presently in motion state, example Such as, when user goes upstairs, acceleration of motion integrated distribution can increase in+X-axis ,+Y-axis, Y-axis component.Meanwhile, it is one to go upstairs Periodically action, Y-axis component can reduce again after increasing to certain value, hereafter constantly repeat the mistake of this first increases and then decreases Journey.Define ay be acceleration in Y-axis component, with the difference delta k=of Y-axis component, | ayk-ay (k-1) | identifications are moved upstairs herein. Motion recognition threshold Ma (Ma takes a larger value) is defined, the moment k1, k2, k3 ... of Δ k=Ma is recorded, referred to as Intersection point.Take t1=(k1+k2)/2, t2=(k3+k3)/2 ..., referred to as intersection point center.The variance Dt at intersection point center is calculated, if Dt is less than a threshold value Md, then it is assumed that the motion is to move upstairs.
Step S36:Judge that whether terminal is presently in motion state and meets generation to open the first pre- of lighting apparatus instruction If condition.
Specifically, the motion state that lighting apparatus instruction is opened in generation is pre-set, terminal is by gathering 3-axis acceleration The data of meter come recognize be presently in motion state, and judge current motion state whether with pre-set generation open shine The motion state of bright device directive matches.
Step S37:If so, the brightness degree that should be currently selected according to the second pre-conditioned judgement terminal illumination equipment.
Specifically, if current motion state opens the motion state phase that lighting apparatus is instructed with generation is pre-set Match somebody with somebody, then when lighting apparatus is opened according to the brightness degree of the second pre-conditioned selection lighting apparatus, second it is pre-conditioned can be with It is the brightness degree for selecting lighting apparatus correspondence to open according to the number under current scene.For example, the environment of many people indoors Under, the brightness degree of lighting apparatus selection is lower than under spacious environment.Whether it is that the judgement of indoor many people's environment can be by interior CO2Concentration is carried out, because people's breathing produces CO2, in the place of people's aggregation, will there is substantial amounts of CO in a short time2Produce, and by In room air relative closure, therefore CO in the short time2Concentration increases rapidly, changes to discriminate whether in indoor many people's rings with this Border.Typical scene such as cinema, begins preceding spectators' admission in 5 minutes in film, and admission terminates in film prologue 5 minutes, one Film there are about 60 spectators, then in front and rear 10 minutes, the stream of people pours in, indoor CO2Concentration quickly increases.CO is used herein2It is dense The difference of degree recognizes the environment, calculates the CO at moment k2Concentration difference deltak=Ck-Ck-1, define a recognition threshold MCIf, Mi =>Mc, then it is assumed that the environment is indoor many people's environment.
Step S38:Lighting apparatus is opened according to brightness degree, when lighting apparatus is opened under different brightness degrees, hair The illumination brightness for going out is different.
Specifically, lighting apparatus is opened according to the brightness degree for choosing, sends the illumination of correspondence light intensity, light is strong The weak scene gone out with terminal recognition and correspondence changes.Selected by the light intensity to lighting apparatus, when many in people Scene under when, the illumination that brightness can be selected lower, it is to avoid high light is dazzling to be impacted to other people, more hommization.
It is a kind of schematic block diagram of terminal that the embodiment of the present invention one is provided, as illustrated, the terminal bag referring to Fig. 4 Include:
First acquisition unit 11, the light intensity for obtaining present terminal local environment;
First judging unit 21, for judging light intensity whether less than default light intensity threshold value;
Sensing unit 30, for sensing whether terminal is currently held;
Second acquisition unit 12, the data for obtaining terminal three axis accelerometer;
Recognition unit 40, for the data identification terminal current motion state according to three axis accelerometer;
Second judging unit 22, for judge terminal be presently in motion state whether meet generation open lighting apparatus refer to The first of order is pre-conditioned;
Execution unit 50, is illuminated for opening lighting apparatus.
Specifically, terminal 99 obtains the light intensity for being presently in environment by first acquisition unit 11, and by first Whether judging unit 21 judges to be presently in the light intensity of environment less than default light intensity threshold value, if being presently in environment Light intensity be less than default light intensity threshold value, then sense whether terminal is currently held by sensing unit 30, if sensing Unit 30 senses terminal and is held, and second acquisition unit 12 starts to obtain the data of terminal three axis accelerometer, recognition unit The data identification terminal current motion state of 40 three axis accelerometers obtained by second acquisition unit 12, the second judging unit 22 judge that whether terminal is presently in motion state and meets generation to open the first pre-conditioned of lighting apparatus instruction, if it is, Lighting apparatus is opened by execution unit 50 to be illuminated.
By judging light intensity whether less than default light intensity threshold value, and end during to less than default light intensity threshold value The residing motion state in end is identified, and determines whether that automatically opening up lighting apparatus is carried out by judging motion state residing for terminal Illumination, so as to automatically open up lighting apparatus in the section that some light are bad, road conditions are bad, it is not necessary to user's active operation, carries The personal safety of user high, whether terminal is held carries out judgement and can avoid terminal because being placed on reception in bag or pocket Lighting apparatus is opened less than light, it is to avoid cause false triggering to illuminate.
It is a kind of schematic block diagram of terminal that the embodiment of the present invention two is provided, as illustrated, the terminal bag referring to Fig. 5 Include:
First acquisition unit 11, the light intensity for obtaining present terminal local environment;
First judging unit 21, for judging light intensity whether less than default light intensity threshold value;
3rd judging unit 23, for judging whether terminal illumination equipment is blocked;
Sensing unit 30, for sensing whether terminal is currently held;
Second acquisition unit 12, the data for obtaining terminal three axis accelerometer;
Recognition unit 40, for the data identification terminal current motion state according to three axis accelerometer;
Second judging unit 22, for judge terminal be presently in motion state whether meet generation open lighting apparatus refer to The first of order is pre-conditioned;
Execution unit 50, is illuminated for opening lighting apparatus.
Specifically, terminal 99 obtains the light intensity for being presently in environment by first acquisition unit 11, and by first Whether judging unit 21 judges to be presently in the light intensity of environment less than default light intensity threshold value, if being presently in environment Light intensity be less than default light intensity threshold value, the 3rd judging unit 23 can be sentenced to whether terminal illumination equipment is blocked It is disconnected, if be not blocked, sense whether terminal is currently held by sensing unit 30, if sensing unit 30 senses terminal It is held, second acquisition unit 12 starts to obtain the data of terminal three axis accelerometer, and recognition unit 40 obtains single by second The data identification terminal current motion state of the three axis accelerometer that unit 12 obtains, the second judging unit 22 judges the current institute of terminal Whether place's motion state meets generation is opened the first pre-conditioned of lighting apparatus instruction, if it is, being opened by execution unit 50 Lighting apparatus is illuminated.
Judge whether lighting apparatus is blocked by before lighting apparatus is opened, can more accurately judge end Whether end is current is in the occasion for needing to be illuminated, it is to avoid light of the terminal caused by being blocked is bad and false triggering is illuminated.
It is a kind of schematic block diagram of terminal that the embodiment of the present invention three is provided, as illustrated, the terminal bag referring to Fig. 6 Include:
First acquisition unit 11, the light intensity for obtaining present terminal local environment;
First judging unit 21, for judging light intensity whether less than default light intensity threshold value;
Sensing unit 30, for sensing whether terminal is currently held;
Second acquisition unit 12, the data for obtaining terminal three axis accelerometer;
Recognition unit 40, for the data identification terminal current motion state according to three axis accelerometer;
Second judging unit 22, for judge terminal be presently in motion state whether meet generation open lighting apparatus refer to The first of order is pre-conditioned;
4th judging unit 24, for pre-conditioned judging the brightness that should currently select of terminal illumination equipment etc. according to second Level;
Execution unit 50, for opening lighting apparatus according to brightness degree, lighting apparatus is beaten under different brightness degrees When opening, the illumination brightness for sending is different.
Specifically, terminal 99 obtains the light intensity for being presently in environment by first acquisition unit 11, and by first Whether judging unit 21 judges to be presently in the light intensity of environment less than default light intensity threshold value, if being presently in environment Light intensity be less than default light intensity threshold value, then sense whether terminal is currently held by sensing unit 30, if sensing Unit 30 senses terminal and is held, and second acquisition unit 12 starts to obtain the data of terminal three axis accelerometer, recognition unit The data identification terminal current motion state of 40 three axis accelerometers obtained by second acquisition unit 12, the second judging unit 22 judge that whether terminal is presently in motion state and meets generation to open the first pre-conditioned of lighting apparatus instruction, if it is, The brightness degree that 4th judging unit 24 should currently be selected according to the second pre-conditioned judgement terminal illumination equipment, execution unit 50 Lighting apparatus is opened according to brightness degree, when lighting apparatus is opened under different brightness degrees, the illumination brightness for sending is different.
Selected by the light intensity to lighting apparatus, when under the scene more than people, brightness can be selected low by one A little illumination, it is to avoid high light is dazzling to be impacted to other people, more hommization.
Fig. 7 is the structure composition schematic diagram of the example IV of terminal of the invention.As shown in fig. 7, it may include:At least one Individual input equipment 101, at least one output equipment 102, bus 103, transceiver 104, memory 105 and processor 100, Above-mentioned input equipment 101, output equipment 102, transceiver 104, memory 105 and processor 100 are connected by bus 103, Wherein:
Input equipment 101, the input data for receiving outside input terminal 99.In implementing, the embodiment of the present invention Input equipment 101 may include keyboard, mouse, opto-electronic input device, audio input device, touch input device, scanner Deng.
Output equipment 102, for the output data of external output terminal.In implementing, the output of the embodiment of the present invention Equipment 102 may include display, loudspeaker, printer etc..
Bus 103, for being communicated with other equipment.In implementing, the bus 103 of the embodiment of the present invention can be and pass Broadcast an example of medium.Propagation medium typically can be by computer-readable instruction, data structure, program module or other modulation Other data materializations of data-signal (such as carrier wave or other transfer mechanisms) form, for example, propagation medium may include Wired media, such as priority network or straight line are connected, and propagation medium may also include wireless medium, such as sound wave, radio frequency, infrared ray Deng.In implementing, the bus 103 of the embodiment of the present invention can be used to receive the access request for accessing terminal.
Transceiver 104, for sending data to other equipment by bus 103 or receiving data from other equipment. In implementing, the transceiver 104 of the embodiment of the present invention may include the transceiving devices such as radio-frequency antenna.
Memory 105, for storing the routine data with various functions.Memory 105 is stored in the embodiment of the present invention Data include Internet Service Provider's data available and the unavailable data of Internet Service Provider, and other can call and transport Capable routine data.In implementing, the memory 105 of the embodiment of the present invention can be system storage, such as, volatile The combination of (such as RAM), non-volatile (such as ROM, flash memory etc.), or both.In implementing, the embodiment of the present invention Memory 105 can also be the external memory storage outside system, such as, and disk, CD, tape etc..
Processor 100, such as CPU, for calling the routine data stored in memory 105, and perform following operation:
Obtain the light intensity of present terminal local environment;Judge light intensity whether less than default light intensity threshold value; If so, whether sensing terminal is currently held;If so, obtaining the data of terminal three axis accelerometer;According to three axis accelerometer Data identification terminal current motion state;Judge terminal be presently in motion state whether meet generation open lighting apparatus refer to The first of order is pre-conditioned;If so, open lighting apparatus being illuminated.
Obtain the light intensity of present terminal local environment;Judge light intensity whether less than default light intensity threshold value; If so, judging whether terminal illumination equipment is blocked;If it is not, whether sensing terminal is currently held;If so, obtaining the axle of terminal three The data of accelerometer;Data identification terminal current motion state according to three axis accelerometer;Judge that terminal is presently in fortune Whether dynamic state meets generation is opened the first pre-conditioned of lighting apparatus instruction;If so, open lighting apparatus being illuminated.
Obtain the light intensity of present terminal local environment;Judge light intensity whether less than default light intensity threshold value; If so, whether sensing terminal is currently held;If so, obtaining the data of terminal three axis accelerometer;According to three axis accelerometer Data identification terminal current motion state;Judge terminal be presently in motion state whether meet generation open lighting apparatus refer to The first of order is pre-conditioned;If so, the brightness degree that should be currently selected according to the second pre-conditioned judgement terminal illumination equipment;Root Lighting apparatus is opened according to brightness degree, when lighting apparatus is opened under different brightness degrees, the illumination brightness for sending is different.
In several embodiments provided herein, it should be understood that disclosed method, only schematically, Can realize by another way.
It should be appreciated that in embodiments of the present invention, alleged processor 601 can be central first processing units (Central Processing Unit, CPU), the processor 601 can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at Reason device can also be any conventional processor etc..
It should be noted that the step in present invention method can according to actual needs carry out order adjustment, close And and delete.
Unit in embodiment of the present invention terminal can according to actual needs be merged, divides and deleted.
It is apparent to those skilled in the art that, for convenience of description and succinctly, the end of foregoing description End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.In this Shen In the several embodiments for please being provided, it should be understood that disclosed terminal and method, can realize by another way. For example, device embodiment described above is only schematical, for example, the division of the unit, only a kind of logic Function is divided, and can have other dividing mode when actually realizing, such as several units or component can combine or can be with Another system is integrated into, or some features can be ignored, or do not perform.In addition, shown or discussed coupling each other Conjunction or direct-coupling or communication connection can be INDIRECT COUPLING or the communication connection by some interfaces, device or unit, also may be used To be electric, machinery or other forms are connected.
In addition, during each functional unit in each embodiment of the invention can be integrated in a first processing units, Can be that unit is individually physically present, or two or more units are integrated in a unit.Above-mentioned collection Into unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.It is described integrated If unit is to realize in the form of SFU software functional unit and as independent production marketing or when using, can store in a meter In calculation machine read/write memory medium.Based on such understanding, technical scheme is substantially done to prior art in other words Go out the part of contribution, or all or part of the technical scheme can be embodied in the form of software product, the computer Software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be personal meter Calculation machine, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention.And it is preceding The storage medium stated includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced Change, these modifications or replacement should all be included within the scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection domain be defined.

Claims (10)

1. a kind of method of illumination, it is characterised in that including:
Obtain the light intensity of present terminal local environment;
Judge the light intensity whether less than default light intensity threshold value;
If so, be presently in motion state to terminal being identified;
Judge that whether the terminal is presently in motion state and meets generation to open the first pre-conditioned of lighting apparatus instruction;
If so, open lighting apparatus being illuminated.
2. means of illumination according to claim 1, it is characterised in that perform and described motion state is presently in terminal enters Before row identification step, methods described also includes:
Whether sensing terminal is currently held;
If so, performing described the step of be presently in motion state to terminal and be identified.
3. means of illumination according to claim 1, it is characterised in that perform whether the sensing terminal is currently held step Before rapid, methods described also includes:
Judge whether terminal illumination equipment is blocked;
If it is not, the step of whether the execution sensing terminal is currently held.
4. means of illumination according to claim 1, it is characterised in that described motion state is presently in terminal to know Do not include:
Obtain the data of terminal three axis accelerometer;
Data identification terminal current motion state according to the three axis accelerometer.
5. the means of illumination according to any one of claim 1-4, it is characterised in that methods described also includes:
According to the brightness degree that the second pre-conditioned judgement terminal illumination equipment should currently be selected;
The lighting apparatus is opened according to the brightness degree, when the lighting apparatus is opened under different brightness degrees, hair The illumination brightness for going out is different.
6. a kind of terminal, it is characterised in that including:
First acquisition unit, the light intensity for obtaining present terminal local environment;
First judging unit, for judging the light intensity whether less than default light intensity threshold value;
Recognition unit, for being identified if so, being presently in motion state to terminal;
Second judging unit, for judging that the terminal is presently in whether motion state meets generation opening lighting apparatus instruction It is first pre-conditioned;
Execution unit, for being illuminated if so, opening lighting apparatus.
7. terminal according to claim 6, it is characterised in that recognition unit performs and described is presently in moving shape to terminal Before state is identified, the terminal also includes:
Sensing unit, for sensing whether terminal is currently held;
If so, recognition unit is presently in motion state to terminal being identified.
8. terminal according to claim 6, it is characterised in that sensing unit performs whether the sensing terminal is currently held Before holding, the terminal also includes:
3rd judging unit, for judging whether terminal illumination equipment is blocked;
If it is not, whether sensing unit sensing terminal is currently held.
9. terminal according to claim 6, it is characterised in that the recognition unit is presently in motion state and enters to terminal Row identification includes:
Second acquisition unit, the data for obtaining terminal three axis accelerometer;
Recognition unit is used for the data identification terminal current motion state according to the three axis accelerometer.
10. the terminal according to any one of claim 6-9, it is characterised in that the terminal also includes:
4th judging unit, for pre-conditioned judging brightness that the terminal illumination equipment should currently be selected etc. according to second Level;
Execution unit is used to open the lighting apparatus according to the brightness degree, and the lighting apparatus is in different brightness degrees During lower opening, the illumination brightness for sending is different.
CN201611195632.3A 2016-12-21 2016-12-21 The method and terminal of a kind of illumination Withdrawn CN106790889A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611195632.3A CN106790889A (en) 2016-12-21 2016-12-21 The method and terminal of a kind of illumination

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611195632.3A CN106790889A (en) 2016-12-21 2016-12-21 The method and terminal of a kind of illumination

Publications (1)

Publication Number Publication Date
CN106790889A true CN106790889A (en) 2017-05-31

Family

ID=58900416

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611195632.3A Withdrawn CN106790889A (en) 2016-12-21 2016-12-21 The method and terminal of a kind of illumination

Country Status (1)

Country Link
CN (1) CN106790889A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107690029A (en) * 2017-08-30 2018-02-13 北京小米移动软件有限公司 Terminal control method and device
CN107888780A (en) * 2017-11-29 2018-04-06 维沃移动通信有限公司 The illumination control method and mobile terminal of a kind of mobile terminal
CN112187995A (en) * 2020-08-28 2021-01-05 北京小米移动软件有限公司 Illumination compensation method, illumination compensation device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2696561A2 (en) * 2011-04-29 2014-02-12 Huawei Device Co., Ltd. Method for controlling light-emitting device in terminal equipment, apparatus thereof and terminal equipment
CN105162991A (en) * 2015-10-13 2015-12-16 上海斐讯数据通信技术有限公司 A method and system for terminal automatically turning on and turning off electric torch
CN105306702A (en) * 2015-10-08 2016-02-03 广东欧珀移动通信有限公司 Flashlight application regulation method and mobile terminal
CN105302304A (en) * 2015-10-23 2016-02-03 广东小天才科技有限公司 Method and apparatus for automatically starting illumination apparatus and intelligent watch

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2696561A2 (en) * 2011-04-29 2014-02-12 Huawei Device Co., Ltd. Method for controlling light-emitting device in terminal equipment, apparatus thereof and terminal equipment
CN105306702A (en) * 2015-10-08 2016-02-03 广东欧珀移动通信有限公司 Flashlight application regulation method and mobile terminal
CN105162991A (en) * 2015-10-13 2015-12-16 上海斐讯数据通信技术有限公司 A method and system for terminal automatically turning on and turning off electric torch
CN105302304A (en) * 2015-10-23 2016-02-03 广东小天才科技有限公司 Method and apparatus for automatically starting illumination apparatus and intelligent watch

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107690029A (en) * 2017-08-30 2018-02-13 北京小米移动软件有限公司 Terminal control method and device
CN107888780A (en) * 2017-11-29 2018-04-06 维沃移动通信有限公司 The illumination control method and mobile terminal of a kind of mobile terminal
CN112187995A (en) * 2020-08-28 2021-01-05 北京小米移动软件有限公司 Illumination compensation method, illumination compensation device, and storage medium

Similar Documents

Publication Publication Date Title
CN107092520B (en) Recommended method, device, storage medium and the mobile terminal of application program
TW201843617A (en) Optical fingerprint verification method and mobile terminal
CN105739699B (en) A kind of control method and terminal device of message notifying
CN106778707A (en) Fingerprint identification method, display screen and mobile terminal
CN107203147B (en) Internet of Things network control system based on cloud platform and method
CN107292237A (en) The acquisition method and Related product of fingerprint
CN106170034B (en) A kind of sound effect treatment method and mobile terminal
CN106790889A (en) The method and terminal of a kind of illumination
CN108763317A (en) A kind of auxiliary chooses the method and terminal device of picture
CN107292235A (en) The acquisition method and Related product of fingerprint
CN110069178A (en) Interface control method and terminal device
CN110489029A (en) A kind of icon display method and terminal device
CN109814786A (en) Image storage method and terminal device
CN110365853A (en) A kind of reminding method and electronic equipment
CN110097895A (en) A kind of absolute music detection method, device and storage medium
CN108962187A (en) Screen luminance adjustment method and mobile terminal
CN106775223A (en) The control method and terminal device of suspension button
CN109560591A (en) Charging method, device and terminal
CN108874260A (en) A kind of text handling method and terminal device
CN108228902A (en) A kind of document display method and mobile terminal
CN109862430A (en) Multi-medium play method and terminal device
CN106126171B (en) A kind of sound effect treatment method and mobile terminal
CN107967418A (en) Face identification method and mobile terminal
CN107066090A (en) The method and mobile terminal of a kind of control fingerprint recognition module
CN108196781A (en) The display methods and mobile terminal at interface

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20170531

WW01 Invention patent application withdrawn after publication