Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Fig. 1 shows the structured flowchart of the mobile terminal that the embodiment of the present invention provides, and for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.With reference to Fig. 1, described mobile terminal comprises fuselage body 11, and the protective sleeve 12 be connected with described fuselage body.Described fuselage body 11 comprises proximity transducer 111 and magneto-dependent sensor 112, and described protective sleeve 12 comprises magnet 121, and described magneto-dependent sensor 112 is connected with described magnet 121 magnetic.
Preferably, described magneto-dependent sensor 112 is Hall element.
It should be noted that, mobile terminal in the embodiment of the present invention can comprise mobile phone (or being called " honeycomb " phone) and have the computer of mobile terminal, such as, can be portable, pocket, hand-hold type or built-in computer mobile device, they and wireless access network exchange language and/or data.Such as, Personal Communications Services (Personal Communication Service, PCS) phone, cordless telephone, Session initiation Protocol (Session Initiation Protocol, SIP) phone, wireless local loop (Wireless LocalLoop, WLL) stand, personal digital assistant (Personal Digital Assistant, the equipment such as PDA), in this no limit.
The embodiment of the present invention is by when reaching default ring time; obtain the first output valve of proximity transducer; after alarm clock jingle bell; if detect, the absolute value of the current output valve of proximity transducer and the difference of the first output valve is greater than the first preset value; then predetermined registration operation is performed to alarm clock; protective sleeve thus by opening mobile terminal after alarm clock jingle bell carrys out turn off the alarm, postpones the ring time of alarm clock or perform other predetermined registration operation to alarm clock, thus improves the simple operation that the alarm clock based on mobile terminal controls.
Fig. 2 shows the realization flow figure of the alarm clock control method that the embodiment of the present invention provides, and the executive agent of the method can be the mobile terminal in Fig. 1.With reference to Fig. 2:
In step s 201, when reaching default ring time, obtain the first output valve of described proximity transducer.
In embodiments of the present invention, when reaching default ring time, obtain the first output valve of proximity transducer, with the initial value of proximity transducer before being recorded in alarm clock jingle bell.
It should be noted that, before alarm clock jingle bell, the protective sleeve of mobile terminal may be in open mode, also may be in closure state.
In step S202, after alarm clock jingle bell, if detect, the absolute value of the current output valve of described proximity transducer and the difference of described first output valve is greater than the first preset value, then perform predetermined registration operation to described alarm clock.
By calculating the current output valve of proximity transducer and the difference of the first output valve, the situation of change of the on off state of protective sleeve can be determined.The absolute value of the current output valve of proximity transducer and the difference of the first output valve is greater than the first preset value, shows that protective sleeve becomes closure state from open mode, or becomes open mode from closure state.After alarm clock jingle bell, if protective sleeve becomes closure state from open mode, or become open mode from closure state, then predetermined registration operation is performed to alarm clock.
Alternatively, describedly predetermined registration operation performed to described alarm clock be specially:
Close described alarm clock.
As one embodiment of the present of invention; after alarm clock jingle bell; if protective sleeve becomes closure state from open mode; or become open mode from closure state; then turn off the alarm, thus achieves quick closedown alarm clock, improves the simple operation of turn off the alarm; reduce alarm clock based on mobile terminal in public to other people influence degree, improve Consumer's Experience.
Alternatively, describedly predetermined registration operation performed to described alarm clock be specially:
Again jingle bell is carried out after Preset Time.
As one embodiment of the present of invention, after alarm clock jingle bell, if protective sleeve becomes closure state from open mode, or become open mode from closure state, then after Preset Time, again carry out jingle bell, thus achieve the function of postponing jingle bell.
Fig. 3 shows the realization flow figure of the alarm clock control method that another embodiment of the present invention provides, with reference to Fig. 3:
In step S301, when reaching default ring time, obtain the first output valve of described proximity transducer, and obtain the second output valve of described magneto-dependent sensor;
In step s 302, after alarm clock jingle bell, if detect, the absolute value of the current output valve of described proximity transducer and the difference of described first output valve is greater than the first preset value, and the absolute value of the difference of the current output valve of described magneto-dependent sensor and described second output valve is greater than the second preset value, then predetermined registration operation is performed to described alarm clock.
As one embodiment of the present of invention, when reaching default ring time, obtain the first output valve of proximity transducer, and obtain the second output valve of magneto-dependent sensor, with the initial value of proximity transducer before being recorded in alarm clock jingle bell and magneto-dependent sensor.When the absolute value of the current output valve of proximity transducer and the difference of the first output valve is greater than the first preset value; and the absolute value of the difference of the current output valve of magneto-dependent sensor and the second output valve is when being greater than the second preset value; show that protective sleeve becomes closure state from open mode, or become open mode from closure state.After alarm clock jingle bell, if protective sleeve becomes closure state from open mode, or become open mode from closure state, then predetermined registration operation is performed to alarm clock.
In embodiments of the present invention, be combined the on off state judging protective sleeve with magneto-dependent sensor by proximity transducer, improve the accuracy of judgement.
Should be understood that in embodiments of the present invention, the size of the sequence number of above-mentioned each process does not also mean that the priority of execution sequence, and the execution sequence of each process should be determined with its function and internal logic, and should not form any restriction to the implementation process of the embodiment of the present invention.
The embodiment of the present invention is by when reaching default ring time; obtain the first output valve of proximity transducer; after alarm clock jingle bell; if detect, the absolute value of the current output valve of proximity transducer and the difference of the first output valve is greater than the first preset value; then predetermined registration operation is performed to alarm clock; protective sleeve thus by opening mobile terminal after alarm clock jingle bell carrys out turn off the alarm, postpones the ring time of alarm clock or perform other predetermined registration operation to alarm clock, thus improves the simple operation that the alarm clock based on mobile terminal controls.
Those of ordinary skill in the art can recognize, in conjunction with the algorithm steps of each example that embodiment disclosed herein describes, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the mobile terminal of foregoing description, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection range of claim.