Summary of the invention
In view of above content, be necessary to provide a kind of GPS automatic power save system, it can be worked as satellite-signal that the GPS device receives and continue automatically the GPS function of GPS device to be closed when bad.
Also be necessary to provide a kind of GPS automatic power save method, it can be worked as satellite-signal that the GPS device receives and continue automatically the GPS function of GPS device to be closed when bad.
Described GPS automatic power save system comprises: the On/Off module is used for opening or close the GPS function of described GPS device after the navigation software that is installed on the GPS device is opened; Signal detection module, be used for after described GPS function is opened, whether the t1 detection at regular intervals once satellite-signal of this GPS device reception reaches standard, wherein, the standard of satellite-signal is for predefined according to actual conditions, and time t1 is default time value; Counter is used for when the satellite-signal of above-mentioned detection does not reach standard, and the count value of this counter is added 1 as current count value, and wherein, the initial count value of counter is 0; Judge module, be used to judge that whether the current count value of described counter is greater than preset value K, when current count value during greater than K, described On/Off module is closed the GPS function of GPS device, when current count value during not greater than K, described signal detection module continues every time t1 satellite-signal to be detected; The counting dump block is used for when not detecting satellite-signal under the situation greater than K at above-mentioned current count value and reach standard, with the count value zero clearing of described counter; Described counting dump block also is used for when the GPS of GPS device function is closed, with the count value zero clearing of described counter.
Described GPS automatic power save method comprises step: (a1) open the navigation software that is installed in the GPS device; (a2) the GPS function of unlatching GPS device; (a3) detect the satellite-signal that once described GPS device receives every one section preset time t 1 and whether reach standard, if reach standard, execution in step (a4) then, otherwise execution in step (a5); (a4), return step (a3) with the count value zero clearing of counter in the GPS device; (a5) count value with counter adds 1 as current count value; (a6) whether the current count value of judging described counter greater than preset value K, if current count value is greater than K, and execution in step (a7) then, otherwise, return step (a3); (a7) close the GPS function of GPS device, simultaneously with the count value zero clearing of described counter.
Compared to prior art, described GPS automatic power save system and method, it can be worked as satellite-signal that the GPS device receives and continues automatically the GPS function of GPS device to be closed when bad, has effectively avoided the power wastage of GPS device.
Embodiment
As shown in Figure 1, be the Organization Chart of GPS automatic power save of the present invention system.Described GPS automatic power save system 2 runs in the GPS device 1, this GPS device 1 is for being equipped with navigation software and having the mobile phone of GPS function or movable fixture such as PDA, and described GPS function is meant by GPS device 1 being positioned the user who realizes this GPS device 1 carries out navigation function.
Described GPS automatic power save system 2 comprises On/Off module 21, signal detection module 22, counter 23, judge module 24, counting dump block 25 and reminding module 26.
Described On/Off module 21 is used for opening or close the GPS function of described GPS device 1 after the navigation software that is installed on GPS device 1 is opened, and this unlatching or the method for closing the GPS function can be manual and automatic dual modes.
Described signal detection module 22 is used for after the GPS of described GPS device 1 function is opened, and whether the t1 detection at regular intervals once satellite-signal of this GPS device 1 reception reaches standard.Wherein, the standard of satellite-signal can be set up on their own according to actual conditions by the user, as this standard be " search and the number that connect to go up satellite more than or equal to 2 and signal intensity greater than 5dBHz ", time interval t1 is a preset value, is 5 seconds, 10 seconds, 20 seconds etc. as this preset value.
Described counter 23 is used for when the satellite-signal of above-mentioned detection does not reach standard, and the count value of this counter 23 is added 1 as current count value, continues to detect the number of times that satellite-signal does not reach standard to write down, and the initial count value of this counter 23 is 0.
Described judge module 24 is used to judge that whether the count value of described counter 23 is greater than K, when count value during greater than K, described On/Off module 21 will be closed the GPS function of GPS device 1, when count value during not greater than K, described signal detection module 22 will continue every time t1 satellite-signal to be detected.Wherein, described K is a preset value, is 10,20,50 etc. as this preset value K.
Described counting dump block 25 is used for when not detecting satellite-signal under the situation greater than K in above-mentioned count value and reach standard, with the count value zero clearing of described counter 23.This counting dump block 25 also is used for when described On/Off module 21 is closed the GPS function of GPS device 1, with the count value zero clearing of described counter.
Described reminding module 26 is used for when described On/Off module 21 is closed the GPS function of GPS device 1, and the information that this GPS device 1 of prompting user has entered battery saving mode is " entering the GPS battery saving mode " as this information.
Described signal detection module 22 also is used for when GPS device 1 enters battery saving mode, and whether the t3 detection at regular intervals once satellite-signal of this GPS device 1 reception reaches standard.Wherein, the Preset Time value that time interval t3 is provided with according to actual conditions for the user, when the satellite-signal that detects 1 reception of GPS device reaches standard, described On/Off module 21 will be opened the GPS function of this GPS device 1 automatically.
This place it should be noted that after the navigation software in the GPS device 1 is closed described GPS function can not be opened automatically.
As shown in Figure 2, be the process flow diagram of GPS automatic power save method of the present invention.
Step S01 opens the navigation software of installing in the GPS device 1.
Step S02, the GPS function that described On/Off module 21 is opened GPS device 1.
Step S03, described signal detection module 22 t1 at set intervals detect the satellite-signal that once described GPS device 1 receives and whether reach standard, if reach standard, and execution in step S04 then, otherwise execution in step S05.
Step S04, described counting dump block 25 returns the count value zero clearing of counter 23 to step S03.
Step S05 adds 1 as current count value with the count value of counter 23.
Whether step S06, described judge module 24 judge the count value of described counter 23 greater than preset value K, if greater than K, and execution in step S07 then, otherwise, return step S03.
Step S07, described On/Off module 21 is closed the GPS function of GPS device 1, and described counting dump block 25 is with the count value zero clearing of described counter 23 simultaneously.
Step S08, described reminding module 26 prompting user GPS devices 1 have entered the GPS battery saving mode.
Step S09, described signal detection module 22 detect a satellite-signal every time t3 and whether reach standard, if reach standard, then return step S02, otherwise, execution in step S10.
Step S10, described GPS device 1 keeps the state of Current GPS battery saving mode.
Step S11 judges whether to close described navigation software, if need close described navigation software, and process ends then, otherwise return step S09.
In the present embodiment, when GPS device 1 enters battery saving mode, can withdraw from battery saving mode by manual method.
Above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.