CN107172348B - Mobile terminal and distribution method and device of motion signals of mobile terminal - Google Patents

Mobile terminal and distribution method and device of motion signals of mobile terminal Download PDF

Info

Publication number
CN107172348B
CN107172348B CN201710345072.3A CN201710345072A CN107172348B CN 107172348 B CN107172348 B CN 107172348B CN 201710345072 A CN201710345072 A CN 201710345072A CN 107172348 B CN107172348 B CN 107172348B
Authority
CN
China
Prior art keywords
gyroscope
motion signal
mobile terminal
application program
motion
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.)
Active
Application number
CN201710345072.3A
Other languages
Chinese (zh)
Other versions
CN107172348A (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.)
Qiku Internet Technology Shenzhen Co Ltd
Original Assignee
Qiku Internet Technology Shenzhen 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 Qiku Internet Technology Shenzhen Co Ltd filed Critical Qiku Internet Technology Shenzhen Co Ltd
Priority to CN201710345072.3A priority Critical patent/CN107172348B/en
Publication of CN107172348A publication Critical patent/CN107172348A/en
Application granted granted Critical
Publication of CN107172348B publication Critical patent/CN107172348B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/681Motion detection
    • H04N23/6812Motion detection based on additional sensors, e.g. acceleration sensors

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Gyroscopes (AREA)
  • Studio Devices (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a mobile terminal and a distribution method and a distribution device of motion signals of the mobile terminal, wherein the motion signals are collected by a gyroscope arranged in a camera module of the mobile terminal, and the method comprises the following steps: the processor of the mobile terminal acquires the type of the currently running application program, wherein the running of the application program needs to utilize the motion signal; acquiring a motion signal acquired by a gyroscope according to the type of the application program; and/or sending a control command to the gyroscope, and controlling the gyroscope to send the acquired motion signal to the optical anti-shake module of the mobile terminal. According to the mobile terminal and the distribution method and device of the motion signals of the mobile terminal, a gyroscope does not need to be arranged on a main board, and cost is saved; the influence of the temperature and the stress of the main board is avoided, the accuracy of the motion signal is improved, and the distribution method of the motion signal is simple and effective.

Description

Mobile terminal and distribution method and device of motion signals of mobile terminal
Technical Field
The invention relates to the field of mobile terminal motion signal acquisition, in particular to a mobile terminal and a method and a device for distributing motion signals of the mobile terminal.
Background
A gravity sensor is arranged on a mainboard of a mobile terminal such as a mobile phone and the like, and the gravity sensor is a first gyroscope and is used for collecting motion signals of the mobile phone. Along with the development of the technology, mobile terminals such as mobile phones and the like can be provided with optical anti-shake modules so as to improve the shooting effect. A second gyroscope is also arranged in the optical anti-shake module and can acquire the motion signal of the mobile phone.
In the prior art, a first gyroscope and a second gyroscope are generally arranged in a mobile phone at the same time, so that hardware resources are wasted, and hardware cost is increased.
Disclosure of Invention
The invention mainly aims to provide a mobile terminal which collects motion signals by utilizing a gyroscope arranged in a camera module and is used by each application program on the mobile terminal, and a distribution method and a distribution device of the motion signals.
In order to achieve the above object, the present invention provides a method for distributing a motion signal, where the motion signal is collected by a gyroscope disposed in a camera module of a mobile terminal, the method including:
the processor of the mobile terminal acquires the type of the currently running application program, wherein the running of the application program needs to utilize the motion signal;
acquiring a motion signal acquired by a gyroscope according to the type of the application program; and/or sending a control command to the gyroscope, and controlling the gyroscope to send the acquired motion signal to the optical anti-shake module of the mobile terminal.
Further, before the step of acquiring the type of the currently running application program, the processor of the mobile terminal includes:
judging whether the motion signal is needed for the running of the application program;
and if so, supplying power to the gyroscope through a power supply circuit.
Further, after the step of supplying power to the gyroscope through the power supply circuit, the method includes:
acquiring a motion signal of the mobile terminal at a first placing angle;
matching the motion signal with a calibration motion signal;
and if the motion signal is successfully matched with the calibration motion signal, judging that the gyroscope works normally.
Further, the step of matching the motion signal with a calibration motion signal is followed by:
and if the motion signal is not matched with the calibration motion signal, calibrating the gyroscope according to a preset rule.
Further, a standby gyroscope is arranged in the camera module; after the step of matching the motion signal with a calibration motion signal, the method comprises:
and if the motion signal is not matched with the calibration motion signal, starting the standby gyroscope, and acquiring the motion signal through the standby gyroscope.
Further, acquiring a motion signal acquired by a gyroscope according to the type of the application program; and/or sending a control command to the gyroscope, wherein before the step of controlling the gyroscope to send the collected motion signal to the optical anti-shake module of the mobile terminal, the method comprises the following steps:
searching a gyroscope sensitivity value corresponding to the application program in a preset sensitivity list;
and controlling the sensitivity and the measuring range of the motion signal acquired by the gyroscope according to the sensitivity value of the gyroscope.
Further, acquiring a motion signal acquired by a gyroscope according to the type of the application program; and/or sending a control command to the gyroscope, wherein before the step of controlling the gyroscope to send the collected motion signal to the optical anti-shake module of the mobile terminal, the method comprises the following steps:
searching a motion signal acquisition frequency value corresponding to the application program in a preset acquisition frequency list;
and controlling the acquisition frequency of the motion signal acquired by the gyroscope according to the motion signal acquisition frequency value.
The present invention also provides a distribution device of a motion signal, the motion signal being collected by a gyroscope disposed in a camera module of a mobile terminal, the device comprising:
the type analysis unit is used for acquiring the type of the currently running application program by the processor of the mobile terminal, wherein the running of the application program needs to utilize the motion signal;
the distribution unit is used for acquiring the motion signal acquired by the gyroscope according to the type of the application program; and/or sending a control command to the gyroscope, and controlling the gyroscope to send the acquired motion signal to the optical anti-shake module of the mobile terminal.
Further, the distribution device of the motion signal further includes:
the judging unit is used for judging whether the motion signal is needed for the running of the application program;
and the power supply unit is used for supplying power to the gyroscope through a power supply circuit if the motion signal is required by the operation of the application program.
Further, the distribution device of the motion signal further includes:
the mobile terminal comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring a motion signal of the mobile terminal at a first placing angle;
a matching unit for matching the motion signal with a calibration motion signal;
and the judging unit is used for judging that the gyroscope works normally if the motion signal is successfully matched with the calibration motion signal.
Further, the distribution device of the motion signal further includes:
and the calibration unit is used for calibrating the gyroscope according to a preset rule if the motion signal is unsuccessfully matched with the calibration motion signal.
Further, a standby gyroscope is arranged in the camera module; the device further comprises:
and the standby starting unit is used for starting the standby gyroscope if the motion signal is not matched with the calibration motion signal, and acquiring the motion signal through the standby gyroscope.
Further, the distribution device of the motion signal further includes:
the first searching unit is used for searching a gyroscope sensitivity value corresponding to the application program in a preset sensitivity list;
and the first control unit is used for controlling the sensitivity and the measuring range of the motion signal acquired by the gyroscope according to the sensitivity value of the gyroscope.
Further, the distribution device of the motion signal further includes:
the second searching unit is used for searching a motion signal acquisition frequency value corresponding to the application program in a preset acquisition frequency list;
and the second control unit is used for controlling the acquisition frequency of the motion signal acquired by the gyroscope according to the motion signal acquisition frequency value.
The invention also provides a mobile terminal, which comprises a processor and a memory;
the memory is used for storing a program of a distribution device of the motion signal for executing the distribution method of the motion signal;
the processor is configured to execute a program stored within the memory,
the invention also provides a mobile terminal which comprises a mainboard, a camera module, an optical anti-shake module and a gyroscope;
the main board is provided with a processor and a power supply circuit, and the processor is electrically connected with the camera module, the optical anti-shake module and the gyroscope respectively; the power supply circuit respectively supplies power to the camera module, the optical anti-shake module and the gyroscope;
the camera module comprises a driving motor and a lens assembly, and the driving motor receives a compensation control command of the optical anti-shake module and drives the lens assembly to move;
the optical anti-shake module comprises a microprocessor, wherein the microprocessor receives and processes the motion signal of the gyroscope, generates the compensation control command and sends the compensation control command to the driving motor;
the gyroscope is arranged on the camera module and used for acquiring a motion signal;
the processor acquires a motion signal acquired by the gyroscope according to the type of the currently running application program; and/or sending a control command to the gyroscope, and controlling the gyroscope to send the acquired motion signal to the microprocessor.
Further, the optical anti-shake module is installed on the camera module.
Furthermore, a standby gyroscope is arranged on the camera module and is respectively and electrically connected with the processor, the power supply circuit and the microprocessor;
and when the gyroscope fails to work, starting the standby gyroscope.
According to the mobile terminal and the distribution method and device of the motion signals of the mobile terminal, a gyroscope is not required to be arranged on the main board at the middle and high ends of the mobile terminal, the gyroscope in the camera module is directly adopted to collect the motion signals, and the motion signals can be selectively sent to the processor or the optical anti-shake module according to the type of the application program currently running in the mobile terminal. The gyroscope arranged in the camera module is directly used for acquiring motion data, and the gyroscope does not need to be arranged on the main board, so that the cost is saved; the influence of the temperature and the stress of the main board is avoided, the accuracy of the motion signal is improved, and the distribution method of the motion signal is simple and effective.
Drawings
Fig. 1 is a flowchart illustrating a distribution method of a motion signal according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a distribution method of a motion signal according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a distribution method of a motion signal according to an embodiment of the present invention;
fig. 4 is a block diagram schematically illustrating a configuration of a motion signal distribution apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram schematically illustrating a configuration of a motion signal distribution apparatus according to an embodiment of the present invention;
fig. 6 is a block diagram schematically illustrating a structure of a mobile terminal according to an embodiment of the present invention;
fig. 7 is a block diagram schematically illustrating a structure of a mobile terminal according to another embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As will be understood by those skilled in the art, the mobile terminal herein refers to an electronic device with an optical anti-shake function, such as a smart phone and a tablet computer.
Referring to fig. 1, an embodiment of the present invention provides a distribution method of a motion signal, where the motion signal is collected by a gyroscope disposed in a camera module of a mobile terminal, and the method includes:
s1, the processor of the mobile terminal acquires the type of the currently running application program, wherein the running of the application program needs to utilize the motion signal;
s2, acquiring a motion signal acquired by a gyroscope according to the type of the application program; and/or sending a control command to the gyroscope, and controlling the gyroscope to send the acquired motion signal to the optical anti-shake module of the mobile terminal.
As described in step S1, the motion signal is an angle, acceleration, or other signal collected by the gyroscope. The operation of the application program needs to use the motion signal, that is, the application program can be normally used only by the motion signal collected by the gyroscope. The mobile terminal comprises a game application program which generally comprises a game operation by utilizing a motion signal acquired by a gyroscope, namely the application program which controls a certain setting in the application program by performing operations such as inclination, movement and the like of different angles on the mobile terminal; also includes motion application program for analyzing human motion data based on the motion signal, such as step counting application program; the camera module is further provided with a shooting application program and the like for carrying out optical anti-shake processing on the camera module according to the motion signal.
As described in the above step S2, the motion signals required by different types of applications, such as game-type and sports-type applications, are generally controlled by the processor, so the motion signals are obtained by the way that the applications request the motion signals from the processor, and the processor directly obtains the motion signals collected by the gyroscope for the applications. And the shooting application program and the processor send control commands to enable the motion signals collected by the gyroscope to be directly sent to the optical anti-shake module for the optical anti-shake module to perform optical anti-shake processing.
Referring to fig. 2, in this embodiment, before the step of acquiring the type of the currently running application program by the processor of the mobile terminal, the method includes:
s101, judging whether the motion signal is needed for the running of the application program;
and S102, if so, supplying power to the gyroscope through a power supply circuit.
As described in steps S101 and S102, the power supply circuit is generally a power supply circuit disposed on a motherboard of the mobile terminal, and is connected to a power supply pin of the gyroscope, and the power supply circuit is generally controlled by the processor. If the running application program does not need the motion signal, the processor controls the power supply circuit to stop supplying power to the gyroscope so as to save the consumption of electric energy.
In this embodiment, after the step S102 of supplying power to the gyroscope through the power supply circuit, the method includes:
s103, acquiring a motion signal of the mobile terminal at a first placing angle;
s104, matching the motion signal with a calibration motion signal;
and S105, if the motion signal is successfully matched with the calibration motion signal, judging that the gyroscope works normally.
As described in the foregoing steps S103, S104, and S105, the first placing angle is a preset placing angle, for example, the mobile terminal is a mobile phone, and the upward horizontal plane of the screen of the mobile phone is set as the first placing angle. If the mobile phone is set according to the first placing angle, the motion signal collected by the gyroscope is generally a designated angle value. And matching the specified angle value with a preset calibration motion signal, and if the matching is successful, judging that the gyroscope works normally. The matching process generally includes comparing the specified angle value with the calibration motion signal, and if the degree of identity between the specified angle value and the calibration motion signal is higher than a specified percentage, the matching is determined to be successful. For example, when the recognition degree of the two signals is higher than 95%, the motion signal is successfully matched with the calibration motion signal, which indicates that the gyroscope can normally work. In other embodiments, a second placing angle, a third placing angle, and the like may be set, and the process of matching with the corresponding second calibration motion signal and the third standard motion signal may be performed, respectively, and if all matching is successful, it is determined that the gyroscope is working normally. Whether the gyroscope works normally or not is judged in advance, so that a user can select whether to run the application program or not, and adverse effects caused by directly running the application program are avoided, for example, when a certain game is in a certain key level when running last time, the user actively logs off, and must pass when logging on again, if the gyroscope fails to work when logging on again, the user can select not to log in the game, and the problem that the gyroscope fails to pass the pass due to the failure of the gyroscope is avoided.
In this embodiment, after the step S104 of matching the motion signal with the calibration motion signal, the method includes:
and S106, if the motion signal is not matched with the calibration motion signal, calibrating the gyroscope according to a preset rule.
As described in the step S106, the preset rule calibrates the gyroscope, and the process generally includes placing the mobile terminal according to a plurality of preset placing angles, inputting a calibration value every time one angle is placed, obtaining a confirmation command after all placing angles are placed and corresponding calibration values are input, and then calibrating according to a calibration formula, so that a calibrated gyroscope can be obtained, and the calibrated gyroscope can normally acquire a motion signal. In this embodiment, if the motion signal and the calibration motion signal still fail to match when the steps S103 to S106 are performed again after the gyroscope is calibrated, it may be determined that the gyroscope is damaged and needs to be replaced. The calibration formula is generally set according to a gyroscope, for example, if the angular change of the gyroscope is a linear change, a linear formula may be preset, and then calibration and the like may be performed according to the linear formula and the calibration value input by the linear formula.
In this embodiment, a standby gyroscope is arranged in the camera module; after the step S104 of matching the motion signal with the calibration motion signal, the method includes:
and S107, if the motion signal is not matched with the calibration motion signal, starting the standby gyroscope, and acquiring the motion signal through the standby gyroscope.
As described in step S107, the standby gyroscope is a gyroscope that is not used at ordinary times, and is started only when the gyroscope fails, so as to prolong the service life of the mobile terminal.
Referring to fig. 3, in this embodiment, the motion signal acquired by the gyroscope is acquired according to the type of the application program; and/or, before step S2 of sending a control command to the gyroscope, and controlling the gyroscope to send the collected motion signal to the optical anti-shake module of the mobile terminal, the method includes:
s201, searching a gyroscope sensitivity value corresponding to the application program in a preset sensitivity list;
and S202, controlling the sensitivity and the measuring range of the motion signal acquired by the gyroscope according to the sensitivity value of the gyroscope.
As described in steps S201 and S202, the gyroscope has a plurality of acquisition sensitivities, and the higher the acquisition sensitivity is, the smaller the corresponding range is, and conversely, the larger the range is. The Sensitivity (Sensitivity) refers to the degree of change in response of a method to a change in unit concentration or unit amount of a substance to be measured, and can be described by the ratio of the response or other indicator of the instrument to the concentration or amount of the corresponding substance to be measured. The range is the difference between the two extremes of the nominal range of the gyroscope. In this embodiment, the acquisition sensitivities required by different applications are different, for example, if the requirements on the acquisition sensitivity of a game application are not high, a relatively high range, a relatively low acquisition sensitivity, and the like are selected; the shooting-type application, because of the need for optical anti-shake, needs to choose a relatively high acquisition sensitivity without using a large range. In this embodiment, according to a specific application program, the corresponding sensitivity and range are selected, for example, the application programs of the two games are gun battle games and drag racing games, respectively, so that when the gun battle games are operated, a relatively high acquisition sensitivity is selected, and the drag racing games can select a relatively low acquisition sensitivity.
Referring to fig. 3, in this embodiment, the motion signal acquired by the gyroscope is acquired according to the type of the application program; and/or, before step S2 of sending a control command to the gyroscope, and controlling the gyroscope to send the collected motion signal to the optical anti-shake module of the mobile terminal, the method includes:
s203, searching a motion signal acquisition frequency value corresponding to the application program in a preset acquisition frequency list;
and S204, controlling the acquisition frequency of the motion signal acquired by the gyroscope according to the motion signal acquisition frequency value.
As described in steps S203 and S204, the collection frequency of the motion signals is the number of the motion signals collected in a predetermined time. In this embodiment, the acquisition frequencies required by different applications are different, for example, if the requirement for the acquisition frequency is high for a game application, a relatively high acquisition frequency is selected; for shooting type application programs, because optical anti-shake is needed, a relatively high acquisition frequency needs to be selected; and if the requirement on the acquisition frequency of the motion application program is low, selecting a relatively low acquisition frequency and the like to reduce energy consumption. In this embodiment, according to a specific application program, the corresponding acquisition frequency is selected, which not only can improve the operation quality of the application program, but also can effectively reduce the energy consumption of the mobile terminal.
In a specific embodiment, the mobile terminal is a smart phone, the smart phone is provided with an optical anti-shake module and a camera module, and the camera module is provided with a gyroscope. Before the gyroscope is used, whether the currently running application program needs to use the motion signal or not is judged, if yes, the gyroscope is powered through a power supply circuit, and the gyroscope is started. After the gyroscope is started, whether the gyroscope fails or not is judged through a preset detection step, if so, recalibration is carried out, or a standby gyroscope is started, and if not, the gyroscope is normally used. When the application program is operated, the type of the application program is judged firstly, if the type of the application program is a shooting type application program, the processor on the mainboard of the mobile terminal controls the gyroscope to send the collected motion signal to the optical anti-shake module, and other application programs which do not need optical anti-shake directly acquire the motion signal collected by the gyroscope through the processor. And when the gyroscope collects the motion signal, the specified sensitivity, collection frequency and the like can be selected according to a specific application program.
According to the distribution method of the motion signal, the gyroscope is arranged on the camera module, the gyroscope is closer to the shaking angle of the camera, and the effect is better during optical anti-shaking processing. Moreover, the gyroscope is arranged on the camera module, the influence of heat generated by the mainboard in work engineering does not need to be considered, and the accuracy of acquiring motion signals by the gyroscope is further improved. The gyroscope is not required to be arranged on the main board at the middle and high end of the movement, the gyroscope in the camera module is directly adopted to collect movement signals, and the movement signals can be selected to be sent to the processor or the optical anti-shake module according to the type of the application program currently running on the mobile terminal. The gyroscope arranged in the camera module is directly used for acquiring motion data, and the gyroscope does not need to be arranged on the main board, so that the cost is saved; the distribution method of the motion signal is simple and effective.
Referring to fig. 4, an embodiment of the present invention further provides a distribution apparatus for a motion signal, where the motion signal is collected by a gyroscope disposed in a camera module of a mobile terminal, and the apparatus includes:
a type analysis unit 10, configured to acquire a type of an application program currently running, where the application program needs to run using the motion signal;
the distribution unit 20 is used for acquiring the motion signal acquired by the gyroscope according to the type of the application program; and/or sending a control command to the gyroscope, and controlling the gyroscope to send the acquired motion signal to the optical anti-shake module of the mobile terminal.
As the type of analysis unit 10, the motion signal is the angle, acceleration, etc. signal collected by the gyroscope. The operation of the application program needs to use the motion signal, that is, the application program can be normally used only by the motion signal collected by the gyroscope. The mobile terminal comprises a game application program which generally comprises a game operation by utilizing a motion signal acquired by a gyroscope, namely the application program which controls a certain setting in the application program by performing operations such as inclination, movement and the like of different angles on the mobile terminal; also includes motion application program for analyzing human motion data based on the motion signal, such as step counting application program; the camera module is further provided with a shooting application program and the like for carrying out optical anti-shake processing on the camera module according to the motion signal.
As the distribution unit 20 described above, different types of applications require different motion signals, for example, game-type and motion-type applications, which are generally controlled to run by a processor, so that the motion signals are acquired by the application requesting the motion signals from the processor, and the motion signals acquired by the gyroscope are directly acquired by the processor for use by the application. And the shooting application program and the processor send control commands to enable the motion signals collected by the gyroscope to be directly sent to the optical anti-shake module for the optical anti-shake module to perform optical anti-shake processing.
Referring to fig. in this embodiment, the distribution device for motion signals further includes:
a judging unit 101, configured to judge whether the motion signal is required for running the application program;
and the power supply unit 102 is configured to supply power to the gyroscope through a power supply circuit if the motion signal is required for running the application program.
As the determining unit 101 and the power supply unit 102, the power supply circuit is generally a power supply circuit disposed on a main board of the mobile terminal, and is connected to a power supply pin of the gyroscope, and the power supply circuit is generally controlled by the processor. If the running application program does not need the motion signal, the processor controls the power supply circuit to stop supplying power to the gyroscope so as to save the consumption of electric energy.
In this embodiment, the distribution device of the motion signal further includes:
an obtaining unit 103, configured to obtain a motion signal of the mobile terminal at a first placement angle;
a matching unit 104 for matching the motion signal with a calibration motion signal;
and the judging unit 105 is used for judging that the gyroscope works normally if the motion signal is successfully matched with the calibration motion signal.
As the obtaining unit 103, the matching unit 104, and the determining unit 105, the first placing angle is a preset placing angle, for example, the mobile terminal is a mobile phone, and the screen of the mobile phone is horizontally set to be the first placing angle upward. If the mobile phone is set according to the first placing angle, the motion signal collected by the gyroscope is generally a designated angle value. And matching the specified angle value with a preset calibration motion signal, and if the matching is successful, judging that the gyroscope works normally. The matching process generally includes comparing the specified angle value with the calibration motion signal, and if the degree of identity between the specified angle value and the calibration motion signal is higher than a specified percentage, the matching is determined to be successful. For example, when the recognition degree of the two signals is higher than 95%, the motion signal is successfully matched with the calibration motion signal, which indicates that the gyroscope can normally work. In other embodiments, a second placing angle, a third placing angle, and the like may be set, and the process of matching with the corresponding second calibration motion signal and the third standard motion signal may be performed, respectively, and if all matching is successful, it is determined that the gyroscope is working normally. Whether the gyroscope works normally or not is judged in advance, so that a user can select whether to run the application program or not, and adverse effects caused by directly running the application program are avoided, for example, when a certain game is in a certain key level when running last time, the user actively logs off, and must pass when logging on again, if the gyroscope fails to work when logging on again, the user can select not to log in the game, and the problem that the gyroscope fails to pass the pass due to the failure of the gyroscope is avoided.
In this embodiment, the distribution device of the motion signal further includes:
and the calibration unit 106 is configured to calibrate the gyroscope according to a preset rule if the motion signal fails to match the calibration motion signal.
As the calibration unit 106, the preset rule calibrates the gyroscope, and the process generally includes placing the mobile terminal according to a plurality of preset placing angles, inputting a calibration value every time one angle is placed, obtaining a confirmation command after all placing angles are placed and corresponding calibration values are input, and then calibrating according to a calibration formula, so that a calibrated gyroscope can be obtained, and the calibrated gyroscope can normally acquire a motion signal. In this embodiment, if after the gyroscope is calibrated, the motion signal and the calibration motion signal are still unsuccessfully matched when the acquiring unit 103, the matching unit 104, and the determining unit 105 are used again to determine whether the gyroscope fails to work, it may be determined that the gyroscope is damaged and needs to be replaced. The calibration formula is generally set according to a gyroscope, for example, if the angular change of the gyroscope is a linear change, a linear formula may be preset, and then calibration and the like may be performed according to the linear formula and the calibration value input by the linear formula.
In this embodiment, a standby gyroscope is arranged in the camera module; the above-mentioned device still includes:
and a standby starting unit 107, configured to start the standby gyroscope if matching between the motion signal and the calibration motion signal fails, and acquire the motion signal through the standby gyroscope.
As the standby unit 107 is started, the standby gyroscope is a gyroscope which cannot be used at ordinary times, and only when the gyroscope fails, the standby gyroscope is started to prolong the service life of the mobile terminal.
In this embodiment, the distribution device of the motion signal further includes:
a first searching unit 201, configured to search a sensitivity value of a gyroscope corresponding to the application program in a preset sensitivity list;
and the first control unit 202 is configured to control the sensitivity and the range of the motion signal acquired by the gyroscope according to the sensitivity value of the gyroscope.
As the first search unit 201 and the first control unit 202 are described above, the gyroscope has multiple acquisition sensitivities, and the higher the acquisition sensitivity is, the smaller the corresponding range is, and conversely, the larger the range is. The Sensitivity (Sensitivity) refers to the degree of change in response of a method to a change in unit concentration or unit amount of a substance to be measured, and can be described by the ratio of the response or other indicator of the instrument to the concentration or amount of the corresponding substance to be measured. The range is the difference between the two extremes of the nominal range of the gyroscope. In this embodiment, the acquisition sensitivities required by different applications are different, for example, if the requirements on the acquisition sensitivity of a game application are not high, a relatively high range, a relatively low acquisition sensitivity, and the like are selected; the shooting-type application, because of the need for optical anti-shake, needs to choose a relatively high acquisition sensitivity without using a large range. In this embodiment, according to a specific application program, the corresponding sensitivity and range are selected, for example, the application programs of the two games are gun battle games and drag racing games, respectively, so that when the gun battle games are operated, a relatively high acquisition sensitivity is selected, and the drag racing games can select a relatively low acquisition sensitivity.
In this embodiment, the distribution apparatus of motion signals further includes:
the second searching unit 203 is configured to search a motion signal acquisition frequency value corresponding to the application program in a preset acquisition frequency list;
and the second control unit 204 is configured to control the acquisition frequency of the motion signal acquired by the gyroscope according to the motion signal acquisition frequency value.
As for the second searching unit 203 and the second control unit 204, the collection frequency of the motion signals is the number of the motion signals collected in a specified time. In this embodiment, the acquisition frequencies required by different applications are different, for example, if the requirement for the acquisition frequency is high for a game application, a relatively high acquisition frequency is selected; for shooting type application programs, because optical anti-shake is needed, a relatively high acquisition frequency needs to be selected; and if the requirement on the acquisition frequency of the motion application program is low, selecting a relatively low acquisition frequency and the like to reduce energy consumption. In this embodiment, according to a specific application program, the corresponding acquisition frequency is selected, which not only can improve the operation quality of the application program, but also can effectively reduce the energy consumption of the mobile terminal.
In a specific embodiment, the mobile terminal is a smart phone, the smart phone is provided with an optical anti-shake module and a camera module, and the camera module is provided with a gyroscope. Before the gyroscope is used, whether the currently running application program needs to use the motion signal or not is judged, if yes, the gyroscope is powered through a power supply circuit, and the gyroscope is started. After the gyroscope is started, whether the gyroscope fails or not is judged through a preset detection step, if so, recalibration is carried out, or a standby gyroscope is started, and if not, the gyroscope is normally used. When the application program is operated, the type of the application program is judged firstly, if the type of the application program is a shooting type application program, the processor on the mainboard of the mobile terminal controls the gyroscope to send the collected motion signal to the optical anti-shake module, and other application programs which do not need optical anti-shake directly acquire the motion signal collected by the gyroscope through the processor. And when the gyroscope collects the motion signal, the specified sensitivity, collection frequency and the like can be selected according to a specific application program.
The distribution device of the motion signal of this embodiment sets up the gyroscope on the camera module, and its angle that shakes with the camera etc. is closer, and when optics anti-shake handled, the effect is more. Moreover, the gyroscope is arranged on the camera module, the influence of heat generated by the mainboard in work engineering does not need to be considered, and the accuracy of acquiring motion signals by the gyroscope is further improved. The gyroscope is not required to be arranged on the main board at the middle and high end of the movement, the gyroscope in the camera module is directly adopted to collect movement signals, and the movement signals can be selected to be sent to the processor or the optical anti-shake module according to the type of the application program currently running on the mobile terminal. The gyroscope arranged in the camera module is directly used for acquiring motion data, and the gyroscope does not need to be arranged on the main board, so that the cost is saved; the distribution method of the motion signal is simple and effective.
Referring to fig. 6, an embodiment of the present invention further provides a mobile terminal, including a processor 680 and a memory 620; the memory 620 is used for storing a program for the distribution device of the motion signal to execute the distribution method of the motion signal; the processor 680 is configured to execute programs stored in the memory 620.
For convenience of explanation, only the parts related to the embodiments of the present invention are shown, and details of the specific techniques are not disclosed. The mobile terminal may be any mobile terminal device including a mobile phone, a tablet computer, a PDA (personal digital Assistant), a POS (Point of Sales, mobile terminal), a vehicle-mounted computer, and the like, taking the mobile terminal as the mobile phone as an example:
fig. 6 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present invention. Referring to fig. 6, the handset includes: radio Frequency (RF) circuit 610, memory 620, input unit 630, display unit 640, sensor 650, audio circuit 660, wireless fidelity (WiFi) module 670, processor 680, and power supply 690. Those skilled in the art will appreciate that the handset configuration shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 6:
the RF circuit 610 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 680; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 610 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 610 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
The memory 620 may be used to store software programs and modules, and the processor 680 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 620. The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 630 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 630 may include a touch panel 631 and other input devices 632. The touch panel 631, also referred to as a touch screen, may collect touch operations of a user (e.g., operations of the user on the touch panel 631 or near the touch panel 631 by using any suitable object or accessory such as a finger or a stylus) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 631 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch panel 631 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 630 may include other input devices 632 in addition to the touch panel 631. In particular, other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 640 may include a display panel 641, and optionally, the display panel 641 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 631 can cover the display panel 641, and when the touch panel 631 detects a touch operation thereon or nearby, the touch panel is transmitted to the processor 680 to determine the type of the touch event, and then the processor 680 provides a corresponding visual output on the display panel 641 according to the type of the touch event. Although in fig. 6, the touch panel 631 and the display panel 641 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 631 and the display panel 641 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 650, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 641 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 641 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the gyroscope 601 is disposed on the camera module 603, and is capable of detecting the magnitude of acceleration in each direction (generally, three axes), detecting the magnitude and direction of gravity when stationary, and being used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as barometer, hygrometer, thermometer, infrared sensor, etc. which can be configured on the mobile phone, they will not be described in detail herein.
The optical anti-shake module 602 includes a microprocessor and a driving component, and is configured to drive the lens component of the camera module 603 for anti-shake processing.
Audio circuit 660, speaker 661, and microphone 662 can provide an audio interface between a user and a cell phone. The audio circuit 660 may transmit the electrical signal converted from the received audio data to the speaker 661, and convert the electrical signal into an audio signal through the speaker 661 for output; on the other hand, the microphone 662 converts the collected sound signals into electrical signals, which are received by the audio circuit 660 and converted into audio data, which are processed by the audio data output processor 680 and then transmitted via the RF circuit 610 to, for example, another cellular phone, or output to the memory 620 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 670, and provides wireless broadband Internet access for the user. Although fig. 6 shows the WiFi module 670, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 680 is a control center of the mobile phone, and connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby performing overall monitoring of the mobile phone. Optionally, processor 680 may include one or more processing units; preferably, the processor 680 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
The handset also includes a power supply 690 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 680 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
Referring to fig. 6, in the embodiment of the present invention, the processor 680 included in the mobile terminal further has the following functions:
the processor of the mobile terminal acquires the type of the currently running application program, wherein the running of the application program needs to utilize the motion signal;
acquiring a motion signal acquired by a gyroscope according to the type of the application program; and/or sending a control command to the gyroscope, and controlling the gyroscope to send the acquired motion signal to the optical anti-shake module of the mobile terminal.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by hardware that is instructed to implement by a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Referring to fig. 7, the present invention further provides a mobile terminal, which includes a main board 604, a camera module 603, an optical anti-shake module 602, and a gyroscope 601; a processor 680 and a power supply circuit are arranged on the main board 604, and the processor 680 is electrically connected with the camera module 603, the optical anti-shake module 602 and the gyroscope 601 respectively; the power supply circuit respectively supplies power to the camera module 603, the optical anti-shake module 602 and the gyroscope 601; the camera module 603 includes a driving motor and a lens assembly 605, and the driving motor receives a compensation control command of the optical anti-shake module 602 and drives the lens assembly 605 to move; the optical anti-shake module 602 comprises a microprocessor 680, wherein the microprocessor 680 receives and processes the motion signal of the gyroscope 601, generates the compensation control command and sends the compensation control command to the driving motor; the gyroscope 601 is arranged on the camera module 603 and used for collecting motion signals; the processor 680 obtains a motion signal acquired by the gyroscope 601 according to the type of the currently running application program; and/or sending a control command to the gyroscope 601, and controlling the gyroscope 601 to send the acquired motion signal to the microprocessor 680.
The main board 604 is a circuit board integrated with various chips and circuits, and is a control core board of the mobile terminal. The gyroscope 601 is disposed on the camera module 603, and can detect the acceleration in each direction (generally three axes), detect the gravity and direction when stationary, and be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration) for recognizing the attitude of the mobile phone, and related functions (such as pedometer and tapping) for vibration recognition. The optical anti-shake module 602 includes a microprocessor 680 and a driving component, and is configured to drive the lens component 605 of the camera module 603 for anti-shake processing.
In this embodiment, the optical anti-shake module 602 is installed on the camera module 603. It can detect before camera module 603 leaves the factory, and it is convenient to detect, need not mobile terminal's producer and carries out relevant meticulous detection calibration.
In this embodiment, the camera module 603 is provided with a standby gyroscope, and the standby gyroscope is electrically connected to the processor 680, the power supply circuit, and the microprocessor respectively; when the gyroscope 601 fails to operate, the standby gyroscope is activated. The standby gyroscope is the gyroscope 601 which cannot be used at ordinary times, and can be started only when the gyroscope 601 fails, so that the service life of the mobile terminal is prolonged, and when the gyroscope 601 is damaged, the standby gyroscope can be directly used without being disassembled.
In this embodiment, the gyroscope 601 is disposed on the camera module 603, so that the angle of the gyroscope and the angle of the camera shake are closer to each other, and the effect is better when the optical anti-shake processing is performed. Moreover, the gyroscope 601 is arranged on the camera module 603, the influence of heat generated by the mainboard 604 in work engineering does not need to be considered, and the accuracy of acquiring the motion signal by the gyroscope 601 is further improved. The gyroscope 601 does not need to be arranged on the main board 604 at the middle and high end of the movement, the gyroscope 601 in the camera module 603 is directly adopted to collect the movement signal, and the movement signal can be selected and sent to the processor 680 or the optical anti-shake module 602 according to the type of the application program currently running in the mobile terminal. The gyroscope 601 arranged in the camera module 603 is directly used for collecting motion data, the gyroscope 601 does not need to be arranged on the main board 604, and cost is saved; the distribution process of the motion signal is simple and effective.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
The present invention also provides:
a1, a distribution method of motion signals, wherein the motion signals are collected by a gyroscope arranged in a camera module of a mobile terminal, the method comprises the following steps:
the processor of the mobile terminal acquires the type of the currently running application program, wherein the running of the application program needs to utilize the motion signal;
acquiring a motion signal acquired by a gyroscope according to the type of the application program; and/or sending a control command to the gyroscope, and controlling the gyroscope to send the acquired motion signal to the optical anti-shake module of the mobile terminal.
A2, the method for distributing motion signals according to a1, wherein the step of obtaining the type of the currently running application by the processor of the mobile terminal is preceded by the steps of:
judging whether the motion signal is needed for the running of the application program;
and if so, supplying power to the gyroscope through a power supply circuit.
A3, the method for distributing motion signals according to a2, comprising, after the step of powering the gyroscope by a power supply circuit:
acquiring a motion signal of the mobile terminal at a first placing angle;
matching the motion signal with a calibration motion signal;
and if the motion signal is successfully matched with the calibration motion signal, judging that the gyroscope works normally.
4. The method for distributing a motion signal according to claim 3, wherein the step of matching the motion signal with a calibration motion signal comprises:
and if the motion signal is not matched with the calibration motion signal, calibrating the gyroscope according to a preset rule.
A5, according to the distribution method of the motion signal A3, a standby gyroscope is arranged in the camera module; after the step of matching the motion signal with a calibration motion signal, the method comprises:
and if the motion signal is not matched with the calibration motion signal, starting the standby gyroscope, and acquiring the motion signal through the standby gyroscope.
A6, according to the distribution method of the motion signal A1, the motion signal collected by a gyroscope is obtained according to the type of the application program; and/or sending a control command to the gyroscope, wherein before the step of controlling the gyroscope to send the collected motion signal to the optical anti-shake module of the mobile terminal, the method comprises the following steps:
searching a gyroscope sensitivity value corresponding to the application program in a preset sensitivity list;
and controlling the sensitivity and the measuring range of the motion signal acquired by the gyroscope according to the sensitivity value of the gyroscope.
A7, according to the distribution method of the motion signal A1, the motion signal collected by a gyroscope is obtained according to the type of the application program; and/or sending a control command to the gyroscope, wherein before the step of controlling the gyroscope to send the collected motion signal to the optical anti-shake module of the mobile terminal, the method comprises the following steps:
searching a motion signal acquisition frequency value corresponding to the application program in a preset acquisition frequency list;
and controlling the acquisition frequency of the motion signal acquired by the gyroscope according to the motion signal acquisition frequency value.
B1, a distribution device of motion signals, the motion signals are collected by a gyroscope arranged in a camera module of the mobile terminal, the device comprises:
the type analysis unit is used for acquiring the type of the currently running application program by the processor of the mobile terminal, wherein the running of the application program needs to utilize the motion signal;
the distribution unit is used for acquiring the motion signal acquired by the gyroscope according to the type of the application program; and/or sending a control command to the gyroscope, and controlling the gyroscope to send the acquired motion signal to the optical anti-shake module of the mobile terminal.
B2, the distribution device of motion signals according to B1, further comprising:
the judging unit is used for judging whether the motion signal is needed for the running of the application program;
and the power supply unit is used for supplying power to the gyroscope through a power supply circuit if the motion signal is required by the operation of the application program.
B3, the distribution device of motion signals according to B2, further comprising:
the mobile terminal comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring a motion signal of the mobile terminal at a first placing angle;
a matching unit for matching the motion signal with a calibration motion signal;
and the judging unit is used for judging that the gyroscope works normally if the motion signal is successfully matched with the calibration motion signal.
B4, the distribution device of motion signals according to B3, further comprising:
and the calibration unit is used for calibrating the gyroscope according to a preset rule if the motion signal is unsuccessfully matched with the calibration motion signal.
B5, according to the distribution device of the motion signal B3, a standby gyroscope is arranged in the camera module; the device further comprises:
and the standby starting unit is used for starting the standby gyroscope if the motion signal is not matched with the calibration motion signal, and acquiring the motion signal through the standby gyroscope.
B6, the distribution device of motion signals according to B1, further comprising:
the first searching unit is used for searching a gyroscope sensitivity value corresponding to the application program in a preset sensitivity list;
and the first control unit is used for controlling the sensitivity and the measuring range of the motion signal acquired by the gyroscope according to the sensitivity value of the gyroscope.
B7, the distribution device of motion signals according to B1, further comprising:
the second searching unit is used for searching a motion signal acquisition frequency value corresponding to the application program in a preset acquisition frequency list;
and the second control unit is used for controlling the acquisition frequency of the motion signal acquired by the gyroscope according to the motion signal acquisition frequency value.
C1, a mobile terminal comprising a processor and a memory;
the memory is used for storing a program of a distribution apparatus of a motion signal to execute the distribution method of a motion signal of any one of the a1-a 7;
the processor is configured to execute a program stored within the memory,
d1, the mobile terminal comprises a main board, a camera module, an optical anti-shake module and a gyroscope;
the main board is provided with a processor and a power supply circuit, and the processor is electrically connected with the camera module, the optical anti-shake module and the gyroscope respectively; the power supply circuit respectively supplies power to the camera module, the optical anti-shake module and the gyroscope;
the camera module comprises a driving motor and a lens assembly, and the driving motor receives a compensation control command of the optical anti-shake module and drives the lens assembly to move;
the optical anti-shake module comprises a microprocessor, wherein the microprocessor receives and processes the motion signal of the gyroscope, generates the compensation control command and sends the compensation control command to the driving motor;
the gyroscope is arranged on the camera module and used for acquiring a motion signal;
the processor acquires a motion signal acquired by the gyroscope according to the type of the currently running application program; and/or sending a control command to the gyroscope, and controlling the gyroscope to send the acquired motion signal to the microprocessor.
D2, the mobile terminal according to D1, the optical anti-shake module is installed on the camera module.
D3, according to the mobile terminal of D1, a standby gyroscope is arranged on the camera module, and the standby gyroscope is respectively and electrically connected with the processor, the power supply circuit and the microprocessor;
and when the gyroscope fails to work, starting the standby gyroscope.

Claims (9)

1. A distribution method of motion signals, wherein the motion signals are collected by a gyroscope arranged in a camera module of a mobile terminal, the method comprising:
the processor of the mobile terminal acquires the type of the currently running application program, wherein the running of the application program needs to utilize the motion signal;
searching a gyroscope sensitivity value corresponding to the application program in a preset sensitivity list; controlling the sensitivity and the measuring range of the motion signal collected by the gyroscope according to the sensitivity value of the gyroscope;
and acquiring a motion signal acquired by a gyroscope according to the type of the application program, and/or sending a control command to the gyroscope, and controlling the gyroscope to send the acquired motion signal to an optical anti-shake module of the mobile terminal.
2. The distribution method of motion signals according to claim 1, wherein the step of obtaining the type of the currently running application by the processor of the mobile terminal is preceded by the steps of:
judging whether the motion signal is needed for the running of the application program;
and if so, supplying power to the gyroscope through a power supply circuit.
3. The distribution method of motion signals according to claim 2, wherein the step of powering the gyroscope by the power supply circuit is followed by:
acquiring a motion signal of the mobile terminal at a first placing angle;
matching the motion signal with a calibration motion signal;
and if the motion signal is successfully matched with the calibration motion signal, judging that the gyroscope works normally.
4. The method of distributing a motion signal according to claim 3, wherein the step of matching the motion signal with a calibration motion signal is followed by:
and if the motion signal is not matched with the calibration motion signal, calibrating the gyroscope according to a preset rule.
5. The distribution method of motion signals according to claim 3, wherein a standby gyroscope is provided in the camera module; after the step of matching the motion signal with a calibration motion signal, the method comprises:
and if the motion signal is not matched with the calibration motion signal, starting the standby gyroscope, and acquiring the motion signal through the standby gyroscope.
6. The method for distributing motion signals according to claim 1, wherein the step of obtaining the motion signals collected by the gyroscope and/or sending the control commands to the gyroscope according to the type of the application program, and controlling the gyroscope to send the collected motion signals to the optical anti-shake module of the mobile terminal is preceded by the steps of:
searching a motion signal acquisition frequency value corresponding to the application program in a preset acquisition frequency list;
and controlling the acquisition frequency of the motion signal acquired by the gyroscope according to the motion signal acquisition frequency value.
7. A distribution device of motion signals, characterized in that the motion signals are collected by a gyroscope disposed in a camera module of a mobile terminal, the device comprising:
the type analysis unit is used for acquiring the type of the currently running application program by the processor of the mobile terminal, wherein the running of the application program needs to utilize the motion signal;
the first searching unit is used for searching a gyroscope sensitivity value corresponding to the application program in a preset sensitivity list;
the first control unit is used for controlling the sensitivity and the measuring range of the motion signal acquired by the gyroscope according to the sensitivity value of the gyroscope;
and the distribution unit is used for acquiring the motion signal acquired by the gyroscope according to the type of the application program, and/or sending a control command to the gyroscope to control the gyroscope to send the acquired motion signal to the optical anti-shake module of the mobile terminal.
8. A mobile terminal comprising a processor and a memory;
the memory stores a program for a distribution apparatus of a motion signal to execute the distribution method of a motion signal according to any one of claims 1 to 7;
the processor is configured to execute a program stored within the memory.
9. A mobile terminal is characterized by comprising a main board, a camera module, an optical anti-shake module and a gyroscope;
the main board is provided with a processor and a power supply circuit, and the processor is electrically connected with the camera module, the optical anti-shake module and the gyroscope respectively; the power supply circuit respectively supplies power to the camera module, the optical anti-shake module and the gyroscope;
the camera module comprises a driving motor and a lens assembly, and the driving motor receives a compensation control command of the optical anti-shake module and drives the lens assembly to move;
the optical anti-shake module comprises a microprocessor, wherein the microprocessor receives and processes the motion signal of the gyroscope, generates the compensation control command and sends the compensation control command to the driving motor;
the gyroscope is arranged on the camera module and used for acquiring a motion signal;
the processor acquires the motion signal acquired by the gyroscope according to the type of the currently running application program, and/or sends a control command to the gyroscope to control the gyroscope to send the acquired motion signal to the microprocessor.
CN201710345072.3A 2017-05-16 2017-05-16 Mobile terminal and distribution method and device of motion signals of mobile terminal Active CN107172348B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710345072.3A CN107172348B (en) 2017-05-16 2017-05-16 Mobile terminal and distribution method and device of motion signals of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710345072.3A CN107172348B (en) 2017-05-16 2017-05-16 Mobile terminal and distribution method and device of motion signals of mobile terminal

Publications (2)

Publication Number Publication Date
CN107172348A CN107172348A (en) 2017-09-15
CN107172348B true CN107172348B (en) 2020-03-27

Family

ID=59816629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710345072.3A Active CN107172348B (en) 2017-05-16 2017-05-16 Mobile terminal and distribution method and device of motion signals of mobile terminal

Country Status (1)

Country Link
CN (1) CN107172348B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110769147B (en) * 2018-07-25 2021-09-14 北京小米移动软件有限公司 Shooting method and electronic equipment
JP7301531B2 (en) * 2018-12-04 2023-07-03 キヤノン株式会社 CONTROL DEVICE, IMAGING DEVICE, LENS DEVICE, AND CONTROL METHOD
CN110012224B (en) * 2019-03-26 2021-07-09 Oppo广东移动通信有限公司 Camera anti-shake system, camera anti-shake method, electronic device, and computer-readable storage medium
CN109951639A (en) * 2019-03-26 2019-06-28 Oppo广东移动通信有限公司 Camera stabilization system, method, electronic equipment and computer readable storage medium
CN109951640A (en) * 2019-03-26 2019-06-28 Oppo广东移动通信有限公司 Camera anti-fluttering method and system, electronic equipment, computer readable storage medium
CN112822399B (en) * 2021-01-06 2022-10-04 维沃移动通信有限公司 Optical anti-shake method, electronic device, and readable storage medium
CN114353833A (en) * 2021-12-31 2022-04-15 昆山丘钛微电子科技股份有限公司 Camera module, gyro gain determination method and device thereof, and chip

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101554726A (en) * 2009-05-15 2009-10-14 北京工业大学 Flexible two-wheel self-balance robot system and motion control method thereof
CN205249350U (en) * 2015-12-31 2016-05-18 信利光电股份有限公司 Anti -shake camera module and electronic equipment
CN105847637A (en) * 2015-05-29 2016-08-10 维沃移动通信有限公司 Mobile terminal and photographing device thereof
CN106131395A (en) * 2016-06-17 2016-11-16 上海与德通讯技术有限公司 Stabilization system and anti-fluttering method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5574423B2 (en) * 2010-09-24 2014-08-20 カシオ計算機株式会社 Imaging apparatus, display control method, and program
TWI547164B (en) * 2012-07-13 2016-08-21 三營超精密科技股份有限公司 Lens anti-shaking system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101554726A (en) * 2009-05-15 2009-10-14 北京工业大学 Flexible two-wheel self-balance robot system and motion control method thereof
CN105847637A (en) * 2015-05-29 2016-08-10 维沃移动通信有限公司 Mobile terminal and photographing device thereof
CN205249350U (en) * 2015-12-31 2016-05-18 信利光电股份有限公司 Anti -shake camera module and electronic equipment
CN106131395A (en) * 2016-06-17 2016-11-16 上海与德通讯技术有限公司 Stabilization system and anti-fluttering method

Also Published As

Publication number Publication date
CN107172348A (en) 2017-09-15

Similar Documents

Publication Publication Date Title
CN107172348B (en) Mobile terminal and distribution method and device of motion signals of mobile terminal
CN106055364B (en) Application starting method and terminal equipment
CN107450029B (en) Battery state checking method and device, computer equipment and computer readable storage medium
CN103389863B (en) A kind of display control method and device
CN103455407A (en) Mobile terminal CPU (Central Processing Unit) occupation rate monitoring method and device and mobile terminal
US10663521B2 (en) Method and device for ascertaining required charging time
CN107908407B (en) Compiling method and device and terminal equipment
KR20190049801A (en) Data sharing methods and terminals
US20170097725A1 (en) Device and method for starting mobile terminal application and mobile terminal
CN104077211A (en) Test method and test system for mobile terminal software
CN104809055B (en) Application program testing method and device based on cloud platform
CN107562303B (en) Method and device for controlling element motion in display interface
CN108139899B (en) Terminal device and method for controlling charging
CN106020945B (en) Shortcut item adding method and device
CN109309659B (en) Mobile terminal and method and device for logging in application of mobile terminal
CN106911873B (en) Method and device for optimizing motor and mobile terminal
CN111313986B (en) Test circuit structure and antenna test method
CN110602766B (en) Personal hotspot identification method and method for determining association relationship between terminals
CN110109788B (en) Multi-key detection method and device, electronic equipment and storage medium
CN110708673A (en) Position determination method and portable multifunctional equipment
CN103079047B (en) A kind of method of parameter adjustment and terminal
CN108259676B (en) Terminal device and photosensitive control method
CN106487649A (en) The prompting control method of group message and terminal unit
CN109151154B (en) Power consumption control method and mobile terminal
CN112214699A (en) Page processing method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant