CN108897373B - 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 PDFInfo
- Publication number
- CN108897373B CN108897373B CN201810589373.5A CN201810589373A CN108897373B CN 108897373 B CN108897373 B CN 108897373B CN 201810589373 A CN201810589373 A CN 201810589373A CN 108897373 B CN108897373 B CN 108897373B
- Authority
- CN
- China
- Prior art keywords
- sliding
- assembly
- electronic device
- control strategy
- gesture information
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000011217 control strategy Methods 0.000 claims abstract description 45
- 238000004590 computer program Methods 0.000 claims description 10
- 238000001514 detection method Methods 0.000 claims description 10
- 230000001133 acceleration Effects 0.000 claims description 2
- 239000000463 material Substances 0.000 description 9
- 238000010586 diagram Methods 0.000 description 6
- 239000000969 carrier Substances 0.000 description 3
- 239000000853 adhesive Substances 0.000 description 2
- 230000001070 adhesive effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 229910052594 sapphire Inorganic materials 0.000 description 2
- 239000010980 sapphire Substances 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 239000000919 ceramic Substances 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/1615—Constructional details or arrangements for portable computers with several enclosures having relative motions, each enclosure supporting at least one I/O or computing function
- G06F1/1624—Constructional details or arrangements for portable computers with several enclosures having relative motions, each enclosure supporting at least one I/O or computing function with sliding enclosures, e.g. sliding keyboard or display
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/1633—Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
- G06F1/1684—Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
- G06F1/1686—Constructional 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Mathematical Physics (AREA)
- User Interface Of Digital Computer (AREA)
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 gesture information input by a user in the electronic device; judging a sliding control strategy corresponding to the gesture 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 simple gesture input, and the personalized control method of the sliding component is provided.
Description
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to an electronic device and a method and an apparatus for controlling a sliding assembly of the electronic device.
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 gesture information input in the electronic device by a user; judging a sliding control strategy corresponding to the gesture 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 gesture information input by a user in the electronic device; the judging module is used for judging a sliding control strategy corresponding to the gesture 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 aspect 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 embodiments.
The technical scheme provided by the invention at least comprises the following beneficial effects:
detecting gesture information input by a user in the electronic device, judging a sliding control strategy corresponding to the gesture 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 simple gesture input, and the personalized control method of the sliding component is provided. And when the control is carried out based on the gesture operation, the sliding assembly can be controlled to be started at different speeds based on different gesture operations, and the personalized requirements of the user are 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:
The gesture information includes gesture actions, for example, palm unfolding operation, finger talking operation, and the like, and it should be understood that the gesture information in the embodiment of the present invention may be obtained by calculating infrared reflection signals collected by an infrared sensor and the like disposed below the screen panel, or may be obtained by calculating depth information according to feedback signals after being projected by a structured light speckle projector disposed below the screen panel.
And 102, judging a sliding control strategy corresponding to the gesture 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 gesture information, so that after the corresponding sliding strategy is matched according to the detected gesture information, the driving assembly 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 assembly. 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.
In an embodiment of the invention, in order to realize fine control of the sliding component, the sliding component can be controlled to operate at different speeds based on gesture information of a user, 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:
It should be understood that the first gesture information set or the second gesture information set is set to avoid control failure caused by easy forgetting of a user or difficulty in accurate restoration when only one type of first gesture and one type of second gesture are used for controlling the driving component, and the operation difficulty of the user is reduced by the first gesture information set including a plurality of first gestures or the second gesture information set including a plurality of second gestures, where, to further facilitate the operation of the user, the first gesture information set and the second gesture information set may respectively include operations in the same direction, for example, the first gesture information set includes a gesture from right to left, the second gesture information set includes a gesture from left to right, and the like.
In step 202, if the first gesture information set is determined, the sliding control strategy is determined to be a fast sliding control strategy.
In step 203, if the second gesture information set is determined, the sliding control strategy is determined to be a common sliding control strategy.
Specifically, in order to realize fine control over the sliding component, a first gesture information set and a second gesture information set are preset, wherein a sliding control strategy corresponding to a first gesture contained in the first gesture information set is a quick sliding control strategy, and a sliding control strategy corresponding to a second gesture contained in the second gesture information set is a common sliding control strategy, so that a user can realize fine control over different speeds of the sliding component by implementing gesture operation actions in different sets.
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 gesture information input by a user in the electronic device, determines a sliding control policy corresponding to the gesture 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 simple gesture input, and the personalized control method of the sliding component is provided. And when the control is carried out based on the gesture operation, the sliding assembly can be controlled to be started at different speeds based on different gesture operations, and the personalized requirements of the user are 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 21, a judgment module 22 and a control module 23.
The detection module 21 is configured to detect gesture information input by a user in the electronic device.
And the judging module 22 is configured to judge a sliding control strategy corresponding to the gesture information.
And the control module 23 is used for controlling the driven component according to a sliding control strategy.
In an embodiment of the present invention, as shown in fig. 11, the determining module 22 includes a determining unit 221 and a determining unit 222, where the determining unit 221 is configured to determine whether the gesture information is a preset first gesture information set or a preset second gesture information set.
A determining unit 222, configured to determine the sliding control strategy as a fast sliding control strategy when the first gesture 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 the normal sliding control policy when the second gesture 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 24, wherein, in this embodiment, the detecting module 21 is further configured to detect whether the sliding component has a sliding fault.
And the sending module 24 is used for sending 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 (8)
1. A method for controlling a sliding assembly in an electronic device, the electronic device comprising 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, the method comprising:
detecting gesture information input in the electronic device by a user;
judging a sliding control strategy corresponding to the gesture information;
controlling the driven component according to the sliding control strategy;
the judging of the sliding control strategy corresponding to the gesture information specifically includes:
judging whether the gesture information is a preset first gesture information set or a preset second gesture information set;
if the first gesture information set is judged, judging that the sliding control strategy is a quick sliding control strategy;
and if the second gesture information set is judged, judging that the sliding control strategy is a common sliding control strategy.
2. The method of claim 1, wherein when the slip control strategy is a fast 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 torque;
when the sliding component slides to a preset position, gradually reducing the torque until the sliding component stops at a target position.
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 apparatus for a slide assembly in an electronic apparatus, the electronic apparatus including a body, the slide 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 slide assembly, the apparatus comprising:
the detection module is used for detecting gesture information input by a user in the electronic device;
the judging module is used for judging a sliding control strategy corresponding to the gesture information;
the control module is used for controlling the driven assembly according to the sliding control strategy;
the judging module comprises:
the judging unit is used for judging whether the gesture information is a preset first gesture information set or a preset second gesture information set;
the determining unit is used for determining the sliding control strategy as a quick sliding control strategy when the first gesture information set is judged;
the determining unit is further configured to determine that the sliding control policy is a normal sliding control policy when the second gesture information is determined.
6. 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.
7. 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 computer program.
8. 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.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810589373.5A CN108897373B (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 |
---|---|---|---|
CN201810589373.5A CN108897373B (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 |
---|---|
CN108897373A CN108897373A (en) | 2018-11-27 |
CN108897373B true CN108897373B (en) | 2021-03-23 |
Family
ID=64344414
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810589373.5A Expired - Fee Related CN108897373B (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) | CN108897373B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104023190A (en) * | 2014-06-20 | 2014-09-03 | 冠捷显示科技(厦门)有限公司 | Automatic lifting camera and display device thereof |
CN107197133A (en) * | 2017-07-21 | 2017-09-22 | 维沃移动通信有限公司 | A kind of mobile terminal and CCD camera assembly |
CN207283614U (en) * | 2017-10-25 | 2018-04-27 | 深圳传音制造有限公司 | A kind of intelligent terminal with comprehensive screen |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20170058051A (en) * | 2015-11-18 | 2017-05-26 | 삼성전자주식회사 | Portable apparatus and method for controlling a screen |
-
2018
- 2018-06-08 CN CN201810589373.5A patent/CN108897373B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104023190A (en) * | 2014-06-20 | 2014-09-03 | 冠捷显示科技(厦门)有限公司 | Automatic lifting camera and display device thereof |
CN107197133A (en) * | 2017-07-21 | 2017-09-22 | 维沃移动通信有限公司 | A kind of mobile terminal and CCD camera assembly |
CN207283614U (en) * | 2017-10-25 | 2018-04-27 | 深圳传音制造有限公司 | A kind of intelligent terminal with comprehensive screen |
Also Published As
Publication number | Publication date |
---|---|
CN108897373A (en) | 2018-11-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108833623B (en) | Sliding control method and device of sliding assembly and electronic device | |
CN108833699B (en) | Electronic device and control method and device of sliding assembly of electronic device | |
US8994694B2 (en) | Optical interference based user input device | |
WO2020108007A1 (en) | Camera module control method and device | |
CN108924283B (en) | Sliding control method and device of sliding assembly and electronic device | |
US11789470B2 (en) | Method and apparatus for calibrating sliding of sliding component | |
CN109246361B (en) | Camera module control method and device | |
US10627947B2 (en) | Electronic device | |
JP2005176370A (en) | Slide type portable communication terminal | |
CN108924284B (en) | Electronic device and control method and device of sliding assembly of electronic device | |
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 | |
US20140333591A1 (en) | Salient control element and mobile device with salient control element | |
CN108924286B (en) | Electronic device and control method and device of sliding assembly of electronic device | |
CN108924287B (en) | Anti-falling control method and device for sliding assembly and electronic device | |
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 | |
CN108897373B (en) | Electronic device and control method and device of sliding assembly of electronic device | |
CN109460178B (en) | Sliding display method and device of sliding assembly | |
CN110311996B (en) | Control method of sliding-out assembly, detection assembly and electronic device | |
US10845914B2 (en) | Electronic device | |
CN108769319B (en) | Electromagnetic interference preventing speed changing method for sliding assembly, driving assembly, device and medium | |
CN110311997B (en) | Position detection method of slide-out assembly, detection assembly and electronic device | |
CN110312000B (en) | Control method of sliding-out structure, detection assembly and electronic device | |
EP2600229A1 (en) | Optical interference based user input device |
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: 20210323 |
|
CF01 | Termination of patent right due to non-payment of annual fee |