CN108897375A - Control method, device, electronic equipment and the storage medium of sliding equipment - Google Patents
Control method, device, electronic equipment and the storage medium of sliding equipment Download PDFInfo
- Publication number
- CN108897375A CN108897375A CN201810601790.7A CN201810601790A CN108897375A CN 108897375 A CN108897375 A CN 108897375A CN 201810601790 A CN201810601790 A CN 201810601790A CN 108897375 A CN108897375 A CN 108897375A
- Authority
- CN
- China
- Prior art keywords
- sliding equipment
- ontology
- equipment
- scene state
- delay duration
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/1615—Constructional details or arrangements for portable computers with several enclosures having relative motions, each enclosure supporting at least one I/O or computing function
- G06F1/1624—Constructional details or arrangements for portable computers with several enclosures having relative motions, each enclosure supporting at least one I/O or computing function with sliding enclosures, e.g. sliding keyboard or display
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/1633—Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
- G06F1/1684—Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
- G06F1/1686—Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being an integrated camera
Abstract
The present invention discloses control method, device, electronic equipment and the storage medium of a kind of sliding equipment, wherein, applied to electronic equipment, electronic equipment includes ontology and sliding equipment, electronic component is provided on sliding equipment, sliding equipment is used to slide in the first position for being contained in ontology and between the second position that ontology exposes, and this method includes:In the case where the application call electronic component of electronic equipment front stage operation, control sliding equipment is skidded off from the first position for being contained in ontology to predeterminated position, and monitors whether to meet preset first scene state;When monitoring to meet the first scene state, then whether monitoring meets preset second scene state in preset delay duration;When monitoring to meet the second scene state in delay duration, then controls sliding equipment and rest on predeterminated position.The control to slide construction is realized automatically in conjunction with the variation of scene state as a result, avoids user and other operations are carried out to slide construction, improve the Experience Degree of user.
Description
Technical field
The present invention relates to electronic technology field more particularly to a kind of control method of sliding equipment, device, electronic equipment and
Storage medium.
Background technique
In order to improve user experience, the screen accounting of electronic equipment such as mobile terminal is increasing, or even someone mentions
The design shielded comprehensively out.
In the prior art, in order to increase screen accounting, for example by some electronic components being arranged on electronic equipment front panel
Front camera, earpiece etc. stash, in this way, how to use and control original setting in front under different use scenes
Electronic component on plate becomes urgent problem to be solved.
Summary of the invention
The present invention provides control method, device, electronic equipment and the storage medium of a kind of sliding equipment.
The invention discloses a kind of control methods of sliding equipment.The method is applied to electronic equipment, and the electronics is set
Standby includes ontology and the sliding equipment, electronic component is provided on the sliding equipment, the sliding equipment is for accommodating
It is slided in the first position of the ontology and between the second position that the ontology exposes, the control method includes following step
Suddenly:
In the case where the electronic component described in the application call of the electronic equipment front stage operation, the sliding is controlled
Mechanism is skidded off from the first position for being contained in the ontology to predeterminated position, and monitors whether to meet preset first scene shape
State;
When monitoring to meet first scene state, then whether monitoring meets preset the in preset delay duration
Two scene states;
When monitoring to meet second scene state in the delay duration, then controls the sliding equipment and rest on institute
State predeterminated position.
The invention discloses a kind of control device of sliding equipment, the control device is applied to electronic equipment, the electricity
Sub- equipment includes ontology and the sliding equipment, and electronic component is provided on the sliding equipment, and the sliding equipment is used for
It is contained in the first position of the ontology and is slided between the second position that the ontology exposes, the control device includes:
First control module, the feelings for electronic component described in the application call in the electronic equipment front stage operation
Under condition, controls the sliding equipment and skid off from the first position for being contained in the ontology to predeterminated position, and monitor whether to meet
Preset first scene state;
Judgment module, for that ought monitor to meet first scene state, then monitoring is in preset delay duration
It is no to meet preset second scene state;
Second control module monitors to meet second scene state in the delay duration, then controls institute for working as
It states sliding equipment and rests on the predeterminated position.
The invention discloses a kind of electronic equipment, the electronic equipment includes ontology and the sliding equipment, the sliding
Electronic component is provided in mechanism, the sliding equipment is used to reveal in the first position for being contained in the ontology and from the ontology
It is slided between the second position out, the electronic equipment further includes:Memory, the processor being electrically connected with the sliding equipment
And the computer program that can be run on a memory and on a processor is stored, when the processor executes described program, realize
The control method of sliding equipment as described in the first aspect of the invention.
The invention discloses a kind of computer readable storage mediums, are stored thereon with computer program, and the program is processed
Sliding equipment control method as described in the first aspect of the invention is realized when device executes.
The control method of the sliding equipment of embodiment of the present invention, in the application program tune of the electronic equipment front stage operation
In the case where with the electronic component, controls the sliding equipment and skid off from the first position for being contained in the ontology to default position
It sets, and is monitoring to meet first scene state, and monitoring meets preset second scene in preset delay duration
When state, controls the sliding equipment and rest on the predeterminated position.It is realized automatically pair in conjunction with the variation of scene state as a result,
The control of slide construction avoids user and carries out other operations to slide construction, improves the Experience Degree of user.
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, wherein:
Fig. 1 is status diagram of the electronic equipment of embodiment of the present invention at the second position;
Fig. 2 is status diagram of the electronic equipment of embodiment of the present invention at first position;
Fig. 3 is the structural schematic diagram of the electronic equipment of embodiment of the present invention;
Fig. 4 is another structural schematic diagram of the electronic equipment of embodiment of the present invention;
Fig. 5 is another structural schematic diagram of the electronic equipment of embodiment of the present invention;
Fig. 6 is the flow diagram of the control method of sliding equipment according to an embodiment of the invention;
Fig. 7 is the flow diagram of the control method of sliding equipment in accordance with another embodiment of the present invention;
Fig. 8 is the flow diagram of the control method of sliding equipment in accordance with another embodiment of the present invention;
Fig. 9 is the flow diagram of the control method of sliding equipment in accordance with another embodiment of the present invention;
Figure 10 is the flow diagram of the control method of sliding equipment in accordance with another embodiment of the present invention;
Figure 11 is the structural schematic diagram of the control device of the slide construction of one embodiment of the present of invention.
Main element symbol description:
Electronic equipment 100, ontology 10, mainboard 12, sliding slot 16, groove 162, slide construction 20, load-bearing part 22, threaded hole
24, rotary screw rod 26, memory 30, processor 31, magnet 32, magnetic field detectors 34, electronic component 40, camera 42, earpiece 44,
Driving device 50, driving motor 52, range sensor 70, first distance sensor 71, second distance sensor 72, first position
A, second position B.
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.
First in conjunction with attached drawing 1- Fig. 5, electronic equipment 100 proposed by the present invention is described in detail.
As Figure 1-Figure 5, electronic equipment 100 includes ontology 10 and sliding equipment 20, is provided with electricity on sliding equipment 20
Subcomponent 40, the sliding equipment 20 are used in the first position A for being contained in the ontology 10 and expose from the ontology the
It is slided between two position B, electronic equipment 100 further includes:Memory 30, with sliding equipment 20 be electrically connected processor 31 and deposit
The computer program that can be run on memory 30 and on processor 31 is stored up, processor 31 is with the control for executing sliding equipment
Method processed, that is, processor 31 is for executing:The member of the electronics described in the application call of 100 front stage operation of electronic equipment
In the case where part 40, controls the sliding equipment 20 and skid off from the first position for being contained in the ontology 10 to predeterminated position, and
It monitors whether to meet preset first scene state;When monitoring to meet first scene state, then monitoring is prolonged preset
Whether meet preset second scene state in slow duration;When monitoring to meet the second scene shape in the delay duration
State then controls the sliding equipment 20 and rests on the predeterminated position.
Wherein, it should be noted that the description of the control method about sliding equipment is referring in subsequent processes embodiment
Associated description repeats no more this in the present embodiment.
Referring to Fig. 1, in some embodiments, electronic equipment 100 includes camera 42, slide construction 20 includes load-bearing part
22, camera 42 is arranged on load-bearing part 22.In this way, camera 42 can be slided with slide construction 20.Of course, it is possible to which user is beaten
It opens camera 42 and closes camera 42 as trigger signal, in other words, when user opens camera 42, triggering slide construction 20 is sliding
Out, when user closes camera 42, triggering slide construction 20 is slid back to.Such user need to only open or close according to existing habit
Camera can be convenient the use of user without carrying out other operation for slide construction 20.
Other electronic components 40 can also be carried in addition to camera 42, on load-bearing part 22, electronic component 40 is such as light
Line sensor, proximity sensor and earpiece 44 etc., as shown in Figure 1.These electronic components 40 can according to the input of user with
Skidding off for slide construction 20 and expose from ontology 10 to working normally, can also be according to the input of user with slide construction 20
Slide back to and be housed in ontology 10.In this way, through-hole can be arranged in display component (not shown) as little as possible, favorably
In the design requirement for meeting electronic equipment 100 and shielding 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 construction 20 is 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.
Wherein, it is to be understood that these function elements can according to the demand of user, with skidding off for sliding equipment 20
And expose from ontology 10 and work normally, ontology can also be in the slide-in of sliding equipment 20 according to the demand of user
In 10.In this way, few as far as possible through-hole can be arranged on the display component of electronic equipment 100, be conducive to meet electronic equipment 100
The design requirement shielded comprehensively.
In certain embodiments, ontology 10 is formed with sliding slot 16, and sliding equipment 20 is in sliding slot 16 in second position B
It is interior.In this way, sliding equipment 20 can be made to slide between first position A and second position B by sliding slot 16.
Referring to Fig. 5, in some embodiments, sliding equipment 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 equipment 100 includes the driving device 50 that groove 162 is arranged in.Driving device 50 includes connecting with processor 31
Driving motor 52 and the output shaft (not shown) being connect with the bottom of rotary screw rod 26.
It is appreciated that processor 31 can control the sliding of sliding equipment 20 by control driving motor 52.Work as user
When order sliding equipment 20 is slided from first position A to second position B, processor 31 controls driving motor 52 and rotates forward, to make
Output shaft drives rotary screw rod 26 to rotate in threaded hole 24 so that sliding equipment 20 is from first position A to second
Set B sliding.When user command sliding equipment 20 is slided from second position B to first position A, processor 31 controls driving motor
52 reversions, so that output shaft drives rotary screw rod 26 to rotate in threaded hole 24, so that sliding equipment 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.
In embodiments of the present invention, position of the sliding equipment 20 relative to ontology 10 can be determined in several ways.
Mode one
Current relative position of the sliding equipment 20 relative to ontology 10 can be determined by magnet and magnetic field detectors.It needs
It is noted that the quantity of magnetic field detectors can be 1, or multiple, the embodiment of the present invention is with magnetic field detectors
Quantity is 1 and is illustrated.
Specifically, one in sliding equipment 20 and ontology 10 is provided with magnet 32, in sliding equipment 20 and ontology 10
Another is provided with magnetic field detectors 34, and magnetic field detectors 34 and processor 31 are electrically connected.That is, magnet 32 and magnetic field detectors
34 setting can be there are two types of situation, first is that magnet 32 is arranged on sliding equipment 20, magnetic field detectors 34 are arranged in ontology 10
On, second is that magnetic field detectors 34 are arranged on sliding equipment 20, magnet 32 is arranged on ontology 10.In addition, magnet 32 and magnetic field
Detector 34 can be oppositely arranged in the vertical direction, can also be oppositely arranged in the horizontal direction.In other words, as long as magnet
32 and magnetic field detectors 34 can produce relative motion, the specific location of magnet 32 and magnetic field detectors 34 is not limited.
When specific implementation, mainboard 12 can be set inside ontology 10, memory 30 and processor 31 can be set in this
On mainboard 12 inside body 10;Mainboard 12 is fixedly connected with ontology 10;Correspondingly, magnet 32 is set to sliding equipment 20, magnetic field
Detector 34 is set to mainboard 12;Alternatively, magnet 32 is set to mainboard 12, magnetic field detectors 34 are set to sliding equipment 20.
Wherein, it should be noted that Fig. 3 is set to sliding equipment 20 with magnet 32, and magnetic field detectors 34 are set to mainboard
Illustrated for 12.
Wherein, magnetic field detectors 34 can be Hall element or other magnetic fields that can be arbitrarily generated with sensor magnet, and root
The element of corresponding signal is exported according to the magnetic induction intensity sensed.When magnetic field detectors 34 are Hall element, processor 31
It is also used to receive the detected signal value of Hall element output;Determine sliding equipment 20 relative to ontology 10 according to detected signal value
Current relative position.
Below by taking magnetic field detectors 34 are Hall element as an example, in the embodiment of the present invention, processor 31 determines skate machine
Structure 20 is illustrated relative to the process of the current relative position of ontology 10.
In embodiments of the present invention, it is mainly based upon the characteristic of Hall element, i.e. Hall element can be produced with sensor magnet 32
Raw magnetic field, and corresponding signal is exported according to the magnetic induction intensity sensed, to determine sliding equipment 20 relative to ontology 10
Current relative position.Since magnetic induction intensity is related to the current relative position of opposed magnet 32, it is possible to pass through Hall
The detected signal value of element output, determines the relative position of Hall element Yu magnet 32.In addition, due to magnet 32 and Hall element
It is fixedly installed on sliding equipment 20 and ontology 10 respectively, magnet 32 and Hall element can be produced with the movement of sliding equipment 20
Raw relative motion, therefore, it is possible to by determining that Hall element and the relative position of magnet 32 indirectly determine 20 phase of sliding equipment
For the relative position of ontology 10.
When specific implementation, sliding equipment 20 can be slided into multiple calibration relative positions in advance, and obtain Hall element
The detected signal value of corresponding each calibration relative position output, and as the preset signals value of corresponding calibration relative position,
Then multiple preset signals values and multiple calibration relative positions are associated to inquiry table or are fitted to relation curve, inquiry table or
In relation curve, including multiple preset signals values and multiple calibration relative positions, each preset signals value are opposite with a calibration
Position is corresponding.Thus after the detected signal value that processor 31 receives Hall element output, it can be according to the inspection of Hall element
Signal value is surveyed, pre-generated inquiry table or relation curve are inquired, so that it is determined that reverse push exports slide construction 20 relative to this
The current relative position of body 10.
Mode two
Current relative position of the sliding equipment 20 relative to ontology 10 can be determined by range sensor.Wherein, distance
Sensor, which can be infrared distance sensor, ultrasonic displacement sensor etc. arbitrarily, can carry out sensor apart from detection.
Referring to fig. 4, sliding equipment 20 is provided with range sensor 70, and range sensor 70 is at least two, at least two
The glide direction out of plumb of line and sliding equipment 20 between range sensor 70;Range sensor 70 and processor 31 are electrically
Connection;Processor 31 is also used to receive the detected signal value of at least two range sensors 70;According at least two detection signals
It is worth the current relative position for determining sliding equipment 20 relative to ontology 10.
It should be noted that Fig. 4 is provided with first distance sensor 71 and second distance sensor 72 with sliding equipment 20
Two range sensors, and the cunning of the line between first distance sensor 71 and second distance sensor 72 and sliding equipment 20
Illustrated for dynamic direction is parallel.
Below by taking first distance sensor 71 and second distance sensor 72 are infrared distance sensor as an example, to the present invention
In embodiment, processor 31 determines that sliding equipment 20 is illustrated relative to the process of the current loudness position of ontology 10.
In embodiments of the present invention, it is mainly based upon first distance sensor 71 and second distance sensor 72 has ranging
The characteristic of function, to determine current relative position of the sliding equipment 20 relative to ontology 10.Infrared distance sensor includes infrared
Line transmitting tube and infrared receiver tube, when transmitting tube issue infrared ray be received the pipe received time it is shorter when, show distance
It is relatively close;When the reception pipe reception tube-launched infrared ray time is longer, show distance farther out.In embodiments of the present invention
In, relative distance of the distance surveyed between first distance sensor 71 and second distance sensor 72 and ontology 10.
Is determined according to the summation of 72 ranging time of first distance sensor 71 and second distance sensor sensed
The distance of one range sensor 71 and second distance sensor 72 relative to ontology 10.Due to length of time and opposite first distance
Sensor 71 is related to the position of second distance sensor 72, and the length of time is related with the length of distance, sliding equipment 20
The more long then receiving time of the distance skidded off is longer, can determine that sliding equipment 20 is located at first position A, by comparison time length
Between two position B or first position A and second position B.So can be passed by first distance sensor 71 and second distance
The signal that sensor 72 exports determines first distance sensor 71 and second distance sensor 72 relative to the current opposite of ontology 10
Position.
In addition, since first distance sensor 71 and second distance sensor 72 are separately fixed on sliding equipment 20, the
One range sensor 71 and second distance sensor 72 can generate relative motion with the movement of sliding equipment 20, thus, it can
Cunning is determined indirectly by the position relative to ontology 10 for determining second distance sensor 72 with first distance sensor 71
Current relative position of the motivation structure 20 relative to ontology 10.
When specific implementation, sliding equipment 20 can be slided into multiple calibration relative positions in advance, and obtain first distance
The detected signal value of sensor 71 and the corresponding each calibration relative position output of second distance sensor 72, and as correspondence
Then multiple preset signals values and multiple calibration positions are associated to inquiry table or are fitted to by the preset signals value for demarcating position
In relation curve, inquiry table or relation curve, including multiple preset signals values and multiple calibration relative positions, each preset signals
It is worth corresponding with a calibration relative position.To receive first distance sensor 71 and second distance sensor in processor 31
After the detected signal value of 72 outputs, pre-generated inquiry table or relation curve can be inquired, thus really according to detected signal value
Determine current relative position of the reverse push export slide construction 20 relative to ontology 10.
Based on the structure of electronic equipment 100 in Fig. 1-Fig. 5, below to the control method of the slide construction of the embodiment of the present invention
It is illustrated.Fig. 6 is the flow diagram of the control method of sliding equipment according to an embodiment of the invention, as shown in fig. 6,
The control method includes the following steps:
Step 601, in the case where the electronic component described in the application call of the electronic equipment front stage operation, control
The sliding equipment is skidded off from the first position for being contained in the ontology to predeterminated position, and monitors whether to meet preset first
Scene state.
Wherein, predeterminated position can be a position between the second position or first position and the second position, the reality
It applies example and this is not construed as limiting.
Wherein, it is to be understood that for different application, corresponding predeterminated position can be identical,
Or it is different, which is not construed as limiting this.
Wherein, it is to be understood that in order to enable electronic component works normally, when slide construction is in predeterminated position,
Electronic component on slide construction needs to expose from ontology, otherwise can not work normally.
Wherein, preset first scene state is pre-set scene state, and for example, the first scene state can be with
To monitor application program instruction release to the calling of electronic component.In another example when the application program is in front stage operation
Monitor that the electronic equipment goes out screen.In another example monitoring that the application program is switched to running background from front stage operation.
Step 602, when monitoring to meet first scene state, then whether monitoring meets in preset delay duration
Preset second scene state.
Wherein, under different application scene, the second scene state is different, illustrate to the second scene state below
It is bright:
For example, the first scene state is in the calling for monitoring application program instruction release to electronic component, the second scene
State is to call the electronic component again in the application program for monitoring front stage operation.
In another example the first scene state is to monitor that the electronic equipment goes out when the application program is in front stage operation
Screen, the second scene state is to monitor the bright screen of electronic equipment in the delay duration, alternatively, bright screen unlocks.Wherein, it needs
Understand, electronic equipment goes out when shielding, and electronic equipment may be at lock state or unlocked state.
In another example the first scene state is to monitor that the application program is switched to running background from front stage operation, the
Two scene states are switched to front stage operation from running background for the application program.
In another example the first scene state is to monitor that the application program is switched to running background from front stage operation, the
Two scene states are to call the electronic component in the other applications for monitoring front stage operation.
Wherein, preset delay duration can be default setting, can also be that user is pre-set according to demand and prolongs
Slow duration, for example, preset delay duration can be 1 minute.
Step 603, when monitoring to meet second scene state in the delay duration, then the sliding equipment is controlled
Rest on the predeterminated position.
The control method of the slide construction of the embodiment of the present invention, in the application call of the electronic equipment front stage operation
In the case where the electronic component, controls the sliding equipment and skid off from the first position for being contained in the ontology to default position
It sets, and is monitoring to meet first scene state, and monitoring meets preset second scene in preset delay duration
When state, controls the sliding equipment and rest on the predeterminated position.It is realized automatically pair in conjunction with the variation of scene state as a result,
The control of slide construction avoids user and carries out other operations to slide construction, improves the Experience Degree of user.
The embodiment of property as an example, when monitoring to be unsatisfactory for the second scene shape in the delay duration
State then controls the sliding equipment and slides back into the first position for being contained in the ontology from the predeterminated position.In this way, passing through prison
It surveys in preset duration and whether meets the second scene state, rest on the predeterminated position, or control institute to control slide construction
It states sliding equipment and slides back into the first position for being contained in the ontology from the predeterminated position, can avoid sliding repeatedly for sliding equipment
The case where entering and skidding off, in turn, reduction cause to be lost to slide construction, reduce the power consumption of electronic equipment, improve user's body
It tests.Wherein, it is to be understood that in practical applications, application program is when realizing different function, in addition to calling on slide construction
Electronic component outside, may also need to call the input/output port in electronic equipment.
Wherein, it is to be understood that the function that application program is realized is different, and used input/output interface is different,
For example, being provided with earpiece on slide construction, application program is voice communication, and application program has gone out outside calling earpiece, it is also necessary to adjust
With audio component, if monitoring that voice communication application program is switched to running background from front stage operation, and monitor to preset
Delay duration in the voice communication application program continue running background, that is, monitor to be unsatisfactory for second in the delay duration
Scene state just directly controls the sliding equipment and slides back into the first position for being contained in the ontology from the predeterminated position,
It will affect normal voice communication in this way.
In another example, it is assumed that camera components are provided on slide construction, application program is video calling, and application program has gone out tune
With outside camera, it is also necessary to audio component is called, if monitoring that vt applications program is switched to backstage from front stage operation and transports
Row, and monitor that the vt applications program continues running background in preset delay duration, that is, monitor the delay
The second scene state is unsatisfactory in duration, just directly control the sliding equipment slid back into from the predeterminated position be contained in it is described
The first position of ontology will affect normal video calling in this way.
Therefore, in order to avoid being had an impact to user's normal use application program, the embodiment of property as an example,
After monitoring to be unsatisfactory for second scene state in the delay duration, can also detect the application program whether after
It is continuous to use relevant input/output interface;If knowing, the application program continues to use relevant input/output interface, controls
The sliding equipment rests on the predeterminated position.It avoids as a result, and user's normal use is had an impact.
If knowing, the application program is not continued to using relevant input/output interface, control the sliding equipment from
The predeterminated position slides back into the first position for being contained in the ontology.As a result, application program field time when not in use, in conjunction with
In the slide-in ontology of application scenarios intelligent control slide construction, avoids sliding equipment and be in the state of skidding off for a long time, avoid
User carries out other operations to slide construction, improves the Experience Degree of user.
The embodiment of property as an example is video calling in the application program, the application call
The electronic component includes:Camera components, that is to say, that camera components are provided on slide construction.It is to be appreciated that regarding
During frequency is conversed, it is also necessary to audio component is called, if monitoring to be unsatisfactory for described second in the delay duration
When scape state, directly controls the sliding equipment and slide back into the first position for being contained in the ontology from the predeterminated position, this
Sample will affect the normal video call of user.Therefore, in order to avoid the normal video call to user impacts, as one
Illustrative embodiment is planted, it is described to monitor to be unsatisfactory for institute in the delay duration when application program is video calling
The second scene state is stated, then detects whether the application program continues to use relevant input/output interface, may include:
When monitoring to be unsatisfactory for second scene state in the delay duration, then the input and output of audio components are detected
Whether interface has data flow;
If knowing, the input/output interface of the audio components has data flow, knows that the application program continues to use institute
State the input/output interface of audio components;
If knowing, the input/output interface of the audio components does not have data flow, knows that the application program does not continue
Use the input/output interface of the audio components.
Wherein, it is to be understood that in practical applications, sliding equipment is in the state of skidding off for a long time, once fall
It falls, electronic equipment is be easy to cause and falls damage, as an example the embodiment of property, knowing that the application program do not continue to
Using the audio components input/output interface when, control the sliding equipment and slid back into from the predeterminated position and be contained in institute
State the first position of ontology.As a result, in the slide-in ontology of connected applications scene intelligent control slide construction, sliding equipment is avoided
For a long time in state is skidded off, avoids user and other operations are carried out to slide construction, improve the Experience Degree of user.
It is described below with reference to control method of the concrete application scene to the sliding equipment of the embodiment.
Fig. 7 is the flow diagram of the control method of sliding equipment in accordance with another embodiment of the present invention, such as Fig. 7 institute
Show, the control method of the slide construction may include:
Step 701, in the case where the electronic component described in the application call of the electronic equipment front stage operation, control
The sliding equipment is skidded off from the first position for being contained in the ontology to predeterminated position, and monitors whether to meet preset first
Scene state.
Step 702, monitor that the electronic equipment goes out screen when the application program is in front stage operation, it is determined that meet institute
The first scene state is stated, and monitors whether meet preset second scene state in preset delay duration.
Step 703, when monitoring the bright screen of electronic equipment in the delay duration, alternatively, bright screen unlocks, it is determined that full
Foot second scene state, then control the sliding equipment and rest on the predeterminated position.
Wherein, it is to be understood that in practical applications, after electronic equipment enters screen state of going out, when being spaced a bit of
Between after, user often reuses electronic equipment, at this point, electronic equipment is depending on the user's operation, the bright screen of electronic equipment, Huo Zheliang
Screen unlocks.If sliding into and skidding off being spaced control slide construction in the shorter time, sliding equipment will be will appear in this way
On the one hand the case where sliding into and skid off repeatedly be easy to cause loss to slide construction, on the other hand influences power consumption and efficiency, in turn
Influence the experience of user.For this purpose, entering the screen that goes out during monitoring electronic equipment application program described in front stage operation
Whether bright state, without locking, can monitor the electronic equipment in the delay duration if electronic equipment is only the screen volume that goes out
Screen, when monitoring that the electronic equipment bright screen control sliding equipment rests on the predeterminated position in the delay duration.
In addition, electronic equipment is in screen locking, and screen extinguishes, at this point, can monitor if electronic equipment goes out when shielding state
Postpone the whether bright screen unlocks of the electronic equipment in duration, when monitoring the bright screen solution of electronic equipment in the delay duration
Lock, it is determined that meet second scene state, at this point, controlling the sliding equipment rests on the predeterminated position.As a result, may be used
It avoids the occurrence of the slide-in repeatedly of sliding equipment and skids off, reduce the power consumption of electronic equipment, improve the experience of user.
Step 704, when monitoring that the electronic equipment continues the screen that goes out in the delay duration, it is determined that be unsatisfactory for second
Scape state, detects whether the application program continues to use relevant input/output interface.
Step 705, if knowing, the application program continues to use relevant input/output interface, controls the skate machine
Structure rests on the predeterminated position.
That is, monitoring that the electronic equipment goes out screen when the application program is in front stage operation, and monitor institute
The bright screen of electronic equipment in delay duration is stated, alternatively, controlling the sliding equipment when bright screen unlocks and resting on the default position
The case where setting, can avoid the slide-in repeatedly of sliding equipment as a result, and skid off, in turn, reduction causes to be lost to slide construction, reduces
The power consumption of electronic equipment improves user experience.
Step 706, if knowing, the application program does not continue to control the cunning using relevant input/output interface
Motivation structure slides back into the first position for being contained in the ontology from the predeterminated position.
The control method for the sliding equipment that the present invention is implemented, in the application call institute of the electronic equipment front stage operation
In the case where stating electronic component, controls the sliding equipment and skids off from the first position for being contained in the ontology to predeterminated position,
Monitor that the electronic equipment goes out screen when the application program is in front stage operation, monitoring in preset delay duration whether institute
The bright screen of electronic equipment is stated, alternatively, bright screen unlocks, and monitoring the bright screen of electronic equipment in preset delay duration, or
Person when bright screen unlocks, controls the sliding equipment and rests on the predeterminated position, and determining institute in preset delay duration
It states electronic equipment to continue to go out when shielding, by judging whether the application program continues to use relevant input/output interface, to determine
Whether sliding equipment slid into intrinsic first position.The control to slide construction is realized automatically in conjunction with the variation of scene state
System avoids user and carries out other operations to slide construction, improves the Experience Degree of user.
On the basis of upper embodiment, electronic component is called in order to facilitate other applications, as one kind
Illustrative embodiment is contained in first of the ontology controlling the sliding equipment from the predeterminated position and sliding back into
After setting, the first flag bit corresponding with the first position is generated, so as to need to call the application program of the electronic component
It determines that the sliding equipment is according to first flag bit and is contained in the first position of the ontology, and then send to call and ask
It asks.
The embodiment of property as an example, after monitoring delay duration, electronic equipment bright screen again, alternatively,
Bright screen unlocks call the application program of the electronic component to determine that slide construction is in first position according to the first flag bit, by
It is in first position in slide construction, although at this point, electronic component is in running order, since slide construction is in the
One position, electronic component can not work normally, and continue to work normally in order to facilitate consumer electronic devices, then control and call the electricity
The application program of subcomponent sends call request to slide construction, accordingly, according to call request, control the sliding equipment from
The first position for being contained in the ontology skids off predeterminated position, and user is facilitated to continue to use electronic component.
Fig. 8 is the flow diagram of the control method of sliding equipment in accordance with another embodiment of the present invention, such as Fig. 8 institute
Show, which may include:
Step 801, in the case where the electronic component described in the application call of the electronic equipment front stage operation, control
The sliding equipment is skidded off from the first position for being contained in the ontology to predeterminated position, and monitors whether to meet preset first
Scene state.
Step 802, when monitoring that the application program is switched to running background from front stage operation, it is determined that meet described
One scene state, and monitor whether to meet preset second scene state.
Step 803, front stage operation is switched to from running background when monitoring in the delay duration application program, then
Determination meets second scene state, then controls the sliding equipment and rest on the predeterminated position.
Wherein, it is to be understood that in practical applications, after the application program is switched to running background, interval compared with
After short time, which is often switched back into front stage operation by user.If being spaced control sliding knot in the shorter time
Structure slides into and skids off, and in this way by the slide-in repeatedly that will appear sliding equipment and the case where skid off, on the one hand holds to slide construction
Loss is easily caused, on the other hand influences power consumption and efficiency, and then influence the experience of user.For this purpose, monitor it is described using journey
When sequence switches to running background from front stage operation, it can determine whether the application program switches again in preset delay duration
Then continue to control slide construction to front stage operation if it is determined that application program switches to front stage operation in delay duration again
In predeterminated position, that is, slide construction keeps predeterminated position constant.
Step 804, when monitoring that the application program continues running background in the delay duration, it is determined that be unsatisfactory for the
Two scene states, detect whether the application program continues to use relevant input/output interface.
Step 805, if knowing, the application program continues to use relevant input/output interface, controls the skate machine
Structure rests on the predeterminated position.
Step 806, if knowing, the application program does not continue to control the cunning using relevant input/output interface
Motivation structure slides back into the first position for being contained in the ontology from the predeterminated position.
The control method of the sliding equipment of the embodiment of the present invention, in the application call of the electronic equipment front stage operation
In the case where the electronic component, controls the sliding equipment and skid off from the first position for being contained in the ontology to default position
It sets, is switched to front stage operation from running background when monitoring in the delay duration application program, and monitoring pre-
If delay duration in application program whether from running background be switched to front stage operation, stop if so, controlling the sliding equipment
The predeterminated position is stayed in, and when determining that application program continues running background in preset delay duration, it should by judgement
Whether application program continues to use relevant input/output interface, to determine whether to slide into sliding equipment into intrinsic first
It sets.The control to slide construction is realized automatically in conjunction with the variation of scene state, and it is other to slide construction progress to avoid user
Operation, improves the Experience Degree of user.
On the basis of upper embodiment, electronic component is called in order to facilitate other applications, as one kind
Illustrative embodiment is contained in first of the ontology controlling the sliding equipment from the predeterminated position and sliding back into
After setting, the first flag bit corresponding with the first position is generated, so as to need to call the application program of the electronic component
It determines that the sliding equipment is according to first flag bit and is contained in the first position of the ontology, and then send to call and ask
It asks.
The embodiment of property as an example, after monitoring delay duration, which transports from backstage again
Row is switched to front stage operation, if it is determined that the application program continues to call electronic component, and is determined and slided according to the first flag bit
Structure is in first position, since slide construction has been in first position, although at this point, electronic component is in running order,
It is since slide construction is in first position, electronic component can not work normally, and continue in order to facilitate consumer electronic devices normal
Work then controls and the application program of the electronic component is called to send call request to slide construction.Accordingly, it is asked according to calling
It asks, controls the sliding equipment and skid off from the first position for being contained in the ontology to predeterminated position, user is facilitated to continue to use
Electronic component.
Fig. 9 is the flow diagram of the control method of the sliding equipment of the specific embodiment of another embodiment of the present invention,
The embodiment using application program as video calling, and the camera components being arranged on slide construction be camera components for retouched
It states, as shown in figure 9, the control method of the slide construction may include:
Step 901, in the case where the camera components described in the application call of the electronic equipment front stage operation, control
The sliding equipment is skidded off from the first position for being contained in the ontology to predeterminated position, and monitors whether to meet preset first
Scene state.
Step 902, monitor that the electronic equipment goes out screen when the application program is in front stage operation, it is determined that meet institute
The first scene state is stated, and monitors whether meet preset second scene state in preset delay duration.
Step 903, when monitoring the bright screen of electronic equipment in the delay duration, alternatively, bright screen unlocks, it is determined that full
Foot second scene state, then control the sliding equipment and rest on the predeterminated position.
Step 904, when monitoring that the electronic equipment continues the screen that goes out in the delay duration, it is determined that be unsatisfactory for second
Whether scape state, the input/output interface for detecting audio components have data flow.
Step 905, if knowing, the input/output interface of the audio components has data flow, controls the sliding equipment and stops
Stay in the predeterminated position.
Step 906, if knowing, the input/output interface of the audio components does not have data flow, knows the application program
The input/output interface for not continuing to use the audio components controls the sliding equipment from the predeterminated position and slides back into receipts
It is dissolved in the first position of the ontology.
The control method of the slide construction of the embodiment of the present invention, in the vt applications of the electronic equipment front stage operation
In the case where camera components described in routine call, control the sliding equipment from the first position for being contained in the ontology skid off to
Predeterminated position, and monitor the electronic equipment go out shield when, whether further monitor the delay duration inner electronic equipment
Bright screen, alternatively, bright screen unlocks, if monitoring the delay bright screen of duration inner electronic equipment, alternatively, bright screen unlocks, then described in control
Sliding equipment rests on the predeterminated position.If monitoring that delay duration inner electronic equipment continues the screen that goes out, and know described answer
The input/output interface that the audio components are not continued to use with program then controls the sliding equipment from the predeterminated position
Slide back into the first position for being contained in the ontology.It is realized automatically to slide construction in conjunction with the variation of scene state as a result,
Carry out intelligent control is slid into and skidded off, user is avoided and other operations is carried out to slide construction, improve the Experience Degree of user.
On the basis of upper embodiment, camera components are called in order to facilitate other applications, as an example property
Embodiment, the first position for being contained in the ontology is slid back into from the predeterminated position in the control sliding equipment
Later, which can also generate the first flag bit corresponding with the first position, so as to need to call the electronics
The application program of element determines that the sliding equipment is according to first flag bit and is contained in the first position of the ontology,
And then send call request.
Figure 10 is the flow diagram of the control method of the sliding equipment of the specific embodiment of another embodiment of the present invention,
The embodiment using application program as video calling, and the camera components being arranged on slide construction be camera components for retouched
It states, as shown in Figure 10, the control method of the slide construction may include:
Step 1001, in the case where the camera components described in the application call of the electronic equipment front stage operation, control
It makes the sliding equipment to skid off from the first position for being contained in the ontology to predeterminated position, and monitors whether to meet preset
One scene state.
Step 1002, when monitoring that the application program is switched to running background from front stage operation, it is determined that described in satisfaction
First scene state, and monitor whether meet preset second scene state in preset delay duration.
Step 1003, front stage operation is switched to from running background when monitoring in the delay duration application program,
Then determination meets second scene state, then controls the sliding equipment and rest on the predeterminated position.
Step 1004, when monitoring that the application program continues running background in the delay duration, it is determined that be unsatisfactory for
Whether the second scene state, the input/output interface for detecting audio components have data flow.
Step 1005, if knowing, the input/output interface of the audio components has data flow, controls the sliding equipment
Rest on the predeterminated position.
Step 1006, if knowing, the input/output interface of the audio components does not have data flow, knows described using journey
Sequence does not continue to use the input/output interface of the audio components, controls the sliding equipment and slides back into from the predeterminated position
It is contained in the first position of the ontology.
The control method of the slide construction of the embodiment of the present invention, in the vt applications of the electronic equipment front stage operation
In the case where camera components described in routine call, control the sliding equipment from the first position for being contained in the ontology skid off to
Predeterminated position, and monitor the electronic equipment go out shield when, whether further monitor the delay duration inner electronic equipment
Bright screen, alternatively, bright screen unlocks, if monitoring the delay bright screen of duration inner electronic equipment, alternatively, bright screen unlocks, then described in control
Sliding equipment rests on the predeterminated position.If monitoring that delay duration inner electronic equipment continues the screen that goes out, and know described answer
The input/output interface that the audio components are not continued to use with program then controls the sliding equipment from the predeterminated position
Slide back into the first position for being contained in the ontology.It is realized automatically to slide construction in conjunction with the variation of scene state as a result,
Carry out intelligent control is slid into and skidded off, user is avoided and other operations is carried out to slide construction, improve the Experience Degree of user.
On the basis of upper embodiment, slides back into and be contained in from the predeterminated position in the control sliding equipment
After the first position of the ontology, which can also generate the first flag bit corresponding with the first position, with
Make the application program for needing to call the electronic component determine that the sliding equipment is according to first flag bit to be contained in
The first position of the ontology, and then send call request.
Figure 11 is the structural schematic diagram of the control device of the slide construction of one embodiment of the present of invention.
As shown in figure 11, the control device of the slide construction, is applied to electronic equipment 100, and the electronic equipment 100 includes
Ontology 10 and the sliding equipment 20, electronic component 40 is provided on the sliding equipment 20, and the sliding equipment 20 is used for
It is contained in the first position A of the ontology 10 and is slided between the second position B that the ontology 10 exposes, which can
To include the first control module 110, judgment module 120 and the second control module 130, wherein:
First control module 110, for electronic component described in the application call in the electronic equipment front stage operation
In the case where, it controls the sliding equipment and skids off from the first position for being contained in the ontology to predeterminated position, and monitor whether
Meet preset first scene state.
Judgment module 120 is monitored to meet first scene state, is then monitored in preset delay duration for working as
Whether preset second scene state is met.
Second control module 130 is monitored to meet second scene state in the delay duration, is then controlled for working as
The sliding equipment rests on the predeterminated position.
In one embodiment of the invention, the judgment module 120, is specifically used for:
Monitor that the electronic equipment goes out screen when the application program is in front stage operation, it is determined that meet described first
Scape state, and monitor whether meet preset second scene state in preset delay duration;
In one embodiment of the invention, the second control module 130, is specifically used for:
When monitoring the bright screen of electronic equipment in the delay duration, alternatively, bright screen unlocks, it is determined that meet described
Two scene states then control the sliding equipment and rest on the predeterminated position.
In one embodiment of the invention, the first judgment module 120, is specifically used for:
When monitoring that the application program is switched to running background from front stage operation, it is determined that meet the first scene shape
State, and monitor whether meet preset second scene state in preset delay duration;
Second control module 130, is specifically used for:When monitoring in the delay duration application program from backstage
Operation be switched to front stage operation, it is determined that meet second scene state, then control the sliding equipment rest on it is described pre-
If position.
In one embodiment of the invention, whether meet preset second in preset delay duration in the monitoring
After scene state, third control module (not shown) is used for:When monitoring to be unsatisfactory for described in the delay duration
Two scene states, then detect whether the application program continues to use relevant input/output interface;If knowing described using journey
Sequence continues to use relevant input/output interface, then controls the sliding equipment and rest on the predeterminated position.
In one embodiment of the invention, the application program be video calling, the application call it is described
Electronic component includes:Camera components;
The third control module, is specifically used for:
When monitoring to be unsatisfactory for second scene state in the delay duration, then the input and output of audio components are detected
Whether interface has data flow;
If knowing, the input/output interface of the audio components has data flow, knows that the application program continues to use institute
State the input/output interface of audio components;
If knowing, the input/output interface of the audio components does not have data flow, knows that the application program does not continue
Use the input/output interface of the audio components.
In one embodiment of the invention, whether to continue to use relevant input in the detection application program defeated
After outgoing interface, the second control module 130 is also used to:
If knowing, the application program is not continued to using relevant input/output interface, control the sliding equipment from
The predeterminated position slides back into the first position for being contained in the ontology.
In one embodiment of the invention, receiving is slid back into from the predeterminated position in the control sliding equipment
After the first position of the ontology, generation module (not shown) is used for:Generate corresponding with the first position the
One flag bit, so as to which the application program for calling the electronic component is needed to determine the sliding equipment according to first flag bit
In the first position for being contained in the ontology, and then send call request.
Wherein, it should be noted that the aforementioned control method embodiment to electronic equipment and sliding equipment is explained
The control device of the bright sliding equipment for being also applied for the embodiment, details are not described herein again.
The control device of the sliding equipment of the embodiment of the present invention, in the application call of the electronic equipment front stage operation
In the case where the electronic component, controls the sliding equipment and skid off from the first position for being contained in the ontology to default position
It sets, and is monitoring to meet first scene state, and monitoring meets preset second scene in preset delay duration
When state, controls the sliding equipment and rest on the predeterminated position.It is realized automatically pair in conjunction with the variation of scene state as a result,
The control of slide construction avoids user and carries out other operations to slide construction, improves the Experience Degree of user.
In order to realize above-described embodiment, the present invention also proposes a kind of computer readable storage medium, is stored thereon with calculating
Machine program, the program realize the control method of the sliding equipment of above-described embodiment when being executed by processor.
In order to realize above-described embodiment, the present invention also proposes a kind of computer program product, when the computer program produces
When instruction in product is executed by processor, a kind of control method of sliding equipment is executed.
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 (14)
1. a kind of control method of sliding equipment, which is characterized in that be applied to electronic equipment, the electronic equipment include ontology and
The sliding equipment is provided with electronic component on the sliding equipment, and the sliding equipment is for being contained in the ontology
First position and from the ontology expose the second position between slide, the control method includes the following steps:
In the case where the electronic component described in the application call of the electronic equipment front stage operation, the sliding equipment is controlled
It skids off from the first position for being contained in the ontology to predeterminated position, and monitors whether to meet preset first scene state;
When monitoring to meet first scene state, then whether monitoring meets preset second in preset delay duration
Scape state;
When monitoring to meet second scene state in the delay duration, then control the sliding equipment rest on it is described pre-
If position.
2. control method according to claim 1, which is characterized in that described to monitor to meet the first scene shape
State, then whether monitoring meets preset second scene state in preset delay duration, including:
Monitor that the electronic equipment goes out screen when the application program is in front stage operation, it is determined that meet the first scene shape
State, and monitor whether meet preset second scene state in preset delay duration;
It is described to monitor to meet second scene state in the delay duration, then it controls the sliding equipment and rests on institute
Predeterminated position is stated, including:
When monitoring the bright screen of electronic equipment in the delay duration, alternatively, bright screen unlocks, it is determined that meet described second
Scape state then controls the sliding equipment and rests on the predeterminated position.
3. control method according to claim 1, which is characterized in that described to monitor to meet the first scene shape
State, then whether monitoring meets preset second scene state in preset delay duration, including:
When monitoring that the application program is switched to running background from front stage operation, it is determined that meet first scene state,
And monitor whether meet preset second scene state in preset delay duration;
It is described to monitor to meet second scene state in the delay duration, then it controls the sliding equipment and rests on institute
Predeterminated position is stated, including:
Front stage operation is switched to from running background when monitoring in the delay duration application program, it is determined that described in satisfaction
Second scene state then controls the sliding equipment and rests on the predeterminated position.
4. control method according to claim 1, which is characterized in that it is described monitoring in preset delay duration whether
After meeting preset second scene state, further include:
When monitoring to be unsatisfactory for second scene state in the delay duration, then detect whether the application program continues to make
With relevant input/output interface;
If knowing, the application program continues to use relevant input/output interface, control the sliding equipment rest on it is described
Predeterminated position.
5. control method according to claim 4, which is characterized in that the application program is video calling, the application
The electronic component of routine call includes:Camera components;
It is described when monitoring to be unsatisfactory for second scene state in the delay duration, then detect the application program whether after
Continue and uses relevant input/output interface, including:
When monitoring to be unsatisfactory for second scene state in the delay duration, then the input/output interface of audio components is detected
Whether data flow is had;
If knowing, the input/output interface of the audio components has data flow, knows that the application program continues to use the sound
The input/output interface of frequency element;
If knowing, the input/output interface of the audio components does not have data flow, knows that the application program does not continue to use
The input/output interface of the audio components.
6. control method according to claim 4, which is characterized in that whether continue to make in the detection application program
After relevant input/output interface, further include:
If knowing, the application program is not continued to using relevant input/output interface, controls the sliding equipment from described
Predeterminated position slides back into the first position for being contained in the ontology.
7. control method according to claim 6, which is characterized in that preset in the control sliding equipment from described
Position slides back into after the first position for being contained in the ontology, further includes:
Generate corresponding with the first position the first flag bit so that need to call the application program of the electronic component according to
First flag bit determines that the sliding equipment is in the first position for being contained in the ontology, and then sends call request.
8. a kind of control device of sliding equipment, which is characterized in that be applied to electronic equipment, the electronic equipment include ontology and
The sliding equipment is provided with electronic component on the sliding equipment, and the sliding equipment is for being contained in the ontology
First position and from the ontology expose the second position between slide, the control device includes:
First control module, the case where for electronic component described in the application call in the electronic equipment front stage operation
Under, it controls the sliding equipment and skids off from the first position for being contained in the ontology to predeterminated position, and monitor whether to meet pre-
If the first scene state;
Whether judgment module monitors to meet first scene state, then monitors full in preset delay duration for working as
Preset second scene state of foot;
Second control module monitors to meet second scene state in the delay duration, then controls the cunning for working as
Motivation structure rests on the predeterminated position.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes ontology and sliding equipment, is set on the sliding equipment
It is equipped with electronic component, the sliding equipment is used in the first position for being contained in the ontology and expose from the ontology second
It is slided between position, the electronic equipment further includes:Memory, with the sliding equipment be electrically connected processor and be stored in
On memory and the computer program that can run on a processor, when the processor executes described program, realize that such as right is wanted
Seek the control method of any sliding equipment in 1-7.
10. electronic equipment according to claim 9, which is characterized in that one in the sliding equipment and the ontology
Be provided with magnet, another in the sliding equipment and the ontology is provided with magnetic field detectors, the magnetic field detectors with
The processor is electrically connected.
11. electronic equipment according to claim 10, which is characterized in that the memory and the processor are set to institute
It states on the mainboard of body interior;The mainboard is fixedly connected with the ontology;
The magnet is set to the sliding equipment, and the magnetic field detectors are set to the mainboard;Alternatively, the magnet setting
In the mainboard, the magnetic field detectors are set to the sliding equipment.
12. electronic equipment according to claim 10, which is characterized in that the magnetic field detectors are specially Hall element;
The processor is also used to receive the detected signal value of the Hall element output;It is determined according to the detected signal value
Position of the sliding equipment relative to the ontology.
13. electronic equipment according to claim 9, which is characterized in that
The sliding equipment is provided with range sensor, and the range sensor is at least two, at least two range sensors
Between line and the sliding equipment glide direction out of plumb;The range sensor and the processor are electrically connected;
The processor is also used to receive the detected signal value of at least two range sensor;According to described at least two
Detected signal value determines position of the sliding equipment relative to the ontology.
14. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The control method of the sliding equipment as described in any in claim 1-7 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810601790.7A CN108897375B (en) | 2018-06-12 | 2018-06-12 | Control method and device for sliding mechanism, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810601790.7A CN108897375B (en) | 2018-06-12 | 2018-06-12 | Control method and device for sliding mechanism, electronic device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108897375A true CN108897375A (en) | 2018-11-27 |
CN108897375B CN108897375B (en) | 2020-07-03 |
Family
ID=64344822
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810601790.7A Active CN108897375B (en) | 2018-06-12 | 2018-06-12 | Control method and device for sliding mechanism, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108897375B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109547598A (en) * | 2018-11-30 | 2019-03-29 | Oppo广东移动通信有限公司 | Camera module control method and device |
CN109788133A (en) * | 2018-12-30 | 2019-05-21 | 联想(北京)有限公司 | The control method and electronic equipment of a kind of electronic equipment |
WO2020108008A1 (en) * | 2018-11-30 | 2020-06-04 | Oppo广东移动通信有限公司 | Camera module control method and apparatus |
CN112965570A (en) * | 2021-03-02 | 2021-06-15 | Oppo广东移动通信有限公司 | Device control method, device, storage medium and electronic device |
EP3876072A4 (en) * | 2018-11-30 | 2022-05-18 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Sliding correction method and apparatus for sliding component |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090042610A1 (en) * | 2003-09-09 | 2009-02-12 | Hitachi, Ltd. | Portable information terminal |
US20110274422A1 (en) * | 2010-05-10 | 2011-11-10 | Hon Hai Precision Industry Co., Ltd. | Portable electronic device with camera module |
CN105867590A (en) * | 2016-03-28 | 2016-08-17 | 乐视控股(北京)有限公司 | Method and device for controlling applications of mobile terminal |
CN107800828A (en) * | 2017-11-16 | 2018-03-13 | 珠海市魅族科技有限公司 | Terminal device and its control method and computer-readable recording medium and device |
-
2018
- 2018-06-12 CN CN201810601790.7A patent/CN108897375B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090042610A1 (en) * | 2003-09-09 | 2009-02-12 | Hitachi, Ltd. | Portable information terminal |
US20110274422A1 (en) * | 2010-05-10 | 2011-11-10 | Hon Hai Precision Industry Co., Ltd. | Portable electronic device with camera module |
CN105867590A (en) * | 2016-03-28 | 2016-08-17 | 乐视控股(北京)有限公司 | Method and device for controlling applications of 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 (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109547598A (en) * | 2018-11-30 | 2019-03-29 | Oppo广东移动通信有限公司 | Camera module control method and device |
WO2020108008A1 (en) * | 2018-11-30 | 2020-06-04 | Oppo广东移动通信有限公司 | Camera module control method and apparatus |
WO2020108007A1 (en) * | 2018-11-30 | 2020-06-04 | Oppo广东移动通信有限公司 | Camera module control method and device |
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 |
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 |
CN109788133A (en) * | 2018-12-30 | 2019-05-21 | 联想(北京)有限公司 | The control method and electronic equipment of a kind of electronic equipment |
CN112965570A (en) * | 2021-03-02 | 2021-06-15 | Oppo广东移动通信有限公司 | Device control method, device, storage medium and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN108897375B (en) | 2020-07-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108897375A (en) | Control method, device, electronic equipment and the storage medium of sliding equipment | |
US10868692B2 (en) | Monitoring device using automation network | |
CA2633121A1 (en) | Simplified user interface and graduated response in a programmable baseboard thermostat incorporating an occupancy sensor | |
EP4283605A2 (en) | Proximity aware content switching user interface | |
CN108833623B (en) | Sliding control method and device of sliding assembly and electronic device | |
JPH07311647A (en) | Position detection device and its noise removing method | |
US9178510B2 (en) | Methods and touch devices using multiple sampling frequencies | |
US9430091B2 (en) | Coordinate positioning module, optical touch system, method of detecting power of an active touch medium, and method of switching modes of the active touch medium | |
CN105700666A (en) | Terminal device and electricity saving method and device thereof | |
CN108829461A (en) | Camera starts control method, device and electronic equipment | |
KR101143986B1 (en) | Vehicular alram system and a method for controlling the same | |
CN105334966A (en) | Error operation preventing method and device and terminal device | |
CN110516423A (en) | Management method, device, electronic equipment and the readable storage medium storing program for executing of electronic equipment | |
CN109151106A (en) | Control method by sliding, device, electronic device and the storage medium of slide assemblies | |
CN111802985A (en) | Washing program switching method and device based on washing equipment | |
CN104412607A (en) | Display device, and control method for display device | |
CN109151107B (en) | Sliding control method and device for sliding assembly, electronic device and storage medium | |
KR20130130452A (en) | System and apparatus for managing utility poles, and method of using the same | |
CN113630647B (en) | Television control method, system, television and computer readable storage medium | |
CN108924289A (en) | Control method, device, electronic equipment and the storage medium of sliding equipment | |
CN108989493A (en) | Control method, control assembly, electronic equipment and the storage medium of sliding equipment | |
EP3257447A1 (en) | Ultrasonic diagnostic system | |
KR101339005B1 (en) | Vehicle monitor device and method for controlling the same | |
CN109005279B (en) | Control method and device for sliding mechanism | |
CN108924288A (en) | Sliding equipment control method, device, electronic equipment and storage 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 |