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, anelectronic device 100 according to an embodiment of the invention includes abody 10, a sliding-outstructure 20, and a detectingelement 30. The sliding-outstructure 20 is adapted to slide between a first position a accommodated in thebody 10 and a second position B exposed from thebody 10. Thedetecting assembly 30 is used for detecting the position of the sliding-outstructure 20, thedetecting assembly 30 includes at least onedistance sensor 32 and aprocessor 36, for convenience of understanding, the following description will use afirst distance sensor 32 and asecond distance sensor 34 as at least one distance sensor, thefirst distance sensor 32 and thesecond distance sensor 34 are arranged at intervals along the sliding direction of the sliding-outstructure 20 on the side of the sliding-outstructure 20 facing thebody 10, in the first position a, thefirst distance sensor 32 and thesecond distance sensor 34 are located in thebody 10, in the second position B, at least thefirst distance sensor 32 is exposed out of thebody 10, and theprocessor 36 is used for receiving the detection signal values output by thefirst distance sensor 32 and thesecond distance sensor 34 and determining the current relative position of the sliding-outstructure 20 relative to thebody 10 according to the detection signal values.
It should be noted that the sliding direction of the sliding-outstructure 20 is inward or outward of thebody 10, and here, "thefirst distance sensor 32 and thesecond distance sensor 34 are disposed at an interval on the side of the sliding-outstructure 20 facing thebody 10 along the sliding direction of the sliding-outstructure 20" may be understood as that thefirst distance sensor 32 and thesecond distance sensor 34 may move inward or outward of thebody 10 along with the sliding-outstructure 20, and output the detection signal value according to the distance change of thefirst distance sensor 32 and thesecond distance sensor 34 relative to the body, of course, thefirst distance sensor 32 and thesecond distance sensor 34 are not limited to the above mentioned positions, but may be disposed on the sliding-outstructure 20 or the proper position of thebody 10 on the premise that the normal and stable output and acceptance of the detection signal value are satisfied.
In some embodiments, thebody 10 is formed with aslide slot 16, and the slide-outstructure 20 is received in theslide slot 16 in the first position a. In this manner, the slide-outstructure 20 can be made to slide between the first position a and the second position B by theslide groove 16.
Specifically, thebody 10 includes ahousing 12 and adisplay assembly 14, and thehousing 12 and thedisplay assembly 14 are combined to constitute an enclosed structure. Theslide slot 16 opens in thehousing 12 to allow the slide-back and slide-out of the slide-outstructure 20. It will be appreciated that thechute 16 may be open on either side of thehousing 12. Preferably, thechute 16 opens at the top edge of thehousing 12. Thus, the use habit of the user can be met.
Thedisplay assembly 14 includes a touch panel (not shown) and acover 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-outstructure 20.
The material of thecover plate 142 may be made of a light-transmitting material such as glass, ceramic, or sapphire. Since thecover 142 is an input part of theelectronic device 100, thecover 142 is often touched by a collision or a scratch. For example, when the user places theelectronic device 100 in a pocket, thecover plate 142 may be scratched by a key in the pocket of the user and damaged. Therefore, the material of thecover 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 thecover plate 142 to improve the scratch resistance of thecover plate 142.
The touch panel and thecover 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 thecover plate 142, but also can transmit light emitted by the touch panel.
Referring to fig. 5, in some embodiments, theelectronic device 100 includes afront camera 42, the slide-outstructure 20 includes acarrier 22, and thefront camera 42 is disposed on thecarrier 22. In this manner, thefront camera 42 can slide with the slide-outstructure 20. Of course, the user may turn on thefront camera 42 and turn off thefront camera 42 as the trigger signal, that is, when the user turns on thefront camera 42, the slide-outstructure 20 is triggered to slide out, and when the user turns off thefront camera 42, the slide-outstructure 20 is triggered to slide back. Thus, the user can use the slide-outstructure 20 conveniently by simply turning on or off thefront camera 42 according to the existing habit without performing additional operations with respect to the slide-out structure.
In addition to thefront camera 42, otherfunctional devices 40, such as a light distance sensor, a proximity sensor, and ahandset 44, may be carried on thecarrier 22. Thesefunctional devices 40 may be exposed from thebody 10 to be normally operated as the slide-outstructure 20 slides out according to the input of the user, or may be received in thebody 10 as the slide-outstructure 20 slides back according to the input of the user. Therefore, through holes can be formed in thedisplay assembly 14 as few as possible, which is beneficial to meeting the design requirement of the whole screen of theelectronic device 100.
Referring to fig. 6-7, specifically, when the light distance sensor is carried on thecarrier 22, the light distance sensor may be disposed on the top of thecarrier 22, that is, when the sliding-outstructure 20 is completely accommodated in the slidingslot 16, the light distance sensor may still be exposed from the top of thecarrier 22, so as to sense light in real time. When the proximity sensor andearpiece 44 are carried on thecarrier 22, the user can be triggered to answer and hang up the phone, i.e., the slide outmechanism 20 is triggered to slide out when the user answers the phone and the slide outmechanism 20 is triggered to slide back when the user hangs up the phone. Therefore, the user only needs to answer or hang up the phone according to the existing habit without performing other operations on the sliding-outstructure 20, and the use of the user can be facilitated.
It will be appreciated that a plurality offunctional devices 40 may be carried on thesame carrier 22, or may be carried on a plurality ofcarriers 22. When a plurality offunctional devices 40 are carried on thesame carrier 22, the plurality offunctional devices 40 may be arranged longitudinally, and theprocessor 36 may control whether thefunctional devices 40 disposed on the lower portion of thecarrier 22 are exposed by controlling the distance that the slide-outstructure 20 slides out. When multiplefunctional devices 40 are carried on the same plurality ofcarriers 22, theprocessor 36 may select thefunctional device 40 to be exposed by controlling the sliding movement of one of thecarriers 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. 8, in some embodiments, the slide-outstructure 20 includes a threadedhole 24 disposed in the middle of thecarrier 22 and arotating screw 26 engaged with the threadedhole 24. Thechute 16 includes arecess 162 located opposite the threadedaperture 24 and at the bottom of thechute 16. Theelectronic device 100 includes adriver 50 disposed in therecess 162. The drive means 50 includes adrive motor 52 connected to theprocessor 36 and an output shaft (not shown) connected to the bottom of therotary screw 26.
It will be appreciated that theprocessor 36 may control the sliding movement of the slide outstructure 20 by controlling thedrive motor 52. When the user commands the slide-outstructure 20 to slide from the first position a to the second position B, theprocessor 36 controls the drivingmotor 52 to rotate forward, so that the output shaft drives therotating screw 26 to rotate in the threadedhole 24, and the slide-outstructure 20 slides from the first position a to the second position B. When the user commands the slide-outstructure 20 to slide from the second position B to the first position a, theprocessor 36 controls the drivingmotor 52 to rotate in reverse, so that the output shaft drives therotating screw 26 to rotate in the threadedhole 24, and the slide-outstructure 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.
Theelectronic device 100 of the embodiment of the invention determines the current relative position of the slide-outstructure 20 by using thefirst distance sensor 32 and thesecond distance sensor 34, and can detect the state of the slide-outstructure 20 in real time when thefunctional device 40 such as a front camera is carried on the slide-outstructure 20, thereby determining the position of thefunctional device 40. In addition, theelectronic device 100 according to the embodiment of the invention can receive the detection instruction output by the at least two detection elements based on the touch input of the user when the sliding-outstructure 20 is located at the second position B, and control the sliding-outstructure 20 to slide from the second position B to the first position a according to the detection instruction, so that the sliding-outstructure 20 can be prevented from being mistakenly touched to slide, and the stability of controlling the sliding of the sliding-outstructure 20 is improved. For convenience of description, the number of the detecting elements is two, and the two detecting elements are the first detectingelement 37 and the second detectingelement 38, respectively, which will be described in further detail below. Of course, it is understood that in other embodiments, the number of detection elements may be other numbers such as 3, 4, etc., and thus, the following examples should not be taken as limiting herein.
The first detectingelement 37 and the second detectingelement 38 may be touch sensors or sensing elements with touch detection. The surface of the touch sensor is a layer of touch screen, a uniform electric field is added to four vertexes RT, RB, LT and LB of the touch screen, so that a uniform voltage is distributed on the lower layer (indium oxide) ITO GLASS, the upper layer is a signal receiving device, and when a pen or a finger presses any point on the surface, the controller detects that the resistance changes at the finger pressing position, so that the coordinate is changed, and touch input is generated.
Referring to fig. 4, the first detectingelement 37 and the second detectingelement 38 can be disposed on the opposite sides, top and side (as shown in fig. 5) of the sliding-outstructure 20. When the sliding-outstructure 20 is located at the second position B, the touch information of the first detectingelement 37 and the second detectingelement 38 needs to be received at the same time, and in order to prevent the sliding-outstructure 20 from being operated erroneously due to the first detectingelement 37 and the second detectingelement 38 being touched erroneously, theprocessor 36 needs to receive the detection instruction of the first detectingelement 37 and the second detectingelement 38 after determining that the detection signal of the sliding-outstructure 20 is located at the second position B, and when the first detectingelement 37 and the second detectingelement 38 are located at the first position a or other positions, theelectronic device 100 keeps the first detectingelement 37 and the second detectingelement 38 in the closed state, so that the erroneous operation can be prevented, the power consumption of theelectronic device 100 can be saved, and the service life of theelectronic device 100 can be prolonged.
It is understood that thefunctional device 40 such as thefront camera 42 needs to be exposed from themain body 10, otherwise it cannot operate normally. Theelectronic device 100 according to the embodiment of the present invention carries thefunctional device 40 on the sliding-outstructure 20, so that thefunctional device 40 is accommodated in themain body 10 when the operation is not required, and is exposed from themain body 10 along with the sliding-outstructure 20 when the operation is required. In this way, it is not necessary to provide a through hole for exposing thefunctional device 40 such as thefront camera 42 on thedisplay module 14, so that the screen occupation ratio is increased, and the user experience is improved.
Referring to fig. 9, the present invention provides a method for controlling the sliding-outstructure 20. The method for controlling the slide-outstructure 20 according to the embodiment of the present invention may be used to detect the state of the slide-outstructure 20 of theelectronic device 100 according to the embodiment of the present invention.
Theelectronic device 100 comprises abody 10, a sliding-outstructure 20 for sliding between a first position A accommodated in thebody 10 and a second position B exposed from thebody 10, and the control method comprises the following steps:
s12: when the slide-outstructure 20 is located at the second position B, receiving a detection instruction output by at least two detection elements based on a user touch input; and
s14: and controlling the sliding-outstructure 20 to slide from the second position B to the first position A according to the detection instruction.
Referring to fig. 4, the present invention provides a detectingassembly 30, wherein the detectingassembly 30 includes aprocessor 36, and theprocessor 36 is configured to: when the slide-outstructure 20 is located at the second position B, receiving a detection instruction output by thefirst detection element 37 and thesecond detection element 38 based on a touch input of a user; and controlling the sliding-outstructure 20 to slide from the second position B to the first position A according to the detection instruction.
According to the control method of the slide-outstructure 20 of the embodiment of the invention, theprocessor 36 processes the detection instructions output by thefirst detection element 37 and thesecond detection element 38 touched by the user and controls the slide of the slide-outstructure 20, so that the slide of the slide-outstructure 20 due to mistaken touch can be prevented, and the stability of controlling the slide of the slide-outstructure 20 and the operability of theelectronic device 100 are improved.
In an embodiment of the present invention, theelectronic device 100 includes a drivingmotor 52 connected to the sliding-outstructure 20, the drivingmotor 52 is used for driving the sliding-outstructure 20 to slide, and the step of controlling the sliding-outstructure 20 to slide from the second position B to the first position a according to the detection instruction includes:
s12: and controlling the drivingmotor 52 to drive the sliding-outstructure 20 to slide from the second position B to the first position A according to the detection instruction.
The drivingmotor 52 is controlled to drive the sliding of the sliding-outstructure 20 through the confirmation of the detection instruction, so that the sliding process of the sliding-outstructure 20 is more stable without manual sliding, the unsmooth sliding caused by too small or too large manual sliding force can be avoided, even the damage to the sliding-outstructure 20 is avoided, and the safety and the experience are improved.
Referring to fig. 11, in some embodiments, the control method includes the steps of:
s16: determining the current relative position of the slide outstructure 20;
s18: judging whether the current position is a first position A or a second position B; and
s20: and when the current relative position is the second position B, controlling the at least two detection elements to be opened to receive touch input of a user.
First, it is determined that the current relative position of the sliding-outstructure 20 is the second position B, so as to avoid the sliding-outstructure 20 and even theelectronic device 100 from being damaged due to the abnormal operation of the drivingmotor 52 when the sliding-outstructure 20 is at the first position a or between the first position a and the second position B, and improve the safety of the sliding-outstructure 20 and theelectronic device 100. It can be understood that when the current relative position of the sliding-outstructure 20 is not the second position B, the first detectingelement 37 and the second detectingelement 38 are in the closed state, so that the power of theelectronic device 100 can be saved to prolong the service time.
In an embodiment of the present invention, the detectingassembly 30 includes afirst distance sensor 32 and asecond distance sensor 34 disposed on the sliding-outstructure 20, wherein in the first position a, thefirst distance sensor 32 and thesecond distance sensor 34 are located in the body, and in the second position B, thefirst distance sensor 32 and thesecond distance sensor 34 are exposed from thebody 10, and the step of determining the current relative position of the sliding-outstructure 20 includes:
receiving the detection signal values output by the first andsecond distance sensors 32 and 34: and
the current relative position of the slide-outstructure 20 with respect to thebody 10 is determined based on the detection signal value.
The control method and thedetection assembly 30 of the slide-outstructure 20 of the embodiment of the invention determine the current relative position of the slide-outstructure 20 by using thefirst distance sensor 32 and thesecond distance sensor 34, and can detect the state of the slide-outstructure 20 in real time when thefunctional device 40 such as a front camera is carried on the slide-outstructure 20, thereby determining the position of thefunctional device 40.
The control method of the slide-outstructure 20 and the operation principle of thedetection assembly 30 according to the embodiment of the present invention are mainly based on the characteristics that thefirst distance sensor 32 and thesecond distance sensor 34 have the distance measuring function. The distance sensor comprises an infrared transmitting tube and an infrared receiving tube, and when the time for receiving the infrared rays transmitted by the transmitting tube by the receiving tube is short, the distance is close; when the receiving tube receives the infrared rays emitted by the emitting tube for a longer time, the distance is longer. In an embodiment of the present invention, the measured distance is a relative distance between the first andsecond distance sensors 32 and 34 and thebody 10.
When the sliding-outstructure 20 is accommodated in thebody 10, the infrared rays emitted by thefirst distance sensor 32 and thesecond distance sensor 34 collide with the inner wall of thechute 16, are reflected and are received by the receiver, the distance is short, the required time is short, the time spent is set as a limit value, and the sliding-outstructure 20 is at the first position a; when the sliding-outstructure 20 is exposed out of thebody 10, there are two situations, namely, thefirst distance sensor 32 is exposed out of thebody 10, thesecond distance sensor 34 is still located at the part of the sliding-outstructure 20 exposed out of thebody 10, and thefirst distance sensor 32 and thesecond distance sensor 34 are both located at the part of the sliding-outstructure 20 exposed out of thebody 10. In the two cases, the time taken by the receiving tube to receive the infrared rays emitted by the emitting tube is longer, even the reflected infrared rays cannot be received, so the duration exceeds a limit value, the time taken in the second case is longer than that in the first case, the sliding-outstructure 20 is located at the second position B, and more, for the first case, the sliding-outstructure 20 has a third position C, and the third position C is located between the first position A and the second position B.
The distances of the first andsecond distance sensors 32 and 34 with respect to thebody 10 are determined according to the sum of the sensed distance measuring times of the first andsecond distance sensors 32 and 34. Since the length of time is related to the position relative to the first andsecond distance sensors 32 and 34 and the length of time is related to the length of the distance, the longer the slide-outstructure 20 slides out, the longer the receiving time, and the slide-outstructure 20 can be determined to be located at the first position a, the second position B or the third position C by comparing the lengths of time. The relative positions of the first andsecond distance sensors 32 and 34 can be determined from the signals output by the first andsecond distance sensors 32 and 34.
In addition, since the first andsecond distance sensors 32 and 34 are fixed to thebody 10 and the slide-outstructure 20, respectively, the first andsecond distance sensors 32 and 34 can generate relative movement with the movement of the slide-outstructure 20, and thus, the position of the slide-outstructure 20 with respect to thebody 10 can be indirectly determined by determining the relative position of thesecond distance sensor 34 and thefirst distance sensor 32. In this manner, the state of the slide-outstructure 20 can be detected simply and conveniently in real time.
In certain embodiments, step S14 includes:
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, theprocessor 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 the slide outstructure 20 to a plurality of nominal relative positions; and
the detection signal value output by thefirst distance sensor 32 and thesecond distance sensor 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 the slide outstructure 20 to a plurality of nominal relative positions; and
the detection signal value output by thefirst distance sensor 32 and thesecond distance sensor 34 corresponding to each calibrated relative position is obtained as the preset signal value corresponding to the calibrated relative position.
By recording the nominal relative position and the values of the detection signals output by the first andsecond distance sensors 32, 34 at the nominal relative position, the correspondence between the position at which the slide-outstructure 20 is located and the detection signals output by the first andsecond distance sensors 32, 34 can be obtained. In this way, in the subsequent position detection process, as long as the detection signal values output by thefirst distance sensor 32 and thesecond distance sensor 34 are obtained, the current relative position of the slide-outstructure 20 relative to thebody 10 can be reversely deduced through the corresponding relationship determined in this step.
In some embodiments, a control method comprises:
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, theprocessor 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, while facilitating storage and interrogation, the correspondence between the nominal relative position of the slide-outstructure 20 and the detection signal values output by the first andsecond distance sensors 32, 34 as preset signal values is made more accurate. It can be understood that, in the actual detection process, the sliding-outstructure 20 may not just slide to the calibrated relative position, but may also slide to a third position C between the two calibrated relative positions, and at this time, it is not accurate to directly adopt the preset signal value corresponding to the calibrated relative position. Of course, the current relative position of the slide-outstructure 20 can be calculated using an average of the two nominal relative positions or by combining the two nominal relative positions according to a 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.
In the embodiment of the present invention, please refer to fig. 10, the detection signal value is a logic value. When the receiving tube receives the infrared rays emitted by the emitting tube and sets the shortest time length as a limit value, the logical values output by thefirst distance sensor 32 and thesecond distance sensor 34 are 1, and when the time length is greater than the limit value, the logical value output is 0, and the detection signal value output by thefirst distance sensor 32 is used as the first. When thefirst distance sensor 32 and thesecond distance sensor 34 both receive the reflected infrared rays, the output logic value is 1, and the sliding-outstructure 20 is that the first position a is located in thebody 10; when the logic value is 01, the slide-outstructure 20 is the third position C; when the output logic value is 00, the slide-outstructure 20 exposes thebody 10.
Similarly, the detection commands sent by thefirst detection element 37 and thesecond detection element 38 are logic values, and when the slide-outstructure 20 is located at the first position a, since thefirst detection element 37 and thesecond detection element 38 are in the off state, the output command is 00; when the sliding-outstructure 20 is located at the third position C and the user normally touches, the instructions output by the first detectingelement 37 and the second detectingelement 38 are 01; when the slide-outstructure 20 is located at the second position B, the instruction output by the first detectingelement 37 and the second detectingelement 38 is 11, which is the case that the first detectingelement 37 and the second detectingelement 38 receive the normal touch effect, and when the slide-outstructure 20 is located at the second position B, and the user does not touch or only touches the first detectingelement 37 or the second detectingelement 38, that is, the output instruction is 00, 01 or 10, the slide-outstructure 20 maintains the current relative position. It can be understood that the output of the detection signals of thefirst detection element 37 and thesecond detection element 38, and the output of the detection signals of thefirst distance sensor 32 and thesecond distance sensor 34 are consistent, so that the sliding of the slide-outstructure 20 can be ensured to be normally performed.
In some embodiments, a control method comprises:
receiving a first user input; and
the slide-outstructure 20 is controlled to slide to a predetermined position according to the first user input.
In some embodiments, theprocessor 36 is configured to receive a first user input; and
the slide-outstructure 20 is controlled to slide to a predetermined position according to the first user input.
In this way, sliding of the slide-outstructure 20 is achieved. As previously described, theprocessor 36 may control the sliding of the slide outstructure 20 by controlling thedrive motor 52 in accordance with user input. When theprocessor 36 receives the first user input, theprocessor 36 controls the drivingmotor 52 to rotate forward or backward, so that the output shaft drives therotating screw 26 to rotate in the threadedhole 24, and the sliding-outstructure 20 slides to a predetermined position.
Of course, the trigger signal may also be set so that theprocessor 36 controls the movement of the slide outstructure 20 in certain situations. For example, when the proximity sensor andearpiece 44 are carried on thecarrier 22, the user may be triggered to answer and hang up the phone. That is, when the user answers the phone, the slide-out mechanism 20 is triggered to automatically slide out, and when the user hangs up the phone, the slide-out mechanism 20 is triggered to automatically slide back. In summary, the sliding of the slide-outstructure 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, a control method comprises:
determining whether the slide-outstructure 20 is slid to the first position a; and
when the slide-outstructure 20 is not slid to the first position a, an alarm signal is output.
In some embodiments,processor 36 is configured to determine whether slide outstructure 20 has been slid to first position A; and
when the slide-outstructure 20 is not slid to the first position a, an alarm signal is output.
In this way, the user may be prompted for intervention to avoid the slide-outstructure 20 orbody 10 from interfering with function or becoming damaged by not sliding to the first position a.
It will be appreciated that due to the complexity of the real world situation, there is a possibility that the slide-outstructure 20 will not slide to the first position a, 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 outstructure 20 is stuck and an obstacle is not removed for a long time, the drivingmotor 52 is continuously operated, thereby causing damage to the slide outstructure 20 or thebody 10. The alarm mechanism is set so that when an abnormality occurs, theprocessor 36 can perform corresponding operations in time, such as turning off the drivingmotor 52, to avoid damage to the slide-outstructure 20 or thebody 10.
In certain embodiments, step S16 includes:
receiving a plurality of detection signal values output by thefirst distance sensor 32 and thesecond distance sensor 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-outstructure 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 thefirst distance sensor 32 and thesecond distance sensor 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 judging that the slide-outstructure 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-outstructure 20 is slid to the predetermined position is achieved.
It is understood that, when a plurality of detection signal values coincide within a preset time, the state of the slide-outstructure 20 is stationary, and the stationary state may be caused by a case where the slide-outstructure 20 has slid to a predetermined position to normally stop sliding, and a case where the slide-outstructure 20 has not slid to a predetermined position to abnormally stop sliding. By comparing the plurality of consistent detection signal values with the predetermined signal values corresponding to the predetermined positions, it can be determined whether the slide-outstructure 20 has slid to the predetermined position, thereby determining whether an abnormal situation has occurred.
Of course, the current relative position of the slide-outstructure 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-outstructure 20 slides to the predetermined position and determine whether an abnormal condition occurs.
In some embodiments, a control method comprises:
receiving a second user input; and
the slide-outstructure 20 is controlled to slide from the current relative position to the predetermined position according to the second user input.
In some embodiments, theprocessor 36 is configured to receive a second user input; and
the slide-outstructure 20 is controlled to slide from the current relative position to the predetermined position according to the second user input.
In this way, in the case where the slide-outstructure 20 is not slid to the predetermined position, the user can intervene to remove the obstacle and then slide the slide-outstructure 20 from the current relative position where the abnormality occurs to the predetermined position.
In some embodiments, a control method comprises:
accepting a third user input; and
the slide-outstructure 20 is controlled to slide from the current relative position to the first position a in accordance with a third user input.
In some embodiments, theprocessor 36 is configured to receive a third user input; and
the slide-outstructure 20 is controlled to slide from the current relative position to the first position a in accordance with a third user input.
In this way, when the slide-outstructure 20 is not slid to the predetermined position, the user intervenes to remove the obstacle, and then slides the slide-outstructure 20 from the current relative position where the abnormality occurs to the first position a, thereby realizing the reset.
In actual operation, icons in the above two modes can be displayed on thepanel assembly 14, and the user can select the two modes through thepanel 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.