CN106598521A - Screen state control method and device of mobile terminal and mobile terminal - Google Patents

Screen state control method and device of mobile terminal and mobile terminal Download PDF

Info

Publication number
CN106598521A
CN106598521A CN201611157296.3A CN201611157296A CN106598521A CN 106598521 A CN106598521 A CN 106598521A CN 201611157296 A CN201611157296 A CN 201611157296A CN 106598521 A CN106598521 A CN 106598521A
Authority
CN
China
Prior art keywords
change
hall element
state
state change
frequency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611157296.3A
Other languages
Chinese (zh)
Other versions
CN106598521B (en
Inventor
张强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201611157296.3A priority Critical patent/CN106598521B/en
Publication of CN106598521A publication Critical patent/CN106598521A/en
Application granted granted Critical
Publication of CN106598521B publication Critical patent/CN106598521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros

Abstract

Embodiments of the invention disclose a screen state control method and device of a mobile terminal and the mobile terminal. The method comprises the following steps of: obtaining a first change frequency of state change of a Hall sensor of the terminal; judging whether the state change of the Hall sensor is abnormal or not according to the first change frequency; and when the state change of the Hall sensor is abnormal, controlling the screen state of the terminal to keep an original state. According to the technical scheme provided by the embodiments of the invention, the problem that the screen of the mobile terminal is on or off suddenly as the screen state of the terminal is controlled according to the state change of the Hall sensor when the state change of the Hall sensor in the mobile terminal is abnormal is avoided, the existing screen control method is optimized, and the correctness of controlling the screen state of the mobile terminal by the mobile terminal is enhanced.

Description

The screen state control method of mobile terminal, device and mobile terminal
Technical field
The present embodiments relate to field of terminal technology, more particularly to a kind of mobile terminal screen state control method, Device and mobile terminal.
Background technology
Hall element is that a class can directly to magnetic field and its sensor that be detected of change, and Hall voltage is strong with magnetic field The change of degree and change, magnetic field is stronger, and voltage is higher, and magnetic field is weaker, and voltage is lower.
Hall element is mainly used in mobile terminal at present, and on some mobile terminals, wearing has the skin of carrying magnetic material Set.When close leather sheath when, magnetisable material and mobile terminal close contact are changed in mobile terminal at Hall element position Magnetic field size, Hall element detects the change in magnetic field, changes of magnetic field is converted into value of electrical signals and exported to movement The control system of terminal, the control system control screen of mobile terminal are extinguished;When leather sheath is opened, the control system of mobile terminal Control screen is lighted.
At present when the screen that mobile terminal is controlled using Hall element is extinguished and lighted, directly according to Hall element Hall state, enter horizontal blanking or light the operation of screen.But, when mobile terminal in the environment such as Qiang Ci (such as workshop, Aluminium manufacturer) in when, Hall element is inevitably subject to strong magnetic disturbance so that the state of Hall element occurs repeatedly to become Change, cause the screen of mobile terminal to produce and neglect suddenly bright problem of going out, have a strong impact on the normal use of user.
The content of the invention
The embodiment of the present invention provides a kind of screen state control method of mobile terminal, device and mobile terminal, to be lifted The accuracy that mobile terminal is controlled to mobile terminal screen state.
In a first aspect, embodiments provide a kind of screen state control method of mobile terminal, including:
Obtain the first change frequency of the state change of the Hall element of terminal;
According to first change frequency, judge whether the state change of the Hall element is abnormal;
When it is determined that the state change of the Hall element is abnormal, the screen state of control terminal keeps initial condition.
In second aspect, a kind of screen state control device of mobile terminal is embodiments provided, including:
First change frequency acquisition module, for obtaining the first change frequency of the state change of the Hall element of terminal Rate;
Hall sensor state judge module, according to first change frequency, judges the state of the Hall element Whether change is abnormal;
Initial condition keeps module, for when it is determined that the state change of the Hall element is abnormal, control terminal Screen state keeps initial condition.
In the third aspect, a kind of mobile terminal is embodiments provided, including memorizer, processor and be stored in On reservoir and the computer program that can run on a processor, following walking described in the computing device, during computer program, is realized Suddenly:
Obtain the first change frequency of the state change of the Hall element of terminal;
According to first change frequency, judge whether the state change of the Hall element is abnormal;
When it is determined that the state change of the Hall element is abnormal, the screen state of control terminal keeps initial condition.
Technical scheme provided in an embodiment of the present invention, by the state change of the Hall element according to the terminal for getting The first change frequency, judge that the state change of Hall element is whether abnormal, when it is determined that the state change of Hall element is different Chang Shi, the screen state of control terminal keep initial condition, it is to avoid the state change of the Hall element in mobile terminal is different Chang Shi, always according to the screen state of the state change control terminal of Hall element, causes the screen of mobile terminal to produce and goes out suddenly Suddenly bright problem, optimizes existing screen control method, improves the standard that mobile terminal is controlled to mobile terminal screen state Exactness.
Description of the drawings
Fig. 1 is the flow chart of the screen state control method of the mobile terminal that the embodiment of the present invention one is provided;
Fig. 2 is the flow chart of the screen state control method of the mobile terminal that the embodiment of the present invention two is provided;
Fig. 3 is the flow chart of the screen state control method of the mobile terminal that the embodiment of the present invention three is provided;
Fig. 4 is the flow chart of the screen state control method of the mobile terminal that the embodiment of the present invention four is provided;
Fig. 5 is the structural representation of the screen state control device of the mobile terminal that the embodiment of the present invention five is provided;
Fig. 6 is the structural representation of the mobile terminal that the embodiment of the present invention six is provided.
Specific embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with the accompanying drawings to concrete reality of the invention Apply example to be described in further detail.It is understood that specific embodiment described herein is used only for explaining the present invention, Rather than limitation of the invention.It also should be noted that, for the ease of description, illustrate only in accompanying drawing related to the present invention Part rather than full content.It should be mentioned that some exemplary realities before exemplary embodiment is discussed in greater detail Apply process or method that example is described as describing as flow chart.Although operations (or step) are described as order by flow chart Process, but many of which operation can by concurrently, concomitantly or while implement.Additionally, the order of operations Can be rearranged.The process when its operations are completed can be terminated, and be not included in accompanying drawing it is also possible to have Additional step.The process can correspond to method, function, code, subroutine, subprogram etc..
Embodiment one
Fig. 1 gives the flow chart of the screen state control method of the mobile terminal of the offer of the embodiment of the present invention one, this reality The method for applying example can be performed by the screen state control device of mobile terminal, and the device can pass through hardware and/or software Mode realizes that described device can be arranged on inside the mobile terminal as a part for mobile terminal.
As shown in figure 1, the method that the present embodiment is provided specifically includes following steps:
First change frequency of step 101, the state change of the Hall element of acquisition terminal.
Terminal described in the present embodiment includes but is not limited to the setting with Hall element such as mobile phone, panel computer It is standby.Mobile terminal in the present embodiment preferably dresses the mobile terminal of the wearable device for having carrying magnetic material.
Hall element in terminal passes through the change for detecting the magnetic field residing for which, and changes of magnetic field is converted into value of electrical signals And export to the control system of mobile terminal, the control system control screen state of mobile terminal.According to the change in magnetic field, Hall The state of sensor changes therewith.When under home of the terminal in non-magnetic interference, the magnetic field residing for Hall element is The magnetic field formed with Hall element by magnetisable material on wearable device;Strong magnetic environment (such as workshop, aluminum are in terminal Factory etc.) under when, the magnetic field residing for Hall element includes what magnetisable material on wearable device and Hall element were formed The magnetic field formed under magnetic field, and strong magnetic environment.When terminal is in strong magnetic environment, due to the interference of strong magnetic environment so that There is exception in the frequency of the Hall state change of Hall element, therefore, become by obtaining the state of Hall element of terminal The frequency of change, it can be determined that whether terminal is disturbed by strong magnetic environment.
Step 102, according to first change frequency, judge whether the state change of the Hall element abnormal, if Abnormal then execution step 103, otherwise execution step 104.
The state change exception of the Hall element, it may be possible to cause Hall as Hall element itself produces failure The state change exception of sensor, it is also possible to which terminal is currently at strong magnetic disturbance environment causes the state change of Hall element It is abnormal.When Hall element the first change frequency not in the normal variation frequency range of Hall element when, then can recognize For the state change exception of Hall element.User is investigated in advance can in the wearable device being equipped with using mobile terminal, Open wearable device and close the frequency of wearable device, the normal variation frequency range is set according to finding.Example Such as, user's normal number of times for opening and closing wearable device in 1 second is 0-4 time, then the normal variation frequency range sets It is set to 0 time/second -4 times/seconds.
Step 103, the screen state of control terminal keep initial condition.
The screen state includes putting out screen state and bright screen state.When it is determined that the state change of Hall element is abnormal, The screen state of controllable terminal does not change according to the state change of Hall element.For example, if terminal is in strong magnetic environment In, Hall element is disturbed by strong magnetic environment, and the state change of the Hall element that strong magnetic environment causes cannot then be made For the signal of control terminal screen state, now, the screen state of control terminal keeps initial condition, you can to avoid strong magnet ring The interference in border.
Step 104, according to the screen state change of the state change situation control terminal of the Hall element.
When it is determined that the state change of the Hall element is normal, according to the state change situation of the Hall element The screen state change of control terminal.
When the state change of Hall element is normal, i.e., the first change frequency of the state change of Hall element is just When often in the range of change frequency, then can determine Hall element state change be it is correct, can be according to Hall element State change situation control terminal screen state change.
The technical scheme that the present embodiment is provided, by the of the state change according to the Hall element of terminal for getting One change frequency, judges whether the state change of Hall element is abnormal, when it is determined that the state change of Hall element is abnormal, The screen state of control terminal keeps initial condition, it is to avoid when the state change of the Hall element in mobile terminal is abnormal, Always according to the screen state of the state change control terminal of Hall element, cause the screen of mobile terminal to produce and go out suddenly bright suddenly Problem, optimizes existing screen control method, improves the accuracy that mobile terminal is controlled to mobile terminal screen state.
On the basis of above-mentioned technical proposal, also include:When it is determined that the state change of the Hall element is abnormal, control System closes the interrupt function of the Hall element.Wherein, the interrupt function of the Hall element be used for Hall element to Upper strata reports its state.For example, when the magnetisable material on wearable device is with mobile terminal close contact, Hall element Produce to be close to and interrupt, so that the current state that terminal gets Hall element is proximity state, and control screen puts out screen.When suddenly After the interrupt function of your sensor is closed, Hall element can not be produced to be close to and be interrupted and away from interruption, make the terminal cannot Get the state of Hall element, and then uncontrollable screen state.
When the state change of Hall element is abnormal, if the interrupt function of Hall element is still within opening, Then the screen state of mobile terminal can change according to the ANOMALOUS VARIATIONS of Hall sensor state, affect the use of user.When true When determining the state change exception of Hall element, screen state need to only keep initial condition, then the interrupt function of Hall element Need to close.
Embodiment two
The flow chart that Fig. 2 gives the screen state control method of the mobile terminal of the offer of the embodiment of the present invention two.This reality Apply example to be optimized based on above-described embodiment one.In the present embodiment, " according to first change frequency, institute will be judged Whether the state change for stating Hall element is abnormal " it is optimized for:If first change frequency is more than or equal to predeterminated frequency, Then determine the state change exception of the Hall element.
Accordingly, as shown in Fig. 2 the method that the present embodiment is provided is comprised the following steps:
First change frequency of step 201, the state change of the Hall element of acquisition terminal.
Step 202, first change frequency is judged whether more than or equal to predeterminated frequency, if so, then execution step 203, otherwise terminate.
The predeterminated frequency can be more than the minima of the maximum in normal variation frequency range.Exemplary, can To set predeterminated frequency as 5 times/second.
Step 203, the state change exception for determining the Hall element, the screen state of control terminal keep original shape State.
When the first change frequency of the state change of Hall element is more than or equal to 5 time/second, it may be determined that Hall The state change of sensor is caused by reasons such as interference or faults itselfs, it is determined that the state change of Hall element is different Often, and control terminal screen state keep initial condition, it is possible thereby to ensure that the screen state of terminal will not be passed because of Hall The ANOMALOUS VARIATIONS of sensor and change, ensure user normal use.
Step 204, end.
The present embodiment provide technical scheme, by judge Hall element state change the first change frequency with it is pre- If the magnitude relationship of frequency, when the former is more than the latter, the state change exception of Hall element, the screen of control terminal are determined State keeps initial condition, it is to avoid when the state change of the Hall element in mobile terminal is abnormal, always according to hall sensing The screen state of the state change control terminal of device, causes the screen of mobile terminal to produce and neglects suddenly bright problem of going out, realize standard Determine the abnormal situation of the state change of Hall element, optimize existing screen control method, improve mobile terminal Accuracy to the control of mobile terminal screen state.
On the basis of above-mentioned technical proposal, if being more than or equal to predeterminated frequency in first change frequency, really After the state change exception of the fixed Hall element, also include:
The stabilization time of the Hall element is reset, so that the stabilization time after resetting is more than Hall element in exception The state change cycle under state.
If the changes of magnetic field time interval residing for Hall element is in the stabilization time interval of Hall element, i.e., suddenly In the stabilization time of your sensor, repeatedly, then Hall element is not responding to the change in the magnetic field to changes of magnetic field, it is possible thereby to avoid Hall element by change frequency, disturbed faster by magnetic field.Reset the stabilization time so that the stabilization time is more than hall sensing State change cycle of the device under abnormality, it is ensured that the ANOMALOUS VARIATIONS of Hall element is in the stabilization of Hall element In, thereby guarantee that Hall element is interference-free.Exemplary, if detecting the first change frequency for 5 times/second, Hall State change cycle of the sensor under abnormality is 200ms, then the stabilization time that can reset Hall element is 300ms。
Embodiment three
The flow chart that Fig. 3 gives the screen state control method of the mobile terminal of the offer of the embodiment of the present invention three.This reality Apply example to be optimized based on above-described embodiment one.In the present embodiment, " according to first change frequency, institute will be judged Whether the state change for stating Hall element is abnormal " it is optimized for:If first change frequency is more than zero and is less than predeterminated frequency, Second change frequency of the state change of the proximity transducer of terminal is obtained then;If second change frequency is zero, it is determined that The state change exception of the Hall element.
Accordingly, as shown in figure 3, the method for the present embodiment offer, comprises the following steps:
First change frequency of step 301, the state change of the Hall element of acquisition terminal.
Step 302, first change frequency is judged whether more than zero and less than predeterminated frequency, if then execution step 303, otherwise terminate.
Second change frequency of step 303, the state change of the proximity transducer of acquisition terminal.
First change frequency of the state change of Hall element is more than zero and is less than predeterminated frequency, then can be shown that Hall is passed The state change of sensor is normal, or less by the interference of outside strong magnetic environment, or itself generates small failure.That Can be by detecting that the state change of proximity transducer further determines that whether the state change of Hall element is abnormal.
The modal proximity transducer configured in mobile terminal includes infrared proximity transducer.Infrared proximity transducer to Emission infrared ray, the infra-red intensity for then being reflected by Measuring Object come between judgment object and sensor away from From the infrared light intensity for receiving is stronger, then it represents which is less with the distance between object.Can wear when proximity transducer is detected When the equipment of wearing is close to terminal screen, then the state of proximity transducer be proximity state, terminal control screen extinguish;Sense when being close to When device detects wearable device away from screen, then the state of proximity transducer is that, away from state, terminal control screen is lighted.
Step 304, judge whether second change frequency is zero, if so, then execution step 305, otherwise execution step 306。
Step 305, the state change exception for determining the Hall element, the screen state of control terminal keep original shape State.
Second change frequency of proximity transducer is zero, i.e. the state of proximity transducer does not change, then hall sensing The state change of device is probably by magnetic interference or itself generates what failure caused, then can determine the shape of Hall element State variation abnormality.
Step 306, judge the difference of second change frequency and first change frequency whether in setting error model In enclosing, if so, then execution step 307, otherwise terminate.
Step 307, determine that the state change of the Hall element is normal, according to the state change of the Hall element The screen state change of situation control terminal.
If terminal is not disturbed by strong magnetic magnetic field, then when the wearable device of terminal configuration is close to or away from terminal, The state of Hall element and proximity transducer changes simultaneously, i.e. the first change frequency of Hall element and proximity transducer Second change frequency is close to.Therefore, when the difference of the second change frequency and the first change frequency is when setting in range of error, can It is normal with the state change for determining Hall element, now state change of the screen state of control terminal according to Hall element Situation and change.The setting range of error can take the numerical value close to zero.It is possible thereby to ensure in the range of certain error, Can correctly judge whether the state change of Hall element is normal.
Step 308, end.
The technical scheme that the present embodiment is provided, by first change frequency and proximity transducer of acquisition Hall element Second change frequency, when the first change frequency is more than zero and to be less than predeterminated frequency and the second change frequency be zero, it is determined that suddenly The state change exception of your sensor, and the screen state of control terminal keeps initial condition, realizes to causing hall sensing The abnormal accurate determination of the state change of device, it is ensured that the correctness to the judgement of the state change of Hall element, so as to carry The control accuracy to the screen state of mobile terminal using Hall element is risen.
Example IV
The flow chart that Fig. 4 gives the screen state control method of the mobile terminal of the offer of the embodiment of the present invention four.This reality It is the preferred embodiment based on above-mentioned any embodiment to apply example.The method of the present embodiment includes:
First change frequency of step 401, the state change of the Hall element of acquisition terminal.
Step 402, first change frequency is judged whether more than or equal to predeterminated frequency, if so, then execution step 406, otherwise execution step 403.
Step 403, first change frequency is judged whether more than zero and less than predeterminated frequency, if then execution step 404, otherwise execution step 409.
Second change frequency of step 404, the state change of the proximity transducer of acquisition terminal.
Step 405, judge whether second change frequency is zero, if so, then execution step 406, otherwise execution step 407。
Step 406, the state change exception for determining the Hall element, the screen state of control terminal keep original shape State.
The predeterminated frequency can be more than the minima of the maximum in normal variation frequency range.Work as Hall element The first change frequency be more than or equal to predeterminated frequency when, it may be determined that the state change exception of Hall element, then control The screen state of terminal keeps initial condition.
When the first change frequency of Hall element is more than zero and is less than predeterminated frequency, and the state change of proximity transducer The second change frequency when being zero, it may be determined that the state change exception of Hall element, then the screen state of control terminal protect Hold initial condition.The initial condition detects the shape before Hall sensor state changes residing for Hall element for terminal State.Exemplary, if screen initial condition is to put out screen state, screen state is put out in holding;If screen initial condition is bright screen state, Bright screen state is kept then.
Step 407, judge the difference of second change frequency and first change frequency whether in setting error model In enclosing, if so, then execution step 408, otherwise terminate.
Step 408, determine that the state change of the Hall element is normal, according to the state change of the Hall element The screen state change of situation control terminal.
When the first change frequency of Hall element is more than zero and is less than predeterminated frequency, and the state change of proximity transducer The second change frequency when being not zero, further determine that the second change of first change frequency and proximity transducer of Hall element Change the difference of frequency, if difference is in setting range of error, can determine that the state change of the Hall element is normal, control The screen state of terminal processed changes according to the state change of Hall element.
Step 409, determine that the state of the Hall element does not change, the screen state of control terminal keeps original State.
When the first change frequency of Hall element is zero, determine that the state of the Hall element does not change, The screen state of control terminal keeps initial condition.
Step 410, end.
The technical scheme that the present embodiment is provided, becomes by first of the state change according to the Hall element for judging terminal Change the magnitude relationship of frequency and predeterminated frequency, the second change frequency of proximity transducer and zero magnitude relationship and the second change Whether the difference of frequency and the first change frequency determines whether the state of Hall element changes in setting range of error And whether change is abnormal, and the screen state of correspondence control terminal, it is to avoid the state of the Hall element in mobile terminal During variation abnormality, always according to the screen state of the state change control terminal of Hall element, the screen of mobile terminal is caused to produce It is raw to neglect suddenly bright problem of going out, existing screen control method is optimized, and mobile terminal is improved to mobile terminal screen state control The accuracy of system.
Embodiment five
The structural representation of the screen state control device of the mobile terminal that Fig. 5 is provided for the embodiment of the present invention five, the dress Put and can be realized by software and/or hardware, be typically integrated in mobile terminal.As shown in figure 5, the device includes the first change frequency Acquisition module 51, Hall sensor state judge module 52 and initial condition keep module 53.
First change frequency acquisition module 51, for obtaining the first change frequency of the state change of the Hall element of terminal Rate;
Hall sensor state judge module 52, according to first change frequency, judges the shape of the Hall element Whether state change is abnormal;
Initial condition keeps module 53, for when it is determined that the state change of the Hall element is abnormal, control terminal Screen state keep initial condition.
The technical scheme that the present embodiment is provided, by the of the state change according to the Hall element of terminal for getting One change frequency, judges whether the state change of Hall element is abnormal, when it is determined that the state change of Hall element is abnormal, The screen state of control terminal keeps initial condition, it is to avoid when the state change of the Hall element in mobile terminal is abnormal, Always according to the screen state of the state change control terminal of Hall element, cause the items of mobile terminal to produce and go out suddenly bright suddenly Problem, optimizes existing screen control method, improves the accuracy that mobile terminal is controlled to mobile terminal screen state.
On the basis of above-mentioned technical proposal, the Hall sensor state judge module 52 specifically for:
If first change frequency is more than or equal to predeterminated frequency, it is determined that the state change of the Hall element It is abnormal.
On the basis of above-mentioned technical proposal, the Hall sensor state judge module 52 specifically for:
If first change frequency is more than zero and is less than predeterminated frequency, the state for obtaining the proximity transducer of terminal becomes The second change frequency changed;
If second change frequency is zero, it is determined that the state change exception of the Hall element.
On the basis of above-mentioned technical proposal, described device also includes that the stabilization time resets module, if for described the One change frequency is more than or equal to predeterminated frequency, it is determined that after the state change exception of the Hall element, resets institute The stabilization time of Hall element is stated, so that state of the stabilization time after resetting more than Hall element under abnormality becomes The change cycle.
On the basis of above-mentioned technical proposal, described device also includes:
The normal determining module of state change, if the difference for second change frequency with first change frequency exists In setting range of error, it is determined that the state change of the Hall element is normal.
On the basis of above-mentioned technical proposal, described device also includes:
Interrupt function control module, for, when it is determined that the state change of the Hall element is abnormal, institute is closed in control State the interrupt function of Hall element.
On the basis of above-mentioned technical proposal, described device also includes:
Screen state control module, for when it is determined that the state change of the Hall element is normal, according to it is described suddenly The screen state change of the state change situation control terminal of your sensor.
The screen state control device of mobile terminal provided in an embodiment of the present invention can perform any embodiment of the present invention and carry For mobile terminal screen state control method, possess the corresponding functional module of execution method and beneficial effect.
Embodiment six
A kind of mobile terminal is present embodiments provided, the mobile terminal can include the movement that the embodiment of the present invention five is provided The screen state control device of terminal.Fig. 6 is a kind of structural representation of mobile terminal that the embodiment of the present invention six is provided, and is such as schemed Shown in 6, the mobile terminal can include:Memorizer 601, central processing unit (Central Processing Unit, CPU) 602 (also known as processor, hereinafter referred to as CPU), the memorizer 601, for storing executable program code;The processor 602 leads to Cross the executable program code that stores in reading the memorizer 601 to run journey corresponding with the executable program code Sequence, for performing:Obtain the first change frequency of the state change of the Hall element of terminal;According to the described first change frequency Rate, judges whether the state change of the Hall element is abnormal;When it is determined that the state change of the Hall element is abnormal, The screen state of control terminal keeps initial condition.
The mobile terminal also includes:Peripheral Interface 603, RF (Radio Frequency, radio frequency) circuit 605, audio-frequency electric Road 606, speaker 611, power management chip 608, input/output (I/O) subsystem 609, touch screen 612, other input/controls Control equipment 610 and outside port 604, these parts are communicated by one or more communication bus or holding wire 607.
It should be understood that diagram mobile terminal 600 is only an example of mobile terminal, and mobile terminal 600 Can be with than the more or less part shown in figure, can combining two or more parts, or can be with Configure with different parts.Various parts shown in figure can be including one or more signal processing and/or special Integrated circuit is realized in the combination of interior hardware, software or hardware and software.
The mobile terminal for controlling the screen state of mobile terminal for providing with regard to the present embodiment below carries out detailed retouching State, the mobile terminal is by taking mobile phone as an example.
Memorizer 601, the memorizer 601 can be accessed by CPU602, Peripheral Interface 603 etc., and the memorizer 601 can Including high-speed random access memory, can also include nonvolatile memory, such as one or more disk memories, Flush memory device or other volatile solid-state parts.
The input of equipment and output peripheral hardware can be connected to CPU602 and be deposited by Peripheral Interface 603, the Peripheral Interface 603 Reservoir 601.
I/O subsystems 609, the I/O subsystems 609 can be by the input/output peripherals on equipment, such as touch screen 612 With other input/control devicess 610, Peripheral Interface 603 is connected to.I/O subsystems 609 can include 6091 He of display controller For controlling one or more input controllers 6092 of other input/control devicess 610.Wherein, one or more input controls Device processed 6092 receives the signal of telecommunication from other input/control devicess 610 or sends the signal of telecommunication to other input/control devicess 610, Other input/control devicess 610 can include physical button (pressing button, rocker buttons etc.), dial, slide switches, behaviour Vertical pole, click roller.What deserves to be explained is, input controller 6092 can with it is following any one be connected:Keyboard, infrared port, The instruction equipment of USB interface and such as mouse.
Touch screen 612, the touch screen 612 are the input interfaces and output interface between user terminal and user, can Depending on output display to user, visual output can include figure, text, icon, video etc..
Display controller 6091 in I/O subsystems 609 receives the signal of telecommunication or to touch screen 612 from touch screen 612 Electric signals.The contact for detecting is converted to and display by the contact on the detection touch screen of touch screen 612, display controller 6091 The interaction of the user interface object on touch screen 612, that is, realize man-machine interaction, the user interface being displayed on touch screen 612 Object can be the icon of running game, be networked to icon of corresponding network etc..What deserves to be explained is, equipment can also include light Mus, light Mus are not show the visual touch sensitive surface for exporting, or the extension of the touch sensitive surface formed by touch screen.
RF circuits 605, are mainly used in setting up the communication of mobile phone and wireless network (i.e. network side), realize mobile phone and wireless network The data receiver of network and transmission.Short message, Email, call etc. are received and dispatched for example.Specifically, RF circuits 605 are received and are sent RF signals, RF signals are also referred to as electromagnetic signal, and RF circuits 605 convert electrical signals to electromagnetic signal or are converted to electromagnetic signal The signal of telecommunication, and communicated with communication network and other equipment by the electromagnetic signal.RF circuits 605 can include for The known circuit of these functions is performed, which includes but is not limited to antenna system, RF transceivers, one or more amplifiers, tuning Device, one or more agitators, digital signal processor, CODEC (COder-DECoder, coder) chipset, Yong Hubiao Know module (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 606, is mainly used in receiving voice data from Peripheral Interface 603, the voice data is converted to telecommunications Number, and the signal of telecommunication is sent to into speaker 611.
Speaker 611, for the voice signal for receiving mobile phone by RF circuits 605 from wireless network, is reduced to sound And the sound is played to user.
Power management chip 608, the hardware for being connected by CPU602, I/O subsystem and Peripheral Interface 603 are supplied Electricity and power management.
Above-mentioned mobile terminal can perform the method provided by any embodiment of the present invention, possess the corresponding function of execution method Module and beneficial effect.Ins and outs of detailed description in the above-described embodiments, not can be found in any embodiment of the present invention and are carried For mobile terminal screen state control method.
Above are only presently preferred embodiments of the present invention and the know-why used.The invention is not restricted to spy described here Determine embodiment, the various significant changes that can carry out for a person skilled in the art, readjust and substitute all without departing from Protection scope of the present invention.Therefore, although the present invention is described in further detail by above example, but this It is bright to be not limited only to above example, without departing from the inventive concept, more other equivalence enforcements can also be included Example, and the scope of the present invention is determined by the scope of claim.

Claims (15)

1. the screen state control method of a kind of mobile terminal, it is characterised in that include:
Obtain the first change frequency of the state change of the Hall element of terminal;
According to first change frequency, judge whether the state change of the Hall element is abnormal;
When it is determined that the state change of the Hall element is abnormal, the screen state of control terminal keeps initial condition.
2. method according to claim 1, it is characterised in that described according to first change frequency, judge described in suddenly Whether you the state change of sensor include extremely:
If first change frequency is more than or equal to predeterminated frequency, it is determined that the state change of the Hall element is different Often.
3. method according to claim 1, it is characterised in that described according to first change frequency, judge described in suddenly Whether you the state change of sensor include extremely:
If first change frequency is more than zero and is less than predeterminated frequency, the state change of the proximity transducer of terminal is obtained Second change frequency;
If second change frequency is zero, it is determined that the state change exception of the Hall element.
4. method according to claim 2, it is characterised in that if in first change frequency more than or equal to default Frequency, it is determined that after the state change exception of the Hall element, also include:
The stabilization time of the Hall element is reset, so that the stabilization time after resetting is more than Hall element in abnormality Under the state change cycle.
5. method according to claim 3, it is characterised in that also include:
If second change frequency is being set in range of error with the difference of first change frequency, it is determined that the Hall The state change of sensor is normal.
6. the method according to any one of claim 1-5, it is characterised in that when it is determined that the state of the Hall element becomes When changing abnormal, the interrupt function of the Hall element is closed in control.
7. the method according to any one of claim 1-5, it is characterised in that also include:
When it is determined that the state change of the Hall element is normal, controlled according to the state change situation of the Hall element The screen state change of terminal.
8. the screen state control device of a kind of mobile terminal, it is characterised in that include:
First change frequency acquisition module, for obtaining the first change frequency of the state change of the Hall element of terminal;
Hall sensor state judge module, according to first change frequency, judges the state change of the Hall element It is whether abnormal;
Initial condition keeps module, for when it is determined that the state change of the Hall element is abnormal, the screen of control terminal State keeps initial condition.
9. device according to claim 8, it is characterised in that the Hall sensor state judge module specifically for: If first change frequency is more than or equal to predeterminated frequency, it is determined that the state change exception of the Hall element.
10. device according to claim 8, it is characterised in that the Hall sensor state judge module specifically for:
If first change frequency is more than zero and is less than predeterminated frequency, the state change of the proximity transducer of terminal is obtained Second change frequency;
If second change frequency is zero, it is determined that the state change exception of the Hall element.
11. devices according to claim 9, it is characterised in that described device also includes:
The stabilization time resets module, if for being more than or equal to predeterminated frequency in first change frequency, it is determined that described After the state change exception of Hall element, the stabilization time of the Hall element is reset, so that during stabilization after resetting Between be more than state change cycle of the Hall element under abnormality.
12. devices according to claim 10, it is characterised in that described device also includes:
The normal determining module of state change, if the difference for second change frequency with first change frequency is setting In range of error, it is determined that the state change of the Hall element is normal.
13. devices according to any one of claim 8-12, it is characterised in that described device also includes:
Interrupt function control module, for, when it is determined that the state change of the Hall element is abnormal, controlling described in closing suddenly The interrupt function of your sensor.
14. devices according to any one of claim 8-12, it is characterised in that described device also includes:
Screen state control module, for, when it is determined that the state change of the Hall element is normal, being passed according to the Hall The screen state change of the state change situation control terminal of sensor.
A kind of 15. mobile terminals, including memorizer, processor and the calculating that store on a memory and can run on a processor Machine program, it is characterised in that realize following steps during computer program described in the computing device:
Obtain the first change frequency of the state change of the Hall element of terminal;
According to first change frequency, judge whether the state change of the Hall element is abnormal;
When it is determined that the state change of the Hall element is abnormal, the screen state of control terminal keeps initial condition.
CN201611157296.3A 2016-12-14 2016-12-14 Screen state control method and device of mobile terminal and mobile terminal Active CN106598521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611157296.3A CN106598521B (en) 2016-12-14 2016-12-14 Screen state control method and device of mobile terminal and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611157296.3A CN106598521B (en) 2016-12-14 2016-12-14 Screen state control method and device of mobile terminal and mobile terminal

Publications (2)

Publication Number Publication Date
CN106598521A true CN106598521A (en) 2017-04-26
CN106598521B CN106598521B (en) 2020-06-09

Family

ID=58801446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611157296.3A Active CN106598521B (en) 2016-12-14 2016-12-14 Screen state control method and device of mobile terminal and mobile terminal

Country Status (1)

Country Link
CN (1) CN106598521B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108226880A (en) * 2017-12-29 2018-06-29 努比亚技术有限公司 Ultrasonic distance detects anti-tampering method, apparatus and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1850218A2 (en) * 2006-04-28 2007-10-31 Samsung Electronics Co., Ltd. Method and apparatus to control screen orientation of user interface of portable device
CN103618821A (en) * 2013-10-30 2014-03-05 广东欧珀移动通信有限公司 A method and an apparatus for controlling the screen status of an electronic device
CN104640184A (en) * 2015-02-15 2015-05-20 广东欧珀移动通信有限公司 Screen wake-up method and device
CN104731490A (en) * 2015-04-20 2015-06-24 深圳市欧珀通信软件有限公司 Screen control method and screen control device
CN106101430A (en) * 2016-06-30 2016-11-09 维沃移动通信有限公司 The method to set up of mobile terminal screen state and mobile terminal thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1850218A2 (en) * 2006-04-28 2007-10-31 Samsung Electronics Co., Ltd. Method and apparatus to control screen orientation of user interface of portable device
CN103618821A (en) * 2013-10-30 2014-03-05 广东欧珀移动通信有限公司 A method and an apparatus for controlling the screen status of an electronic device
CN104640184A (en) * 2015-02-15 2015-05-20 广东欧珀移动通信有限公司 Screen wake-up method and device
CN104731490A (en) * 2015-04-20 2015-06-24 深圳市欧珀通信软件有限公司 Screen control method and screen control device
CN106101430A (en) * 2016-06-30 2016-11-09 维沃移动通信有限公司 The method to set up of mobile terminal screen state and mobile terminal thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108226880A (en) * 2017-12-29 2018-06-29 努比亚技术有限公司 Ultrasonic distance detects anti-tampering method, apparatus and storage medium
CN108226880B (en) * 2017-12-29 2021-11-02 努比亚技术有限公司 Method and device for preventing interference in ultrasonic distance detection and storage medium

Also Published As

Publication number Publication date
CN106598521B (en) 2020-06-09

Similar Documents

Publication Publication Date Title
CN106648232A (en) Method, device and terminal for preventing false triggering of touch keys
CN106681554B (en) A kind of control method of mobile terminal touch screen, device and mobile terminal
CN106225806B (en) Calibrate the method, device and mobile terminal of Magnetic Sensor
CN108920156A (en) Application program prediction model method for building up, device, storage medium and terminal
CN106790978A (en) The control method of mobile terminal screen state, device and mobile terminal
CN104640184B (en) A kind of screen awakening method and device
CN107944259A (en) Using the management-control method of startup, device and storage medium and mobile terminal
CN107450837B (en) Respond method, apparatus, storage medium and the mobile terminal of blank screen gesture
CN106681635A (en) Method and device for preventing split screen touch by mistake and mobile terminal
CN107105090B (en) A kind of control method, device and the mobile terminal of suspension button
CN106775405A (en) A kind of touch-screen false-touch prevention method of mobile terminal, device and mobile terminal
CN106775086A (en) A kind of touch-screen control method of mobile terminal, device and mobile terminal
CN106708520A (en) Touch screen control method and device of mobile terminal and mobile terminal
CN107316033A (en) Fingerprint identification method, device and the storage medium and mobile terminal of mobile terminal
CN106648233A (en) Touch screen control method and device of mobile terminal and mobile terminal
CN106681637A (en) Method and device for touch screen display, and mobile terminal
CN106708363A (en) Mistaken touch preventive method and device for display interface and mobile terminal
CN106502470A (en) Prevent method, device and the terminal of touch key-press false triggering
CN108647057A (en) Screen orientation setting method, device, storage medium and terminal
CN106506825A (en) A kind of control method of touch-screen, device and mobile terminal
CN106776259B (en) Mobile terminal frame rate detection method and device and mobile terminal
CN107402675A (en) A kind of response method of touch operation, device, storage medium and terminal
CN107402713A (en) Accelerate method, apparatus, storage medium and the mobile terminal of blank screen gesture processing
CN106909250A (en) A kind of processing method of touch operation, device and mobile terminal
CN109343066A (en) Control method, device, storage medium and the mobile terminal of proximity sensor

Legal Events

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

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

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

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

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

GR01 Patent grant
GR01 Patent grant