A kind of power supply adaptor, control method, control device and mobile terminal
Technical field
The present invention relates to technical field of electronic equipment, and in particular to a kind of power supply adaptor, control method, control device and
Mobile terminal.
Background technique
With the fast development of science and technology, the function of mobile communication intelligent terminal is more and more complete, wherein the bat of mobile terminal
Camera shooting function, has become essential demand, either beautiful scenery or cuisines in people's daily life, and people can be clapped
It photographs and, record the drop of life, extend the shelf-life of memory.
Required illumination brightness is provided due to when shooting photo, needing image lamp for the target object that is taken.?
In the prior art, the flash power of most of image lamps is a definite value, and the position of image lamp and camera is to immobilize
, it cannot flexibly be glistened according to ambient enviroment and user demand, the effect for shooting the image works come, which is not achieved, to be wanted
It asks, especially in some special industries, for example, it is desired to be shot to some document pictures, academic picture or historical data picture
When, personalized style of shooting can not be provided.
Summary of the invention
In view of this, it is an object of the invention to overcome the deficiencies of the prior art and provide a kind of power supply adaptors, controlling party
Method, control device and mobile terminal, realize image lamp can according to around target reference object luminous environment information and user
The purpose that the screening-mode of selection is flexibly glistened provides a kind of mode of personalizable shooting.
In order to achieve the above object, technical scheme is as follows:
In a first aspect, using a kind of power supply adaptor, comprising: image lamp, controller and external switching switch, wherein;Control
Device processed and external switching switch connect, for determining the Working mould of power supply adaptor according to the handover operation of external switching switch
Formula, wherein operating mode includes image lamp mode;Controller is connect with image lamp, and controller receives the sudden strain of a muscle from mobile terminal
Light lamp parameter information, wherein Flashing Light Parameters information is determined that data information includes surveying light number by mobile terminal according to data information
According to the screening-mode information selected with user, photometric data includes the ambient light data in the preset range of target reference object;
Controller controls image lamp according to Flashing Light Parameters, provides and the matched flash luminance of Flashing Light Parameters to target reference object.
Second aspect, using a kind of control method of power supply adaptor, this method comprises: the handover operation according to user is true
Determine the operating mode of power supply adaptor, wherein operating mode includes image lamp mode;Receive the data letter from mobile terminal
Breath, data information are Flashing Light Parameters information, wherein data information includes the screening-mode letter of photometric data and user's selection
Breath, photometric data includes the ambient light data in the preset range of target reference object;Image lamp is controlled according to Flashing Light Parameters,
So that image lamp provides and the matched flash luminance of Flashing Light Parameters according to Flashing Light Parameters to target reference object.
The third aspect, using a kind of control device of power supply adaptor, which comprises determining that module, for according to
The handover operation at family determines the operating mode of power supply adaptor, wherein operating mode includes image lamp mode;Receiving module is used
In receiving the data information from mobile terminal, data information is Flashing Light Parameters information, wherein data information includes surveying light number
According to the screening-mode information selected with user, photometric data includes the ambient light data in the preset range of target reference object;
Sending module is sent to image lamp, so that image for controller to be controlled to the control information of image lamp according to Flashing Light Parameters
Lamp provides and the matched flash luminance of Flashing Light Parameters according to Flashing Light Parameters to target reference object.
Fourth aspect, using a kind of mobile terminal, comprising: obtain the environment light number in the preset range of target reference object
Accordingly and user selects screening-mode;According to the screening-mode that photometric data and user select, Flashing Light Parameters information is determined;It will
Flashing Light Parameters information is sent to the controller of power supply adaptor
The invention adopts the above technical scheme, by being arranged image lamp and controller on power supply adaptor, and by image
Lamp is connect with controller, and controller receives the Flashing Light Parameters information from mobile terminal, and image lamp is according to the Flashing Light Parameters
It is provided and the matched flash luminance of Flashing Light Parameters to target reference object;By the way that external switching switch is arranged, facilitate user's root
According to the operating mode of demand selection power supply adaptor, and power supply adaptor is connect with mobile terminal, electricity is controlled by mobile terminal
The Flashing Light Parameters of source adapter image lamp.The present invention is by above technical scheme, and user is by mobile terminal to target object
When being shot, image lamp can be carried out according to the screening-mode of luminous environment information and user's selection around target reference object
Flexible flash of light provides a kind of mode of personalizable shooting for user.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of structural schematic diagram of power supply adaptor provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of power supply adaptor control method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of power supply adaptor control device provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram that a kind of mobile terminal being applicable in the embodiment of the present invention is connect with power supply adaptor;
Fig. 5 is control and the management flow chart for a kind of image lamp being applicable in the embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, technical solution of the present invention will be carried out below
Detailed description.Obviously, described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, those of ordinary skill in the art are obtained all without making creative work
Other embodiment belongs to the range that the present invention is protected.
Embodiment one
Fig. 1 is a kind of structural schematic diagram of power supply adaptor provided in an embodiment of the present invention, and the embodiment of the present invention can fit
For personalized demand of taking pictures.With reference to Fig. 1, which includes: that image lamp 110, controller 120 and external switching are opened
Close 130.
Wherein, controller 120 is connect with external switching switch 130, for the handover operation according to external switching switch 130
Determine the operating mode of power supply adaptor, wherein operating mode includes image lamp mode;Controller 120 and image lamp 110 connect
It connects, controller 120 receives the Flashing Light Parameters information from mobile terminal, wherein Flashing Light Parameters information is by mobile terminal root
It is determined according to data information, data information includes the screening-mode information of photometric data and user's selection, and photometric data includes target
Ambient light data in the preset range of reference object;Controller 120 controls image lamp 110 according to Flashing Light Parameters, to target
Reference object provides and the matched flash luminance of Flashing Light Parameters.
First, it is generally the case that the flash power of most of image lamps is a definite value, and the position of image lamp and camera
Set and be respectively positioned on mobile terminal, position be always it is relatively fixed constant, cannot neatly use, especially some special
In industry, for example, it is desired to when being shot to some document pictures, academic picture or historical data picture, it cannot be according to ambient enviroment
Condition and user demand are flexibly glistened, and the effect for shooting the image works come does not reach requirement, and can not provide individual character
The style of shooting of change.
In the present invention, a kind of power supply adaptor is provided, the deficiencies in the prior art have been well solved, is passed through
Image lamp 110, controller 120 and external switching switch 130 are set on power supply adaptor, and wherein image lamp 110 can be LED
Image lamp provides required illumination brightness;Power supply adaptor in the present embodiment can be defined different operating modes, including
Charge mode and image lamp mode, user can realize simple human-computer interaction function by external switching switch 130, according to not
The operating mode of same demand Switching power adapter.It, can when user needs power supply adaptor to charge to mobile terminal
To carry out manual switching by external switching switch 130, power supply adaptor is switched to charge mode, needs to mend when user takes pictures
Power supply adaptor is switched to image lamp mode by external switching switch 130 by the light time, and charge function stops working at this time, electricity
Source adapter is served only for image lamp function.
Wherein, external switching switch 130 is connect with controller 120, and controller 120 includes internal usb bus switching switch,
When user is manually switched to image lamp mode, usb bus is switched to image lamp mode electricity by internal usb bus switching switch
Road, at this point, power supply adaptor is under equipment mode state, by the control of mobile terminal, mobile terminal is in master mode shape
Under state, and in shooting process, power supply adaptor can move in a certain range.Mobile terminal is according to photometric data and use
The screening-mode of family selection, determines the Flashing Light Parameters of image lamp 110, and controller 120 receives the flash of light sent by mobile terminal
Lamp parameter information, and control image lamp 110 and provide corresponding illumination brightness according to Flashing Light Parameters information.Wherein, mobile terminal
According to the screening-mode that user selects, the metering mode of mobile terminal camera is adjusted optimally, to target shooting pair
As (preset range can select according to the needs of users, for example, it is desired to two meters around target reference object in preset range
Luminous environment infomation detection, then preset range is two meters) luminous environment information detected, finally obtain photometric data, it is mobile
Photometric data is sent to controller 120 again by terminal, controls the illumination brightness of image lamp 110.
In the embodiment of the present invention, pass through a kind of power supply adaptor, comprising: image lamp 110, controller 120 and external switching
Switch 130, wherein;Controller 120 is connect with external switching switch 130, for the handover operation according to external switching switch 130
Determine that the operating mode of power supply adaptor, operating mode include image lamp mode;Controller 120 is connect with image lamp 110, is received
Flashing Light Parameters information from mobile terminal, wherein Flashing Light Parameters information is determined by mobile terminal according to data information, is counted
It is believed that breath includes photometric data and the screening-mode information that user selects, photometric data includes the preset range of target reference object
Interior ambient light data;Controller 120 controls image lamp 110 according to Flashing Light Parameters, provides and glistens to target reference object
The matched flash luminance of lamp parameter.Realizing image lamp 110 can be according to the luminous environment information and use around target reference object
The purpose that the screening-mode of family selection is flexibly glistened provides a kind of mode of personalizable shooting.
It further, further include AC/DC converter and USB interface;AC/DC converter is connect with controller 120, and being used for will
The alternating current for being input to power supply adaptor is converted into direct current;USB interface is whole by USB interface and movement for power supply adaptor
End connection.
Specifically, AC (Alternating Current) indicates exchange, DC (Direct Current) indicates direct current, by
It is faster than the speed of AC charging in the speed of DC charging, it is therefore desirable to which that the alternating current in AC network is converted into direct current
Electricity, and the function of AC/DC converter is exactly to convert alternating current to direct current, therefore AC/DC is arranged inside power supply adaptor
Converter.During practical application, when power supply adaptor works in charging mode, when being charged for mobile terminal,
AC/DC converter can convert alternating current to the direct current of 5V@1A or 5V@1A~2A, realize the purpose of quick charge;In electricity
USB interface is set on source adapter, power supply adaptor can be connected with mobile terminal by usb communication data line, wherein
The length of usb communication data line can be 1~2m, one end of usb communication data line can be connected to mobile terminal, the other end
It is inserted into the USB interface of power supply adaptor.On the one hand under the charge mode of power supply adaptor, usb communication cable can be passed through
Electric current is transmitted, is charged to mobile terminal;It on the other hand, can be logical by USB under the image lamp mode of power supply adaptor
Believe that cable carries out the transmission operation of data, can also be powered by mobile terminal to image lamp 110, and the camera of mobile terminal
The position of the image lamp 110 of position and power supply adaptor can free variation.
Optionally, Flashing Light Parameters include: the flash power, flash frequency and/or flash of light duration of image lamp 110.User
Under the image lamp mode of power supply adaptor, when taking pictures to target object, shooting mould that mobile terminal is selected according to user
Formula, control camera carry out target reference object to survey light operation, obtain photometric data, final mobile terminal is according to screening-mode
With photometric data determine image lamp 110 Flashing Light Parameters, wherein Flashing Light Parameters can be flash power, flash frequency and/
Or flash of light duration, different Flashing Light Parameters correspond to different brightness of flash lamp, in a specific example, according to shooting mould
The Flashing Light Parameters that formula and photometric data determine may is that flash power 80W, flash frequency 30HZ, flash time 1s, finally,
Image lamp 110 provides and the matched flash luminance of Flashing Light Parameters according to Flashing Light Parameters to target reference object.
Optionally, mobile terminal controls the screening-mode of image lamp by terminal software, wherein screening-mode includes: certainly
Dynamic model formula, high-speed synchronous mode or manual mode.
Specifically, present embodiments providing a kind of mode of personalizable shooting, user when shooting, can pass through setting
Terminal software on mobile terminals, selects screening-mode according to demand, and screening-mode can be automatic mode, high-speed synchronous mould
Formula, manual mode, portrait mode of figure or Night export different Flashing Light Parameters according to different modes, and mobile terminal will
Finally determining Flashing Light Parameters, by usb communication cable transmission to controller 120, controller 120 is further according to Flashing Light Parameters
Information controls image lamp 110 and provides illumination brightness corresponding with Flashing Light Parameters, realizes the purpose of personalizable shooting.
Embodiment two
Fig. 2 is a kind of flow chart of power supply adaptor control method provided in an embodiment of the present invention, and the present embodiment is applicable
In the working condition to power supply adaptor controls the case where, this method can be by power adaptation provided in an embodiment of the present invention
Device control device executes, and the mode which can be used software and/or hardware is realized, with reference to Fig. 2, this method specifically be can wrap
Include following steps:
S210, the operating mode that power supply adaptor is determined according to the handover operation of user, wherein operating mode includes image
Lamp mode.
Specifically, in the embodiment of the present invention power supply adaptor operating mode, not only include image lamp mode, further include filling
Power mode, user can pass through the external switching switch 130 that is arranged on power supply adaptor, manual switching according to demand
The operating mode of power supply adaptor.External switching switch 130 is connect with controller 120, and controller 120 can cutting according to user
Change the operating mode for operating and determining power supply adaptor.
S220, the data information from mobile terminal is received, data information is Flashing Light Parameters information, wherein data letter
Breath includes photometric data and the screening-mode information that user selects, and photometric data includes in the preset range of target reference object
Ambient light data.
Specifically, when user shoots, the screening-mode that mobile terminal can select first according to user, control camera shooting
Head detects the ambient light data in the preset range of target reference object, determines photometric data, finally according to survey light number
Flashing Light Parameters are determined according to the screening-mode selected with user, and power supply adaptor passes through usb communication cable reception Flashing Light Parameters
Information.
S230, image lamp 110 is controlled according to Flashing Light Parameters, so that image lamp 110 is clapped according to Flashing Light Parameters to target
Object is taken the photograph to provide and the matched flash luminance of Flashing Light Parameters.
Specifically, the controller 120 of power supply adaptor is connect with image lamp 110, controller 120 receives flash lamp ginseng
Number, and control image lamp 110 and provide corresponding flash luminance to target reference object according to Flashing Light Parameters, in shooting process
In, so that image lamp 110 provides optimal light filling, to meet the use demand of user.
In the embodiment of the present invention, controller 120 according to the handover operation of user, determines the Working mould of power supply adaptor first
Formula, wherein operating mode can be image lamp mode, the shooting that mobile terminal is selected according to the photometric data of camera and user
Mode determines Flashing Light Parameters information, and controller 120 receives the Flashing Light Parameters information from mobile terminal, and according to the letter
Breath control image lamp 110 provides and the matched flash luminance of Flashing Light Parameters to target reference object.It overcomes in the prior art,
The optical power of image lamp is fixed and invariable, and the shortcomings that not can be carried out adaptive adjustment, realizing image lamp being capable of basis
The purpose that the screening-mode of luminous environment information and user's selection around target reference object is flexibly glistened, provides one kind
The mode of personalizable shooting, meets the different demands of user.
Based on the above technical solution, before receiving the data information from the mobile terminal, further includes: build
Stand the communication connection of the power supply adaptor and the mobile terminal.
Specifically, before receiving the data information from mobile terminal, it is necessary first to establish power supply adaptor and movement
The communication connection of terminal in actual application can be by connecting a USB between mobile terminal and power supply adaptor
The communications cable carries out the transmission of data.
Embodiment three
Fig. 3 is a kind of structural schematic diagram of power supply adaptor control device provided in an embodiment of the present invention, which is applicable in
In a kind of execution power supply adaptor control method provided in an embodiment of the present invention.As shown in figure 3, the device can specifically include:
Determining module 310 determines the operating mode of the power supply adaptor for the handover operation according to user, wherein
The operating mode includes image lamp mode;
Receiving module 320, for receiving the data information from mobile terminal, the data information is Flashing Light Parameters letter
Breath, wherein the data information includes the screening-mode information of photometric data and user's selection, and the photometric data includes target
Ambient light data in the preset range of reference object;
Sending module 330, for the controller 120 to be controlled to the control information of image lamp, hair according to Flashing Light Parameters
Send to the image lamp 110 so that the image lamp 110 according to the Flashing Light Parameters to target reference object provide with it is described
The matched flash luminance of Flashing Light Parameters.
The power supply that any embodiment of that present invention provides can be performed in power supply adaptor control device provided in an embodiment of the present invention
Adapter control method has the corresponding functional module of execution method and beneficial effect.
The embodiment of the invention also provides a kind of mobile terminals, comprising: in the preset range for obtaining target reference object
Ambient light data and user select screening-mode;According to the screening-mode that photometric data and user select, determine that flash lamp is joined
Number information;Flashing Light Parameters information is sent to the controller 120 of power supply adaptor.Wherein, mobile terminal is selected according to user
Screening-mode, adjust camera and obtain the ambient light data in the preset range of target reference object.
Specifically, the mobile terminal in the embodiment of the present invention, have display function, touch function, 3G and 4G communication function,
Voice and audio-frequency function most importantly also have camera, have the function taken pictures of camera shooting, and camera images again when taking pictures,
Have the function of automatic light measuring, auto-focusing and automatic white balance, so that the image of shooting is more clear.In addition, mobile terminal
Also there is USB interface, which may be implemented connection and data biography between communication function, charge function and distinct device
Transmission function.
In the present embodiment, Flashing Light Parameters information is sent to power supply adaptor by mobile terminal, power supply adaptor according to
Flashing Light Parameters execute the flash operation of image lamp 110, at this point, the camera of mobile terminal can synchronize the pre- bat for carrying out image
It takes the photograph, mobile terminal can be by the image after shooting and bat image is compared in advance, judges whether the exposure of image is suitable;If suitable
It is performed image display by the display screen of mobile terminal, if improper, does not show image, and mobile terminal can recalculate sudden strain of a muscle
Light lamp parameter, and it is sent to power supply adaptor, control image lamp 110 carries out flash operation again;If be continuously shot three times
It is improper, then shooting operation is terminated, and user is notified to shoot failure, reselects screening-mode.
In conjunction with above embodiments one, two and three, illustrated with a specific example, as shown in figure 4, to be a kind of mobile whole
The structural schematic diagram that connect with power supply adaptor is held, by between the USB interface that is arranged on mobile terminal and power supply adaptor,
It is established and is communicated to connect with usb communication cable, be convenient for charging and data transfer operation.Mobile terminal is according to photometric data and use
The screening-mode of family selection, the concrete operations that control image lamp 110 is flexibly glistened, as shown in figure 5, indicating a kind of image lamp
Control and management flow chart power supply adaptor and mobile terminal are led to firstly, power supply adaptor is switched to image lamp mode
It crosses usb communication cable and establishes communication connection, mobile terminal is according to the photometric data of camera and the screening-mode of user's selection, really
Fixed flashing light lamp parameter information, then send Flashing Light Parameters information to the controller 120 of power supply adaptor, 120 basis of controller
The information controls image lamp 110, so that image lamp 110 provides the flash luminance to match with Flashing Light Parameters information;It is same with this
When, camera shoots target reference object, and mobile terminal judges whether exposure is suitable according to the image of shooting, if exposure
Properly, then it is performed image display by the display screen of mobile terminal, if improper, does not show image, and mobile terminal can weigh
It is new to calculate Flashing Light Parameters, and it is sent to power supply adaptor, control image lamp 110 carries out flash operation again;If continuous clap
It takes the photograph improper three times, then terminates shooting operation, and user is notified to shoot failure, reselect screening-mode.
The present invention overcomes existing skill by designing a kind of power supply adaptor, control method, control device and mobile terminal
Deficiency in art, realizing image lamp can be according to the shooting mould of luminous environment information and user's selection around target reference object
The purpose that formula is flexibly glistened, and the position of camera and image lamp is freely adjusted, providing one kind can be a
The mode of propertyization shooting.
It is understood that same or similar part can mutually refer in the various embodiments described above, in some embodiments
Unspecified content may refer to the same or similar content in other embodiments.
It should be noted that in the description of the present invention, term " first ", " second " etc. are used for description purposes only, without
It can be interpreted as indication or suggestion relative importance.In addition, in the description of the present invention, unless otherwise indicated, the meaning of " multiple "
Refer at least two.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiment or examples in can be combined in any suitable manner.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example
Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned
Embodiment is changed, modifies, replacement and variant.