CN110049192A - A kind of detection method and mobile terminal - Google Patents

A kind of detection method and mobile terminal Download PDF

Info

Publication number
CN110049192A
CN110049192A CN201910322665.7A CN201910322665A CN110049192A CN 110049192 A CN110049192 A CN 110049192A CN 201910322665 A CN201910322665 A CN 201910322665A CN 110049192 A CN110049192 A CN 110049192A
Authority
CN
China
Prior art keywords
camera
current value
mobile terminal
driving
driving component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910322665.7A
Other languages
Chinese (zh)
Other versions
CN110049192B (en
Inventor
高小文
廖佑平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910322665.7A priority Critical patent/CN110049192B/en
Publication of CN110049192A publication Critical patent/CN110049192A/en
Priority to PCT/CN2020/082080 priority patent/WO2020216002A1/en
Application granted granted Critical
Publication of CN110049192B publication Critical patent/CN110049192B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Abstract

The present invention provides a kind of detection method and mobile terminal, this method comprises: obtaining the current value being input in the driving component in the case where detecting that the driving component starts to drive the camera mobile;According to the variable quantity of current value described in preset time, judge whether the camera is moved to predeterminated position.In this way, can judge whether camera is moved to predeterminated position by judging the current value being input in driving assembly, the manufacturing cost of mobile terminal can be reduced.

Description

A kind of detection method and mobile terminal
Technical field
The present invention relates to field of communication technology more particularly to a kind of detection method and mobile terminals.
Background technique
Currently, camera can be arranged in mobile terminal in order to reduce camera to the occupancy of screen.It is imaged when using When head, control camera is stretched out from the built-in space of mobile terminal;When camera use finishes, camera is contracted to mobile whole In the built-in space at end.
Currently, being mainly to the control of flexible camera: it is detected based on flexible situation of the Hall switch to camera, To judge whether the camera of mobile terminal is moved to target position, including it is elongated to first object position, or is retracted into Two target positions, it is this in such a way that whether Hall switch is moved to target position come auxiliary judgment camera, not only need Increase by 2 Hall switch, but also to increase by one block of magnet, so that the manufacturing cost of mobile terminal is too high.
Summary of the invention
The embodiment of the present invention provides a kind of detection method and mobile terminal, to solve existing to judge whether camera stretches Mode in place, so that the problem that the manufacturing cost of mobile terminal is high.
In order to solve the above technical problems, the present invention is implemented as follows:
In a first aspect, being applied to mobile terminal, the mobile terminal packet the embodiment of the invention provides a kind of detection method Driving assembly and camera are included, the driving component is for driving the camera to stretch out described in the mobile terminal or retraction Mobile terminal, which comprises
In the case where detecting that the driving component starts to drive the camera mobile, acquisition is input to the driving Current value in component;
According to the variable quantity of current value described in preset time, judge whether the camera is moved to predeterminated position.
Second aspect, the embodiment of the present invention also provide a kind of mobile terminal, including driving assembly and camera, the driving For driving the camera to stretch out the mobile terminal or retracting the mobile terminal, the mobile terminal also wraps component It includes:
Current detection module, the first end of the current detection module and the first end of the driving component connect, described The second end of current detection module and the first end of power module connect;
Control module, the first end of the control module are connect with the third end of the current detection module, the control The second end of module is connect with the second end of the power module;
The control module, in the case where detecting that the driving component starts to drive the camera mobile, Obtain the current value being input in the driving component;According to the variable quantity of current value described in preset time, taken the photograph described in judgement As whether head is moved to predeterminated position.
In embodiments of the present invention, in the case where detecting that the driving component starts to drive the camera mobile, Obtain the current value being input in the driving component;According to the variable quantity of current value described in preset time, taken the photograph described in judgement As whether head is moved to predeterminated position.In this way, can judge to take the photograph by judging the current value being input in driving assembly As whether head is moved to predeterminated position, the manufacturing cost of mobile terminal can be reduced.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, For those of ordinary skill in the art, without any creative labor, it can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is the flow chart of detection method provided in an embodiment of the present invention;
Fig. 2 is one of the structure chart of mobile terminal provided in an embodiment of the present invention;
Fig. 3 is the two of the structure chart of mobile terminal provided in an embodiment of the present invention;
Fig. 4 be another embodiment of the present invention provides mobile terminal structure chart.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It is the flow chart of detection method provided in an embodiment of the present invention referring to Fig. 1, Fig. 1, as shown in Figure 1, the present embodiment mentions For a kind of detection method, it is applied to mobile terminal, the mobile terminal includes driving assembly and camera, and the driving component is used In driving the camera to stretch out the mobile terminal or retracting the mobile terminal, the described method comprises the following steps:
Step 101, in the case where detecting that the driving component starts to drive the camera mobile, acquisition is input to Current value in the driving component.
Driving assembly connects to power supply, and when driving assembly works, power supply provides power supply signal for driving assembly.Power supply signal Including voltage and current.When driving assembly starts that camera is driven to stretch out or retract, acquisition for mobile terminal is input to driving group Current value in part.Driving assembly can be motor.
When obtaining current value, it can be obtained once, it is not limited here every prefixed time interval.
Step 102, according to the variable quantity of current value described in preset time, it is default to judge whether the camera is moved to Position.
During driving assembly drives camera to stretch out, if camera is stuck, the current value in driving assembly is inputted It can be mutated, electric current value mutation is it is understood that the variable quantity of the current value is greater than the first preset threshold within a preset time.It is mobile Whether terminal is mutated according to current value, and the time to be mutated according to current value, judges whether camera is moved to default position It sets.
Further, the variable quantity according to current value described in preset time, judges whether the camera moves To predeterminated position, comprising:
If the variable quantity of the current value is greater than the first preset threshold in the preset time, it is determined that the driving group Between at the time of part starts to drive the current value maximum in the mobile initial time of the camera and the preset time Duration;
According to the duration, judge whether the camera is moved to predeterminated position.
Specifically, preset time can be configured according to the actual situation, it is not limited here.Mobile terminal is detected pre- If the variable quantity of the current value is greater than the first preset threshold in the time, determine that the driving component starts to drive the camera shooting In the mobile initial time of head and the preset time at the time of current value maximum between duration.
In the case where driving assembly drives camera elongation, predeterminated position is that camera (is taken the photograph in normal work As head is during stretching or retraction, in addition to driving assembly, the mobile shelter of no other influences camera) in the case where stretch Final position out;In the case where driving assembly drives the camera to retract, predeterminated position is that camera is working normally In the case where the final position that retracts.In normal work, camera is camera from the time for starting to extend out to predeterminated position Preset duration or camera are preset duration from the time for starting to be retracted to predeterminated position, using the preset duration as second Preset threshold can determine whether camera reaches predeterminated position by comparing duration and the second preset threshold, or be retracted into Predeterminated position.
In the embodiment of the present invention, above-mentioned mobile terminal can be any mobile terminal including flexible camera, such as: hand Machine, tablet computer (Tablet Personal Computer), laptop computer (Laptop Computer), individual digital help Manage (personal digital assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, ) or wearable device (Wearable Device) etc. MID.
The detection method of the embodiment of the present invention is detecting that the driving component starts to drive the mobile feelings of the camera Under condition, the current value being input in the driving component is obtained;According to the variable quantity of current value described in preset time, institute is judged State whether camera is moved to predeterminated position, in this way, can sentence by judging the current value being input in driving assembly Whether disconnected camera is moved to predeterminated position, can reduce the manufacturing cost of mobile terminal.
Further, described according to the duration, judge whether the camera is moved to predeterminated position, comprising:
If the duration is greater than the second preset threshold, determine that camera is moved to predeterminated position;
If the duration is not more than the second preset threshold, determine that camera is not moved to predeterminated position.
For example, camera needs 1 second time (1 second is the second preset threshold) from starting to extend out to predeterminated position, if when Length belongs to 0 second to 0.95 second section, illustrates that current value mutates in 0 second to 0.95 second section, determines that camera was stretching It is blocked in journey, camera does not extend out predeterminated position;If duration belongs to 0.95 second to 1 second section, it is prominent to illustrate that current value occurs Become in 0.95 second to 1 second section, determines that camera has stretched in place, i.e., camera reaches predeterminated position.
Likewise, if camera needs 1 second time (1 second is the second preset threshold) from starting to be retracted to predeterminated position, If duration belongs to 0 second to 0.95 second section, illustrates that current value mutates in 0 second to 0.95 second section, determine that camera is contracting It is blocked during returning, camera is not retracted into predeterminated position;If duration belongs to 0.95 second to 1 second section, illustrate that current value is sent out Raw mutation determines that camera has been retracted into position, i.e. camera is retracted into predeterminated position in 0.95 second to 1 second section.
The detection method of the embodiment of the present invention, the initial time and electric current for driving the camera mobile by driving assembly The time that value mutates determines duration, and then according to duration and the second preset threshold, it is default to judge whether camera is moved to Position can reduce the manufacturing cost of mobile terminal.
Further, if it is determined that camera is blocked during stretching, then mobile terminal control driving assembly driving is taken the photograph As head retraction, to prevent camera from damaging, effective protection camera;If it is determined that camera has been moved to predeterminated position, then move Terminal control driving assembly stops driving camera.
If it is determined that camera is blocked during retraction, then mobile terminal control driving assembly driving camera stops moving It is dynamic, to prevent camera from damaging, effective protection camera.
Further, in the case where detecting that the driving component starts to drive the camera mobile, input is obtained Current value into the driving component, comprising:
In the case where detecting that the driving component starts to drive the camera mobile, obtains initial time and be input to The first current value in the driving component;
If the variable quantity of the current value is greater than the first preset threshold within a preset time, it is determined that the driving component is opened In the initial time for driving the camera mobile and the preset time of beginning at the time of the current value maximum between duration, Include:
It obtains object time and is input to the second current value in the driving component;
If the difference of first current value and second current value is greater than the first preset threshold, it is determined that the starting Duration between moment and the object time.
Specifically, obtaining camera in the case where detecting that driving assembly driving camera is mobile and starting mobile rise Begin the moment, and obtains the first current value that initial time is input in the driving component.
When obtaining current value, it can be obtained every prefixed time interval primary.For example, if initial time is 0 second, then can be every The current value of driving assembly was obtained every 0.2 second, such as the current value of driving assembly was obtained at 0.2 second, 0.4 second and 0.6 second.Mesh Marking the moment is at the time of obtaining the second current value.When the difference of the first current value and the second current value is greater than the first preset threshold When, determine the duration between the initial time and the object time.If the duration is greater than the second preset threshold, determine Camera is moved to predeterminated position;If the duration is not more than the second preset threshold, determine that camera is not moved to default position It sets.
The detection method of the embodiment of the present invention, the initial time for driving the camera mobile by driving assembly and target Moment determines duration, to judge whether camera is moved to predeterminated position according to duration and the second preset threshold, can reduce shifting The manufacturing cost of dynamic terminal.
Referring to fig. 2, Fig. 2 is the structure chart of mobile terminal provided in an embodiment of the present invention, as shown in Fig. 2, the present embodiment mentions For a kind of mobile terminal, including driving assembly 2 and camera 1, the driving component 2 is for driving the camera 1 to stretch out institute It states mobile terminal or retracts the mobile terminal, the mobile terminal further include:
The first end of current detection module 3, the current detection module 3 is connect with the first end of the driving component 2, institute The second end for stating current detection module 3 is connect with the first end of power module 4;
Control module 5, the first end of the control module 5 are connect with the third end of the current detection module 3, the control The second end of molding block 5 is connect with the second end of the power module 4;
The control module 5, for detecting that the driving component 2 starts to drive the mobile situation of the camera 1 Under, the current value being input in the driving component 2 is obtained by current detection module 3;According to electric current described in preset time The variable quantity of value, judges whether the camera 1 is moved to predeterminated position.
Specifically, current detection module 3, for detecting that the driving component 2 starts that the camera 1 is driven to stretch out Outside the mobile terminal, or in the case where retracting in the mobile terminal, to the electric current being input in the driving component 2 into Row detection, and the current value of acquisition is sent to the control module 5.
Driving assembly 2 is connect by current detection module 3 with power module 4, and when driving assembly 2 works, power module 4 is Driving assembly 2 provides power supply signal.Power supply signal includes voltage and current.It is mobile when driving assembly 2 drives camera 1 to stretch out Terminal obtains the current value in input driving assembly 2.Driving assembly 2 can be motor.
When control module 5 obtains current value, it can be obtained once, it is not limited here every prefixed time interval.
In the case where driving assembly drives camera elongation, predeterminated position is that camera (is taken the photograph in normal work As head is during stretching or retraction, in addition to driving assembly, the mobile shelter of no other influences camera) in the case where stretch Final position out;In the case where driving assembly drives the camera to retract, predeterminated position is that camera is working normally In the case where the final position that retracts.
The mobile terminal of the embodiment of the present invention is detecting that the driving component 2 starts to drive the camera 1 mobile In the case of, the current value being input in the driving component 2 is obtained by current detection module 3;According to described in preset time The variable quantity of current value, judges whether the camera 1 is moved to predeterminated position, in this way, by obtaining to current detection module 3 The current value being input in driving assembly 2 judged, can judge whether camera 1 is moved to predeterminated position, can reduce The manufacturing cost of mobile terminal.
Further, the power module 4 includes power supply chip 41 and power supply 42;
The first end of the power supply chip 41 is connect with the second end of the current detection module 3, the power supply chip 41 Second end connect with the first end of the power supply 42, the second of the third end of the power supply chip 41 and the control module 5 End connection;The second end of the power supply 42 is grounded.
Further, the current detection module 3 includes detection chip 31 and resistance R;
The first end of the detection chip 31 is connect with the first end of the driving component 2, and the of the detection chip 31 Two ends are connect with the first end of power module 4, and the first end of the third end of the detection chip 31 and the control module 5 connects It connects, the first end of the resistance R is connect with the first end of the driving component 2, the second end of the resistance R and the power supply mould The first end of block 4 connects.
Further, the control module 5 is specifically used for:
If the variable quantity of the current value is greater than the first preset threshold in the preset time, it is determined that the driving group Between at the time of part starts to drive the current value maximum in the mobile initial time of the camera and the preset time Duration;
According to the duration, judge whether the camera is moved to predeterminated position.
Specifically, if camera 1 is stuck, inputting driving assembly 2 during driving assembly 2 drives camera 1 mobile In current value can mutate, i.e., the variable quantity of current value be greater than the first preset threshold.Mobile terminal can be sent out according to current value The time of raw mutation, judge whether camera 1 is moved to predeterminated position.For example, the mistake that driving assembly 2 drives camera 1 to stretch out Cheng Zhong, if camera 1 is stuck, the current value inputted in driving assembly 2 can be mutated.Mobile terminal according to electric current value mutation when Between, judge whether camera 1 reaches predeterminated position.Alternatively, during driving assembly 2 drives camera 1 to retract, if camera shooting First 1 is stuck, and the current value inputted in driving assembly 2 can be mutated.Mobile terminal judges to image according to the time of electric current value mutation Whether first 1 be retracted into predeterminated position.
Mobile terminal is detecting current value mutation, the initial time for driving camera 1 to stretch out according to driving assembly 2 Obtain duration at the time of with current value maximum described in preset time, this when a length of current value mutate when driving assembly 2 drive Dynamic camera 1 used duration during stretching out.
Predeterminated position is the final position that camera 1 stretches out in the case where normal work or camera 1 in normal work The final position retracted in the case where work.Camera 1 in normal work, camera 1 from start to extend out to predeterminated position when Between be preset duration or camera 1 from the time for starting to be retracted to predeterminated position be preset duration, using the preset duration as Second preset threshold can determine whether camera 1 is moved to predeterminated position by comparing duration and the second preset threshold.
Further, the control module 5 is also used to:
If the duration is greater than the second preset threshold, determine that camera is moved to predeterminated position;
If the duration is not more than the second preset threshold, determine that camera is not moved to predeterminated position.
For example, camera 1 needs 1 second time (1 second is the second preset threshold) from starting to extend out to predeterminated position, if when Length belongs to 0 second to 0.95 second section, illustrates that current value mutates in 0 second to 0.95 second section, determines that camera 1 was stretching It is blocked in journey, camera 1 does not extend out predeterminated position;If duration belongs to 0.95 second to 1 second section, it is prominent to illustrate that current value occurs Become in 0.95 second to 1 second section, determines that camera 1 has stretched in place, i.e., camera 1 reaches predeterminated position.
Likewise, if camera needs 1 second time (1 second is the second preset threshold) from starting to be retracted to predeterminated position, If duration belongs to 0 second to 0.95 second section, illustrates that current value mutates in 0 second to 0.95 second section, determine that camera is contracting It is blocked during returning, camera is not retracted into predeterminated position;If duration belongs to 0.95 second to 1 second section, illustrate that current value is sent out Raw mutation determines that camera has been retracted into position, i.e. camera is retracted into predeterminated position in 0.95 second to 1 second section.
In the embodiment of the present invention, the initial time and current value for driving the camera 1 mobile by driving assembly 2 occur The time of mutation determines duration, then according to duration and the second preset threshold, judges whether camera 1 is moved to predeterminated position, The manufacturing cost of mobile terminal can be reduced.
Further, the control module 5 is also used to: detecting that the driving component 2 starts to drive the camera 1 In the case where movement, obtains initial time and be input to the first current value in the driving component 2;
The control module 5 is specifically used for: obtaining object time and is input to the second current value in the driving component 2;
If the difference of first current value and second current value is greater than the first preset threshold, it is determined that the starting Duration between moment and the object time.
Specifically, obtaining camera 1 in the case where detecting that driving assembly 2 drives camera 1 mobile and starting movement Initial time, and obtain the first current value that initial time is input in the driving component 2.
When obtaining current value, it can be obtained every prefixed time interval primary.For example, if initial time is 0 second, then can be every The current value of driving assembly was obtained every 0.2 second, such as the current value of driving assembly 2 was obtained at 0.2 second, 0.4 second and 0.6 second. Object time is at the time of obtaining the second current value.When the difference of the first current value and the second current value is greater than the first default threshold When value, the duration between the initial time and the object time is determined.If the duration is greater than the second preset threshold, sentence Determine camera 1 and is moved to predeterminated position;If the duration is not more than the second preset threshold, it is pre- to determine that camera 1 is not moved to If position.
In the embodiment of the present invention, the initial time and object time for driving the camera 1 mobile by driving assembly 2 are true Timing is long, to judge whether camera 1 is moved to predeterminated position according to duration and the second preset threshold, can reduce mobile whole The manufacturing cost at end.
Further, mobile terminal further include: slide bar 6 and sliding rail 7;
The camera 1 is arranged on the sliding rail 7, and the camera 1 is connect with the first end of the slide bar 6, described The second end of slide bar 6 is connect with the shaft of the driving component 2;
When the driving component 2 works, the shaft of the driving component 2 drives the slide bar 6 to rotate, 6 turns of the slide bar The camera 1 is driven to move when dynamic on the sliding rail 7.
Driving assembly 2 is electric motor, and electric motor rotation band moving slide-bar rotates.When electric motor rotates forward, take the photograph As head under the drive of slide bar along sliding rail upward sliding;When electric motor rotates backward, camera is under the drive of slide bar Along sliding rail slide downward.
Electric motor is individually powered by power module 4, and power module 4 includes power supply chip 41 and power supply 42.In control mould Under the control of block 4, power supply chip 41 provides forward voltage or backward voltage to electric motor, and power supply chip 41 provides positive electricity When pressure, electric motor is rotated forward, and when power supply chip 41 provides backward voltage, electric motor is rotated backward.
Connected a precision resistance R on electric motor anode, there is the inspection for being detected to electric current on precision resistance R Survey chip 31.If electric motor is stuck, the power of electric motor is 0, and the general power in circuit is constant where electric motor, by The all-in resistance in circuit where the electric motor is constant, electric motor electric current in the loop can become larger, that is, be input to motor horse Current value in reaching can become larger, and detection chip 31 detects the current value being input in electric motor.And will test Current value is transferred to control module 4, so that control module judges whether current value has mutation.
The hardware structural diagram of Fig. 4 a kind of mobile terminal of each embodiment to realize the present invention, as shown in figure 4, should Mobile terminal 500 includes but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, input unit 504, Sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor 510, Yi Ji electricity The components such as source 511.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 4 is not constituted to mobile terminal Restriction, mobile terminal may include perhaps combining certain components or different components than illustrating more or fewer components Arrangement.In embodiments of the present invention, mobile terminal include but is not limited to mobile phone, tablet computer, laptop, palm PC, Car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 510, for detecting that the driving component starts to drive the mobile situation of the camera Under, obtain the current value being input in the driving component;
According to the variable quantity of current value described in preset time, judge whether the camera is moved to predeterminated position.
Further, processor 510 are used for: if the variable quantity of the current value is greater than first in the preset time Preset threshold, it is determined that the driving component starts institute in the initial time for driving the camera mobile and the preset time Duration between at the time of stating current value maximum;
According to the duration, judge whether the camera is moved to predeterminated position.
Further, processor 510 determine that camera is moved to if being greater than the second preset threshold for the duration Predeterminated position;
If the duration is not more than the second preset threshold, determine that camera is not moved to predeterminated position.
Further, processor 510, for detecting that the driving component starts to drive the mobile feelings of the camera Under condition, obtains initial time and be input to the first current value in the driving component;
Processor 510 is also used to obtain the second current value that object time is input in the driving component;
If the difference of first current value and second current value is greater than the first preset threshold, it is determined that the starting Duration between moment and the object time.
Mobile terminal 500 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here It repeats no more.
The mobile terminal 500 of the embodiment of the present invention is detecting that the driving component starts to drive the camera mobile In the case where, obtain the current value being input in the driving component;According to the variable quantity of current value described in preset time, sentence Whether the camera that breaks is moved to predeterminated position.In this way, by judging the current value being input in driving assembly, just It can determine whether camera is moved to predeterminated position, the manufacturing cost of mobile terminal can be reduced.
It should be understood that the embodiment of the present invention in, radio frequency unit 501 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 510 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 501 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 501 can also by wireless communication system and network and other set Standby communication.
Mobile terminal provides wireless broadband internet by network module 502 for user and accesses, and such as user is helped to receive It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 503 can be received by radio frequency unit 501 or network module 502 or in memory 509 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 503 can also be provided and be moved The relevant audio output of specific function that dynamic terminal 500 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 503 includes loudspeaker, buzzer and receiver etc..
Input unit 504 is for receiving audio or video signal.Input unit 504 may include graphics processor (Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 506.Through graphics processor 5041, treated that picture frame can be deposited Storage is sent in memory 509 (or other storage mediums) or via radio frequency unit 501 or network module 502.Mike Wind 5042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 501 is converted in the case where telephone calling model.
Mobile terminal 500 further includes at least one sensor 505, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 5061, and proximity sensor can close when mobile terminal 500 is moved in one's ear Display panel 5061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 505 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 506 is for showing information input by user or being supplied to the information of user.Display unit 506 can wrap Display panel 5061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 5061.
User input unit 507 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 507 include touch panel 5071 and Other input equipments 5072.Touch panel 5071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 5071 or in touch panel 5071 Neighbouring operation).Touch panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 510, receiving area It manages the order that device 510 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch panel 5071.In addition to touch panel 5071, user input unit 507 can also include other input equipments 5072.Specifically, other input equipments 5072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 5071 can be covered on display panel 5061, when touch panel 5071 is detected at it On or near touch operation after, send processor 510 to determine the type of touch event, be followed by subsequent processing device 510 according to touching The type for touching event provides corresponding visual output on display panel 5061.Although in Fig. 4, touch panel 5071 and display Panel 5061 is the function that outputs and inputs of realizing mobile terminal as two independent components, but in some embodiments In, can be integrated by touch panel 5071 and display panel 5061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place is without limitation.
Interface unit 508 is the interface that external device (ED) is connect with mobile terminal 500.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 508 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in mobile terminal 500 or can be used in 500 He of mobile terminal Data are transmitted between external device (ED).
Memory 509 can be used for storing software program and various data.Memory 509 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 509 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 510 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 509, and calls and is stored in storage Data in device 509 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 510 may include one or more processing units;Preferably, processor 510 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 510.
Mobile terminal 500 can also include the power supply 511 (such as battery) powered to all parts, it is preferred that power supply 511 Can be logically contiguous by power-supply management system and processor 510, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, mobile terminal 500 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 510, and memory 509 is stored in On memory 509 and the computer program that can run on the processor 510, the computer program are executed by processor 510 Each process of the above-mentioned detection method embodiment of Shi Shixian, and identical technical effect can be reached, to avoid repeating, here no longer It repeats.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of above-mentioned detection method embodiment when being executed by processor, and can reach Identical technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium is deposited Ru read-only Reservoir (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), Magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within protection of the invention.

Claims (10)

1. a kind of detection method is applied to mobile terminal, the mobile terminal includes driving assembly and camera, the driving group Part is for driving the camera to stretch out the mobile terminal or retracting the mobile terminal, which is characterized in that the method Include:
In the case where detecting that the driving component starts to drive the camera mobile, acquisition is input to the driving component In current value;
According to the variable quantity of current value described in preset time, judge whether the camera is moved to predeterminated position.
2. detection method according to claim 1, which is characterized in that the change according to current value described in preset time Change amount, judges whether the camera is moved to predeterminated position, comprising:
If the variable quantity of the current value is greater than the first preset threshold in the preset time, it is determined that the driving component is opened In the initial time for driving the camera mobile and the preset time of beginning at the time of the current value maximum between duration;
According to the duration, judge whether the camera is moved to predeterminated position.
3. detection method according to claim 2, which is characterized in that it is described according to the duration, judge the camera Whether predeterminated position is moved to, comprising:
If the duration is greater than the second preset threshold, determine that camera is moved to predeterminated position;
If the duration is not more than the second preset threshold, determine that camera is not moved to predeterminated position.
4. detection method according to claim 2, which is characterized in that described to detect that the driving component starts to drive In the case that the camera is mobile, the current value being input in the driving component is obtained, comprising:
In the case where detecting that the driving component starts to drive the camera mobile, acquisition initial time is input to described The first current value in driving assembly;
If the variable quantity of the current value described within a preset time is greater than the first preset threshold, it is determined that the driving component is opened In the initial time for driving the camera mobile and the preset time of beginning at the time of the current value maximum between duration, Include:
It obtains object time and is input to the second current value in the driving component;
If the difference of first current value and second current value is greater than the first preset threshold, it is determined that the initial time With the duration between the object time.
5. a kind of mobile terminal, including driving assembly and camera, the driving component is for driving the camera to stretch out institute It states mobile terminal or retracts the mobile terminal, which is characterized in that the mobile terminal further include:
Current detection module, the first end of the current detection module and the first end of the driving component connect, the electric current The second end of detection module and the first end of power module connect;
Control module, the first end of the control module are connect with the third end of the current detection module, the control module Second end connect with the second end of the power module;
The control module, for passing through in the case where detecting that the driving component starts to drive the camera mobile Current detection module obtains the current value being input in the driving component;According to the variation of current value described in preset time Amount, judges whether the camera is moved to predeterminated position.
6. mobile terminal according to claim 5, which is characterized in that the power module includes power supply chip and power supply;
The first end of the power supply chip is connect with the second end of the current detection module, the second end of the power supply chip with The first end of the power supply connects, and the third end of the power supply chip is connect with the second end of the control module;
The second end of the power supply is grounded.
7. mobile terminal according to claim 5, which is characterized in that the current detection module includes detection chip and electricity Resistance;
The first end of the detection chip and the first end of the driving component connect, the second end and power supply of the detection chip The first end of module connects, and the third end of the detection chip is connect with the first end of the control module, and the of the resistance The connection of the first end of one end and the driving component, the second end of the resistance are connect with the first end of the power module.
8. mobile terminal according to claim 5, which is characterized in that the control module is specifically used for:
If the variable quantity of the current value is greater than the first preset threshold in the preset time, it is determined that the driving component is opened In the initial time for driving the camera mobile and the preset time of beginning at the time of the current value maximum between duration;
According to the duration, judge whether the camera is moved to predeterminated position.
9. mobile terminal according to claim 8, which is characterized in that the control module is also used to:
If the duration is greater than the second preset threshold, determine that camera is moved to predeterminated position;
If the duration is not more than the second preset threshold, determine that camera is not moved to predeterminated position.
10. mobile terminal according to claim 8, which is characterized in that the control module is also used to: described detecting Driving assembly starts in the case where driving the camera mobile, obtains initial time is input in the driving component first Current value;
The control module is specifically used for:
It obtains object time and is input to the second current value in the driving component;
If the difference of first current value and second current value is greater than the second preset threshold, it is determined that the initial time With the duration between the object time.
CN201910322665.7A 2019-04-22 2019-04-22 Detection method and mobile terminal Active CN110049192B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910322665.7A CN110049192B (en) 2019-04-22 2019-04-22 Detection method and mobile terminal
PCT/CN2020/082080 WO2020216002A1 (en) 2019-04-22 2020-03-30 Detection method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910322665.7A CN110049192B (en) 2019-04-22 2019-04-22 Detection method and mobile terminal

Publications (2)

Publication Number Publication Date
CN110049192A true CN110049192A (en) 2019-07-23
CN110049192B CN110049192B (en) 2021-08-13

Family

ID=67278304

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910322665.7A Active CN110049192B (en) 2019-04-22 2019-04-22 Detection method and mobile terminal

Country Status (2)

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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677566A (en) * 2019-09-26 2020-01-10 Tcl移动通信科技(宁波)有限公司 Camera control method and mobile terminal
CN111580566A (en) * 2020-05-25 2020-08-25 海信视像科技股份有限公司 Display device
WO2020216002A1 (en) * 2019-04-22 2020-10-29 维沃移动通信有限公司 Detection method and mobile terminal
CN112351186A (en) * 2019-08-09 2021-02-09 北京小米移动软件有限公司 Lifting camera control method, terminal with lifting camera and terminal equipment
CN112422781A (en) * 2019-08-23 2021-02-26 北京小米移动软件有限公司 Lifting camera module, electronic equipment and detection method of lifting camera module

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112558695A (en) * 2020-12-22 2021-03-26 维沃移动通信有限公司 Electronic device and state detection method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103185948A (en) * 2011-12-31 2013-07-03 索尼爱立信移动通讯有限公司 Camera module, electronic device containing camera module and automatic focusing method
CN106461908A (en) * 2014-03-05 2017-02-22 Lg伊诺特有限公司 Lens driving device and camera module comprising same
US20170351164A1 (en) * 2016-06-01 2017-12-07 Samsung Electronics Co., Ltd. Electronic device and method for manufacturing the same
CN109067964A (en) * 2018-06-12 2018-12-21 Oppo广东移动通信有限公司 Camera control method, device, mobile terminal and storage medium
CN109547601A (en) * 2018-12-27 2019-03-29 维沃移动通信有限公司 A kind of stroke detecting method of terminal device and flexible camera

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4145205A1 (en) * 2014-08-07 2023-03-08 Lg Innotek Co., Ltd. Lens moving apparatus and camera module including the same
CN104902150B (en) * 2015-03-27 2018-05-29 惠州友华微电子科技有限公司 A kind of camera electromagnetic drive structures
CN107040175A (en) * 2016-02-04 2017-08-11 西安中兴新软件有限责任公司 Voice coil motor starts control method and device, camera module
CN108965508B (en) * 2018-06-06 2020-02-14 Oppo(重庆)智能科技有限公司 Electronic device
CN110049192B (en) * 2019-04-22 2021-08-13 维沃移动通信有限公司 Detection method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103185948A (en) * 2011-12-31 2013-07-03 索尼爱立信移动通讯有限公司 Camera module, electronic device containing camera module and automatic focusing method
CN106461908A (en) * 2014-03-05 2017-02-22 Lg伊诺特有限公司 Lens driving device and camera module comprising same
US20170351164A1 (en) * 2016-06-01 2017-12-07 Samsung Electronics Co., Ltd. Electronic device and method for manufacturing the same
CN109067964A (en) * 2018-06-12 2018-12-21 Oppo广东移动通信有限公司 Camera control method, device, mobile terminal and storage medium
CN109547601A (en) * 2018-12-27 2019-03-29 维沃移动通信有限公司 A kind of stroke detecting method of terminal device and flexible camera

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020216002A1 (en) * 2019-04-22 2020-10-29 维沃移动通信有限公司 Detection method and mobile terminal
CN112351186A (en) * 2019-08-09 2021-02-09 北京小米移动软件有限公司 Lifting camera control method, terminal with lifting camera and terminal equipment
CN112351186B (en) * 2019-08-09 2022-04-08 北京小米移动软件有限公司 Lifting camera control method, terminal with lifting camera and terminal equipment
CN112422781A (en) * 2019-08-23 2021-02-26 北京小米移动软件有限公司 Lifting camera module, electronic equipment and detection method of lifting camera module
CN110677566A (en) * 2019-09-26 2020-01-10 Tcl移动通信科技(宁波)有限公司 Camera control method and mobile terminal
CN111580566A (en) * 2020-05-25 2020-08-25 海信视像科技股份有限公司 Display device

Also Published As

Publication number Publication date
WO2020216002A1 (en) 2020-10-29
CN110049192B (en) 2021-08-13

Similar Documents

Publication Publication Date Title
CN110049192A (en) A kind of detection method and mobile terminal
CN107786817B (en) A kind of photographic method and mobile terminal
CN108427876A (en) A kind of fingerprint identification method and mobile terminal
CN108390964A (en) A kind of camera head protecting method and mobile terminal
CN107819907A (en) A kind of camera control method and mobile terminal
CN107731146A (en) Brightness adjusting method and related product
CN108111730A (en) A kind of camera module, control method and mobile terminal
CN108989668A (en) A kind of working method and mobile terminal of camera
CN109388304A (en) A kind of screenshotss method and terminal device
CN108989644A (en) A kind of camera control method and terminal
CN109005262A (en) A kind of camera control method and terminal
CN110213414A (en) A kind of drive control method, terminal and computer readable storage medium
CN108173993A (en) A kind of camera module, control method and mobile terminal
CN109388193A (en) A kind of acquisition methods and electronic equipment of flexible display screen spread length
CN109981009A (en) A kind of control method and mobile terminal of stepper motor
CN108319421A (en) A kind of display triggering method and mobile terminal
CN107888728A (en) A kind of mobile terminal and the image pickup method based on the mobile terminal
CN109639866A (en) A kind of display methods and terminal
CN110113449A (en) A kind of terminal device and device bounce back method
CN109145731A (en) A kind of fingerprint identification method, device and mobile terminal
CN109523253A (en) A kind of method of payment and device
CN109033913A (en) A kind of recognition methods of identification code and mobile terminal
CN109474784A (en) A kind of preview image processing method and terminal device
CN109192153A (en) A kind of terminal and terminal control method
CN108536349A (en) A kind of icon management method and mobile terminal

Legal Events

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