CN108833623A - Control method by sliding, device and the electronic device of slide assemblies - Google Patents

Control method by sliding, device and the electronic device of slide assemblies Download PDF

Info

Publication number
CN108833623A
CN108833623A CN201810590263.0A CN201810590263A CN108833623A CN 108833623 A CN108833623 A CN 108833623A CN 201810590263 A CN201810590263 A CN 201810590263A CN 108833623 A CN108833623 A CN 108833623A
Authority
CN
China
Prior art keywords
slide assemblies
signal value
slide
hall element
ontology
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.)
Granted
Application number
CN201810590263.0A
Other languages
Chinese (zh)
Other versions
CN108833623B (en
Inventor
莫斐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810590263.0A priority Critical patent/CN108833623B/en
Publication of CN108833623A publication Critical patent/CN108833623A/en
Application granted granted Critical
Publication of CN108833623B publication Critical patent/CN108833623B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/52Details of telephonic subscriber devices including functional features of a camera

Abstract

The present invention discloses the control method by sliding, device and electronic device of a kind of slide assemblies, wherein method includes:It when detecting that slide assemblies are in preset target designation position, then acquires corresponding with target designation position with reference to detected signal value, and monitors detected signal value;If monitoring the detected signal value of Hall element output and being greater than preset outage threshold with reference to the difference of detected signal value, the sample detecting signal value of multiple Hall element outputs is obtained according to predetermined period;The glide direction of slide assemblies is determined according to multiple sample detecting signal values;Start driving assembly control slide assemblies according to glide direction and slides into preset calibration position along glide direction.Thus; influence of the associated component to screen accounting is reduced by slide assemblies; and the scene of manual operation slide assemblies is accurately identified, and control slide assemblies switch to be automatically brought into operation by being manually operated in time, protect dependency structure and provide the response experience of automation for user.

Description

Control method by sliding, device and the electronic device of slide assemblies
Technical field
The present invention relates to electronic technology field more particularly to a kind of control method by sliding of slide assemblies, device and electronics Device.
Background technique
It is universal with portable electronic devices such as smart phones, the aesthetics of electronic device and functional optimization also at For main trend, for example, the raising of the screen accounting of electronic device is exactly one of fashion trend.
In the related technology, the equipment such as Front camera are installed to provide preposition camera shooting for user in the front panel of electronic device Service, thus, the occupancy of the installation space on the front panel of Front camera and the contradiction of the raising of screen accounting are urgently to be resolved.
Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, the present invention proposes the control method by sliding, device and electronic device of a kind of slide assemblies.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of control method by sliding of slide assemblies, institute Slide assemblies are stated for electronic device, the electronic device includes ontology, detection components and driving assembly, and the driving component is used In controlling the slide assemblies in the first position for being contained in the ontology and from sliding between the second position that the ontology exposes Dynamic, the detection components include field generating element and Hall element, and the field generating element and the Hall element are distinguished It is fixed on the slide assemblies and the ontology, the control method by sliding includes the following steps:When detecting the sliding Component is in preset target designation position, then acquires the ginseng corresponding with the target designation position of the Hall element output Detected signal value is examined, and monitors the detected signal value of the Hall element output;If monitoring the inspection of the Hall element output It surveys signal value and the difference with reference to detected signal value is greater than preset outage threshold, then multiple institutes are obtained according to predetermined period State the sample detecting signal value of Hall element output;The slide assemblies are determined according to the multiple sample detecting signal value Glide direction;It is sliding along the glide direction to start the driving component control slide assemblies according to the glide direction Move preset calibration position.
In order to achieve the above object, second aspect of the present invention embodiment proposes a kind of slide control device of slide assemblies, institute Slide assemblies are stated for electronic device, the electronic device includes ontology, detection components and driving assembly, and the driving component is used In controlling the slide assemblies in the first position for being contained in the ontology and from sliding between the second position that the ontology exposes Dynamic, the detection components include field generating element and Hall element, and the field generating element and the Hall element are distinguished It is fixed on the slide assemblies and the ontology, the slide control device includes:Monitoring modular, for detect it is described When slide assemblies are in preset target designation position, the corresponding with the target designation position of the Hall element output is acquired Reference detected signal value, and monitor the detected signal value of Hall element output;Obtain module, for monitor it is described When the detected signal value and the difference with reference to detected signal value of Hall element output are greater than preset outage threshold, according to pre- If the period obtains the sample detecting signal value of multiple Hall element outputs;Determining module, for according to the multiple described Sample detecting signal value determines the glide direction of the slide assemblies;Control module, for starting institute according to the glide direction It states the driving assembly control slide assemblies and slides into preset calibration position along the glide direction.
In order to achieve the above object, third aspect present invention embodiment proposes a kind of electronic device, the electronic device includes Ontology, detection components and driving assembly, the driving component are used to control the slide assemblies and are being contained in the of the ontology One position and from the ontology expose the second position between slide, the detection components include field generating element and Hall member Part, the field generating element and the Hall element are separately fixed on the slide assemblies and the ontology, the electronics Device further includes:Memory, the processor being electrically connected with the slide assemblies and storage are on a memory and can be in processor The computer program of upper operation realizes slide assemblies as in the foregoing embodiment when the processor executes described program Control method by sliding.
In order to achieve the above object, the 4th aspect embodiment of the present invention proposes a kind of computer readable storage medium, thereon It is stored with computer program, when which is executed by processor, realizes the cunning of the slide assemblies as described in preceding method embodiment Flowing control method.
Technical solution provided by the invention includes at least following beneficial effect:
Influence of the associated component to screen accounting, and the detection letter detected based on Hall element are reduced by slide assemblies Number value accurately identifies the scene of manual operation slide assemblies, and control slide assemblies switch to be automatically brought into operation by being manually operated in time, It protects dependency structure and provides the response experience of automation for user.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, wherein:
Fig. 1 is status diagram of the electronic device of embodiment of the present invention at the second position;
Fig. 2 is status diagram of the electronic device of embodiment of the present invention at first position;
Fig. 3 is status diagram of the electronic device of embodiment of the present invention in the third place;
Fig. 4 is the structural schematic diagram of the detection components of embodiment of the present invention;
Fig. 5 is the usage scenario figure of the electronic device of embodiment of the present invention;
Fig. 6 is another usage scenario figure of the electronic device of embodiment of the present invention;
Fig. 7 is the structural schematic diagram of the electronic device of embodiment of the present invention;
Fig. 8 is the flow chart of the control method by sliding of slide assemblies according to an embodiment of the invention;
Fig. 9 (a) is the application scenarios schematic diagram of the control method by sliding of slide assemblies according to an embodiment of the invention;
Fig. 9 (b) is the application scenarios signal of the control method by sliding of slide assemblies in accordance with another embodiment of the present invention Figure;
Figure 10 is the flow chart of the control method by sliding of slide assemblies in accordance with another embodiment of the present invention;
Figure 11 is the structural schematic diagram of the slide control device of slide assemblies according to an embodiment of the invention;
Figure 12 is the structural schematic diagram of the slide control device of slide assemblies in accordance with another embodiment of the present invention;And
Figure 13 is the structural schematic diagram of the slide control device of the slide assemblies of another embodiment according to the present invention.
Main element symbol description:
Electronic device 100, ontology 10, shell 12, display component 14, cover board 142, sliding slot 16, groove 162, slide assemblies 20, load-bearing part 22, threaded hole 24, rotary screw rod 26, detection components 30, field generating element 32, Hall element 34, Front camera 42, earpiece 44, driving assembly 50, driving motor 52, processor 60 and memory 70, first position A, second position B, third position Set C.
Specific embodiment
Embodiments of the present invention are described below in detail, the example of the embodiment is shown in the accompanying drawings, wherein from beginning Same or similar element or element with the same or similar functions are indicated to same or similar label eventually.Below by ginseng The embodiment for examining attached drawing description is exemplary, and for explaining only the invention, and is not considered as limiting the invention.
In the description of the present invention, it is to be understood that, term " center ", " longitudinal direction ", " transverse direction ", " length ", " width ", " thickness ", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outside", " up time The orientation or positional relationship of the instructions such as needle ", " counterclockwise " is to be based on the orientation or positional relationship shown in the drawings, and is merely for convenience of The description present invention and simplified description, rather than the device or element of indication or suggestion meaning must have a particular orientation, with spy Fixed orientation construction and operation, therefore be not considered as limiting the invention.In addition, term " first ", " second " are only used for Purpose is described, relative importance is not understood to indicate or imply or implicitly indicates the quantity of indicated technical characteristic. " first " is defined as a result, the feature of " second " can explicitly or implicitly include one or more feature.? In description of the invention, the meaning of " plurality " is two or more, unless otherwise specifically defined.
In the description of the present invention, it should be noted that unless otherwise clearly defined and limited, term " installation ", " phase Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can To be mechanical connection, it is also possible to be electrically connected or can mutually communicate;It can be directly connected, it can also be by between intermediary It connects connected, can be the connection inside two elements or the interaction relationship of two elements.For the ordinary skill of this field For personnel, the specific meanings of the above terms in the present invention can be understood according to specific conditions.
In the present invention unless specifically defined or limited otherwise, fisrt feature second feature "upper" or "lower" It may include that the first and second features directly contact, also may include that the first and second features are not direct contacts but pass through it Between other characterisation contact.Moreover, fisrt feature includes the first spy above the second feature " above ", " above " and " above " Sign is right above second feature and oblique upper, or is merely representative of first feature horizontal height higher than second feature.Fisrt feature exists Second feature " under ", " lower section " and " following " include that fisrt feature is directly below and diagonally below the second feature, or is merely representative of First feature horizontal height is less than second feature.
Following disclosure provides many different embodiments or example is used to realize different structure of the invention.In order to Simplify disclosure of the invention, hereinafter the component of specific examples and setting are described.Certainly, they are merely examples, and And it is not intended to limit the present invention.In addition, the present invention can in different examples repeat reference numerals and/or reference letter, This repetition is for purposes of simplicity and clarity, itself not indicate between discussed various embodiments and/or setting Relationship.In addition, the present invention provides various specific techniques and material example, but those of ordinary skill in the art can be with Recognize the application of other techniques and/or the use of other materials.
Below with reference to the accompanying drawings the control method by sliding, device and electronic device of the slide assemblies of the embodiment of the present invention are described.
For the control method by sliding of the slide assemblies of the more clear description embodiment of the present invention, first below to this hair Bright electronic device carries out the description in structure.
Specifically, in order to reduce hardware device that Front camera etc. is mounted in electronic device front panel to screen accounting Influence Front camera etc. is controlled when needed by the sliding of slide assemblies the invention proposes a kind of slide assemblies It skids off, is contained in electronics when unwanted, as a result, in the function services without components such as Front cameras When, so that it is not take up electronic device front panel.
Specifically, as Figure 1-Figure 4, the electronic device 100 of the embodiment of the present invention includes ontology 10, slide assemblies 20 With driving assembly 50.Slide assemblies 20 are used in the first position A for being contained in ontology 10 and the second position B exposed from ontology 10 Between slide.Driving assembly 50 is used to drive slide assemblies 20 in the first position for being contained in ontology and expose from ontology second It is slided between position.
Certainly, in order to enable driving assembly 50 knows that driving slide assemblies 20 slide into corresponding position, in the electronic device It also necessarily include the detection components 30 of detection 20 current location of slide assemblies, in an embodiment of the present invention, detection components 30 are used In the position of detection slide assemblies 20, detection components 30 include field generating element 32, Hall element 34 and processor 60, magnetic field Generating element 32 and Hall element 34 are separately fixed on ontology 10 and slide assemblies 20, and processor 60 is for receiving Hall element The detected signal value of 34 outputs, and for determining slide assemblies 20 relative to the current opposite of ontology 10 according to detected signal value Position.
It is worth noting that, " field generating element 32 and Hall element 34 are separately fixed at ontology 10 and Slide Group herein On part 20 " it include two kinds of situations, first is that field generating element 32 is fixed on ontology 10, Hall element 34 is fixed on slide assemblies On 20, second is that field generating element 32 is fixed on slide assemblies 20, Hall element 34 is fixed on ontology 10.In addition, magnetic field Generating element 32 and Hall element 34 can be staggered relatively in the vertical direction, can also be staggered relatively in the horizontal direction.? I other words as long as field generating element 32 and Hall element 34 can produce relative motion, not to field generating element 32 and suddenly You are limited the specific location of element 34.
In some embodiments, ontology 10 is formed with sliding slot 16, and slide assemblies 20 are contained in sliding slot in first position A In 16.In this way, slide assemblies 20 can be made to slide between first position A and second position B by sliding slot 16.
Specifically, ontology 10 includes shell 12 and display component 14, and shell 12 and display component 14 combine composition Enclosed construction.Sliding slot 16 is provided with shell 12, to realize sliding back to and skidding off for slide assemblies 20.It is appreciated that sliding slot 16 Any one side of shell 12 can be provided with.Preferably, sliding slot 16 is provided with the top margin of shell 12.Use can so be met The use habit at family.
Display component 14 includes touch panel (not shown) and cover board 142.Touch panel includes display module (not shown) With the touch control layer (not shown) being arranged in display module.Display module be, for example, liquid crystal display die set (LCD Module, LCM), certainly, display module may be display module flexible.Touch control layer is used to receive the touch-control input of user, to generate The signal that signal and control slide assemblies 20 for controlling the content that display module is shown slide.
The material of cover board 142 can be made of translucent materials such as glass, ceramics or sapphires.Since cover board 142 is due to making For the input part of electronic device 100, cover board 142 is often subject to the contact such as collide or scratch.For example, user is by electronic device 100 when being put into pocket, and cover board 142 may be scratched by the key in user's pocket and be damaged.Therefore, the material of cover board 142 can be with Using the biggish material of hardness, such as above sapphire material.Or hardened layer is formed to improve lid on the surface of cover board 142 The anti-scratch ability of plate 142.
Touch panel and cover board 142 are for example adhesively fixed by optical cement (Optically Clear Adhesive, OCA) Together, optical cement is not only adhesively fixed touch panel and cover board 142, the light that can also be issued through touch panel.
In order to more clearly illustrate the embodiment of the present invention slide assemblies 20 function, referring to Fig. 5, when in certain implementations In mode, electronic device 100 includes Front camera 42, and slide assemblies 20 include load-bearing part 22, and the setting of Front camera 42 is carrying On part 22.In this way, Front camera 42 can be slided with slide assemblies 20.Of course, it is possible to which user is opened 42 He of Front camera It closes Front camera 42 and is used as trigger signal, in other words, when user opens Front camera 42, triggering slide assemblies 20 are sliding Out, when user closes Front camera 42, triggering slide assemblies 20 are slid back to.Such user only need to according to existing habit opening or Front camera is closed, without carrying out other operation for slide assemblies 20, can be convenient the use of user.
Other function elements 40 can also be carried in addition to Front camera 42, on load-bearing part 22, function element 40 is such as For light sensor, proximity sensor and earpiece 44 etc., as shown in Figure 1.These function elements 40 can be according to the input of user Expose to work normally from ontology 10 with skidding off for slide assemblies 20, it can also be according to the input of user with Slide Group Part 20 slides back to and is housed in ontology 10.In this way, through-hole can be arranged on display component 14 as little as possible, be conducive to meet The design requirement that electronic device 100 shields comprehensively.
Specifically, when carrying light sensor on load-bearing part 22, light sensor can be arranged in load-bearing part 22 Top, in other words, when slide assemblies 20 are contained in completely in sliding slot 16, light sensor still can be from load-bearing part 22 Top expose, to incude light in real time.
Referring to Fig. 6, when carrying proximity sensor and earpiece 44 on load-bearing part 22, user can be received calls and It hangs up the telephone as trigger signal, in other words, when user receives calls, triggering slide assemblies 20 are skidded off, when user is hung up When phone, triggering slide assemblies 20 are slid back to.Such user only need to answer or hang up the telephone according to existing habit, without being directed to Slide assemblies 20 carry out other operation, can be convenient the use of user.
It is appreciated that multiple function elements 40 can be carried on the same load-bearing part 22, multiple hold can also be carried on In holder.When multiple function elements 40 are carried on the same load-bearing part 22, multiple function elements 40 can be located with longitudinal arrangement Reason device 60 can by control the distance controlling that skid off of slide assemblies 20 be arranged in 22 lower part of load-bearing part function element 40 whether Expose.When multiple function elements 40 are carried on on multiple load-bearing parts 22, processor 60 can be by controlling some load-bearing part 22 sliding is to select the function element 40 for needing to expose.
Referring to Fig. 7, in some embodiments, slide assemblies 20 include the threaded hole 24 that 22 middle part of load-bearing part is arranged in With the rotary screw rod 26 cooperated with threaded hole 24.Sliding slot 16 includes being oppositely arranged with threaded hole 24 and being located at the recessed of 16 bottom of sliding slot Slot 162.Electronic device 100 includes the driving assembly 50 that groove 162 is arranged in.Driving assembly 50 includes connecting with processor 60 Driving motor 52 and the output shaft (not shown) being connect with the bottom of rotary screw rod 26.
It is appreciated that processor 60 can control the sliding of slide assemblies 20 by control driving motor 52.Work as user When order slide assemblies 20 are slided from first position A to second position B, processor 60 controls driving motor 52 and rotates forward, to make Output shaft drives rotary screw rod 26 to rotate in threaded hole 24 so that slide assemblies 20 are from first position A to second Set B sliding.When user command slide assemblies 20 are slided from second position B to first position A, processor 60 controls driving motor 52 reversions, so that output shaft drives rotary screw rod 26 to rotate in threaded hole 24, so that slide assemblies 20 from second Position B is slided to first position A.It is worth noting that, " from first position A to second position B " herein and " from the second position B refers to the direction of sliding to first position A ", the beginning and end without referring to sliding.
The electronic device 100 of embodiment of the present invention determines slide assemblies using Hall element 34 and field generating element 32 20 current relative position can detect cunning when the function elements such as Front camera 40 are carried on slide assemblies 20 in real time The state of dynamic component 20, so that it is determined that the position of function element 40.
It is appreciated that the function elements 40 such as Front camera 42 need to expose from ontology 10, otherwise can not work normally.This hair The electronic device 100 of bright embodiment is by the bearing function device 40 on slide assemblies, so that function element 40 is not needing It is housed in when work in ontology 10, exposes with slide assemblies 20 from ontology 10 when needing work.In this way, without in display group The through-hole to expose the function elements 40 such as Front camera 42 is opened up on part 14, to increase screen accounting, and then improves user's Experience.
However, in practical applications, there are application scenes, user pulls or presses manually corresponding Slide Group Part, under this application scenarios, in order to be supplied to user automation response experience, and avoid slide assemblies by external force by force The damage of dependency structure caused by pullling or pressing is detecting above-mentioned user's manual operation in an embodiment of the present invention The case where after, automated to respond to the manual operation of user, the manual operation that control slide assemblies comply with user slides in or out.
The control method by sliding of the slide assemblies is detailed below:
Fig. 8 is the flow chart of the control method by sliding of slide assemblies according to an embodiment of the invention, as shown in figure 8, This approach includes the following steps:
Step 101, when detecting that slide assemblies are in preset target designation position, then acquire Hall element output with Target designation position is corresponding to refer to detected signal value, and monitors the detected signal value of Hall element output.
Specifically, as described above, by the magnetic field signal intensity between field generating element and Hall element come The current location of current slide assemblies is known, for example, demarcating magnetic field signal intensity and Slide Group previously according to great number tested data Part currently skids off the corresponding relationship of position, corresponding skids off position to go out according to the magnetic field signal strength matching that current detection goes out It sets.
Thus, in the present embodiment, it presets a reference position and the reference position operates in no external force In the case of (for example be manually operated and be in without user and slide into or out or stop etc. in automatic works process) normal With reference to detected signal value, by by the comparison of reference position currently detected detected signal value and reference signal value, further The case where judging whether there is external force operation slide assemblies.
In an embodiment of the present invention, above-mentioned reference position is indicated with target designation position, wherein target designation position can Think the relative position skidded off when component 20 is contained in sliding slot 16 completely in Fig. 2, i.e. first position A, or skid off in Fig. 1 Relative position when component 20 fully slides out from sliding slot 16, i.e. second position B can also be to skid off component 20 from sliding slot in Fig. 3 16 skid off to the position between first position and the second position, i.e. the third place C.
Step 102, if monitoring the detected signal value of Hall element output and being greater than in advance with reference to the difference of detected signal value If outage threshold, then the sample detecting signal value of multiple Hall elements output is obtained according to predetermined period.
Wherein, preset outage threshold is to be demarcated according to lot of experimental data, if in the same position current detection The difference of signal value and the detected signal value in the case where no external force operates is greater than the outage threshold, then shows to exist outer The case where power operates then shows the case where there is no the operations of above-mentioned external force if being less than or equal to the outage threshold.
It is emphasized that in the embodiment of the present invention, using outage threshold as the case where judging whether there is external force operation Judgment criteria, avoid under application scenes, due to the influence of external magnetic field power etc., cause according to Hall element detect When detected signal value control slide assemblies are accidentally skidded off or accidentally slid into, the case where being judged as manual operation, judgement is improved The accuracy of external force operational circumstances.
In addition, above-mentioned predetermined period according to the driving distance of the processor processing capacity of electronic device and driving assembly and Speed determine, when the processing capacity of processor is bigger, the driving of driving assembly apart from shorter, driving assembly driving speed more Greatly, then in order to meet the accurate detection to the position of slide assemblies, the predetermined period of setting is shorter, otherwise, then longer.
Specifically, default if monitoring that the detected signal value of Hall element output and the difference of reference detected signal value are greater than Outage threshold when, then show the case where there are external force operations, to obtain the output of multiple Hall elements according to predetermined period Sample detecting signal value, in order to further determine current external force to the specific of slide assemblies according to multiple sample detecting signal values Operate direction.
Step 103, the glide direction of slide assemblies is determined according to multiple sample detecting signal values.
Step 104, it is slided into according to glide direction starting driving assembly control slide assemblies along glide direction preset Demarcate position.
Since field generating element and Hall element are separately fixed on slide assemblies and ontology, thus, slide assemblies without By from the sliding of which direction or Hall element can be become closer to, so that the detected signal value that Hall element detects is more next It is bigger or can more and more far away from Hall element, so that the detected signal value that Hall element detects is smaller and smaller, thus, In the embodiment of the present invention, the glide direction of slide assemblies can be determined according to multiple sample detecting signal values, in turn, according to cunning Dynamic direction starting driving assembly control slide assemblies slide into preset calibration position along glide direction, to realize manual operation Turn to be automatically brought into operation, wherein preset calibration position is the final position of current glide direction, for example, if glide direction is the One position is slided to the second position, then preset target position is the second position, for another example, if glide direction is the second position It is slided to first position, then preset target position is first position.
In order to which more clearly how description determines glide direction according to multiple sample detecting signal values, below with reference to specific Embodiment be illustrated:
The first example:
In this example, as shown in figure 4, when slide assemblies are moved from first position to the second position, Hall element distance Field generating element is more and more remoter, thus, the detected signal value that Hall element detects is smaller and smaller, and as shown in Fig. 9 (a), Target designation position is first position, then needs to detect whether user is intended to that component pull-out electronic device sheet will be skidded off manually at this time Body.
In the present embodiment, multiple sample detecting signal values are ranked up according to the sampling time, for example, to successive Sample detecting signal value data [0], data [1], the data [2] detected is ranked up, if detecting data [0]>data [1]>Data [2], i.e., multiple sample detecting signal values after comparative sorting are sequentially reduced, then show the direction of user's manual operation Meet slide assemblies skids off direction, so that it is determined that slide assemblies are to skid off direction.
Second of example:
In this example, as shown in figure 4, when slide assemblies are moved from the second position to first position, Hall element distance Field generating element is more and more closer, thus, the detected signal value that Hall element detects is increasing, and as shown in Fig. 9 (b), Target designation position is the second position, then needs to detect whether user is intended to that component propulsion electronic device sheet will be skidded off manually at this time Body.
In the present embodiment, multiple sample detecting signal values are ranked up according to the sampling time, for example, to successive Sample detecting signal value data [3], data [4], the data [5] detected is ranked up, if detecting data [5]>data [4]>Data [3], i.e., multiple sample detecting signal values after comparative sorting are sequentially increased, then show the direction of user's manual operation Meet the slide-in direction of slide assemblies, so that it is determined that slide assemblies are to slide into direction.
In one embodiment of the invention, in order to reduce the coasting time of slide assemblies and protect slide assemblies, also The sliding speed of slide assemblies can be regulated and controled.
Specifically, as shown in Figure 10, above-mentioned steps 104 include:
Step 201, sliding speed is determined according to the range difference of target designation position and preset calibration position.
Step 202, starting driving assembly is slided into according to sliding speed control slide assemblies along glide direction preset Demarcate position.
In some possible embodiments, the default threshold of distance is directed to previously according to settings such as the driving forces of driving assembly Value will be compared, if knowing range difference with preset threshold with the range difference of preset calibration position according to target designation position Greater than preset threshold, it is determined that and the corresponding First Speed of range difference and second speed corresponding with speed change calibration position, it should Understand, according to the Operational Mechanisms of slide assemblies, after driving assembly controls slide assemblies by the starting of starting speed, in a positioning It postpones, is switched to limit velocity, not only ensure that the smooth starting of driving assembly as a result, also shorten slide assemblies and reach mesh The time of cursor position.
In an embodiment of the present invention, starting speed is represented with First Speed, limit velocity is represented with second speed, shown So, second speed is greater than First Speed.Driving assembly is slided according to First Speed control slide assemblies along glide direction, this One speed is the sample detecting signal value for obtaining Hall element output, if detecting, detected signal value and preset and speed change are demarcated The corresponding speed change demarcation signal value in position is consistent, then controls driving assembly and be switched to second speed, controls slide assemblies along cunning Dynamic direction slides into preset calibration position.
To sum up, the control method by sliding of the slide assemblies of the embodiment of the present invention reduces associated component pair by slide assemblies The influence of screen accounting, and the detected signal value detected based on Hall element accurately identifies the field of manual operation slide assemblies Scape, and control slide assemblies switch to be automatically brought into operation by being manually operated in time, protect dependency structure and provide automatically for user The response of change is experienced.
In order to realize above-described embodiment, the present invention also proposes that a kind of slide control device of slide assemblies, Figure 11 are bases The structural schematic diagram of the slide control device of the slide assemblies of one embodiment of the invention, the slide assemblies are used for electronic device, The electronic device includes monitoring modular 21, obtains module 22, determining module 23 and control module 24, wherein
Monitoring modular 21, for acquiring Hall element when detecting that slide assemblies are in preset target designation position The corresponding with target designation position of output refers to detected signal value, and monitors the detected signal value of Hall element output.
Module 22 is obtained, for the difference in the detected signal value and reference detected signal value that monitor Hall element output When greater than preset outage threshold, the sample detecting signal value of multiple Hall element outputs is obtained according to predetermined period.
Determining module 23, for determining the glide direction of slide assemblies according to multiple sample detecting signal values.
Control module 24 is slided into for starting driving assembly control slide assemblies according to glide direction along glide direction Preset calibration position.
In one embodiment of the invention, as shown in figure 12, target designation position is first position, and determining module 23 is wrapped Include the first sequencing unit 231, the first determination unit 232.
Wherein, the first sequencing unit 231, for being ranked up according to the sampling time to multiple sample detecting signal values.
First determination unit 232, when whether being sequentially reduced for multiple sample detecting signal values after comparative sorting, really Determining slide assemblies is to skid off direction.
In one embodiment of the invention, as shown in figure 13, target designation position is the second position, and determining module 23 is wrapped Include the second sequencing unit 233 and the second determination unit 234, wherein
Second sequencing unit 233, for being ranked up according to the sampling time to multiple sample detecting signal values.
Second determination unit 234, when whether being sequentially increased for multiple sample detecting signal values after comparative sorting, really Slide assemblies are determined to slide into direction.
It should be noted that driving assembly described in the aforementioned control method by sliding embodiment for concentrating on slide assemblies and Slide assemblies are also applied for the slide control device of the slide assemblies of the embodiment of the present invention, herein no longer to its implementation detail and Technical effect repeats.
In order to realize above-described embodiment, the invention also provides a kind of electronic devices, wherein-Fig. 4 referring to Fig.1, electronics dress It sets including ontology 10, detection components 30 and driving assembly 50, driving assembly 50 is being contained in ontology for controlling slide assemblies First position and from ontology expose the second position between slide, detection components include field generating element 32 and Hall element 34, the field generating element 32 and the Hall element 34 are separately fixed on the slide assemblies 20 and the ontology 10, The electronic device further includes:Memory 70, the processor being electrically connected with slide assemblies and is stored on memory 70 and can The computer program run on processor 60 when processor executes program, realizes the slide assemblies as described in previous embodiment Control method by sliding.
It should be noted that electronic device described in the aforementioned control method by sliding embodiment for concentrating on slide assemblies, It is also applied for the electronic device of the embodiment of the present invention, no longer its implementation detail and technical effect are repeated herein.
In order to realize above-described embodiment, the embodiment of the present invention also proposes a kind of computer readable storage medium, stores thereon There is computer program, the sliding control of the slide assemblies as described in preceding method embodiment is realized when which is executed by processor Method.
In the description of this specification, reference term " embodiment ", " certain embodiments ", " schematically implementation The description of mode ", " example ", " specific example " or " some examples " etc. means embodiment or example is combined to describe specific Feature, structure, material or feature are contained at least one embodiment or example of the invention.In the present specification, right The schematic representation of above-mentioned term is not necessarily referring to identical embodiment or example.Moreover, the specific features of description, knot Structure, material or feature can be combined in any suitable manner in any one or more embodiments or example.
While embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that:? These embodiments can be carried out with a variety of variations, modification, replacement in the case where not departing from the principle of the present invention and objective and become Type, the scope of the present invention are defined by the claims and their equivalents.

Claims (10)

1. a kind of control method by sliding of slide assemblies, which is characterized in that the slide assemblies are used for electronic device, the electronics Device includes ontology, detection components and driving assembly, the driving component for control the slide assemblies be contained in it is described The first position of ontology and from the ontology expose the second position between slide, the detection components include field generating element And Hall element, the field generating element and the Hall element are separately fixed on the slide assemblies and the ontology, The control method by sliding includes the following steps:
When detecting that the slide assemblies are in preset target designation position, then acquire the Hall element output with it is described Target designation position is corresponding to refer to detected signal value, and monitors the detected signal value of the Hall element output;
If it is preset to monitor that the detected signal value of the Hall element output is greater than with the difference with reference to detected signal value Outage threshold then obtains the sample detecting signal value of multiple Hall element outputs according to predetermined period;
The glide direction of the slide assemblies is determined according to the multiple sample detecting signal value;
According to the glide direction start the driving component control the slide assemblies slide into along the glide direction it is pre- If calibration position.
2. the method as described in claim 1, which is characterized in that the target designation position be the first position, described The glide direction of the slide assemblies is determined according to the multiple sample detecting signal value, including:
The multiple sample detecting signal value is ranked up according to the sampling time;
Whether multiple sample detecting signal values after comparative sorting are sequentially reduced, if so, determining that the slide assemblies are Skid off direction.
3. the method as described in claim 1, which is characterized in that the target designation position be the second position, described The glide direction of the slide assemblies is determined according to the multiple sample detecting signal value, including:
The multiple sample detecting signal value is ranked up according to the sampling time;
Whether multiple sample detecting signal values after comparative sorting are sequentially increased, if so, determining that the slide assemblies are Slide into direction.
4. the method as described in claim 1, which is characterized in that described to start the driving component control according to the glide direction It makes the slide assemblies and slides into preset calibration position along the glide direction, including:
Sliding speed is determined according to the range difference of the target designation position and the preset calibration position;
Starting the driving component slides into according to the sliding speed control slide assemblies along the glide direction pre- If calibration position.
5. method as claimed in claim 4, which is characterized in that described according to the target designation position and the preset mark It positions the range difference set and determines sliding speed, including:
The range difference is compared with preset threshold;
If know the range difference be greater than preset threshold, it is determined that First Speed corresponding with the range difference and with speed change demarcate The corresponding second speed in position;
Described starting the driving component controls the slide assemblies according to the sliding speed and slides along the glide direction To preset calibration position, including:
Starting the driving component controls the slide assemblies according to the First Speed and slides along the glide direction;
Obtain the sample detecting signal value of Hall element output, if detect the detected signal value with it is preset with it is described The corresponding speed change demarcation signal value in speed change calibration position is consistent, then controls the driving component and be switched to the second speed, control It makes the slide assemblies and slides into preset calibration position along the glide direction.
6. a kind of slide control device of slide assemblies, which is characterized in that the slide assemblies are used for electronic device, the electronics Device includes ontology, detection components and driving assembly, the driving component for control the slide assemblies be contained in it is described The first position of ontology and from the ontology expose the second position between slide, the detection components include field generating element And Hall element, the field generating element and the Hall element are separately fixed on the slide assemblies and the ontology, The slide control device includes:
Monitoring modular, for when detecting that the slide assemblies are in preset target designation position, acquiring the Hall member The corresponding with the target designation position of part output refers to detected signal value, and monitors the detection letter of the Hall element output Number value;
Module is obtained, in the detected signal value and the difference with reference to detected signal value for monitoring the Hall element output When value is greater than preset outage threshold, the sample detecting signal value of multiple Hall element outputs is obtained according to predetermined period;
Determining module, for determining the glide direction of the slide assemblies according to the multiple sample detecting signal value;
Control module controls the slide assemblies along the sliding for starting the driving component according to the glide direction Direction slides into preset calibration position.
7. device as claimed in claim 6, which is characterized in that the target designation position is the first position, described true Cover half block, including:
First sequencing unit, for being ranked up according to the sampling time to the multiple sample detecting signal value;
Whether the first determination unit when being sequentially reduced for multiple sample detecting signal values after comparative sorting, determines The slide assemblies are to skid off direction.
8. device as claimed in claim 6, which is characterized in that the target designation position is the second position, described true Cover half block, including:
Second sequencing unit, for being ranked up according to the sampling time to the multiple sample detecting signal value;
Whether the second determination unit when being sequentially increased for multiple sample detecting signal values after comparative sorting, determines The slide assemblies are to slide into direction.
9. a kind of electronic device, which is characterized in that the electronic device includes ontology, detection components, slide assemblies and driving group Part, the driving component are used to control the slide assemblies and expose in the first position for being contained in the ontology and from the ontology The second position between slide, the detection components include field generating element and Hall element, the field generating element and The Hall element is separately fixed on the slide assemblies and the ontology, and the electronic device further includes:Memory and institute It states the processor of slide assemblies electric connection and stores the computer program that can be run on a memory and on a processor, it is described When processor executes the computer program, the sliding controlling party such as slide assemblies as claimed in any one of claims 1 to 5 is realized Method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The control method by sliding such as slide assemblies as claimed in any one of claims 1 to 5 is realized when being executed by processor.
CN201810590263.0A 2018-06-08 2018-06-08 Sliding control method and device of sliding assembly and electronic device Active CN108833623B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN108833623A true CN108833623A (en) 2018-11-16
CN108833623B CN108833623B (en) 2020-12-29

Family

ID=64144601

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810590263.0A Active CN108833623B (en) 2018-06-08 2018-06-08 Sliding control method and device of sliding assembly and electronic device

Country Status (1)

Country Link
CN (1) CN108833623B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109246361A (en) * 2018-11-30 2019-01-18 Oppo广东移动通信有限公司 Camera module control method and device
CN109460178A (en) * 2018-11-19 2019-03-12 Oppo广东移动通信有限公司 The sliding display methods and device of slide assemblies
CN109547598A (en) * 2018-11-30 2019-03-29 Oppo广东移动通信有限公司 Camera module control method and device
CN111625025A (en) * 2020-04-24 2020-09-04 Oppo(重庆)智能科技有限公司 Parameter calibration method and device, storage medium and electronic equipment
CN113485629A (en) * 2021-07-09 2021-10-08 网易(杭州)网络有限公司 Touch event processing method and device, storage medium and electronic equipment
EP3876072A4 (en) * 2018-11-30 2022-05-18 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Sliding correction method and apparatus for sliding component
CN117110952A (en) * 2023-08-18 2023-11-24 南京中旭电子科技有限公司 Signal processing method and signal processing device for Hall sensor

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070154194A1 (en) * 2005-12-29 2007-07-05 Samsung Electro-Mechanics Co., Ltd. Camera position sensing device and mobile phone having the same
KR20080095447A (en) * 2007-04-24 2008-10-29 에이디반도체(주) Slide type potable telephone which decides open-and-close using capacitance sensor
EP2474878B1 (en) * 2011-01-05 2013-03-20 Research In Motion Limited Electronic device having an electronic compass adapted to detect when the device is in a holster
CN104423572A (en) * 2013-08-29 2015-03-18 美格纳半导体有限公司 Method Of Sensing Sliding By Hall Sensor And Sensing System Using The Same
CN106657456A (en) * 2016-10-24 2017-05-10 珠海格力电器股份有限公司 Mobile terminal
CN107295190A (en) * 2017-07-10 2017-10-24 北京小米移动软件有限公司 Working mode switching method, device and protective case
CN107295127A (en) * 2017-06-30 2017-10-24 联想(北京)有限公司 Handheld device and its application method
CN107800828A (en) * 2017-11-16 2018-03-13 珠海市魅族科技有限公司 Terminal device and its control method and computer-readable recording medium and device
CN107819907A (en) * 2017-11-14 2018-03-20 维沃移动通信有限公司 A kind of camera control method and mobile terminal
CN207150658U (en) * 2017-09-19 2018-03-27 广东欧珀移动通信有限公司 Mobile terminal

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070154194A1 (en) * 2005-12-29 2007-07-05 Samsung Electro-Mechanics Co., Ltd. Camera position sensing device and mobile phone having the same
KR20080095447A (en) * 2007-04-24 2008-10-29 에이디반도체(주) Slide type potable telephone which decides open-and-close using capacitance sensor
EP2474878B1 (en) * 2011-01-05 2013-03-20 Research In Motion Limited Electronic device having an electronic compass adapted to detect when the device is in a holster
CN104423572A (en) * 2013-08-29 2015-03-18 美格纳半导体有限公司 Method Of Sensing Sliding By Hall Sensor And Sensing System Using The Same
CN106657456A (en) * 2016-10-24 2017-05-10 珠海格力电器股份有限公司 Mobile terminal
CN107295127A (en) * 2017-06-30 2017-10-24 联想(北京)有限公司 Handheld device and its application method
CN107295190A (en) * 2017-07-10 2017-10-24 北京小米移动软件有限公司 Working mode switching method, device and protective case
CN207150658U (en) * 2017-09-19 2018-03-27 广东欧珀移动通信有限公司 Mobile terminal
CN107819907A (en) * 2017-11-14 2018-03-20 维沃移动通信有限公司 A kind of camera control method and mobile terminal
CN107800828A (en) * 2017-11-16 2018-03-13 珠海市魅族科技有限公司 Terminal device and its control method and computer-readable recording medium and device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109460178A (en) * 2018-11-19 2019-03-12 Oppo广东移动通信有限公司 The sliding display methods and device of slide assemblies
US11228703B2 (en) 2018-11-30 2022-01-18 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for controlling camera module, electronic device, and computer-readable storage medium
CN109547598A (en) * 2018-11-30 2019-03-29 Oppo广东移动通信有限公司 Camera module control method and device
CN109547598B (en) * 2018-11-30 2020-06-26 Oppo广东移动通信有限公司 Camera module control method and device
CN109246361A (en) * 2018-11-30 2019-01-18 Oppo广东移动通信有限公司 Camera module control method and device
EP3876072A4 (en) * 2018-11-30 2022-05-18 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Sliding correction method and apparatus for sliding component
US11438500B2 (en) 2018-11-30 2022-09-06 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for controlling camera module, electronic device, and storage medium
US11789470B2 (en) 2018-11-30 2023-10-17 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and apparatus for calibrating sliding of sliding component
CN111625025A (en) * 2020-04-24 2020-09-04 Oppo(重庆)智能科技有限公司 Parameter calibration method and device, storage medium and electronic equipment
CN111625025B (en) * 2020-04-24 2023-04-28 Oppo(重庆)智能科技有限公司 Parameter calibration method and device, storage medium and electronic equipment
CN113485629A (en) * 2021-07-09 2021-10-08 网易(杭州)网络有限公司 Touch event processing method and device, storage medium and electronic equipment
CN113485629B (en) * 2021-07-09 2023-07-14 网易(杭州)网络有限公司 Touch event processing method and device, storage medium and electronic equipment
CN117110952A (en) * 2023-08-18 2023-11-24 南京中旭电子科技有限公司 Signal processing method and signal processing device for Hall sensor
CN117110952B (en) * 2023-08-18 2024-02-02 南京中旭电子科技有限公司 Signal processing method and signal processing device for Hall sensor

Also Published As

Publication number Publication date
CN108833623B (en) 2020-12-29

Similar Documents

Publication Publication Date Title
CN108833623A (en) Control method by sliding, device and the electronic device of slide assemblies
CN104488258B (en) Method and apparatus for double camera shutter
CN109547598B (en) Camera module control method and device
CN108924283A (en) Control method by sliding, device and the electronic device of slide assemblies
CN108833699A (en) The control method and device of electronic device and its slide assemblies
CN110312001A (en) Skid off method for detecting position, detection components and the electronic device of structure
CN103106863A (en) Display control apparatus and display control method
CN109542174A (en) The slip correction method and apparatus of slide assemblies
CN104503691A (en) Equipment control method and device
CN108900663A (en) Control method by sliding, device and the electronic device of slide assemblies
CN105843524A (en) Camera control method and apparatus used for mobile terminal as well as mobile terminal
CN109479096A (en) Electronic equipment and its control method
CN105763798A (en) Control method, control apparatus and electronic apparatus
WO2016188317A1 (en) Projection device, control method thereof and computer readable storage medium
CN108829461A (en) Camera starts control method, device and electronic equipment
CN108924284B (en) Electronic device and control method and device of sliding assembly of electronic device
CN110307775A (en) Skid off method for detecting position, detection components and the electronic device of component
CN108924286B (en) Electronic device and control method and device of sliding assembly of electronic device
CN109151107B (en) Sliding control method and device for sliding assembly, electronic device and storage medium
CN103294224B (en) Control method and electronic equipment
CN110311999B (en) Control method and device of electronic equipment
CN109460178B (en) Sliding display method and device of sliding assembly
US10649645B2 (en) Electronic apparatus and method for controlling the same
CN108769319B (en) Electromagnetic interference preventing speed changing method for sliding assembly, driving assembly, device and medium
CN110286811A (en) Electronic device, the control method of electronic device and computer-readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant