CN110311996B - Control method of sliding-out assembly, detection assembly and electronic device - Google Patents
Control method of sliding-out assembly, detection assembly and electronic device Download PDFInfo
- Publication number
- CN110311996B CN110311996B CN201810229770.1A CN201810229770A CN110311996B CN 110311996 B CN110311996 B CN 110311996B CN 201810229770 A CN201810229770 A CN 201810229770A CN 110311996 B CN110311996 B CN 110311996B
- Authority
- CN
- China
- Prior art keywords
- slide
- sliding
- assembly
- out assembly
- relative position
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/0202—Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
- H04M1/026—Details of the structure or mounting of specific components
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/0202—Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
- H04M1/026—Details of the structure or mounting of specific components
- H04M1/0264—Details of the structure or mounting of specific components for a camera module assembly
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/0202—Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
- H04M1/026—Details of the structure or mounting of specific components
- H04M1/0266—Details of the structure or mounting of specific components for a display module assembly
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a control method of a slide-out assembly, the slide-out assembly is used for an electronic device, the electronic device comprises a body, the slide-out assembly is used for sliding between a first position accommodated in the body and a second position exposed out of the body, and the control method comprises the following steps: detecting whether the sliding-out component is pushed; and controlling the sliding-out component to slide towards a preset position when the sliding-out component is pushed. The control method of the slide-out assembly provided by the embodiment of the invention can detect and identify the condition that the slide-out assembly is pushed, and control the slide-out assembly to slide when the slide-out assembly is pushed. Therefore, the sliding operation mode for controlling the sliding-out component is simple, and the user experience can be improved. The invention also discloses a detection assembly and an electronic device.
Description
Technical Field
The invention relates to the technical field of electronics, in particular to a control method of a sliding-out component, a detection component and an electronic device.
Background
In order to improve user experience, the screen of the mobile phone is more and more occupied, and even a full-screen design has been proposed, so how to set and use the front camera originally arranged on the front panel becomes a problem to be solved urgently.
Disclosure of Invention
The invention provides a control method of a slide-out assembly, a detection assembly and an electronic device.
The invention discloses a control method of a slide-out assembly. The sliding-out component is used for an electronic device, the electronic device comprises a body, the sliding-out component is used for sliding between a first position accommodated in the body and a second position exposed out of the body, and the control method comprises the following steps:
detecting whether the sliding-out component is pushed; and
when the sliding-out component is pushed, the sliding-out component is controlled to slide towards a preset position.
The invention discloses a detection assembly. The detection assembly is used for detecting the state of the sliding-out assembly, the sliding-out assembly is used for an electronic device, the electronic device comprises a body, the sliding-out assembly is used for sliding between a first position contained in the body and a second position exposed from the body, the detection assembly comprises a processor, and the processor is used for:
detecting whether the sliding-out component is pushed; and
when the sliding-out component is pushed, the sliding-out component is controlled to slide towards a preset position.
The invention discloses an electronic device. The electronic device includes:
a body;
the sliding-out assembly is used for sliding between a first position accommodated in the body and a second position exposed out of the body; and
the detection assembly is used for detecting the state of the sliding-out assembly and comprises a processor, and the processor is used for detecting whether the sliding-out assembly is pushed or not and controlling the sliding-out assembly to slide to a preset position when the sliding-out assembly is pushed.
The control method of the slide-out assembly provided by the embodiment of the invention can detect and identify the condition that the slide-out assembly is pushed, and control the slide-out assembly to slide when the slide-out assembly is pushed. Therefore, the sliding operation mode for controlling the sliding-out component is simple, and the user experience can be improved.
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 above 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 schematic flow chart of a control method of an embodiment of the present invention;
FIG. 9 is a schematic electrical circuit diagram of a detection assembly according to an embodiment of the present invention;
FIG. 10 is a graphical illustration of a calibrated relative position versus a predetermined signal value in accordance with an embodiment of the present invention;
fig. 11 is another flow chart illustrating the control method according to the 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 carrier 22, the threaded hole 24, the rotary screw 26, the detection component 30, the magnetic field generating element 32, the hall element 34, the processor 36, the comparator 37, the functional device 40, the front camera 42, the receiver 44, the driving device 50, the motor 52, 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.
Referring to fig. 1 to 4, an electronic device 100 according to an embodiment of the invention includes a body 10, a sliding-out component 20, and a detecting component 30. The slide-out assembly 20 is adapted to slide between a first position a received in the body 10 and a second position B exposed from the body 10. The sensing assembly 30 is used for sensing the state of the slide-out assembly 20, the sensing assembly 30 comprises a magnetic field generating element 32, a hall element 34 and a processor 36, the magnetic field generating element 32 and the hall element 34 are respectively fixed on the body 10 and the slide-out assembly 20, and the processor 36 is used for receiving the sensing signal value output by the hall element 34 and determining the current relative position of the slide-out assembly 20 relative to the body 10 according to the sensing 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 slide-out assembly 20" 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 slide-out assembly 20, the magnetic field generating element 32 is fixed on the slide-out assembly 20, and 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 slide-out assembly 20 is received in the slide slot 16 in the first position a. In this manner, the slide out assembly 20 may be caused to slide between the first position a and the second position B via the slide 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 in the housing 12 to allow the slide-back and slide-out of the slide-out assembly 20. 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 the content displayed by the display module and a signal for controlling the sliding of the sliding-out 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.
Referring to fig. 5, in some embodiments, the electronic device 100 includes a front camera 42, the slide-out assembly 20 includes a 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-out assembly 20. Of course, the user may turn on the front camera 42 and turn off the front camera 42 as the trigger signals, that is, when the user turns on the front camera 42, the slide-out assembly 20 is triggered to slide out, and when the user turns off the front camera 42, the slide-out assembly 20 is triggered to slide back. Therefore, the user can use the slide-out component 20 conveniently only by opening or closing the front camera according to the existing habit without performing other operations on the front camera.
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 be normally operated as the slide-out assembly 20 slides out according to the user's input, or may be received in the body 10 as the slide-out 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-out 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 slide-out assembly 20 is triggered to slide out, and when the user hangs up the call, the slide-out 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-out component 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 36 may control whether the functional devices 40 disposed on the lower portion of the carrier 22 are exposed by controlling the distance that the slide-out assembly 20 slides out. When multiple functional devices 40 are carried on the same plurality of carriers 22, the processor 36 may select the functional device 40 to be exposed by controlling the sliding movement of one of the carriers 22. Therefore, a plurality of sliding-out forms can be provided for the user, so that the user can select according to different scenes and requirements.
Referring to fig. 7, in some embodiments, the slide-out assembly 20 includes a threaded hole 24 disposed in the middle of the carrier 22 and a rotating screw 26 engaged with the threaded hole 24. The chute 16 includes a recess 162 located opposite the threaded aperture 24 and at the bottom of the chute 16. The electronic device 100 includes a driver 50 disposed in the recess 162. The drive means 50 comprises a motor 52 connected to the processor 36 and an output shaft (not shown) connected to the bottom of the rotary screw 26.
It is understood that processor 36 may control the sliding of slide out assembly 20 by controlling motor 52. When the user commands the slide-out assembly 20 to slide from the first position a to the second position B, the processor 36 controls the motor 52 to rotate forward, so that the output shaft drives the rotating screw 26 to rotate in the threaded hole 24, and the slide-out assembly 20 slides from the first position a to the second position B. When the user commands the slide-out assembly 20 to slide from the second position B to the first position a, the processor 36 controls the motor 52 to rotate in reverse, such that the output shaft rotates the rotating screw 26 within the threaded hole 24, thereby sliding the slide-out assembly 20 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 out assembly 20 using the hall element 34 and the magnetic field generating element 32, and can detect the state of the slide out assembly 20 in real time when the functional device 40 such as a front camera is carried on the slide out assembly 20, thereby determining the position of the functional device 40. In addition, the electronic device 100 according to the embodiment of the present invention may detect whether the slide out assembly 20 is pushed and control the slide out assembly to slide when the slide out assembly 20 is pushed, thereby implementing another triggering manner other than that the slide out assembly is triggered to slide by the user input.
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 carries the functional device 40 on the slide-out 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 slide-out 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.
Referring to fig. 8, the present invention provides a method for controlling a slide-out assembly. The slide-out module control method of the embodiment of the present invention may be used to detect the state of the slide-out module 20 of the electronic device 100 of the embodiment of the present invention.
The electronic device 100 comprises a body 10, a sliding-out component 20 is used for sliding between a first position A accommodated in the body 10 and a second position B exposed out of the body 10, and the control method comprises the following steps:
s12: detecting whether the slide out assembly 20 is pushed; and
s14: when the slide out assembly 20 is pushed, the slide out assembly 20 is controlled to slide to a predetermined position.
Referring to fig. 4, the present invention provides a detecting assembly 30. Detection assembly 30 includes a processor 36, processor 36 for detecting whether slide out assembly 20 is being pushed; and controlling the slide out assembly 20 to slide toward a predetermined position when the slide out assembly 20 is pushed.
The control method of the slide-out assembly and the detection assembly 30 of the embodiment of the invention can detect whether the slide-out assembly 20 is pushed or not and control the slide-out assembly 20 to slide when the slide-out assembly 20 is pushed, so that the sliding operation mode of controlling the slide-out assembly is simple, and the user experience can be improved.
It will be appreciated that it may be inconvenient in some scenarios when the user can only control the slide-out assembly 20 via the touch panel of the panel assembly 14. For example, when the user's hand is wet, an error is often made in entering the input on the panel assembly 14, and the user is required to dry his hand to improve the accuracy of the input. The control method of the slide-out assembly and the detection assembly 30 of the embodiment of the invention provide a sliding mode for controlling the slide-out assembly 20, namely, the slide-out assembly 20 is controlled by pushing, so that the use of a user is facilitated, and the experience of the user can be improved.
In the present invention, the slide-out assembly 20 is pushed, that is, the slide-out assembly 20 is subjected to an external force toward the inside of the body 10 in the sliding direction, and the external force causes the slide-out assembly 20 to generate a small displacement toward the inside of the body 10. For example, as shown in fig. 4, when the slide out member 20 is pushed by the external force F, the displacement of the slide out member 20 toward the inside of the body 1 is 0.2 mm.
In some embodiments, the electronic device 100 includes a motor 52 connected to the detecting assembly 30, the motor 52 is used for driving the sliding-out assembly 20 to slide, and the step S12 includes:
acquiring a sensing voltage generated by the motor 52 when the slide-out assembly 20 is pushed;
judging whether the sensing voltage is greater than a set voltage or not; and
when the sensing voltage is greater than the set voltage, it is determined that the sliding-out member 20 is pushed.
In certain embodiments, processor 36 is configured to: acquiring a sensing voltage generated by the motor 52 when the slide-out assembly 20 is pushed; judging whether the sensing voltage is greater than a set voltage or not; and judging that the slide-out assembly 20 is pushed when the sensed voltage is greater than the set voltage.
In this manner, detection and judgment as to whether the slide-out assembly 20 is pushed or not is achieved. Note that "pushing" herein refers to a motion that occurs under an external force, not a touch or a touch.
It will be appreciated that when the slide out assembly 20 is pushed, the rotary screw 26 connected to the carrier 22 of the slide out assembly 20 is rotated in the threaded hole 24, so that the output shaft of the motor 52 connected to the rotary screw 26 moves, thereby causing the coil (not shown) of the motor 52 to cut the magnetic induction lines and generate an induced current and form a sensing voltage. Specifically, referring to fig. 9, the sensing voltage is input to the positive input terminal of the comparator 37, the setting voltage is input to the comparator 37 from the negative input terminal of the comparator 37, and when the sensing voltage is greater than the setting voltage, the comparator 37 outputs a high level. Since the output terminal of the comparator 37 is connected to the processor 36, the processor 36 can determine whether the sensed voltage is greater than the set voltage according to the level.
In certain embodiments, step S14 includes:
determining the current relative position of slide out assembly 20;
judging whether the current relative position is a first position A or a second position B;
when the current relative position is the first position a, controlling the slide-out assembly 20 to slide to the second position B; and
when the current relative position is the second position B, the sliding-out component is controlled to slide towards the first position A.
In certain embodiments, processor 36 is configured to: determining the current relative position of slide out assembly 20; judging whether the current relative position is a first position A or a second position B; when the current relative position is the first position a, controlling the slide-out assembly 20 to slide to the second position B; and controlling the sliding-out component to slide towards the first position A when the current relative position is the second position B.
In this manner, it is achieved that the slide out assembly 20 is controlled to slide toward a predetermined position when the slide out assembly 20 is pushed.
It is understood that when the current relative position is the first position a, the slide out assembly 20 is fully received in the body 10, and the user pushes the slide out assembly 20 to slide out the slide out assembly 20, thereby controlling the slide out assembly 20 to slide to the second position B. When the current relative position is the second position B, the slide out assembly 20 is completely slid out from the body 10, and the user pushes the slide out assembly 20 to slide back the slide out assembly 20, thereby controlling the slide out assembly 20 to slide back to the first position a. In addition, when the current relative position is neither the first position a nor the second position B, an error message may be output because the slide-out assembly 20 whose current relative position is neither the first position a nor the second position B may be in a state of being slid or being stuck, etc., when it is not a normal condition for the push trigger, and the user intention cannot be inferred.
As previously described, processor 36 may control the sliding of slide out assembly 20 by controlling motor 52. When the current relative position is the first position a, the processor 36 controls the motor 52 to rotate forward, so that the output shaft drives the rotating screw 26 to rotate in the threaded hole 24, and the slide-out assembly 20 slides to the second position B. When the current relative position is the second position B, the processor 36 controls the motor 52 to rotate in reverse, so that the output shaft rotates the rotary screw 26 in the threaded hole 24, and the slide-out assembly 20 slides to the first position a.
Of course, rather than pushing trigger slide assembly 20 to move, slide assembly 20 may be triggered to move based on user input through panel assembly 14, slide assembly 20 may be triggered to move based on user depression of a physical key, and a trigger signal may be set such that processor 36 controls slide assembly 20 to move under certain conditions. For example, when the proximity sensor and earpiece 44 are carried on the carrier 22, the user may be triggered by answering and hanging up the phone. That is, when the user answers the phone, the slide-out assembly 20 is triggered to automatically slide out, and when the user hangs up the phone, the slide-out assembly 20 is triggered to automatically slide back. In summary, the sliding of the slide-out assembly 20 may be based on user operation, or may occur automatically in certain situations. Of course, the user may set the auto-slide or close the auto-slide in which cases are specific.
In some embodiments, the electronic device 100 includes a detection assembly 30, the detection assembly 30 includes a magnetic field generating element 32 and a hall element 34, the magnetic field generating element 32 and the hall element 34 are fixed to the body 10 and the slide-out assembly 20, respectively, and the step of determining the current relative position of the slide-out assembly 20 includes:
receiving the detection signal value output by the hall element 34; and
the current relative position of the slide out assembly 20 with respect to the body 10 is determined based on the value of the detection signal.
In certain embodiments, processor 36 is configured to: receiving the detection signal value output by the hall element 34; and determining the current relative position of slide out assembly 20 with respect to body 10 based on the value of the detection signal.
The hall element 34 and the magnetic field generating element 32 are used to determine the current relative position of the slide out assembly 20, and the state of the slide out assembly 20 can be detected in real time when the functional device 40 such as a front camera is carried on the slide out assembly 20, thereby determining the position of the functional device 40.
The principle of determining the current relative position of the slide-out assembly 20 using the hall element 34 and the magnetic field generating element 32 is based mainly on the characteristics of the hall element 34, i.e., the hall element 34 can sense the magnetic field generated by the magnetic field generating element 32 and output a corresponding signal according to the sensed magnetic induction. Since the magnetic induction intensity is correlated with the position of the relative magnetic field generating element 32, the relative position of the hall element 34 and the magnetic field generating element 32 can be determined by the signal output from the hall element 34. In addition, since the magnetic field generating element 32 and the hall element 34 are fixed to the body 10 and the slide out assembly 20, respectively, the magnetic field generating element 32 and the hall element 34 can generate a relative movement with the movement of the slide out assembly 20, and thus, the position of the slide out assembly 20 with respect to the body 10 can be indirectly determined by determining the relative positions of the hall element 34 and the magnetic field generating element 32. In this manner, the state of the slide-out assembly 20 can be simply and conveniently detected in real time.
In some embodiments, the step of determining the current relative position of slide out assembly 20 with respect to body 10 based on the detection signal value comprises:
reading an inquiry database, wherein the inquiry database comprises a plurality of preset signal values and a plurality of calibration relative positions, and each preset signal value corresponds to one calibration relative position; and
the query database is queried using the detected signal values to obtain the current relative position.
In some embodiments, the processor 36 is configured to read a query database, the query database including a plurality of predetermined signal values and a plurality of calibrated relative positions, each predetermined signal value corresponding to one calibrated relative position; and querying a query database using the detected signal values to obtain the current relative position.
Since each preset signal value corresponds to a nominal relative position, that is, each preset signal value corresponds to one and only one corresponding nominal relative position. In this way, data related to the detection signal values can be read in the query database according to the detection signal values, thereby realizing the determination of the current relative position according to the detection signal values.
In some embodiments, a control method comprises:
sliding out slide assembly 20 to a plurality of nominal relative positions; and
the detection signal value output by the hall element 34 corresponding to each calibrated relative position is obtained as the preset signal value corresponding to the calibrated relative position.
In certain embodiments, processor 36 is configured to: sliding out slide assembly 20 to a plurality of nominal relative positions; and acquiring a detection signal value output by the hall element 34 corresponding to each calibrated relative position as a preset signal value corresponding to the calibrated relative position.
By recording the nominal relative position and the value of the detection signal output by the hall element 34 at that nominal relative position, the correspondence between the position at which the slide-out assembly 20 is located and the detection signal output by the hall element 34 can be obtained. In this way, in the subsequent position detection process, as long as the detection signal value output by the hall element 34 is obtained, the current relative position of the slide-out assembly 20 relative to the body 10 can be reversely deduced through the corresponding relationship determined in this step.
Referring to fig. 10, in some embodiments, the control method includes:
and associating the plurality of preset signal values and the plurality of calibrated relative positions into a lookup table or fitting into a relation curve.
In some embodiments, the processor 36 is configured to correlate the plurality of preset signal values and the plurality of nominal relative positions to a look-up table or fit a relationship curve.
In this way, the calibration relative position of the slide-out assembly 20 and the detection signal value outputted by the hall element 34 as a preset signal value are more accurately corresponded while facilitating storage and query. It will be understood that during the actual detection process, the slide-out assembly 20 does not necessarily slide exactly to the nominal relative position, but may slide between two nominal relative positions, in which case it is not accurate to directly use the preset signal value corresponding to the nominal relative position. Of course, the current relative position of slide out assembly 20 may be calculated using an average of the two nominal relative positions or by combining the two nominal relative positions by weight. However, considering that the preset signal values do not necessarily vary linearly, it is more preferable to fit a plurality of preset signal values and a plurality of nominal relative positions to a relationship curve. In this way, the accuracy of the current relative position determined from the plurality of preset signal values and the plurality of calibrated relative positions can be ensured as much as possible.
Note that a, marked on the horizontal axis in fig. 10, represents the relative position of the slide-out assembly 20 of fig. 2 when it is fully received in the slide channel 16, i.e., the first position a; b represents the relative position of slide assembly 20 of fig. 1 when it is fully slid out of chute 16, i.e., second position B; c represents the relative position of slide assembly 20 half way out of chute 16 in fig. 3, third position C.
Referring to fig. 11, in some embodiments, the control method includes:
s16: determining whether the slide-out assembly 20 is slid to a predetermined position; and
s18: when the slide out assembly 20 is not slid to a predetermined position, an alarm signal is output.
In some embodiments, processor 36 is configured to determine whether slide out assembly 20 has slid to a predetermined position; and outputs an alarm signal when the slide out assembly 20 is not slid to a predetermined position.
In this manner, the user may be prompted for intervention to avoid the slide-out assembly 20 or body 10 from interfering with function or becoming damaged by not sliding to a predetermined position.
It will be appreciated that due to the complexity of the real world situation, there is a possibility that the slide-out assembly 20 will not slide to a predetermined position, such as a jam. If the abnormal condition is not judged and alarmed, the obstacle causing the abnormality cannot be eliminated. In addition, when the slide out assembly 20 is stuck and the obstacle is not removed for a long time, the motor 52 is continuously operated, thereby causing damage to the slide out assembly 20 or the body 10. The alarm mechanism is set so that when an abnormality occurs, the processor 36 can perform corresponding operations in time, such as turning off the motor 52, and avoiding damage to the slide-out assembly 20 or the body 10.
In certain embodiments, step S16 includes:
receiving a plurality of detection signal values output by the hall element 34 within a preset time;
determining a predetermined signal value corresponding to the predetermined position according to the predetermined position;
judging whether the predetermined signal value is consistent with a plurality of detection signal values; and
when the predetermined signal value does not coincide with the plurality of detection signal values, it is judged that the slide-out member 20 has not slid to the predetermined position.
In certain embodiments, processor 36 is configured to: receiving a plurality of detection signal values output by the hall element 34 within a preset time; determining a predetermined signal value corresponding to the predetermined position according to the predetermined position; judging whether the predetermined signal value is consistent with a plurality of detection signal values; and determining that the slide-out member 20 is not slid to the predetermined position when the predetermined signal value is not in agreement with the plurality of detection signal values.
In this manner, the judgment as to whether the slide-out member 20 is slid to the predetermined position is achieved.
It is understood that, when the plurality of detection signal values coincide for a preset time, the state of the slide out assembly 20 is stationary, and the stationary state may be caused by a case where the slide out assembly 20 has slid to a predetermined position to normally stop sliding, and a case where the slide out assembly 20 has not slid to the predetermined position to abnormally stop sliding. By comparing the plurality of identical detection signal values with the predetermined signal values corresponding to the predetermined positions, it is possible to determine whether the slide-out member 20 has slid to the predetermined position, thereby determining whether an abnormal situation has occurred.
Of course, the current relative position of the slide-out member 20 may be determined according to a plurality of consistent detection signal values, and then compared with the current relative position and the predetermined position, so as to determine whether the slide-out member 20 slides to the predetermined position and determine whether an abnormal condition occurs.
In some embodiments, a control method comprises:
receiving a first user input; and
the slide out assembly 20 is controlled to slide from the current relative position to the predetermined position according to the first user input.
In some embodiments, the processor 36 is configured to receive a first user input; and controlling the slide-out assembly 20 to slide from the current relative position to the predetermined position according to the first user input.
In this manner, it is possible to continue sliding the slide out member 20 from the current relative position where the abnormality occurs to the predetermined position after the user intervention to remove the obstacle without sliding the slide out member 20 to the predetermined position.
In some embodiments, a control method comprises:
accepting a second user input; and
the slide out assembly 20 is controlled to slide from the current relative position to the first position a according to the second user input.
In some embodiments, the processor 36 is configured to receive a second user input; and controlling the slide out assembly 20 to slide from the current relative position to the first position a according to the second user input.
In this way, in the case where the slide-out member 20 is not slid to the predetermined position, the user intervenes to remove the obstacle, and then slides the slide-out member 20 from the current relative position where the abnormality occurs to the first position a, thereby achieving the reset.
In actual operation, icons in the above two modes can be displayed on the panel assembly 14, and the user can select the two modes through the panel assembly 14. That is, after the occurrence of the anomaly, the user may choose to continue sliding from the current relative position where the anomaly occurred to the preset position, or to the first position a.
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 (21)
1. A control method of a slide-out assembly, wherein the slide-out assembly is used for an electronic device, the electronic device comprises a body and a detection assembly, the slide-out assembly is used for sliding between a first position accommodated in the body and a second position exposed from the body, the detection assembly comprises a magnetic field generation element and a hall element, and the magnetic field generation element and the hall element are respectively fixed on the body and the slide-out assembly, the control method comprises the following steps:
detecting whether the sliding-out component is pushed; and
when the sliding-out component is pushed, the sliding-out component is controlled to slide to a preset position;
receiving a detection signal value output by the Hall element; and
determining a current relative position of the slide-out assembly relative to the body according to the detection signal value;
judging whether the sliding-out component slides to the preset position; and
when the sliding-out component does not slide to the preset position, a first icon and a second icon are displayed on the control panel component, the first icon is used for indicating a first sliding mode of sliding from the current relative position to the preset position, and the second icon is used for indicating a second sliding mode of sliding from the current relative position to the first position.
2. A control method of a slide out assembly as claimed in claim 1, wherein said electronic device includes a motor connected to said slide out assembly, said motor for driving said slide out assembly to slide, said step of detecting whether said slide out assembly is pushed comprises:
acquiring a sensing voltage generated by the motor when the sliding-out component is pushed;
judging whether the sensing voltage is greater than a set voltage or not; and
and when the sensing voltage is greater than the set voltage, judging that the sliding-out assembly is pushed.
3. A control method of a slide out assembly as claimed in claim 1, wherein said step of controlling said slide out assembly to slide to a predetermined position when said slide out assembly is pushed comprises:
determining a current relative position of the slide out assembly;
judging whether the current relative position is the first position or the second position;
when the current relative position is the first position, controlling the sliding-out component to slide towards the second position; and
when the current relative position is the second position, controlling the sliding-out component to slide towards the first position.
4. A control method for a slide out assembly as claimed in claim 1, wherein said step of determining a current relative position of said slide out assembly with respect to said body based on said detection signal value comprises:
reading an inquiry database, wherein the inquiry database comprises a plurality of preset signal values and a plurality of calibration relative positions, and each preset signal value corresponds to one calibration relative position; and
and querying the query database by using the detection signal value to obtain the current relative position.
5. A control method for a slide out assembly as claimed in claim 4, wherein said control method comprises:
sliding the slide-out assembly to the plurality of nominal relative positions; and
and acquiring a detection signal value output by the Hall element corresponding to each calibrated relative position as the preset signal value corresponding to the calibrated relative position.
6. A control method for a slide out assembly as claimed in claim 5, wherein said control method comprises:
and associating the preset signal values and the calibration relative positions into a lookup table or fitting into a relation curve.
7. A control method of a slide out assembly as claimed in claim 1, wherein said step of determining whether said slide out assembly slides to said predetermined position comprises:
receiving a plurality of detection signal values output by the Hall element within a preset time;
determining a predetermined signal value corresponding to the predetermined position according to the predetermined position;
judging whether the predetermined signal value is consistent with the plurality of detection signal values; and
when the predetermined signal value is inconsistent with the plurality of detection signal values, judging that the sliding-out component does not slide to the predetermined position.
8. A control method for a slide out assembly as claimed in claim 1, wherein said control method comprises:
receiving a first user input; and
controlling the slide-out assembly to slide from the current relative position to the predetermined position according to the first user input.
9. A control method for a slide out assembly as claimed in claim 1, wherein said control method comprises:
accepting a second user input; and
controlling the sliding-out component to slide from the current relative position to the first position according to the second user input.
10. A detection assembly for detecting a state of a slide-out assembly for an electronic device, the electronic device comprising a body, the slide-out assembly for sliding between a first position received in the body and a second position exposed from the body, the detection assembly comprising a processor for:
detecting whether the sliding-out component is pushed; and
when the sliding-out component is pushed, the sliding-out component is controlled to slide to a preset position;
receiving a detection signal value output by a Hall element; and
determining a current relative position of the slide-out assembly relative to the body according to the detection signal value;
judging whether the sliding-out component slides to the preset position; and
when the sliding-out component does not slide to the preset position, a first icon and a second icon are displayed on the control panel component, the first icon is used for indicating a first sliding mode of sliding from the current relative position to the preset position, and the second icon is used for indicating a second sliding mode of sliding from the current relative position to the first position.
11. The detection assembly of claim 10, wherein the electronics include a motor coupled to the slide-out assembly, the motor configured to drive the slide-out assembly to slide, the processor configured to:
acquiring a sensing voltage generated by the motor when the sliding-out component is pushed;
judging whether the sensing voltage is greater than a set voltage or not; and
and when the sensing voltage is greater than the set voltage, judging that the sliding-out assembly is pushed.
12. The detection assembly of claim 10, wherein the processor is to:
determining a current relative position of the slide out assembly;
judging whether the current relative position is the first position or the second position;
when the current relative position is the first position, controlling the sliding-out component to slide towards the second position; and
when the current relative position is the second position, controlling the sliding-out component to slide towards the first position.
13. The detection assembly of claim 10, wherein the processor is to:
reading an inquiry database, wherein the inquiry database comprises a plurality of preset signal values and a plurality of calibration relative positions, and each preset signal value corresponds to one calibration relative position; and
and querying the query database by using the detection signal value to obtain the current relative position.
14. The detection assembly of claim 13, wherein the processor is to:
sliding the slide-out assembly to the plurality of nominal relative positions; and
and acquiring a detection signal value output by the Hall element corresponding to each calibrated relative position as the preset signal value corresponding to the calibrated relative position.
15. The detection assembly of claim 14, wherein the processor is to:
and associating the preset signal values and the calibration relative positions into a lookup table or fitting into a relation curve.
16. The detection assembly of claim 10, wherein the processor is to:
receiving a plurality of detection signal values output by the Hall element within a preset time;
determining a predetermined signal value corresponding to the predetermined position according to the predetermined position;
judging whether the predetermined signal value is consistent with the plurality of detection signal values; and
when the predetermined signal value is inconsistent with the plurality of detection signal values, judging that the sliding-out component does not slide to the predetermined position.
17. The detection assembly of claim 10, wherein the processor is to:
receiving a first user input; and
controlling the slide-out assembly to slide from the current relative position to the predetermined position according to the first user input.
18. The detection assembly of claim 10, wherein the processor is to:
accepting a second user input; and
controlling the sliding-out component to slide from the current relative position to the first position according to the second user input.
19. An electronic device, comprising:
a body;
the sliding-out assembly is used for sliding between a first position accommodated in the body and a second position exposed out of the body; and
a detection assembly for detecting a state of the slide-out assembly, the detection assembly including a magnetic field generating element, a hall element, and a processor, the magnetic field generating element and the hall element being fixed to the body and the slide-out assembly, respectively, the processor for detecting whether the slide-out assembly is pushed and controlling the slide-out assembly to slide to a predetermined position when the slide-out assembly is pushed, and for receiving a detection signal value output from the hall element, and for determining a current relative position of the slide-out assembly with respect to the body based on the detection signal value, and for determining whether the slide-out assembly slides to the predetermined position, and for displaying a first icon and a second icon on a control panel assembly when the slide-out assembly does not slide to the predetermined position, the first icon being used for indicating a first sliding manner of sliding from the current relative position to the predetermined position, the second icon is used for indicating a second sliding mode of sliding from the current relative position to the first position.
20. The electronic device of claim 19, wherein the electronic device comprises a motor coupled to the slide-out assembly, the motor configured to drive the slide-out assembly to slide, the processor configured to:
acquiring a sensing voltage generated by the motor when the sliding-out component is pushed;
judging whether the sensing voltage is greater than a set voltage or not; and
and when the sensing voltage is greater than the set voltage, judging that the sliding-out assembly is pushed.
21. The electronic device of claim 19, wherein the processor is to:
determining a current relative position of the slide out assembly;
judging whether the current relative position is the first position or the second position;
when the current relative position is the first position, controlling the sliding-out component to slide towards the second position; and
when the current relative position is the second position, controlling the sliding-out component to slide towards the first position.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810229770.1A CN110311996B (en) | 2018-03-20 | 2018-03-20 | Control method of sliding-out assembly, detection assembly and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810229770.1A CN110311996B (en) | 2018-03-20 | 2018-03-20 | Control method of sliding-out assembly, detection assembly and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110311996A CN110311996A (en) | 2019-10-08 |
CN110311996B true CN110311996B (en) | 2021-04-13 |
Family
ID=68073459
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810229770.1A Active CN110311996B (en) | 2018-03-20 | 2018-03-20 | Control method of sliding-out assembly, detection assembly and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110311996B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111131568B (en) * | 2019-12-23 | 2021-07-16 | 华为技术有限公司 | Electronic device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101387811A (en) * | 2007-09-12 | 2009-03-18 | 富士能株式会社 | Mobile device |
CN102918822A (en) * | 2010-05-28 | 2013-02-06 | 诺基亚公司 | Handling user inputs |
CN103713849A (en) * | 2013-12-26 | 2014-04-09 | 华为终端有限公司 | Method and device for image shooting and terminal device |
CN105515454A (en) * | 2016-02-17 | 2016-04-20 | 国网山东省电力公司滨州供电公司 | Four-phase permanent magnet brushless direct current motor servo control system |
CN205510137U (en) * | 2016-02-26 | 2016-08-24 | 维沃移动通信有限公司 | Electronic device |
CN106094990A (en) * | 2016-06-12 | 2016-11-09 | 张帆 | The screen maximized electronic equipment of accounting and using method thereof |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102957763A (en) * | 2011-08-18 | 2013-03-06 | 希姆通信息技术(上海)有限公司 | Mobile phone |
CN104023105A (en) * | 2014-06-13 | 2014-09-03 | 广东欧珀移动通信有限公司 | Detection device and detection method of angled rotation of camera of mobile terminal |
CN106856516A (en) * | 2015-12-09 | 2017-06-16 | 小米科技有限责任公司 | Electronic equipment |
CN105554200A (en) * | 2016-02-16 | 2016-05-04 | 广东欧珀移动通信有限公司 | Mobile terminal |
CN107710115B (en) * | 2016-03-31 | 2021-01-29 | 深圳市汇顶科技股份有限公司 | Touch response module, keyboard, touch device and touch equipment with feedback function |
-
2018
- 2018-03-20 CN CN201810229770.1A patent/CN110311996B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101387811A (en) * | 2007-09-12 | 2009-03-18 | 富士能株式会社 | Mobile device |
CN102918822A (en) * | 2010-05-28 | 2013-02-06 | 诺基亚公司 | Handling user inputs |
CN103713849A (en) * | 2013-12-26 | 2014-04-09 | 华为终端有限公司 | Method and device for image shooting and terminal device |
CN105515454A (en) * | 2016-02-17 | 2016-04-20 | 国网山东省电力公司滨州供电公司 | Four-phase permanent magnet brushless direct current motor servo control system |
CN205510137U (en) * | 2016-02-26 | 2016-08-24 | 维沃移动通信有限公司 | Electronic device |
CN106094990A (en) * | 2016-06-12 | 2016-11-09 | 张帆 | The screen maximized electronic equipment of accounting and using method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN110311996A (en) | 2019-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110312001B (en) | Position detection method and detection assembly of sliding-out structure and electronic device | |
CN108833623B (en) | Sliding control method and device of sliding assembly and electronic device | |
EP2821897B1 (en) | Finger detection on touch screens for mobile devices | |
CN109542174B (en) | Method and device for correcting sliding of sliding component | |
CN108829461B (en) | Camera starting control method and device and electronic equipment | |
CN109246361B (en) | Camera module control method and device | |
CN108833699B (en) | Electronic device and control method and device of sliding assembly of electronic device | |
CN108924283B (en) | Sliding control method and device of sliding assembly and electronic device | |
CN108924286B (en) | Electronic device and control method and device of sliding assembly of electronic device | |
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 | |
CN108833697B (en) | Control method of sliding assembly, control assembly, electronic device and storage medium | |
CN110311996B (en) | Control method of sliding-out assembly, detection assembly and electronic device | |
CN108924342B (en) | Mobile terminal, control method thereof, control assembly and storage medium | |
CN108833702A (en) | Control method, control assembly, mobile terminal and the storage medium of mobile terminal | |
CN108924287B (en) | Anti-falling control method and device for sliding assembly and electronic device | |
CN110311997B (en) | Position detection method of slide-out assembly, detection assembly and electronic device | |
CN109151106B (en) | Sliding control method and device for sliding assembly, electronic device and storage medium | |
CN108965580B (en) | Anti-falling control method and device for sliding assembly and electronic device | |
CN109460178B (en) | Sliding display method and device of sliding assembly | |
CN110312000B (en) | Control method of sliding-out structure, detection assembly and electronic device | |
CN108897373B (en) | Electronic device and control method and device of sliding assembly of electronic device | |
CN108769319B (en) | Electromagnetic interference preventing speed changing method for sliding assembly, driving assembly, device and medium | |
CN108900666B (en) | Elastic frame prompting method and device and electronic equipment | |
US20190152241A1 (en) | Paper tray device capable of detecting amount of paper and method of detecting amount of paper with paper tray 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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |