CN110311997A - Skid off method for detecting position, detection components and the electronic device of component - Google Patents

Skid off method for detecting position, detection components and the electronic device of component Download PDF

Info

Publication number
CN110311997A
CN110311997A CN201810230065.3A CN201810230065A CN110311997A CN 110311997 A CN110311997 A CN 110311997A CN 201810230065 A CN201810230065 A CN 201810230065A CN 110311997 A CN110311997 A CN 110311997A
Authority
CN
China
Prior art keywords
component
ontology
relative position
detection components
skidding
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
CN201810230065.3A
Other languages
Chinese (zh)
Other versions
CN110311997B (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 CN201810230065.3A priority Critical patent/CN110311997B/en
Publication of CN110311997A publication Critical patent/CN110311997A/en
Application granted granted Critical
Publication of CN110311997B publication Critical patent/CN110311997B/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/24Arrangements for testing

Abstract

The present invention discloses a kind of method for detecting position for skidding off component, component is skidded off for electronic device, electronic device includes ontology and detection components, component is skidded off for sliding in the first position for being contained in ontology and between the second position that ontology exposes, detection components include field generating element and Hall element, field generating element and Hall element are separately fixed at ontology and skid off on component, and method for detecting position is comprising steps of receive the detected signal value of Hall element output;Current relative position of the component relative to ontology is skidded off with according to detected signal value determination.The method for detecting position for skidding off component of embodiment of the present invention, the current relative position for skidding off component is determined using Hall element and field generating element, when the function elements such as Front camera are carried on and skid off on component, the state for skidding off component can be detected in real time, so that it is determined that the position of function element.The invention also discloses a kind of detection components and electronic devices.

Description

Skid off method for detecting position, detection components and the electronic device of component
Technical field
The present invention relates to electronic technology field more particularly to a kind of method for detecting position for skidding off component, detection components and Electronic device.
Background technique
In order to improve user experience, the screen accounting of mobile phone is increasing, or even it has been proposed that the design shielded comprehensively, such as How this, be arranged and become urgent problem to be solved using the Front camera of original setting on the front panel.
Summary of the invention
The present invention provides a kind of method for detecting position for skidding off component, detection components and electronic device.
The invention discloses a kind of method for detecting position for skidding off component.The component that skids off is described for electronic device Electronic device includes ontology and detection components, and the component that skids off is in the first position for being contained in the ontology and described in It is slided between the second position that ontology exposes, the detection components include field generating element and Hall element, and is produced from the magnetic field Raw element and the Hall element be separately fixed at the ontology and it is described skid off on component, the method for detecting position includes step It is rapid:
Receive the detected signal value of the Hall element output;With
Current relative position of the component relative to the ontology is skidded off according to detected signal value determination.
The invention discloses a kind of detection components.The detection components are described to skid off for detecting the position for skidding off component Component is used for electronic device, and the electronic device includes ontology, and the component that skids off is for being contained in the first of the ontology 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 be separately fixed at the ontology and it is described skid off on component, the detection Component includes processor, and the processor is used for:
Receive the detected signal value of the Hall element output;With
Current relative position of the component relative to the ontology is skidded off according to detected signal value determination.
The invention discloses a kind of electronic devices.The electronic device includes:
Ontology;
Skid off component, the component that skids off is for exposing in the first position for being contained in the ontology and from the ontology It is slided between the second position;With
Detection components, the detection components are used to detect the position for skidding off component, and the detection components include magnetic field Generating element, Hall element and processor, the field generating element and the Hall element be separately fixed at the ontology and Described to skid off on component, the processor is used to receive the detected signal value of the Hall element output, and for according to institute It states and skids off current relative position of the component relative to the ontology described in detected signal value determination.
The method for detecting position for skidding off component of embodiment of the present invention, detection components and electronic device utilize Hall element The current relative position for skidding off component is determined with field generating element, is carried on and is skidded off on component in function elements such as Front cameras When, the state for skidding off component can be detected in real time, so that it is determined that the position of function element.
Additional aspect and advantage of the invention 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 is from combining in description of the following accompanying drawings to embodiment by change It obtains obviously and is readily appreciated that, in which:
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 diagram of the method for detecting position of embodiment of the present invention;
Fig. 9 is the relation curve schematic diagram of the calibration relative position and preset signals value of embodiment of the present invention;
Figure 10 is another flow diagram of the method for detecting position of embodiment of the present invention.
Main element symbol description:
Electronic device 100, shell 12, display component 14, cover board 142, sliding slot 16, groove 162, skids off component at ontology 10 20, load-bearing part 22, threaded hole 24, rotary screw rod 26, detection components 30, field generating element 32, Hall element 34, processor 36, function element 40, Front camera 42, earpiece 44, driving device 50, driving motor 52, first position A, second position B, Three position 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.
The electronic device 100 of embodiment of the present invention includes ontology 10, skids off component 20 and detection referring to FIG. 1 to FIG. 4, Component 30.Component 20 is skidded off for sliding in the first position A for being contained in ontology 10 and between the second position B that ontology 10 exposes It is dynamic.Detection components 30 include field generating element 32, Hall element 34 for detecting the position for skidding off component 20, detection components 30 With processor 36, field generating element 32 and Hall element 34 are separately fixed at ontology 10 and skid off on component 20, processor 36 For receive Hall element 34 output detected signal value, and for according to detected signal value determine skid off component 20 relative to The current relative position of ontology 10.
It is worth noting that, " field generating element 32 and Hall element 34 are separately fixed at ontology 10 and skid off 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, which is fixed on, skids off component It on 20, is skidded off on component 20 second is that field generating element 32 is fixed on, 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, skids off component 20 and is contained in sliding slot in first position A In 16.It is slided between first position A and second position B in this way, can to skid off component 20 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, skids off sliding back to and skidding off for component 20 to realize.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 Signal and control for controlling the content that display module is shown skid off the signal of the sliding of component 20.
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.
Referring to Fig. 5, in some embodiments, electronic device 100 includes Front camera 42, skidding off component 20 includes holding Holder 22, Front camera 42 are arranged on load-bearing part 22.In this way, Front camera 42 can be slided with component 20 is skidded off.Certainly, User can be opened to Front camera 42 and close Front camera 42 and be used as trigger signal, in other words, when user's opening is preposition When camera 42, triggering skids off component 20 and skids off, and when user closes Front camera 42, triggering skids off component 20 and slides back to.So use Family only need to open or close Front camera according to existing habit, can without carrying out other operation for skidding off component 20 To be convenient for the user to use.
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 component 20 is skidded off, it can also be according to the input of user with skidding off 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 skidding off component 20 and being contained in sliding slot 16 completely, 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 skids off component 20 and skids off, when user is hung up When phone, triggering skids off component 20 and slides back to.Such user only need to answer or hang up the telephone according to existing habit, without being directed to It skids off component 20 and carries 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 36 can by control skid off the distance controlling that component 20 skids off 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 36 can be by controlling some load-bearing part 22 sliding is to select the function element 40 for needing to expose.In this way, may provide the user with a variety of forms skidded off, so that with Family can be selected according to different scene and demand.
Referring to Fig. 7, in some embodiments, skidding off component 20 includes 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 device 50 that groove 162 is arranged in.Driving device 50 includes connecting with processor 36 Driving motor 52 and the output shaft (not shown) being connect with the bottom of rotary screw rod 26.
It is appreciated that processor 36 can control the sliding for skidding off component 20 by control driving motor 52.Work as user Order skids off component 20 from first position A to when second position B sliding, and processor 36 controls driving motor 52 and rotates forward, to make Output shaft drives rotary screw rod 26 to rotate in threaded hole 24 so that skidding off component 20 from first position A to second Set B sliding.When user command, which skids off component 20, to be slided from second position B to first position A, processor 36 controls driving motor 52 reversions, so that output shaft drives rotary screw rod 26 to rotate in threaded hole 24, so that skidding off component 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 skids off component using Hall element 34 and the determination of field generating element 32 20 current relative position can detect cunning when the function elements such as Front camera 40 are carried on and skid off on component 20 in real time The state of component 20 out, 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 skidding off component, so that function element 40 is not needing Be housed in when work in ontology 10, when needing work with skid off component 20 from ontology 10 expose.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.
Referring to Fig. 8, the present invention provides a kind of method for detecting position for skidding off component.Embodiment of the present invention skids off The method for detecting position of component can be used for detecting the position for skidding off component 20 of the electronic device 100 of embodiment of the present invention.
Electronic device 100 includes ontology 10 and detection components 30, skids off component 20 for being contained in the first of ontology 10 Position A and from ontology 10 expose second position B between slide, detection components 30 include field generating element 32 and Hall element 34, field generating element 32 and Hall element 34 are separately fixed at ontology 10 and skid off on component 20, and method for detecting position includes Step:
S12: the detected signal value that Hall element 34 exports is received;With
S14: current relative position of the component 20 relative to ontology 10 is skidded off according to detected signal value determination.
Referring to Fig. 4, the present invention provides a kind of detection components 30.Detection components 30 include processor 36, processor 36 Component 20 is skidded off relative to ontology 10 for receiving the detected signal value of the output of Hall element 34 and according to detected signal value determination Current relative position.
The method for detecting position for skidding off component and detection components 30 of embodiment of the present invention, utilize Hall element 34 and magnetic Field generating element 32 determines the current relative position for skidding off component 20, is carried in the function elements such as Front camera 40 and skids off component When on 20, the state for skidding off component 20 can be detected in real time, so that it is determined that the position of function element 40.
The method for detecting position for skidding off component of embodiment of the present invention and the working principle of detection components 30 are mainly base In the characteristic of Hall element 34, i.e. the magnetic field that can be generated with induced magnetic field generating element 32 of Hall element 34, and according to sensing Magnetic induction intensity export corresponding signal.Since magnetic induction intensity is related to the position of relative magnetic field generating element 32, so The relative position of Hall element 34 Yu field generating element 32 can be determined by the signal that Hall element 34 exports.In addition, by It is separately fixed at and ontology 10 and skids off on component 20 in field generating element 32 and Hall element 34, field generating element 32 and suddenly You can generate relative motion with the movement for skidding off component 20 by element 34, therefore, it is possible to by determining Hall element 34 and magnetic The position for skidding off component 20 relative to ontology 10 is determined indirectly in the relative position of field generating element 32.In this way, can be simply square Just real-time detection skids off the state of component 20.
In some embodiments, step S14 includes:
Inquiry database is read, inquiry database includes multiple preset signals values and multiple calibration relative positions, each pre- If signal value is corresponding with a calibration relative position;With
Use detected signal value inquiry inquiry database to obtain current relative position.
In some embodiments, for processor 36 for reading inquiry database, inquiry database includes multiple default letters Number value and multiple calibration relative positions, each preset signals value is corresponding with a calibration relative position;With use detected signal value Inquiry inquiry database is to obtain current relative position.
Since each preset signals value is corresponding with a calibration relative position, in other words, each preset signals value is corresponding One and only one corresponding calibration relative position.In this way, can according to detected signal value inquiry database in read with The relevant data of detected signal value determine current relative position according to detected signal value to realize.
In some embodiments, method for detecting position includes:
Component 20 will be skidded off and slide into multiple calibration relative positions;With
The detected signal value for obtaining the corresponding each calibration relative position output of Hall element 34 demarcates opposite position as corresponding The preset signals value set.
In some embodiments, processor 36 is used for: will be skidded off component 20 and is slided into multiple calibration relative positions;With obtain Take default letter of the detected signal value of the corresponding each calibration relative position output of Hall element 34 as corresponding calibration relative position Number value.
It, can by the detected signal value for recording calibration relative position and Hall element 34 exports at the calibration relative position To obtain skidding off the corresponding relationship for the detection signal that the location of component 20 is exported with Hall element 34.In this way, subsequent During position detection, as long as obtaining the detected signal value that Hall element 34 exports, pair that can be determined by the step It should be related to that carrying out reverse push export skids off current relative position of the component 20 relative to ontology 10.
Referring to Fig. 9, in some embodiments, method for detecting position includes:
Multiple preset signals values and multiple calibration relative positions are associated to inquiry table or are fitted to relation curve.
In some embodiments, multiple preset signals values and multiple calibration relative positions for being associated to by processor 36 Inquiry table is fitted to relation curve.
In this way, while facilitating preservation and inquiry, so that skidding off calibration relative position and the Hall element 34 of component 20 The corresponding relationship of the detected signal value as preset signals value of output is more accurate.It is appreciated that in actual detection process In, skid off component 20 not necessarily just slide into calibration relative position on, it is also possible to slide into two calibration relative positions it Between, at this point, directlying adopt and the corresponding preset signals value in calibration relative position and inaccurate.Of course, it is possible to using the two marks Determine the average value of relative position or calculates the current phase for skidding off component 20 according to the two comprehensive calibration relative positions of weight To position.But, it is contemplated that preset signals value is not necessarily linear change, it is further preferred that by multiple preset signals values and Multiple calibration relative positions are fitted to relation curve.In this way, can guarantee as much as possible according to multiple preset signals values and multiple Demarcate the accuracy for the current relative position that relative position determines.
It note that the A marked on horizontal axis in Fig. 9 indicates to skid off phase when component 20 is contained in sliding slot 16 completely in Fig. 2 To position, i.e. first position A;B indicates to skid off relative position when component 20 fully slides out from sliding slot 16, i.e. second in Fig. 1 Set B;C indicates to skid off relative position when component 20 skids off half from sliding slot 16, i.e. the third place C in Fig. 3.
Referring to Fig. 10, in some embodiments, method for detecting position includes:
S16: the first user input is received;With
S18: component 20 is skidded off according to first user's input control and is slided to predetermined position.
In some embodiments, processor 36 is for receiving the first user input;With according to first user's input control Component 20 is skidded off to slide to predetermined position.
In this way, realizing the sliding for skidding off component 20.It is driven as previously mentioned, processor 36 can be inputted according to user by control Motor 52 is moved to control the sliding for skidding off component 20.When processor receives the first user input, the control control of processor 36 Driving motor 52 forward or reverse so that output shaft drives rotary screw rod 26 to rotate in threaded hole 24, so that sliding Component 20 is slided to predetermined position out.
It is moved under specific circumstances it is of course also possible to set trigger signal and the control of processor 36 is made to skid off component 20.Than Such as, when carrying proximity sensor and earpiece 44 on load-bearing part 22, user can be received calls and is hung up the telephone as touching It signals.In other words, when user receives calls, triggering skids off component 20 and skids off automatically, when user hangs up the telephone, triggering Component 20 is skidded off to slide back to automatically.To sum up, the sliding for skidding off component 20 can be based on the operation of user, it can also be in specific feelings Occur automatically under condition.Certainly, user can be set specifically slides or closes automatically automatic sliding at for which.
In some embodiments, method for detecting position includes:
S20: judgement skids off whether component 20 slides into predetermined position;With
S22: when skidding off component 20 and not sliding into predetermined position, alarm signal is exported.
In some embodiments, processor 36 skids off whether component 20 slides into predetermined position for judging;It is skidded off with working as When component 20 does not slide into predetermined position, alarm signal is exported.
In this way, user can be prompted to intervene, avoid skidding off component 20 or ontology 10 due to not sliding into predetermined position and shadow Ring function or damage.
It is appreciated that due to the complexity of reality, skid off component 20 be possible to occur Caton etc. can not slide into it is predetermined The case where position.And if abnormal conditions not being judged and being alarmed, it cannot exclude and cause abnormal obstacle.In addition, working as When skidding off 20 Caton of component and not removing barriers for a long time, the meeting continuous running of driving motor 52, so as to cause component 20 is skidded off Or the damage of ontology 10.The setting of alarm mechanism can be when occurring abnormal, and processor 36 carries out corresponding operation in time, such as Driving motor 52 is closed, the damage for skidding off component 20 or ontology 10 is avoided.
In some embodiments, step S20 includes:
Multiple detected signal values that Hall element 34 exports are received within a preset time;
Prearranged signals value corresponding with predetermined position is determined according to predetermined position;
Judge whether prearranged signals value is consistent with multiple detected signal values;With
When prearranged signals value and multiple detected signal values are inconsistent, judgement skids off component 20 and does not slide into predetermined position.
In some embodiments, processor 36 is used for: receiving multiple inspections that Hall element 34 exports within a preset time Survey signal value;Prearranged signals value corresponding with predetermined position is determined according to predetermined position;Judge prearranged signals value and multiple detections Whether signal value is consistent;With when prearranged signals value and multiple detected signal values are inconsistent, judgement skids off component 20 and does not slide into Predetermined position.
In this way, realizing the judgement to skidding off component 20 and whether sliding into predetermined position.
It is appreciated that when multiple detected signal values are consistent within a preset time, skid off component 20 state be it is static, it is static State may be caused by two kinds of situations, and a kind of situation is to skid off component 20 to have slided into predetermined position to normally stop sliding It is dynamic, another situation is that skidding off component 20 does not slide into predetermined position to the sliding that abends.By to multiple consistent Detected signal value prearranged signals value corresponding with predetermined position compares, it can be determined that skids off whether component 20 has slided into pre-determined bit It sets, determines whether that abnormal conditions have occurred.
It is of course also possible to the current relative position for skidding off component 20 is first determined according to multiple consistent detected signal values, then Than current relative position and predetermined position, so that judgement skids off whether component 20 has slided into predetermined position and determined whether to occur Abnormal conditions.
In some embodiments, after the step of exporting alarm signal, method for detecting position includes:
Receive second user input;With
Component 20 is skidded off according to second user input control, and predetermined position is slided by current relative position.
In some embodiments, processor 36 is for receiving second user input;With according to second user input control It skids off component 20 and predetermined position is slided by current relative position.
In this way, after user's intervention removes barriers, can will be slided in the case where skidding off component 20 and not sliding into predetermined position Component 20 continues to slide into predetermined position from there is abnormal current relative position out.
In some embodiments, after the step of exporting alarm signal, method for detecting position includes:
Receive third user input;With
Component 20 is skidded off according to third user's input control, and first position A is slided by current relative position.
In some embodiments, processor 36 is for receiving third user input;With according to third user's input control It skids off component 20 and first position A is slided by current relative position.
In this way, after user's intervention removes barriers, can will be slided in the case where skidding off component 20 and not sliding into predetermined position Component 20 slides into first position A from there is abnormal current relative position out, realizes resetting.
In actual operation, the icon of both the above mode can be shown on panel assembly 14, user can pass through Panel assembly 14 selects two ways.In other words, after there is exception, user can choose to be worked as from appearance is abnormal Preceding relative position continues to slide into predeterminated position, or slides into first position A.
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 (25)

1. a kind of method for detecting position for skidding off component, which is characterized in that the component that skids off is for electronic device, the electronics Device includes ontology and detection components, and the component that skids off is in the first position for being contained in the ontology and from the ontology It is slided between the second position of exposing, the detection components include field generating element and Hall element, and the magnetic field generates member Part and the Hall element be separately fixed at the ontology and it is described skid off on component, the method for detecting position comprising steps of
Receive the detected signal value of the Hall element output;With
Current relative position of the component relative to the ontology is skidded off according to detected signal value determination.
2. skidding off the method for detecting position of component as described in claim 1, which is characterized in that described according to the detection signal The step of current relative position of the component relative to the ontology is skidded off described in determination include:
Inquiry database is read, the inquiry database includes multiple preset signals values and multiple calibration relative positions, Mei Gesuo It is corresponding with a calibration relative position to state preset signals value;With
The detected signal value is used to inquire the inquiry database to obtain the current relative position.
3. skidding off the method for detecting position of component as claimed in claim 2, which is characterized in that the method for detecting position packet It includes:
By the component slippage that skids off to the multiple calibration relative position;With
It obtains the Hall element and corresponds to the detected signal value of each calibration relative position output as the corresponding calibration The preset signals value of relative position.
4. skidding off the method for detecting position of component as claimed in claim 3, which is characterized in that the method for detecting position packet It includes:
The multiple preset signals value and the multiple calibration relative position are associated to inquiry table or are fitted to relation curve.
5. skidding off the method for detecting position of component as described in claim 1, which is characterized in that the method for detecting position packet It includes:
Receive the first user input;With
Component is skidded off according to the first user input control to slide to predetermined position.
6. skidding off the method for detecting position of component as claimed in claim 5, it is characterized in that, the method for detecting position includes:
Skid off whether component slides into the predetermined position described in judgement;With
When it is described skid off component and do not slide into the predetermined position when, export alarm signal.
7. skidding off the method for detecting position of component as claimed in claim 6, it is characterized in that, skidding off component described in the judgement is No the step of sliding into the predetermined position includes:
Multiple detected signal values of the Hall element output are received within a preset time;
Prearranged signals value corresponding with the predetermined position is determined according to the predetermined position;
Judge whether the prearranged signals value and the multiple detected signal value are consistent;With
When the prearranged signals value and the multiple detected signal value are inconsistent, skid off described in judgement component do not slide into it is described Predetermined position.
8. skidding off the method for detecting position of component as claimed in claim 6, which is characterized in that in the output alarm signal After step, the method for detecting position includes:
Receive second user input;With
Component is skidded off according to the second user input control, and the predetermined position is slided by the current relative position.
9. skidding off the method for detecting position of component as claimed in claim 6, which is characterized in that in the output alarm signal After step, the method for detecting position includes:
Receive third user input;With
Component is skidded off according to the third user input control, and the first position is slided by the current relative position.
10. a kind of detection components, which is characterized in that the detection components are described to skid off group for detecting the position for skidding off component Part is used for electronic device, and the electronic device includes ontology, and the component that skids off is for being contained in first of the ontology It sets and is slided between the second position that the ontology exposes, the detection components include field generating element and Hall element, The field generating element and the Hall element be separately fixed at the ontology and it is described skid off on component, the detection components Including processor, the processor is used for:
Receive the detected signal value of the Hall element output;With
Current relative position of the component relative to the ontology is skidded off according to detected signal value determination.
11. detection components as claimed in claim 10, which is characterized in that the processor is used for:
Inquiry database is read, the inquiry database includes multiple preset signals values and multiple calibration relative positions, per described Preset signals value is corresponding with a calibration relative position;With
The detected signal value is used to inquire the inquiry database to obtain the current relative position.
12. detection components as claimed in claim 11, which is characterized in that the processor is used for:
By the component slippage that skids off to the multiple calibration relative position;With
It obtains the Hall element and corresponds to the detected signal value of each calibration relative position output as the corresponding calibration The preset signals value of relative position.
13. detection components as claimed in claim 12, which is characterized in that the processor is used for the multiple preset signals Value and the multiple calibration relative position are associated to inquiry table or are fitted to relation curve.
14. detection components as claimed in claim 10, which is characterized in that the processor is used for:
Receive the first user input;With
Component is skidded off according to the first user input control to slide to predetermined position.
15. detection components as claimed in claim 14, which is characterized in that the processor is used for:
Skid off whether component slides into the predetermined position described in judgement;With
When it is described skid off component and do not slide into the predetermined position when, export alarm signal.
16. detection components as claimed in claim 15, which is characterized in that the processor is used for:
Multiple detected signal values of the Hall element output are received within a preset time;
Prearranged signals value corresponding with the predetermined position is determined according to the predetermined position;
Judge whether the prearranged signals value and the multiple detected signal value are consistent;With
When the prearranged signals value and the multiple detected signal value are inconsistent, skid off described in judgement component do not slide into it is described Predetermined position.
17. detection components as claimed in claim 15, which is characterized in that the processor is used for:
Receive second user input;With
Component is skidded off according to the second user input control, and the predetermined position is slided by the current relative position.
18. detection components as claimed in claim 15, which is characterized in that the processor is used for:
Receive third user input;With
Component is skidded off according to the third user input control, and the first position is slided by the current relative position.
19. a kind of electronic device characterized by comprising
Ontology;
Component is skidded off, the component that skids off is in the first position for being contained in the ontology and expose from the ontology second It is slided between position;With
Detection components, the detection components are used to detect the position for skidding off component, and the detection components include that magnetic field generates Element, Hall element and processor, the field generating element and the Hall element are separately fixed at the ontology and described It skids off on component, the processor is used to receive the detected signal value of the Hall element output, and for according to the inspection Survey signal value skids off current relative position of the component relative to the ontology described in determining.
20. electronic device as claimed in claim 19, which is characterized in that the processor is used for:
Inquiry database is read, the inquiry database includes multiple preset signals values and multiple calibration relative positions, per described Preset signals value is corresponding with a calibration relative position;With
The detected signal value is used to inquire the inquiry database to obtain the current relative position.
21. electronic device as claimed in claim 19, which is characterized in that the processor is used for:
By the component slippage that skids off to the multiple calibration relative position;With
It obtains the Hall element and corresponds to the detected signal value of each calibration relative position output as the corresponding calibration The preset signals value of relative position.
22. electronic device as claimed in claim 19, which is characterized in that the processor is used for the multiple preset signals Value and the multiple calibration relative position are associated to inquiry table or are fitted to relation curve.
23. electronic device as claimed in claim 19, which is characterized in that the processor is used for:
Receive the first user input;With
Component is skidded off according to the first user input control to slide to predetermined position.
24. electronic device as claimed in claim 19, which is characterized in that the ontology is formed with sliding slot, described to skid off component It is contained at first position in the sliding slot.
25. electronic device as claimed in claim 19, which is characterized in that the electronic device includes Front camera, the cunning Component includes load-bearing part out, and the Front camera is arranged on the load-bearing part.
CN201810230065.3A 2018-03-20 2018-03-20 Position detection method of slide-out assembly, detection assembly and electronic device Active CN110311997B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810230065.3A CN110311997B (en) 2018-03-20 2018-03-20 Position detection method of slide-out assembly, detection assembly and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810230065.3A CN110311997B (en) 2018-03-20 2018-03-20 Position detection method of slide-out assembly, detection assembly and electronic device

Publications (2)

Publication Number Publication Date
CN110311997A true CN110311997A (en) 2019-10-08
CN110311997B CN110311997B (en) 2021-04-13

Family

ID=68073948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810230065.3A Active CN110311997B (en) 2018-03-20 2018-03-20 Position detection method of slide-out assembly, detection assembly and electronic device

Country Status (1)

Country Link
CN (1) CN110311997B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110806325A (en) * 2019-10-22 2020-02-18 Oppo(重庆)智能科技有限公司 Electronic equipment detection method and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101387811A (en) * 2007-09-12 2009-03-18 富士能株式会社 Mobile device
CN102918822A (en) * 2010-05-28 2013-02-06 诺基亚公司 Handling user inputs
CN102957763A (en) * 2011-08-18 2013-03-06 希姆通信息技术(上海)有限公司 Mobile phone
CN103713849A (en) * 2013-12-26 2014-04-09 华为终端有限公司 Method and device for image shooting and terminal device
CN104023105A (en) * 2014-06-13 2014-09-03 广东欧珀移动通信有限公司 Detection device and detection method of angled rotation of camera of mobile terminal
CN105515454A (en) * 2016-02-17 2016-04-20 国网山东省电力公司滨州供电公司 Four-phase permanent magnet brushless direct current motor servo control system
CN205510137U (en) * 2016-02-26 2016-08-24 维沃移动通信有限公司 Electronic device
CN106094990A (en) * 2016-06-12 2016-11-09 张帆 The screen maximized electronic equipment of accounting and using method thereof
CN106856516A (en) * 2015-12-09 2017-06-16 小米科技有限责任公司 Electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101387811A (en) * 2007-09-12 2009-03-18 富士能株式会社 Mobile device
CN102918822A (en) * 2010-05-28 2013-02-06 诺基亚公司 Handling user inputs
CN102957763A (en) * 2011-08-18 2013-03-06 希姆通信息技术(上海)有限公司 Mobile phone
CN103713849A (en) * 2013-12-26 2014-04-09 华为终端有限公司 Method and device for image shooting and terminal device
CN104023105A (en) * 2014-06-13 2014-09-03 广东欧珀移动通信有限公司 Detection device and detection method of angled rotation of camera of mobile terminal
CN106856516A (en) * 2015-12-09 2017-06-16 小米科技有限责任公司 Electronic equipment
CN105515454A (en) * 2016-02-17 2016-04-20 国网山东省电力公司滨州供电公司 Four-phase permanent magnet brushless direct current motor servo control system
CN205510137U (en) * 2016-02-26 2016-08-24 维沃移动通信有限公司 Electronic device
CN106094990A (en) * 2016-06-12 2016-11-09 张帆 The screen maximized electronic equipment of accounting and using method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110806325A (en) * 2019-10-22 2020-02-18 Oppo(重庆)智能科技有限公司 Electronic equipment detection method and electronic equipment

Also Published As

Publication number Publication date
CN110311997B (en) 2021-04-13

Similar Documents

Publication Publication Date Title
CN110312001A (en) Skid off method for detecting position, detection components and the electronic device of structure
Kratz et al. HoverFlow: expanding the design space of around-device interaction
US9696847B2 (en) User-defined gesture enablement protocols for touch input device
CN110307775A (en) Skid off method for detecting position, detection components and the electronic device of component
CN108833623A (en) Control method by sliding, device and the electronic device of slide assemblies
TWI590130B (en) Moveable electronic device and unlocking/page turning method thereof
US20050246109A1 (en) Method and apparatus for entering information into a portable electronic device
DE102013217384B4 (en) Invoking a user environment based on unit coverage
CN108924283A (en) Control method by sliding, device and the electronic device of slide assemblies
CN106681592B (en) Display switching method and device based on electronic equipment and electronic equipment
US11789470B2 (en) Method and apparatus for calibrating sliding of sliding component
CN101627355A (en) Optical projection system
CN110488519A (en) The control method of liquid crystal display device, electronic equipment and electronic equipment
EP1828876A1 (en) Interpreting an image
CN108833699A (en) The control method and device of electronic device and its slide assemblies
CN108900663A (en) Control method by sliding, device and the electronic device of slide assemblies
CN110311997A (en) Skid off method for detecting position, detection components and the electronic device of component
CN102968218A (en) Optical image type touch device and touch image processing method
CN109005254A (en) Information indicating method, control assembly and electronic equipment based on sliding equipment
CN110311996A (en) Skid off the control method, detection components and electronic device of component
CN108924284A (en) The control method and device of electronic device and its slide assemblies
CN108833622A (en) Control method, control assembly and the electronic equipment of sliding equipment
CN108924287A (en) Fall arrest control method, device and the electronic device of slide assemblies
JP2012238152A (en) Display device, display method and program
CN109460178B (en) Sliding display method and device of sliding assembly

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant