CN102377864A - Mobile phone motion detection method based on acceleration sensor - Google Patents

Mobile phone motion detection method based on acceleration sensor Download PDF

Info

Publication number
CN102377864A
CN102377864A CN2010102527285A CN201010252728A CN102377864A CN 102377864 A CN102377864 A CN 102377864A CN 2010102527285 A CN2010102527285 A CN 2010102527285A CN 201010252728 A CN201010252728 A CN 201010252728A CN 102377864 A CN102377864 A CN 102377864A
Authority
CN
China
Prior art keywords
acceleration
mobile phone
interrupt
action
acceleration transducer
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
Application number
CN2010102527285A
Other languages
Chinese (zh)
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.)
Shanghai Simcom Ltd
Original Assignee
Shanghai Simcom 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 Shanghai Simcom Ltd filed Critical Shanghai Simcom Ltd
Priority to CN2010102527285A priority Critical patent/CN102377864A/en
Publication of CN102377864A publication Critical patent/CN102377864A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a mobile phone motion detection method based on an acceleration sensor. The method comprises the following steps: (1) installing the acceleration sensor on a circuit board of a mobile phone; (2) carrying out a plurality of motion type tests, and recording an acceleration change value of each motion measured by the acceleration sensor; (3) according to measured data, setting an acceleration threshold of each motion; (4) setting the acceleration sensor into an arbitrary motion detection interruption mode; (5) when the mobile phone enters into a standby mode, detecting whether there are motions exceeding the acceleration threshold or not, if so, executing step (6), and if not, maintaining standby; (6) sending an interruption request to a baseband chip of the mobile phone by the acceleration sensor, and discriminating a motion type by the base-band chip; (7) according to the obtained motion type, starting software setting corresponding to the motion type by the base-band chip. Compared with the prior art, the method in the invention has the advantages of low cost, no structure restriction and the like.

Description

Mobile phone motion detection method based on acceleration transducer
Technical field
The present invention relates to a kind of mobile phone motion detection method, especially relate to a kind of mobile phone motion detection method based on acceleration transducer.
Background technology
Along with mobile communication rapid development, the function of mobile phone becomes and becomes increasingly complex, the application that a large amount of transducers obtains in mobile phone, and these transducers and corresponding software cooperate, and can bring a lot of different application to the user.Acceleration transducer be a kind of can inspected object motion three dimension acceleration sensor, in conjunction with the application of software, can be used for doing various 3d gamings, animation and detection of motion.Can satisfy young man's hobby, acceleration transducer is applied in the mobile phone in large quantities now.
Hall device or magnetoresistive transducer are an indispensable device in clamshell phone and slide phone, the change of the relative position through it and magnet, and what can detect mobile phone renovates motion such as slip lid.Some mobile phone integrate especially renovate, roller blind; Need two or more hall devices or magnetoresistive transducer to realize like this; Increased the cost of mobile phone so virtually; Particularly some mobile phone receives effect on structure and restriction, possibly can't put down so many hall devices or magnetoresistive transducer and magnet.
Summary of the invention
The object of the invention is exactly for the defective that overcomes above-mentioned prior art existence the mobile phone motion detection method based on acceleration transducer that a kind of cost is low, do not receive structural limitations to be provided.
A kind of mobile phone motion detection method based on acceleration transducer is characterized in that, may further comprise the steps:
1) degree of will speed up transducer replaces Hall element or magnetoresistive transducer to be installed on the circuit board of mobile phone;
2) carry out the test of multiple type of action, and write down the acceleration change value that the acceleration transducer of each action is surveyed;
3) according to the data of being surveyed, consider surplus simultaneously after, set the acceleration threshold value of each action;
4) degree of will speed up sensor settings is that arbitrary motion detects interrupt mode, and interrupt mode is made as latch mode, and shields other interrupt modes;
When 5) mobile phone got into standby mode, acceleration transducer also got into standby mode, and whether detection in real time have action to surpass the acceleration threshold value of setting, if yes, execution in step 6), if not, continue standby;
6) acceleration transducer sends interrupt requests to the baseband chip of mobile phone, and interrupt flag bit or the acceleration information after comprehensive interrupt flag bit and the interrupt response that baseband chip reads on the X/Y/Z axle are differentiated type of action;
7) according to the type of action that obtains, baseband chip starts the pairing software setting of this type of action.
Described step 2) the multiple type of action in comprise renovate, slip lid, roller blind, each action all comprises uncaps, closes and cover two actions.
Described acceleration transducer is the acceleration transducer of Bosch or the acceleration transducer of Freescale.
Other interrupt modes in the described step 4) comprise:
Click, double-click the detection interrupt mode;
Low gravity acceleration detection interrupt mode;
High acceleration of gravity detects interrupt mode;
Interrupt mode is interrupted in direction identification;
The data ready interrupt interrupt mode.
Compared with prior art, the present invention utilizes the motion detection function of acceleration transducer, comes the relevant action of detection of handset, thereby substitutes hall device or magnetoresistive transducer in the mobile phone.So not only provide cost savings, also do not receive structural limitations, simultaneously its function of complicated motion more in can also detection of handset.
Description of drawings
Fig. 1 is a flow chart of the present invention;
Fig. 2 is a hardware configuration sketch map of the present invention.
Embodiment
Below in conjunction with accompanying drawing and specific embodiment the present invention is elaborated.
Embodiment
Like Fig. 1, shown in Figure 2, a kind of mobile phone motion detection method based on acceleration transducer may further comprise the steps:
1) degree of will speed up transducer 1 replaces Hall element or magnetoresistive transducer to be installed on the circuit board of mobile phone;
2) carry out the test of multiple type of action, and write down the acceleration change value that the acceleration transducer 1 of each action is surveyed;
3) according to the data of being surveyed, consider surplus simultaneously after, set the acceleration threshold value of each action;
4) degree of will speed up transducer 1 is set at arbitrary motion and detects interrupt mode, and interrupt mode is made as latch mode, and shields other interrupt modes;
When 5) mobile phone 3 got into standby modes, acceleration transducer 1 also got into standby mode, and whether detection in real time have action to surpass the acceleration threshold value of setting, if yes, execution in step 6), if not, continue standby;
6) acceleration transducer 1 sends interrupt requests to the baseband chip of mobile phone 2, and interrupt flag bit or the acceleration information after comprehensive interrupt flag bit and the interrupt response that baseband chip 2 reads on the X/Y/Z axle are differentiated type of action;
7) according to the type of action that obtains, baseband chip 2 starts the pairing software setting of this type of action.
Since the operating current very low (about 200uA) of these acceleration transducers 1, stand-by operation electric current lower (about 1uA), and they also have regularly the function of transformation working pattern and park mode.These acceleration transducers 1 also have the interruption programmable functions simultaneously, can it be configured to the arbitrary motion detection mode through software.In case certain motion motion on X, Y or Z axle is satisfied condition is set, acceleration transducer 1 will send interrupt requests to the baseband chip of mobile phone.So acceleration transducer 1 can be used in actions such as flip cover, slip lid, roller blind in slip lid or the clamshell phone fully; And do not worry causing the stood by consumption current of mobile phone to increase, do not worry yet acceleration transducer 1 be in resting state and missed renovate, the motion detection of slip lid, roller blind.Above 2 extremely important, just because of top 2 points, just make and utilize acceleration transducer 1 to come actions such as the renovating of detection of handset, slip lid, roller blind to become possibility.
Want actions such as the renovating of correct detection of handset, slip lid, roller blind, need be placed on the circuit board of clamshell phone, slide phone, rotary capping mobile phone by degree of will speed up transducer 1.
When we be provided with through I2C acceleration transducer 1 Z acceleration threshold value on the axle, in case and the acceleration of certain motion on certain or certain several axle of X, Y or Z axle surpasses settings, acceleration transducer 1 will provide interrupt signal.
Acceleration transducer 1 is supported following six kinds of interrupt modes, is unlikely to provide continually interruption in order to make acceleration transducer 1, can second in figure below be masked to the 6th kind of interruption, only opens arbitrary motion and detects.
The interrupt mode that acceleration transducer 1 is supported has;
Arbitrary motion detects;
Click, double-click detection;
Low gravity acceleration detection;
High acceleration of gravity detects;
Direction identification is interrupted;
Data ready interrupt.
Introduce three motion detection of the renovating of mobile phone, slip lid, roller blind below respectively.
In liding machine, degree of will speed up transducer 1 is placed on the upper plate, in the motion process of renovating and close lid; Acceleration transducer 1 only has the variation of acceleration on Z-direction; And Y constant basically on the axle, renovate, close in the process of lid whole, the acceleration of Z axle has certain variation.At this moment software can be provided with the arbitrary motion interrupt mode through I2C, and the interruption that the acceleration change of X, Y axle produces is masked, and only enables the interruption of Z-direction.Rational judgement threshold value is set.And interrupt mode is arranged to latch mode.Mobile phone gets into standby mode (acceleration transducer 1 also enters into standby mode) then.After the user opened lid, the Z axle acceleration exceeded threshold value, can produce interruption, woke baseband chip 2 up, and baseband chip 2 identifications are had no progeny in being somebody's turn to do, and make the corresponding software operation of uncapping, and the action of closing lid is similar.
In the slip lid machine, according to the difference of the position of acceleration transducer 1 in upper plate, slip lid, the action of closing lid have acceleration change are only arranged on X-direction; Also have acceleration change is only arranged on Y direction.Also have Y axle acceleration change is all arranged.We can select above-mentioned three kinds of acceleration change patterns according to the practical design requirement.Software is only opened the arbitrary motion interrupt mode, and the interruption of shielding Z axle, and is different according to design then, only opens the interruption of X axle, the interruption of Y axle or X and Y axle and interrupt.Rational interruption acceleration judgement threshold is set.The action of the identification slip lid of software and renovate similar.
In the roller blind process, acceleration transducer 1 Z axle the variation of acceleration might all can be arranged, and in rotating and reverse, the variation of acceleration is different.We can open X, Y, Z interrupt mode, and rational judgement threshold is set.The action more complicated of possible roller blind, we can write down the acceleration change value of some roller blinds action, and the analysis through these values is provided with rational judgement threshold.
Consider stability; Can be as required; After baseband chip 2 response interrupt requests; Can handle the data of the acceleration change that acceleration transducer 1 sends here again, baseband chip 2 can be taken all factors into consideration with the acceleration information that the back collect according to the difference of interrupt source, improves the accuracy that the motion of opening and closing lid is differentiated.
Consider the otherness between the mobile phone, we can extract the judgement threshold value through the characteristic of these data through a certain amount of acceleration information that will differentiate motion of software elder generation's line item, and the discriminant accuracy of motion can further be provided like this.

Claims (4)

1. the mobile phone motion detection method based on acceleration transducer is characterized in that, may further comprise the steps:
1) degree of will speed up transducer replaces Hall element or magnetoresistive transducer to be installed on the circuit board of mobile phone;
2) carry out the test of multiple type of action, and write down the acceleration change value that the acceleration transducer of each action is surveyed;
3) according to the data of being surveyed, consider surplus simultaneously after, set the acceleration threshold value of each action;
4) degree of will speed up sensor settings is that arbitrary motion detects interrupt mode, and interrupt mode is made as latch mode, and shields other interrupt modes;
When 5) mobile phone got into standby mode, acceleration transducer also got into standby mode, and whether detection in real time have action to surpass the acceleration threshold value of setting, if yes, execution in step 6), if not, continue standby;
6) acceleration transducer sends interrupt requests to the baseband chip of mobile phone, and interrupt flag bit or the acceleration information after comprehensive interrupt flag bit and the interrupt response that baseband chip reads on the X/Y/Z axle are differentiated type of action;
7) according to the type of action that obtains, baseband chip starts the pairing software setting of this type of action.
2. a kind of mobile phone motion detection method based on acceleration transducer according to claim 1 is characterized in that described step 2) in multiple type of action comprise renovate, slip lid, roller blind, each action all comprises uncaps, closes and cover two actions.
3. a kind of mobile phone motion detection method based on acceleration transducer according to claim 1 is characterized in that described acceleration transducer is the acceleration transducer of Bosch or the acceleration transducer of Freescale.
4. a kind of mobile phone motion detection method based on acceleration transducer according to claim 1 is characterized in that other interrupt modes in the described step 4) comprise:
Click, double-click the detection interrupt mode;
Low gravity acceleration detection interrupt mode;
High acceleration of gravity detects interrupt mode;
Interrupt mode is interrupted in direction identification;
The data ready interrupt interrupt mode.
CN2010102527285A 2010-08-13 2010-08-13 Mobile phone motion detection method based on acceleration sensor Pending CN102377864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102527285A CN102377864A (en) 2010-08-13 2010-08-13 Mobile phone motion detection method based on acceleration sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102527285A CN102377864A (en) 2010-08-13 2010-08-13 Mobile phone motion detection method based on acceleration sensor

Publications (1)

Publication Number Publication Date
CN102377864A true CN102377864A (en) 2012-03-14

Family

ID=45795807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102527285A Pending CN102377864A (en) 2010-08-13 2010-08-13 Mobile phone motion detection method based on acceleration sensor

Country Status (1)

Country Link
CN (1) CN102377864A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102664995A (en) * 2012-04-11 2012-09-12 深迪半导体(上海)有限公司 Method for preventing misoperation in conversation of touch-screen cellphone
CN103002132A (en) * 2012-11-19 2013-03-27 广东欧珀移动通信有限公司 Method for controlling mobile phone operation by utilizing gravity induction
CN103369150A (en) * 2012-04-10 2013-10-23 拉碧斯半导体株式会社 Semiconductor device and electrical terminal
WO2014173170A1 (en) * 2013-04-22 2014-10-30 小米科技有限责任公司 Multi-media file play control method and apparatus
CN107105074A (en) * 2017-03-10 2017-08-29 青岛海信电器股份有限公司 A kind of slip lid condition detection method and mobile terminal
EP4387174A3 (en) * 2013-12-11 2024-07-17 LG Electronics Inc. Smart home appliances, operating method of thereof, and voice recognition system using the smart home appliances

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369150A (en) * 2012-04-10 2013-10-23 拉碧斯半导体株式会社 Semiconductor device and electrical terminal
CN102664995A (en) * 2012-04-11 2012-09-12 深迪半导体(上海)有限公司 Method for preventing misoperation in conversation of touch-screen cellphone
CN102664995B (en) * 2012-04-11 2015-01-28 深迪半导体(上海)有限公司 Method for preventing misoperation in conversation of touch-screen cellphone
CN103002132A (en) * 2012-11-19 2013-03-27 广东欧珀移动通信有限公司 Method for controlling mobile phone operation by utilizing gravity induction
WO2014173170A1 (en) * 2013-04-22 2014-10-30 小米科技有限责任公司 Multi-media file play control method and apparatus
EP4387174A3 (en) * 2013-12-11 2024-07-17 LG Electronics Inc. Smart home appliances, operating method of thereof, and voice recognition system using the smart home appliances
CN107105074A (en) * 2017-03-10 2017-08-29 青岛海信电器股份有限公司 A kind of slip lid condition detection method and mobile terminal
CN107105074B (en) * 2017-03-10 2021-03-09 海信视像科技股份有限公司 Sliding cover state detection method and mobile terminal

Similar Documents

Publication Publication Date Title
CN102377864A (en) Mobile phone motion detection method based on acceleration sensor
CN104640184B (en) A kind of screen awakening method and device
CN102929514B (en) A kind of application icon method for sorting of mobile terminal
EP3213215B1 (en) Embedded universal serial bus (usb) debug (eud) for multi-interfaced debugging in electronic systems
CN102012774A (en) Page turning method, device and terminal for terminal reading contents
CN103858072A (en) Gesture detection using proximity or light sensors
CN103338290A (en) A method for automatically testing performance of an Android handset
CN103582856A (en) Rest detection using accelerometer
CN102387234A (en) Mobile phone automatic test device and method
CN103546740A (en) Method and device for detecting camera and terminal equipment
CN104076904A (en) Method and device for controlling hardware state of mobile terminal
CN104902186A (en) Method for fast starting camera program and mobile terminal using the method
CN104182145A (en) Method and device for preventing faulty operation of touch screen and mobile equipment
CN102984369A (en) Method and system for viewing photo album in mobile terminal
CN103984433A (en) Method and apparatus for controlling touch-key operation
CN106776301A (en) Daughter element method of testing and device
CN104158962A (en) Mobile terminal display screen control method and mobile terminal display screen control system
CN103399697A (en) Unlocking method and terminal
TW201324141A (en) Testing method and testing apparatus for testing function of electronic apparatus
CN110278322A (en) Electronic device failure testing device and test method
CN201657046U (en) Mobile terminal and opening and closing detector thereof
CN206002121U (en) A kind of Intelligent bracelet ATE
CN205120929U (en) Motor aging testing system
CN102254569A (en) Quad-data rate (QDR) controller and realization method thereof
CN209230666U (en) A kind of portable air quality monitor for air purifier

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120314