A kind of GPS locator control system based on motion sensor
Technical field
The present invention relates to technical fields, and in particular to a kind of GPS locator control system based on motion sensor.
Background technique
In recent years, with the continuous development of the communication technology and chip technology, various multi-functional mobile devices are quickly grown.
When information equipment is worked normally, these hardware of information equipment need power supply to provide enough energy for it, especially
It is most with the electricity that main process task chip and communication module consume.Meanwhile the real time human-machine interaction of information equipment needs also to information
More stringent requirements are proposed for the standby capacity of equipment, will certainly be to user's because requiring the information equipment to charge daily
Experience generates very big negative effect.
GPS locator, can not be by increasing substantially electricity in the environment of present battery capacity expansion is increasingly becoming bottleneck
Tankage is excessive to solve the problems, such as mobile phone power consumption amount, so can only set about from section source.However there are standby times for GPS locator
The conflicting status with positioning interval, although extending positioning interval can be improved the standby time of equipment, but to positioning accuracy
And track description will appear very big error, and a large amount of electricity can be expended under equipment stationary state.
Summary of the invention
The GPS locator control system based on motion sensor that the purpose of the present invention is to provide a kind of, it is existing to solve
The problem for having GPS locator power consumption big.
To achieve the above object, the technical scheme is that
A kind of GPS locator control system based on motion sensor, carries in the GPS locator of motion sensor and is equipped with
The motion determination module of GPS locator current motion state, and working as according to judgement are judged according to the output of motion sensor
The standby control module of the working condition of preceding motion state control GPS locator.
Further, obtain is that motion determination module is equipped with data verification submodule, counter, timer, movement output
Submodule, the data verification submodule receive and process the sensing data of motion sensor output, the counter logarithm
The effective metering of data is carried out according to the sensor valid data of verifying submodule output, the timer is defeated in data verification submodule
Data effective timing is carried out when sensor valid data out, the exercise data submodule is effective to the effective metering of data and data
Timing is verified, if the two is all satisfied given threshold, judges that current motion state is in working condition.
Further, the data verification submodule receive motion sensor transmission current acceleration data, and with
Setting acceleration rate threshold is compared, if current acceleration data are higher than setting acceleration rate threshold, determines the current acceleration
Data are sensor valid data.
Further, the effective metering of the data is that counter adds 1 on current number, if data verification submodule exports
The counter is reset when sensor invalid data.
Further, timer is reset when the data verification submodule output transducer invalid data.
Further, obtaining is exercise data submodule setting frequency threshold value and time threshold, if detecting, data are effective
Metering is more than frequency threshold value and the effective timing of data is more than time threshold, then issues work enabling signal.
Further, motion sensor, auxiliary control chip, main control chip, GPS positioning are equipped in the GPS locator
Module, mobile communication module, mobile power source, memory, the motion sensor connect auxiliary control chip, the auxiliary control
Chip connects main control chip, and the main control chip is separately connected GPS positioning module, mobile communication module, mobile power source, storage
Device.
Further, repair module is equipped in the GPS locator, the repair module receives motion sensor output
The direction of motion compares the orientation data of GPS locator detection, if the misalignment angle in the two direction is more than set angle, sends out
Warning note out.
Further, capacity prompt module, the capacity prompt module real-time detection power supply are equipped in the GPS locator
Electricity, according to the corresponding capacity prompt of electricity percentages show of setting.
The invention has the advantages that:
The present invention is arranged what motion state is motion sensor senses GPS locator be currently in, and is in GPS locator
When static or minute movement, control GPS locator is closed, and when GPS locator is in moving condition, control GPS locator is opened
It starts building to make, achievees the effect that not reduce power saving in the case where positioning interval, not only ensure that measurement accuracy but also extended standby time.
Detailed description of the invention
Fig. 1 is the system construction drawing of the GPS locator control system described in the embodiment of the present invention based on motion sensor;
Fig. 2 is the logical flow chart of the GPS locator control system described in the embodiment of the present invention based on motion sensor.
In figure:
1, motion sensor;2, motion determination module;3, data verification submodule;4, counter;5, timer;6, it moves
Output sub-module;7, auxiliary control chip;8, main control chip;9, GPS positioning module;10, mobile communication module;11, mobile electricity
Source;12, memory.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings is implemented
The component of example can be arranged and be designed with a variety of different configurations.Therefore, below to the reality of the invention provided in the accompanying drawings
The detailed description for applying example is not intended to limit the range of claimed invention, but is merely representative of selected implementation of the invention
Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts
Every other embodiment, shall fall within the protection scope of the present invention.
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
The present invention is further illustrated with specific embodiment below with reference to accompanying drawings.
As shown in Figure 1, a kind of GPS locator control system based on motion sensor of the embodiment of the present invention, carries fortune
The movement that GPS locator current motion state is judged according to the output of motion sensor is equipped in the GPS locator of dynamic sensor
Judgment module 2, and the standby control module of the working condition according to the current motion state of judgement control GPS locator.
Obtain is that motion determination module 2 is equipped with data verification submodule 3, counter 4, timer 5, movement output submodule
6, the data verification submodule 3 receives and processes the sensing data of motion sensor output, and the counter 4 tests data
It demonstrate,proves the sensor valid data that submodule 3 exports and carries out the effective metering of data, the timer 5 is defeated in data verification submodule 3
Data effective timing is carried out when sensor valid data out, the exercise data submodule is effective to the effective metering of data and data
Timing is verified, if the two is all satisfied given threshold, judges that current motion state is in working condition.
The data verification submodule 3 receives the current acceleration data of motion sensor transmission, and accelerates with setting
Degree threshold value is compared, if current acceleration data are higher than setting acceleration rate threshold, determines the current acceleration data to pass
Sensor valid data.Different threshold values is set according to the translational acceleration of different users, as vehicle GPS locator and old man are anti-
The given threshold for losing device is different, the former given threshold is greater than the latter.
The effective metering of data is that counter 4 adds 1 on current number, and the initial value of the effective metering of data is 0, such as
GPS locator starts to move, and the effective metering of data increases since 0, if 3 output transducer invalid data of data verification submodule
When reset the counter 4, such as GPS locator move suddenly stop or reduce motion amplitude to threshold value hereinafter, data are effective
Metering is reset as 0.
Timer 5 is reset when the 3 output transducer invalid data of data verification submodule, initial value 0 works as GPS
Timer 5 starts timing when locator starts mobile, and the effective timing of data increases since 0, if data verification submodule 3 exports
When sensor invalid data, stop or reduce motion amplitude suddenly to threshold value hereinafter, data are effectively counted as GPS locator moves
When be reset as 0.
Obtaining is exercise data submodule setting frequency threshold value and time threshold, if detecting, the effective metering of data is more than time
Number threshold value and the effective timing of data are more than time threshold, then issue work enabling signal, and work enabling signal is sent to GPS positioning
The main control chip 8 of device, main control chip 8 open GPS positioning information channel and movable signal interaction channel.
It is equipped with motion sensor in the GPS locator, auxiliary control chip 7, main control chip 8, GPS positioning module 9, moves
Dynamic communication module 10, mobile power source 11, memory 12, the motion sensor connect auxiliary control chip 7, the auxiliary control
Chip 7 connects main control chip 8, and the main control chip 8 is separately connected GPS positioning module 9, mobile communication module 10, mobile power source
11, memory 12.
The repair module connecting with main control chip 8 is equipped in the GPS locator, the repair module receives motion-sensing
The orientation data of the direction of motion comparison GPS locator detection of device output, if the misalignment angle in the two direction is more than setting
Angle then issues warning note.GPS positioning module 9 receives current location data, according to current location data and prior location number
According to mobile route data are calculated, any quadrant being arranged in earth coordinates is benchmark line, by the mobile route data and benchmark
The mobile angle of both line computations, the acceleration direction and both benchmark line computations that repair module goes out according to motion sensor senses
Detection angle, mobile angle and detection angle are made the difference, takes absolute value, obtains misalignment angle, if misalignment angle is more than to set
Angle then issues warning note.The mode of warning note includes acoustic alarm, light alarm, sends the modes such as end message, is prompted
Currently there is detection error in GPS locator, if repeatedly sending, illustrates that GPS locator has already appeared failure, please replaces or tie up in time
It repairs.
The capacity prompt module connecting with main control chip 8 is equipped in the GPS locator, the capacity prompt module is real-time
Electric quantity of power supply is detected, according to the corresponding capacity prompt of electricity percentages show of setting.It is arranged on the shell of GPS locator multiple
The warning light of color, according to the reduction of the percentage of electricity in mobile power source 11, the quantity of the warning light of luminance is reduced, such as
20% electricity of every reduction just extinguishes a warning light.
Finally it should be noted that:Above-described embodiments are merely to illustrate the technical scheme, rather than to it
Limitation;Although the present invention is described in detail referring to the foregoing embodiments, those skilled in the art should understand that:
It can still modify to technical solution documented by previous embodiment, or to part of or all technical features into
Row equivalent replacement;And these modifications or substitutions, it does not separate the essence of the corresponding technical solution various embodiments of the present invention technical side
The range of case.