WO2020216002A1 - 检测方法及移动终端 - Google Patents

检测方法及移动终端 Download PDF

Info

Publication number
WO2020216002A1
WO2020216002A1 PCT/CN2020/082080 CN2020082080W WO2020216002A1 WO 2020216002 A1 WO2020216002 A1 WO 2020216002A1 CN 2020082080 W CN2020082080 W CN 2020082080W WO 2020216002 A1 WO2020216002 A1 WO 2020216002A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera
current value
driving component
mobile terminal
time
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.)
Ceased
Application number
PCT/CN2020/082080
Other languages
English (en)
French (fr)
Inventor
高小文
廖佑平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Publication of WO2020216002A1 publication Critical patent/WO2020216002A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Definitions

  • the present disclosure relates to the field of communication technology, and in particular, to a detection method and a mobile terminal.
  • the camera in order to reduce the occupation of the screen by the camera, the camera is set in the mobile terminal.
  • the camera is controlled to extend from the built-in space of the mobile terminal; when the camera is used, the camera is retracted into the built-in space of the mobile terminal.
  • the control of the telescopic camera is mainly to detect the telescopic condition of the camera based on the Hall switch to determine whether the camera of the mobile terminal has moved to the target position, including extending to the first target position, or retracting to the first target position.
  • Two target positions This method of assisting in determining whether the camera is moved to the target position through the Hall switch requires not only the addition of two Hall switches, but also the addition of a magnet, which makes the manufacturing cost of the mobile terminal too high.
  • the embodiments of the present disclosure provide a detection method and a mobile terminal, so as to solve the problem of high manufacturing cost of the mobile terminal in the manner of judging whether the camera is telescopic in the related art.
  • the embodiments of the present disclosure provide a detection method applied to a mobile terminal.
  • the mobile terminal includes a driving component and a camera, and the driving component is used to drive the camera to extend or retract the mobile terminal.
  • the method includes:
  • the embodiments of the present disclosure also provide a mobile terminal, including a drive assembly and a camera, the drive assembly is used to drive the camera to extend or retract the mobile terminal, the mobile terminal also include:
  • a current detection module the first end of the current detection module is connected to the first end of the drive assembly, and the second end of the current detection module is connected to the first end of the power supply module;
  • a control module the first end of the control module is connected to the third end of the current detection module, and the second end of the control module is connected to the second end of the power supply module;
  • the control module is configured to obtain the current value input into the driving component when it is detected that the driving component starts to drive the camera to move; determine according to the amount of change in the current value within a preset time Whether the camera moves to a preset position.
  • the current value input to the driving component is acquired; the determination is made according to the amount of change in the current value within a preset time Whether the camera moves to a preset position. In this way, by judging the current value input into the driving component, it can be judged whether the camera is moved to the preset position, and the manufacturing cost of the mobile terminal can be reduced.
  • FIG. 1 is a flowchart of a detection method provided by an embodiment of the present disclosure
  • Figure 2 is one of the structural diagrams of a mobile terminal provided by an embodiment of the present disclosure
  • FIG. 3 is a second structural diagram of a mobile terminal provided by an embodiment of the present disclosure.
  • Fig. 4 is a structural diagram of a mobile terminal provided by another embodiment of the present disclosure.
  • FIG. 1 is a flow chart of a detection method provided by an embodiment of the present disclosure. As shown in FIG. 1, this embodiment provides a detection method applied to a mobile terminal.
  • the mobile terminal includes a driving component and a camera.
  • the driving component is used to drive the camera to extend or retract the mobile terminal, and the method includes the following steps:
  • Step 101 In a case where it is detected that the driving component starts to drive the camera to move, obtain a current value input to the driving component.
  • the driving component is connected with the power supply, and when the driving component is working, the power supply provides a power signal for the driving component.
  • the power signal includes voltage and current.
  • the driving component starts to drive the camera to extend or retract, the mobile terminal obtains the current value input into the driving component.
  • the driving component may be a motor.
  • Step 102 Determine whether the camera moves to a preset position according to the amount of change in the current value within a preset time.
  • the mobile terminal determines whether the camera moves to a preset position according to whether the current value changes suddenly, and according to the time when the current value changes suddenly.
  • the judging whether the camera has moved to a preset position according to the amount of change in the current value within a preset time includes:
  • the amount of change in the current value within the preset time is greater than a first preset threshold, it is determined that the starting time when the driving component starts to drive the camera to move and the current value is the largest within the preset time The length of time between the moments;
  • the duration it is determined whether the camera moves to a preset position.
  • the preset time can be set according to actual conditions, which is not limited here.
  • the mobile terminal detects that the amount of change in the current value within a preset time is greater than a first preset threshold, it determines the starting time when the driving component starts to drive the camera to move and the current value within the preset time The length of time between the largest moments.
  • the preset position is that the camera is working normally (that is, the camera is in the process of extending or retracting, except for the driving component, there are no other obstructions that affect the movement of the camera)
  • the end position of the downward extension; when the drive assembly drives the camera to retract, the preset position is the end position of the camera retracted under normal working conditions.
  • the time that the camera extends from the beginning to the preset position is the preset duration, or the time that the camera retracts to the preset position from the beginning is the preset duration, and the preset duration is used as the second preset threshold , By comparing the duration with the second preset threshold, it can be judged whether the camera extends to the preset position or retracts to the preset position.
  • the above-mentioned mobile terminal may be any mobile terminal that includes a telescopic camera, such as a mobile phone, a tablet (Personal Computer), a laptop (Laptop Computer), and a personal digital assistant (PDA) , Mobile Internet Device (MID) or Wearable Device (Wearable Device), etc.
  • a telescopic camera such as a mobile phone, a tablet (Personal Computer), a laptop (Laptop Computer), and a personal digital assistant (PDA) , Mobile Internet Device (MID) or Wearable Device (Wearable Device), etc.
  • the current value input to the driving component is acquired; according to the amount of change in the current value within a preset time, It is determined whether the camera has moved to a preset position. In this way, by judging the current value input into the driving component, it can be determined whether the camera has moved to the preset position, which can reduce the manufacturing cost of the mobile terminal.
  • the judging whether the camera moves to a preset position according to the duration includes:
  • the camera it takes 1 second for the camera to extend from the beginning to the preset position (1 second is the second preset threshold). If the duration falls within the range of 0 seconds to 0.95 seconds, it means that the current value has a sudden change in the range of 0 seconds to 0.95 seconds. It is determined that the camera is blocked during the expansion and contraction process, and the camera is not extended to the preset position; if the duration is within the interval of 0.95 seconds to 1 second, it means that the current value has a sudden change in the interval of 0.95 seconds to 1 second, and it is determined that the camera has been extended in place, that is Out to the preset position.
  • the camera needs 1 second to retract from the beginning to the preset position (1 second is the second preset threshold)
  • the duration falls within the interval of 0 seconds to 0.95 seconds, it means that the current value has a sudden change from 0 seconds to 0.95 seconds In the interval, it is determined that the camera is blocked during the retracting process and the camera has not retracted to the preset position; if the duration is within the interval of 0.95 seconds to 1 second, it means that the current value has a sudden change in the interval of 0.95 seconds to 1 second, and it is determined that the camera has been retracted into position , The camera retracts to the preset position.
  • the driving component drives the starting time of the camera to move and the time when the current value changes suddenly to determine the duration, and then according to the duration and the second preset threshold, it is determined whether the camera moves to the preset position. Reduce the manufacturing cost of mobile terminals.
  • the mobile terminal controls the drive assembly to drive the camera to retract to prevent damage to the camera and effectively protect the camera; if it is determined that the camera has moved to the preset position, the mobile terminal controls the drive assembly Stop driving the camera.
  • the mobile terminal controls the driving component to drive the camera to stop moving to prevent damage to the camera and effectively protect the camera.
  • acquiring the current value input into the driving component includes:
  • the starting time of the camera starting to move is obtained, and the first current value input into the driving component at the starting time is obtained.
  • the current value it can be obtained every preset time interval. For example, if the starting time is 0 seconds, the current value of the driving component can be obtained every 0.2 seconds, for example, the current value of the driving component is obtained at 0.2 second, 0.4 second, and 0.6 second.
  • the target moment is the moment when the second current value is obtained.
  • the difference between the first current value and the second current value is greater than the first preset threshold value, the time length between the start time and the target time is determined. If the duration is greater than the second preset threshold, it is determined that the camera has moved to the preset position; if the duration is not greater than the second preset threshold, it is determined that the camera has not moved to the preset position.
  • the start time and target time of the camera movement are driven by a driving component to determine the duration, so as to determine whether the camera moves to the preset position according to the duration and the second preset threshold, which can reduce the mobile terminal’s manufacturing cost.
  • FIG. 2 is a structural diagram of a mobile terminal provided by an embodiment of the present disclosure.
  • this embodiment provides a mobile terminal, which includes a drive assembly 2 and a camera 1, and the drive assembly 2 is used to drive The camera 1 extends out of the mobile terminal or retracts the mobile terminal, and the mobile terminal further includes:
  • a current detection module 3 the first end of the current detection module 3 is connected to the first end of the drive assembly 2, and the second end of the current detection module 3 is connected to the first end of the power supply module 4;
  • Control module 5 the first end of the control module 5 is connected to the third end of the current detection module 3, and the second end of the control module 5 is connected to the second end of the power supply module 4;
  • the control module 5 is configured to obtain the current value input into the driving component 2 through the current detection module 3 when it is detected that the driving component 2 starts to drive the camera 1 to move; The amount of change in the current value determines whether the camera 1 moves to a preset position.
  • the current detection module 3 is configured to detect that the drive assembly 2 starts to drive the camera 1 to extend out of the mobile terminal or retract into the mobile terminal, to respond to the input to the drive The current in the component 2 is detected, and the obtained current value is sent to the control module 5.
  • the driving component 2 is connected to the power supply module 4 through the current detection module 3, and when the driving component 2 is working, the power supply module 4 provides the driving component 2 with a power signal.
  • the power signal includes voltage and current.
  • the driving component 2 drives the camera 1 to extend, the mobile terminal obtains the current value input to the driving component 2.
  • the driving component 2 may be a motor.
  • control module 5 When the control module 5 obtains the current value, it can be obtained once every preset time interval, which is not limited here.
  • the preset position is that the camera is working normally (that is, the camera is in the process of extending or retracting, except for the driving component, there are no other obstructions that affect the movement of the camera)
  • the end position of the downward extension; when the drive assembly drives the camera to retract, the preset position is the end position of the camera retracted under normal working conditions.
  • the current detection module 3 obtains the current value input into the driving component 2; The amount of change in the current value determines whether the camera 1 has moved to a preset position. In this way, by judging the current value obtained by the current detection module 3 and input to the drive assembly 2, it can be determined whether the camera 1 has moved to The preset position can reduce the manufacturing cost of the mobile terminal.
  • the power supply module 4 includes a power supply chip 41 and a power supply 42;
  • the first terminal of the power chip 41 is connected to the second terminal of the current detection module 3, the second terminal of the power chip 41 is connected to the first terminal of the power source 42, and the third terminal of the power chip 41 Terminal is connected to the second terminal of the control module 5; the second terminal of the power supply 42 is grounded.
  • the current detection module 3 includes a detection chip 31 and a resistor R;
  • the first end of the detection chip 31 is connected to the first end of the drive assembly 2, the second end of the detection chip 31 is connected to the first end of the power module 4, and the third end of the detection chip 31 is connected to The first end of the control module 5 is connected, the first end of the resistor R is connected to the first end of the drive assembly 2, and the second end of the resistor R is connected to the first end of the power module 4 .
  • control module 5 is specifically configured to:
  • the amount of change in the current value within the preset time is greater than a first preset threshold, it is determined that the starting time when the driving component starts to drive the camera to move and the current value is the largest within the preset time The length of time between the moments;
  • the duration it is determined whether the camera moves to a preset position.
  • the driving component 2 drives the camera 1 to move, if the camera 1 is stuck, the current value input to the driving component 2 will undergo a sudden change, that is, the amount of change in the current value is greater than the first preset threshold.
  • the mobile terminal can determine whether the camera 1 has moved to a preset position according to the time when the current value changes suddenly. For example, when the driving component 2 drives the camera 1 to extend, if the camera 1 is stuck, the current value input to the driving component 2 will change suddenly. The mobile terminal determines whether the camera 1 extends to the preset position according to the time of the sudden change of the current value. Or, when the driving component 2 drives the camera 1 to retract, if the camera 1 is stuck, the current value input to the driving component 2 will change suddenly. The mobile terminal determines whether the camera 1 is retracted to the preset position according to the time of the sudden change of the current value.
  • the time length is obtained according to the start time when the driving component 2 drives the camera 1 to extend and the time when the current value is the largest within the preset time, and the time length is when the current value changes suddenly.
  • the preset position is the end position where the camera 1 extends under normal working conditions, or the end position where the camera 1 retracts under normal working conditions.
  • the time that the camera 1 extends from the beginning to the preset position is the preset time, or the time that the camera 1 is retracted from the beginning to the preset position is the preset time, and the preset time is regarded as the second
  • the preset threshold value by comparing the duration and the second preset threshold value, it can be determined whether the camera 1 moves to the preset position.
  • control module 5 is also used for:
  • the camera 1 it takes 1 second for the camera 1 to extend to the preset position (1 second is the second preset threshold). If the duration falls within the interval of 0 seconds to 0.95 seconds, it means that the current value has a sudden change in the interval of 0 seconds to 0.95 seconds. , It is determined that the camera 1 is blocked during the expansion and contraction process, and the camera 1 is not extended to the preset position; if the duration is within the interval of 0.95 seconds to 1 second, it means that the current value has a sudden change in the interval of 0.95 seconds to 1 second, and it is determined that the camera 1 has been retracted in place , That is, the camera 1 extends to the preset position.
  • the camera needs 1 second to retract from the beginning to the preset position (1 second is the second preset threshold)
  • the duration falls within the interval of 0 seconds to 0.95 seconds, it means that the current value has a sudden change from 0 seconds to 0.95 seconds In the interval, it is determined that the camera is blocked during the retracting process, and the camera has not retracted to the preset position; if the duration is within the interval of 0.95 seconds to 1 second, it means that the current value has a sudden change in the interval of 0.95 seconds to 1 second, and it is determined that the camera has been retracted into position , The camera retracts to the preset position.
  • the driving component 2 drives the start time of the camera 1 to move and the time when the current value changes suddenly to determine the duration, and then determine whether the camera 1 moves to the preset position according to the duration and the second preset threshold.
  • the manufacturing cost of the mobile terminal can be reduced.
  • control module 5 is further configured to: in the case of detecting that the driving component 2 starts to drive the camera 1 to move, obtain the first current value input into the driving component 2 at the initial time;
  • the control module 5 is specifically configured to: obtain the second current value input into the driving component 2 at the target time;
  • the length of time between the starting time and the target time is determined.
  • the driving component 2 drives the camera 1 to move
  • the starting time of the camera 1 starting to move is acquired, and the first current value input into the driving component 2 at the starting time is acquired.
  • the current value it can be obtained every preset time interval. For example, if the starting time is 0 seconds, the current value of the driving component 2 can be obtained every 0.2 seconds, for example, the current value of the driving component 2 can be obtained at 0.2 second, 0.4 second, and 0.6 second.
  • the target moment is the moment when the second current value is obtained.
  • the difference between the first current value and the second current value is greater than the first preset threshold value, the time length between the start time and the target time is determined. If the duration is greater than the second preset threshold, it is determined that the camera 1 has moved to the preset position; if the duration is not greater than the second preset threshold, it is determined that the camera 1 has not moved to the preset position.
  • the driving component 2 drives the starting time and target time of the camera 1 to determine the duration, so as to determine whether the camera 1 moves to the preset position according to the duration and the second preset threshold, which can lower the mobile terminal The manufacturing cost.
  • the mobile terminal further includes: a sliding rod 6 and a sliding rail 7;
  • the camera 1 is arranged on the slide rail 7, the camera 1 is connected to the first end of the slide bar 6, and the second end of the slide bar 6 is connected to the shaft of the drive assembly 2;
  • the rotating shaft of the driving assembly 2 drives the sliding rod 6 to rotate, and when the sliding rod 6 rotates, the camera 1 is driven to move on the sliding rail 7.
  • the driving assembly 2 is a motor, and the rotation of the motor drives the rotation of the sliding rod.
  • the motor rotates in the forward direction, the camera slides upward along the slide rail under the drive of the slide bar; when the motor rotates in the reverse direction, the camera slides downward along the slide rail under the drive of the slide bar.
  • the motor is powered by the power module 4 alone, and the power module 4 includes a power chip 41 and a power source 42. Under the control of the control module 4, the power chip 41 provides a forward voltage or a reverse voltage to the motor. When the power chip 41 provides a forward voltage, the motor rotates in the forward direction. When the power chip 41 provides a reverse voltage, the motor rotates in the reverse direction. To rotate.
  • a precision resistor R is connected in series with the positive pole of the motor, and a detection chip 31 for current detection is provided on the precision resistor R. If the motor is stuck, the power of the motor is 0, and the total power of the circuit where the motor is located remains unchanged. Since the total resistance of the circuit where the motor is located remains unchanged, the current in the circuit where the motor is located will increase, that is, input to the motor The current value in the motor will increase, and the detection chip 31 detects the current value input to the motor. And the detected current value is transmitted to the control module 4 so that the control module can determine whether there is a sudden change in the current value.
  • the mobile terminal 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, and an input unit 504 , Sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor 510, power supply 511 and other components.
  • a radio frequency unit 501 for a radio frequency unit
  • a network module 502 for a radio frequency unit
  • an audio output unit 503 for a radio frequency
  • Sensor 505 Sensor 505
  • display unit 506 user input unit 507
  • interface unit 508 memory 509
  • processor 510 power supply 511 and other components.
  • the structure of the mobile terminal shown in FIG. 4 does not constitute a limitation on the mobile terminal.
  • the mobile terminal may include more or fewer components than those shown in the figure, or combine certain components, or different components. Layout.
  • mobile terminals include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
  • the processor 510 is configured to obtain a current value input to the driving component when it is detected that the driving component starts to drive the camera to move;
  • the processor 510 is configured to: if the amount of change in the current value within the preset time is greater than a first preset threshold, determine that the driving component starts to drive the camera to move the start time and The length of time between the moments when the current value is maximum within the preset time;
  • the duration it is determined whether the camera moves to a preset position.
  • the processor 510 is configured to determine that the camera moves to a preset position if the duration is greater than a second preset threshold
  • the processor 510 is configured to obtain the first current value input into the driving component at the initial time when it is detected that the driving component starts to drive the camera to move;
  • the processor 510 is further configured to obtain a second current value input into the driving component at a target time
  • the mobile terminal 500 can implement the various processes implemented by the mobile terminal in the foregoing embodiments. To avoid repetition, details are not described herein again.
  • the mobile terminal 500 of the embodiment of the present disclosure in the case of detecting that the driving component starts to drive the camera to move, obtain the current value input to the driving component; according to the amount of change in the current value within a preset time To determine whether the camera moves to a preset position. In this way, by judging the current value input into the driving component, it can be judged whether the camera is moved to the preset position, and the manufacturing cost of the mobile terminal can be reduced.
  • the radio frequency unit 501 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 510; Uplink data is sent to the base station.
  • the radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 501 can also communicate with the network and other devices through a wireless communication system.
  • the mobile terminal provides users with wireless broadband Internet access through the network module 502, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 503 may convert the audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output it as sound. Moreover, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 504 is used to receive audio or video signals.
  • the input unit 504 may include a graphics processing unit (GPU) 5041 and a microphone 5042.
  • the graphics processor 5041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in the video capture mode or the image capture mode. Data is processed.
  • the processed image frame may be displayed on the display unit 506.
  • the image frame processed by the graphics processor 5041 may be stored in the memory 509 (or other storage medium) or sent via the radio frequency unit 501 or the network module 502.
  • the microphone 5042 can receive sound and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 501 for output in the case of a telephone call mode.
  • the mobile terminal 500 also includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 5061 and the display panel 5061 when the mobile terminal 500 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 505 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 506 is used to display information input by the user or information provided to the user.
  • the display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 507 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the mobile terminal.
  • the user input unit 507 includes a touch panel 5071 and other input devices 5072.
  • the touch panel 5071 also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 5071 or near the touch panel 5071. operating).
  • the touch panel 5071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 510, the command sent by the processor 510 is received and executed.
  • the touch panel 5071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 507 may also include other input devices 5072.
  • other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 5071 can be overlaid on the display panel 5061.
  • the touch panel 5071 detects a touch operation on or near it, it is transmitted to the processor 510 to determine the type of the touch event.
  • the type of event provides corresponding visual output on the display panel 5061.
  • the touch panel 5071 and the display panel 5061 are used as two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 can be integrated
  • the implementation of the input and output functions of the mobile terminal is not specifically limited here.
  • the interface unit 508 is an interface for connecting an external device with the mobile terminal 500.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (input/output, I/O) port, video I/O port, headphone port, etc.
  • the interface unit 508 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the mobile terminal 500 or can be used to connect to the mobile terminal 500 and external Transfer data between devices.
  • the memory 509 can be used to store software programs and various data.
  • the memory 509 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones.
  • the memory 509 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 510 is the control center of the mobile terminal. It uses various interfaces and lines to connect the various parts of the entire mobile terminal, runs or executes software programs and/or modules stored in the memory 509, and calls data stored in the memory 509 , Perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole.
  • the processor 510 may include one or more processing units; optionally, the processor 510 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc.
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 510.
  • the mobile terminal 500 may also include a power source 511 (such as a battery) for supplying power to various components.
  • a power source 511 such as a battery
  • the power source 511 may be logically connected to the processor 510 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • the mobile terminal 500 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present disclosure further provides a mobile terminal, including a processor 510, a memory 509, a computer program stored in the memory 509 and running on the processor 510, and the computer program is executed by the processor 510
  • a mobile terminal including a processor 510, a memory 509, a computer program stored in the memory 509 and running on the processor 510, and the computer program is executed by the processor 510
  • the embodiments of the present disclosure also provide a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, each process of the above detection method embodiment is realized and the same technical effect can be achieved. To avoid repetition, I won’t repeat it here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. ⁇
  • the technical solution of the present disclosure essentially or the part that contributes to the related technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk). ) Includes several instructions to make a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present disclosure.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Environmental & Geological Engineering (AREA)
  • Studio Devices (AREA)
  • Telephone Function (AREA)

Abstract

本公开提供一种检测方法及移动终端,该方法包括:在检测到所述驱动组件开始驱动所述摄像头移动的情况下,获取输入到所述驱动组件中的电流值;根据预设时间内所述电流值的变化量,判断所述摄像头是否移动到预设位置。

Description

检测方法及移动终端
相关申请的交叉引用
本申请主张在2019年4月22日在中国提交的中国专利申请号No.201910322665.7的优先权,其全部内容通过引用包含于此。
技术领域
本公开涉及通信技术领域,尤其涉及一种检测方法及移动终端。
背景技术
相关技术中,为了减少摄像头对屏幕的占用,会将摄像头设置在移动终端内。当使用摄像头时,控制摄像头从移动终端的内置空间伸出;当摄像头使用完毕时,摄像头收缩至移动终端的内置空间中。
相关技术中,对伸缩摄像头的控制主要是:基于霍尔开关对摄像头的伸缩情况进行检测,以判断移动终端的摄像头是否移动到目标位置,包括伸长到第一目标位置,或者缩回到第二目标位置,这种通过霍尔开关来辅助判断摄像头是否移动到目标位置的方式,不仅需要增加2颗霍尔开关,而且还要增加一块磁铁,使得移动终端的制造成本太高。
发明内容
本公开实施例提供一种检测方法及移动终端,以解决相关技术中的判断摄像头是否伸缩到位的方式,使得移动终端的制造成本高的问题。
为解决上述技术问题,本公开是这样实现的:
第一方面,本公开实施例提供了一种检测方法,应用于移动终端,所述移动终端包括驱动组件和摄像头,所述驱动组件用于驱动所述摄像头伸出所述移动终端或者缩回所述移动终端,所述方法包括:
在检测到所述驱动组件开始驱动所述摄像头移动的情况下,获取输入到所述驱动组件中的电流值;
根据预设时间内所述电流值的变化量,判断所述摄像头是否移动到预设 位置。
第二方面,本公开实施例还提供一种移动终端,包括驱动组件和摄像头,所述驱动组件用于驱动所述摄像头伸出所述移动终端或者缩回所述移动终端,所述移动终端还包括:
电流检测模块,所述电流检测模块的第一端与所述驱动组件的第一端连接,所述电流检测模块的第二端与电源模块的第一端连接;
控制模块,所述控制模块的第一端与所述电流检测模块的第三端连接,所述控制模块的第二端与所述电源模块的第二端连接;
所述控制模块,用于在检测到所述驱动组件开始驱动所述摄像头移动的情况下,获取输入到所述驱动组件中的电流值;根据预设时间内所述电流值的变化量,判断所述摄像头是否移动到预设位置。
在本公开实施例中,在检测到所述驱动组件开始驱动所述摄像头移动的情况下,获取输入到所述驱动组件中的电流值;根据预设时间内所述电流值的变化量,判断所述摄像头是否移动到预设位置。这样,通过对输入到驱动组件中的电流值进行判断,便可判断摄像头是否移动到预设位置,可降低移动终端的制造成本。
附图说明
为了更清楚地说明本公开实施例的技术方案,下面将对本公开实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本公开实施例提供的检测方法的流程图;
图2是本公开实施例提供的移动终端的结构图之一;
图3是本公开实施例提供的移动终端的结构图之二;
图4是本公开另一实施例提供的移动终端的结构图。
具体实施方式
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行 清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
参见图1,图1是本公开实施例提供的检测方法的流程图,如图1所示,本实施例提供一种检测方法,应用于移动终端,所述移动终端包括驱动组件和摄像头,所述驱动组件用于驱动所述摄像头伸出所述移动终端或者缩回所述移动终端,所述方法包括以下步骤:
步骤101、在检测到所述驱动组件开始驱动所述摄像头移动的情况下,获取输入到所述驱动组件中的电流值。
驱动组件与电源连接,驱动组件工作时,电源为驱动组件提供电源信号。电源信号包括电压和电流。驱动组件开始驱动摄像头伸出或者缩回时,移动终端获取输入到驱动组件中的电流值。驱动组件可为电机。
获取电流值时,可每隔预设时间间隔获取一次,在此不做限定。
步骤102、根据预设时间内所述电流值的变化量,判断所述摄像头是否移动到预设位置。
驱动组件驱动摄像头伸出的过程中,若摄像头被卡住,输入驱动组件中的电流值会突变,电流值突变可理解为,在预设时间内所述电流值的变化量大于第一预设阈值。移动终端根据电流值是否突变,并根据电流值发生突变的时间,判断摄像头是否移动到预设位置。
进一步的,所述根据预设时间内所述电流值的变化量,判断所述摄像头是否移动到预设位置,包括:
若在所述预设时间内所述电流值的变化量大于第一预设阈值,则确定所述驱动组件开始驱动所述摄像头移动的起始时刻与所述预设时间内所述电流值最大的时刻之间的时长;
根据所述时长,判断所述摄像头是否移动到预设位置。
具体的,预设时间可根据实际情况进行设置,在此不做限定。移动终端检测到在预设时间内所述电流值的变化量大于第一预设阈值时,确定所述驱动组件开始驱动所述摄像头移动的起始时刻与所述预设时间内所述电流值最大的时刻之间的时长。
在驱动组件驱动所述摄像头伸长的情况下,预设位置为摄像头在正常工作(即摄像头在伸出或缩回的过程中,除驱动组件外,无其他影响摄像头移动的遮挡物)的情况下伸出的终点位置;在驱动组件驱动所述摄像头缩回的情况下,预设位置为摄像头在正常工作的情况下缩回的终点位置。摄像头在正常工作时,摄像头从开始伸出至预设位置的时间为预设时长,或者摄像头从开始缩回至预设位置的时间为预设时长,将该预设时长作为第二预设阈值,通过比较时长和第二预设阈值,可判断摄像头是否伸出到预设位置,或者缩回到预设位置。
本公开实施例中,上述移动终端可以为任何包括伸缩摄像头的移动终端,例如:手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等。
本公开实施例的检测方法,在检测到所述驱动组件开始驱动所述摄像头移动的情况下,获取输入到所述驱动组件中的电流值;根据预设时间内所述电流值的变化量,判断所述摄像头是否移动到预设位置,这样,通过对输入到驱动组件中的电流值进行判断,便可判断摄像头是否移动到预设位置,可降低移动终端的制造成本。
进一步的,所述根据所述时长,判断所述摄像头是否移动到预设位置,包括:
若所述时长大于第二预设阈值,则判定摄像头移动到预设位置;
若所述时长不大于第二预设阈值,则判定摄像头未移动到预设位置。
例如,摄像头从开始伸出至预设位置需要1秒时间(1秒即为第二预设阈值),若时长属于0秒到0.95秒区间,说明电流值发生突变在0秒到0.95秒区间,判定摄像头在伸缩过程中被挡住,摄像头未伸出到预设位置;若时长属于0.95秒到1秒区间,说明电流值发生突变在0.95秒到1秒区间,判定摄像头已经伸缩到位,即摄像头伸出到预设位置。
同样的,若摄像头从开始缩回至预设位置需要1秒时间(1秒即为第二预设阈值),若时长属于0秒到0.95秒区间,说明电流值发生突变在0秒到0.95秒区间,判定摄像头在缩回过程中被挡住,摄像头未缩回到预设位置; 若时长属于0.95秒到1秒区间,说明电流值发生突变在0.95秒到1秒区间,判定摄像头已经缩回到位,即摄像头缩回到预设位置。
本公开实施例的检测方法,通过驱动组件驱动所述摄像头移动的起始时刻和电流值发生突变的时间确定时长,然后根据时长和第二预设阈值,判断摄像头是否移动到预设位置,可降低移动终端的制造成本。
进一步的,若判定摄像头在伸出过程中被挡住,则移动终端控制驱动组件驱动摄像头缩回,以防止摄像头损坏,有效保护摄像头;若判定摄像头已移动到预设位置,则移动终端控制驱动组件停止驱动摄像头。
若判定摄像头在缩回过程中被挡住,则移动终端控制驱动组件驱动摄像头停止移动,以防止摄像头损坏,有效保护摄像头。
进一步的,在检测到所述驱动组件开始驱动所述摄像头移动的情况下,获取输入到所述驱动组件中的电流值,包括:
在检测到所述驱动组件开始驱动所述摄像头移动的情况下,获取起始时刻输入到所述驱动组件中的第一电流值;
若在预设时间内所述电流值的变化量大于第一预设阈值,则确定所述驱动组件开始驱动所述摄像头移动的起始时刻与所述预设时间内所述电流值最大的时刻之间的时长,包括:
获取目标时刻输入到所述驱动组件中的第二电流值;
若所述第一电流值与所述第二电流值的差值大于第一预设阈值,则确定所述起始时刻与所述目标时刻之间的时长。
具体的,在检测到驱动组件驱动摄像头移动的情况下,获取摄像头开始移动的起始时刻,并获取起始时刻输入到所述驱动组件中的第一电流值。
获取电流值时,可每隔预设时间间隔获取一次。例如,若起始时刻为0秒,那么可每隔0.2秒获取驱动组件的电流值,例如在0.2秒、0.4秒和0.6秒时获取驱动组件的电流值。目标时刻即为获取第二电流值的时刻。当第一电流值与第二电流值的差值大于第一预设阈值时,确定所述起始时刻与所述目标时刻之间的时长。若所述时长大于第二预设阈值,则判定摄像头移动到预设位置;若所述时长不大于第二预设阈值,则判定摄像头未移动到预设位置。
本公开实施例的检测方法,通过驱动组件驱动所述摄像头移动的起始时刻和目标时刻确定时长,以便根据时长和第二预设阈值,判断摄像头是否移动到预设位置,可降低移动终端的制造成本。
参见图2,图2是本公开实施例提供的移动终端的结构图,如图2所示,本实施例提供一种移动终端,包括驱动组件2和摄像头1,所述驱动组件2用于驱动所述摄像头1伸出所述移动终端或者缩回所述移动终端,所述移动终端还包括:
电流检测模块3,所述电流检测模块3的第一端与所述驱动组件2的第一端连接,所述电流检测模块3的第二端与电源模块4的第一端连接;
控制模块5,所述控制模块5的第一端与所述电流检测模块3的第三端连接,所述控制模块5的第二端与所述电源模块4的第二端连接;
所述控制模块5,用于在检测到所述驱动组件2开始驱动所述摄像头1移动的情况下,通过电流检测模块3获取输入到所述驱动组件2中的电流值;根据预设时间内所述电流值的变化量,判断所述摄像头1是否移动到预设位置。
具体的,电流检测模块3,用于在检测到所述驱动组件2开始驱动所述摄像头1伸出所述移动终端外,或者缩回所述移动终端内的情况下,对输入到所述驱动组件2中的电流进行检测,并将获得的电流值发送给所述控制模块5。
驱动组件2通过电流检测模块3与电源模块4连接,驱动组件2工作时,电源模块4为驱动组件2提供电源信号。电源信号包括电压和电流。驱动组件2驱动摄像头1伸出时,移动终端获取输入驱动组件2中的电流值。驱动组件2可为电机。
控制模块5获取电流值时,可每隔预设时间间隔获取一次,在此不做限定。
在驱动组件驱动所述摄像头伸长的情况下,预设位置为摄像头在正常工作(即摄像头在伸出或缩回的过程中,除驱动组件外,无其他影响摄像头移动的遮挡物)的情况下伸出的终点位置;在驱动组件驱动所述摄像头缩回的情况下,预设位置为摄像头在正常工作的情况下缩回的终点位置。
本公开实施例的移动终端,在检测到所述驱动组件2开始驱动所述摄像头1移动的情况下,通过电流检测模块3获取输入到所述驱动组件2中的电流值;根据预设时间内所述电流值的变化量,判断所述摄像头1是否移动到预设位置,这样,通过对电流检测模块3获取的输入到驱动组件2中的电流值进行判断,便可判断摄像头1是否移动到预设位置,可降低移动终端的制造成本。
进一步的,所述电源模块4包括电源芯片41和电源42;
所述电源芯片41的第一端与所述电流检测模块3的第二端连接,所述电源芯片41的第二端与所述电源42的第一端连接,所述电源芯片41的第三端与所述控制模块5的第二端连接;所述电源42的第二端接地。
进一步的,所述电流检测模块3包括检测芯片31和电阻R;
所述检测芯片31的第一端与所述驱动组件2的第一端连接,所述检测芯片31的第二端与电源模块4的第一端连接,所述检测芯片31的第三端与所述控制模块5的第一端连接,所述电阻R的第一端与所述驱动组件2的第一端连接,所述电阻R的第二端与所述电源模块4的第一端连接。
进一步的,所述控制模块5具体用于:
若在所述预设时间内所述电流值的变化量大于第一预设阈值,则确定所述驱动组件开始驱动所述摄像头移动的起始时刻与所述预设时间内所述电流值最大的时刻之间的时长;
根据所述时长,判断所述摄像头是否移动到预设位置。
具体的,驱动组件2驱动摄像头1移动的过程中,若摄像头1被卡住,输入驱动组件2中的电流值会发生突变,即电流值的变化量大于第一预设阈值。移动终端可根据电流值发生突变的时间,判断摄像头1是否移动到预设位置。例如,驱动组件2驱动摄像头1伸出的过程中,若摄像头1被卡住,输入驱动组件2中的电流值会突变。移动终端根据电流值突变的时间,判断摄像头1是否伸出到预设位置。或者,驱动组件2驱动摄像头1缩回的过程中,若摄像头1被卡住,输入驱动组件2中的电流值会突变。移动终端根据电流值突变的时间,判断摄像头1是否缩回到预设位置。
移动终端在检测到电流值发生突变,根据驱动组件2驱动摄像头1伸出 的起始时刻与预设时间内所述电流值最大的时刻获得时长,该时长为电流值发生突变时驱动组件2驱动摄像头1伸出过程中所使用的时长。
预设位置为摄像头1在正常工作的情况下伸出的终点位置,或者摄像头1在正常工作的情况下缩回的终点位置。摄像头1在正常工作时,摄像头1从开始伸出至预设位置的时间为预设时长,或者摄像头1从开始缩回至预设位置的时间为预设时长,将该预设时长作为第二预设阈值,通过比较时长和第二预设阈值,可判断摄像头1是否移动到预设位置。
进一步的,所述控制模块5还用于:
若所述时长大于第二预设阈值,判定摄像头移动到预设位置;
若所述时长不大于第二预设阈值,判定摄像头未移动到预设位置。
例如,摄像头1从开始伸出至预设位置需要1秒时间(1秒即为第二预设阈值),若时长属于0秒到0.95秒区间,说明电流值发生突变在0秒到0.95秒区间,判定摄像头1在伸缩过程中被挡住,摄像头1未伸出到预设位置;若时长属于0.95秒到1秒区间,说明电流值发生突变在0.95秒到1秒区间,判定摄像头1已经伸缩到位,即摄像头1伸出到预设位置。
同样的,若摄像头从开始缩回至预设位置需要1秒时间(1秒即为第二预设阈值),若时长属于0秒到0.95秒区间,说明电流值发生突变在0秒到0.95秒区间,判定摄像头在缩回过程中被挡住,摄像头未缩回到预设位置;若时长属于0.95秒到1秒区间,说明电流值发生突变在0.95秒到1秒区间,判定摄像头已经缩回到位,即摄像头缩回到预设位置。
本公开实施例中,通过驱动组件2驱动所述摄像头1移动的起始时刻和电流值发生突变的时间确定时长,然后根据时长和第二预设阈值,判断摄像头1是否移动到预设位置,可降低移动终端的制造成本。
进一步的,所述控制模块5还用于:在检测到所述驱动组件2开始驱动所述摄像头1移动的情况下,获取起始时刻输入到所述驱动组件2中的第一电流值;
所述控制模块5具体用于:获取目标时刻输入到所述驱动组件2中的第二电流值;
若所述第一电流值与所述第二电流值的差值大于第一预设阈值,则确定 所述起始时刻与所述目标时刻之间的时长。
具体的,在检测到驱动组件2驱动摄像头1移动的情况下,获取摄像头1开始移动的起始时刻,并获取起始时刻输入到所述驱动组件2中的第一电流值。
获取电流值时,可每隔预设时间间隔获取一次。例如,若起始时刻为0秒,那么可每隔0.2秒获取驱动组件的电流值,例如在0.2秒、0.4秒和0.6秒时获取驱动组件2的电流值。目标时刻即为获取第二电流值的时刻。当第一电流值与第二电流值的差值大于第一预设阈值时,确定所述起始时刻与所述目标时刻之间的时长。若所述时长大于第二预设阈值,则判定摄像头1移动到预设位置;若所述时长不大于第二预设阈值,则判定摄像头1未移动到预设位置。
本公开实施例中,通过驱动组件2驱动所述摄像头1移动的起始时刻和目标时刻确定时长,以便根据时长和第二预设阈值,判断摄像头1是否移动到预设位置,可降低移动终端的制造成本。
进一步的,参见图3,移动终端还包括:滑杆6和滑轨7;
所述摄像头1设置在所述滑轨7上,所述摄像头1与所述滑杆6的第一端连接,所述滑杆6的第二端与所述驱动组件2的转轴连接;
所述驱动组件2工作时,所述驱动组件2的转轴带动所述滑杆6转动,所述滑杆6转动时带动所述摄像头1在所述滑轨7上移动。
驱动组件2为电机马达,电机马达转动带动滑杆转动。在电机马达正向转动时,摄像头在滑杆的带动下沿着滑轨向上滑动;在电机马达反向转动时,摄像头在滑杆的带动下沿着滑轨向下滑动。
电机马达由电源模块4单独供电,电源模块4包括电源芯片41和电源42。在控制模块4的控制下,电源芯片41向电机马达提供正向电压或者反向电压,电源芯片41提供正向电压时,电机马达正向转动,电源芯片41提供反向电压时,电机马达反向转动。
电机马达正极上串联了一颗精密电阻R,精密电阻R上有用于对电流进行检测的检测芯片31。如果电机马达被卡住,电机马达的功率为0,电机马达所在回路的总功率不变,由于电机马达所在回路的总电阻不变,电机马达 所在回路中的电流会变大,即输入到电机马达中的电流值会变大,检测芯片31对输入到电机马达中的电流值进行检测。并将检测到的电流值传输给控制模块4,以便控制模块判断电流值是否有突变。
图4为实现本公开各个实施例的一种移动终端的硬件结构示意图,如图4所示,该移动终端500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、处理器510、以及电源511等部件。本领域技术人员可以理解,图4中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本公开实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。
其中,处理器510,用于在检测到所述驱动组件开始驱动所述摄像头移动的情况下,获取输入到所述驱动组件中的电流值;
根据预设时间内所述电流值的变化量,判断所述摄像头是否移动到预设位置。
进一步的,处理器510,用于:若在所述预设时间内所述电流值的变化量大于第一预设阈值,则确定所述驱动组件开始驱动所述摄像头移动的起始时刻与所述预设时间内所述电流值最大的时刻之间的时长;
根据所述时长,判断所述摄像头是否移动到预设位置。
进一步的,处理器510,用于若所述时长大于第二预设阈值,则判定摄像头移动到预设位置;
若所述时长不大于第二预设阈值,则判定摄像头未移动到预设位置。
进一步的,处理器510,用于在检测到所述驱动组件开始驱动所述摄像头移动的情况下,获取起始时刻输入到所述驱动组件中的第一电流值;
处理器510,还用于获取目标时刻输入到所述驱动组件中的第二电流值;
若所述第一电流值与所述第二电流值的差值大于第一预设阈值,则确定所述起始时刻与所述目标时刻之间的时长。
移动终端500能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。
本公开实施例的移动终端500,在检测到所述驱动组件开始驱动所述摄像头移动的情况下,获取输入到所述驱动组件中的电流值;根据预设时间内所述电流值的变化量,判断所述摄像头是否移动到预设位置。这样,通过对输入到驱动组件中的电流值进行判断,便可判断摄像头是否移动到预设位置,可降低移动终端的制造成本。
应理解的是,本公开实施例中,射频单元501可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器510处理;另外,将上行的数据发送给基站。通常,射频单元501包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元501还可以通过无线通信系统与网络和其他设备通信。
移动终端通过网络模块502为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元503可以将射频单元501或网络模块502接收的或者在存储器509中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元503还可以提供与移动终端500执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元503包括扬声器、蜂鸣器以及受话器等。
输入单元504用于接收音频或视频信号。输入单元504可以包括图形处理器(Graphics Processing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元506上。经图形处理器5041处理后的图像帧可以存储在存储器509(或其它存储介质)中或者经由射频单元501或网络模块502进行发送。麦克风5042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元501发送到移动通信基站的格式输出。
移动终端500还包括至少一种传感器505,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板5061的亮度,接近传感 器可在移动终端500移动到耳边时,关闭显示面板5061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器505还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元506用于显示由用户输入的信息或提供给用户的信息。显示单元506可包括显示面板5061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板5061。
用户输入单元507可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元507包括触控面板5071以及其他输入设备5072。触控面板5071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板5071上或在触控面板5071附近的操作)。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器510,接收处理器510发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板5071。除了触控面板5071,用户输入单元507还可以包括其他输入设备5072。具体地,其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板5071可覆盖在显示面板5061上,当触控面板5071检测到在其上或附近的触摸操作后,传送给处理器510以确定触摸事件的类型,随后处理器510根据触摸事件的类型在显示面板5061上提供相应的视觉输出。虽然在图4中,触控面板5071与显示面板5061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面 板5071与显示面板5061集成而实现移动终端的输入和输出功能,具体此处不做限定。
接口单元508为外部装置与移动终端500连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(input/output,I/O)端口、视频I/O端口、耳机端口等等。接口单元508可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端500内的一个或多个元件或者可以用于在移动终端500和外部装置之间传输数据。
存储器509可用于存储软件程序以及各种数据。存储器509可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器509可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器510是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器509内的软件程序和/或模块,以及调用存储在存储器509内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器510可包括一个或多个处理单元;可选的,处理器510可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。
移动终端500还可以包括给各个部件供电的电源511(比如电池),可选的,电源511可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,移动终端500包括一些未示出的功能模块,在此不再赘述。
可选的,本公开实施例还提供一种移动终端,包括处理器510,存储器509,存储在存储器509上并可在所述处理器510上运行的计算机程序,该计算机程序被处理器510执行时实现上述检测方法实施例的各个过程,且能达 到相同的技术效果,为避免重复,这里不再赘述。
本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述检测方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例所述的方法。上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本公开的保护之内。

Claims (12)

  1. 一种检测方法,应用于移动终端,所述移动终端包括驱动组件和摄像头,所述驱动组件用于驱动所述摄像头伸出所述移动终端或者缩回所述移动终端,所述方法包括:
    在检测到所述驱动组件开始驱动所述摄像头移动的情况下,获取输入到所述驱动组件中的电流值;
    根据预设时间内所述电流值的变化量,判断所述摄像头是否移动到预设位置。
  2. 根据权利要求1所述的检测方法,其中,所述根据预设时间内所述电流值的变化量,判断所述摄像头是否移动到预设位置,包括:
    若在所述预设时间内所述电流值的变化量大于第一预设阈值,则确定所述驱动组件开始驱动所述摄像头移动的起始时刻与所述预设时间内所述电流值最大的时刻之间的时长;
    根据所述时长,判断所述摄像头是否移动到预设位置。
  3. 根据权利要求2所述的检测方法,其中,所述根据所述时长,判断所述摄像头是否移动到预设位置,包括:
    若所述时长大于第二预设阈值,则判定摄像头移动到预设位置;
    若所述时长不大于第二预设阈值,则判定摄像头未移动到预设位置。
  4. 根据权利要求2所述的检测方法,其中,所述在检测到所述驱动组件开始驱动所述摄像头移动的情况下,获取输入到所述驱动组件中的电流值,包括:
    在检测到所述驱动组件开始驱动所述摄像头移动的情况下,获取起始时刻输入到所述驱动组件中的第一电流值;
    所述若在预设时间内所述电流值的变化量大于第一预设阈值,则确定所述驱动组件开始驱动所述摄像头移动的起始时刻与所述预设时间内所述电流值最大的时刻之间的时长,包括:
    获取目标时刻输入到所述驱动组件中的第二电流值;
    若所述第一电流值与所述第二电流值的差值大于第一预设阈值,则确定 所述起始时刻与所述目标时刻之间的时长。
  5. 一种移动终端,包括驱动组件和摄像头,所述驱动组件用于驱动所述摄像头伸出所述移动终端或者缩回所述移动终端,所述移动终端还包括:
    电流检测模块,所述电流检测模块的第一端与所述驱动组件的第一端连接,所述电流检测模块的第二端与电源模块的第一端连接;
    控制模块,所述控制模块的第一端与所述电流检测模块的第三端连接,所述控制模块的第二端与所述电源模块的第二端连接;
    所述控制模块,用于在检测到所述驱动组件开始驱动所述摄像头移动的情况下,通过电流检测模块获取输入到所述驱动组件中的电流值;根据预设时间内所述电流值的变化量,判断所述摄像头是否移动到预设位置。
  6. 根据权利要求5所述的移动终端,其中,所述电源模块包括电源芯片和电源;
    所述电源芯片的第一端与所述电流检测模块的第二端连接,所述电源芯片的第二端与所述电源的第一端连接,所述电源芯片的第三端与所述控制模块的第二端连接;
    所述电源的第二端接地。
  7. 根据权利要求5所述的移动终端,其中,所述电流检测模块包括检测芯片和电阻;
    所述检测芯片的第一端与所述驱动组件的第一端连接,所述检测芯片的第二端与电源模块的第一端连接,所述检测芯片的第三端与所述控制模块的第一端连接,所述电阻的第一端与所述驱动组件的第一端连接,所述电阻的第二端与所述电源模块的第一端连接。
  8. 根据权利要求5所述的移动终端,其中,所述控制模块具体用于:
    若在所述预设时间内所述电流值的变化量大于第一预设阈值,则确定所述驱动组件开始驱动所述摄像头移动的起始时刻与所述预设时间内所述电流值最大的时刻之间的时长;
    根据所述时长,判断所述摄像头是否移动到预设位置。
  9. 根据权利要求8所述的移动终端,其中,所述控制模块还用于:
    若所述时长大于第二预设阈值,则判定摄像头移动到预设位置;
    若所述时长不大于第二预设阈值,则判定摄像头未移动到预设位置。
  10. 根据权利要求8所述的移动终端,其中,所述控制模块还用于:在检测到所述驱动组件开始驱动所述摄像头移动的情况下,获取起始时刻输入到所述驱动组件中的第一电流值;
    所述控制模块具体用于:
    获取目标时刻输入到所述驱动组件中的第二电流值;
    若所述第一电流值与所述第二电流值的差值大于第二预设阈值,则确定所述起始时刻与所述目标时刻之间的时长。
  11. 一种移动终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1-4中任一项所述的检测方法中的步骤。
  12. 一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如权利要求1-4中任一项所述的检测方法中的步骤。
PCT/CN2020/082080 2019-04-22 2020-03-30 检测方法及移动终端 Ceased WO2020216002A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910322665.7A CN110049192B (zh) 2019-04-22 2019-04-22 一种检测方法及移动终端
CN201910322665.7 2019-04-22

Publications (1)

Publication Number Publication Date
WO2020216002A1 true WO2020216002A1 (zh) 2020-10-29

Family

ID=67278304

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/082080 Ceased WO2020216002A1 (zh) 2019-04-22 2020-03-30 检测方法及移动终端

Country Status (2)

Country Link
CN (1) CN110049192B (zh)
WO (1) WO2020216002A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112558695A (zh) * 2020-12-22 2021-03-26 维沃移动通信有限公司 电子设备和状态检测方法

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110049192B (zh) * 2019-04-22 2021-08-13 维沃移动通信有限公司 一种检测方法及移动终端
CN112351186B (zh) * 2019-08-09 2022-04-08 北京小米移动软件有限公司 升降摄像头控制方法及带升降摄像头的终端、终端设备
CN112422781B (zh) * 2019-08-23 2021-10-22 北京小米移动软件有限公司 升降摄像模组、电子设备和升降摄像模组的检测方法
CN110677566A (zh) * 2019-09-26 2020-01-10 Tcl移动通信科技(宁波)有限公司 一种摄像头的控制方法和移动终端
CN111580566A (zh) * 2020-05-25 2020-08-25 海信视像科技股份有限公司 显示设备
CN117027554B (zh) * 2022-03-30 2025-10-14 安克创新科技股份有限公司 锁具控制方法、锁具、锁具控制装置、介质以及电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104902150A (zh) * 2015-03-27 2015-09-09 惠州友华微电子科技有限公司 一种摄像头电磁驱动结构
EP2983026A1 (en) * 2014-08-07 2016-02-10 LG Innotek Co., Ltd. Lens moving apparatus and camera module including the same
CN107040175A (zh) * 2016-02-04 2017-08-11 西安中兴新软件有限责任公司 音圈电机启动控制方法及装置、摄像头模组
CN108965508A (zh) * 2018-06-06 2018-12-07 Oppo(重庆)智能科技有限公司 电子设备
CN110049192A (zh) * 2019-04-22 2019-07-23 维沃移动通信有限公司 一种检测方法及移动终端

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103185948B (zh) * 2011-12-31 2015-06-10 索尼爱立信移动通讯有限公司 照相机模块、包含该模块的电子设备及自动对焦方法
EP3115819B1 (en) * 2014-03-05 2020-05-13 LG Innotek Co., Ltd. Lens driving device and camera module comprising same
KR102468129B1 (ko) * 2016-06-01 2022-11-22 삼성전자주식회사 전자 장치 및 전자 장치 제작 방법
CN109067964B (zh) * 2018-06-12 2020-06-23 Oppo广东移动通信有限公司 摄像头控制方法、装置、移动终端及存储介质
CN109547601B (zh) * 2018-12-27 2021-02-05 维沃移动通信有限公司 一种终端设备及伸缩摄像头的行程检测方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2983026A1 (en) * 2014-08-07 2016-02-10 LG Innotek Co., Ltd. Lens moving apparatus and camera module including the same
CN104902150A (zh) * 2015-03-27 2015-09-09 惠州友华微电子科技有限公司 一种摄像头电磁驱动结构
CN107040175A (zh) * 2016-02-04 2017-08-11 西安中兴新软件有限责任公司 音圈电机启动控制方法及装置、摄像头模组
CN108965508A (zh) * 2018-06-06 2018-12-07 Oppo(重庆)智能科技有限公司 电子设备
CN110049192A (zh) * 2019-04-22 2019-07-23 维沃移动通信有限公司 一种检测方法及移动终端

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112558695A (zh) * 2020-12-22 2021-03-26 维沃移动通信有限公司 电子设备和状态检测方法

Also Published As

Publication number Publication date
CN110049192B (zh) 2021-08-13
CN110049192A (zh) 2019-07-23

Similar Documents

Publication Publication Date Title
US11463566B2 (en) Camera control method and mobile terminal
WO2020216002A1 (zh) 检测方法及移动终端
CN108390964B (zh) 一种摄像头保护方法及移动终端
CN109005262B (zh) 一种摄像头控制方法、终端及计算机可读存储介质
WO2020221044A1 (zh) 步进电机的控制方法和移动终端
WO2021098672A1 (zh) 显示方法及电子设备
CN108111730A (zh) 一种摄像模组、控制方法及移动终端
CN108989644B (zh) 一种摄像头控制方法及终端
CN108446068A (zh) 一种界面切换方法及移动终端
CN111026235A (zh) 一种电子设备及电子设备控制方法
CN110045807B (zh) 一种电压控制方法及终端
WO2020156114A1 (zh) 柔性屏装置及电子设备
WO2020233323A1 (zh) 显示控制方法、终端设备及计算机可读存储介质
CN108173993A (zh) 一种摄像模组、控制方法及移动终端
CN108319421A (zh) 一种显示触发方法及移动终端
CN110139018A (zh) 摄像头控制模组、摄像头的移动控制方法及终端
WO2021083122A1 (zh) 电子设备和控制件控制方法
CN109144393A (zh) 一种图像显示方法及移动终端
CN108345424A (zh) 一种信息显示方法及移动终端
CN108924319B (zh) 一种接近检测方法和移动终端
WO2021147911A1 (zh) 移动终端、拍摄模式的检测方法及存储介质
CN108287884A (zh) 一种页面显示方法及移动终端
CN108681429A (zh) 一种亮屏控制方法及移动终端
WO2020259009A1 (zh) 摄像头控制方法及终端设备
CN109164948B (zh) 一种触屏静电电容补充装置、方法及移动终端

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20794684

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20794684

Country of ref document: EP

Kind code of ref document: A1