Summary of the invention
The technical problem to be solved in the present invention is, for the above-mentioned defect of prior art, provides a kind of method and system of Lookup protocol mobile terminal loudness.Make the user when entering public place, mobile terminal media entertainment sound automatically is set to silent mode, the user, in the process of utilizing mobile terminal to be amused and diverted oneself, just can not produce interference to people on every side like this, has reduced the noise pollution of public place.
The technical scheme that technical solution problem of the present invention adopts is as follows:
A kind of method of Lookup protocol mobile terminal loudness wherein, comprises step:
A, import and export is provided with first apart from induction module in public places in advance, and is provided with the second distance induction module that coordinates induction with described the first distance-sensor on described mobile terminal; When mobile terminal enters described public place, signal volume is closed in the control whether automatic detection of second distance induction module on mobile terminal has public place to send;
B, when receiving the described control of sending public place, mobile terminal closes signal volume, and when mobile terminal detects its current media amusement volume and is non-silent mode, described mobile terminal is preserved the volume flag bit corresponding with current mobile terminal media entertainment volume, and is set to silent mode according to the media entertainment volume that the signal volume mobile terminal is closed in described control;
Whether the automatic detection of second distance induction module on C, described mobile terminal has the control that this public place is sent to recover signal volume;
When D, the second distance induction module on described mobile terminal receive the described control recovery signal volume of sending this public place, described mobile terminal reads the described volume flag bit of its preservation automatically, and according to described volume flag bit, the media entertainment volume of described mobile terminal is returned to the described current media amusement volume corresponding with described volume flag bit.
The method of described Lookup protocol mobile terminal loudness, wherein, described media entertainment volume is other mobile terminal loudness outside incoming call volume and alarm clock volume.
The method of described Lookup protocol mobile terminal loudness, wherein, described step B specifically comprises:
B11, when described mobile terminal receives described control and closes signal volume, whether be silent mode to mobile terminal if detecting its current media amusement volume; When no, enter step B12; When being, do not change the volume flag bit corresponding with described silent mode;
B12, mobile terminal are preserved the volume flag bit corresponding with current mobile terminal media entertainment volume;
B13, described mobile terminal are closed its media entertainment volume of signal volume according to described control and are set to silent mode, and the volume flag bit is recorded as and changes.
The method of described Lookup protocol mobile terminal loudness, wherein, described step D specifically comprises:
When D11, the second distance induction module on described mobile terminal receive described control recovery signal volume, judge whether the volume flag bit of mobile terminal change occurred, when being, enter step D12; When no, finish;
D12, described mobile terminal read the volume flag bit corresponding with described current mobile terminal media entertainment volume of its pre-save automatically;
D13, when reading successfully, described mobile terminal returns to the described current media amusement volume corresponding with described volume flag bit according to described volume flag bit by the media entertainment volume of described mobile terminal.
The method of described Lookup protocol mobile terminal loudness wherein, also comprises between described steps A and described step B:
Whether B01, described mobile terminal automatic decision it open the mobile terminal vibrating mode, when not opening and do not enter step B02; When opening, do not change the vibration marker bit of mobile terminal, and enter step B;
B02, described mobile terminal are opened described vibration mode, and the vibration marker bit of described mobile terminal is recorded as and changes.
The method of described Lookup protocol mobile terminal loudness wherein, also comprises between described step C and described step D:
D01, described mobile terminal judge whether described vibration marker bit changes; When being, enter step D02; When no, directly enter step D;
D02, described mobile terminal read its vibration marker bit changed automatically, and according to the vibration mode of the described vibration marker bit turning-off mobile terminal changed.
A kind of system of Lookup protocol mobile terminal loudness wherein, comprising:
First apart from induction module, in advance import and export setting in public places;
The second distance induction module arranges on described mobile terminal and it coordinates induction with described the first distance-sensor; It is for when mobile terminal enters described public place, and whether the control whether automatic detection of second distance induction module on mobile terminal has public place to send is closed signal volume and had the control that this public place is sent to recover signal volume for automatic detection;
Volume arranges module, close signal volume for when mobile terminal, receiving the described control of sending public place, and when mobile terminal detects its current media amusement volume and is non-silent mode, described mobile terminal is preserved the volume flag bit corresponding with current mobile terminal media entertainment volume, and is set to silent mode according to the media entertainment volume that the signal volume mobile terminal is closed in described control;
Volume is recovered module, while for the second distance induction module on described mobile terminal, receiving the described control recovery signal volume of sending this public place, described mobile terminal reads the described volume flag bit of its preservation automatically, and according to described volume flag bit, the media entertainment volume of described mobile terminal is returned to the described current media amusement volume corresponding with described volume flag bit.
The system of described Lookup protocol mobile terminal loudness, wherein, described volume arranges module and specifically comprises:
The silent mode judging unit, whether while for when described mobile terminal, receiving described control, closing signal volume, detecting mobile terminal current media amusement volume is silent mode;
Volume flag bit setting unit, while for the current media amusement volume when mobile terminal, being not silent mode, mobile terminal is preserved the volume flag bit corresponding with current mobile terminal media entertainment volume; When the current media amusement volume of mobile terminal is silent mode, do not change the volume flag bit corresponding with described silent mode;
Volume flag bit record cell, be set to silent mode for when described mobile terminal, according to described control, closing its media entertainment volume of signal volume, and the volume flag bit be recorded as and change.
The system of described Lookup protocol mobile terminal loudness, wherein, described volume is recovered module and is specifically comprised:
Volume flag bit judging unit, while for the second distance induction module on described mobile terminal, receiving described control recovery signal volume, judge whether the volume flag bit of mobile terminal change occurred;
Volume flag bit reading unit, read the volume flag bit corresponding with described current mobile terminal media entertainment volume of its pre-save automatically for described mobile terminal;
The volume recovery unit, read successfully for working as, and described mobile terminal returns to the described current media amusement volume corresponding with described volume flag bit according to described volume flag bit by the media entertainment volume of described mobile terminal.
The system of described Lookup protocol mobile terminal loudness, wherein, the system of described Lookup protocol mobile terminal loudness also comprises:
Whether the vibration mode judge module, open vibrating mode for the automatic decision mobile terminal;
The first vibration marker bit arranges module, for when opening vibration mode, does not change the vibration marker bit of mobile terminal;
The second vibration marker bit arranges module, for when mobile terminal is not opened vibration mode, controls and opens described vibration mode, and the vibration marker bit of described mobile terminal is recorded as and changes;
Whether vibration flag bit judge module, change for judging the described vibration marker bit of mobile terminal;
The vibration mode closing module, the vibration marker bit changed for automatically reading it, and according to the vibration mode of the described vibration marker bit turning-off mobile terminal changed.
The invention provides a kind of method and system of Lookup protocol mobile terminal loudness, owing to being provided with apart from induction module with the user mobile phone end in public places, make mobile terminal can automatically detect the state of its turnover public place, make the user when entering public place automatically the media entertainment volume be set to silent mode, when leaving public place, recover original media entertainment volume value of setting, when not affecting user's use, reduced the noise jamming to the people around, the unnecessary noise pollution that also made public place reduce.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, clear and definite, referring to accompanying drawing, developing simultaneously, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is the preferred embodiment flow chart of steps of the method for a kind of Lookup protocol mobile terminal loudness provided by the present invention.
Need be clear and definite, the mobile terminal of below enumerating includes but not limited to smart mobile phone, panel computer, computer etc.;
Below cited public place include but not limited to; Subway, hospital, bank, dining room etc.
As shown in Figure 1, signal volume is closed in the control that at first enters step S1, the automatic detection of mobile terminal and whether have public place to send;
The flow process of its specific implementation is:
Step S11, import and export is provided with first apart from induction module in public places in advance, is provided with the second distance induction module that coordinates induction with described the first distance-sensor on described mobile terminal;
Be that mobile terminal passes through first apart from induction module and the identification each other of second distance induction module, enter public place or leave this public place thereby judge it, then make mobile terminal make different actions according to the difference of its present position;
Step S12, when the user carries mobile terminal and enters public place, described the first distance perspective answers Module recognition that the mobile terminal of described the second induction module is installed, and sends to control to this mobile terminal and close signal volume;
Step S13, the second distance induction module on mobile terminal detect public place and send to control while closing signal volume to it, receive described control and close signal volume.
When mobile terminal successfully receives described control and closes signal volume, continue to enter as shown in Figure 1 step S2, when mobile terminal receives the described control of sending public place, close signal volume, and when mobile terminal detects its current media amusement volume and is non-silent mode, described mobile terminal is preserved the volume flag bit corresponding with current mobile terminal media entertainment volume, and is set to silent mode according to the media entertainment volume that the signal volume mobile terminal is closed in described control;
Wherein, described media entertainment volume is other mobile terminal loudness outside incoming call volume and alarm clock volume; Realize by the media entertainment volume that controls mobile terminal the purpose that noise reduction pollutes;
The specific implementation flow process of described step S2 is:
S21, when described mobile terminal receives described control and closes signal volume, whether be silent mode to mobile terminal if detecting its current media amusement volume;
When being, not changing the volume flag bit corresponding with described silent mode, and this volume flag bit is recorded as and is not changed;
Be that the user is set to silent mode from being about to the media entertainment volume of mobile terminal, mobile terminal is just without its volume is changed so, the volume flag bit need to be recorded as not to be changed to get final product;
When no, enter step S22;
S22, mobile terminal are preserved the volume flag bit corresponding with current mobile terminal media entertainment volume;
Be that the media entertainment volume of mobile terminal is while being non-silent mode, the volume flag bit corresponding with current mobile terminal media entertainment volume will be preserved, and described volume flag bit is kept to this locality, and this volume flag bit is invisible to the user, avoid the unnecessary faulty operation of user and damage file, and then cause the appearance that user profile can't recovery situation.
S23, described mobile terminal close its media entertainment volume of signal volume according to described control and are set to quietly, and the volume flag bit are recorded as and change.
, after making mobile terminal enter public place by said method, the media entertainment volume of mobile terminal is set to silent mode automatically;
When mobile terminal, after silent mode, as shown in Figure 1, whether the automatic detection of second distance induction module entered on step S3, described mobile terminal has the control that this public place is sent to recover signal volume;
The specific implementation flow process of described step S3 is:
S31, when described mobile terminal leaves public place, described the first induction module identification is equipped with the mobile terminal of described the second induction module, and sends to control to this mobile terminal and recover signal volume;
When S32, the second distance induction module on mobile terminal detect public place automatically to its transmission control recovery signal volume, receive described control and recover signal volume.
When receiving described control, mobile terminal recovers the signal volume success, enter step S4, when described mobile terminal receives described control that this public place sends and recovers signal volume, described mobile terminal reads the described volume flag bit of its preservation automatically, and according to described volume flag bit, the media entertainment volume of described mobile terminal is returned to the described current media amusement volume corresponding with described volume flag bit.
The specific implementation flow process of described step S4 is:
When the second distance induction module on S41, described mobile terminal receives described control recovery signal volume, judge whether the volume flag bit of mobile terminal change occurred;
When no, illustrate that the media entertainment volume of mobile terminal was silent mode before entering public place, so the user is when leaving public place, without this silent mode is changed, so directly finish;
When being, the media entertainment volume that mobile terminal is described was not silent mode before entering public place, the user wishes that custom can be heard sound in the process of carrying out amusement with mobile phone, obtain better experience, so when the user leaves public place, even if the media entertainment volume of mobile terminal can not produce interference to other people in silent mode yet, and in order to reduce user's operation, so the operation that need to be recovered the media entertainment volume of mobile terminal, enter step S42;
S42, described mobile terminal read the volume flag bit corresponding with described current mobile terminal media entertainment volume of its pre-save automatically;
S43, when reading successfully, described mobile terminal returns to the described current media amusement volume corresponding with described volume flag bit according to described volume flag bit by the media entertainment volume of described mobile terminal.
By this step, make the media entertainment volume of leaving public place mobile terminal afterwards can automatically restore to it and do not enter the public place state that sound is arranged before, reduce user's recovery operation, in noise reduction, facilitated the user.
Below lift another preferred embodiment explanation user interior flow process of using handset earphone in public places:
N01, when the second distance induction module on mobile terminal detects the control of sending public place and closes signal volume, described mobile terminal detects it and whether is inserted with handset earphone:
N02, when mobile terminal detects it and is inserted with handset earphone, do not change the volume flag bit corresponding with described media entertainment volume:
Before N03, the second distance induction module on mobile terminal do not receive the described control recovery signal volume of sending public place, whether mobile terminal automatically detects described handset earphone and is pulled out;
N04, when described handset earphone being detected, be pulled out, automatically preserve the volume flag bit corresponding with mobile terminal current media amusement volume, and mobile terminal be set to silent mode;
N05, when described second distance induction module detects the control of sending public place and recovers signal volume, the media entertainment volume of described mobile terminal is returned to the state corresponding with described volume flag bit;
By above-mentioned preferred embodiment, make the user when wearing earphone and enter public place, it opens media entertainment volume is can not interfere with other people, so mobile terminal is not processed, is just detected; When the user extracts earphone in public places, the media entertainment volume of mobile terminal will produce interference to a certain degree to people on every side like this, so trigger the setting procedure of media entertainment volume, the media entertainment volume of mobile terminal is set to silent mode, thereby has avoided the noise pollution to public place.
The present invention also provides another preferred embodiment, by this preferred embodiment, make the user when entering public place, if forget the vibration mode of starting hand-set, can control mobile terminal and automatically open this vibration mode, thereby make the user can not miss important phone, and, when the user leaves this public place, mobile terminal recovers the initial state that arranges automatically, thereby keep user's use habit; Its concrete implementation please refer to Fig. 2;
At first enter step 201, when mobile terminal receives the described control of sending public place and closes signal volume;
Judge whether mobile terminal enters public place; Its concrete judgement mileage refers to step S1;
Whether step 202, described mobile terminal automatic decision it open the mobile terminal vibrating mode;
When opening, be the user mobile terminal be set to the mode of vibration prompt incoming call, so without carrying out again the setting of vibration mode, thus step 203 directly entered, do not change the vibration marker bit of mobile terminal, and this vibration marker bit is recorded as and is not changed; The media entertainment volume that enters afterwards step 205 pair mobile terminal is arranged;
When not opening, be that the user does not open vibration mode when entering public place, the large place of noise can make the user miss incoming call or note so so in public places, bring unnecessary trouble to the user, so open the vibration mode of mobile terminal, enter step 204, described mobile terminal is opened described vibration mode, and the vibration marker bit of described mobile terminal is recorded as and changes;
Make mobile terminal open vibration mode, even if at noise, large public place user forgets oneself setting vibrating alert like this, mobile terminal also can be opened vibration mode automatically according to its testing result, thereby has facilitated the user, avoids omitting the possibility of important incoming call or note;
Step 205, the media entertainment volume of according to described control, closing the signal volume mobile terminal are set to quiet;
Be, after mobile terminal has carried out the setting of vibration mode, to carry out the setting of silent mode, its concrete setting means refers to above-mentioned steps S2;
Step 206, when described mobile terminal receives described control that this public place sends and recovers signal volume;
When mobile terminal leaves this public place;
Step 207, mobile terminal judge whether its pre-stored described vibration marker bit changes;
Judge that whether mobile terminal is entering between public place in vibration mode;
When no, do not change when the vibration marker bit, described mobile terminal before entering public place according to user's setting in vibration mode, without this setting of change; Directly enter step 209, recover the media entertainment volume of mobile terminal;
When being, illustrate what mobile terminal was not opened during its vibration mode before entering public place, so when leaving public place, mobile terminal need to return to vibration mode the set condition before the user, thereby the use habit that meets user self, the vibration mode that needs turning-off mobile terminal, enter step 208;
Step 208, described mobile terminal read its vibration marker bit changed automatically, and according to the vibration mode of the described vibration marker bit turning-off mobile terminal changed;
The state that while making the vibrational state of mobile terminal return to it not enter public place according to this step, the user arranges voluntarily;
When vibration mode has been recovered, enter the recovery process of mobile terminal media entertainment volume;
Step 209, described mobile terminal recover the media entertainment volume of mobile terminal automatically;
Its concrete reset mode refers to step S4;
In this preferred embodiment, at first judge the vibration mode of mobile terminal, then judge the media entertainment volume of mobile terminal, certainly also can first judge as required the media entertainment volume of mobile terminal, then judge the vibration mode of mobile terminal;
Below in conjunction with Fig. 3, the system of a kind of Lookup protocol mobile terminal loudness provided by the present invention is elaborated, wherein, Fig. 3 is the preferred embodiment structured flowchart of the system of a kind of Lookup protocol mobile terminal loudness provided by the present invention.
As shown in Figure 3, the system of described Lookup protocol mobile terminal loudness specifically comprises:
First apart from induction module 301, in advance import and export setting in public places;
Second distance induction module 302 arranges on described mobile terminal and it coordinates induction with described the first distance-sensor; It is for when mobile terminal enters described public place, and whether the control whether automatic detection of second distance induction module on mobile terminal has public place to send is closed signal volume and had the control that this public place is sent to recover signal volume for automatic detection;
Its concrete implementation is asked for an interview step S1 and step S3;
Volume arranges module 303, close signal volume for when mobile terminal, receiving the described control of sending public place, and when mobile terminal detects its current media amusement volume and is non-silent mode, described mobile terminal is preserved the volume flag bit corresponding with current mobile terminal media entertainment volume, and is set to silent mode according to the media entertainment volume that the signal volume mobile terminal is closed in described control;
Its concrete implementation is asked for an interview step S2
Volume is recovered module 304, while for receive the described control of sending this public place when described mobile terminal, recovering signal volume, described mobile terminal reads the described volume flag bit of its preservation automatically, and according to described volume flag bit, the media entertainment volume of described mobile terminal is returned to the described current media amusement volume corresponding with described volume flag bit.Its specific implementation is asked for an interview step S4;
Described system also comprises:
Whether vibration mode judge module 305, open vibrating mode for the automatic decision mobile terminal;
The first vibration marker bit arranges module 306, for when opening vibration mode, does not change the vibration marker bit of mobile terminal;
The second vibration marker bit arranges module 307, for when mobile terminal is not opened vibration mode, controls and opens described vibration mode, and the vibration marker bit of described mobile terminal is recorded as and changes;
Whether vibration flag bit judge module 308, change for judging the described vibration marker bit of mobile terminal;
Vibration mode closing module 309, the vibration marker bit changed for automatically reading it, and according to the vibration mode of the described vibration marker bit turning-off mobile terminal changed.
Further, described volume arranges module 303 and specifically comprises:
Silent mode judging unit 3031, whether while for when described mobile terminal, receiving described control, closing signal volume, detecting mobile terminal current media amusement volume is silent mode;
Volume flag bit setting unit 3032, while for the current media amusement volume when mobile terminal, being not silent mode, mobile terminal is preserved the volume flag bit corresponding with current mobile terminal media entertainment volume; When the current media amusement volume of mobile terminal is silent mode, do not change the volume flag bit corresponding with described silent mode;
Volume flag bit record cell 3033, be set to silent mode for when described mobile terminal, according to described control, closing its media entertainment volume of signal volume, and the volume flag bit be recorded as and change.
Further, described volume recovery module 304 specifically comprises:
Volume flag bit judging unit 3041, while for receive described control when described mobile terminal, recovering signal volume, judge whether the volume flag bit of mobile terminal change occurred;
Volume flag bit reading unit 3042, read the volume flag bit corresponding with described current mobile terminal media entertainment volume of its pre-save automatically for described mobile terminal;
Volume recovery unit 3043, read successfully for working as, and described mobile terminal returns to the described current media amusement volume corresponding with described volume flag bit according to described volume flag bit by the media entertainment volume of described mobile terminal.
In sum, the invention provides a kind of method and system of Lookup protocol mobile terminal loudness, after making the user carry mobile terminal to enter public place, the control signal that mobile terminal is sent according to public place is closed media entertainment sound automatically, make the user can not interfere with people on every side when using mobile terminal to carry out recreation and amusement, can not bring noise pollution to public place yet, and when the user leaves public place, the control signal of sending according to public place can return to mobile terminal the state that while not entering public place, user oneself sets automatically, make the user manually to be recovered, for the user has brought convenience.
Should be understood that, application of the present invention is not limited to above-mentioned giving an example, and for those of ordinary skills, can be improved according to the above description or convert, and all these improvement and conversion all should belong to the protection range of claims of the present invention.