CN108924284B - 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
CN108924284B
CN108924284B CN201810590001.4A CN201810590001A CN108924284B CN 108924284 B CN108924284 B CN 108924284B CN 201810590001 A CN201810590001 A CN 201810590001A CN 108924284 B CN108924284 B CN 108924284B
Authority
CN
China
Prior art keywords
sliding
assembly
sliding assembly
trigger
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201810590001.4A
Other languages
Chinese (zh)
Other versions
CN108924284A (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 CN201810590001.4A priority Critical patent/CN108924284B/en
Publication of CN108924284A publication Critical patent/CN108924284A/en
Application granted granted Critical
Publication of CN108924284B publication Critical patent/CN108924284B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Environmental & Geological Engineering (AREA)
  • Studio Devices (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 steps of judging whether a trigger assembly receives a trigger instruction or not; when a trigger instruction is received, judging the state of the sliding assembly; and controlling the sliding assembly according to the state of the sliding assembly. Therefore, the influence of the related components on the screen occupation ratio is reduced through the sliding component, the sliding component is controlled through the trigger component, and the operation convenience of the sliding component is improved.

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 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, where the sliding assembly is used for an electronic device, the electronic device includes a body and a trigger assembly, and the sliding assembly is used for sliding between a first position where the sliding assembly is accommodated in the body and a second position where the sliding assembly is exposed from the body, and the method includes the steps of: judging whether the trigger component receives a trigger instruction or not; when the trigger instruction is received, judging the state of the sliding assembly; and controlling the sliding assembly according to the state of the sliding assembly.
In order to achieve the above object, a second aspect of the present invention provides a control device for a sliding assembly, the sliding assembly being used in an electronic device, the electronic device including a body, a sliding assembly and a trigger 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 device including: the first judgment module is used for judging whether the trigger assembly receives a trigger instruction; the second judgment module is used for judging the state of the sliding assembly when the trigger instruction is received; and the control module is used for controlling the sliding assembly according to the state of the sliding assembly.
In order to achieve the above object, a third aspect of the present invention provides an electronic device, including a body, a sliding component, and a triggering component, where 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 electronic device further includes: the sliding module comprises a memory, a processor electrically connected with the sliding module, and a computer program stored on the memory and capable of running on the processor, wherein when the processor executes the computer program, the sliding module control method according to the foregoing embodiment 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 the method for controlling a sliding assembly according to the foregoing method embodiment.
The technical scheme provided by the invention at least comprises the following beneficial effects:
judging whether the trigger assembly receives a trigger instruction, judging the state of the sliding assembly when the trigger instruction is received, and further controlling the sliding assembly according to the state of the sliding assembly. Therefore, the influence of the related components on the screen occupation ratio is reduced through the sliding component, the sliding component is controlled through the trigger component, the operation convenience of the sliding component is improved, the trigger component can be set to be different forms, and the trigger parameters of the trigger component can also be set to be different forms, so that the personalized operation requirements of users are met.
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 schematic structural diagram of an electronic device according to an embodiment of the invention;
FIG. 7 is a flow chart of a method of controlling a slide assembly according to one embodiment of the present invention;
fig. 8 is a schematic structural view of a control device of the slide module according to an 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 trigger component 18, 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 receiver 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.
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. 6, 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.
Based on the above description, in order to facilitate the control of the sliding assembly, the invention provides the trigger assembly for controlling the sliding assembly. The following describes a control method of the sliding assembly in the electronic device in detail:
fig. 7 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. 7, the method including the steps of:
step 101, judging whether the trigger component receives a trigger instruction.
The triggering assembly can be in various different forms such as a pressure sensor, a capacitance sensor and a mechanical key, the various different forms can be selected and set according to personal preferences of a user, and various triggering assemblies can be simultaneously set in the electronic device for enriching the use experience of the user.
Specifically, when the user trigger component is detected, a trigger instruction is acquired, so that the sliding component is further controlled according to the trigger instruction.
And 102, judging the state of the sliding assembly when a trigger instruction is received.
And 103, controlling the sliding assembly according to the state of the sliding assembly.
In order to further improve the convenience of user operation, when the situation that the user triggers the sliding assembly is detected, the next specific control on the sliding assembly is automatically judged according to the current state of the sliding assembly, and therefore the convenience of operation is improved. In this embodiment, when the trigger instruction is received, the state of the sliding assembly is determined, for example, the state of the sliding assembly is determined by detecting the current position of the sliding assembly through the position detection sensor, and for example, the state of the sliding assembly is determined by acquiring the last control signal to the sliding assembly through the processor.
In this embodiment, when the sliding assembly is located at the first position, it indicates that the volume key triggered by the current user is for using the camera, and thus the sliding assembly is controlled to slide from the first position to the second position, so as to drive the sliding assembly to slide the camera connected to the sliding assembly out of the electronic device body at a corresponding speed by controlling the driving assembly, and when the sliding assembly is located at the second position, it indicates that the volume key triggered by the current user is for retracting the camera, and the sliding assembly is controlled to return from the second position to the first position, so as to drive the sliding assembly to accommodate the camera connected to the sliding assembly in the electronic device body at a corresponding speed by controlling the driving assembly.
Further, in order to realize fine control of the sliding component, different sliding control strategies are set in advance for different trigger parameters, wherein the sliding strategies include but are not limited to the driving direction, the driving speed and the like of the driving component, the trigger parameters can be different according to the difference of the trigger components, and for the same trigger component, the combination of different trigger parameters can be set according to the difference of user preferences, so that the personalized requirements of the user are met based on the type of the trigger component and the combination of the trigger parameters.
In an embodiment of the present invention, when the triggering component is a mechanical key disposed on a side of the electronic device, the acquiring of the triggering parameter of the triggering component includes acquiring a triggering key combination of the mechanical key, and/or a pressing duration.
In an embodiment of the invention, when the trigger component is a capacitive sensor disposed on a side wall of the bezel of the electronic device, the trigger parameter of the trigger component is obtained, including obtaining a capacitance value of the capacitive sensor, and determining a hand-holding posture according to the capacitance value.
In one embodiment of the present invention, when the triggering component is a pressure sensor disposed at a side of the electronic device, the triggering parameter of the triggering component is obtained, including obtaining the triggering times of the pressure sensor, and/or the pressing pressure.
In order to more clearly illustrate the refined control process, the following description will take the sliding control strategy as a fast sliding control strategy and a normal sliding control strategy respectively as an example.
In one embodiment of the present invention, when the slip control strategy is determined to be the fast slip control strategy according to the trigger parameter, the driving assembly is controlled to drive the slip assembly to slip at a preset torque, it is understood that the preset torque should be a larger torque within a range that the driving assembly can provide, 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 slip 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 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 one embodiment of the present invention, when it is determined that the slip control strategy is the normal slip control strategy according to the trigger parameter, the driving component is controlled to drive the sliding component to slide at a preset acceleration until the sliding component reaches a preset speed, wherein the preset speed is related to the driving force of the driving assembly, can be set by a factory when the factory leaves the factory, and the like, when the sliding component slides to the preset position, gradually reducing the torque until the sliding component stops at the target position, wherein the preset position is determined according to the total sliding stroke of the sliding component and the size of the preset torque, to ensure that when the sliding component slides to the preset position, the torque is gradually reduced until the sliding component can just stop at the target position, so as to reduce the hardware impact loss on the related structure, the target position may be a first position or a second position depending on the sliding 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, depending on the complexity of the actual execution environment, it is also possible that the sliding component stops due to a failure during the sliding process between the first position and the second position, for example, as shown in fig. 3, stops at a third position between the first position and the second position, and at this time, an alarm is given to remind the user to remove the failure in time.
In summary, the control method of the sliding assembly according to the embodiment of the present invention determines whether the trigger assembly receives the trigger instruction, determines the state of the sliding assembly when the trigger instruction is received, and controls the sliding assembly according to the state of the sliding assembly. Therefore, the influence of the related components on the screen occupation ratio is reduced through the sliding component, the sliding component is controlled through the trigger component, the operation convenience of the sliding component is improved, the trigger component can be set to be different forms, and the trigger parameters of the trigger component can also be set to be different forms, so that the personalized operation requirements of users are met.
In order to achieve the above embodiments, the present invention further provides a control device of a sliding assembly, the sliding assembly is used for an electronic device, the electronic device includes a body, the sliding assembly and a trigger assembly, the sliding assembly is used for sliding between a first position accommodated in the body and a second position exposed from the body, as shown in fig. 8, the control device of the sliding assembly includes: a first judging module 21, a second judging module 22 and a control module 23. The first determining module 21 is configured to determine whether the trigger component receives a trigger instruction.
And the second judging module 22 is configured to judge the state of the sliding component when the trigger instruction is received.
And the control module 23 is used for controlling the sliding assembly according to the state of the sliding assembly.
It should be noted that the foregoing description focuses on the driving component and the sliding component described in the embodiment of the control method of the sliding component, and the driving component and the sliding component are also applicable to the control device of the sliding component in the embodiment of the present invention, and details and technical effects thereof are not described herein again.
In order to achieve the above embodiments, the present invention further provides an electronic device, wherein, referring to fig. 1 to 4, the electronic device includes a body 10, a sliding assembly 30, a driving assembly 50, and a triggering assembly 18, the sliding assembly 30 is configured to slide between a first position accommodated in the body 10 and a second position exposed from the body, and the electronic device further includes: a memory 70, a processor 60 electrically connected to the sliding component 30, and a computer program stored in the memory 70 and capable of running on the processor, wherein the processor executes the computer program to implement the control method of the sliding component as described in the foregoing embodiments.
It should be noted that the trigger assembly 18 shown in fig. 1-4 protrudes from the body, however, in the actual implementation, the trigger assembly 18 may also be hidden under the casing of the body, and the like, and is not limited herein.
In order to implement the above embodiments, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the control method of the sliding assembly as described in 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 control method of a sliding assembly is characterized in that the sliding assembly is used for an electronic device, the electronic device comprises a body, a detection assembly, a driving assembly and a trigger assembly, the sliding assembly is used for sliding between a first position accommodated in the body and a second position exposed out of the body, the detection assembly comprises a magnetic field generating element, a first Hall element and a second Hall element, and the magnetic field generating element, the first Hall element and the second Hall element are respectively fixed on the sliding assembly and the body, and the method comprises the following steps:
judging whether the trigger component receives a trigger instruction or not;
when the trigger instruction is received, judging the state of the sliding assembly;
controlling the sliding assembly according to the state of the sliding assembly;
acquiring a trigger parameter of the trigger component;
selecting a corresponding sliding control strategy according to the trigger parameters;
when the sliding control strategy is determined to be a quick sliding control strategy according to the trigger parameters, the driving assembly is controlled to drive the sliding assembly to slide by using a preset torque; or, when the sliding control strategy is determined to be a common sliding control strategy according to the trigger parameters, 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 assembly slides to a preset position, gradually reducing the torque until the sliding assembly stops at a target position, wherein the preset position is determined according to the total sliding stroke of the sliding assembly and the size of the preset torque; the method comprises the steps of obtaining a detection signal value output by a Hall element, and determining the current relative position of a sliding assembly relative to a body according to the detection signal value.
2. The method of claim 1, wherein the controlling the slide assembly based on the state of the slide assembly specifically comprises:
when the sliding assembly is located at a first position, controlling the sliding assembly to slide from the first position to the second position;
when the sliding assembly is located at the second position, the sliding assembly is controlled to return to the first position from the second position.
3. The method of claim 1, wherein the triggering component is a mechanical button disposed on a side of the electronic device;
the acquiring of the trigger parameter of the trigger component includes:
and acquiring a trigger key combination and/or pressing duration of the mechanical key.
4. The method of claim 1, wherein the triggering component is a capacitive sensor disposed on a side wall of the electronic device bezel;
the acquiring of the trigger parameter of the trigger component includes:
and acquiring a capacitance value of the capacitance sensor, and determining the hand-holding frame posture according to the capacitance value.
5. The control method of a slide module according to claim 1, wherein the trigger module is a pressure sensor provided at a side of the electronic device;
the acquiring of the trigger parameter of the trigger component includes:
acquiring the triggering times of the pressure sensor and/or the pressing pressure.
6. The utility model provides a control device of slip subassembly, its characterized in that, the slip subassembly is used for the electronic device, the electronic device includes body, detection component, drive assembly, slip subassembly and trigger assembly, the slip subassembly is used for sliding between the first position of accomodating in the body and from the second position that the body exposes, detection component includes magnetic field produces component, first hall element and second hall element, magnetic field produces the component first hall element and second hall element fixes respectively the slip subassembly with on the body, the device includes:
the first judgment module is used for judging whether the trigger assembly receives a trigger instruction;
the second judgment module is used for judging the state of the sliding assembly when the trigger instruction is received;
the control module is used for controlling the sliding assembly according to the state of the sliding assembly;
acquiring a trigger parameter of the trigger component;
selecting a corresponding sliding control strategy according to the trigger parameters;
when the sliding control strategy is determined to be a quick sliding control strategy according to the trigger parameters, the driving assembly is controlled to drive the sliding assembly to slide by using a preset torque;
when the sliding control strategy is determined to be a common sliding control strategy according to the trigger parameters, controlling the driving assembly to drive the sliding assembly to slide at a preset acceleration until the sliding assembly reaches a preset speed, and gradually reducing the torque until the sliding assembly stops at a target position when the sliding assembly slides to a preset position, wherein the preset position is determined according to the total sliding stroke of the sliding assembly and the size of the preset torque; the method comprises the steps of obtaining a detection signal value output by a Hall element, and determining the current relative position of a sliding assembly relative to a body according to the detection signal value.
7. An electronic device, characterized in that, the electronic device includes a body, a sliding assembly, a detection assembly, a driving assembly and a trigger assembly, the sliding assembly is used for sliding between a first position accommodated in the body and a second position exposed from the body, the detection assembly includes a magnetic field generating element, a first hall element and a second hall element, the magnetic field generating element, the first hall element and the second hall element are respectively fixed on the sliding assembly and the body, wherein, in the process that the sliding assembly slides from the first position to the second position, the magnetic field generating element is far away from the first hall element and is close to the second hall element, the driving assembly is used for controlling, the electronic device further includes: a memory, a processor electrically connected to the sliding assembly, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for controlling the sliding assembly according to any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of controlling a sliding assembly according to any one of claims 1-5.
CN201810590001.4A 2018-06-08 2018-06-08 Electronic device and control method and device of sliding assembly of electronic device Expired - Fee Related CN108924284B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810590001.4A CN108924284B (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
CN201810590001.4A CN108924284B (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
CN108924284A CN108924284A (en) 2018-11-30
CN108924284B true CN108924284B (en) 2021-04-09

Family

ID=64418674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810590001.4A Expired - Fee Related CN108924284B (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) CN108924284B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743459A (en) * 2018-12-29 2019-05-10 联想(北京)有限公司 The control method and electronic equipment of a kind of electronic equipment
CN110300198B (en) * 2019-06-28 2021-03-02 Oppo广东移动通信有限公司 Shell assembly, electronic equipment and control method thereof
CN110300206B (en) * 2019-06-28 2021-06-29 Oppo广东移动通信有限公司 Shell assembly, electronic equipment and control method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3116203A1 (en) * 2015-06-25 2017-01-11 Xiaomi Inc. Mobile device
CN106657456A (en) * 2016-10-24 2017-05-10 珠海格力电器股份有限公司 Mobile terminal
CN207118136U (en) * 2017-07-27 2018-03-16 北京小米移动软件有限公司 Electronic equipment
CN107819907A (en) * 2017-11-14 2018-03-20 维沃移动通信有限公司 A kind of camera control method and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3116203A1 (en) * 2015-06-25 2017-01-11 Xiaomi Inc. Mobile device
CN106657456A (en) * 2016-10-24 2017-05-10 珠海格力电器股份有限公司 Mobile terminal
CN207118136U (en) * 2017-07-27 2018-03-16 北京小米移动软件有限公司 Electronic equipment
CN107819907A (en) * 2017-11-14 2018-03-20 维沃移动通信有限公司 A kind of camera control method and mobile terminal

Also Published As

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

Similar Documents

Publication Publication Date Title
CN108833699B (en) Electronic device and control method and device of sliding assembly of electronic device
CN108833623B (en) Sliding control method and device of sliding assembly and electronic device
CN108924284B (en) Electronic device and control method and device of sliding assembly of electronic device
JP4370235B2 (en) Slide open / close portable communication terminal
US20090164937A1 (en) Scroll Apparatus and Method for Manipulating Data on an Electronic Device Display
US10627947B2 (en) Electronic device
CN108924283B (en) Sliding control method and device of sliding assembly and electronic device
WO2020108007A1 (en) Camera module control method and device
CN109246361B (en) Camera module control method and 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
US11789470B2 (en) Method and apparatus for calibrating sliding of sliding component
CN108829461B (en) Camera starting control method and device and electronic equipment
CN108924286B (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
CN110249101B (en) Vehicle portable device
CN108924342B (en) Mobile terminal, control method thereof, control assembly and storage medium
CN108924287B (en) Anti-falling control method and device for sliding assembly and electronic device
CN109460178B (en) Sliding display method and device of sliding assembly
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
CN110311996B (en) Control method of sliding-out assembly, detection assembly and 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
EP2770405A2 (en) Operating 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: 20210409