Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, intactly description; Obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Embodiment one
As shown in Figure 1, present embodiment provides a kind of portable terminal to reduce the method for volume automatically, comprising:
S1 obtains the portable terminal current position information;
S2 judges whether the current location of portable terminal reaches operative norm, as reaches operative norm, then execution in step S3;
S3 carries out the operation that reduces volume.
Said S1 obtains the portable terminal current position information and obtains to transfer the current absolute position parameter in terminal for utilizing global positioning system (GPS, Global Positioning System).Said absolute position parameter is meant longitude and latitude value.
Judge among the said S2 that whether the current location of portable terminal reaches the step of operative norm, comprising:
S21 reads the absolute position parameter of the target of setting.Said target is meant that the user need carry out the position that reduces the volume operation near it, like positions such as crossroad, school doorway and Entrances.The absolute position parameter of said target is meant the longitude and the latitude value of this position.
S22 calculates the current location of portable terminal and the distance parameter and the relative bearing parameter of target according to the current absolute position parameter in said handover terminal and the absolute position parameter of target; It will be appreciated by those skilled in the art that; Said according to the current absolute position parameter in said handover terminal and the absolute position parameter of target; Calculating the current location of portable terminal and the distance parameter of target and the step of relative bearing parameter is art technology known technology means, no longer gives unnecessary details here;
S23 compares the first distance parameter threshold value of said distance parameter and setting, when said distance parameter is less than or equal to the said first distance parameter threshold value, carries out S24; It will be appreciated by those skilled in the art that; The said first distance parameter threshold value is used to control said portable terminal and whether carries out the operation that reduces volume; The said first distance parameter threshold value can be set according to user's demand, and present embodiment is 5 meters with the said first distance parameter threshold setting, like this when the distance between said portable terminal and the target is less than or equal to 5 meters; Portable terminal is carried out the operation that reduces volume, prevents the user because the excessive dangerous situation not to be noted that causes of volume.
S24 compares said relative bearing parameter and orientation threshold value, when said relative bearing parameter is consistent with said orientation threshold value, carries out S3.
The operation that said execution reduces volume comprises:
S311 reads the ratio of the reduction volume of setting; As 20%, 50% or 100%;
S312 regulates the volume of portable terminal output according to said ratio.As be reduced to 20%, 50% or 100% of current volume.Like this, can be different according to user's demand, reduction portable terminal output volume in various degree for the user provides multiple choices, designs more flexible.
The operation that said execution reduces volume can also comprise:
S321 reads the level of sound volume parameter of setting;
S322 is according to the volume of said level of sound volume parameter regulation portable terminal output.It will be understood by those skilled in the art that said level of sound volume parameter is corresponding with the volume power output of the audio parts of setting, volume decrease is low to moderate corresponding output power, thereby realize reducing the purpose of volume according to user's request according to this grade parameter.
Further, also comprise the steps:
The second distance parameter threshold of said distance parameter and setting is compared,, regulate sample frequency when said distance parameter during less than said second distance parameter threshold.It will be understood by those skilled in the art that said second distance parameter threshold is used to control said portable terminal and which sample frequency carries out monitoring according to.Present embodiment is set at 100 meters with said second distance parameter threshold, first sample frequency is set at 30 seconds/inferior, and said second sample frequency is set at greater than 30 seconds/inferior value.Like this, when the distance between said portable terminal and the target was greater than or equal to 100 meters, said portable terminal was according to 30 seconds/inferior frequency monitoring portable terminal and the distance of target, power saving more; When the distance between said portable terminal and the target during less than 100 meters, said portable terminal will increase sample frequency, the more frequent monitoring portable terminal and the distance of target, thus reduce volume more timely, prevent dangerous the generation.
Embodiment two
The method that the foregoing description one is provided; The longitude and the latitude value that need developer's target setting in portable terminal of user or portable terminal; This is not very convenient for user and developer; Present embodiment two is utilized in the mode that third party's map software is set in the portable terminal, and the data that the current longitude and the latitude value of portable terminal is mapped as with this third party's map are the station-keeping data of comparable data.No matter like this, just can directly utilize the data in this map to come the target setting location parameter, be for the user or for the developer, will be more convenient all.
The portable terminal that present embodiment two is provided reduces the method for volume automatically, comprising:
S1 obtains the portable terminal current position information;
S2 judges whether the current location of portable terminal reaches operative norm, as reaches operative norm, then execution in step S3;
S3 carries out the operation that reduces volume.
Said S1 obtains the portable terminal current position information and comprises:
S11 utilizes global positioning system (GPS, Global Positioning System) to obtain to transfer the current absolute position parameter in terminal.Said absolute position parameter is meant longitude and latitude value.
Map datum and said absolute position parameter that S12 is built-in according to portable terminal calculate the relative position parameter of current location in this map datum of said portable terminal.It will be understood by those skilled in the art that the said relative position parameter of current location in this map datum that calculates said portable terminal is the techniques well known means, no longer give unnecessary details here.
Judge among the said S2 that whether the current location of portable terminal reaches the step of operative norm, comprising:
S21 reads the relative position parameter of target in said map datum of setting.Said target is meant that the user need carry out the position that reduces the volume operation near it, like positions such as crossroad, school doorway and Entrances.The relative position parameter of said target can directly be set in said map through the user, and the operation of target setting is just more convenient and directly perceived like this, has increased the practicality of this method, to the user more facility is provided.
S22 calculates the current location of portable terminal and the distance parameter and the relative bearing parameter of target according to the current relative position parameter in said handover terminal and the relative position parameter of target; It will be appreciated by those skilled in the art that; Said according to the current absolute position parameter in said handover terminal and the absolute position parameter of target; Calculating the current location of portable terminal and the distance parameter of target and the step of relative bearing parameter is art technology known technology means, no longer gives unnecessary details here;
S23 compares the first distance parameter threshold value of said distance parameter and setting, when said distance parameter is less than or equal to the said first distance parameter threshold value, carries out S24; It will be appreciated by those skilled in the art that; The said first distance parameter threshold value is used to control said portable terminal and whether carries out the operation that reduces volume; Said distance parameter threshold value can be set according to user's demand, and present embodiment is 5 meters with said distance parameter threshold setting, like this when the distance between said portable terminal and the target is less than or equal to 5 meters; Portable terminal is carried out the operation that reduces volume, prevents the user because the excessive dangerous situation not to be noted that causes of volume.
S24 compares said relative bearing parameter and orientation threshold value, when said relative bearing parameter is consistent with said orientation threshold value, carries out S3.
The operation that said execution reduces volume comprises:
S311 reads the ratio of the reduction volume of setting; As 20%, 50% or 100%;
S312 regulates the volume of portable terminal output according to said ratio.As be reduced to 20%, 50% or 100% of current volume.Like this, can be different according to user's demand, reduction portable terminal output volume in various degree for the user provides multiple choices, designs more flexible.
The operation that said execution reduces volume can also comprise:
S321 reads the level of sound volume parameter of setting;
S322 is according to the volume of said level of sound volume parameter regulation portable terminal output.It will be understood by those skilled in the art that said level of sound volume parameter is corresponding with the volume power output of the audio parts of setting, volume decrease is low to moderate corresponding output power, thereby realize reducing the purpose of volume according to user's request according to this grade parameter.
Further, also comprise the steps:
The second distance parameter threshold of said distance parameter and setting is compared,, regulate sample frequency when said distance parameter during less than said second distance parameter threshold.It will be understood by those skilled in the art that said second distance parameter threshold is used to control said portable terminal and which sample frequency carries out monitoring according to.Present embodiment is set at 100 meters with said second distance parameter threshold, first sample frequency is set at 30 seconds/inferior, and said second sample frequency is set at greater than 30 seconds/inferior value.Like this, when the distance between said portable terminal and the target was greater than or equal to 100 meters, said portable terminal was according to 30 seconds/inferior frequency monitoring portable terminal and the distance of target, power saving more; When the distance between said portable terminal and the target during less than 100 meters, said portable terminal will increase sample frequency, the more frequent monitoring portable terminal and the distance of target, thus reduce volume more timely, prevent dangerous the generation.
Embodiment three
Corresponding with the foregoing description one, this enforcement three provides the portable terminal of the method that realizes that the foregoing description one is provided, and comprises
Locating module is used to obtain the portable terminal current position information;
Monitoring module is used to judge whether the current location of portable terminal reaches operative norm, as reaches operative norm, then execution in step S3;
Executive Module is used to control the operation of carrying out the reduction volume.
Said locating module can adopt global positioning system (GPS, Global Positioning System), thereby obtains the current absolute position parameter of portable terminal.Said absolute position parameter is meant longitude and latitude value.
Said monitoring module comprises:
First memory module is used to store the absolute position parameter of target; Said target is meant that the user need carry out the position that reduces the volume operation near it, like positions such as crossroad, school doorway and Entrances.The absolute position parameter of said target is meant the longitude and the latitude value of this position.
Second memory module is used to store the current absolute position parameter of said portable terminal;
Computing module is used for reading respectively absolute position parameter and the current absolute position parameter in second memory module of the target of first memory module, carries out computing according to said two parameters, obtains the distance parameter and the relative bearing parameter of current location and target; It will be appreciated by those skilled in the art that; Said according to the current absolute position parameter of said portable terminal and the absolute position parameter of target; Calculating the current location of portable terminal and the distance parameter of target and the step of relative bearing parameter is art technology known technology means, no longer gives unnecessary details here;
The first threshold comparison module; The first distance parameter threshold value of setting in the said distance parameter that is used for computing module is calculated and this module compares; When said distance parameter is less than or equal to the said first distance parameter threshold value, send signal to said orientation threshold value comparison module; It will be appreciated by those skilled in the art that; The said first distance parameter threshold value is used to control said portable terminal and whether carries out the operation that reduces volume; The said first distance parameter threshold value can be set according to user's demand, and present embodiment is 5 meters with the said first distance parameter threshold setting, like this when the distance between said portable terminal and the target is less than or equal to 5 meters; Portable terminal is carried out the operation that reduces volume, prevents the user because the excessive dangerous situation not to be noted that causes of volume.
Orientation threshold value comparison module; Be used for after receiving the signal that said first threshold comparison module sends; Relative bearing parameter that said computing module is calculated and the orientation threshold value that is provided with in it compare; When said relative bearing parameter is consistent with said orientation threshold value, send signal to said Executive Module.
Said Executive Module comprises:
The 3rd memory module is used to store the ratio of the reduction volume of setting; As 20%, 50% or 100%;
Control module is used to receive signal that said orientation threshold value comparison module sends and according to the rate regulation volume power output of said reduction volume; As be reduced to 20%, 50% or 100% of current volume.Like this, can be different according to user's demand, reduction portable terminal output volume in various degree for the user provides multiple choices, designs more flexible.
Said Executive Module also can comprise:
The 3rd memory module is used to store the level of sound volume parameter and the corresponding volume output power value thereof of setting;
Control module is used to receive the signal of said orientation threshold value comparison module transmission and the volume of exporting according to said level of sound volume parameter regulation portable terminal.It will be understood by those skilled in the art that said level of sound volume parameter is corresponding with the volume power output of the audio parts of setting, volume decrease is low to moderate corresponding output power, thereby realize reducing the purpose of volume according to user's request according to this grade parameter.
Further, also comprise:
The second threshold value comparison module is used for the second distance parameter threshold of said distance parameter and setting is compared, and controls the frequency that said clock module sends interrupt signal according to comparative result.It will be understood by those skilled in the art that when said distance parameter during, control said clock module and send interrupt signal according to second sample frequency less than said second distance parameter threshold; When said distance parameter is greater than or equal to the said first distance parameter threshold value, controls said clock module and send interrupt signal according to the firstth sample frequency.
Clock module is used for sending interrupt signal according to sample frequency to said computing module, guarantees that said computing module carries out work according to sample frequency;
It will be understood by those skilled in the art that said second distance parameter threshold is used to control said portable terminal and which sample frequency carries out monitoring according to.Present embodiment is set at 100 meters with said second distance parameter threshold, first sample frequency is set at 30 seconds/inferior, and said second sample frequency is set at greater than 30 seconds/inferior value.Like this, when the distance between said portable terminal and the target was greater than or equal to 100 meters, said portable terminal was according to 30 seconds/inferior frequency monitoring portable terminal and the distance of target, power saving more; When the distance between said portable terminal and the target during less than 100 meters, said portable terminal will increase sample frequency, the more frequent monitoring portable terminal and the distance of target, thus reduce volume more timely, prevent dangerous the generation.
Embodiment four
Corresponding with the foregoing description two, this enforcement three provides the portable terminal of the method that realizes that the foregoing description two is provided, and comprises
Locating module is used to obtain the portable terminal current position information;
Monitoring module is used to judge whether the current location of portable terminal reaches operative norm, as reaches operative norm, then execution in step S3;
Executive Module is used to control the operation of carrying out the reduction volume.
Said locating module comprises:
Global positioning system (GPS, Global Positioning System), thus the current absolute position parameter of portable terminal obtained.Said absolute position parameter is meant longitude and latitude value.
The ground module is used for calculating the relative position parameter of the current location of said portable terminal in portable terminal storing map data.It will be understood by those skilled in the art that the said relative position parameter of current location in this map datum that calculates said portable terminal is the techniques well known means, no longer give unnecessary details here.
Said monitoring module comprises:
First memory module is used to store the relative position parameter of target; Said target is meant that the user need carry out the position that reduces the volume operation near it, like positions such as crossroad, school doorway and Entrances.The relative position parameter of said target can directly be set in said map through the user, and the operation of target setting is just more convenient and directly perceived like this, has increased the practicality of this method, to the user more facility is provided.
Second memory module is used to store the current relative position parameter of said portable terminal;
Computing module is used for reading respectively relative position parameter and the current relative position parameter in second memory module of the target of first memory module, carries out computing according to said two parameters, obtains the distance parameter and the relative bearing parameter of current location and target; It will be appreciated by those skilled in the art that; Said according to the current absolute position parameter of said portable terminal and the absolute position parameter of target; Calculating the current location of portable terminal and the distance parameter of target and the step of relative bearing parameter is art technology known technology means, no longer gives unnecessary details here;
The first threshold comparison module; The first distance parameter threshold value of setting in the said distance parameter that is used for computing module is calculated and this module compares; When said distance parameter is less than or equal to the said first distance parameter threshold value, send signal to said orientation threshold value comparison module; It will be appreciated by those skilled in the art that; The said first distance parameter threshold value is used to control said portable terminal and whether carries out the operation that reduces volume; The said first distance parameter threshold value can be set according to user's demand, and present embodiment is 5 meters with the said first distance parameter threshold setting, like this when the distance between said portable terminal and the target is less than or equal to 5 meters; Portable terminal is carried out the operation that reduces volume, prevents the user because the excessive dangerous situation not to be noted that causes of volume.
Orientation threshold value comparison module; Be used for after receiving the signal that said first threshold comparison module sends; Relative bearing parameter that said computing module is calculated and the orientation threshold value that is provided with in it compare; When said relative bearing parameter is consistent with said orientation threshold value, send signal to said Executive Module.
Said Executive Module comprises:
The 3rd memory module is used to store the ratio of the reduction volume of setting; As 20%, 50% or 100%;
Control module is used to receive signal that said orientation threshold value comparison module sends and according to the rate regulation volume power output of said reduction volume; As be reduced to 20%, 50% or 100% of current volume.Like this, can be different according to user's demand, reduction portable terminal output volume in various degree for the user provides multiple choices, designs more flexible.
Said Executive Module also can comprise:
The 3rd memory module is used to store the level of sound volume parameter and the corresponding volume output power value thereof of setting;
Control module is used to receive the signal of said orientation threshold value comparison module transmission and the volume of exporting according to said level of sound volume parameter regulation portable terminal.It will be understood by those skilled in the art that said level of sound volume parameter is corresponding with the volume power output of the audio parts of setting, volume decrease is low to moderate corresponding output power, thereby realize reducing the purpose of volume according to user's request according to this grade parameter.
Further, also comprise:
The second threshold value comparison module is used for the second distance parameter threshold of said distance parameter and setting is compared, and controls the frequency that said clock module sends interrupt signal according to comparative result; It will be understood by those skilled in the art that when said distance parameter during, control said clock module and send interrupt signal according to second sample frequency less than said second distance parameter threshold; When said distance parameter is greater than or equal to said second distance parameter threshold, controls said clock module and send interrupt signal according to first sample frequency.
Clock module is used for sending interrupt signal according to sample frequency to said computing module.Guarantee that said computing module carries out work according to sample frequency.
It will be understood by those skilled in the art that said second distance parameter threshold is used to control said portable terminal and which sample frequency carries out monitoring according to.Present embodiment is 100 meters with the said first distance parameter threshold setting, first sample frequency is set at 30 seconds/inferior, and said second sample frequency is set at greater than 30 seconds/inferior value.Like this, when the distance between said portable terminal and the target was greater than or equal to 100 meters, said portable terminal was according to 30 seconds/inferior frequency monitoring portable terminal and the distance of target, power saving more.When the distance between said portable terminal and the target during less than 100 meters, said portable terminal will increase sample frequency, the more frequent monitoring portable terminal and the distance of target, thus reduce volume more timely, prevent dangerous the generation.
What should explain at last is: above embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although with reference to previous embodiment the present invention has been carried out detailed explanation, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.