CN108924286B - Electronic device and control method and device of sliding assembly of electronic device - Google Patents

Electronic device and control method and device of sliding assembly of electronic device Download PDF

Info

Publication number
CN108924286B
CN108924286B CN201810590009.0A CN201810590009A CN108924286B CN 108924286 B CN108924286 B CN 108924286B CN 201810590009 A CN201810590009 A CN 201810590009A CN 108924286 B CN108924286 B CN 108924286B
Authority
CN
China
Prior art keywords
sliding
assembly
scene information
electronic device
control strategy
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.)
Expired - Fee Related
Application number
CN201810590009.0A
Other languages
Chinese (zh)
Other versions
CN108924286A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810590009.0A priority Critical patent/CN108924286B/en
Publication of CN108924286A publication Critical patent/CN108924286A/en
Application granted granted Critical
Publication of CN108924286B publication Critical patent/CN108924286B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/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
    • 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/0266Details of the structure or mounting of specific components for a display module assembly
    • 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/0266Details of the structure or mounting of specific components for a display module assembly
    • H04M1/0268Details of the structure or mounting of specific components for a display module assembly including a flexible display panel
    • 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

Abstract

The invention discloses an electronic device and a control method and a control device of a sliding assembly of the electronic device, wherein the method comprises the following steps: detecting scene information of an electronic device; judging a sliding control strategy corresponding to the scene information; the driven component is controlled according to a slip control strategy. Therefore, the influence of the related components on the screen occupation ratio is reduced through the sliding component, the control of the driving component for controlling the sliding component can be realized based on the automatic identification of the scene information, and the personalized control method of the sliding component is provided. And when the control is carried out based on the scene information, the sliding assembly can be controlled to be started at different speeds based on different scene information, and the personalized requirements of the user can be met through fine control of the driving assembly.

Description

Electronic device and control method and device of sliding assembly of electronic device
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a method and an apparatus for controlling sliding of a sliding component, and an electronic apparatus.
Background
With the popularization of portable electronic devices such as smartphones, the optimization of the aesthetics and functionality of the electronic devices is also becoming a great trend, for example, the increase of the screen occupation ratio of the electronic devices is a popular trend.
In the related art, a front camera or other devices are mounted in a front panel of an electronic device to provide a user with a front camera shooting service, and therefore, a contradiction between occupation of a mounting space of the front camera on the front panel and improvement of a screen occupation ratio is urgently needed to be solved.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
To this end, an embodiment of a first aspect of the present invention provides a method for controlling a sliding assembly in an electronic device, where the electronic device includes a body, and a driving assembly, the sliding assembly is configured to slide between a first position housed in the body and a second position exposed from the body, and the driving assembly is configured to drive the sliding assembly, and the method includes: detecting scene information of the electronic device; judging a sliding control strategy corresponding to the scene information; and controlling the driven assembly according to the sliding control strategy.
In order to achieve the above object, a second aspect of the present invention provides a control device for a sliding assembly in an electronic device, the electronic device including a body, the sliding assembly configured to slide between a first position housed in the body and a second position exposed from the body, and a driving assembly configured to drive the sliding assembly, the device including: the detection module is used for detecting scene information of the electronic device; the judging module is used for judging the sliding control strategy corresponding to the scene information; and the control module is used for controlling the driven component according to the sliding control strategy.
In order to achieve the above object, a third aspect of the present invention provides an electronic device, including a main body, a sliding component configured to slide between a first position housed in the main body and a second position exposed from the main body, and a driving component configured to drive the sliding component, the electronic device further including: the electronic device comprises a memory, a processor electrically connected with the sliding component and a computer program stored on the memory and capable of running on the processor, wherein when the processor executes the program, the method for controlling the sliding component in the electronic device is realized.
To achieve the above object, a fourth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for controlling a sliding component in an electronic device according to the foregoing method embodiment.
The technical scheme provided by the invention at least comprises the following beneficial effects:
detecting scene information of the electronic device, judging a sliding control strategy corresponding to the scene information, and controlling the driven component according to the sliding control strategy. Therefore, the influence of the related components on the screen occupation ratio is reduced through the sliding component, the control of the driving component for controlling the sliding component can be realized based on the automatic identification of the scene information, and the personalized control method of the sliding component is provided. And when the control is carried out based on the scene information, the sliding assembly can be controlled to be started at different speeds based on different scene information, and the personalized requirements of the user can be met through fine control of the driving assembly.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic view of an electronic device in a second position according to an embodiment of the present invention;
FIG. 2 is a schematic view of an electronic device in a first position according to an embodiment of the present invention;
FIG. 3 is a schematic view of an electronic device in a third position according to an embodiment of the present invention;
FIG. 4 is a schematic structural view of a detection assembly according to an embodiment of the present invention;
FIG. 5 is a usage scenario diagram of an electronic device according to an embodiment of the invention;
FIG. 6 is a diagram of another usage scenario of an electronic device according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the invention;
fig. 8 is a flowchart of a control method of a sliding assembly in an electronic device according to an embodiment of the present invention;
fig. 9 is a flowchart of a control method of a sliding assembly in an electronic device according to another embodiment of the present invention;
fig. 10 is a schematic structural diagram of a control device of a sliding assembly in an electronic device according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a control device of a sliding assembly in an electronic device according to another embodiment of the present invention;
fig. 12 is a schematic structural diagram of a control device of a sliding assembly in an electronic device according to yet another embodiment of the present invention.
Description of the main element symbols:
the electronic device 100, the body 10, the housing 12, the display component 14, the cover 142, the sliding slot 16, the groove 162, the sliding component 20, the bearing 22, the threaded hole 24, the rotary screw 26, the detection component 30, the magnetic field generating component 32, the hall element 34, the front camera 42, the earpiece 44, the driving component 50, the driving motor 52, the processor 60, the memory 70, the first position a, the second position B, and the third position C.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", and the like, indicate orientations and positional relationships based on those shown in the drawings, and are used only for convenience of description and simplicity of description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; may be mechanically connected, may be electrically connected or may be in communication with each other; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, "above" or "below" a first feature means that the first and second features are in direct contact, or that the first and second features are not in direct contact but are in contact with each other via another feature therebetween. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly under and obliquely below the second feature, or simply meaning that the first feature is at a lesser elevation than the second feature.
The following disclosure provides many different embodiments or examples for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Of course, they are merely examples and are not intended to limit the present invention. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples, such repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. In addition, the present invention provides examples of various specific processes and materials, but one of ordinary skill in the art may recognize applications of other processes and/or uses of other materials.
An electronic apparatus and a method and an apparatus for controlling a sliding assembly thereof according to an embodiment of the present invention are described below with reference to the accompanying drawings. In order to more clearly describe the control method of the sliding component in the electronic device according to the embodiment of the present invention, the electronic device according to the present invention is first described in the following.
Specifically, in order to reduce the influence of hardware equipment such as a front camera and the like installed on a front panel of an electronic device on the screen occupation ratio, the invention provides a sliding assembly, the sliding assembly controls the front camera and the like to slide out when needed and is accommodated in an electronic device body when not needed, and therefore, the front panel of the electronic device is not occupied when the functional service of the front camera and the like is not carried out.
Specifically, as shown in fig. 1 to 4, the electronic device 100 according to the embodiment of the present invention includes a body 10, a sliding assembly 20, and a driving assembly 50. The sliding member 20 is configured to slide between a first position a accommodated in the body 10 and a second position B exposed from the body 10. The driving assembly 50 is used for driving the sliding assembly 20 to slide between a first position where the sliding assembly is accommodated in the body and a second position where the sliding assembly is exposed out of the body.
Of course, in order to make the driving assembly 50 know that the driving sliding assembly 20 slides to the corresponding position, the electronic device necessarily further includes a detecting assembly 30 for detecting the current position of the sliding assembly 20, in the embodiment of the present invention, the detecting assembly 30 is used for detecting the position of the sliding assembly 20, the detecting assembly 30 includes a magnetic field generating element 32, a hall element 34 and a processor 60, the magnetic field generating element 32 and the hall element 34 are respectively fixed on the body 10 and the sliding assembly 20, and the processor 60 is used for receiving the detection signal value output by the hall element 34 and determining the current relative position of the sliding assembly 20 with respect to the body 10 according to the detection signal value.
It should be noted that "the magnetic field generating element 32 and the hall element 34 are fixed on the body 10 and the sliding assembly 20 respectively" herein includes two cases, that is, the magnetic field generating element 32 is fixed on the body 10, the hall element 34 is fixed on the sliding assembly 20, that is, the magnetic field generating element 32 is fixed on the sliding assembly 20, and that the hall element 34 is fixed on the body 10. Further, the magnetic field generating element 32 and the hall element 34 may be disposed to be opposed in the vertical direction or may be disposed to be opposed in the horizontal direction. That is, the specific positions of the magnetic field generating element 32 and the hall element 34 are not limited as long as the magnetic field generating element 32 and the hall element 34 can generate relative movement.
In some embodiments, the body 10 is formed with a slide slot 16, and the sliding assembly 20 is received in the slide slot 16 in the first position a. In this manner, the sliding assembly 20 may be caused to slide between the first position a and the second position B via the sliding channel 16.
Specifically, the body 10 includes a housing 12 and a display assembly 14, and the housing 12 and the display assembly 14 are combined to constitute an enclosed structure. The slide slot 16 opens into the housing 12 to allow the slide assembly 20 to slide back and out. It will be appreciated that the chute 16 may be open on either side of the housing 12. Preferably, the chute 16 opens at the top edge of the housing 12. Thus, the use habit of the user can be met.
The display assembly 14 includes a touch panel (not shown) and a cover 142. The touch panel includes a display module (not shown) and a touch layer (not shown) disposed on the display module. The display Module is, for example, a liquid crystal display Module (LCD Module, LCM), and of course, the display Module may also be a flexible display Module. The touch layer is used for receiving touch input of a user to generate a signal for controlling content displayed by the display module and a signal for controlling the sliding of the sliding component 20.
The material of the cover plate 142 may be made of a light-transmitting material such as glass, ceramic, or sapphire. Since the cover 142 is an input part of the electronic device 100, the cover 142 is often touched by a collision or a scratch. For example, when the user places the electronic device 100 in a pocket, the cover plate 142 may be scratched by a key in the pocket of the user and damaged. Therefore, the material of the cover plate 142 may be a material with a relatively high hardness, such as the above sapphire material. Or a hardened layer may be formed on the surface of the cover plate 142 to improve the scratch resistance of the cover plate 142.
The touch panel and the cover plate 142 are adhered and fixed together by, for example, optical Adhesive (OCA), and the optical Adhesive not only adheres and fixes the touch panel and the cover plate 142, but also can transmit light emitted by the touch panel.
To more clearly illustrate the function of the sliding assembly 20 according to the embodiment of the present invention, referring to fig. 5, in some embodiments, the electronic device 100 includes the front camera 42, the sliding assembly 20 includes the carrier 22, and the front camera 42 is disposed on the carrier 22. In this manner, the front camera 42 can slide with the slide assembly 20. Of course, the user may turn on the front camera 42 and turn off the front camera 42 as the trigger signal, that is, when the user turns on the front camera 42, the trigger sliding assembly 20 slides out, and when the user turns off the front camera 42, the trigger sliding assembly 20 slides back. Therefore, the user can use the front camera conveniently only by opening or closing the front camera according to the existing habit without performing other operations on the sliding assembly 20.
In addition to the front camera 42, other functional devices 40 may be carried on the carrier 22, such as light sensors, proximity sensors, and an earpiece 44, for example, as shown in fig. 1, for the functional devices 40. These functional devices 40 may be exposed from the body 10 to operate normally as the sliding assembly 20 slides out according to the user's input, or may be received in the body 10 as the sliding assembly 20 slides back according to the user's input. Therefore, through holes can be formed in the display assembly 14 as few as possible, which is beneficial to meeting the design requirement of the whole screen of the electronic device 100.
Specifically, when the light sensor is carried on the carrier 22, the light sensor may be disposed on the top of the carrier 22, that is, when the sliding assembly 20 is completely accommodated in the sliding slot 16, the light sensor may still be exposed from the top of the carrier 22, so as to sense light in real time.
Referring to fig. 6, when the proximity sensor and the receiver 44 are carried on the carrier 22, the user can take the call and hang up the call as the trigger signal, that is, when the user takes the call, the sliding assembly 20 is triggered to slide out, and when the user hangs up the call, the sliding assembly 20 is triggered to slide back. Therefore, the user only needs to answer or hang up the phone according to the existing habit without performing other operations on the sliding assembly 20, and the use of the user can be facilitated.
It will be appreciated that a plurality of functional devices 40 may be carried on the same carrier 22, or may be carried on a plurality of carriers. When a plurality of functional devices 40 are carried on the same carrier 22, the plurality of functional devices 40 may be arranged longitudinally, and the processor 60 may control whether the functional devices 40 disposed at the lower portion of the carrier 22 are exposed by controlling the distance by which the sliding assembly 20 slides out. When a plurality of functional devices 40 are carried on the same plurality of carriers 22, the processor 60 may select the functional device 40 to be exposed by controlling the sliding of one of the carriers 22.
Referring to fig. 7, in some embodiments, the sliding assembly 20 includes a threaded bore 24 disposed in a central portion of the carrier 22 and a rotating lead screw 26 engaged with the threaded bore 24. The chute 16 includes a recess 162 located opposite the threaded aperture 24 and at the bottom of the chute 16. Electronic device 100 includes a drive assembly 50 disposed in recess 162. The drive assembly 50 includes a drive motor 52 coupled to a processor 60 and an output shaft (not shown) coupled to the bottom of the rotary screw 26.
It is understood that the processor 60 may control the sliding of the slide assembly 20 by controlling the drive motor 52. When the user commands the sliding assembly 20 to slide from the first position a to the second position B, the processor 60 controls the driving motor 52 to rotate forward, so that the output shaft drives the rotating screw 26 to rotate in the threaded hole 24, and the sliding assembly 20 slides from the first position a to the second position B. When the user commands the sliding assembly 20 to slide from the second position B to the first position a, the processor 60 controls the driving motor 52 to rotate in reverse, so that the output shaft drives the rotating screw 26 to rotate in the threaded hole 24, and the sliding assembly 20 slides from the second position B to the first position a. It is to be noted that "from the first position a to the second position B" and "from the second position B to the first position a" herein refer to the direction of the sliding, and do not refer to the start point and the end point of the sliding.
The electronic device 100 of the embodiment of the present invention determines the current relative position of the slide assembly 20 using the hall element 34 and the magnetic field generating element 32, and can detect the state of the slide assembly 20 in real time when the functional device 40 such as a front camera is carried on the slide assembly 20, thereby determining the position of the functional device 40.
It is understood that the functional device 40 such as the front camera 42 needs to be exposed from the main body 10, otherwise it cannot operate normally. The electronic device 100 according to the embodiment of the present invention has the functional device 40 carried on the sliding assembly, so that the functional device 40 is accommodated in the main body 10 when the operation is not required, and is exposed from the main body 10 along with the sliding assembly 20 when the operation is required. In this way, it is not necessary to provide a through hole for exposing the functional device 40 such as the front camera 42 on the display module 14, so that the screen occupation ratio is increased, and the user experience is improved.
As described above, in the embodiment of the present invention, when it is detected that an application such as a camera is enabled, the driving assembly may slide out of the electronic device body to operate, and when it is detected that the application such as the camera is closed, the driving assembly may be accommodated in the electronic device body. The following describes a control method of the sliding assembly in the electronic device in detail:
fig. 8 is a flowchart of a control method of a sliding assembly in an electronic device according to an embodiment of the present invention, as shown in fig. 8, the method including the steps of:
step 101, detecting scene information of an electronic device.
The scene information includes light information, position information, sound information, and the like, and it should be understood that the scene information of the embodiment of the present invention may be detected by a GPS positioning system, a light sensor, a sound sensor, and the like in the electronic device.
It should be understood that in some possible application scenarios, the scene information of the electronic device is closely related to the user's needs for taking a picture, for example, in a scene such as a scenic spot, the user usually has a shooting reminder need, for example, in a scene where the light is detected to be dim, the user usually has a need for retracting the camera because the picture is not clear, and for example, in a situation where the surroundings are detected to be noisy, the user usually has a need for retracting the camera because the picture is difficult to take. Therefore, in the embodiment, by detecting the scene information of the electronic device, whether the photographing requirement exists is further determined.
And 102, judging a sliding control strategy corresponding to the scene information.
And 103, controlling the driven component according to the sliding control strategy.
It can be understood that a corresponding sliding control strategy is established in advance according to the scene information, so that after the corresponding sliding strategy is matched according to the detected scene information, the driving component is directly controlled according to the sliding strategy, wherein the sliding strategy includes but is not limited to a driving direction, a driving speed and the like of the driving component. Therefore, a user can control the corresponding driving assembly without manually operating a screen to open the corresponding camera application and the like, so that the sliding assembly is driven by the control of the driving assembly to slide the camera connected with the sliding assembly out of the electronic device body at a corresponding speed or be accommodated in the electronic device body.
It should be emphasized that, in order to avoid erroneous judgment, for example, when it is detected that the user is located in a scenic region, it is determined that there is a photographing requirement, so as to drive the sliding assembly to slide out to drive the camera to slide out, but when the user is located in the scenic region but is located in a dark place, the user usually has no photographing requirement, and therefore, the scene information in the embodiment includes a combination of a plurality of scene information, for example, the scene information includes both sound information and light information, and also includes position information.
In an embodiment of the present invention, in order to realize fine control of the sliding component, the sliding component may be further controlled to operate at different speeds based on the scene information, so as to meet different scene requirements.
Specifically, fig. 9 is a flowchart of a control method of a sliding assembly in an electronic device according to another embodiment of the present invention, and as shown in fig. 9, step 102 includes the following steps:
step 201, determining whether the scene information is a preset first scene information set or a preset second scene information set.
It should be understood that the first scene information set or the second scene information set is set to adapt to various environment conditions, and by using the first scene information set including a plurality of first scenes or the second scene information set including a plurality of second scenes, a plurality of different environments are adapted, and the photographing requirements of the user and the like are more easily recognized.
In step 202, if the first scene information set is determined, the sliding control strategy is determined to be a fast sliding control strategy.
And 203, if the second scene information set is judged, determining that the sliding control strategy is a common sliding control strategy.
Specifically, in order to realize fine control of the sliding component, a first scene information set and a second scene information set are preset, wherein a sliding control strategy corresponding to a first scene contained in the first scene information set is a fast sliding control strategy, that is, the first scene of the scene information in the first scene information corresponds to a requirement for fast sliding out of the camera for shooting (for example, when the current electronic device is located at a famous scenery spot and has relatively low noise, a user has a requirement for fast capturing at the moment), or a requirement for fast accommodating the camera in the electronic device body (for example, when the current electronic device detects that light is suddenly dark and detects that an obstacle is blocked, the camera has a requirement for fast accommodating the camera in the electronic device body at the moment in order to protect the camera), a sliding control strategy corresponding to a second scene contained in the second scene information set is a common sliding control strategy, therefore, the different speeds of the sliding assembly can be finely controlled through the detected different scene information.
In one embodiment of the present invention, when the slip control strategy is a fast slip control strategy, the driving component is controlled to drive the slip component to slip at a preset torque, it is understood that the preset torque should be a larger torque within a range that the driving component can provide, and when the slip component slips to a preset position, the torque is gradually reduced until the slip component stops at a target position, wherein the preset position is determined according to a total slip stroke of the slip component and a magnitude of the preset torque, so as to ensure that when the slip component slips to the preset position, the torque is gradually reduced until the slip component can just stop at the target position, so as to reduce hardware impact loss on a related structure, and the target position can be a first position or a second position according to a difference of the slip direction.
In the embodiment, in order to meet the quick starting requirements of the user, such as the snapshot requirements and the like, the driving component is controlled to drive the sliding component to slide out at a higher speed, and in order to reduce the hardware impact loss on the related structure, the speed is gradually reduced at a certain position until the target position is reached.
Or, in order to meet the user's requirement for fast folding, such as the requirement that the user wants to put the terminal device into a pocket fast, reduce the waiting time, etc., the driving component is controlled to drive the sliding component to be accommodated in the electronic device at a higher speed, and in order to reduce the hardware impact loss to the related structure, the speed is gradually reduced when the sliding component is slid to a certain position until the sliding component is slid to a target position.
In an embodiment of the present invention, when the slip control strategy is a general slip control strategy, the driving assembly is controlled to drive the slip assembly to slip at a preset acceleration until the slip assembly reaches a preset speed, wherein the preset speed is related to a driving force of the driving assembly and may be set by a factory when the slip assembly is shipped, and when the slip assembly slips to a preset position, the torque is gradually reduced until the slip assembly stops at a target position, wherein the preset position is determined according to a total sliding stroke of the slip assembly and a magnitude of the preset torque, so as to ensure that when the slip assembly slips to the preset position, the torque is gradually reduced until the slip assembly can just stop at the target position, so as to reduce a hardware impact loss to the related structure, and the target position may be a first position or a second position according to a difference of the slip direction.
In this embodiment, in order to meet the camera start-up requirement of the user, in order to alleviate the driving pressure of the driving assembly, avoid the driving force being insufficient to cause idle running, the driving assembly is controlled to gradually increase the speed to slide out, and in order to reduce the hardware impact loss to the related structure, the speed is gradually reduced at a certain position of sliding until the target position is reached.
Or, in order to meet the camera closing requirement of a user, in order to reduce the driving pressure of the driving assembly and avoid idle running caused by insufficient driving force, the driving assembly is controlled to gradually increase the speed and be contained in the electronic device body, and in order to reduce the hardware impact loss on related structures, the speed is gradually reduced until the driving assembly slides to a target position.
Of course, due to the complexity of the real-world situation, there is a possibility that the slide-out member may not slide to a predetermined position, such as jamming. Therefore, in order to protect the slide module in time, measures are also required to protect the slide module in the event of a failure.
In this embodiment, whether the sliding assembly has a sliding fault is detected, when a sliding fault signal of the sliding assembly is detected, for example, the sliding assembly cannot move when the position sensor detects that the sliding assembly is at the third position shown in fig. 3, and for example, when the hall element detects that the sliding assembly is between the first position and the second position, the value of the detection signal acquired for multiple times is unchanged or changes slowly, the sliding fault signal occurs, so that when the sliding fault is detected, an alarm signal is sent, for example, a buzzer is given to remind a user to remove the fault in time.
To sum up, the method for controlling a sliding component in an electronic device according to the embodiment of the present invention detects scene information of the electronic device, determines a sliding control policy corresponding to the scene information, and controls a driven component according to the sliding control policy. Therefore, the influence of the related components on the screen occupation ratio is reduced through the sliding component, the control of the driving component for controlling the sliding component can be realized based on the automatic identification of the scene information, and the personalized control method of the sliding component is provided. And when the control is carried out based on the scene information, the sliding assembly can be controlled to be started at different speeds based on different scene information, and the personalized requirements of the user can be met through fine control of the driving assembly.
In order to achieve the above embodiments, the present invention further provides a control device for a sliding assembly in an electronic device, the electronic device including a body and a driving assembly, the sliding assembly being configured to slide between a first position housed in the body and a second position exposed from the body, the driving assembly being configured to drive the sliding assembly, as shown in fig. 10, the control device including: a detection module 210, a determination module 220, and a control module 230.
The detecting module 210 is configured to detect scene information of the electronic device.
The determining module 220 is configured to determine a sliding control strategy corresponding to the scene information.
And a control module 230 for controlling the driven component according to a slip control strategy.
In an embodiment of the present invention, as shown in fig. 11, the determining module 220 includes a determining unit 221 and a determining unit 222, wherein the determining unit 221 is configured to determine whether the scene information is a preset first scene information set or a preset second scene information set.
A determining unit 222, configured to determine the sliding control policy as a fast sliding control policy when the first scene information set is determined.
In an embodiment of the present invention, the determining unit 222 is configured to determine that the sliding control policy is a normal sliding control policy when the second scene information is determined.
In an embodiment of the present invention, as shown in fig. 12, on the basis of fig. 10, the apparatus further includes a sending module 240, wherein, in this embodiment, the detecting module 210 is further configured to detect whether the sliding component has a sliding fault.
And a sending module 240, configured to send an alarm signal when the sliding fault is detected.
It should be noted that the driving component and the sliding component described in the foregoing embodiments of the method for controlling a sliding component in an electronic device are also applicable to the control device for a sliding component in an electronic device according to the embodiments of the present invention, and details and technical effects thereof are not described herein again.
In order to implement the above embodiments, the present invention further provides an electronic device, wherein, referring to fig. 1 to 4, the electronic device includes a main body 10, a detecting component 30, and a driving component 50, the driving component 50 is configured to control the sliding component to slide between a first position housed in the main body and a second position exposed from the main body, and the electronic device further includes: the memory 70, the processor 60 electrically connected to the sliding element, and a computer program stored in the memory 70 and capable of running on the processor, when the processor 60 executes the program, the method for controlling the sliding element in the electronic device as described in the foregoing embodiments is implemented.
In order to implement the foregoing embodiments, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for controlling a sliding component in an electronic device according to the foregoing method embodiments.
In the description herein, references to the terms "one embodiment," "certain embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples" or the like mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims (9)

1. A method for controlling a slide assembly in an electronic device, the electronic device including a body, a detection hall element, and a driving assembly, the slide assembly being configured to slide between a first position housed in the body and a second position exposed from the body, the driving assembly being configured to drive the slide assembly, the method comprising:
detecting scene information of the electronic device;
judging whether the scene information is a preset first scene information set or a second scene information set;
if the first scene information set is judged, determining that the sliding control strategy is a quick sliding control strategy;
controlling the driven component according to the sliding control strategy, wherein when the sliding control strategy is a fast sliding control strategy, the controlling the driven component according to the sliding control strategy specifically comprises: controlling the driving assembly to drive the sliding assembly to slide at a preset torque;
when the sliding assembly slides to a preset position, gradually reducing the torque until the sliding assembly stops at a target position, wherein the sliding position of the sliding assembly is determined through the magnitude relation between the current detection signal value detected by the detection Hall element and the reference signal value of the sliding assembly in the sliding state.
2. The method of claim 1, wherein after the determining whether the scene information is a preset first scene information set or a preset second scene information set, the method further comprises:
and if the second scene information set is judged, determining that the sliding control strategy is a common sliding control strategy.
3. The method according to claim 1 or 2, wherein, when the slip control strategy is a normal slip control strategy, the controlling the driven component according to the slip control strategy specifically comprises:
controlling the driving assembly to drive the sliding assembly to slide at a preset acceleration until the sliding assembly reaches a preset speed;
when the sliding component slides to a preset position, gradually reducing the torque until the sliding component stops at a target position.
4. The method of claim 1, after said controlling the driven component according to the slip control strategy, further comprising:
detecting whether the sliding assembly has a sliding fault;
and when the sliding fault is detected, sending an alarm signal.
5. A control device of a sliding assembly in an electronic device, the electronic device comprises a body, the sliding assembly and a driving assembly of a detection Hall element, the sliding assembly is used for sliding between a first position accommodated in the body and a second position exposed from the body, the driving assembly is used for driving the sliding assembly, and the device comprises:
the detection module is used for detecting scene information of the electronic device;
the judging module is used for judging whether the scene information is a preset first scene information set or a second scene information set, and if the scene information is judged to be the first scene information set, determining that the sliding control strategy is a quick sliding control strategy;
the control module is used for controlling the driven assembly according to the sliding control strategy, wherein when the sliding control strategy is a quick sliding control strategy, the control module is used for controlling the driving assembly to drive the sliding assembly to slide by preset torque,
when the sliding assembly slides to a preset position, gradually reducing the torque until the sliding assembly stops at a target position, wherein the sliding position of the sliding assembly is determined through the magnitude relation between the current detection signal value detected by the detection Hall element and the reference signal value of the sliding assembly in the sliding state.
6. The apparatus of claim 5, wherein the determining module is further configured to:
and when the second scene information set is judged, determining that the sliding control strategy is a common sliding control strategy.
7. The apparatus of claim 5, wherein the apparatus further comprises:
the detection module is also used for detecting whether the sliding assembly has a sliding fault;
and the sending module is used for sending an alarm signal when the sliding fault is detected.
8. An electronic device, comprising a body, a sliding component and a driving component, wherein the sliding component is configured to slide between a first position housed in the body and a second position exposed from the body, and the driving component is configured to drive the sliding component, the electronic device further comprising: a memory, a processor electrically connected to the sliding element, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for controlling the sliding element in the electronic device according to any one of claims 1 to 4 when executing the program.
9. A computer-readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing a method of controlling a sliding assembly in an electronic device according to any one of claims 1 to 4.
CN201810590009.0A 2018-06-08 2018-06-08 Electronic device and control method and device of sliding assembly of electronic device Expired - Fee Related CN108924286B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810590009.0A CN108924286B (en) 2018-06-08 2018-06-08 Electronic device and control method and device of sliding assembly of electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810590009.0A CN108924286B (en) 2018-06-08 2018-06-08 Electronic device and control method and device of sliding assembly of electronic device

Publications (2)

Publication Number Publication Date
CN108924286A CN108924286A (en) 2018-11-30
CN108924286B true CN108924286B (en) 2020-12-04

Family

ID=64418677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810590009.0A Expired - Fee Related CN108924286B (en) 2018-06-08 2018-06-08 Electronic device and control method and device of sliding assembly of electronic device

Country Status (1)

Country Link
CN (1) CN108924286B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109788092B (en) * 2018-12-29 2021-06-25 Oppo广东移动通信有限公司 Electronic device
CN109672785B (en) * 2018-12-29 2020-08-14 维沃移动通信(杭州)有限公司 Pop-up camera retracting method and mobile terminal
CN110806325B (en) * 2019-10-22 2022-02-22 Oppo(重庆)智能科技有限公司 Electronic equipment detection method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002104008A1 (en) * 2001-06-19 2002-12-27 Matsushita Electric Industrial Co., Ltd. Information terminal device provided with turning function-carrying camera
CN101834917A (en) * 2009-03-12 2010-09-15 纬创资通股份有限公司 Electronic device capable of containing peripheral component and method for pushing peripheral component out of electronic device
CN103116387A (en) * 2011-09-18 2013-05-22 仁宝电脑工业股份有限公司 Electronic device and rotating base driving method
CN104883492A (en) * 2015-03-23 2015-09-02 广东欧珀移动通信有限公司 Camera rotation control method and terminal
CN107819907A (en) * 2017-11-14 2018-03-20 维沃移动通信有限公司 A kind of camera control method and mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101366859B1 (en) * 2007-10-31 2014-02-21 엘지전자 주식회사 Portable terminal
CN105072326B (en) * 2015-05-19 2018-06-12 广东欧珀移动通信有限公司 A kind of method and terminal for controlling camera rotation
CN107333004A (en) * 2017-07-25 2017-11-07 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN108093099B (en) * 2017-11-07 2020-07-24 Oppo广东移动通信有限公司 Mobile terminal falling protection method and system and mobile terminal
CN107820024B (en) * 2017-12-05 2020-09-29 北京小米移动软件有限公司 Image shooting method, device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002104008A1 (en) * 2001-06-19 2002-12-27 Matsushita Electric Industrial Co., Ltd. Information terminal device provided with turning function-carrying camera
CN101834917A (en) * 2009-03-12 2010-09-15 纬创资通股份有限公司 Electronic device capable of containing peripheral component and method for pushing peripheral component out of electronic device
CN103116387A (en) * 2011-09-18 2013-05-22 仁宝电脑工业股份有限公司 Electronic device and rotating base driving method
CN104883492A (en) * 2015-03-23 2015-09-02 广东欧珀移动通信有限公司 Camera rotation control method and terminal
CN107819907A (en) * 2017-11-14 2018-03-20 维沃移动通信有限公司 A kind of camera control method and mobile terminal

Also Published As

Publication number Publication date
CN108924286A (en) 2018-11-30

Similar Documents

Publication Publication Date Title
CN108833623B (en) Sliding control method and device of sliding assembly and electronic device
CN108924286B (en) Electronic device and control method and device of sliding assembly of electronic device
CN108833699B (en) Electronic device and control method and device of sliding assembly of electronic device
CN108924283B (en) Sliding control method and device of sliding assembly and electronic device
CN109246361B (en) Camera module control method and device
WO2018076323A1 (en) Screen control method and apparatus
EP3021561A1 (en) Method and system for preventing call-up misoperation
WO2020108007A1 (en) Camera module control method and device
JP7254929B2 (en) Slide compensation method and apparatus for slide component
CN108900663B (en) Sliding control method and device of sliding assembly and electronic device
US10992856B2 (en) Method for detecting position of movable structure, detection component, and electronic device
CN108924284B (en) Electronic device and control method and device of sliding assembly of electronic device
CN108833697B (en) Control method of sliding assembly, control assembly, electronic device and storage medium
CN110875964A (en) Electronic device
CN108924287B (en) Anti-falling control method and device for sliding assembly and electronic device
CN105554255A (en) Operation control method and device for terminal equipment
US11143935B2 (en) Blade operating device and blade operating method
CN108924342B (en) Mobile terminal, control method thereof, control assembly and storage medium
CN108965580B (en) Anti-falling control method and device for sliding assembly and electronic device
CN109151107B (en) Sliding control method and device for sliding assembly, electronic device and storage medium
CN109460178B (en) Sliding display method and device of sliding assembly
CN108897373B (en) Electronic device and control method and device of sliding assembly of electronic device
CN110311996B (en) Control method of sliding-out assembly, detection assembly and electronic device
CN110311997B (en) Position detection method of slide-out assembly, detection assembly and electronic device
CN108829532B (en) Fingerprint detection method, device and 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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201204

CF01 Termination of patent right due to non-payment of annual fee