CN104135568A - Method and mobile phone for simulating an optical distance sensor using a gravity sensor - Google Patents
Method and mobile phone for simulating an optical distance sensor using a gravity sensor Download PDFInfo
- Publication number
- CN104135568A CN104135568A CN201410364631.1A CN201410364631A CN104135568A CN 104135568 A CN104135568 A CN 104135568A CN 201410364631 A CN201410364631 A CN 201410364631A CN 104135568 A CN104135568 A CN 104135568A
- Authority
- CN
- China
- Prior art keywords
- mobile phone
- gravity sensor
- screen
- screen state
- touch
- 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.)
- Pending
Links
Abstract
The present invention provides a method and a mobile phone for simulating an optical distance sensor using a gravity sensor. The method comprises: when the phone is answered, obtaining data according to the gravity sensor so as to determine whether the phone is in a vertical state or a horizontal state; if it is in the vertical state, determining that the user uses an answering manner of putting the phone beside his/her ear by a hand, then controlling by the CPU to turn off the touch screen backlight and locking the touch screen so as to avoid false operations; and if it is in the horizontal state, determining that the user does not use the answering manner of putting the phone beside his/her ear by a hand, then not turning off the touch screen backlight and not locking the touch screen so that the user can conveniently use other functions of the phone while answering the phone. The method for simulating an optical distance sensor using a gravity sensor provided in the present invention uses the gravity sensor which is necessary to each smart phone to simulate the function of an optical distance sensor. The method may realize the function of the optical distance sensor without arranging one, which can reduce the production cost of mobile phones, reduces the volume thereof and further saves resources.
Description
Technical field
The present invention relates to smart mobile phone field, relate in particular to a kind of method and mobile phone of gravity sensor simulated light distance-sensor.
Background technology
In today of market competition fierceness like this, it is important that the cost of mobile phone and function show all the more, how a function that must go out with the functional simulation of device a not essential device, also just become the emphasis reducing costs in mobile phone research and development.
Gravity sensor is the requisite device of smart mobile phone, and it adopts elastic sensing element to make cantilever type shifter, drives electric contact with the energy-stored spring that adopts elastic sensing element to make, and completes the conversion from Gravity changer to the signal of telecommunication.
Electrical distance inductor refers to and is displacement transducer, distance-sensor is general all in the both sides of earpiece or in earpiece groove, be convenient to like this its work, when user is when answering or call, by mobile phone, near head, the distance of distance-sensor between can measuring, to just notifying touch-screen background light to extinguish after to a certain degree, lighted background light once again while taking away, electric weight is also more saved in more convenient like this user's operation, also can reduce misoperation.
Gravity sensor is the requisite device of smart mobile phone, and electrical distance inductor function except being used in communication process, other application places are used substantially less than this device, therefore if by the function of gravity sensor simulated light distance-sensor, can reduce mobile phone cost, economize on resources, will be subject to the welcome in market.
Summary of the invention
The object of the present invention is to provide a kind of method and mobile phone that utilizes gravity sensor to carry out simulated light distance-sensor function, to realize, reduce mobile phone cost, the object economizing on resources.
For achieving the above object, the invention provides a kind of method of gravity sensor simulated light distance-sensor, when receiving calls, according to gravity sensor, obtaining data judgement mobile phone is in perpendicular screen state or horizontal screen state or perpendicular screen state; Under perpendicular screen state, judge that user adopts handheld mobile phone to be placed on answering mode in one's ear, it is backlight that touch-screen is closed in CPU control, and lock touch-screen to avoid misoperation; Under horizontal screen state, judge that user does not adopt handheld mobile phone to be placed on answering mode in one's ear, do not close touch-screen backlight, do not lock touch-screen to facilitate user's edge joint limit of answering a call to use other functions of mobile phone.
Wherein, obtain data comprise X value and the Y value that represents mobile phone location state at gravity sensor, CPU judges according to the relation of X value and Y value, and mobile phone is in horizontal screen state or perpendicular screen state.
Wherein, y0ffest=5.0, xy0ffest=8.0, when (xy >=xy0ffest) and (Math.abs (y) >=y0ffest) sets up, judge that user is in perpendicular screen state.
The present invention also provides a kind of mobile phone by gravity sensor simulated light distance-sensor, comprise mobile phone body, CPU, touch-screen switch and gravity sensor, and mobile phone body is not provided with electrical distance inductor; CPU, touch-screen switch and gravity sensor are all fixed in mobile phone body, and gravity sensor is electrically connected to CPU, and CPU is electrically connected to touch-screen switch part;
It is in perpendicular screen state or horizontal screen state or perpendicular screen state that gravity sensor obtains data judgement mobile phone; Under perpendicular screen state, judge that user adopts handheld mobile phone to be placed on answering mode in one's ear, it is backlight that touch-screen is closed in CPU control, and lock touch-screen to avoid misoperation; Under horizontal screen state, judge that user does not adopt handheld mobile phone to be placed on answering mode in one's ear, do not close touch-screen backlight, do not lock touch-screen to facilitate user's edge joint limit of answering a call to use other functions of mobile phone.
Wherein, obtain data comprise X value and the Y value that represents mobile phone location state at gravity sensor, CPU judges according to the relation of X value and Y value, and mobile phone is in horizontal screen state or perpendicular screen state.
Wherein, y0ffest=5.0, xy0ffest=8.0, when (xy >=xy0ffest) and (Math.abs (y) >=y0ffest) sets up, judge that user is in perpendicular screen state.
The invention has the beneficial effects as follows: the method for gravity sensor simulated light distance-sensor provided by the invention, use habit while receiving calls according to most users, when user's handheld mobile phone is placed on while receiving calls in one's ear, in general mobile phone is all perpendicular screen state, when mobile phone being taken while operating in hand, in general mobile phone is horizontal screen state.Therefore, it is in perpendicular screen state or horizontal screen state or perpendicular screen state that the method for gravity sensor simulated light distance-sensor provided by the invention utilizes gravity sensor to obtain data judgement mobile phone, when receiving calls, if perpendicular screen state is closed the backlight and locking touch-screen of touch-screen, to prevent that face from touching touch-screen by mistake; If mobile phone is horizontal screen state, do not close touch-screen backlight and do not lock touch-screen, to facilitate user's edge joint limit operating handset of answering a call.The function of the requisite gravity sensor simulated light of smart mobile phone distance-sensor for the present invention, also can realize its function without electrical distance inductor is set, and can reduce the production cost of mobile phone, dwindles the volume of mobile phone, but also can economize on resources.
Accompanying drawing explanation
Fig. 1 is the block diagram of the mobile phone of gravity sensor simulated light distance-sensor of the present invention.
Main element symbol description is as follows:
11, mobile phone body 12, CPU
13, touch-screen switch 14, gravity sensor
Embodiment
The method of gravity sensor simulated light distance-sensor provided by the invention, when receiving calls, according to gravity sensor, obtaining data judgement mobile phone is in perpendicular screen state or horizontal screen state or perpendicular screen state; Under perpendicular screen state, judge that user adopts handheld mobile phone to be placed on answering mode in one's ear, it is backlight that touch-screen is closed in CPU control, and lock touch-screen to avoid misoperation; Under horizontal screen state, judge that user does not adopt handheld mobile phone to be placed on answering mode in one's ear, do not close touch-screen backlight, do not lock touch-screen to facilitate user's edge joint limit of answering a call to use other functions of mobile phone.
The effect of electrical distance inductor is, by detecting apart from the distance of skin, judge whether user is receiving calls, when judgement user receives calls, close touch-screen backlight, because electrical distance inductor is to judge according to the distance detecting apart from skin whether user is receiving calls, therefore, not in the situation that receiving calls arbitrarily, equal executable operations, such as user is by earphone receiving or while opening hands-free receiving calls, do not close the backlight and locking touch-screen of touch-screen, facilitate user's edge joint limit operating handset of answering a call.Therefore, whether, when the present invention uses gravity sensor simulated light distance-sensor, needing the problem solving is how to judge when user receives calls and adopt handheld mobile phone to be placed on answering mode in one's ear.
Compared to prior art, the method of gravity sensor simulated light distance-sensor provided by the invention, use habit while receiving calls according to most users, when user's handheld mobile phone is placed on while receiving calls in one's ear, in general mobile phone is all perpendicular screen state, when mobile phone being taken while operating in hand, in general mobile phone is horizontal screen state.Therefore, it is in perpendicular screen state or horizontal screen state or perpendicular screen state that the method for gravity sensor simulated light distance-sensor provided by the invention utilizes gravity sensor to obtain data judgement mobile phone, when receiving calls, if perpendicular screen state is closed the backlight and locking touch-screen of touch-screen, to prevent that face from touching touch-screen by mistake; If mobile phone is horizontal screen state, do not close touch-screen backlight and do not lock touch-screen, to facilitate user's edge joint limit operating handset of answering a call.The function of the requisite gravity sensor simulated light of smart mobile phone distance-sensor for the present invention, also can realize its function without electrical distance inductor is set, and can reduce the production cost of mobile phone, dwindles the volume of mobile phone, but also can economize on resources.
Gravity sensor can draw the pressurized dynamics of three directions according to self direction; by two-dimentional gravity sensor; when level is put; the stressed maximum of horizontal direction, the stressed minimum of vertical direction, when vertically putting; the stressed maximum of vertical direction; the stressed minimum of horizontal direction, conventionally can be vertical direction stressed referred to as Y value, horizontal direction stressed referred to as X value.
In the present embodiment, obtain data comprise X value and the Y value that represents mobile phone location state at gravity sensor, CPU judges according to the relation of X value and Y value, and mobile phone is in horizontal screen state or perpendicular screen state.Specifically, y0ffest=5.0, xy0ffest=8.0, when (xy >=xy0ffest) and (Math.abs (y) >=y0ffest) sets up, judge that user is in perpendicular screen state.
The horizontal direction of xy representative and vertical direction angle stressed, no matter where mobile phone is put, the stressed of horizontal direction and vertical direction angle must be greater than this threshold values.What Math.abs (y) > > y0ffest represented is that mobile phone and horizontal direction must keep an angle, like this guarantee now mobile phone at perpendicular screen state, thereby we think that now user is receiving calls.
Above data are according to user's use habit, obtain one group of best threshold values: y0ffest=5.0, xy0ffest=8.0, when (xy >=xy0ffest) and (Math.abs (y) >=y0ffest) sets up, judge that mobile phone is in perpendicular screen state, now can extinguish touch-screen, otherwise touch-screen can be light.
Certainly, this is only a specific embodiment of the present invention, and threshold values of the present invention is not limited in this, and its threshold values also can fluctuate on best threshold values basis.
Consult Fig. 1, the present invention also provides a kind of mobile phone by gravity sensor 14 simulated light distance-sensor, comprise mobile phone body 11, CPU12, touch-screen switch 13 and gravity sensor 14, and mobile phone body 11 is not provided with electrical distance inductor; CPU12, touch-screen switch 13 and gravity sensor 14 are all fixed in mobile phone body 11, and gravity sensor 14 is electrically connected to CPU12, and CPU12 is electrically connected to 13 of touch-screen switchs;
It is in perpendicular screen state or horizontal screen state or perpendicular screen state that gravity sensor 14 obtains data judgement mobile phone; Under perpendicular screen state, judge that user adopts handheld mobile phone to be placed on answering mode in one's ear, it is backlight that touch-screen is closed in CPU12 control, and lock touch-screen to avoid misoperation; Under horizontal screen state, judge that user does not adopt handheld mobile phone to be placed on answering mode in one's ear, do not close touch-screen backlight, do not lock touch-screen to facilitate user's edge joint limit of answering a call to use other functions of mobile phone.
Mobile phone by gravity sensor 14 simulated light distance-sensor provided by the invention, function by the requisite gravity sensor 14 simulated light distance-sensor of smart mobile phone, without being set, electrical distance inductor also can realize its function, can reduce the production cost of mobile phone, dwindle the volume of mobile phone, but also can economize on resources.
The method of gravity sensor simulated light distance-sensor is as follows:
Use habit while receiving calls according to most users, when user's handheld mobile phone is placed on while receiving calls in one's ear, in general mobile phone is all perpendicular screen state, when mobile phone being taken while operating in hand, in general mobile phone is horizontal screen state; Therefore, it is in perpendicular screen state or horizontal screen state or perpendicular screen state that the method for gravity sensor simulated light distance-sensor provided by the invention utilizes gravity sensor 14 to obtain data judgement mobile phone, if perpendicular screen state is closed the backlight and locking touch-screen of touch-screen, to prevent that face from touching touch-screen by mistake; And judgement mobile phone is when horizontal screen state, do not close touch-screen backlight and do not lock touch-screen, facilitate user's edge joint limit operating handset of answering a call.
In the present embodiment, obtain data comprise X value and the Y value that represents mobile phone location state at gravity sensor 14, CPU12 judges according to the relation of X value and Y value, and mobile phone is in horizontal screen state or perpendicular screen state.Specifically, y0ffest=5.0, xy0ffest=8.0, when (xy >=xy0ffest) and (Math.abs (y) >=y0ffest) sets up, judge that user is in perpendicular screen state.
In the present embodiment, obtain data comprise X value and the Y value that represents mobile phone location state at gravity sensor 14, CPU12 judges according to the relation of X value and Y value, and mobile phone is in horizontal screen state or perpendicular screen state.Specifically, y0ffest=5.0, xy0ffest=8.0, when (xy >=xy0ffest) and (Math.abs (y) >=y0ffest) sets up, judge that user is in perpendicular screen state.
Above data are according to user's use habit, obtain one group of best threshold values: y0ffest=5.0, xy0ffest=8.0, when (xy >=xy0ffest) and (Math.abs (y) >=y0ffest) sets up, judge that mobile phone is in perpendicular screen state, now can extinguish touch-screen, otherwise touch-screen can be light.
Certainly, this is only a specific embodiment of the present invention, and threshold values of the present invention is not limited in this, and its threshold values also can fluctuate on best threshold values basis.
These are only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, do not departing under the prerequisite of the technology of the present invention principle; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
Claims (6)
1. a method for gravity sensor simulated light distance-sensor, is characterized in that, when receiving calls, according to gravity sensor, obtaining data judgement mobile phone is in perpendicular screen state or horizontal screen state or perpendicular screen state; Under perpendicular screen state, judge that user adopts handheld mobile phone to be placed on answering mode in one's ear, it is backlight that touch-screen is closed in CPU control, and lock touch-screen to avoid misoperation; Under horizontal screen state, judge that user does not adopt handheld mobile phone to be placed on answering mode in one's ear, do not close touch-screen backlight, do not lock touch-screen to facilitate user's edge joint limit of answering a call to use other functions of mobile phone.
2. according to the method for the gravity sensor simulated light distance-sensor of claim 1, it is characterized in that, at gravity sensor, obtain data and comprise X value and the Y value that represents mobile phone location state, CPU judges according to the relation of X value and Y value, and mobile phone is in horizontal screen state or perpendicular screen state.
3. according to the method for the gravity sensor simulated light distance-sensor of claim 2, it is characterized in that, y0ffest=5.0, xy0ffest=8.0, when (xy >=xy0ffest) and (Math.abs (y) >=y0ffest) sets up, judge that user is in perpendicular screen state.
4. with a mobile phone for gravity sensor simulated light distance-sensor, it is characterized in that, comprise mobile phone body, CPU, touch-screen switch and gravity sensor, and mobile phone body is not provided with electrical distance inductor; CPU, touch-screen switch and gravity sensor are all fixed in mobile phone body, and gravity sensor is electrically connected to CPU, and CPU is electrically connected to touch-screen switch part;
It is in perpendicular screen state or horizontal screen state or perpendicular screen state that gravity sensor obtains data judgement mobile phone; Under perpendicular screen state, judge that user adopts handheld mobile phone to be placed on answering mode in one's ear, it is backlight that touch-screen is closed in CPU control, and lock touch-screen to avoid misoperation; Under horizontal screen state, judge that user does not adopt handheld mobile phone to be placed on answering mode in one's ear, do not close touch-screen backlight, do not lock touch-screen to facilitate user's edge joint limit of answering a call to use other functions of mobile phone.
5. according to the mobile phone by gravity sensor simulated light distance-sensor of claim 4, it is characterized in that, at gravity sensor, obtain data and comprise X value and the Y value that represents mobile phone location state, CPU judges according to the relation of X value and Y value, and mobile phone is in horizontal screen state or perpendicular screen state.
6. according to the method for the gravity sensor simulated light distance-sensor of claim 5, it is characterized in that, y0ffest=5.0, xy0ffest=8.0, when (xy >=xy0ffest) and (Math.abs (y) >=y0ffest) sets up, judge that user is in perpendicular screen state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410364631.1A CN104135568A (en) | 2014-07-29 | 2014-07-29 | Method and mobile phone for simulating an optical distance sensor using a gravity sensor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410364631.1A CN104135568A (en) | 2014-07-29 | 2014-07-29 | Method and mobile phone for simulating an optical distance sensor using a gravity sensor |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104135568A true CN104135568A (en) | 2014-11-05 |
Family
ID=51808088
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410364631.1A Pending CN104135568A (en) | 2014-07-29 | 2014-07-29 | Method and mobile phone for simulating an optical distance sensor using a gravity sensor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104135568A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108777748A (en) * | 2018-09-14 | 2018-11-09 | 李业科 | A kind of call based on mobile phone attitudes vibration sensing is gone out screen mode |
JP7436855B2 (en) | 2019-10-01 | 2024-02-22 | キヤノンマーケティングジャパン株式会社 | Information processing device, control method, program |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202004844U (en) * | 2011-03-14 | 2011-10-05 | 北京播思软件技术有限公司 | Mobile terminal utilizing gravity sensor to identify user's use habits |
CN102629183A (en) * | 2012-02-29 | 2012-08-08 | 华为终端有限公司 | Terminal screen control method and device |
CN103581407A (en) * | 2012-07-23 | 2014-02-12 | 深圳市经纬科技有限公司 | Method and system for protecting screen against spurious triggering in conversation process |
CN103826016A (en) * | 2014-02-18 | 2014-05-28 | 上海天奕达电子科技有限公司 | Control method of terminal screen under call state and terminal |
-
2014
- 2014-07-29 CN CN201410364631.1A patent/CN104135568A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202004844U (en) * | 2011-03-14 | 2011-10-05 | 北京播思软件技术有限公司 | Mobile terminal utilizing gravity sensor to identify user's use habits |
CN102629183A (en) * | 2012-02-29 | 2012-08-08 | 华为终端有限公司 | Terminal screen control method and device |
CN103581407A (en) * | 2012-07-23 | 2014-02-12 | 深圳市经纬科技有限公司 | Method and system for protecting screen against spurious triggering in conversation process |
CN103826016A (en) * | 2014-02-18 | 2014-05-28 | 上海天奕达电子科技有限公司 | Control method of terminal screen under call state and terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108777748A (en) * | 2018-09-14 | 2018-11-09 | 李业科 | A kind of call based on mobile phone attitudes vibration sensing is gone out screen mode |
JP7436855B2 (en) | 2019-10-01 | 2024-02-22 | キヤノンマーケティングジャパン株式会社 | Information processing device, control method, program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2922149B1 (en) | Audio jack, electronic equipment and electronic system | |
CN105022577B (en) | A kind of display methods and device of multi-screen mobile terminal | |
CN103543948A (en) | Mobile terminal and man-machine interaction method thereof | |
EP2230590A3 (en) | Method and apparatus for preventing on-screen keys from being accidentally touched and recording medium using the same | |
CN102238287A (en) | Mobile terminal and method for displaying mobile terminal according to environment data | |
CN104375761A (en) | Method and system for preventing misoperation of touch screen mobile phone | |
CN202472600U (en) | Display device with electromagnetic touch and capacitive touch | |
JP6095736B2 (en) | Electronic device system, electronic device cover, and electronic device | |
CN109995110B (en) | Connector, electronic equipment, data transmission method and device | |
CN105025156A (en) | Communication method and electronic device thereof | |
CN104010059A (en) | Mobile terminal and method and device for making call through mobile terminal | |
CN108040145A (en) | Electronic device, method of controlling operation thereof and Related product | |
KR101156960B1 (en) | Portable terminal with touch screen for the blind and mehtod for operating thereof | |
CN109067978A (en) | Button operation processing method, device, storage medium and electronic equipment | |
CN104601752A (en) | Cell phone with hand induction function | |
CN104135568A (en) | Method and mobile phone for simulating an optical distance sensor using a gravity sensor | |
CN203722676U (en) | Portable terminal | |
CN105425958A (en) | Caller ID (Identity) prompting method, caller ID prompting device and mobile terminal | |
CN102957798A (en) | Method for answering and hanging up based on mobile phone with flexible display screen | |
US8659581B2 (en) | Stylus and portable electronic device using same | |
CN104777994A (en) | Method and system for intelligent identification of mobile terminal held in left hand or right hand of user | |
CN205210436U (en) | Intelligent spectacles | |
CN111083288B (en) | Screen control method and device, terminal equipment and storage medium | |
CN202721726U (en) | Mobile communication terminal for conveniently processing incoming calls | |
CN105930025B (en) | A kind of quick screenshot method and the mobile device with quick screenshot function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20141105 |