CN106657466A - Flash lamp control method and mobile terminal - Google Patents

Flash lamp control method and mobile terminal Download PDF

Info

Publication number
CN106657466A
CN106657466A CN201611064390.4A CN201611064390A CN106657466A CN 106657466 A CN106657466 A CN 106657466A CN 201611064390 A CN201611064390 A CN 201611064390A CN 106657466 A CN106657466 A CN 106657466A
Authority
CN
China
Prior art keywords
flash lamp
mobile terminal
current value
drive circuit
opened
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611064390.4A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201611064390.4A priority Critical patent/CN106657466A/en
Publication of CN106657466A publication Critical patent/CN106657466A/en
Pending 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/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B15/00Special procedures for taking photographs; Apparatus therefor
    • G03B15/02Illuminating scene
    • G03B15/03Combinations of cameras with lighting apparatus; Flash units
    • G03B15/05Combinations of cameras with electronic flash apparatus; Electronic flash units
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a flash lamp control method and a mobile terminal, and the method comprises the steps: determining the current placing state of the mobile terminal when new information is received; determining a current value inputted to the flash lamp, wherein the current value is a corresponding current value when a flash lamp emits prompt information; determining a to-be-determined flash lamp according to the placing state, connecting a drive circuit corresponding to the to-be-determined flash lamp, and supplying power to the to-be-determined flash lamp according to the current value through the drive circuit. The method provided by the invention can flexibly control the brightness of the flash lamp, enables the flash lamp to have the existing function of carrying out the light supplement in a photographing process, and also can serve as an indicating lamp for reminding a user of the new information.

Description

Flash lamp control method and mobile terminal
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of flash lamp control method and mobile terminal.
Background technology
Mobile terminal screen and central processing unit are the parts of most power consumption in mobile terminal, can typically be used to save electricity The mode of LED light points out user fresh information, such as:Missed call, unread short messages etc., wherein, the low clock of LED light Mode wakeup CPU and screen is not lighted, so can both point out user to have information, screen can be saved again to greatest extent with central authorities The power consumption of processor.Meanwhile, camera function has been a basic function for mobile terminal, preferably take pictures effect to obtain Really, flash lamp also becomes the indispensable part of mobile terminal.
In order to meet the demand, then display lamp had both been provided with requiring existing mobile terminal, had been provided with flash lamp again, Display lamp for sending prompting when mobile terminal receives fresh information;Flash lamp then for carrying out light filling when taking pictures.Moving Display lamp was not only set in terminal but also flash lamp control not only assembling structure complexity, difficulty height be set, and production cost was high.
The content of the invention
The present invention provides a kind of flash lamp control method and mobile terminal, to solve to fill present in existing mobile terminal Distribution structure is complicated, difficulty is high, and the problem that production cost is high.
According to one aspect of the present invention, there is provided a kind of flash lamp control method, it is applied to preposition, rearmounted flash of light The mobile terminal of lamp, methods described include:When receiving fresh information, the current placement state of the mobile terminal is determined;It is determined that Turn off the light to sudden strain of a muscle the current value of input, wherein, the current value for dodge turn off the light send information when corresponding current value;According to institute State placement state and determine flash lamp to be opened, connect the corresponding drive circuit of the flash lamp to be opened, by the driving Circuit is powered for the flash lamp to be opened according to the current value.
According to a further aspect in the invention, there is provided a kind of mobile terminal, comprising preposition flash lamp, rearmounted flash lamp, institute Stating mobile terminal also includes:State determining module, for receiving during fresh information, determine the mobile terminal it is current put shape State;Current value determining module, for determining the current value of input of turning off the light to sudden strain of a muscle, wherein, the current value is carried to dodge to turn off the light to send Show corresponding current value during information;Control module, the placement state for being determined according to the state determining module determines to be waited out The flash lamp for opening, connects the corresponding drive circuit of the flash lamp to be opened, by the drive circuit according to the current value Power for the flash lamp to be opened.
Compared with prior art, the present invention has advantages below:
Flash lamp control method provided in an embodiment of the present invention and mobile terminal, when fresh information is received, it is determined that to sudden strain of a muscle The current value of light lamp input, sends information alert light by flash lamp.It can be seen that, flash lamp controlling party provided in an embodiment of the present invention Method, can flexibly control the brightness of flash lamp so that flash lamp not only continues existing function carries out light filling in shooting process, Being also used as display lamp prompting user has new information, therefore, flash lamp is only set in the terminal, and without the need for volume again Outer setting warning light.Need not warning light be additionally set due to only arranging flash lamp in the terminal, therefore, it is possible to reduce dress With difficulty, and production cost.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of description, and in order to allow the above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the specific embodiment of the present invention.
Description of the drawings
By the detailed description for reading hereafter preferred implementation, various advantages and benefit are for ordinary skill people Member will be clear from understanding.Accompanying drawing is only used for illustrating preferred implementation, and is not considered as limitation of the present invention.And In whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
The step of Fig. 1 is a kind of according to embodiments of the present invention one flash lamp control method flow chart;
The step of Fig. 2 is a kind of according to embodiments of the present invention two flash lamp control method flow chart;
Fig. 3 is the structural representation of device for controlling flashlight in mobile terminal in embodiment two;
Fig. 4 is a kind of structured flowchart of according to embodiments of the present invention three mobile terminal;
Fig. 5 is a kind of structured flowchart of according to embodiments of the present invention four mobile terminal;
Fig. 6 is a kind of structured flowchart of according to embodiments of the present invention five mobile terminal;
Fig. 7 is a kind of structured flowchart of according to embodiments of the present invention six mobile terminal.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should not be by embodiments set forth here Limited.On the contrary, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
Embodiment one
With reference to Fig. 1, flow chart the step of show a kind of flash lamp control method of the embodiment of the present invention one.
The flash lamp control method of the embodiment of the present invention is comprised the following steps:
Step 101:When receiving fresh information, the current placement state of mobile terminal is determined.
The flash lamp control method of the embodiment of the present invention is applied to the movement with preposition flash lamp and rearmounted flash lamp Terminal.In the embodiment of the present invention, for preposition flash lamp, rearmounted flash lamp concrete set location in the terminal is not made to have Body is limited.
The information for receiving is the information that user does not also read, and fresh information can be that unread short messages cease, do not read qq chat letters Cease, do not read wechat chat message, missed call information etc..
Step 102:It is determined that the current value of input of turning off the light to sudden strain of a muscle.
Wherein, current value for dodge turn off the light send information when corresponding current value.
By control to the current value of flash lamp input, flash lamp can be made to play different effects.Specifically, CPU is true Orientation dodges the current value of input of turning off the light, and the drive circuit of flash lamp then glistens to flash lamp input according to the current value that CPU determines Electric current, flashing current are corresponded with control signal functional module such as flash of light, pocket lamp, the instruction function of CPU module output.
It can be seen that, the sudden strain of a muscle during the present invention is implemented is turned off the light in addition to photographic flashing function, flashlight function, also with information prompting function. In the embodiment of the present invention as a example by carrying out information alert by flash lamp, subsequent step is illustrated.
Step 103:Flash lamp to be opened is determined according to placement state, the corresponding driving electricity of flash lamp to be opened is connected Road.
Mobile terminal may screen just put upward, it is also possible to can screen is counter down puts, the front of mobile terminal, reverse side are all provided with It is equipped with flash lamp;In order that user notices the prompting light that flash lamp sends, it is therefore desirable to for the placement state of mobile terminal Start the flash lamp of respective face.Mobile terminal screen just putting upward and screen down it is counter put be mobile terminal put shape State.
When mobile terminal screen is placed upward, then start preposition flash lamp;When mobile terminal screen is placed down, then start Rearmounted flash lamp.It should be noted that preposition flash lamp, the open and close of rearmounted flash lamp are both needed to corresponding flash lamp driving Circuit is controlled, and the drive circuit of the two can be provided separately, it is also possible to is integrated and is arranged;When being provided separately, then it is preposition flash lamp First drive circuit is set, is that rearmounted flash lamp arranges the second drive circuit;When integrating setting, first is provided for preposition flash lamp Drive interface, can call the first drive circuit by first drive interface, be that rearmounted flash lamp arranges second Drive interface, can call the second drive circuit by second drive interface.
Step 104:It is that flash lamp to be opened is powered by the drive circuit of connection, according to the current value for determining.
Due to corresponding current value when the current value determined in step 102 is turned off the light for sudden strain of a muscle sends information, therefore, foundation When the current value is powered for preposition flash lamp, preposition flash lamp sends prompting light, and now preposition flash lamp then plays message notifying Effect.
Flash lamp control method provided in an embodiment of the present invention, when fresh information is received, it is determined that to flash lamp input Current value, sends information alert light by flash lamp.It can be seen that, flash lamp control method provided in an embodiment of the present invention, flash lamp Not only continuing existing function carries out light filling in shooting process, and being also used as display lamp prompting user has new information, therefore, Flash lamp is only set in the terminal, and without the need for additionally arranging warning light again.Dodge due to only arranging in the terminal Light lamp and without the need for additionally arranging warning light, therefore, it is possible to reduce assembly difficulty, and production cost.
Embodiment two
With reference to Fig. 2, flow chart the step of show a kind of flash lamp control method of the embodiment of the present invention two.
Flash lamp control method provided in an embodiment of the present invention specifically includes below scheme:
Step 201:When receiving fresh information, the gravity value of gravity sensor output is obtained.
The flash lamp control method of the embodiment of the present invention is applied to the movement with preposition flash lamp and rearmounted flash lamp Terminal.Wherein, in mobile terminal the structural representation of device for controlling flashlight as shown in figure 3, as shown in figure 3, in mobile terminal Comprising preposition flash lamp 301, rearmounted flash lamp 302, preposition flash lamp 301 is with rearmounted flash lamp 302 by flashlight driving circuit 303 controls, and flashlight driving circuit 303 is controlled by CPU (Central Processing Unit, central processing unit) 304, Meanwhile, CPU304 is also connected with gravity sensor 305.
Wherein, fresh information is included but is not limited to:Missed call information, unread short messages cease, do not read any in chat message It is a kind of.
Gravity sensor is arranged in mobile terminal, the weight that gravity sensor is sensed when mobile terminal placement state is different Force value is different.Mobile terminal then obtains the gravity value of gravity sensor output in real time, determines the pendulum of mobile terminal according to gravity value It is that screen is placed upward or screen is placed down to put state, i.e. mobile terminal.
Step 202:The current placement state of mobile terminal is determined according to gravity value.
A kind of preferred foundation gravity value determines that the mode of the current laying state of mobile terminal is as follows:
First, the gravity value for getting is matched with the first default gravity value.
Wherein, corresponding gravity value when the first default gravity value is placed upward for mobile terminal screen.
Secondly, if the two mismatch, it is determined that mobile terminal screen is placed upward;If the two matching, it is determined that mobile whole End screen is placed down.
In addition it is also possible to the gravity value for getting is matched with the second preset value, wherein, second default kind of Fructus Litchi is Corresponding gravity value when mobile terminal screen is placed down;If the two matching, it is determined that mobile terminal is placed down;If the two is not Matching, it is determined that mobile terminal is placed upward.
Step 203:It is determined that the current value of input of turning off the light to sudden strain of a muscle.
Wherein, current value for dodge turn off the light send information when corresponding current value;
Different current values can control the light of the different brightness of flash lamp output, correspondingly, then can control flash lamp and play not Same function.
For example:The flash function of the first current value correspondence flash lamp can be preset, the second current value correspondence flash lamp is preset Flashlight function, preset the 3rd current value correspondence flash lamp information prompting function.When certain function of pretrigger flash lamp, Determine the corresponding current value of the function, control flashlight driving circuit is according to the corresponding current value of the function to flash lamp input electricity Stream.
It should be noted that step 203 is not limited to perform after step 202, step 203 can be in step 202 Perform before, or with step 202 executed in parallel.
It is determined that to the current value of flash lamp input, and after the current placement state of mobile terminal, based on it is mobile eventually The difference of the current placement state at end, the flow process of subsequent execution are also different.Specifically, when the current laying state of mobile terminal is When screen is placed upward, then execution step 204 and step 205;When the current laying state of mobile terminal is placed down for screen, Then execution step 206 and step 207.
Step 204:When mobile terminal screen is placed upward, determine that preposition flash lamp is flash lamp to be opened, connect Corresponding first drive circuit of preposition flash lamp.
The drive circuit of preposition flash lamp and rearmounted flash lamp can be integrally disposed as shown in Figure 3, it is also possible to separately sets Put.When integrally disposed, the first drive circuit and the second drive circuit in flashlight driving circuit, can be still divided into.
Step 205:Powered for preposition flash lamp according to the current value for determining by the first drive circuit.
Mobile terminal screen is placed when just putting upward, will control preposition flash lamp corresponding first and drive when having fresh information Circuit controls the light on and off of preposition flash lamp.
Step 206:When mobile terminal screen is placed down, determine that rearmounted flash lamp is flash lamp to be opened, connect Corresponding second drive circuit of rearmounted flash lamp.
Mobile terminal screen places i.e. anti-when putting down, will control rearmounted flash lamp corresponding second and drive when having fresh information Circuit controls the light on and off of rearmounted flash lamp.
Step 207:Powered for rearmounted flash lamp according to the current value for determining by the second drive circuit.
In the embodiment of the present invention, flash lamp functions of indicator light is given, and detects that mobile terminal is put by gravity sensor Configuration state, then calls preposition flash lamp to carry out information alert when mobile terminal is just put, after then calling when mobile terminal is counter to be put Putting flash lamp carries out information alert, flexibly the state of control flash lamp, plays display lamp suggesting effect using flash lamp, while can It is cost-effective.
Flash lamp control method provided in an embodiment of the present invention, when fresh information is received, it is determined that to flash lamp input Current value, sends information alert light by flash lamp.It can be seen that, flash lamp control method provided in an embodiment of the present invention, flash lamp Not only continuing existing function carries out light filling in shooting process, and being also used as display lamp prompting user has new information, therefore, Flash lamp is only set in the terminal, and without the need for arranging warning light extra.Dodge due to only arranging in the terminal Light lamp and without the need for additionally arranging warning light, therefore, it is possible to reduce assembly difficulty, and production cost.
Embodiment three
With reference to Fig. 4, a kind of structured flowchart of mobile terminal of the embodiment of the present invention three is shown.
The mobile terminal of the embodiment of the present invention includes preposition flash lamp, rearmounted flash lamp, and the mobile terminal also includes:Shape State determining module 401, for receiving during fresh information, determines the current placement state of the mobile terminal;Current value determines mould Block 402, for determining the current value of input of turning off the light to sudden strain of a muscle, wherein, the current value is turned off the light corresponding when sending information for sudden strain of a muscle Current value;Control module 403, the placement state for being determined according to the state determining module 401 determine to be opened Flash lamp, connect the corresponding drive circuit of the flash lamp to be opened, by the drive circuit according to the current value be The flash lamp to be opened is powered.
By mobile terminal provided in an embodiment of the present invention, when fresh information is received, it is determined that to the electricity of flash lamp input Flow valuve, sends information alert light by flash lamp.It can be seen that, flash lamp control method provided in an embodiment of the present invention, flash lamp is not Only continuing existing function carries out light filling in shooting process, and being also used as display lamp prompting user has new information, therefore, Flash lamp is only set in mobile terminal, and without the need for additionally arranging warning light again.Due to only arranging flash of light in the terminal Lamp and without the need for additionally arranging warning light, therefore, it is possible to reduce assembly difficulty, and production cost.
Example IV
With reference to Fig. 5, a kind of structured flowchart of mobile terminal of the embodiment of the present invention four is shown.
The mobile terminal of the embodiment of the present invention is the further optimization to the mobile terminal in embodiment three, the shifting after optimization Dynamic terminal includes preposition flash lamp, rearmounted flash lamp, and the mobile terminal also includes:State determining module 501, for receiving During fresh information, the current placement state of the mobile terminal is determined;Current value determining module 502, turns off the light to sudden strain of a muscle for determination defeated The current value for entering, wherein, the current value for dodge turn off the light send information when corresponding current value;Control module 503, is used for The placement state determined according to the state determining module 501 determines flash lamp to be opened, connects the sudden strain of a muscle to be opened The corresponding drive circuit of light lamp, is powered for the flash lamp to be opened according to the current value by the drive circuit.
Preferably, the control module 503 includes:First control submodule 5031, for when the mobile terminal screen When placing upward, determine that preposition flash lamp is flash lamp to be opened, connect corresponding first drive circuit of preposition flash lamp, lead to Cross first drive circuit to power for the preposition flash lamp according to the current value;Second control submodule 5032, is used for When the mobile terminal screen is placed down, determine that the rearmounted flash lamp is flash lamp to be opened, connect described rearmounted Corresponding second drive circuit of flash lamp, is supplied for the rearmounted flash lamp according to the current value by second drive circuit Electricity.
Preferably, the state determining module 501 includes:Acquisition submodule 5011, for obtaining gravity sensor output Gravity value;Wherein, the gravity sensor is arranged in the mobile terminal;Determination sub-module 5012, for according to described Gravity value determines the current placement state of the mobile terminal.
Preferably, the determination sub-module 5012 includes:Matching unit, for the gravity value is preset gravity with first Value is matched;Wherein, corresponding gravity value when the described first default gravity value is placed upward for mobile terminal screen;State is true Order unit, if the matching result for the matching unit is mismatched for the two, it is determined that the mobile terminal screen is put upward Put;If the matching result of the matching unit is the two matching, it is determined that the mobile terminal screen is placed down.
Preferably, the fresh information includes:Missed call information, unread short messages cease, do not read any one in chat message Kind.
The mobile terminal of the embodiment of the present invention is used to realize corresponding flash lamp control method in previous embodiment one, two, And with beneficial effect corresponding with embodiment of the method, will not be described here.
Embodiment five
With reference to Fig. 6, the structured flowchart of the mobile terminal of the embodiment of the present invention is shown.
The mobile terminal 800 of the embodiment of the present invention includes:At least one processor 801, memorizer 802, at least one net Network interface 804 and other users interface 803.Each component in mobile terminal 800 is coupled by bus system 805. It is understood that bus system 805 is used to realize the connection communication between these components.Bus system 805 except include data/address bus it Outward, also including power bus, controlling bus and status signal bus in addition.But for the sake of for clear explanation, in figure 6 will be various total Line is all designated as bus system 805.
Wherein, user interface 803 can include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate, touch screen, preposition flash lamp or rearmounted flash lamp etc..
It is appreciated that the memorizer 802 in the embodiment of the present invention can be volatile memory or nonvolatile memory, Or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read only memory (Read- OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM (ErasablePROM, EPROM), Electrically Erasable Read Only Memory (ElectricallyEPROM, EEPROM) dodge Deposit.Volatile memory can be random access memory (RandomAccessMemory, RAM), and which is used as outside slow at a high speed Deposit.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory (SynchronousDRAM, SDRAM), double data speed synchronous dynamic RAM (DoubleDataRate SDRAM, DDRSDRAM), enhancement mode Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory (DirectRambusRAM, DRRAM).The memorizer 802 of the system and method for embodiment of the present invention description is intended to include but does not limit In these memorizeies with any other suitable type.
In some embodiments, memorizer 802 stores following element, can perform module or data structure, or Person their subset, or their superset:Operating system 8021 and application program 8022.
Wherein, operating system 8021, comprising various system programs, such as ccf layer, core library layer, driving layer etc., are used for Realize various basic businesses and process hardware based task.Application program 8022, comprising various application programs, such as media Player (MediaPlayer), browser (Browser) etc., for realizing various applied business.Realize embodiment of the present invention side The program of method is may be embodied in application program 8022.
In embodiments of the present invention, by call memorizer 802 storage program or instruction, specifically, can be application The program stored in program 8022 or instruction, when processor 801 is used to receive fresh information, determine that the mobile terminal is current Placement state;It is determined that the current value of input of turning off the light to sudden strain of a muscle, wherein, the current value is turned off the light corresponding when sending information for sudden strain of a muscle Current value;Flash lamp to be opened is determined according to the placement state, the corresponding drive circuit of the flash lamp to be opened is connected, Powered for the flash lamp to be opened according to the current value by the drive circuit.
The method that the embodiments of the present invention are disclosed is can apply in processor 801, or is realized by processor 801. A kind of possibly IC chip of processor 801, the disposal ability with signal.During realization, said method it is each Step can be completed by the instruction of the integrated logic circuit of the hardware in processor 801 or software form.Above-mentioned process Device 801 can be general processor, digital signal processor (DigitalSignalProcessor, DSP), special IC (ApplicationSpecificIntegratedCircuit, ASIC), ready-made programmable gate array (FieldProgrammableGateArray, FPGA) or other PLDs, discrete gate or transistor logic Device, discrete hardware components.Can realize or perform disclosed each method in the embodiment of the present invention, step and box Figure.General processor can be microprocessor or the processor can also be any conventional processor etc..With reference to the present invention The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and perform and complete, or use decoding processor In hardware and software module combination execution complete.Software module may be located at random access memory, and flash memory, read only memory can In the ripe storage medium in this area such as program read-only memory or electrically erasable programmable memory, depositor.The storage Medium is located at memorizer 802, and processor 801 reads the information in memorizer 802, completes the step of said method with reference to its hardware Suddenly.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its Combine to realize.For hardware is realized, processing unit can be realized in one or more special ICs (ApplicationSpecificIntegratedCircuits, ASIC), digital signal processor (DigitalSignalProcessing, DSP), digital signal processing appts (DSPDevice, DSPD), programmable logic device (ProgrammableLogicDevice, PLD), field programmable gate array (Field-ProgrammableGateArray, FPGA), general processor, controller, microcontroller, microprocessor, other the electronics lists for performing herein described function In unit or its combination.
For software is realized, can pass through to perform the module (such as process, function etc.) of function described in the embodiment of the present invention To realize the technology described in the embodiment of the present invention.During software code is storable in memorizer and by computing device.Storage Device can be realized within a processor or outside processor.
Alternatively, processor 801 determines flash lamp to be opened according to the placement state, connects the flash of light to be opened The corresponding drive circuit of lamp, when being powered for the flash lamp to be opened according to the current value by the drive circuit, specifically For:When the mobile terminal screen is placed upward, determine that the preposition flash lamp is flash lamp to be opened, connection is described Corresponding first drive circuit of preposition flash lamp, is the preposition flash of light according to the current value by first drive circuit Lamp is powered;When the mobile terminal screen is placed down, determine that the rearmounted flash lamp is flash lamp to be opened, connect institute State corresponding second drive circuit of rearmounted flash lamp, by second drive circuit according to the current value be the rearmounted sudden strain of a muscle Light lamp is powered.
Alternatively, when processor 801 determines the mobile terminal current placement state, specifically for:Obtain gravity to pass The gravity value of sensor output;Wherein, the gravity sensor is arranged in the mobile terminal;Institute is determined according to the gravity value State the current placement state of mobile terminal.
Alternatively, it is when processor 801 determines the current placement state of the mobile terminal according to the gravity value, concrete to use In:The gravity value is matched with the first default gravity value;Wherein, the described first default gravity value is mobile terminal screen Corresponding gravity value when placing upward;If the two mismatch, it is determined that the mobile terminal screen is placed upward;If the two Match somebody with somebody, it is determined that the mobile terminal screen is placed down.
Alternatively, the fresh information includes:Missed call information, unread short messages cease, do not read any one in chat message Kind.
Mobile terminal 800 can realize each process of mobile terminal realization in previous embodiment, to avoid repeating, here Repeat no more.
By mobile terminal provided in an embodiment of the present invention, when fresh information is received, it is determined that to the electricity of flash lamp input Flow valuve, sends information alert light by flash lamp.It can be seen that, mobile terminal provided in an embodiment of the present invention, flash lamp not only continue Existing function carries out light filling in shooting process, and being also used as display lamp prompting user has new information, therefore, mobile whole Flash lamp is only set in end, and without the need for additionally arranging warning light again.Due to only arranging flash lamp and nothing in the terminal Warning light additionally need to be set, therefore, it is possible to reduce assembly difficulty, and production cost.
Embodiment six
With reference to Fig. 7, the structured flowchart of the mobile terminal of the embodiment of the present invention is shown.
Mobile terminal in the embodiment of the present invention can be mobile phone, panel computer, personal digital assistant (PersonalDigital Assistant, PDA), or vehicle-mounted computer etc..
Mobile terminal in Fig. 7 includes radio frequency (RadioFrequency, RF) circuit 910, memorizer 920, input block 930th, display unit 940, processor 960, voicefrequency circuit 970, WiFi (WirelessFidelity) module 980 and power supply 990.
Wherein, input block 930 can be used for the numeral or character information of receiving user's input, and produce and mobile terminal User arrange and the relevant signal input of function control.Specifically, in the embodiment of the present invention, the input block 930 can be with Including contact panel 931.Contact panel 931, also referred to as touch screen, can collect user thereon or neighbouring touch operation (ratio Such as user is using the operation of any suitable object or adnexa on contact panel 931 such as finger, stylus), and according to setting in advance Fixed formula drives corresponding attachment means.Optionally, contact panel 931 may include touch detecting apparatus and touch controller two Individual part.Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation brings is detected, signal is passed Give touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then Give the processor 960, and the order sent of receiving processor 960 can be performed.Furthermore, it is possible to adopt resistance-type, electricity The polytypes such as appearance formula, infrared ray and surface acoustic wave realize contact panel 931.Except contact panel 931, input block 930 Other input equipments 932 can also be included, other input equipments 932 can include but is not limited to physical keyboard, function key (such as Volume control button, switch key etc.), trace ball, mouse, one or more in action bars etc..Mobile terminal also includes front Put flash lamp, rearmounted flash lamp.
Wherein, display unit 940 can be used for display by the information of user input or be supplied to information and the movement of user The various menu interfaces of terminal.Display unit 940 may include display floater 941, optionally, can adopt LCD or organic light emission The forms such as diode (OrganicLight-EmittingDiode, OLED) are configuring display floater 941.
It should be noted that contact panel 931 can cover display floater 941, touch display screen is formed, when the touch display screen is examined Measure thereon or after neighbouring touch operation, processor 960 is sent to determine the type of touch event, with preprocessor 960 provide corresponding visual output in touch display screen according to the type of touch event.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area And the arrangement mode of the conventional control viewing area is not limited, can be arranged above and below, left-right situs etc. can be distinguished two and show Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area It can also be the empty interface not comprising any content.The conventional control viewing area be used for show the higher control of utilization rate, for example, Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 960 is the control centre of mobile terminal, using each of various interfaces and connection whole mobile phone Individual part, is stored in software program and/or module in first memory 921 by running or performing, and calls and be stored in Data in second memory 922, perform the various functions and processing data of mobile terminal, so as to carry out entirety to mobile terminal Monitoring.Optionally, processor 960 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 921 in software program and/or module and/ Or the data in the second memory 922, when processor 960 is used to receive fresh information, determine that the mobile terminal is current Placement state;It is determined that the current value of input of turning off the light to sudden strain of a muscle, wherein, the current value is turned off the light corresponding when sending information for sudden strain of a muscle Current value;Flash lamp to be opened is determined according to the placement state, the corresponding drive circuit of the flash lamp to be opened is connected, Powered for the flash lamp to be opened according to the current value by the drive circuit.
Alternatively, processor 960 determines flash lamp to be opened according to the placement state, connects the flash of light to be opened The corresponding drive circuit of lamp, when being powered for the flash lamp to be opened according to the current value by the drive circuit, specifically For:When the mobile terminal screen is placed upward, determine that the preposition flash lamp is flash lamp to be opened, connection is described Corresponding first drive circuit of preposition flash lamp, is the preposition flash of light according to the current value by first drive circuit Lamp is powered;When the mobile terminal screen is placed down, determine that the rearmounted flash lamp is flash lamp to be opened, connect institute State corresponding second drive circuit of rearmounted flash lamp, by second drive circuit according to the current value be the rearmounted sudden strain of a muscle Light lamp is powered.
Alternatively, when processor 960 determines the mobile terminal current placement state, specifically for:Obtain gravity to pass The gravity value of sensor output;Wherein, the gravity sensor is arranged in the mobile terminal;Institute is determined according to the gravity value State the current placement state of mobile terminal.
Alternatively, it is when processor 960 determines the current placement state of the mobile terminal according to the gravity value, concrete to use In:The gravity value is matched with the first default gravity value;Wherein, the described first default gravity value is mobile terminal screen Corresponding gravity value when placing upward;If the two mismatch, it is determined that the mobile terminal screen is placed upward;If the two Match somebody with somebody, it is determined that the mobile terminal screen is placed down.
Alternatively, the fresh information includes:Missed call information, unread short messages cease, do not read any one in chat message Kind.
By mobile terminal provided in an embodiment of the present invention, when fresh information is received, it is determined that to the electricity of flash lamp input Flow valuve, sends information alert light by flash lamp.It can be seen that, mobile terminal provided in an embodiment of the present invention, flash lamp not only continue Existing function carries out light filling in shooting process, and being also used as display lamp prompting user has new information, therefore, mobile whole Flash lamp is only set in end, and without the need for additionally arranging warning light again.Due to only arranging flash lamp and nothing in the terminal Warning light additionally need to be set, therefore, it is possible to reduce assembly difficulty, and production cost.
For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, it is related Part is illustrated referring to the part of embodiment of the method.
Provided herein glisten lights control scheme not with the intrinsic phase of any certain computer, virtual system or miscellaneous equipment Close.Various general-purpose systems can also be used together based on teaching in this.As described above, construction is with present invention side Structure required by the system of case is obvious.Additionally, the present invention is also not for any certain programmed language.Should be bright In vain, it is possible to use various programming languages realize the content of invention described herein, that what is and above language-specific done retouches State is for the preferred forms for disclosing the present invention.
In description mentioned herein, a large amount of details are illustrated.It is to be appreciated, however, that the enforcement of the present invention Example can be put into practice in the case where not having these details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand one or more in each inventive aspect, exist Above to, in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes In example, figure or descriptions thereof.However, should the method for the disclosure be construed to reflect following intention:I.e. required guarantor The more features of feature is expressly recited in each claim by the application claims ratio of shield.More precisely, such as right As claim is reflected, inventive aspect is less than all features of single embodiment disclosed above.Therefore, it then follows tool Thus claims of body embodiment are expressly incorporated in the specific embodiment, wherein each claim conduct itself The separate embodiments of the present invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more different from embodiment equipment.Can be the module or list in embodiment Unit or component are combined into a module or unit or component, and can be divided in addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit is excluded each other, can adopt any Combine to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (includes adjoint power Profit is required, summary and accompanying drawing) disclosed in each feature can it is identical by offers, be equal to or the alternative features of similar purpose carry out generation Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments In some included features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment required for protection one of arbitrarily Can in any combination mode using.
The present invention all parts embodiment can be realized with hardware, or with one or more processor operation Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice Microprocessor or digital signal processor (DSP) are realizing some in flash of light lights control scheme according to embodiments of the present invention Or some or all functions of whole parts.The present invention is also implemented as performing the one of method as described herein Partly or completely equipment or program of device (for example, computer program and computer program).It is such to realize this The program of invention can be stored on a computer-readable medium, or can have the form of one or more signal.So Signal can download from internet website and obtain, or provide on carrier signal, or provided with any other form.
It should be noted that above-described embodiment the present invention will be described rather than limits the invention, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference markss between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not Element listed in the claims or step.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and be run after fame Claim.

Claims (10)

1. a kind of flash lamp control method, is applied to the mobile terminal with preposition, rearmounted flash lamp, it is characterised in that described Method includes:
When receiving fresh information, the current placement state of the mobile terminal is determined;
It is determined that the current value of input of turning off the light to sudden strain of a muscle, wherein, the current value for dodge turn off the light send information when corresponding electric current Value;
Flash lamp to be opened is determined according to the placement state, the corresponding drive circuit of the flash lamp to be opened is connected, is led to Cross the drive circuit to power for the flash lamp to be opened according to the current value.
2. method according to claim 1, it is characterised in that flash lamp to be opened is determined according to the placement state, The corresponding drive circuit of the flash lamp to be opened is connected, by the drive circuit according to the current value for described to be opened The step of flash lamp is powered, including:
When the mobile terminal screen is placed upward, determine that the preposition flash lamp is flash lamp to be opened, connection is described Corresponding first drive circuit of preposition flash lamp, is the preposition flash of light according to the current value by first drive circuit Lamp is powered;
When the mobile terminal screen is placed down, determine that the rearmounted flash lamp is flash lamp to be opened, connection is described Corresponding second drive circuit of rearmounted flash lamp, is the rearmounted flash of light according to the current value by second drive circuit Lamp is powered.
3. method according to claim 1, it is characterised in that the current placement state of the determination mobile terminal Step, including:
Obtain the gravity value of gravity sensor output;Wherein, the gravity sensor is arranged in the mobile terminal;
The current placement state of the mobile terminal is determined according to the gravity value.
4. method according to claim 3, it is characterised in that described to determine that the mobile terminal is worked as according to the gravity value The step of front placement state, including:
The gravity value is matched with the first default gravity value;Wherein, the described first default gravity value is mobile terminal screen Corresponding gravity value when curtain is placed upward;
If the two mismatch, it is determined that the mobile terminal screen is placed upward;
If the two matching, it is determined that the mobile terminal screen is placed down.
5. method according to claim 1, it is characterised in that the fresh information includes:Missed call information, unread short messages Breath, any one for not reading in chat message.
6. a kind of mobile terminal, comprising preposition flash lamp, rearmounted flash lamp, it is characterised in that the mobile terminal also includes:
State determining module, for receiving during fresh information, determines the current placement state of the mobile terminal;
Current value determining module, for determining the current value of input of turning off the light to sudden strain of a muscle, wherein, the current value is carried to dodge to turn off the light to send Show corresponding current value during information;
Control module, the placement state for being determined according to the state determining module determine flash lamp to be opened, connect institute State the corresponding drive circuit of flash lamp to be opened, by the drive circuit according to the current value be the flash lamp to be opened Power supply.
7. mobile terminal according to claim 6, it is characterised in that the control module includes:
First control submodule, for when the mobile terminal screen is placed upward, determining that preposition flash lamp is to be opened Flash lamp, connects corresponding first drive circuit of preposition flash lamp, by first drive circuit according to the current value is The preposition flash lamp is powered;
Second control submodule, for when the mobile terminal screen is placed down, determining the rearmounted flash lamp to wait out The flash lamp for opening, connects corresponding second drive circuit of the rearmounted flash lamp, by second drive circuit according to described Current value is powered for the rearmounted flash lamp.
8. mobile terminal according to claim 6, it is characterised in that the state determining module includes:
Acquisition submodule, for obtaining the gravity value of gravity sensor output;Wherein, the gravity sensor is arranged at the shifting In dynamic terminal;
Determination sub-module, for determining the current placement state of the mobile terminal according to the gravity value.
9. mobile terminal according to claim 8, it is characterised in that the determination sub-module includes:
Matching unit, for the gravity value is matched with the first default gravity value;Wherein, the described first default gravity value Corresponding gravity value when placed for mobile terminal screen upward;
Status determining unit, if the matching result for the matching unit is mismatched for the two, it is determined that the mobile terminal Screen is placed upward;If the matching result of the matching unit is the two matching, it is determined that the mobile terminal screen is towards decentralization Put.
10. mobile terminal according to claim 6, it is characterised in that the fresh information includes:Missed call information, not Reading short message breath, any one for not reading in chat message.
CN201611064390.4A 2016-11-28 2016-11-28 Flash lamp control method and mobile terminal Pending CN106657466A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611064390.4A CN106657466A (en) 2016-11-28 2016-11-28 Flash lamp control method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611064390.4A CN106657466A (en) 2016-11-28 2016-11-28 Flash lamp control method and mobile terminal

Publications (1)

Publication Number Publication Date
CN106657466A true CN106657466A (en) 2017-05-10

Family

ID=58812621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611064390.4A Pending CN106657466A (en) 2016-11-28 2016-11-28 Flash lamp control method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106657466A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111357275A (en) * 2017-09-20 2020-06-30 深圳传音通讯有限公司 Flash lamp control method, mobile terminal and computer readable storage medium
CN111385464A (en) * 2018-12-29 2020-07-07 北京小米移动软件有限公司 Flash lamp control method, flash lamp control device and storage medium
CN111970458A (en) * 2020-08-10 2020-11-20 珠海格力电器股份有限公司 Mobile terminal and photographing light supplementing method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203761457U (en) * 2014-02-28 2014-08-06 上海斐讯数据通信技术有限公司 Mobile terminal
EP2887288A1 (en) * 2013-12-17 2015-06-24 Xiaomi Inc. Message reminding method, device and electronic device
CN105100457A (en) * 2015-07-08 2015-11-25 上海与德通讯技术有限公司 Event prompting method of mobile terminal and mobile terminal
CN105162905A (en) * 2015-07-30 2015-12-16 万辽辽 Circuit structure having functions of both flash lamp and signal lamp and mobile terminal
CN105704328A (en) * 2016-04-13 2016-06-22 广东欧珀移动通信有限公司 Message reminding method, message reminding apparatus and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2887288A1 (en) * 2013-12-17 2015-06-24 Xiaomi Inc. Message reminding method, device and electronic device
CN203761457U (en) * 2014-02-28 2014-08-06 上海斐讯数据通信技术有限公司 Mobile terminal
CN105100457A (en) * 2015-07-08 2015-11-25 上海与德通讯技术有限公司 Event prompting method of mobile terminal and mobile terminal
CN105162905A (en) * 2015-07-30 2015-12-16 万辽辽 Circuit structure having functions of both flash lamp and signal lamp and mobile terminal
CN105704328A (en) * 2016-04-13 2016-06-22 广东欧珀移动通信有限公司 Message reminding method, message reminding apparatus and mobile terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111357275A (en) * 2017-09-20 2020-06-30 深圳传音通讯有限公司 Flash lamp control method, mobile terminal and computer readable storage medium
CN111385464A (en) * 2018-12-29 2020-07-07 北京小米移动软件有限公司 Flash lamp control method, flash lamp control device and storage medium
CN111385464B (en) * 2018-12-29 2021-09-07 北京小米移动软件有限公司 Flash lamp control method, flash lamp control device and storage medium
CN111970458A (en) * 2020-08-10 2020-11-20 珠海格力电器股份有限公司 Mobile terminal and photographing light supplementing method

Similar Documents

Publication Publication Date Title
CN106469011B (en) A kind of information display method and mobile terminal
CN107450800A (en) A kind of task method to set up, mobile terminal and computer-readable recording medium
CN106126013A (en) A kind of application management method and mobile terminal
CN106713117A (en) Group message display method and mobile terminal
CN106506401A (en) A kind of flow managing method and mobile terminal
CN106201632A (en) The access method of a kind of application program and mobile terminal
CN107577512A (en) A kind of message display method, mobile terminal and computer-readable recording medium
CN107565639A (en) A kind of charging reminding method and mobile terminal
CN106681603A (en) Method for adjusting video playing progress and mobile terminal
CN106293293A (en) The detection method of a kind of object distance state and mobile terminal
CN106993091A (en) A kind of image weakening method and mobile terminal
CN106445495A (en) Application program interface display method and mobile terminal
CN106201495A (en) A kind of entrance creation method and mobile terminal
CN107122966A (en) A kind of red packet amount of money distribution method and mobile terminal
CN107562263A (en) Data entry device, mobile terminal and computer-readable recording medium
CN106407259A (en) Cookbook determination method and mobile terminal
CN106210231A (en) A kind of method of information processing and mobile terminal
CN106657466A (en) Flash lamp control method and mobile terminal
CN106375555A (en) Information display method and mobile terminal
CN105955600B (en) A kind of method and mobile terminal adjusting mobile terminal display interface
CN106197436B (en) A kind of walking speed based reminding method and mobile terminal
CN107547738A (en) A kind of reminding method and mobile terminal
CN105872264A (en) Backlight brightness adjusting method and mobile terminal
CN106888319A (en) The display methods and mobile terminal of a kind of shortcuts bar
CN106569662A (en) Display method of application interface and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170510