Camera shooting control method, chip, camera shooting module and electronic equipment
By analyzing the motor data packets to obtain the stroke data and control parameters of the camera lens, the problem of optical anti-shake control delay in the existing technology is solved, and the precise anti-shake function of the camera module and the optimization of system resources are realized.
Patent Information
- Application Number
- CN202411605596.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2025-02-18
AI Technical Summary
The existing camera modules have parameter switching delay problems in optical anti-shake control, which makes it impossible to accurately control the camera lens to perform anti-shake control at a fixed point.
By receiving and analyzing motor data packets, obtaining motor travel data and current or historical motor control parameters, accurately control the movement of the camera lens to compensate for position changes caused by jitter.
The precise optical anti-shake function of the camera module is realized, reducing the number of motor control parameter instructions issuance, thereby reducing the occupation of the system command bus.
Smart Images

Figure CN119485025A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of camera technology, and in particular to a camera control method, a chip, a camera module and an electronic device. Background Art
[0002] At present, camera modules are usually required to have an optical image stabilization function. Optical image stabilization refers to compensating for the displacement caused by device shaking during the shooting process by moving the optical lens (or camera lens) in a direction perpendicular to the optical axis, thereby avoiding blurred images caused by device shaking.
[0003] In related technologies, optical image stabilization control will change control parameters according to control mode, control stroke and other factors, causing the optical image stabilization control to switch between multiple sets of parameters. The switching process usually sends control instructions to the control unit separately through the control interface, so that the control unit changes related control parameters (such as PID controller parameters). However, the sending of control instructions causes a delay in the parameter switching process, which results in the optical image stabilization control not being able to accurately control the execution of the image stabilization control instructions at a fixed point. Summary of the invention
[0004] The present application provides a camera control method, a chip, a camera module and an electronic device to solve the above technical problems.
[0005] In a first aspect, the present application provides a camera control method, comprising:
[0006] Receiving a motor data packet, the motor data packet is formed by integrating motor stroke basic data and motor related data, the motor related data is used as motor stroke supplementary data or motor control parameters;
[0007] Parse the motor data packet to obtain the motor travel data, or obtain the motor travel data and the current motor control parameters;
[0008] The camera lens movement is controlled according to the motor stroke data and the current motor control parameters, or the camera lens movement is controlled according to the motor stroke data and the historical motor control parameters.
[0009] In some embodiments, the motor data packet includes a plurality of data segments;
[0010] Therein, at least one data segment is used as motor travel basic data, and at least one data segment is used as motor-related data.
[0011] In some embodiments, each motor data packet includes a first data segment and a second data segment;
[0012] The steps of parsing the motor data packet to obtain the motor travel data, or obtaining the motor travel data and the current motor control parameters include:
[0013] Determine the first data segment as motor travel data, and determine the second data segment as current motor control parameters; or
[0014] The first data segment is determined to be the motor stroke basic data, the second data segment is determined to be the motor stroke supplementary data, and the first data segment and the second data segment are concatenated as the motor stroke data.
[0015] In some embodiments, the motor data packet includes a plurality of data segments;
[0016] Among them, at least one data segment is used as motor stroke basic data, at least one data segment is used as motor related data, and at least one data segment is used to indicate that the motor related data is motor stroke supplementary data and / or a motor control parameter.
[0017] In some embodiments, each motor data packet includes a first data segment, a second data segment, and a third data segment;
[0018] The second data segment is used as motor stroke basic data, and the first data segment is used to indicate that the third data segment is motor stroke supplementary data, or indicates that the third data segment is a motor control parameter;
[0019] The steps of parsing the motor data packet to obtain the motor travel data, or obtaining the motor travel data and the current motor control parameters include:
[0020] According to the first data segment, determining that the third data segment is motor stroke supplementary data or motor control parameters;
[0021] When the first data segment indicates that the third data segment is motor stroke supplementary data, the second data segment and the third data segment are concatenated as motor stroke data;
[0022] When the first data segment indicates that the third data segment is a motor control parameter, the second data segment is determined to be motor stroke data, and the third data segment is determined to be a current motor control parameter.
[0023] In some embodiments, each motor data packet includes a first data segment, a second data segment, and a third data segment;
[0024] The second data segment is used as basic data of motor stroke, and the first data segment is used to indicate the number of valid bits of the third data segment;
[0025] The steps of parsing the motor data packet to obtain the motor travel data, or obtaining the motor travel data and the current motor control parameters include:
[0026] When the first data segment indicates that the number of significant digits of the third data segment is equal to 0, the second data segment and the third data segment are concatenated as the motor stroke data;
[0027] When the first data segment indicates that the number of valid digits of the third data segment is greater than 0 and less than the length of the third data segment, determine that the data in the third data segment whose data length is the valid digits is the current motor control parameter, and splice the remaining data in the third data segment with the second data segment as the motor stroke data, or splice the data in the third data segment whose data length is the valid digits with the second data segment as the motor stroke data, and use the remaining data in the third data segment as the current motor control parameter;
[0028] When the first data segment indicates that the number of effective bits of the third data segment is equal to the length of the third data segment, the third data segment is determined to be the current motor control parameter, and the second data segment is determined to be the motor stroke data.
[0029] In some embodiments, each motor data packet includes a first data segment, a plurality of second data segments, and a plurality of third data segments, and the plurality of second data segments correspond one-to-one to the third data segments;
[0030] Each second data segment is used as motor stroke basic data, and the first data segment is used to indicate that each third data segment is motor stroke supplementary data, or indicates that each third data segment is a motor control parameter;
[0031] The steps of parsing the motor data packet to obtain the motor travel data, or obtaining the motor travel data and the current motor control parameters include:
[0032] According to the first data segment, determining each third data segment as motor stroke supplementary data or motor control parameters;
[0033] When the first data segment indicates that each third data segment is motor stroke supplementary data, the second data segment and the third data segment corresponding to each other are spliced as a set of motor stroke data;
[0034] When the first data segment indicates that each third data segment is a motor control parameter, each second data segment is determined to be a set of motor stroke data, and each third data segment is determined to be a set of current motor control parameters.
[0035] In some embodiments, each motor data packet includes a plurality of first data segments, a plurality of second data segments, and a plurality of third data segments, and the plurality of first data segments, the plurality of second data segments, and the third data segments correspond to each other one by one;
[0036] Each second data segment is used as motor stroke basic data, and each first data segment is used to indicate that the corresponding third data segment is motor stroke supplementary data, or indicates that the corresponding third data segment is a motor control parameter;
[0037] The steps of parsing the motor data packet to obtain the motor travel data, or obtaining the motor travel data and the current motor control parameters include:
[0038] According to each first data segment, determining that the corresponding third data segment is motor stroke supplementary data or motor control parameters;
[0039] When the first data segment indicates that the corresponding third data segment is motor stroke supplementary data, the second data segment and the third data segment corresponding to each other are spliced as a set of motor stroke data;
[0040] When the first data segment indicates that the corresponding third data segment is a motor control parameter, the corresponding second data segment is determined to be a set of motor stroke data, and the corresponding third data segment is determined to be a set of current motor control parameters.
[0041] In some embodiments, each motor data packet includes a plurality of first data segments, a plurality of second data segments, and a third data segment, and the plurality of first data segments correspond one-to-one to the plurality of second data segments;
[0042] Each second data segment is used as motor stroke basic data, and each first data segment is used to indicate that the third data segment is motor stroke supplementary data, or indicates that the third data segment is a motor control parameter;
[0043] The steps of parsing the motor data packet to obtain the motor travel data, or obtaining the motor travel data and the current motor control parameters include:
[0044] According to each first data segment, determining that the third data segment is motor stroke supplementary data or motor control parameters;
[0045] When the first data segment indicates that the third data segment is motor stroke supplementary data, the corresponding second data segment and the third data segment are spliced as a set of motor stroke data;
[0046] When the first data segment indicates that the third data segment is a motor control parameter, the corresponding second data segment is determined to be a set of motor stroke data, and the third data segment is determined to be a current motor control parameter corresponding to the motor stroke data.
[0047] In some embodiments, each motor data packet includes a first data segment, a plurality of second data segments, and a third data segment;
[0048] Each second data segment is used as motor stroke basic data, and the first data segment is used to indicate that the third data segment is motor stroke supplementary data, or to indicate that the third data segment is a motor control parameter;
[0049] The steps of parsing the motor data packet to obtain the motor travel data, or obtaining the motor travel data and the current motor control parameters include:
[0050] According to the first data segment, determining that the third data segment is motor stroke supplementary data or motor control parameters;
[0051] When the first data segment indicates that the third data segment is motor stroke supplementary data, each second data segment is concatenated with the third data segment to obtain multiple sets of motor stroke data;
[0052] When the first data segment indicates that the third data segment is a motor control parameter, each second data segment is determined to be a set of motor stroke data, and the third data segment is determined to be a current motor control parameter corresponding to each set of motor stroke data.
[0053] In a second aspect, the present application provides a chip, including:
[0054] A receiving unit, the receiving unit is used for the motor data packet to be formed by fusing the motor stroke basic data and the motor related data, the motor related data being used as the motor stroke supplementary data or the motor control parameter;
[0055] A parsing unit, the parsing unit is used to parse the motor data packet to obtain the motor stroke data, or to obtain the motor stroke data and the current motor control parameters;
[0056] A control unit is used to control the movement of the camera lens according to the motor stroke data and the current motor control parameters, or to control the movement of the camera lens according to the motor stroke data and the historical motor control parameters.
[0057] In a third aspect, the present application provides a camera module, including:
[0058] Camera lens;
[0059] A camera motor, the camera motor is used to drive the camera lens to move;
[0060] As in the chip of the second aspect, the chip is used to output a control signal to the camera motor to drive the camera motor to control the movement of the camera lens and the position change caused by the shaking of the camera lens.
[0061] In a fourth aspect, the present application provides an electronic device comprising the camera module as described in the third aspect.
[0062] In the present application, the motor data packet is formed by the fusion of motor stroke data and motor-related data. The motor-related data can be used as motor stroke supplementary data or motor control parameters. Then, by parsing the motor data packet, the motor stroke data and the current motor control parameters can be obtained, so that the movement of the camera lens can be controlled according to the motor stroke data and the current motor control parameters to compensate for the position change caused by the camera lens shaking, and finally the optical image stabilization function of the camera module is realized to avoid the phenomenon of blurred images caused by equipment shaking. At the same time, when the motor data packet is formed by the fusion of motor stroke data and motor control parameters, the motor stroke data indicates a node of a fixed stroke, then the current motor control parameters after parsing can take effect at the fixed stroke node, and then the motor control parameters can be accurately changed at a fixed node and optical image stabilization control can be realized, while reducing the number of motor control parameter instructions issued, thereby reducing the occupancy of the system instruction bus. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0064] Figure 1 A schematic diagram of an electronic device in an embodiment of the present application is shown;
[0065] Figure 2 A schematic diagram of a process flow of a camera control method in an embodiment of the present application is shown;
[0066] Figure 3 A schematic diagram of a motor data packet in an embodiment of the present application is shown;
[0067] Figure 4 A schematic diagram of a process flow of motor data packet parsing in an embodiment of the present application is shown;
[0068] Figure 5 Another schematic diagram of the process of parsing a motor data packet in an embodiment of the present application is shown;
[0069] Figure 6 Another schematic diagram of the process of parsing a motor data packet in an embodiment of the present application is shown;
[0070] Figure 7 Another schematic diagram of the process of parsing a motor data packet in an embodiment of the present application is shown;
[0071] Figure 8 Another schematic diagram of the process of parsing a motor data packet in an embodiment of the present application is shown;
[0072] Fig. 9 Another schematic diagram of the process of parsing a motor data packet in an embodiment of the present application is shown;
[0073] Fig.10 A schematic diagram of a chip in an embodiment of the present application is shown;
[0074] Fig.11 The process of using the camera control method on an electronic device in an embodiment of the present application is shown;
[0075] Fig.12 The process of using the camera control method on a test platform in an embodiment of the present application is shown.
[0076] Among them, 101 is a shake detector, 102 is a processor, 103 is an OIS chip, 104 is a motor controller, 105 is a camera motor, 106 is a camera lens, 1000 is a chip, 1001 is a receiving unit, 1001 is a parsing unit, and 1002 is a control unit. DETAILED DESCRIPTION
[0077] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0078] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0079] In this application, the word "exemplary" is used to mean "serving as an example, illustration, or illustration." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any person skilled in the art to implement and use the invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the invention can be implemented without using these specific details. In other instances, well-known structures and processes are not elaborated in detail to avoid obscuring the description of the invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in this application.
[0080] The embodiments of the present application provide a camera control method, a chip, a camera module and an electronic device, which are described in detail below.
[0081] Before introducing the camera control method of the present application, an electronic device to which the camera control method of the present application is applied is first introduced. Figure 1 , Figure 1 A schematic diagram of an electronic device in an embodiment of the present application is shown, wherein the electronic device includes a shake detector 101, a processor 102, an OIS chip 103, a motor controller 104, a camera motor 105 and a camera lens 106.
[0082] Specifically, the shake detector 101 can detect the shake phenomenon of the electronic device, such as the shake phenomenon of the electronic device caused by the shake of the user's hand during the photo shooting process; for example, the shake phenomenon caused by the shake of the electronic device (such as a mobile robot, a car, a drone) itself. Exemplarily, the shake detector 101 can include but is not limited to a gyroscope, an acceleration sensor, an inertial sensor, etc.
[0083] The processor 102 can receive the electronic device jitter data output by the jitter detector 101, and can output a data stream after calculation. For example, when the electronic device jitters upward by 1 cm, the processor can calculate the motor stroke data in the data stream as moving downward by 1 cm. The data stream includes multiple motor data packets transmitted serially, each motor data packet includes motor stroke data, and at least one motor data packet is formed by merging the motor stroke data and the motor control parameters. Exemplarily, the data stream can be sent to the OIS chip 103 based on a communication interface such as an I2C communication interface, an I3C communication interface, a USB interface, a serial communication interface, etc.
[0084] The OIS chip 103 can receive the data stream and parse the motor data packets in the data stream to obtain the motor stroke data, or obtain the motor stroke data and the current motor control parameters, so as to input the motor stroke data and the current motor control parameters into the motor controller 104, and control the camera motor 105 through the motor controller 104 to drive the camera lens 106 to move.
[0085] The motor controller 104 can receive the motor stroke data and current motor control parameters output by the OIS chip 103, and based on the motor stroke data and the current motor control parameters, control the camera motor 105 to drive the camera lens 106 to move in the opposite direction of the electronic device shaking, thereby avoiding the phenomenon that the image is blurred due to the position change of the camera lens 106 when taking pictures. For example, when the electronic device shakes downward, the motor controller 104 can control the camera motor 105 to drive the camera lens 106 to move upward according to the motor stroke data, thereby ensuring that the horizontal position of the camera lens 106 remains unchanged when taking pictures; for another example, when the electronic device shakes to the left, the motor controller 104 can control the camera motor 105 to drive the camera lens 106 to move to the right according to the anti-shake stroke, thereby ensuring that the vertical position of the camera lens 106 remains unchanged when taking pictures.
[0086] Exemplarily, the motor controller 104 may include but is not limited to a PID closed-loop controller, an open-loop controller, a feedforward controller, a fuzzy controller, etc., and the motor control parameters may include but are not limited to parameters of various controllers (eg, PID parameters).
[0087] The camera motor 105 can control the camera lens 106 to move. For example, the camera motor 105 can control the camera lens 106 to move along the direction of the optical axis to change the focal length for focusing; for another example, the camera motor 105 can control the camera lens 106 to move in a direction perpendicular to the optical axis for optical image stabilization. In some embodiments of the present application, the camera motor 105 may include a motor, which drives the camera lens 106 to move by converting the rotation of the motor into linear motion. In some embodiments of the present application, the camera motor 105 may include an electromagnetic coil, which drives the camera lens 106 to move by the magnetic force generated by the electromagnetic coil.
[0088] It should be noted that the above description of the electronic device is only for example and explanation, and does not limit the scope of application of the present application. For those skilled in the art, various modifications and changes can be made to the electronic device under the guidance of the present application. For example, the above embodiment uses optical image stabilization of the camera to illustrate the application scenario of the camera control method of the present application. In fact, the camera control method of the present application can also be applied to the camera optical focus scenario to control the camera lens to focus. However, these modifications and changes are still within the scope of the present application.
[0089] Next, we will introduce the camera control method of this application. Figure 2 , Figure 2 A schematic flow chart of a camera control method in an embodiment of the present application is shown, wherein the camera control method includes:
[0090] Step S201, receiving a motor data packet, the motor data packet is formed by integrating motor stroke basic data and motor related data, the motor related data is used as motor stroke supplementary data or motor control parameters;
[0091] Specifically, when the camera control method is applied to a camera optical image stabilization scenario, a motor data packet can be generated by a processor 102 in an electronic device based on the electronic device jitter data output by a jitter detector 101. At this time, the motor data packet indicates the anti-shake stroke of the camera lens 106. When the processor 102 transmits multiple motor data packets serially, the multiple motor data packets transmitted serially can indicate the continuous stroke positions of the camera lens 106 in a continuous time.
[0092] The motor stroke basic data is basic data indicating the stroke of the camera lens 106 (for example, anti-shake stroke or focus stroke), and the motor stroke supplementary data is compensation data indicating the stroke of the camera lens 106. For example, the length of the motor stroke basic data is N bits, and the motor-related data is M bits. When the motor-related data is used as motor stroke supplementary data, splicing the motor stroke basic data and the motor stroke supplementary data can improve the accuracy of the motor stroke data, thereby facilitating higher-precision control of the camera lens 106.
[0093] The motor control parameters are control data for controlling the travel of the camera lens 106. By way of example, the motor control parameters may include but are not limited to control gain, control parameter ID, control parameters of various controllers (PID closed-loop controller, open-loop controller, feedforward controller, fuzzy controller, etc.) (e.g., PID parameters), etc.
[0094] In some embodiments of the present application, the processor 102 can configure the corresponding motor control parameters according to the jitter data of the electronic device, so as to obtain a motor data packet formed by the fusion of the motor stroke basic data and the motor control parameters. For example, when the jitter data of the electronic device is large (that is, the electronic device shakes more violently), the motor stroke basic data corresponding to the jitter data can be configured with the motor control parameters of the large stroke, so that the corresponding motor data packet is generated by the motor stroke data and the motor control parameters of the large stroke. For another example, when the jitter data of the electronic device is small (that is, the electronic device shakes slightly), the motor stroke basic data corresponding to the jitter data can be configured with the motor control parameters of the small stroke, so that the corresponding motor data packet is generated by the motor stroke basic data and the motor control parameters of the small stroke.
[0095] In some embodiments of the present application, the processor 102 may configure corresponding motor control parameters according to the shooting mode or the mode of the camera motor 105. For example, when the shooting mode is a high power consumption mode or a high frame rate mode, the processor 102 may configure the motor control parameters of the high power consumption mode or the high frame rate mode for the first motor data packet among the multiple motor data packets transmitted serially; for another example, when the shooting mode is a low power consumption mode or a low frame rate mode, the processor 102 may configure the motor control parameters of the low power consumption mode or the low frame rate mode for the first motor data packet among the multiple motor data packets transmitted serially.
[0096] It can be understood that the above-mentioned fusion of motor control parameters and corresponding motor stroke basic data is only an exemplary embodiment, and the fusion of motor control parameters and corresponding motor stroke basic data is not limited to the above-mentioned embodiment, and technical personnel in this field can set it according to actual needs.
[0097] Step S202, parsing the motor data packet to obtain motor travel data, or obtaining the motor travel data and current motor control parameters;
[0098] After receiving the motor data packet, the OIS chip 103 can parse the motor data packet. When the motor stroke basic data and the motor stroke supplementary data in the motor data packet are merged, the OIS chip 103 can obtain the motor stroke data through analysis; and when the motor data packet is formed by the fusion of the motor stroke basic data and the motor control parameters, the OIS chip 103 can obtain the motor stroke data and the current motor control parameters through analysis.
[0099] In some embodiments of the present application, a motor data packet may include multiple data segments, one or some data segments are designated as motor stroke basic data, and another or other data segments are designated as motor-related data. The parsing process may refer to splitting the multiple data segments, thereby splicing one or some of the split data segments as motor stroke data, and splicing another or other data segments as current motor control parameters.
[0100] In some embodiments of the present application, the parsing process may refer to intercepting data of consecutive bits in the motor data packet as motor stroke data, and intercepting data of another consecutive bit in the motor data packet as current motor control parameters. For example, for a motor data packet with a data length of 64 bits, the OIS chip 103 may intercept the first 32 bits of data as motor stroke basic data, and intercept the last 32 bits of data as current motor control parameters or motor stroke supplementary data.
[0101] Step S203 , controlling the movement of the camera lens according to the motor stroke data and the current motor control parameters, or controlling the movement of the camera lens according to the motor stroke data and the historical motor control parameters.
[0102] After obtaining the motor stroke data, or obtaining the motor stroke data and the current motor control parameters, the motor stroke data (or the motor stroke data and the current motor control parameters) can be input into the motor controller 104, and the motor controller 104 controls the camera motor 105 to drive the camera lens 106 to move, so as to compensate for the position change caused by the shaking of the camera lens 106. In some embodiments of the present application, the motor controller 104 can also be integrated into the OIS chip 103, and the motor stroke data and the current motor control parameters are transmitted to the motor controller 104 by on-chip data transmission.
[0103] It should be noted that when the motor data packet is parsed to obtain the motor stroke data and the current motor control parameters, the OIS chip 103 can input the motor stroke data and the current motor control parameters into the motor controller 104, thereby changing the control parameters of the motor controller 104, and after changing the control parameters (such as PID parameters) of the motor controller 104, the motor controller 104 controls the camera motor 105 to move the camera lens 106 according to the motor stroke data. When the motor data packet is parsed to obtain the motor stroke data, since the motor controller 104 stores the historical motor control parameters (such as the motor control parameters in the previous motor data packet), the OIS chip 103 inputs the motor stroke data into the motor controller 104, and the motor controller 104 can control the camera motor 105 to move the camera lens 106 according to the historical motor control parameters and the motor stroke data.
[0104] Therefore, in the embodiment of the present application, the motor data packet in the present application is formed by the fusion of motor stroke data and motor related data, and the motor related data can be used as motor stroke supplementary data or motor control parameters. Then, the motor data packet is parsed to obtain the motor stroke data and the current motor control parameters, so that the movement of the camera lens 106 can be controlled according to the motor stroke data and the current motor control parameters to compensate for the position change caused by the shaking of the camera lens 106, and finally the optical image stabilization function of the camera module is realized to avoid the phenomenon of blurred images caused by device shaking. At the same time, when the motor data packet is formed by the fusion of motor stroke data and motor control parameters, the motor stroke data indicates a node of a fixed stroke, and the parsed current motor control parameters can take effect at the fixed stroke node, and then the motor control parameters can be accurately changed at a fixed node and optical image stabilization control can be realized, while reducing the number of motor control parameter instructions issued, thereby reducing the occupancy of the system instruction bus.
[0105] In some embodiments of the present application, see Figure 3 , Figure 3 A schematic diagram of a motor data packet in an embodiment of the present application is shown, wherein the motor data packet includes multiple data segments; wherein at least one data segment is used as motor stroke basic data, and at least one data segment is used as motor-related data. After the OIS chip 103 parses the motor data packet, the motor stroke data can be parsed, or the motor stroke data and motor control parameters can be obtained.
[0106] As an example, see Figure 4 , Figure 4 A schematic diagram of motor data packet parsing in an embodiment of the present application is shown, wherein each motor data packet includes a first data segment and a second data segment; the motor data packet is parsed to obtain motor stroke data, or the steps of obtaining motor stroke data and current motor control parameters include:
[0107] Step S401, determining that the first data segment is motor travel data, and determining that the second data segment is current motor control parameters; or
[0108] Step S402, determining the first data segment as motor stroke basic data, determining the second data segment as motor stroke supplementary data, and concatenating the first data segment and the second data segment as motor stroke data.
[0109] For example, when the second data segment is used as a motor control parameter, the first data segment can be determined as the motor stroke data, and the second data segment can be determined as the current motor control parameter, so that the current motor control parameter takes effect at the fixed stroke node; and when the second data segment is used as motor stroke supplementary data, the first data segment can be determined as the motor stroke basic data, and the second data segment can be determined as the motor stroke supplementary data, and the first data segment and the second data segment can be spliced as the motor stroke data, so as to improve the accuracy of the motor stroke data.
[0110] In some embodiments of the present application, at least one data segment is used as motor stroke basic data, at least one data segment is used as motor related data, and at least one data segment is used to indicate that the motor related data is motor stroke supplementary data and / or a motor control parameter. Specifically, the motor stroke supplementary data can supplement the motor stroke basic data, thereby increasing the number of bits of the motor stroke data, making the motor stroke data have higher accuracy, and ultimately helping to improve the anti-shake control accuracy of the camera lens 106.
[0111] As an example, see Figure 5 , Figure 5Another flow chart of the motor data packet parsing in the embodiment of the present application is shown, wherein each motor data packet includes a first data segment, a second data segment and a third data segment, the second data segment is used as the motor stroke basic data, and the first data segment is used to indicate that the third data segment is the motor stroke supplementary data, or indicates that the third data segment is the motor control parameter; the motor data packet is parsed to obtain the motor stroke data, or the step of obtaining the motor stroke data and the current motor control parameter includes:
[0112] Step S501, judging, based on the first data segment, that the third data segment is motor stroke supplementary data or motor control parameters;
[0113] Step S502, when the first data segment indicates that the third data segment is motor stroke supplementary data, concatenate the second data segment and the third data segment as motor stroke data;
[0114] Step S503: when the first data segment indicates that the third data segment is a motor control parameter, determine that the second data segment is motor stroke data, and determine that the third data segment is a current motor control parameter.
[0115] For example, taking the first data segment as 1-bit data as an example, when the first data segment is "1", the first data segment indicates that the third data segment is a motor control parameter, and the third data segment can be judged as a motor control parameter, so that the second data segment can be determined as motor stroke data, and the third data segment can be determined as the current motor control parameter; conversely, when the first data segment is "0", the first data segment indicates that the third data segment is motor stroke supplementary data, so that the third data segment can be judged as motor stroke supplementary data, and the second data segment and the third data segment can be spliced as motor stroke data.
[0116] It can be seen that in the above embodiment, when the motor data packet does not contain motor control parameters, the third data segment can be used as motor stroke supplementary data, so that the second data segment and the third data segment are spliced as motor stroke data, which is equivalent to increasing the number of bits of the motor stroke data, so that the motor stroke data has higher accuracy, which is ultimately beneficial to improving the anti-shake control accuracy of the camera lens 106.
[0117] As another example, see Figure 6 , Figure 6 Another flow chart of the motor data packet parsing in the embodiment of the present application is shown, wherein each motor data packet includes a first data segment, a second data segment and a third data segment, the second data segment is used as the motor stroke basic data, the first data segment is used to indicate the effective number of bits of the third data segment, and the motor data packet is parsed to obtain the motor stroke data, or the step of obtaining the motor stroke data and the current motor control parameters includes:
[0118] Step S601, when the first data segment indicates that the number of effective digits of the third data segment is equal to 0, the second data segment and the third data segment are concatenated as motor stroke data;
[0119] Step S602, when the first data segment indicates that the number of valid digits of the third data segment is greater than 0 and less than the length of the third data segment, determine that the data in the third data segment whose data length is the valid digits is the current motor control parameter, and splice the remaining data in the third data segment with the second data segment as the motor stroke data, or splice the data in the third data segment whose data length is the valid digits with the second data segment as the motor stroke data, and use the remaining data in the third data segment as the current motor control parameter;
[0120] Step S603, when the first data segment indicates that the number of effective bits of the third data segment is equal to the length of the third data segment, the third data segment is determined as the current motor control parameter, and the second data segment is determined as the motor stroke data.
[0121] For example, taking the third data segment as 32-bit data as an example, when the first data segment indicates that the number of valid digits of the third data segment is 0, it can be determined that the second data segment is the motor stroke basic data and the third data segment is the motor stroke supplementary data, so that the second data segment and the third data segment can be spliced as the motor stroke data; when the first data segment indicates that the number of valid digits of the third data segment is 16, it can be determined that the first 16 bits of the third data segment are the motor stroke supplementary data, and the last 16 bits of the third data segment are the motor control parameters, so that the second data segment and the first 16 bits of the third data segment can be spliced as the motor stroke data, and the last 16 bits of the third data segment can be determined as the current motor control parameters, or, it can be determined that the first 16 bits of the third data segment are the motor control parameters, and the last 16 bits of the third data segment are the motor stroke supplementary data, so that the second data segment and the last 16 bits of the third data segment can be spliced as the motor stroke data; and when the first data segment indicates that the number of valid digits of the third data segment is 32 (i.e., the length of the third data segment), it can be determined that the second data segment is the motor stroke data, and the third data segment is the current motor control parameters.
[0122] It can be seen that the above embodiment can use the third data segment as motor stroke supplementary data not only when the motor data packet does not contain motor control parameters, but also when the motor data packet contains motor control parameters, the remaining bits of data in the third data segment can be used as motor stroke supplementary data, so that the second data segment and the third data segment (or the remaining data in the third data segment) are spliced as motor stroke data, which is equivalent to increasing the number of bits of the motor stroke data, so that the motor stroke data has higher accuracy, which is ultimately beneficial to improving the anti-shake control accuracy of the camera lens 106.
[0123] As another exemplary embodiment, see Figure 7 , Figure 7 Another flow chart of the motor data packet parsing in the embodiment of the present application is shown, wherein each motor data packet includes a first data segment, a plurality of second data segments and a plurality of third data segments, and the plurality of second data segments correspond to the third data segments one by one; each second data segment is used as motor stroke basic data, and the first data segment is used to indicate that each third data segment is motor stroke supplementary data, or indicates that each third data segment is a motor control parameter; the motor data packet is parsed to obtain motor stroke data, or the steps of obtaining motor stroke data and current motor control parameters include:
[0124] Step S701, judging, based on the first data segment, that each third data segment is motor stroke supplementary data or a motor control parameter;
[0125] Step S702, when the first data segment indicates that each third data segment is motor stroke supplementary data, splicing the corresponding second data segments and third data segments into a set of motor stroke data;
[0126] Step S703 , when the first data segment indicates that each third data segment is a motor control parameter, each second data segment is determined to be a set of motor stroke data, and each third data segment is determined to be a set of current motor control parameters.
[0127] For example, in Figure 7 In the example, the plurality of second data segments include a second data segment A and a second data segment B, and the plurality of third data segments include a third data segment A and a third data segment B. Taking the first data segment as 1-bit data as an example, when the first data segment is "1", the first data segment indicates that each third data segment is a motor control parameter, and each third data segment can be determined to be a motor control parameter. Therefore, it can be determined that the second data segment A is a set of motor stroke data A, the second data segment B is another set of motor stroke data B, and the third data segment A is determined to be the current motor control parameter A corresponding to the motor stroke data A, and the third data segment B is determined to be the current motor control parameter B corresponding to the motor stroke data B.
[0128] On the contrary, when the first data segment is "0" and the first data segment indicates that each third data segment is motor stroke supplementary data, then each third data segment can be judged as motor stroke supplementary data, and the second data segment A and the third data segment A are spliced as a set of motor stroke data A, and the second data segment B and the third data segment B are spliced as a set of motor stroke data B.
[0129] It can be seen that in the above embodiment, when the motor data packet does not contain motor control parameters, the third data segment can be used as motor stroke supplementary data, so that the second data segment and the third data segment are spliced as multiple sets of motor stroke data, which is equivalent to increasing the number of bits of the motor stroke data, so that the motor stroke data has higher accuracy, which is ultimately beneficial to improving the anti-shake control accuracy of the camera lens 106.
[0130] As another exemplary embodiment, see Figure 8 , Figure 8 Another flow chart of the motor data packet parsing in the embodiment of the present application is shown, wherein each motor data packet includes a plurality of first data segments, a plurality of second data segments and a plurality of third data segments, and the plurality of first data segments, the plurality of second data segments and the third data segments correspond to each other one by one; each second data segment is used as the motor stroke basic data, and each first data segment is used to indicate that the corresponding third data segment is the motor stroke supplementary data, or indicates that the corresponding third data segment is the motor control parameter; the motor data packet is parsed to obtain the motor stroke data, or the step of obtaining the motor stroke data and the current motor control parameter includes:
[0131] Step S801, judging, based on each first data segment, whether the corresponding third data segment is motor stroke supplementary data or motor control parameters;
[0132] Step S802, when the first data segment indicates that the corresponding third data segment is motor stroke supplementary data, splicing the corresponding second data segment and the third data segment as a set of motor stroke data;
[0133] Step S803, when the first data segment indicates that the corresponding third data segment is a motor control parameter, determining the corresponding second data segment is a set of motor stroke data, and determining the corresponding third data segment is a set of current motor control parameters.
[0134] For example, in Figure 8 In the example, the plurality of first data segments include the first data segment A and the second data segment B, the plurality of second data segments include the second data segment A and the second data segment B, and the plurality of third data segments include the third data segment A and the third data segment B. Taking the first data segment as 1-bit data as an example, when the first data segment A and the second data segment B are "1", the first data segment A indicates that the third data segment A is a motor control parameter, and the first data segment B indicates that the third data segment B is a motor control parameter, then it can be determined that the second data segment A is a set of motor stroke data A, the second data segment B is another set of motor stroke data B, and the third data segment A is determined to be the current motor control parameter A corresponding to the motor stroke data A, and the third data segment B is the current motor control parameter B corresponding to the motor stroke data B.
[0135] On the contrary, when the first data segment A and the second data segment B are "0", the first data segment A indicates that the third data segment A is the motor stroke supplementary data, and the first data segment B indicates that the third data segment B is the motor stroke supplementary data, then the second data segment A and the third data segment A are spliced as a set of motor stroke data A, and the second data segment B and the third data segment B are spliced as a set of motor stroke data B.
[0136] Similarly, in the above embodiment, when the motor data packet does not include the motor control parameters, the third data segment can be used as the motor stroke supplementary data, thereby facilitating improving the anti-shake control accuracy of the camera lens 106 .
[0137] As another exemplary embodiment, see Fig. 9 , Fig. 9 Another flow chart of the motor data packet parsing in the embodiment of the present application is shown, wherein each motor data packet includes a first data segment, a plurality of second data segments and a third data segment; each second data segment is used as motor stroke basic data, and the first data segment is used to indicate that the third data segment is motor stroke supplementary data, or indicates that the third data segment is a motor control parameter; the motor data packet is parsed to obtain the motor stroke data, or the step of obtaining the motor stroke data and the current motor control parameter includes:
[0138] Step S901, judging, based on the first data segment, that the third data segment is motor stroke supplementary data or motor control parameters;
[0139] Step S902, when the first data segment indicates that the third data segment is motor stroke supplementary data, concatenate each second data segment with the third data segment to obtain multiple sets of motor stroke data;
[0140] Step S803, when the first data segment indicates that the third data segment is a motor control parameter, each second data segment is determined to be a set of motor stroke data, and the third data segment is determined to be a current motor control parameter corresponding to each set of motor stroke data.
[0141] For example, in Fig. 9 In the example, the plurality of first data segments include the first data segment A and the second data segment B, and the plurality of second data segments include the second data segment A and the second data segment B. Taking the first data segment as 1-bit data as an example, when the first data segment A and the second data segment B are "1", the first data segment A indicates that the third data segment is a motor control parameter, and the first data segment indicates that the third data segment is a motor control parameter, then it can be determined that the second data segment A is a set of motor stroke data A, the second data segment B is another set of motor stroke data B, and the third data segment is determined to be the current motor control parameter A corresponding to the motor stroke data A, and the third data segment is the current motor control parameter B corresponding to the motor stroke data B.
[0142] On the contrary, when the first data segment A and the second data segment B are "0", the first data segment A indicates that the third data segment is motor stroke supplementary data, and the first data segment B indicates that the third data segment is motor stroke supplementary data, then the second data segment A and the third data segment are spliced as a set of motor stroke data A, and the second data segment B and the third data segment are spliced as a set of motor stroke data B.
[0143] Similarly, in the above embodiment, when the motor data packet does not include the motor control parameters, the third data segment can be used as the motor stroke supplementary data, thereby facilitating improving the anti-shake control accuracy of the camera lens 106 .
[0144] It is worth noting that the above content about the camera control method is intended to clearly illustrate that during the implementation verification process of this application, technical personnel in this field can make equivalent modified designs under the guidance of this application. For example, the data packet can also set more data segments to carry data transmission address information, port information, etc. through other data segments.
[0145] Furthermore, in order to better implement the camera control method in the embodiment of the present application, on the basis of the camera control method, the present application also provides a chip, see Fig.10 , Fig.10 A schematic diagram of a chip in an embodiment of the present application is shown, wherein the chip 1000 includes:
[0146] A receiving unit 1001, the receiving unit 1001 is used to receive a motor data packet, wherein the motor data packet is formed by integrating motor stroke basic data and motor related data, wherein the motor related data is used as motor stroke supplementary data or motor control parameters;
[0147] The parsing unit 1002 is used to parse the motor data packet to obtain the motor travel data, or obtain the motor travel data and the current motor control parameters;
[0148] The control unit 1003 is used to control the movement of the camera lens according to the motor stroke data and the current motor control parameters, or to control the movement of the camera lens according to the motor stroke data and historical motor control parameters.
[0149] In the embodiment of the present application, since at least one motor data packet is formed by the fusion of motor travel data and motor control parameters, and the motor travel data indicates a fixed travel node, the current motor control parameters parsed by the parsing unit 1002 can take effect at the fixed travel node, thereby accurately changing the motor control parameters at a fixed node and realizing optical image stabilization control, and reducing the number of motor control parameter instructions issued, thereby reducing the occupancy of the system instruction bus.
[0150] Now, taking electronic equipment as an application scenario, the process of using the camera control method of the present application is exemplified. Fig.11 , Fig.11 The process of using the camera control method on an electronic device in an embodiment of the present application is shown, wherein the control stroke data output by the camera module posture is sent to the OIS chip driver for preprocessing, the OIS chip driver generates a motor data packet based on the control stroke data, and sends the motor data packet to the receiving unit 1001 of the OIS chip through the I2C / I3C interface, and the motor data packet is sequentially parsed into motor stroke data and motor control parameters by the OIS chip receiving and parsing unit 1002, so that the motor stroke data and motor control parameters are sent to the control unit 1003 for motor stroke control.
[0151] It is understandable that the camera control method of the present application is not limited to the use scenario of the electronic device. In some possible embodiments, the camera control method of the present application can also be applied to the test platform to facilitate motor testing. For example, see Fig.12 , Fig.12 The process of using the camera control method on a test platform in an embodiment of the present application is shown, wherein the upper computer software presets the travel data, the upper computer generates a motor data packet through data preprocessing according to the protocol, and then sends the motor data packet to the data receiving unit of the lower computer through a communication interface such as a serial port / USB / network port. The motor data packet is sequentially parsed by the parsing unit into motor travel data and motor control parameters, so that the lower computer can perform motor travel control through the motor travel data and motor control parameters.
[0152] Furthermore, in order to better implement the camera control method in the embodiment of the present application, on the basis of the camera control method, the present application also provides a camera module, the camera module includes: a camera lens, a camera motor and the chip described in the above embodiment, the camera motor is used to drive the camera lens to move, and the chip is used to output a control signal to the camera motor to drive the camera motor to control the movement of the camera lens and the position change caused by the shaking of the camera lens. Since the camera module in the embodiment of the present application is provided with the chip of the above embodiment, it has all the beneficial effects of the above embodiment, which will not be repeated here.
[0153] Furthermore, in order to better implement the camera module in the embodiment of the present application, on the basis of the camera module, the present application also provides an electronic device, and the electronic device includes the camera module as described in the above embodiment. Exemplarily, the electronic device may include but is not limited to displays, cars, smart wearable devices, mobile terminals, smart home devices, etc. Smart wearable devices include but are not limited to smart watches, smart bracelets, and cervical massagers. Mobile terminals include but are not limited to smart phones, laptops, tablets, and POS (point of sales terminal). Smart home devices include but are not limited to smart sockets, smart rice cookers, smart sweepers, smart lights, etc.
[0154] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.
[0155] The above is a detailed introduction to a camera control method, chip, camera module and electronic device provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A camera control method, characterized in that: include: receiving a motor data packet, wherein the motor data packet is formed by fusing motor stroke basic data and motor related data, wherein the motor related data is used as motor stroke supplementary data or motor control parameters; Parsing the motor data packet to obtain the motor travel data, or obtaining the motor travel data and current motor control parameters; The camera lens movement is controlled according to the motor stroke data and the current motor control parameter, or the camera lens movement is controlled according to the motor stroke data and the historical motor control parameter.
2. The camera control method according to claim 1, wherein: The motor data packet includes a plurality of data segments; Therein, at least one data segment is used as motor travel basic data, and at least one data segment is used as motor-related data.
3. The camera control method according to claim 2, characterized in that: Each of the motor data packets includes a first data segment and a second data segment; The step of parsing the motor data packet to obtain the motor travel data, or obtaining the motor travel data and the current motor control parameters includes: Determine that the first data segment is the motor stroke data, and determine that the second data segment is the current motor control parameter; or The first data segment is determined to be the motor stroke basic data, and the second data segment is determined to be the motor stroke supplementary data, and the first data segment and the second data segment are concatenated as the motor stroke data.
4. The camera control method according to claim 1, wherein: The motor data packet includes a plurality of data segments; Among them, at least one data segment is used as motor stroke basic data, at least one data segment is used as motor related data, and at least one data segment is used to indicate that the motor related data is motor stroke supplementary data and / or a motor control parameter.
5. The imaging control method according to claim 4, wherein: Each of the motor data packets includes a first data segment, a second data segment and a third data segment; The second data segment is used as motor stroke basic data, and the first data segment is used to indicate that the third data segment is motor stroke supplementary data, or indicates that the third data segment is a motor control parameter; The step of parsing the motor data packet to obtain the motor travel data, or obtaining the motor travel data and the current motor control parameters includes: According to the first data segment, determining that the third data segment is motor stroke supplementary data or motor control parameters; When the first data segment indicates that the third data segment is motor stroke supplementary data, splicing the second data segment and the third data segment as the motor stroke data; When the first data segment indicates that the third data segment is a motor control parameter, the second data segment is determined to be the motor stroke data, and the third data segment is determined to be the current motor control parameter.
6. The imaging control method according to claim 4, wherein: Each of the motor data packets includes a first data segment, a second data segment and a third data segment; The second data segment is used as basic motor stroke data, and the first data segment is used to indicate the number of valid bits of the third data segment; The step of parsing the motor data packet to obtain the motor travel data, or obtaining the motor travel data and the current motor control parameters includes: When the first data segment indicates that the number of significant digits of the third data segment is equal to 0, concatenating the second data segment and the third data segment as the motor stroke data; When the first data segment indicates that the number of effective digits of the third data segment is greater than 0 and less than the length of the third data segment, determine that the data in the third data segment whose data length is the effective digits is the current motor control parameter, and splice the remaining data in the third data segment with the second data segment as the motor stroke data, or splice the data in the third data segment whose data length is the effective digits with the second data segment as the motor stroke data, and use the remaining data in the third data segment as the current motor control parameter; When the first data segment indicates that the number of effective bits of the third data segment is equal to the length of the third data segment, the third data segment is determined to be the current motor control parameter, and the second data segment is determined to be the motor stroke data.
7. The imaging control method according to claim 4, wherein: Each of the motor data packets includes a first data segment, a plurality of second data segments, and a plurality of third data segments, wherein the plurality of second data segments correspond one to one to the third data segments; Each of the second data segments is used as motor stroke basic data, and the first data segment is used to indicate that each of the third data segments is motor stroke supplementary data, or indicates that each of the third data segments is a motor control parameter; The step of parsing the motor data packet to obtain the motor travel data, or obtaining the motor travel data and the current motor control parameters includes: According to the first data segment, determining each of the third data segments is motor stroke supplementary data or a motor control parameter; When the first data segment indicates that each of the third data segments is motor stroke supplementary data, splicing the second data segments and the third data segments corresponding to each other as a set of motor stroke data; When the first data segment indicates that each of the third data segments is a motor control parameter, each of the second data segments is determined to be a set of the motor stroke data, and each of the third data segments is determined to be a set of the current motor control parameters.
8. The camera control method according to claim 4, characterized in that: Each of the motor data packets includes a plurality of first data segments, a plurality of second data segments, and a plurality of third data segments, and the plurality of first data segments, the plurality of second data segments, and the third data segments correspond to each other one by one; Each of the second data segments is used as motor stroke basic data, and each of the first data segments is used to indicate that the corresponding third data segment is motor stroke supplementary data, or indicates that the corresponding third data segment is a motor control parameter; The step of parsing the motor data packet to obtain the motor travel data, or obtaining the motor travel data and the current motor control parameters includes: According to each of the first data segments, determining that the corresponding third data segment is motor stroke supplementary data or motor control parameters; When the first data segment indicates that the corresponding third data segment is motor stroke supplementary data, the second data segment and the third data segment corresponding to each other are spliced as a set of motor stroke data; When the first data segment indicates that the corresponding third data segment is a motor control parameter, the corresponding second data segment is determined to be a set of the motor stroke data, and the corresponding third data segment is determined to be a set of the current motor control parameters.
9. The imaging control method according to claim 4, wherein: Each of the motor data packets includes a plurality of first data segments, a plurality of second data segments, and a third data segment, and the plurality of first data segments correspond one to one with the plurality of second data segments; Each of the second data segments is used as motor stroke basic data, and each of the first data segments is used to indicate that the third data segment is motor stroke supplementary data, or indicates that the third data segment is a motor control parameter; The step of parsing the motor data packet to obtain the motor travel data, or obtaining the motor travel data and the current motor control parameters includes: According to each of the first data segments, determining that the third data segment is motor stroke supplementary data or motor control parameters; When the first data segment indicates that the third data segment is motor stroke supplementary data, splicing the corresponding second data segment and the third data segment as a set of motor stroke data; When the first data segment indicates that the third data segment is a motor control parameter, the corresponding second data segment is determined to be a set of motor stroke data, and the third data segment is determined to be a current motor control parameter corresponding to the motor stroke data.
10. The imaging control method according to claim 4, wherein: Each of the motor data packets includes a first data segment, a plurality of second data segments, and a third data segment; Each of the second data segments is used as motor stroke basic data, and the first data segment is used to indicate that the third data segment is motor stroke supplementary data, or indicates that the third data segment is a motor control parameter; The step of parsing the motor data packet to obtain the motor travel data, or obtaining the motor travel data and the current motor control parameters includes: According to the first data segment, determining that the third data segment is motor stroke supplementary data or motor control parameters; When the first data segment indicates that the third data segment is motor stroke supplementary data, each of the second data segments is concatenated with the third data segment to obtain a plurality of sets of the motor stroke data; When the first data segment indicates that the third data segment is a motor control parameter, each of the second data segments is determined to be a group of the motor stroke data, and the third data segment is determined to be a current motor control parameter corresponding to each group of the motor stroke data.
11. A chip, characterized in that: include: A receiving unit, the receiving unit is used to receive a motor data packet, the motor data packet is formed by fusing motor stroke basic data and motor related data, the motor related data is used as motor stroke supplementary data or motor control parameters; A parsing unit, the parsing unit is used to parse the motor data packet to obtain the motor stroke data, or to obtain the motor stroke data and current motor control parameters; A control unit, wherein the control unit is used to control the movement of the camera lens according to the motor stroke data and the current motor control parameters, or to control the movement of the camera lens according to the motor stroke data and historical motor control parameters.
12. A camera module, characterized in that: include: Camera lens; A camera motor, the camera motor is used to drive the camera lens to move; The chip as claimed in claim 11 is used to output a control signal to the camera motor to drive the camera motor to control the movement of the camera lens and the position change caused by the shaking of the camera lens.
13. An electronic device, characterized in that: Including a camera module as described in 12.