Movatterモバイル変換


[0]ホーム

URL:


CN105530385A - A control method of a mobile terminal voice coil motor and mobile terminal - Google Patents

A control method of a mobile terminal voice coil motor and mobile terminal
Download PDF

Info

Publication number
CN105530385A
CN105530385ACN201510931162.1ACN201510931162ACN105530385ACN 105530385 ACN105530385 ACN 105530385ACN 201510931162 ACN201510931162 ACN 201510931162ACN 105530385 ACN105530385 ACN 105530385A
Authority
CN
China
Prior art keywords
mobile terminal
voice coil
coil motor
state
described mobile
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510931162.1A
Other languages
Chinese (zh)
Other versions
CN105530385B (en
Inventor
李德健
朱娜涛
蒋复岱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 LtdfiledCriticalVivo Mobile Communication Co Ltd
Priority to CN201510931162.1ApriorityCriticalpatent/CN105530385B/en
Publication of CN105530385ApublicationCriticalpatent/CN105530385A/en
Application grantedgrantedCritical
Publication of CN105530385BpublicationCriticalpatent/CN105530385B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Embodiments of the invention provide a method for controlling a voice coil motor of a mobile terminal. The method comprises the following steps: detecting whether the mobile terminal is switched to a pre-shooting mode; if the mobile terminal is switched to the pre-shooting mode, judging whether the mobile terminal is in an unused state; and if the mobile terminal is in the unused state, adjusting the driving current of the voice coil motor of the mobile terminal, to make the voice coil motor return to the position before the pre-shooting mode. The invention further provides a corresponding mobile terminal. When a camera is opened by mistake, but the camera is not used for shooting, the problem that the voice coil motor continuously and automatically focusing to increase the power consumption is solved, the energy consumption of the mobile terminal is reduced, and the standby duration is prolonged.

Description

Translated fromChinese
一种移动终端音圈马达的控制方法及移动终端A control method of a mobile terminal voice coil motor and mobile terminal

技术领域technical field

本发明涉及移动通信技术领域,并且更具体地,涉及一种移动终端音圈马达的控制方法及移动终端。The present invention relates to the technical field of mobile communication, and more specifically, to a method for controlling a voice coil motor of a mobile terminal and the mobile terminal.

背景技术Background technique

如今很多移动终端的摄像头都带有自动对焦功能。最常用的自动对焦是反差式对焦,通过音圈马达带动摄像头移动,不断改变焦点的位置,找到画面最清晰的位置,从而完成自动对焦。Nowadays, the cameras of many mobile terminals have an auto-focus function. The most commonly used auto-focus is the contrast-type focus. The voice coil motor drives the camera to move, constantly changes the focus position, and finds the clearest position to complete the auto-focus.

用户在使用移动终端时,经常会出现无意中打开拍照功能却没有进行拍照的情况,譬如,移动终端放在口袋中误触发拍照功能,或拍照后忘记关闭拍照应用等。如果开启了摄像头又没有进行拍照,则会根据物距的变化不断驱动音圈马达进行自动对焦,这将产生较大的电量消耗。When using a mobile terminal, the user often turns on the camera function unintentionally but does not take a picture. For example, the mobile terminal is placed in the pocket to trigger the camera function by mistake, or the camera application is forgotten to be closed after taking a picture. If the camera is turned on and no photo is taken, the voice coil motor will be continuously driven to autofocus according to the change of the object distance, which will consume a lot of power.

发明内容Contents of the invention

本发明实施例提供一种移动终端音圈马达的控制方法及移动终端,以解决无意开启了摄像头却没有使用摄像头拍照时,由于音圈马达不断自动对焦造成的耗电量增加的问题。Embodiments of the present invention provide a method for controlling a voice coil motor of a mobile terminal and a mobile terminal to solve the problem of increased power consumption due to continuous auto-focusing of the voice coil motor when the camera is unintentionally turned on but not used to take pictures.

第一方面,提供了一种移动终端音圈马达的控制方法,所述方法应用于移动终端,包括:In a first aspect, a method for controlling a voice coil motor of a mobile terminal is provided, and the method is applied to a mobile terminal, including:

检测移动终端是否切换到预拍照状态;Detect whether the mobile terminal switches to the pre-photographing state;

如果所述移动终端切换到预拍照状态,判断所述移动终端是否处于未使用状态;If the mobile terminal switches to the pre-photographing state, judging whether the mobile terminal is in an unused state;

如果所述移动终端处于未使用状态,则对所述移动终端的音圈马达的驱动电流进行调整,使所述音圈马达回到切换到预拍照状态之前所处的位置。If the mobile terminal is in the unused state, adjusting the driving current of the voice coil motor of the mobile terminal, so that the voice coil motor returns to the position it was in before switching to the pre-photographing state.

第二方面,还提供了一种移动终端,所述移动终端包括检测模块、判断模块和调整模块,其中:In the second aspect, a mobile terminal is also provided, and the mobile terminal includes a detection module, a judgment module and an adjustment module, wherein:

所述检测模块,用于检测移动终端是否切换到预拍照状态;The detection module is used to detect whether the mobile terminal switches to the pre-photographing state;

所述判断模块,用于当所述检测模块检测到所述移动终端切换到预拍照状态时,判断所述移动终端是否处于未使用状态;The judgment module is configured to judge whether the mobile terminal is in an unused state when the detection module detects that the mobile terminal is switched to a pre-photographing state;

所述调整模块,用于当所述判断模块判断出所述移动终端处于未使用状态时,对所述移动终端的音圈马达的驱动电流进行调整,使所述音圈马达回到切换到预拍照状态之前所处的位置。The adjusting module is configured to adjust the driving current of the voice coil motor of the mobile terminal when the judging module judges that the mobile terminal is in an unused state, so that the voice coil motor switches back to the preset state. The position before the state of taking pictures.

与现有技术相比,本发明实施例通过检测到移动终端摄像头处于开启却没有使用的状态时,对音圈马达的驱动电流进行调整,解决了无意开启了摄像头却没有使用摄像头拍照时,由于音圈马达不断自动对焦造成的耗电量增加的问题,减少了移动终端的耗能,增加了待机时长。Compared with the prior art, the embodiment of the present invention adjusts the driving current of the voice coil motor by detecting that the camera of the mobile terminal is turned on but not in use, so as to solve the problem of unintentionally turning on the camera but not using the camera to take pictures. The problem of increased power consumption caused by the continuous auto-focus of the voice coil motor reduces the power consumption of the mobile terminal and increases the standby time.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without paying creative labor.

图1表示本发明第一实施例的移动终端音圈马达的控制方法流程图;Fig. 1 shows the flow chart of the control method of the mobile terminal voice coil motor of the first embodiment of the present invention;

图2表示本发明第二实施例的移动终端音圈马达的控制方法流程图;FIG. 2 shows a flowchart of a control method for a mobile terminal voice coil motor according to a second embodiment of the present invention;

图3表示本发明第三实施例的移动终端音圈马达的控制方法流程图一;FIG. 3 shows a flow chart 1 of a control method for a mobile terminal voice coil motor according to a third embodiment of the present invention;

图4表示本发明第三实施例的移动终端音圈马达的控制方法流程图二;FIG. 4 shows the second flow chart of the control method of the voice coil motor of the mobile terminal according to the third embodiment of the present invention;

图5表示本发明第四实施例的移动终端的结构框图;Fig. 5 shows the structural block diagram of the mobile terminal of the 4th embodiment of the present invention;

图6表示本发明第五实施例的移动终端的内部实体结构框图。FIG. 6 shows a block diagram of the internal entity structure of the mobile terminal according to the fifth embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

第一实施例first embodiment

图1为本发明第一实施例的移动终端音圈马达的控制方法流程图,包括以下步骤:FIG. 1 is a flow chart of a control method for a mobile terminal voice coil motor according to a first embodiment of the present invention, including the following steps:

步骤101:检测移动终端是否切换到预拍照状态。Step 101: Detect whether the mobile terminal switches to the pre-photographing state.

本步骤101中,移动终端切换到预拍照状态可以是与摄像头相关的应用被开启,并进入了拍照预览界面,从原先的非拍照状态切换到预拍照状态。这里的非拍照状态可以是待机状态,也可以是部分应用正在运行的状态,还可以是其他摄像头未开启,且未进入拍照预览界面的状态,本发明实施例在此不作限制。In this step 101, the switching of the mobile terminal to the pre-photographing state may be that the application related to the camera is opened, and enters the photo-taking preview interface, and switches from the original non-photographing state to the pre-photographing state. The non-photographing state here may be a standby state, or a state in which some applications are running, or a state in which other cameras are not turned on and have not entered the photo preview interface, which is not limited in this embodiment of the present invention.

步骤102:如果所述移动终端切换到预拍照状态,判断所述移动终端是否处于未使用状态。Step 102: If the mobile terminal switches to a pre-photographing state, determine whether the mobile terminal is in an unused state.

本步骤102中的未使用状态是指用户未使用移动终端进行操作的状态。具体地,未使用状态可以是面向所述移动终端的触摸屏的预设距离范围内存在物体,如移动终端前方预设距离内有遮挡,也可以是所述移动终端的摄像头预设距离范围内的环境光强度小于预设强度,如摄像头被遮挡,也可以是所述移动终端在预设方向上有预设的加速度或位移,如移动终端产生幅度较大的晃动等。这些状态可以通过移动终端的距离传感器、摄像头感光元件或加速度传感器等进行检测,本发明实施例在此不作限定。The unused state in step 102 refers to a state in which the user does not use the mobile terminal to perform operations. Specifically, the unused state may be that there is an object within a preset distance range facing the touch screen of the mobile terminal, such as an obstruction within a preset distance in front of the mobile terminal, or an object within a preset distance range of the camera of the mobile terminal. The ambient light intensity is less than the preset intensity, for example, the camera is blocked, or the mobile terminal has a preset acceleration or displacement in the preset direction, for example, the mobile terminal shakes to a large extent. These states may be detected by a distance sensor, a photosensitive element of a camera, or an acceleration sensor of the mobile terminal, which is not limited in this embodiment of the present invention.

步骤103:如果所述移动终端处于未使用状态,则对所述移动终端的音圈马达的驱动电流进行调整,使所述音圈马达回到切换到预拍照状态之前所处的位置。Step 103: If the mobile terminal is not in use, adjust the driving current of the voice coil motor of the mobile terminal, so that the voice coil motor returns to the position it was in before switching to the pre-photographing state.

本步骤103中,对音圈马达的驱动电流进行的调整可以是直接将驱动关闭使驱动电流值为零,即对音圈马达进行断电,也可以是将驱动电流减小到一个预设的电流值,还可以是其他对驱动电流的大小进行的调整,本发明实施例在此不作限定。In this step 103, the adjustment of the driving current of the voice coil motor can be directly turning off the driving to make the driving current value zero, that is, powering off the voice coil motor, or reducing the driving current to a preset value. The current value can also be other adjustments to the magnitude of the driving current, which is not limited in this embodiment of the present invention.

值得注意的是,音圈马达在切换到预拍照状态之前所处的位置,具体为移动终端摄像头处于非拍照状态下音圈马达所处的原始位置,这里的非拍照状态可以是待机状态,也可以是部分应用正在运行的状态,还可以是其他摄像头未开启,且未进入拍照预览界面的状态,本发明实施例在此不作限制。It is worth noting that the position of the voice coil motor before switching to the pre-photographing state is specifically the original position of the voice coil motor when the camera of the mobile terminal is in the non-photographing state. The non-photographing state here can be the standby state, or It may be a state that some applications are running, or it may be a state that other cameras are not turned on and have not entered the photo preview interface, which is not limited in this embodiment of the present invention.

本发明实施例通过检测到移动终端摄像头开启却没有使用的状态时,对音圈马达的驱动电流进行调整,解决了无意开启了摄像头却没有使用摄像头拍照时,由于音圈马达不断自动对焦造成的耗电量增加的问题,减少了移动终端的耗能,增加了待机时长。The embodiment of the present invention adjusts the driving current of the voice coil motor by detecting that the camera of the mobile terminal is turned on but not in use, so as to solve the problem caused by the continuous auto-focus of the voice coil motor when the camera is unintentionally turned on but not used to take pictures. The problem of increased power consumption reduces the power consumption of the mobile terminal and increases the standby time.

第二实施例second embodiment

图2为本发明第二实施例的实现移动终端音圈马达的控制方法流程图,包括以下步骤:FIG. 2 is a flow chart of a control method for realizing a mobile terminal voice coil motor according to a second embodiment of the present invention, including the following steps:

步骤201:检测移动终端是否切换到预拍照状态。Step 201: Detect whether the mobile terminal switches to a pre-photographing state.

本步骤201中,移动终端切换到预拍照状态具体是与摄像头相关的应用被开启,并进入了拍照预览界面,从原先的非拍照状态切换到预拍照状态。其中,这里的非拍照状态可以是待机状态,也可以是部分应用正在运行的状态,还可以是其他摄像头未开启,且未进入拍照预览界面的状态,本发明实施例在此不作限制。具体地,可以通过检测与摄像头相关的控制芯片的电源是否接通来判断移动终端是否开启了摄像头,或通过识别移动终端的摄像头获取周围环境图像并显示在界面上来判断是否进入了拍照预览界面。例如,移动终端检测到摄像头控制芯片通电或移动终端触摸屏界面显示摄像头获取的周围环境的图像,则可以认为移动终端切换到了预拍照状态。In this step 201, the mobile terminal switches to the pre-photographing state, specifically, the application related to the camera is opened, and enters the photo-taking preview interface, and switches from the original non-photographing state to the pre-photographing state. Wherein, the non-photographing state here may be a standby state, or a state in which some applications are running, or a state in which other cameras are not turned on and have not entered the photo preview interface, which is not limited in this embodiment of the present invention. Specifically, it can be judged whether the mobile terminal has turned on the camera by detecting whether the power supply of the control chip related to the camera is turned on, or whether the camera preview interface has been entered by identifying the camera of the mobile terminal to capture the surrounding environment image and displaying it on the interface. For example, if the mobile terminal detects that the camera control chip is powered on or the touch screen interface of the mobile terminal displays the image of the surrounding environment captured by the camera, it can be considered that the mobile terminal has switched to the pre-photographing state.

步骤202:如果所述移动终端切换到预拍照状态,判断所述移动终端是否处于未使用状态。Step 202: If the mobile terminal switches to a pre-photographing state, determine whether the mobile terminal is in an unused state.

其中,本步骤202中的未使用状态为面向所述移动终端的触摸屏的预设距离内存在物体,或所述移动终端的摄像头预设距离范围内的环境光强度小于预设强度,或所述移动终端在预设方向上有预设的加速度或位移。Wherein, the unused state in this step 202 is that there is an object within the preset distance facing the touch screen of the mobile terminal, or the ambient light intensity within the preset distance range of the camera of the mobile terminal is less than the preset intensity, or the The mobile terminal has a preset acceleration or displacement in a preset direction.

移动终端的未使用状态可以是面向所述移动终端的触摸屏的预设距离内存在物体,即移动终端处于触摸屏被遮挡的情况,如移动终端被用户放在口袋里、触摸屏朝下倒扣在桌面等,因此可以从面向移动终端触摸屏的方向上进行是否存在物体的检测,如果存在物体遮挡,则进一步获取该物体与移动终端的触摸屏的距离,并判断该距离是否小于预设距离,如果该距离小于预设距离,则移动终端处于未使用状态。The unused state of the mobile terminal can be that there is an object within a preset distance facing the touch screen of the mobile terminal, that is, the mobile terminal is in a situation where the touch screen is blocked, such as the mobile terminal is placed in the user's pocket and the touch screen is turned upside down on the desktop Etc. Therefore, it is possible to detect whether there is an object from the direction facing the touch screen of the mobile terminal. If there is an object occlusion, then further obtain the distance between the object and the touch screen of the mobile terminal, and judge whether the distance is less than the preset distance. If the distance If the distance is less than the preset distance, the mobile terminal is in an unused state.

具体地,可以利用距离传感器判断面向所述移动终端的触摸屏的预设距离内是否存在物体。这里的距离传感器可以是感应型距离传感器、超声波距离传感器、光电型距离传感器等,本发明实施例在此不作限定。Specifically, a distance sensor may be used to determine whether there is an object within a preset distance facing the touch screen of the mobile terminal. The distance sensor here may be an inductive distance sensor, an ultrasonic distance sensor, a photoelectric distance sensor, etc., which are not limited in this embodiment of the present invention.

移动终端的未使用状态也可以是移动终端摄像头预设距离范围内的环境光强度小于预设强度,即摄像头被遮挡的情况,如移动终端触摸屏朝上或朝下放在桌面等,因此可以对后置或前置摄像头分别进行是否被遮挡光线的检测,并判断后置或前置摄像头周围的环境光强度是否小于预设强度。The unused state of the mobile terminal can also be that the ambient light intensity within the preset distance range of the mobile terminal camera is less than the preset intensity, that is, the situation where the camera is blocked, such as the mobile terminal touch screen facing up or down on the desktop, etc., so the rear The front camera or the front camera respectively detects whether the light is blocked, and judges whether the ambient light intensity around the rear camera or the front camera is less than the preset intensity.

具体地,可以利用摄像头的感光元件或拍照预览界面的图像质量检测摄像头周围的环境光强度。如果是利用感光元件,则通过检测感光元件的进光量来获取环境光强度,进而判断当前环境光强度是否小于预设强度,如果当前环境光强度小于预设强度,则移动终端处于未使用状态;如果是利用拍照预览界面,则可以通过计算拍照预览界面中显示的当前环境图像的平均亮度值,并跟与预设强度值相对应的图像平均亮度值作对比,从而判断当前环境光强度是否小于预设强度,如果当前环境光强度小于预设强度,则移动终端处于未使用状态。Specifically, the ambient light intensity around the camera can be detected by using the photosensitive element of the camera or the image quality of the photo preview interface. If the photosensitive element is used, the ambient light intensity is obtained by detecting the light input amount of the photosensitive element, and then it is judged whether the current ambient light intensity is less than the preset intensity. If the current ambient light intensity is less than the preset intensity, the mobile terminal is in an unused state; If you use the photo preview interface, you can calculate the average brightness value of the current environment image displayed in the photo preview interface, and compare it with the image average brightness value corresponding to the preset intensity value, so as to determine whether the current ambient light intensity is less than Preset intensity, if the current ambient light intensity is less than the preset intensity, the mobile terminal is in an unused state.

移动终端的未使用状态也可以是移动终端在预设方向上有预设的加速度或位移,即处于运动中的情况,如用户走动时将移动终端拿在手中、放在包里使移动终端晃动等。值得注意的是,这里的运动中的情况不包括移动终端与环境相对静止的运动,如用户在交通工具上使用手机、在走动中使用手机等。The unused state of the mobile terminal can also be that the mobile terminal has a preset acceleration or displacement in a preset direction, that is, a situation in which the mobile terminal is in motion, such as when the user walks around, holding the mobile terminal in his hand or putting it in a bag to make the mobile terminal shake Wait. It is worth noting that the situation in motion here does not include the relatively static motion between the mobile terminal and the environment, such as the user using a mobile phone on a vehicle, using a mobile phone while walking, and so on.

具体地,可以利用加速度传感器判断移动终端在预设方向上是否有预设的加速度或位移。通过加速度传感器获取移动终端的运动加速度和位移,根据运动加速度和位移的变化判断移动终端是否有晃动,如果移动终端的运动加速度小于预设的加速度值,或移动终端的位移值小于预设的位移值,则认为移动终端没有发生晃动;如果移动终端的运动加速度大于或等于预设的加速度值,且移动终端的位移值大于或等于预设的位移值,则认为移动终端发生了晃动,进而判定移动终端处于未使用状态。Specifically, an acceleration sensor may be used to determine whether the mobile terminal has a preset acceleration or displacement in a preset direction. Obtain the motion acceleration and displacement of the mobile terminal through the acceleration sensor, and judge whether the mobile terminal is shaking according to the change of motion acceleration and displacement. If the motion acceleration of the mobile terminal is less than the preset acceleration value, or the displacement value of the mobile terminal is less than the preset displacement value, it is considered that the mobile terminal has not shaken; if the motion acceleration of the mobile terminal is greater than or equal to the preset acceleration value, and the displacement value of the mobile terminal is greater than or equal to the preset displacement value, it is considered that the mobile terminal has shaken, and then judge The mobile terminal is not in use.

步骤203:如果所述移动终端处于未使用状态,则对所述移动终端的音圈马达进行断电,使所述音圈马达回到切换到预拍照状态之前所处的位置。Step 203: If the mobile terminal is not in use, power off the voice coil motor of the mobile terminal, so that the voice coil motor returns to the position it was in before switching to the pre-photographing state.

具体地,对音圈马达进行断电,即将音圈马达的驱动电流设为零,音圈马达由于失去由驱动电流产生的作用力而自动返回切换到预拍照状态之前所处的位置。Specifically, the voice coil motor is powered off, that is, the driving current of the voice coil motor is set to zero, and the voice coil motor automatically returns to the position before switching to the pre-photographing state due to the loss of the force generated by the driving current.

其中,移动终端在切换到预拍照状态之前音圈马达所处的位置为未通电时音圈马达所在的初始位置。例如,当音圈马达为中置式马达时,初始位置是中间位置;当音圈马达为传统马达时,初始位置是最底端的位置。Wherein, the position of the voice coil motor before the mobile terminal switches to the pre-photographing state is the initial position of the voice coil motor when it is not powered on. For example, when the voice coil motor is a mid-mounted motor, the initial position is the middle position; when the voice coil motor is a conventional motor, the initial position is the bottommost position.

本步骤203通过在移动终端处于未使用状态时对音圈马达进行断电,有效地阻止了在摄像头没有进行拍照时由于音圈马达不断自动对焦而造成的无意义的电能消耗。In this step 203, by powering off the voice coil motor when the mobile terminal is not in use, it effectively prevents meaningless power consumption caused by continuous auto-focusing of the voice coil motor when the camera is not taking pictures.

可选地,在对所述移动终端的音圈马达进行断电,使所述音圈马达回到切换到预拍照状态之前所处的位置步骤之后,继续判断移动终端是否处于使用状态,这里的使用状态可以为面向所述移动终端的触摸屏的预设距离内不存在物体,且所述移动终端的摄像头预设距离范围内的环境光强度大于或等于所述预设强度,且所述移动终端在所述预设方向上没有所述预设的加速度或位移。本发明实施例的使用状态指用户有对移动终端进行操作的状态。Optionally, after the voice coil motor of the mobile terminal is powered off, and the voice coil motor is returned to the position it was in before switching to the pre-photographing state, continue to determine whether the mobile terminal is in use, where The use state may be that there is no object within a preset distance facing the touch screen of the mobile terminal, and the ambient light intensity within the preset distance range of the camera of the mobile terminal is greater than or equal to the preset intensity, and the mobile terminal There is no said preset acceleration or displacement in said preset direction. The use state in the embodiment of the present invention refers to a state in which the user operates the mobile terminal.

如果移动终端处于使用状态,则对音圈马达重新上电,使所述音圈马达的位置根据拍照场景进行移动,实现自动对焦功能。If the mobile terminal is in use, the voice coil motor is powered on again, so that the position of the voice coil motor is moved according to the photographing scene to realize the automatic focusing function.

本发明实施例通过检测到移动终端摄像头被开启却没有使用的状态时,对音圈马达进行断电,解决了无意开启了摄像头却没有使用摄像头拍照时,由于音圈马达不断自动对焦造成的耗电量增加的问题,减少了移动终端的耗能,增加了待机时长。In the embodiment of the present invention, by detecting that the mobile terminal camera is turned on but not in use, the voice coil motor is powered off, which solves the power consumption caused by the continuous auto-focusing of the voice coil motor when the camera is unintentionally turned on but not used to take pictures. The problem of increased power reduces the energy consumption of the mobile terminal and increases the standby time.

第三实施例third embodiment

图3为本发明第三实施例的实现移动终端音圈马达的控制方法流程图,与第二实施例主要通过对音圈马达断电不同的是,第三实施例主要是将音圈马达的驱动电流调整至一个预设值。Fig. 3 is a flow chart of the control method for realizing the voice coil motor of the mobile terminal according to the third embodiment of the present invention. Unlike the second embodiment, which mainly cuts off the power of the voice coil motor, the third embodiment mainly uses the power of the voice coil motor The driving current is adjusted to a preset value.

第三实施例的所述音圈马达的控制方法,包括以下步骤:The control method of the voice coil motor of the third embodiment includes the following steps:

步骤301:检测移动终端是否切换到预拍照状态。Step 301: Detect whether the mobile terminal switches to the pre-photographing state.

本步骤301中,检测方法与本发明第二实施例中步骤201的检测方法相同,在这里不再赘述。In this step 301, the detection method is the same as the detection method in step 201 in the second embodiment of the present invention, and will not be repeated here.

步骤302:当检测到所述移动终端切换到预拍照状态时,判断所述移动终端是否处于未使用状态。Step 302: When it is detected that the mobile terminal has switched to a pre-photographing state, determine whether the mobile terminal is in an unused state.

本步骤302中的未使用状态为面向所述移动终端的触摸屏的预设距离内存在物体,或所述移动终端的摄像头预设距离范围内的环境光强度小于预设强度,或所述移动终端在预设方向上有预设的加速度或位移。具体的是否处于未使用状态的判断方法与第二实施例中步骤202的判断方法相同,在这里不再赘述。The unused state in step 302 is that there is an object within the preset distance facing the touch screen of the mobile terminal, or the ambient light intensity within the preset distance range of the camera of the mobile terminal is less than the preset intensity, or the mobile terminal There is a preset acceleration or displacement in a preset direction. The specific method for judging whether it is in an unused state is the same as the method for judging in step 202 in the second embodiment, and will not be repeated here.

步骤303:如果所述移动终端处于未使用状态,则将所述移动终端的音圈马达的驱动电流调整为一预设电流值,使所述音圈马达回到切换到预拍照状态之前所处的位置。Step 303: If the mobile terminal is not in use, adjust the driving current of the voice coil motor of the mobile terminal to a preset current value, so that the voice coil motor returns to the state before switching to the pre-photographing state s position.

具体地,当移动终端判断出移动终端处于未使用状态时,将音圈马达的驱动电流调整为一预设电流值,而音圈马达根据这个预设电流的驱动回到切换到预拍照状态之前所处的位置。其中,移动终端在切换到预拍照状态之前音圈马达所处的位置为未通电时音圈马达所在的初始位置。例如,当音圈马达为中置式马达时,初始位置是中间位置;当音圈马达为传统马达时,初始位置是最底端的位置。Specifically, when the mobile terminal determines that the mobile terminal is not in use, the driving current of the voice coil motor is adjusted to a preset current value, and the driving of the voice coil motor according to the preset current returns to the state before switching to the pre-photographing state. where you are. Wherein, the position of the voice coil motor before the mobile terminal switches to the pre-photographing state is the initial position of the voice coil motor when it is not powered on. For example, when the voice coil motor is a mid-mounted motor, the initial position is the middle position; when the voice coil motor is a conventional motor, the initial position is the bottommost position.

在本发明实施例中,预设电流值的设定与音圈马达的启动电流大小有关。由于要使音圈马达返回或保持在未通电时音圈马达所在的初始位置,暂停自动对焦,所以预设电流值小于音圈马达的启动电流。例如,移动终端所使用的音圈马达的启动电流为15mA,那么预设电流值可以设为10mA,也可以设为5mA,还可以是其他小于15mA,大于0的任意值,本发明实施例在此不作限定。In the embodiment of the present invention, the setting of the preset current value is related to the starting current of the voice coil motor. Since the voice coil motor needs to return or remain at the initial position where the voice coil motor is when no power is applied, and the auto-focus is suspended, the preset current value is smaller than the start-up current of the voice coil motor. For example, the starting current of the voice coil motor used in the mobile terminal is 15mA, then the preset current value can be set to 10mA, or 5mA, or any other value less than 15mA and greater than 0. This is not limited.

本步骤303通过将音圈马达的驱动电流调整到一个较小的预设值,在减少移动终端在未使用状态时自动对焦造成的耗电的同时,将音圈马达保持在通电状态,即保持音圈马达的驱动电流为上述预设电流值,恢复自动对焦时音圈马达不需要重新上电,提高了拍照的控制效率。In this step 303, by adjusting the driving current of the voice coil motor to a smaller preset value, while reducing the power consumption caused by auto-focusing when the mobile terminal is not in use, keep the voice coil motor in the power-on state, that is, keep the The driving current of the voice coil motor is the above-mentioned preset current value, and the voice coil motor does not need to be powered on again when the auto focus is restored, which improves the control efficiency of taking pictures.

步骤304:判断所述移动终端是否处于使用状态;如果所述移动终端处于所述使用状态,则根据所述预设电流值对所述音圈马达的驱动电流进行调整,使所述音圈马达的位置根据拍照场景进行移动。Step 304: Determine whether the mobile terminal is in use; if the mobile terminal is in use, adjust the driving current of the voice coil motor according to the preset current value, so that the voice coil motor The position of the camera is moved according to the shooting scene.

具体地,本发明实施例中的使用状态可以为面向所述移动终端的触摸屏的预设距离内不存在物体,且所述移动终端的摄像头预设距离范围的环境光强度大于或等于预设强度,且所述移动终端在所述预设方向上没有所述预设的加速度或位移。Specifically, the use state in the embodiment of the present invention may be that there is no object within a preset distance facing the touch screen of the mobile terminal, and the ambient light intensity within the preset distance range of the camera of the mobile terminal is greater than or equal to the preset intensity , and the mobile terminal does not have the preset acceleration or displacement in the preset direction.

具体地,判断移动终端是否处于使用状态的原理和本发明实施例的步骤302中判断移动终端是否处于未使用状态的原理相似,当移动终端处于使用状态时,在原来驱动电流的基础上增大驱动电流,而不是在断电的情况下重新上电,使音圈马达达到启动条件,并随着拍照场景的变化改变位置,进而实现自动对焦功能的恢复。Specifically, the principle of judging whether the mobile terminal is in use is similar to the principle of judging whether the mobile terminal is in the unused state in step 302 of the embodiment of the present invention. When the mobile terminal is in use, the driving current is increased on the basis of the original driving current. The driving current, instead of re-powering in the case of power failure, enables the voice coil motor to reach the starting condition, and changes its position with the change of the photographing scene, thereby realizing the recovery of the autofocus function.

可选地,本发明实施例的另一种实现方式如图4所示,步骤303之后包括步骤404:如果所述移动终端处于未使用状态的的时间大于一时间阈值,则对所述音圈马达进行断电。Optionally, another implementation manner of the embodiment of the present invention is shown in FIG. 4 , after step 303, step 404 is included: if the time that the mobile terminal is in the unused state is greater than a time threshold, the voice coil The motor is de-energized.

具体地,这里可以通过定时器获取移动终端处于未使用状态所持续的时间,并将获取到的时间与预设的时间阈值相比较,当移动终端持续处于未使用状态的时间大于这个时间阈值,则断开音圈马达的驱动电流。Specifically, the time during which the mobile terminal is in the unused state can be obtained through a timer here, and the obtained time is compared with a preset time threshold. When the time that the mobile terminal is continuously in the unused state is greater than this time threshold, Then the driving current of the voice coil motor is cut off.

这样避免了当移动终端长时间处于未使用状态时,由于音圈马达一直通电而产生的仍然在消耗电量的问题,进一步减小了耗能,增加移动终端的待机时长。In this way, when the mobile terminal is not in use for a long time, the problem of power consumption caused by the voice coil motor being powered on all the time is avoided, the energy consumption is further reduced, and the standby time of the mobile terminal is increased.

本发明实施例通过检测到移动终端摄像头开启却没有使用的状态时,将音圈马达的驱动电流调整至一预设电流值,解决了移动终端由于关闭音圈马达自动对焦导致的再次自动对焦时延迟较大的问题,在减少移动终端耗能的同时,提高了移动终端的使用效率和用户体验。The embodiment of the present invention adjusts the driving current of the voice coil motor to a preset current value by detecting that the camera of the mobile terminal is turned on but not in use, so as to solve the problem of re-autofocus caused by turning off the autofocus of the voice coil motor of the mobile terminal. In order to solve the problem of large delay, while reducing the energy consumption of the mobile terminal, the use efficiency and user experience of the mobile terminal are improved.

第四实施例Fourth embodiment

图5是本发明第四实施例的移动终端的结构图。图5所示的移动终端500包括检测模块501、判断模块502和调整模块503。FIG. 5 is a structural diagram of a mobile terminal according to a fourth embodiment of the present invention. The mobile terminal 500 shown in FIG. 5 includes a detection module 501 , a judgment module 502 and an adjustment module 503 .

检测模块501,用于检测移动终端500是否切换到预拍照状态。The detection module 501 is configured to detect whether the mobile terminal 500 switches to a pre-photographing state.

这里的移动终端500切换到预拍照状态可以是与摄像头相关的应用被开启,并进入了拍照预览界面,从原先的非拍照状态切换到预拍照状态。其中,这里的非拍照状态可以是待机状态,也可以是部分应用正在运行的状态,还可以是其他摄像头未开启,且未进入拍照预览界面的状态,本发明实施例在此不作限制。The switching of the mobile terminal 500 to the pre-photographing state here may be that the application related to the camera is opened, and enters the photo-taking preview interface, and switches from the original non-photographing state to the pre-photographing state. Wherein, the non-photographing state here may be a standby state, or a state in which some applications are running, or a state in which other cameras are not turned on and have not entered the photo preview interface, which is not limited in this embodiment of the present invention.

判断模块502,用于当所述检测模块501检测到所述移动终端500切换到预拍照状态时,判断所述移动终端500是否处于未使用状态。A judging module 502, configured to judge whether the mobile terminal 500 is in an unused state when the detecting module 501 detects that the mobile terminal 500 is switched to a pre-photographing state.

具体地,本发明实施例的未使用状态可以是面向所述移动终端500的触摸屏的预设距离内存在物体,或所述移动终端500的摄像头预设距离范围内的环境光强度小于预设强度,或所述移动终端500在预设方向上有预设的加速度或位移,本发明实施例在此不作限制。Specifically, the unused state of the embodiment of the present invention may be that there is an object within a preset distance facing the touch screen of the mobile terminal 500, or the ambient light intensity within the preset distance range of the camera of the mobile terminal 500 is less than the preset intensity , or the mobile terminal 500 has a preset acceleration or displacement in a preset direction, which is not limited in this embodiment of the present invention.

调整模块503,用于当所述判断模块502判断出所述移动终端500处于未使用状态时,对所述移动终端500的音圈马达的驱动电流进行调整,使所述音圈马达回到切换到预拍照状态之前所处的位置。具体地,有两种方式:The adjustment module 503 is configured to adjust the driving current of the voice coil motor of the mobile terminal 500 when the judgment module 502 judges that the mobile terminal 500 is not in use, so that the voice coil motor returns to switch The position it was in before reaching the pre-photographing state. Specifically, there are two ways:

方式一,如果所述移动终端500处于未使用状态,则对所述音圈马达进行断电,使所述音圈马达回到切换到预拍照状态之前所处的位置;Way 1, if the mobile terminal 500 is not in use, power off the voice coil motor, so that the voice coil motor returns to the position it was in before switching to the pre-photographing state;

方式二,如果所述移动终端500处于未使用状态,则将所述音圈马达的驱动电流调整为一预设电流值,使所述音圈马达回到切换到预拍照状态之前所处的位置。Method 2, if the mobile terminal 500 is not in use, adjust the driving current of the voice coil motor to a preset current value, so that the voice coil motor returns to the position it was in before switching to the pre-photographing state .

可选地,所述判断模块502还用于,在调整模块503将所述音圈马达的驱动电流调整为一预设电流值,使所述音圈马达回到切换到预拍照状态前所处的位置之后,判断所述移动终端500是否处于使用状态,所述使用状态可以为面向所述移动终端500的触摸屏的预设距离内不存在物体,且所述移动终端500的摄像头预设距离范围内的环境光强度大于或等于所述预设强度,且所述移动终端500在所述预设方向上没有所述预设的加速度或位移。Optionally, the judging module 502 is also configured to adjust the driving current of the voice coil motor to a preset current value in the adjusting module 503, so that the voice coil motor returns to the state before switching to the pre-photographing state. After the location, determine whether the mobile terminal 500 is in the use state, the use state can be that there is no object within the preset distance facing the touch screen of the mobile terminal 500, and the camera of the mobile terminal 500 has a preset distance range The ambient light intensity within is greater than or equal to the preset intensity, and the mobile terminal 500 does not have the preset acceleration or displacement in the preset direction.

所述调整模块503还用于,当所述判断模块502判断出所述移动终端500处于所述使用状态时,根据所述预设电流值对所述移动终端500的音圈马达的驱动电流进行调整,使所述音圈马达的位置根据拍照场景进行移动。The adjusting module 503 is further configured to, when the judging module 502 judges that the mobile terminal 500 is in the use state, adjust the driving current of the voice coil motor of the mobile terminal 500 according to the preset current value. Adjust to make the position of the voice coil motor move according to the photographing scene.

可选地,所述调整模块503还用于,在将所述音圈马达的驱动电流调整为一预设电流值,使所述音圈马达回到切换到预拍照状态之前所处的位置之后,如果所述移动终端500处于未使用状态的时间大于一时间阈值,则对所述音圈马达进行断电。Optionally, the adjustment module 503 is further configured to, after adjusting the driving current of the voice coil motor to a preset current value, to return the voice coil motor to the position before switching to the pre-photographing state , if the time that the mobile terminal 500 is in the unused state is greater than a time threshold, power off the voice coil motor.

本实施例提供的移动终端能够实现第一、第二和第三实施例中移动终端音圈马达的控制方法的各个过程。The mobile terminal provided in this embodiment can implement various processes of the methods for controlling the voice coil motor of the mobile terminal in the first, second and third embodiments.

本发明实施例通过检测到移动终端摄像头被开启却没有使用的状态时,对音圈马达的驱动电流进行调整,解决了无意开启了摄像头却没有使用摄像头拍照时,由于音圈马达不断自动对焦造成的耗电量增加的问题,减少了移动终端的耗能,增加了待机时长。The embodiment of the present invention adjusts the driving current of the voice coil motor by detecting that the camera of the mobile terminal is turned on but not in use, so as to solve the problem caused by the continuous auto-focusing of the voice coil motor when the camera is unintentionally turned on but not used to take pictures. The problem of increased power consumption reduces the power consumption of the mobile terminal and increases the standby time.

第五实施例fifth embodiment

图6是本发明第五实施例的移动终端的内部实体结构框图。图6所示的移动终端600包括:至少一个处理器601、存储器602、摄像头模组605、至少一个网络接口604和用户接口603。移动终端600中的各个组件通过总线系统606耦合在一起。可理解,总线系统606用于实现这些组件之间的连接通信。总线系统606除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图6中将各种总线都标为总线系统606。Fig. 6 is a block diagram of the internal entity structure of the mobile terminal according to the fifth embodiment of the present invention. The mobile terminal 600 shown in FIG. 6 includes: at least one processor 601 , a memory 602 , a camera module 605 , at least one network interface 604 and a user interface 603 . Various components in the mobile terminal 600 are coupled together through a bus system 606 . It can be understood that the bus system 606 is used to realize connection and communication between these components. In addition to the data bus, the bus system 606 also includes a power bus, a control bus and a status signal bus. However, the various buses are labeled as bus system 606 in FIG. 6 for clarity of illustration.

其中,移动终端600可以为手机、平板电脑、个人数字助理(PersonalDigitalAssistant,PDA)或车载电脑等。Wherein, the mobile terminal 600 may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.

可以理解,本发明实施例中的存储器602可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-OnlyMemory,ROM)、可编程只读存储器(ProgrammableROM,PROM)、可擦除可编程只读存储器(ErasablePROM,EPROM)、电可擦除可编程只读存储器(ElectricallyEPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(RandomAccessMemory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(StaticRAM,SRAM)、动态随机存取存储器(DynamicRAM,DRAM)、同步动态随机存取存储器(SynchronousDRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(DoubleDataRateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(EnhancedSDRAM,ESDRAM)、同步连接动态随机存取存储器(SynchlinkDRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambusRAM,DRRAM)。本文描述的系统和方法的存储器602旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 602 in the embodiment of the present invention may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the non-volatile memory can be read-only memory (Read-OnlyMemory, ROM), programmable read-only memory (ProgrammableROM, PROM), erasable programmable read-only memory (ErasablePROM, EPROM), electrically erasable Programming read-only memory (Electrically EPROM, EEPROM) or flash memory. The volatile memory may be random access memory (Random Access Memory, RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), Double data rate synchronous dynamic random access memory (DoubleDataRateSDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (EnhancedSDRAM, ESDRAM), synchronous connection dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM). Memory 602 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

在一些实施方式中,存储器602存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统6021和应用程序6022。In some implementations, the memory 602 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 6021 and an application program 6022 .

其中,操作系统6021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序6022,包含各种应用程序,例如媒体播放器(MediaPlayer)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序6022中。Among them, the operating system 6021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing hardware-based tasks. The application program 6022 includes various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., and is used to implement various application services. The program for realizing the method of the embodiment of the present invention may be included in the application program 6022 .

在本发明实施例中,处理器601可以包括移动终端600上的各种传感器,如距离传感器、光线传感器、加速度传感器等,用户接口603包括移动终端600的触摸屏、键盘输入设备、耳机等,摄像头模组605包括但不限于驱动装置和音圈马达,通过调用存储器602存储的程序或指令,具体的,可以是应用程序6022中存储的程序或指令,摄像头模组605用于检测移动终端600是否切换到预拍照状态,处理器601用于当摄像头模组605检测到移动终端600切换到预拍照状态时,判断所述移动终端600是否处于未使用状态,当所述移动终端600处于未使用状态时,摄像头模组605对音圈马达的驱动电流进行调整,使所述音圈马达回到切换到预拍照状态之前所处的位置。In the embodiment of the present invention, the processor 601 may include various sensors on the mobile terminal 600, such as a distance sensor, a light sensor, an acceleration sensor, etc., and the user interface 603 includes a touch screen, a keyboard input device, an earphone, etc. of the mobile terminal 600, and a camera The module 605 includes but is not limited to a driving device and a voice coil motor. By calling the program or instruction stored in the memory 602, specifically, the program or instruction stored in the application program 6022, the camera module 605 is used to detect whether the mobile terminal 600 switches When the camera module 605 detects that the mobile terminal 600 is switched to the pre-photographing state, the processor 601 is used to determine whether the mobile terminal 600 is in the unused state, and when the mobile terminal 600 is in the unused state , the camera module 605 adjusts the driving current of the voice coil motor, so that the voice coil motor returns to the position it was in before switching to the pre-photographing state.

其中,摄像头模组605检测移动终端600是否切换到预拍照状态具体是检测是否开启摄像头或进入了拍照预览界面。具体地,摄像头模组605可以通过检测与摄像头相关的控制芯片的电源是否接通来判断移动终端600是否开启了摄像头,或通过识别移动终端600的摄像头获取周围环境图像并显示在触摸屏界面上来判断是否进入了拍照预览界面。例如,摄像头模组605检测到摄像头控制芯片通电或触摸屏界面显示摄像头获取的周围环境的图像,则可以认为移动终端600切换到了预拍照状态。Wherein, the camera module 605 detects whether the mobile terminal 600 switches to the pre-photographing state, specifically detects whether the camera is turned on or enters the photo preview interface. Specifically, the camera module 605 can determine whether the mobile terminal 600 has turned on the camera by detecting whether the power supply of the control chip related to the camera is turned on, or determine whether the camera of the mobile terminal 600 acquires the surrounding environment image and displays it on the touch screen interface. Whether to enter the photo preview interface. For example, when the camera module 605 detects that the camera control chip is powered on or the touch screen interface displays the image of the surrounding environment captured by the camera, it can be considered that the mobile terminal 600 has switched to the pre-photographing state.

可选地,摄像头模组605对音圈马达的驱动电流进行的调整可以是对所述音圈马达进行断电。Optionally, the camera module 605 may adjust the driving current of the voice coil motor by powering off the voice coil motor.

可选地,摄像头模组605对音圈马达的驱动电流进行的调整可以是将所述音圈马达的驱动电流调整为一预设电流值。Optionally, the adjustment of the driving current of the voice coil motor by the camera module 605 may be adjusting the driving current of the voice coil motor to a preset current value.

上述本发明实施例揭示的方法可以应用于处理器601控制的摄像头模组605中,或者由处理器601实现。处理器601可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器601中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器601可以是通用处理器、数字信号处理器(DigitalSignalProcessor,DSP)、专用集成电路(ApplicationSpecificIntegratedCircuit,ASIC)、现成可编程门阵列(FieldProgrammableGateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器602,处理器601读取存储器602中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the above embodiments of the present invention may be applied to the camera module 605 controlled by the processor 601 , or implemented by the processor 601 . The processor 601 may be an integrated circuit chip and has signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 601 or instructions in the form of software. The above-mentioned processor 601 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or Transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the like. The steps of the methods disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602, and completes the steps of the above method in combination with its hardware.

可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理模块可以实现在一个或多个专用集成电路(ApplicationSpecificIntegratedCircuits,ASIC)、数字信号处理器(DigitalSignalProcessing,DSP)、数字信号处理设备(DSPDevice,DSPD)、可编程逻辑设备(ProgrammableLogicDevice,PLD)、现场可编程门阵列(Field-ProgrammableGateArray,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子模块或其组合中。It should be understood that the embodiments described herein may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing module can be implemented in one or more application-specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSPDevice, DSPD), programmable logic device (ProgrammableLogicDevice, PLD ), Field-Programmable Gate Array (Field-Programmable GateArray, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic modules for performing the functions described in this application, or a combination thereof.

对于软件实现,可通过执行本文所述功能的模块(例如过程、函数等)来实现本文所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described herein can be implemented through modules (eg, procedures, functions, and so on) that perform the functions described herein. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.

可选地,摄像头模组605还用于,将所述移动终端600的音圈马达的驱动电流调整为一预设电流值,使所述音圈马达回到切换到预拍照状态前所处的位置之后,处理器601判断所述移动终端600是否处于使用状态,所述使用状态为面向所述移动终端600的触摸屏的预设距离内不存在物体,且所述移动终端600的摄像头预设距离范围内的环境光强度大于或等于所述预设强度,且所述移动终端600在所述预设方向上没有所述预设的加速度或位移;当所述移动终端600处于使用状态时,根据所述预设电流值对所述移动终端600的音圈马达的驱动电流进行调整,使所述音圈马达的位置根据拍照场景进行移动。Optionally, the camera module 605 is also used to adjust the driving current of the voice coil motor of the mobile terminal 600 to a preset current value, so that the voice coil motor returns to the state before switching to the pre-photographing state. After the location, the processor 601 judges whether the mobile terminal 600 is in the use state, and the use state is that there is no object within the preset distance facing the touch screen of the mobile terminal 600, and the camera of the mobile terminal 600 is within a preset distance The ambient light intensity within the range is greater than or equal to the preset intensity, and the mobile terminal 600 does not have the preset acceleration or displacement in the preset direction; when the mobile terminal 600 is in use, according to The preset current value adjusts the driving current of the voice coil motor of the mobile terminal 600, so that the position of the voice coil motor moves according to the photographing scene.

可选地,作为本实施例的另一个实现方式,摄像头模组605还用于,将所述音圈马达的驱动电流调整为一预设电流值,使所述音圈马达回到切换到预拍照状态前所处的位置之后,如果所述移动终端600处于未使用状态的时间大于一时间阈值,则对所述音圈马达进行断电。Optionally, as another implementation of this embodiment, the camera module 605 is also used to adjust the driving current of the voice coil motor to a preset current value, so that the voice coil motor switches back to the preset current value. After the position before the photographing state, if the time of the mobile terminal 600 being in the unused state is greater than a time threshold, the voice coil motor is powered off.

移动终端600能够实现前述实施例中实现移动终端音圈马达控制的各个过程,为避免重复,这里不再赘述。The mobile terminal 600 can realize various processes of realizing the control of the voice coil motor of the mobile terminal in the foregoing embodiments, and to avoid repetition, details are not repeated here.

本发明实施例通过检测到移动终端摄像头打开却没有使用的状态时,对音圈马达的驱动电流进行调整,解决了无意开启了摄像头却没有使用摄像头拍照时,由于不断自动对焦造成的耗电量增加的问题,减少了移动终端的耗能,增加了待机时长。The embodiment of the present invention adjusts the driving current of the voice coil motor by detecting that the camera of the mobile terminal is turned on but not in use, so as to solve the power consumption caused by continuous autofocus when the camera is unintentionally turned on but not used to take pictures. The increased problem reduces the energy consumption of the mobile terminal and increases the standby time.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the modules and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device, and module can refer to the corresponding process in the foregoing method embodiment, and details are not repeated here.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or modules may be in electrical, mechanical or other forms.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module.

所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, server or network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (12)

CN201510931162.1A2015-12-142015-12-14Control method of voice coil motor of mobile terminal and mobile terminalActiveCN105530385B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201510931162.1ACN105530385B (en)2015-12-142015-12-14Control method of voice coil motor of mobile terminal and mobile terminal

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201510931162.1ACN105530385B (en)2015-12-142015-12-14Control method of voice coil motor of mobile terminal and mobile terminal

Publications (2)

Publication NumberPublication Date
CN105530385Atrue CN105530385A (en)2016-04-27
CN105530385B CN105530385B (en)2021-02-26

Family

ID=55772350

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201510931162.1AActiveCN105530385B (en)2015-12-142015-12-14Control method of voice coil motor of mobile terminal and mobile terminal

Country Status (1)

CountryLink
CN (1)CN105530385B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105430272A (en)*2015-12-162016-03-23深圳市金立通信设备有限公司Method for reducing power consumption of camera and terminal
CN105959518A (en)*2016-05-202016-09-21广东欧珀移动通信有限公司 Motor control method, device and imaging device
CN106338807A (en)*2016-11-042017-01-18广东欧珀移动通信有限公司Automatic focusing method and device and terminal
CN107767883A (en)*2016-08-232018-03-06株式会社东芝The installation site antidote and disk device of disk device
CN110798600A (en)*2019-11-282020-02-14Oppo广东移动通信有限公司 Lens module, control method and electronic device
CN111479069A (en)*2020-04-232020-07-31深圳创维-Rgb电子有限公司 Camera control method, display terminal and computer storage medium
WO2025002067A1 (en)*2023-06-262025-01-02华为技术有限公司Optical image stabilization device and optical image stabilization method

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1725770A (en)*2004-07-212006-01-25三星电子株式会社 Method for controlling camera mode in portable terminal
CN102253467A (en)*2010-05-192011-11-23佳能企业股份有限公司 Auto focus device for mobile communication device
CN103605419A (en)*2013-10-292014-02-26厦门美图网科技有限公司Energy saving and protecting method and device for mobile device camera

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1725770A (en)*2004-07-212006-01-25三星电子株式会社 Method for controlling camera mode in portable terminal
CN102253467A (en)*2010-05-192011-11-23佳能企业股份有限公司 Auto focus device for mobile communication device
CN103605419A (en)*2013-10-292014-02-26厦门美图网科技有限公司Energy saving and protecting method and device for mobile device camera

Cited By (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105430272A (en)*2015-12-162016-03-23深圳市金立通信设备有限公司Method for reducing power consumption of camera and terminal
CN105959518A (en)*2016-05-202016-09-21广东欧珀移动通信有限公司 Motor control method, device and imaging device
CN105959518B (en)*2016-05-202019-02-05Oppo广东移动通信有限公司Motor control method and device and camera equipment
CN107767883A (en)*2016-08-232018-03-06株式会社东芝The installation site antidote and disk device of disk device
CN106338807A (en)*2016-11-042017-01-18广东欧珀移动通信有限公司Automatic focusing method and device and terminal
CN106338807B (en)*2016-11-042019-10-25Oppo广东移动通信有限公司 An automatic focusing method, device and terminal
CN110798600A (en)*2019-11-282020-02-14Oppo广东移动通信有限公司 Lens module, control method and electronic device
CN110798600B (en)*2019-11-282022-03-22Oppo广东移动通信有限公司 Lens module, control method and electronic device
CN111479069A (en)*2020-04-232020-07-31深圳创维-Rgb电子有限公司 Camera control method, display terminal and computer storage medium
CN111479069B (en)*2020-04-232021-09-24深圳创维-Rgb电子有限公司 Camera control method, display terminal and computer storage medium
WO2025002067A1 (en)*2023-06-262025-01-02华为技术有限公司Optical image stabilization device and optical image stabilization method

Also Published As

Publication numberPublication date
CN105530385B (en)2021-02-26

Similar Documents

PublicationPublication DateTitle
CN105530385A (en) A control method of a mobile terminal voice coil motor and mobile terminal
CN106341611A (en)Control method, control device and electronic device
CN106412445A (en)Control method, control device and electronic device
US20180152623A1 (en)Control method, control device and electronic device
US20100302393A1 (en)Self-portrait assistance in image capturing devices
US8345143B2 (en)Image capturing apparatus and image capturing apparatus control method
US9549126B2 (en)Digital photographing apparatus and control method thereof
CN106454132A (en)Control method, control device and electronic device
CN106506957A (en) A camera method and mobile terminal
CN107493421B (en) Camera module, electronic equipment, camera module control method and device
CN107690043B (en)Image pickup apparatus, control method thereof, and storage medium
US20180324351A1 (en)Control device, control method, and program
CN104469159A (en)Shooting parameter adjusting method and device
US8643749B2 (en)Imaging device, display device, control method, and method for controlling area change
CN106506968A (en) Control method, control device, electronic device
CN105472253A (en)Method and device for switching fixed focus and zoom modes and mobile terminal
CN106603911A (en) Control method, control device and electronic device
CN105872378A (en)Control method, control device and electronic device
CN101427180A (en) Camera Function Driver
CN106559528A (en) Control method, control device and electronic device
KR101530517B1 (en)User terminal performable shooting function and method for adjusting location of shooting icon of the user terminal
JP2015119259A (en)Display controller, control method and program for the same, and storage medium
CN105827968A (en)Control method and device, and electronic device
US20120315007A1 (en)Imaging apparatus and control method therefor
US11375115B2 (en)Image capturing apparatus, control method thereof, and recording medium thereof

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp