CN111367360A - Control method and device of functional module and electronic equipment - Google Patents

Control method and device of functional module and electronic equipment Download PDF

Info

Publication number
CN111367360A
CN111367360A CN202010128058.XA CN202010128058A CN111367360A CN 111367360 A CN111367360 A CN 111367360A CN 202010128058 A CN202010128058 A CN 202010128058A CN 111367360 A CN111367360 A CN 111367360A
Authority
CN
China
Prior art keywords
functional module
preset position
module
electronic equipment
electronic device
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.)
Pending
Application number
CN202010128058.XA
Other languages
Chinese (zh)
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 CN202010128058.XA priority Critical patent/CN111367360A/en
Publication of CN111367360A publication Critical patent/CN111367360A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G06F1/1686Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being an integrated camera
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the invention discloses a control method and a control device of a functional module and electronic equipment, which are applied to the electronic equipment with the functional module, wherein the functional module can extend out of the electronic equipment or retract into the electronic equipment from an opening of the electronic equipment, and the method comprises the following steps: the electronic equipment comprises a functional module, an electronic equipment, a first preset position and a second preset position, wherein the functional module is located outside the electronic equipment and is in the second preset position after rotation, the functional module retracts to the first preset position, the second preset position is that the functional module is located outside an opening and can rotate relative to the electronic equipment, and the first preset position is that the functional module is partially located in the opening. According to the control method and device for the functional module and the electronic equipment, the functional module can be controlled to retract from the second preset position to the first preset position, so that the extending distance of the rotating assembly is shortened, and the problem that the functional module cannot rotate or cannot stretch in a specific scene is avoided.

Description

Control method and device of functional module and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for controlling a function module, and an electronic device.
Background
When a user uses the electronic equipment provided with the telescopic rotatable camera module to take a picture, the electronic equipment can extend the camera module (comprising a camera and a rotating component) out of the electronic equipment. In order to receive camera rotation instruction, can drive the camera by the rotating component in the module of making a video recording and rotate to appointed position. The camera module needs to be lifted out of the electronic device, and the rotating assembly needs to be exposed out of the electronic device, so that the camera can be driven to rotate by the rotating assembly.
After the camera module stretches out, if electronic equipment receives great external force and collides (if falls to the ground), under the effect of leverage, the rotating assembly that is located the electronic equipment outside will cause great destruction, lead to the unable rotatory or unable flexible scheduling problem of camera module.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for controlling a functional module and electronic equipment, so as to effectively control the functional module and avoid the problem that the functional module cannot rotate or stretch due to the damage of a rotating assembly in a specific scene.
To solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a method for controlling a function module, which is applied to an electronic device having a function module, where the function module can extend out of the electronic device from an opening of the electronic device or retract into the electronic device, and the method includes: the electronic equipment comprises a functional module, an electronic equipment, a first preset position and a second preset position, wherein the functional module is located outside the electronic equipment and is in the second preset position after rotation, the functional module retracts to the first preset position, the second preset position is that the functional module is located outside an opening and can rotate relative to the electronic equipment, and the first preset position is that the functional module is partially located in the opening.
Optionally, under the condition that the functional module is located outside the electronic device and is in the second preset position after rotating, retracting the functional module to the first preset position, the method further includes:
receiving a first input to retract the function module;
and responding to the first input, retracting the functional module to a third preset position in the opening, wherein the distance from the third preset position to the opening is greater than the distance from the first preset position to the opening.
Optionally, after the retracting the functional module to the first preset position, the method further includes:
receiving a second input for switching the use direction of the functional module;
responding to the second input, extending the functional module at the first preset position to the second preset position, and rotating the functional module.
Optionally, the second preset position is a maximum stroke position of the functional module extending out.
Optionally, retracting the functional module to a first preset position under the condition that the functional module is located outside the electronic device and is in a second preset position after rotating, includes:
acquiring the acceleration of the electronic equipment under the condition that the functional module is positioned outside the electronic equipment and is in a second preset position after rotating;
and under the condition that the acceleration of the electronic equipment is greater than a preset value, retracting the functional module to the first preset position.
In a second aspect, an embodiment of the present invention provides a control apparatus for a functional module, where the apparatus includes: the first position moving module is used for retracting the function module to a first preset position under the condition that the function module is located outside the electronic equipment and is in a second preset position after rotation, wherein the second preset position is a position where the function module is located outside the opening and can rotate relative to the electronic equipment, and the first preset position is a position where the function module is partially located inside the opening.
Optionally, the apparatus further comprises:
the first receiving module is used for receiving a first input of the retracting functional module;
the first response module is used for responding to the first input and retracting the functional module to a third preset position in the opening, and the distance between the third preset position and the opening is greater than the distance between the first preset position and the opening.
Optionally, the apparatus further comprises:
the second receiving module is used for receiving a second input for switching the use direction of the functional module;
and the second response module is used for responding to the second input, extending the functional module in the first preset position to the second preset position and rotating the functional module.
Optionally, the second preset position is a maximum stroke position of the functional module extending out.
Optionally, the first position moving module is configured to:
acquiring the acceleration of the electronic equipment under the condition that the functional module is positioned outside the electronic equipment and is in a second preset position after rotating;
and under the condition that the acceleration of the electronic equipment is greater than a preset value, retracting the functional module to the first preset position.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program that is stored in the memory and is executable on the processor, and when the computer program is executed by the processor, the steps of the control method for the functional module provided in the foregoing embodiment are implemented.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for controlling a functional module provided in the foregoing embodiment are implemented.
As can be seen from the above technical solutions provided by the embodiments of the present invention, in the case that the function module is located outside the electronic device and is in the second preset position after being rotated, the embodiment of the present invention retracts the function module to the first preset position, where the second preset position is a position where the function module is located outside the opening and can be rotated relative to the electronic device, and the first preset position is a position where part of the function module is located inside the opening. Like this, under the condition that the functional module is in the second default position, the rotating assembly part is whole exposes outside electronic equipment even, and the reach out distance of functional module can be dwindled to the present embodiment for the rotating assembly part is whole even to be withdrawn within electronic equipment, obtains the protection of electronic equipment shell, when receiving external force impact, can reduce the effect of leverage, reduces the degree of destruction of rotating assembly, avoids the functional module to take place unable rotation or unable flexible problem.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a method for controlling a functional module according to an embodiment of the present invention;
FIG. 2 is a schematic view of a camera module;
fig. 3 is a schematic diagram illustrating a control method of a functional module according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating another embodiment of a method for controlling a function module according to the present invention;
FIG. 5 is a schematic diagram illustrating another method for controlling a functional module according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating another method for controlling a function module according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating a control method for a functional module according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of a control device of a functional module according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a control method and device of a functional module and electronic equipment.
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
As shown in fig. 1, an embodiment of the present invention provides a method for controlling a function module, where an execution main body of the method may be an electronic device, where the electronic device may be configured with a telescopic rotatable function module, the function module may extend out of the electronic device from an opening of the electronic device or retract into the electronic device, the function module may include a function component and a rotation component, the function module may be a camera module, an audio playing module, and the like, and the function module is the camera module, and the camera module may include a camera (i.e., a function component) and a rotation component, the electronic device may be a device such as a personal computer, and may also be a mobile electronic device such as a mobile phone and a tablet computer, and the electronic device may be an electronic device used by a user. The method may specifically comprise the steps of:
in S102, the function module is retracted to the first preset position when the function module is located outside the electronic device and is rotated to the second preset position.
The second preset position can be a position where the functional module is located outside the opening and can rotate relative to the electronic device, and the first preset position can be a position where the functional module is partially located inside the opening.
At present, use the function module as the camera module as an example, in order to receive camera rotation instruction, can drive the camera to rotate to the assigned position by the rotating assembly in the camera module, the camera module needs whole or part to expose outside electronic equipment's opening (the lift-out distance of camera module is more promptly), just can drive the camera rotation by rotating assembly. After the camera module stretches out, if electronic equipment receives great external force and collides (if falls to the ground), under the effect of leverage, the rotating assembly that is located the electronic equipment outside will cause great destruction, lead to the unable rotatory or unable flexible scheduling problem of camera module.
Therefore, in order to solve the above problem, whether the camera module of the electronic device is located outside the opening of the electronic device and is in the second preset position after being rotated can be detected. For example, as shown in fig. 2, the camera module may include a camera and a rotating component, wherein the height of the camera module may be 18mm, the height of the camera may be 12mm, the height of the rotating component may be 6mm, and the rotating component may drive the camera to rotate within a preset rotation range. Whether can accord with the condition of the camera rotation instruction that electronic equipment received according to the shooting direction of camera in the module of making a video recording, confirm to make a video recording the module and be in the state after the rotation, after confirming that the module of making a video recording is in the state after the rotation, can judge whether the module of making a video recording is in the second preset position according to the relative distance between nodical A between camera and the rotating assembly and the opening of electronic equipment. For example, if the relative distance between the point a and the opening of the electronic device is 6mm, that is, the rotating assembly extends out of the electronic device, it may be determined that the camera module is located at the second preset position, or if the relative distance between the point a and the opening of the electronic device is within the range, it may also be determined that the camera module is located at the second preset position, assuming that the second preset distance is 3mm to 6 mm.
The method for detecting whether the functional module is located at the second preset position is an optional and realizable detection method, and in an actual application scenario, multiple detection methods may be provided, which is not specifically limited in the embodiment of the present invention.
Under the condition that it is in the second default position to detect the module of making a video recording (being the function module), can retract the module of making a video recording to first default position. For example, as shown in fig. 3, when the camera module is located at the second preset position, the relative distance d2 between the top end of the rotating component and the opening of the electronic device may be 6mm (i.e. the relative distance between the intersection point a between the camera and the rotating component and the opening of the electronic device is 6mm), and at this time, the camera module may be retracted to the first preset position, i.e. the relative distance d1 between the intersection point a and the opening of the electronic device is reduced to a preset distance (e.g. 3mm, etc.). Like this, be in the second and predetermine under the condition of position at the module of making a video recording, the rotating assembly part is whole exposes even outside electronic equipment, and the reach out distance of the module of making a video recording can be reduced to this embodiment for within the rotating assembly part is whole retracts electronic equipment even, obtains the protection of electronic equipment shell, when receiving external force impact, can reduce the effect of leverage, reduce the destruction degree of rotating assembly, avoid the module of making a video recording to take place unable rotation or unable flexible problem.
The embodiment of the invention provides a control method of a functional module, which is characterized in that the functional module is retracted to a first preset position under the condition that the functional module is positioned outside electronic equipment and is positioned at a second preset position after being rotated, wherein the second preset position is a position where the functional module is positioned outside an opening and can rotate relative to the electronic equipment, and the first preset position is a position where part of the functional module is positioned in the opening. Like this, under the condition that the functional module is in the second default position, the rotating assembly part is whole exposes outside electronic equipment even, and the reach out distance of functional module can be dwindled to the present embodiment for the rotating assembly part is whole even to be withdrawn within electronic equipment, obtains the protection of electronic equipment shell, when receiving external force impact, can reduce the effect of leverage, reduces the degree of destruction of rotating assembly, avoids the functional module to take place unable rotation or unable flexible problem.
Example two
As shown in fig. 4, an embodiment of the present invention provides a method for controlling a function module, where an execution main body of the method may be an electronic device, where the electronic device may be configured with a telescopic rotatable function module, the function module may extend out of the electronic device from an opening of the electronic device or retract into the electronic device, the function module may include a function component and a rotation component, the function module may be a camera module, an audio playing module, and the like, the camera module may include a camera (i.e., a function component) and a rotation component, the electronic device may be a device such as a personal computer, or a mobile electronic device such as a mobile phone and a tablet computer, and the electronic device may be an electronic device used by a user. The method may specifically comprise the steps of:
in S402, the function module is retracted to the first preset position when the function module is located outside the electronic device and is rotated to the second preset position.
For the specific processing procedure of S402, reference may be made to relevant contents in S102 in the first embodiment, which is not described herein again.
In S404, a first input of the retract function module is received.
In implementation, the first input may be input by a user in the electronic device, and the retracting instruction for the functional module, for example, the functional module is taken as a camera shooting module, the user may open a camera application in the electronic device, and start a self-shooting mode, at this time, the electronic device may start the functional module, that is, the electronic device may drive the camera shooting module to extend out of the electronic device from an opening of the electronic device, and rotate to a position where a self-shooting requirement of the user may be met, that is, the camera may be located at a second preset position, and the electronic device may retract the camera shooting module to the first preset position when detecting that the camera shooting module is located at the second preset position after rotating, so as to allow the user to shoot.
At this moment, in order to avoid the destruction that external force caused to the rotating assembly, and the unable rotation of function module or the unable flexible problem that arouses, can provide the function of regulation function module position for the user, can carry out the first input of position control to the function module in order to receive the user.
In S406, in response to the first input, the functional module is retracted to a third predetermined position within the opening. The center or the gravity center or the preset position mark of the functional module can be used as a reference point of the functional module, and the distance between the functional module and the opening is calculated according to the reference point. The different predetermined positions may be distances between the functional modules and the openings.
Wherein, the distance from the third preset position to the opening may be greater than the distance from the first preset position to the opening.
In implementation, in order to avoid the problem that the functional module cannot rotate or cannot stretch due to the damage to the rotating component caused by the external force in a specific scene, the rotating component of the control functional module may retract into the opening of the electronic device (i.e., the control functional module retracts into the third preset position in the opening) after receiving the first input.
For example, as shown in fig. 5, taking the functional module as the camera module as an example, when it is detected that the camera module is located at the second preset position after being rotated, the relative distance between the top end of the rotating component and the opening of the electronic device may be 6mm, and at this time, the camera module may be controlled to retract to the first preset position (for example, the position of the opening at a1 point in fig. 5), that is, the relative distance between the intersection point a and the opening of the electronic device may be controlled to be 0 mm. At this time, the user may adjust the position of the function module by dragging the sliding button in the electronic device, that is, the electronic device may continue to retract the function module to a third preset position (e.g., a position where the point a2 is located at the opening in fig. 5) in the opening, which corresponds to the first input, according to the first input of the user.
The embodiment of the invention provides a control method of a functional module, which is characterized in that the functional module is retracted to a first preset position under the condition that the functional module is positioned outside electronic equipment and is positioned at a second preset position after being rotated, wherein the second preset position is a position where the functional module is positioned outside an opening and can rotate relative to the electronic equipment, and the first preset position is a position where part of the functional module is positioned in the opening. Like this, under the condition that the functional module is in the second default position, the rotating assembly part is whole exposes outside electronic equipment even, and the reach out distance of functional module can be dwindled to the present embodiment for the rotating assembly part is whole even to be withdrawn within electronic equipment, obtains the protection of electronic equipment shell, when receiving external force impact, can reduce the effect of leverage, reduces the degree of destruction of rotating assembly, avoids the functional module to take place unable rotation or unable flexible problem.
EXAMPLE III
As shown in fig. 6, an embodiment of the present invention provides a method for controlling a function module, where an execution main body of the method may be an electronic device, where the electronic device may be configured with a telescopic rotatable function module, the function module may extend out of the electronic device from an opening of the electronic device or retract into the electronic device, the function module may include a function component and a rotation component, the function module may be a camera module, an audio playing module, and the like, the camera module may include a camera (i.e., a function component) and a rotation component, the electronic device may be a device such as a personal computer, or a mobile electronic device such as a mobile phone and a tablet computer, and the electronic device may be an electronic device used by a user. The method may specifically comprise the steps of:
in S602, the function module is retracted to the first preset position when the function module is located outside the electronic device and is rotated to the second preset position.
For the specific processing procedure of the above S602, reference may be made to relevant contents in S102 in the above first embodiment, which is not described herein again.
In S604, a second input for switching the direction of the functional module is received.
In an implementation, taking the functional module as an image capturing module as an example, the second input may be a switching input of a shooting direction, for example, the second input may be a switching input of switching a shooting mode of the camera from a self-timer shooting mode to a post-shooting mode.
In S606, in response to the second input, the function module located at the first preset position is extended to the second preset position, and the function module is rotated.
The second preset position can be the maximum stroke position of the functional module extending out.
In an implementation, in the case of receiving the second input, the function module in the first preset position may be extended to a preset maximum stroke position (i.e. the second preset position) so as to rotate the function module in the maximum stroke position.
For example, taking the functional module as a camera module as an example, as shown in fig. 2, the height of the camera in the camera module may be 12mm, and the height of the rotating component may be 6mm, assuming that the maximum stroke position (i.e. the second preset position) is a position 18mm away from the opening, under the condition of receiving the second input for switching the use direction of the functional module, the camera module in the first preset position may be extended to a position 18mm away from the opening, that is, the camera module is extended out of the opening of the electronic device, so that the camera module rotates at the maximum stroke position.
In S608, whether the functional module is located at the second predetermined position is detected.
In an implementation, after the rotation of the functional module is finished, whether the functional module is located at the second preset position may be detected, and if it is detected that the functional module is located at the second preset position, S602 may be continuously performed.
The embodiment of the invention provides a control method of a functional module, which is characterized in that the functional module is retracted to a first preset position under the condition that the functional module is positioned outside electronic equipment and is positioned at a second preset position after being rotated, wherein the second preset position is a position where the functional module is positioned outside an opening and can rotate relative to the electronic equipment, and the first preset position is a position where part of the functional module is positioned in the opening. Like this, under the condition that the functional module is in the second default position, the rotating assembly part is whole exposes outside electronic equipment even, and the reach out distance of functional module can be dwindled to the present embodiment for the rotating assembly part is whole even to be withdrawn within electronic equipment, obtains the protection of electronic equipment shell, when receiving external force impact, can reduce the effect of leverage, reduces the degree of destruction of rotating assembly, avoids the functional module to take place unable rotation or unable flexible problem.
Example four
As shown in fig. 7, an embodiment of the present invention provides a method for controlling a function module, where an execution main body of the method may be an electronic device, where the electronic device may be configured with a telescopic rotatable function module, the function module may extend out of the electronic device from an opening of the electronic device or retract into the electronic device, the function module may include a function component and a rotation component, the function module may be a camera module, an audio playing module, and the like, the camera module may include a camera (i.e., a function component) and a rotation component, the electronic device may be a device such as a personal computer, or a mobile electronic device such as a mobile phone and a tablet computer, and the electronic device may be an electronic device used by a user. The method may specifically comprise the steps of:
in S702, the acceleration of the electronic device is obtained when the functional module is located outside the electronic device and is at a second preset position after rotation.
In implementation, the acceleration of the electronic device may be acquired based on a preset sensor configured in the electronic device. For example, the acceleration of the electronic device may be acquired based on an acceleration sensor configured in the electronic device.
In S704, when the acceleration of the electronic device is greater than the preset value, the functional module is retracted to a first preset position.
In implementation, if it is detected that the electronic device is in a weightless state (that is, the acceleration of the electronic device is greater than a preset value), it indicates that the electronic device may fall, and if the function module is still in the second preset position, a large impact force generated by the fall may cause a large damage to the rotation component (and the function component), so that the function module may be controlled to retract to the first preset position when the acceleration of the electronic device is detected to be greater than the preset value.
In addition, the functional module can be retracted to a first preset position based on a preset moving speed so as to protect the functional module from being damaged.
The embodiment of the invention provides a control method of a functional module, which is characterized in that the functional module is retracted to a first preset position under the condition that the functional module is positioned outside electronic equipment and is positioned at a second preset position after being rotated, wherein the second preset position is a position where the functional module is positioned outside an opening and can rotate relative to the electronic equipment, and the first preset position is a position where part of the functional module is positioned in the opening. Like this, under the condition that the functional module is in the second default position, the rotating assembly part is whole exposes outside electronic equipment even, and the reach out distance of functional module can be dwindled to the present embodiment for the rotating assembly part is whole even to be withdrawn within electronic equipment, obtains the protection of electronic equipment shell, when receiving external force impact, can reduce the effect of leverage, reduces the degree of destruction of rotating assembly, avoids the functional module to take place unable rotation or unable flexible problem.
Practice five
Based on the same idea, the above method for controlling a function module according to the embodiment of the present invention further provides a control device for a function module, as shown in fig. 8.
The control device of the functional module comprises: the first position moving module 801.
The first position moving module 801 is configured to retract the function module to a first preset position when the function module is located outside the electronic device and is in a second preset position after rotation, where the second preset position is a position where the function module is located outside the opening and can rotate relative to the electronic device, and the first preset position is a position where the function module is partially located inside the opening.
In an embodiment of the present invention, the apparatus further includes: the first receiving module is used for receiving a first input of the retracting functional module; the first response module is used for responding to the first input and retracting the functional module to a third preset position in the opening, and the distance between the third preset position and the opening is greater than the distance between the first preset position and the opening.
In an embodiment of the present invention, the apparatus further includes: the second receiving module is used for receiving a second input for switching the use direction of the functional module; and the second response module is used for responding to the second input, extending the functional module in the first preset position to the second preset position and rotating the functional module.
In an embodiment of the present invention, the second preset position is a maximum stroke position of the functional module extending out.
In this embodiment of the present invention, the first position moving module 801 is configured to: acquiring the acceleration of the electronic equipment under the condition that the functional module is positioned outside the electronic equipment and is in a second preset position after rotating; and under the condition that the acceleration of the electronic equipment is greater than a preset value, retracting the functional module to the first preset position.
The control device of the functional module according to the embodiment of the present invention may further perform the method performed by the electronic device in fig. 1-7, and implement the functions of the electronic device in the embodiments shown in fig. 1-7, which are not described herein again.
The embodiment of the invention provides a control device of a functional module, which retracts the functional module to a first preset position under the condition that the functional module is positioned outside electronic equipment and is positioned at a second preset position after rotating, wherein the second preset position is a position where the functional module is positioned outside an opening and can rotate relative to the electronic equipment, and the first preset position is a position where part of the functional module is positioned in the opening. Like this, under the condition that the functional module is in the second default position, the rotating assembly part is whole exposes outside electronic equipment even, and the reach out distance of functional module can be dwindled to the present embodiment for the rotating assembly part is whole even to be withdrawn within electronic equipment, obtains the protection of electronic equipment shell, when receiving external force impact, can reduce the effect of leverage, reduces the degree of destruction of rotating assembly, avoids the functional module to take place unable rotation or unable flexible problem.
EXAMPLE six
Figure 9 is a schematic diagram of a hardware configuration of an electronic device implementing various embodiments of the invention,
the electronic device 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a processor 910, and a power supply 911. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 9 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 910 is configured to retract the function module to a first preset position when the function module is located outside the electronic device and is in a second preset position after being rotated, where the second preset position is a position where the function module is located outside the opening and can be rotated relative to the electronic device, and the first preset position is a position where the part of the function module is located inside the opening.
In addition, the processor 910 is further configured to receive a first input of retracting the function module; and responding to the first input, retracting the functional module to a third preset position in the opening, wherein the distance from the third preset position to the opening is greater than the distance from the first preset position to the opening.
In addition, the processor 910 is further configured to receive a second input for switching the use direction of the functional module; responding to the second input, extending the functional module at the first preset position to the second preset position, and rotating the functional module.
In addition, the second preset position is a maximum stroke position of the functional module extending out.
In addition, the processor 910 is further configured to obtain an acceleration of the electronic device when the functional module is located outside the electronic device and is located at a second preset position after being rotated; and under the condition that the acceleration of the electronic equipment is greater than a preset value, retracting the functional module to the first preset position.
The embodiment of the invention provides electronic equipment, wherein under the condition that a function module is positioned outside the electronic equipment and is in a second preset position after being rotated, the function module is retracted to a first preset position, wherein the second preset position is a position where the function module is positioned outside an opening and can rotate relative to the electronic equipment, and the first preset position is a position where part of the function module is positioned in the opening. Like this, under the condition that the functional module is in the second default position, the rotating assembly part is whole exposes outside electronic equipment even, and the reach out distance of functional module can be dwindled to the present embodiment for the rotating assembly part is whole even to be withdrawn within electronic equipment, obtains the protection of electronic equipment shell, when receiving external force impact, can reduce the effect of leverage, reduces the degree of destruction of rotating assembly, avoids the functional module to take place unable rotation or unable flexible problem.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 901 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 910; in addition, the uplink data is transmitted to the base station. Generally, the radio frequency unit 901 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. In addition, the radio frequency unit 901 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 902, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 903 may convert audio data received by the radio frequency unit 901 or the network module 902 or stored in the memory 909 into an audio signal and output as sound. Also, the audio output unit 903 may provide audio output related to a specific function performed by the electronic device 900 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 903 includes a speaker, a buzzer, a receiver, and the like.
The input unit 904 is used to receive audio or video signals. The input Unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics processor 9041 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 906. The image frames processed by the graphic processor 9041 may be stored in the memory 909 (or other storage medium) or transmitted via the radio frequency unit 901 or the network module 902. The microphone 9042 can receive sounds and can process such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 901 in case of the phone call mode.
The electronic device 900 also includes at least one sensor 905, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 9061 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 9061 and/or the backlight when the electronic device 900 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 905 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described in detail herein.
The display unit 906 is used to display information input by the user or information provided to the user. The Display unit 906 may include a Display panel 9061, and the Display panel 9061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 907 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 907 includes a touch panel 9071 and other input devices 9072. The touch panel 9071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 9071 (e.g., operations by a user on or near the touch panel 9071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 9071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 910, receives a command from the processor 910, and executes the command. In addition, the touch panel 9071 may be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 907 may include other input devices 9072 in addition to the touch panel 9071. Specifically, the other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control key, a switch key, and the like), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 9071 may be overlaid on the display panel 9061, and when the touch panel 9071 detects a touch operation on or near the touch panel 9071, the touch panel is transmitted to the processor 910 to determine the type of the touch event, and then the processor 910 provides a corresponding visual output on the display panel 9061 according to the type of the touch event. Although in fig. 9, the touch panel 9071 and the display panel 9061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 9071 and the display panel 9061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 908 is an interface for connecting an external device to the electronic apparatus 900. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 908 may be used to receive input from external devices (e.g., data information, power, etc.) and transmit the received input to one or more elements within the electronic device 900 or may be used to transmit data between the electronic device 900 and external devices.
The memory 909 may be used to store software programs as well as various data. The memory 909 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 909 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 910 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 909 and calling data stored in the memory 909, thereby performing overall monitoring of the electronic device. Processor 910 may include one or more processing units; preferably, the processor 910 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 910.
The electronic device 900 may further include a power supply 911 (e.g., a battery) for supplying power to various components, and preferably, the power supply 911 may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 910, a memory 909, and a computer program that is stored in the memory 909 and can be run on the processor 910, and when the computer program is executed by the processor 910, the computer program implements each process of the above embodiment of the method for controlling a functional module, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
EXAMPLE seven
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the control method embodiment of the functional module, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here. The computer-readable storage medium may be a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The embodiment of the invention provides a computer readable storage medium, which retracts a function module to a first preset position under the condition that the function module is located outside an electronic device and is located at a second preset position after being rotated, wherein the second preset position is a position where the function module is located outside an opening and can be rotated relative to the electronic device, and the first preset position is a position where a part of the function module is located inside the opening. Like this, under the condition that the functional module is in the second default position, the rotating assembly part is whole exposes outside electronic equipment even, and the reach out distance of functional module can be dwindled to the present embodiment for the rotating assembly part is whole even to be withdrawn within electronic equipment, obtains the protection of electronic equipment shell, when receiving external force impact, can reduce the effect of leverage, reduces the degree of destruction of rotating assembly, avoids the functional module to take place unable rotation or unable flexible problem.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an example of the present invention, and is not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (12)

1. A control method of a functional module applied to an electronic device having a functional module, wherein the functional module can extend out of the electronic device from an opening of the electronic device or retract into the electronic device, the method comprising:
the electronic equipment comprises a functional module, an electronic equipment, a first preset position and a second preset position, wherein the functional module is located outside the electronic equipment and is in the second preset position after rotation, the functional module retracts to the first preset position, the second preset position is that the functional module is located outside an opening and can rotate relative to the electronic equipment, and the first preset position is that the functional module is partially located in the opening.
2. The method of claim 1, wherein after retracting the function module to the first preset position when the function module is located outside the electronic device and rotated to the second preset position, the method further comprises:
receiving a first input to retract the function module;
and responding to the first input, retracting the functional module to a third preset position in the opening, wherein the distance from the third preset position to the opening is greater than the distance from the first preset position to the opening.
3. The method of claim 1, further comprising, after said retracting the functional module to a first preset position:
receiving a second input for switching the use direction of the functional module;
responding to the second input, extending the functional module at the first preset position to the second preset position, and rotating the functional module.
4. The method of claim 3, wherein the second predetermined position is a maximum travel position of the functional module extension.
5. The method of claim 1, wherein retracting the function module to a first preset position when the function module is located outside the electronic device and rotated to a second preset position comprises:
acquiring the acceleration of the electronic equipment under the condition that the functional module is positioned outside the electronic equipment and is in a second preset position after rotating;
and under the condition that the acceleration of the electronic equipment is greater than a preset value, retracting the functional module to the first preset position.
6. A control device for a functional module, the device comprising:
the first position moving module is used for retracting the function module to a first preset position under the condition that the function module is located outside the electronic equipment and is in a second preset position after rotation, wherein the second preset position is a position where the function module is located outside the opening and can rotate relative to the electronic equipment, and the first preset position is a position where the function module is partially located inside the opening.
7. The apparatus of claim 6, further comprising:
the first receiving module is used for receiving a first input of the retracting functional module;
the first response module is used for responding to the first input and retracting a third preset position in the opening of the functional module, and the distance between the third preset position and the opening is greater than the distance between the first preset position and the opening.
8. The apparatus of claim 6, further comprising:
the second receiving module is used for receiving a second input for switching the use direction of the functional module;
and the second response module is used for responding to the second input, extending the functional module in the first preset position to the second preset position and rotating the functional module.
9. The device of claim 8, wherein the second predetermined position is a maximum travel position of the functional module extension.
10. The apparatus of claim 6, wherein the first position moving module is configured to:
acquiring the acceleration of the electronic equipment under the condition that the functional module is positioned outside the electronic equipment and is in a second preset position after rotating;
and under the condition that the acceleration of the electronic equipment is greater than a preset value, retracting the functional module to the first preset position.
11. An electronic device, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method of controlling a functional module according to any of claims 1 to 5.
12. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements:
the steps of a method of controlling a function module of any of claims 1 to 5.
CN202010128058.XA 2020-02-28 2020-02-28 Control method and device of functional module and electronic equipment Pending CN111367360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010128058.XA CN111367360A (en) 2020-02-28 2020-02-28 Control method and device of functional module and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010128058.XA CN111367360A (en) 2020-02-28 2020-02-28 Control method and device of functional module and electronic equipment

Publications (1)

Publication Number Publication Date
CN111367360A true CN111367360A (en) 2020-07-03

Family

ID=71208276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010128058.XA Pending CN111367360A (en) 2020-02-28 2020-02-28 Control method and device of functional module and electronic equipment

Country Status (1)

Country Link
CN (1) CN111367360A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109672785A (en) * 2018-12-29 2019-04-23 维沃移动通信(杭州)有限公司 A kind of Pop-up camera Repossession method and mobile terminal
CN109862227A (en) * 2017-11-30 2019-06-07 广东欧珀移动通信有限公司 A kind of control method of camera, electronic equipment and readable storage medium storing program for executing
CN110035147A (en) * 2019-03-19 2019-07-19 华为技术有限公司 A kind of method and electronic equipment for protecting the movable part of electronic equipment
CN110113449A (en) * 2019-03-29 2019-08-09 维沃移动通信有限公司 A kind of terminal device and device bounce back method
CN110213414A (en) * 2019-05-31 2019-09-06 维沃移动通信(杭州)有限公司 A kind of drive control method, terminal and computer readable storage medium
CN110602277A (en) * 2019-08-22 2019-12-20 维沃移动通信(杭州)有限公司 Electronic device and control method thereof
CN210075384U (en) * 2019-07-12 2020-02-14 深圳传音控股股份有限公司 Energy storage motion device, camera telescopic machanism and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109862227A (en) * 2017-11-30 2019-06-07 广东欧珀移动通信有限公司 A kind of control method of camera, electronic equipment and readable storage medium storing program for executing
CN109672785A (en) * 2018-12-29 2019-04-23 维沃移动通信(杭州)有限公司 A kind of Pop-up camera Repossession method and mobile terminal
CN110035147A (en) * 2019-03-19 2019-07-19 华为技术有限公司 A kind of method and electronic equipment for protecting the movable part of electronic equipment
CN110113449A (en) * 2019-03-29 2019-08-09 维沃移动通信有限公司 A kind of terminal device and device bounce back method
CN110213414A (en) * 2019-05-31 2019-09-06 维沃移动通信(杭州)有限公司 A kind of drive control method, terminal and computer readable storage medium
CN210075384U (en) * 2019-07-12 2020-02-14 深圳传音控股股份有限公司 Energy storage motion device, camera telescopic machanism and mobile terminal
CN110602277A (en) * 2019-08-22 2019-12-20 维沃移动通信(杭州)有限公司 Electronic device and control method thereof

Similar Documents

Publication Publication Date Title
CN108390964B (en) Camera protection method and mobile terminal
CN108459797B (en) Control method of folding screen and mobile terminal
CN110174993B (en) Display control method, terminal equipment and computer readable storage medium
CN109788137B (en) Falling protection method and terminal equipment
CN109348019B (en) Display method and device
WO2020253295A1 (en) Control method and apparatus, and terminal device
CN108108113B (en) Webpage switching method and device
CN110838748A (en) Electronic equipment and charging control system thereof
CN110113449B (en) Terminal equipment and device retraction method
CN109600468B (en) Control method of foldable terminal and foldable terminal
US20220360709A1 (en) Mobile terminal, shooting mode detection method, and storage medium
CN111240545A (en) Application switching method and electronic equipment
CN111443815A (en) Vibration reminding method and electronic equipment
CN111083260A (en) Electronic device, control method and control device thereof, and computer-readable storage medium
CN107861663A (en) Dock display methods and device under a kind of screen comprehensively
CN111510623B (en) Shooting method and electronic equipment
CN110784575A (en) Electronic equipment and shooting method
CN110769154B (en) Shooting method and electronic equipment
CN111124206B (en) Position adjusting method and electronic equipment
CN109683764B (en) Icon management method and terminal
CN111142618A (en) Method for detecting folding angle and electronic equipment
CN108696642B (en) Method for arranging icons and mobile terminal
CN111131930B (en) Device resource control method, first electronic device, and computer-readable storage medium
CN111026263B (en) Audio playing method and electronic equipment
CN111246105B (en) Photographing method, electronic device, and computer-readable storage medium

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