CN108848246A - A kind of flashlight cartridge system and its implementation method with gravity sensing - Google Patents
A kind of flashlight cartridge system and its implementation method with gravity sensing Download PDFInfo
- Publication number
- CN108848246A CN108848246A CN201810378162.7A CN201810378162A CN108848246A CN 108848246 A CN108848246 A CN 108848246A CN 201810378162 A CN201810378162 A CN 201810378162A CN 108848246 A CN108848246 A CN 108848246A
- Authority
- CN
- China
- Prior art keywords
- value
- shake
- default
- flashlight
- time interval
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Telephone Function (AREA)
Abstract
The implementation method of the present invention provides a kind of flashlight cartridge system with gravity sensing, including:Monitor the gravity sensor of mobile terminal;Obtain the D coordinates value of first time gravity sensor;After time interval, the D coordinates value of second of gravity sensor is obtained;Linear distance is obtained velocity amplitude divided by time interval value by the linear distance that two coordinates are obtained according to first time D coordinates value and second of D coordinates value;Judge whether velocity amplitude is greater than preset shake value, when velocity amplitude is greater than shake value, is judged as that triggering is primary and shakes;Circulation monitoring triggers mobile terminal flashlight and turns on or off event when cumulative shake number is greater than default shake time numerical value.The present invention is able to achieve fast and convenient shaking and opens or closes flashlight function, promote the experience of user by gravity sensor.The present invention also provides a kind of flashlight cartridge system with gravity sensing.
Description
Technical field
The present invention relates to mobile terminal flashlight art more particularly to a kind of flashlight cartridge system with gravity sensing and its
Implementation method.
Background technique
The flashlight of terminal device needs to open control centre's click switch control ability flashlight and is opened at present
Or shutoff operation needs time-consuming mobile phone of opening to enter control centre's ability if user in case of emergency uses flashlight
Operation, wastes time, causes to perplex to user very much.Therefore, a kind of time saving and energy saving flashlight opening how is provided a user
Or method for closing, it is current problem to be solved.
Summary of the invention
In view of the deficiencies of the prior art, the purpose of the present invention is to provide a kind of, and the flashlight cartridge system with gravity sensing is real
Existing method opens or closes function using gravity sensing event triggering flashlight cartridge system, saves user time, letter swift to operate
It is single, promote user experience.
Another object of the present invention is that providing a kind of flashlight cartridge system with gravity sensing.
To achieve the above object, the technical solution adopted by the present invention is as follows:A kind of flashlight cartridge system with gravity sensing
Implementation method, this approach includes the following steps:
S1, the gravity sensor for monitoring mobile terminal;
S2, the default time interval value for obtaining gravity sensor D coordinates value, default triggering shake event are shaken
Dynamic value, the shake time numerical value that default triggering mobile terminal flashlight turns on or off;
S3, the D coordinates value for obtaining first time gravity sensor;
S4, after time interval, obtain second of gravity sensor D coordinates value;
S5, the linear distance that two coordinates are obtained according to first time D coordinates value and second of D coordinates value, by straight line
Distance obtains velocity amplitude divided by time interval value;
S6, judge whether velocity amplitude is greater than preset shake value, when velocity amplitude is greater than shake value, be judged as that triggering is primary
It shakes;
S7, S1~S6 is recycled, when cumulative shake number is greater than default shake time numerical value, triggers mobile terminal flashlight and beat
On or off closes event.
Further, the time interval value of the step S2 is 80~200 milliseconds.
Further, before realizing step S7, the default time interval value shaken twice, when the time interval shaken twice is few
When preset time interval value, then adds up and shake number.
Preferably, the default time interval value shaken twice is 250~350 milliseconds.
In order to realize that another object of the present invention, the present invention also adopt the following technical scheme that:It is a kind of with gravity sensing
Flashlight cartridge system, the system comprises:
Monitoring unit, for monitoring the gravity sensor of mobile terminal;
Default unit presets triggering and shakes thing for the default time interval value for obtaining gravity sensor D coordinates value
The shake value of part, the shake time numerical value that default triggering mobile terminal flashlight turns on or off;
Computing unit obtains the D coordinates value of first time gravity sensor;After time interval, second of weight is obtained
The D coordinates value of power inductor;According to first time D coordinates value and second of D coordinates value obtain the straight lines of two coordinates away from
From linear distance is obtained velocity amplitude divided by time interval value;
Judging unit, for judging whether velocity amplitude is greater than preset shake value, when velocity amplitude is greater than shake value, judgement
To trigger primary shake;Monitoring unit circulation monitoring, when cumulative shake number is greater than default shake time numerical value, triggering is mobile eventually
End flashlight turns on or off event.
Further, the default time interval value for obtaining gravity sensor D coordinates value of the default unit is 80~200
Millisecond.
Further, the default time interval value shaken twice of the default unit, when the time interval shaken twice is less than
When preset time interval value, then adds up and shake number.
Preferably, the default time interval value shaken twice of the default unit is 250~350 milliseconds.
Compared with the existing technology, the gravity sensor that technical solutions according to the invention pass through monitoring mobile terminal;It is default
The time interval value of gravity sensor D coordinates value is obtained, the shake value of triggering shake event is preset, it is mobile eventually to preset triggering
The shake time numerical value that end flashlight turns on or off;Obtain the D coordinates value of first time gravity sensor;By between the time
Every rear, the D coordinates value of second of gravity sensor of acquisition;According to first time D coordinates value and second of D coordinates value
Linear distance is obtained velocity amplitude divided by time interval value by the linear distance for obtaining two coordinates;It is pre- to judge whether velocity amplitude is greater than
If shake value be judged as that triggering is primary when velocity amplitude is greater than shake value and shake;Circulation is monitored, when cumulative shake number is big
When default shake time numerical value, triggering mobile terminal flashlight turns on or off event.The present invention passes through gravity sensor, energy
It realizes that fast and convenient shaking opens or closes flashlight function, promotes the experience of user.
In order to be fully understood from the purpose of the present invention, feature and effect, below with reference to attached drawing to design of the invention, tool
Body structure and the technical effect of generation are described further.
Detailed description of the invention
Fig. 1 is the module diagram of the flashlight cartridge system of the present invention with gravity sensing;
Fig. 2 is the method flow diagram of the present invention for realizing the flashlight cartridge system with gravity sensing.
Specific embodiment
Come that the present invention will be described in detail below in conjunction with attached drawing and specific implementation method, it is of the invention it is schematic implement and
Illustrate for explaining the present invention, but not as a limitation of the invention.
Embodiment one
As shown in Figure 1, a kind of flashlight cartridge system with gravity sensing, the system comprises:
Monitoring unit, for monitoring the gravity sensor of mobile terminal;
Default unit presets triggering and shakes thing for the default time interval value for obtaining gravity sensor D coordinates value
The shake value of part, the shake time numerical value that default triggering mobile terminal flashlight turns on or off;
Computing unit obtains the D coordinates value of first time gravity sensor;After time interval, second of weight is obtained
The D coordinates value of power inductor;According to first time D coordinates value and second of D coordinates value obtain the straight lines of two coordinates away from
From linear distance is obtained velocity amplitude divided by time interval value;
Judging unit, for judging whether velocity amplitude is greater than preset shake value, when velocity amplitude is greater than shake value, judgement
To trigger primary shake;Monitoring unit circulation monitoring, when cumulative shake number is greater than default shake time numerical value, triggering is mobile eventually
End flashlight turns on or off event.
The default time interval value shaken twice of the default unit, when the time interval shaken twice less than it is preset when
Between spacing value when, then add up shake number.
As shown in Fig. 2, a kind of flashlight network system realization with gravity sensing, this approach includes the following steps:
S101:Monitor the gravity sensor of mobile terminal;
S102:The default time interval value for obtaining gravity sensor D coordinates value, presets the shake of triggering shake event
Value, the shake time numerical value that default triggering mobile terminal flashlight turns on or off, the default unit default time shaken twice
Spacing value;
S103:Obtain the D coordinates value of first time gravity sensor;
S104:After time interval, the D coordinates value of second of gravity sensor is obtained;
S105:The linear distance that two coordinates are obtained according to first time D coordinates value and second of D coordinates value, will be straight
Linear distance obtains velocity amplitude divided by time interval value;
S106:Judge whether velocity amplitude is greater than preset shake value, when velocity amplitude is greater than shake value, is judged as triggering one
Secondary shake is then judged as invalid shake, continues to monitor when velocity amplitude is less than shake value.
S107:Recycle S101~S106, when listen to shake twice when, judge whether the time interval shaken twice is less than
Preset time interval value, it is cumulative to shake number and enter step S108 if being less than, if more than invalid number meter is then considered as
It calculates, continues to monitor and recalculate;
S108:When cumulative shake number is greater than default shake time numerical value, triggers mobile terminal flashlight and beat on or off
Close event.
Technical solutions according to the invention open or close function, section using gravity sensing event triggering flashlight cartridge system
User time is saved, it is swift to operate simple, promote user experience.
Embodiment two
The present embodiment is in addition to following characteristics, with embodiment one:The default gravity sensor three-dimensional that obtains of the default unit is sat
The time interval value of scale value is 80 milliseconds.The default time interval value shaken twice of the default unit is 250 milliseconds.
Embodiment three
The present embodiment is in addition to following characteristics, with embodiment one:The default gravity sensor three-dimensional that obtains of the default unit is sat
The time interval value of scale value is 120 milliseconds.The default time interval value shaken twice of the default unit is 300 milliseconds.
Example IV
The present embodiment is in addition to following characteristics, with embodiment one:The default gravity sensor three-dimensional that obtains of the default unit is sat
The time interval value of scale value is 200 milliseconds.The default time interval value shaken twice of the default unit is 350 milliseconds.
The preferred embodiment of the present invention has been described in detail above, it should be understood that the ordinary skill of this field is without wound
The property made labour, which according to the present invention can conceive, makes many modifications and variations.Therefore, all technician in the art
According to present inventive concept by logic analysis, reasoning or according to the limited available technology of experiment in prior art basis
Scheme, should be among the protection scope determined by the claims.
Claims (8)
1. a kind of flashlight network system realization with gravity sensing, which is characterized in that this approach includes the following steps:
S1, the gravity sensor for monitoring mobile terminal;
S2, the default time interval value for obtaining gravity sensor D coordinates value, preset the shake value of triggering shake event, preset
The shake time numerical value that triggering mobile terminal flashlight turns on or off;
S3, the D coordinates value for obtaining first time gravity sensor;
S4, after time interval, obtain second of gravity sensor D coordinates value;
S5, the linear distance that two coordinates are obtained according to first time D coordinates value and second of D coordinates value, by linear distance
Velocity amplitude is obtained divided by time interval value;
S6, judge whether velocity amplitude is greater than preset shake value, when velocity amplitude is greater than shake value, be judged as that triggering is once shaken
It is dynamic;
S7, circulation S1~S6, when it is cumulative shake number be greater than it is default shake time numerical value when, triggering mobile terminal flashlight open or
Person's close event.
2. flashlight network system realization as described in claim 1, which is characterized in that the time interval value of the step S2 is
80~200 milliseconds.
3. flashlight network system realization as described in claim 1, which is characterized in that before realizing step S7, preset twice
The time interval value of shake then adds up when the time interval shaken twice is less than preset time interval value and shakes number.
4. flashlight network system realization as claimed in claim 3, which is characterized in that between the default time shaken twice
It is 250~350 milliseconds every being worth.
5. a kind of flashlight cartridge system with gravity sensing, which is characterized in that the system comprises:
Monitoring unit, for monitoring the gravity sensor of mobile terminal;
Default unit presets triggering shake event for the default time interval value for obtaining gravity sensor D coordinates value
Shake value, the shake time numerical value that default triggering mobile terminal flashlight turns on or off;
Computing unit obtains the D coordinates value of first time gravity sensor;After time interval, second of gravity-feed tank is obtained
Answer the D coordinates value of device;The linear distance of two coordinates is obtained according to first time D coordinates value and second of D coordinates value,
Linear distance is obtained into velocity amplitude divided by time interval value;
Judging unit, when velocity amplitude is greater than shake value, is judged as touching for judging whether velocity amplitude is greater than preset shake value
Hair is primary to be shaken;Monitoring unit circulation monitoring, when cumulative shake number is greater than default shake time numerical value, triggering mobile terminal hand
Torch turns on or off event.
6. flashlight cartridge system as claimed in claim 5, which is characterized in that the default unit is default to obtain gravity sensor three
The time interval value of dimensional coordinate values is 80~200 milliseconds.
7. flashlight cartridge system as claimed in claim 5, which is characterized in that between the default unit default time shaken twice
It then adds up when the time interval shaken twice is less than preset time interval value every value and shakes number.
8. flashlight cartridge system as claimed in claim 7, which is characterized in that between the default unit default time shaken twice
It is 250~350 milliseconds every being worth.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810378162.7A CN108848246A (en) | 2018-04-25 | 2018-04-25 | A kind of flashlight cartridge system and its implementation method with gravity sensing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810378162.7A CN108848246A (en) | 2018-04-25 | 2018-04-25 | A kind of flashlight cartridge system and its implementation method with gravity sensing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108848246A true CN108848246A (en) | 2018-11-20 |
Family
ID=64212236
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810378162.7A Pending CN108848246A (en) | 2018-04-25 | 2018-04-25 | A kind of flashlight cartridge system and its implementation method with gravity sensing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108848246A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102957805A (en) * | 2012-11-16 | 2013-03-06 | 广东欧珀移动通信有限公司 | Method for entering into flashlight mode of mobile phone |
CN103227865A (en) * | 2013-04-10 | 2013-07-31 | 深圳市金立通信设备有限公司 | Display method of voice recognition interface and mobile terminal |
CN105162991A (en) * | 2015-10-13 | 2015-12-16 | 上海斐讯数据通信技术有限公司 | A method and system for terminal automatically turning on and turning off electric torch |
CN105188189A (en) * | 2015-08-08 | 2015-12-23 | 广东欧珀移动通信有限公司 | Gravity-sensor-based flash lamp illumination method and apparatus, and mobile terminal |
KR20180039258A (en) * | 2016-10-08 | 2018-04-18 | 배재우 | Type cell phone case slide, FreshBerry amplifier |
-
2018
- 2018-04-25 CN CN201810378162.7A patent/CN108848246A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102957805A (en) * | 2012-11-16 | 2013-03-06 | 广东欧珀移动通信有限公司 | Method for entering into flashlight mode of mobile phone |
CN103227865A (en) * | 2013-04-10 | 2013-07-31 | 深圳市金立通信设备有限公司 | Display method of voice recognition interface and mobile terminal |
CN105188189A (en) * | 2015-08-08 | 2015-12-23 | 广东欧珀移动通信有限公司 | Gravity-sensor-based flash lamp illumination method and apparatus, and mobile terminal |
CN105162991A (en) * | 2015-10-13 | 2015-12-16 | 上海斐讯数据通信技术有限公司 | A method and system for terminal automatically turning on and turning off electric torch |
KR20180039258A (en) * | 2016-10-08 | 2018-04-18 | 배재우 | Type cell phone case slide, FreshBerry amplifier |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102999155B (en) | Electric terminal, method of toch control and display backlight control method | |
CN105068277B (en) | Intelligent glasses application system | |
CN201846395U (en) | Mobile phone with power saving function | |
CN103019124B (en) | A kind of method and device for preventing from switching false triggering | |
CN106444454B (en) | Energy control method and control device for power utilization system | |
CN106228015B (en) | A kind of healthy and safe monitor system of intelligent medical based on technology of Internet of things | |
CN104900010B (en) | Suspension cross-the-air touch control tumbling alarm bathroom pad system | |
CN107132826A (en) | A kind of multifunctional intellectual home security control system | |
CN105852840A (en) | Heart rhythm monitoring equipment | |
JP2005064571A (en) | Information transmission system and information transmission apparatus | |
CN108848246A (en) | A kind of flashlight cartridge system and its implementation method with gravity sensing | |
CN208223550U (en) | Confined space service personnel positioning and information monitoring device | |
CN107371214B (en) | Control method, device, storage medium and the terminal of terminal | |
CN108972592A (en) | Intelligent awakening method and device for robot | |
CN113433926A (en) | Ultra-low power consumption fault detection method and ultra-low power consumption elevator opening/closing door fault detection device | |
CN109343897A (en) | Awakening method and device for robot | |
CN206117803U (en) | Contextual model adjusting device and electronic equipment | |
CN105212284A (en) | Intelligent positioning warning underwear | |
CN108075195A (en) | A kind of accumulator remote monitoring system | |
CN213345441U (en) | Intelligent liquid storage tank | |
CN106973117A (en) | Real-time monitoring system for shared charging | |
CN105201305B (en) | A kind of padlock based on wireless network and positioning | |
CN208334968U (en) | A kind of signal pickup assembly for dynamic environment monitoring system | |
CN206670078U (en) | A kind of gas heater system based on Intelligent bracelet monitoring and reminding function | |
CN207232240U (en) | A kind of shockproof alarm circuit and wrist type Antistatic alarm |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181120 |
|
RJ01 | Rejection of invention patent application after publication |