CN106254683B - Incoming call reminding volume adjusting method and system based on surrounding environment - Google Patents

Incoming call reminding volume adjusting method and system based on surrounding environment Download PDF

Info

Publication number
CN106254683B
CN106254683B CN201610843542.4A CN201610843542A CN106254683B CN 106254683 B CN106254683 B CN 106254683B CN 201610843542 A CN201610843542 A CN 201610843542A CN 106254683 B CN106254683 B CN 106254683B
Authority
CN
China
Prior art keywords
incoming call
electronic equipment
call volume
volume
surrounding environment
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.)
Active
Application number
CN201610843542.4A
Other languages
Chinese (zh)
Other versions
CN106254683A (en
Inventor
孙继芃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201610843542.4A priority Critical patent/CN106254683B/en
Publication of CN106254683A publication Critical patent/CN106254683A/en
Application granted granted Critical
Publication of CN106254683B publication Critical patent/CN106254683B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method and a system for adjusting incoming call reminding volume based on ambient environment, wherein the method comprises the following steps: when the electronic equipment detects an incoming call, intercepting the incoming call at the bottom layer of the electronic equipment, acquiring the decibel number of the current surrounding environment of the electronic equipment and the wrapping state of the electronic equipment, and judging whether the decibel number of the current surrounding environment is higher than a preset reminding threshold value or not; when detecting that the current ambient environment decibel number is higher than the reminding threshold value, acquiring the corresponding adjusted incoming call volume according to the current ambient environment decibel number and the wrapping state of the electronic equipment; the electronic equipment modifies the original incoming call volume into a corresponding adjusted incoming call volume; the bottom layer of the electronic equipment cancels the interception of the incoming call, and the electronic equipment executes the modified adjustment of the incoming call volume. The invention can dynamically adjust the volume of the incoming call ringtone according to the surrounding environment and the shielding condition of the electronic equipment, so that a user can answer the incoming call more conveniently, and the loss caused by missed calls of the user is reduced.

Description

Incoming call reminding volume adjusting method and system based on surrounding environment
Technical Field
The invention relates to the technical field of electronic equipment, in particular to a method and a system for adjusting incoming call reminding volume based on ambient environment.
Background
With the development of technology, electronic devices have become indispensable daily necessities in our daily lives. The electronic equipment has the functions of answering and making a call. But the electronic device may be in a different environment, quiet, and noisy. Our electronic equipment can also be placed in different places, on a desktop, in a drawer, in a backpack.
In different situations, the incoming call reminder may not be perceived as the same ring tone, and the same ring tone volume, in a noisy environment, and in a backpack, the same ring tone may not be perceived. These incoming calls may be emergency meetings or emergencies, and the failure to receive a call may delay important events for the user, causing time and property loss for the user. The electronic equipment in the prior art cannot adjust the incoming call reminding volume by sensing the volume of the surrounding environment, so that a user misses an important incoming call, and unnecessary loss is brought to the user.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
In view of the defects of the prior art, the present invention aims to provide a method and a system for adjusting incoming call reminding volume based on ambient environment, and aims to solve the technical problem that the electronic device in the prior art cannot adjust the incoming call reminding volume by sensing the ambient environment volume, so that a user misses important incoming calls, and unnecessary loss is brought to the user.
The technical scheme of the invention is as follows:
an incoming call reminding volume adjusting method based on the surrounding environment is disclosed, wherein the method comprises the following steps:
A. when the electronic equipment detects an incoming call, intercepting the incoming call at the bottom layer of the electronic equipment, acquiring the decibel number of the current surrounding environment of the electronic equipment and the wrapping state of the electronic equipment, and judging whether the decibel number of the current surrounding environment is higher than a preset reminding threshold value or not;
B. when detecting that the current ambient environment decibel number is higher than the reminding threshold value, acquiring the corresponding adjusted incoming call volume according to the current ambient environment decibel number and the wrapping state of the electronic equipment;
C. the electronic equipment modifies the original incoming call volume into a corresponding adjusted incoming call volume;
D. the bottom layer of the electronic equipment cancels the interception of the incoming call, and the electronic equipment executes the modified adjustment of the incoming call volume.
The incoming call reminding volume adjusting method based on the surrounding environment comprises the following steps of:
s, the electronic equipment respectively sets and stores the incoming call volume adjustment corresponding to the current ambient environment decibel number and the incoming call volume adjustment corresponding to the current wrapping state of the electronic equipment in a local database in advance.
The incoming call reminding volume adjusting method based on the surrounding environment comprises the following specific steps:
a1, when the electronic equipment detects an incoming call, the bottom layer of the electronic equipment intercepts the incoming call information;
a2, the electronic equipment acquires the volume of the current surrounding environment of the electronic equipment and the wrapping state of the electronic equipment through a sensor, and acquires the initial incoming call volume set by a user;
a3, the electronic device judges whether the decibel number of the current surrounding environment is higher than a preset reminding threshold value.
The incoming call reminding volume adjusting method based on the surrounding environment, wherein the B specifically comprises the following steps:
b1, when detecting that the decibel number of the current surrounding environment is higher than the reminding threshold value, acquiring a mode of the user requesting to acquire the incoming call volume adjustment, and judging whether the incoming call volume adjustment requested by the user is in fuzzy matching or accurate matching;
b2, if fuzzy matching, increasing the original incoming call volume by a preset decibel value to be used as the incoming call volume adjustment, and storing the original incoming call volume and an incoming call volume adjustment mark;
and B3, if the matching is accurate, acquiring the decibel number of the current surrounding environment and the wrapping state of the electronic equipment from the database to acquire the corresponding adjusted incoming call volume, and storing the original incoming call volume and the incoming call volume adjustment mark.
The incoming call reminding volume adjusting method based on the surrounding environment is characterized in that the reminding threshold value in the step A comprises a first reminding threshold value and a second reminding threshold value, the first reminding threshold value is a reminding threshold value of the electronic device in a non-wrapping state, and the second reminding threshold value is a reminding threshold value of the electronic device in a wrapping state.
The incoming call reminding volume adjusting method based on the surrounding environment comprises the following steps:
E. when the end or interruption of the incoming call is detected, the electronic equipment restores the current incoming call volume to the original incoming call volume according to the stored original incoming call volume and the incoming call volume adjusting mark.
An incoming call reminder volume adjustment system based on ambient environment, wherein the system comprises:
the detection and judgment module is used for intercepting the incoming call at the bottom layer of the electronic equipment when the electronic equipment detects the incoming call, acquiring the decibel number of the current surrounding environment of the electronic equipment and the wrapping state of the electronic equipment, and judging whether the decibel number of the current surrounding environment is higher than a preset reminding threshold value or not;
the adjusting volume obtaining module is used for obtaining the corresponding adjusting incoming call volume according to the current ambient environment decibel number and the wrapping state of the electronic equipment when the current ambient environment decibel number is detected to be higher than the reminding threshold;
the incoming call volume adjusting module is used for modifying the original incoming call volume into the corresponding adjusted incoming call volume by the electronic equipment;
and the control module is used for canceling the interception of the incoming call at the bottom layer of the electronic equipment and adjusting the volume of the incoming call after the electronic equipment executes modification.
The incoming call reminding volume adjusting system based on the surrounding environment, wherein the system further comprises:
the preset and storage module is used for presetting and storing the call volume adjustment corresponding to the current ambient environment decibel number and the call volume adjustment corresponding to the current wrapping state of the electronic equipment in a local database by the electronic equipment;
and the incoming call volume recovery module is used for recovering the current incoming call volume to the original incoming call volume by the electronic equipment according to the stored original incoming call volume and the incoming call volume adjusting mark when the end or interruption of the incoming call is detected.
The incoming call reminding volume adjusting system based on the surrounding environment is characterized in that the detection and judgment module specifically comprises:
the call intercepting unit is used for intercepting call information at the bottom layer of the electronic equipment when the electronic equipment detects a call;
the data acquisition unit is used for acquiring the volume of the current surrounding environment of the electronic equipment and the wrapping state of the electronic equipment by the electronic equipment through the sensor and acquiring the initial incoming call volume set by a user;
and the judging unit is used for judging whether the decibel number of the current surrounding environment is higher than a preset reminding threshold value by the electronic equipment.
The incoming call reminding volume adjusting system based on the surrounding environment, wherein the volume adjusting module specifically comprises:
the detection and judgment unit is used for acquiring the mode of the incoming call volume adjustment requested by the user when the current ambient environment decibel number is higher than the reminding threshold value, and judging whether the incoming call volume adjustment requested by the user is in fuzzy matching or accurate matching;
the incoming call volume increasing and storing unit is used for increasing the original incoming call volume by a preset decibel value to serve as incoming call volume adjustment if fuzzy matching is performed, and storing the original incoming call volume and an incoming call volume adjustment mark;
and the incoming call volume acquisition and storage unit is used for acquiring the decibel number of the current surrounding environment and the package state of the electronic equipment from the database to acquire the corresponding adjusted incoming call volume if the incoming call volume is accurately matched with the package state of the electronic equipment, and storing the original incoming call volume and the incoming call volume adjustment mark.
The invention provides a method and a system for adjusting the volume of incoming call reminding based on the surrounding environment, which can dynamically adjust the volume of incoming call ringtone according to the surrounding environment and the shielding condition of electronic equipment, such as a noisy environment and the condition that the electronic equipment is wrapped (such as being placed in a pocket of clothes or a backpack), so that a user can answer the incoming call more conveniently, and the loss caused by missed calls of the user is reduced.
Drawings
Fig. 1 is a flowchart of a method for adjusting the volume of an incoming call reminder based on the surrounding environment according to a preferred embodiment of the present invention.
Fig. 2 is a flowchart of an embodiment of an incoming call alert volume adjustment method based on the surrounding environment according to the present invention.
Fig. 3 is a flowchart of a method for adjusting volume of an incoming call reminder based on an ambient environment according to a specific application embodiment of the present invention.
Fig. 4 is a flowchart of a specific application of the incoming call alert volume adjustment method based on the ambient environment according to the present ambient and package status retrieval database.
Fig. 5 is a functional block diagram of a preferred embodiment of the incoming call alert volume adjustment system based on ambient environment according to the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is described in further detail below. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a flow chart of a preferred embodiment of a method for adjusting incoming call reminding volume based on ambient environment, as shown in fig. 1, wherein the method comprises the following steps:
step S100, when the electronic equipment detects an incoming call, the electronic equipment intercepts the incoming call at the bottom layer of the electronic equipment, obtains the decibel number of the current surrounding environment of the electronic equipment and the wrapping state of the electronic equipment, and judges whether the decibel number of the current surrounding environment is higher than a preset reminding threshold value or not.
In specific implementation, when the electronic device detects an incoming call, the electronic device can sense and intercept the incoming call information in a bottom layer processing class of the electronic device, and determine the environment of the electronic device through the electronic device, specifically, obtain the decibel number of the current surrounding environment of the electronic device, and determine whether the electronic device is in a wrapped state.
The reminding threshold value comprises a first reminding threshold value and a second reminding threshold value, the first reminding threshold value is a reminding threshold value of the electronic equipment in a non-package state, and the second reminding threshold value is a reminding threshold value of the electronic equipment in a package state. When the electronic device is in the wrapped state, the electronic device is considered to be placed in the container, and when the electronic device is not in the wrapped state, the electronic device is considered not to be placed in the container. And when the electronic equipment is not placed in the container, the surrounding environment is higher than the first reminding threshold value, increasing the incoming call ringtone, and when the electronic equipment is placed in the container, the surrounding environment is higher than the second reminding threshold value, increasing the incoming call ringtone. Wherein the first reminder threshold is greater than the second reminder threshold.
Because the adjustment process cannot be performed when the ambient decibel ratio of the electronic device is lower, the process of enhancing the volume only enters the process when the ambient decibel ratio reaches the preset reminding threshold, that is, the current environment is considered to belong to a noisy range, and the user may not perceive the incoming call. The reminding threshold value has a default value and can be set by a user.
The reminding threshold value has a default value and can be set by a user, 2 modes exist according to the situation set by the user, and the user can select which mode to adopt by himself and select on the interface.
The first mode is the fuzzy matching (decibels of the occlusion are evaluated from the unblocked decibels, reducing the number of decibels collected by the user) mode:
if the threshold value is 60, it means that the ring tone is increased when the electronic device is not placed in the container and the surrounding environment is above 60 db, and when the electronic device is placed in the container and the surrounding environment is detected to be above 55 db, the ring tone is increased.
Here we make 5 db adjustments, which can be dynamically adjusted in the actual design.
The second mode is an exact matching mode, and the difference from fuzzy matching is that the method calculates the current decibel and judges the shielding condition, and uses the calculation as the judgment basis, the unblocked decibel can not be calculated according to the wrapping condition, and all the decibels are derived from the collection and calculation of the actual environment
For these 2 modes, the user can select one of them.
Specifically, step S100 further includes:
step S10, the electronic device sets and stores the incoming call volume corresponding to the decibel number of the current surrounding environment and the incoming call volume corresponding to the package status of the current electronic device in the local database in advance.
In specific implementation, when a user is in a certain environment, the user can collect the decibel number of the current environment through an interface provided by the electronic device, then set the decibel number as a critical point for increasing the ringtone, then, the user can set the ringtone volume, and after the user determines the volume, one (decibel number-ringtone volume) match is set.
The critical points can be set to be multiple, and the sound volume corresponding to different critical points can be different. For the sake of describing our design, we assume we set only one critical point. It is hereby stated that our critical points are not limited to a particular number.
Specifically, a local database is used as a storage medium. In the data table of the database, at least the following fields are provided:
decibel-critical value in decibels
volume-represents the volume corresponding to the threshold
isWrapped-indicates whether the electronic device is wrapped, 1 indicates wrapped, 0 indicates unwrapped
Pattern-represents a pattern, 1 represents a precise pattern, and 0 represents a fuzzy pattern.
In a further embodiment, step S100 specifically includes:
s101, when the electronic equipment detects an incoming call, the bottom layer of the electronic equipment intercepts incoming call information;
step S102, the electronic equipment acquires the volume of the current surrounding environment of the electronic equipment and the wrapping state of the electronic equipment through a sensor, and acquires the initial incoming call volume set by a user;
step S103, the electronic device determines whether the decibel value of the current surrounding environment is higher than a preset reminding threshold.
In specific implementation, the call information is sensed and intercepted in a bottom processing class (such as PstnIncomingCallNotifier) of the call, and in the intercepted period (such as 500ms), the environment where the electronic equipment is located is rapidly determined by the sound recording module AudioRecord and the Light Sensor, and the proximity Sensor P-Sensor, and the setting or default value of the user is obtained.
Specifically, the light sensor senses whether the electronic device is blocked or not or is wrapped, the proximity sensor obtains the distance between the electronic device and an object, and the 2 people are combined to judge whether the mobile phone is in a certain container (such as a pocket or a backpack) or not.
The corresponding judgment is carried out by collecting the decibels of the surrounding environment, and the decibel number of the surrounding environment is the main basis for adjusting the incoming call volume.
Formula for collecting decibels we use the formula for the sum-of-squares average, as follows:
Figure BDA0001118895270000081
A1is the sound pressure of the measurement, A0Is the sound pressure of the reference value and,considering that the noise magnitude is very different in practical cases, we take the denominator to be 1 here.
The actual decibel acquisition fluctuates greatly, and the method for acquiring the decibel is as follows: a segment of sound is acquired and averaged. Therefore, the interference of special conditions can be reduced, and the acquired decibel number is accurate as much as possible.
We used AudioRecord to collect and process this data. The method comprises the following specific steps: sound is collected through audiorecord.startrecording (), and sound is read through audiorecord.read (BUFFER,0, BUFFER _ SIZE), and averaged, and the averaged value is finally substituted into a decibel formula to obtain a decibel value.
The electronic equipment also acquires the initial incoming call volume set by the user. Meanwhile, whether the user of the electronic equipment is in the container or not is judged, and if the user is not in the container, whether the obtained decibel number of the ambient environment is higher than a first reminding threshold value or not is judged; and if the alarm is in the container, judging whether the obtained decibel number of the ambient environment is higher than a second reminding threshold value, and executing the following operation after judgment.
And S200, when the current ambient environment decibel number is higher than the reminding threshold value, acquiring the corresponding adjusted incoming call volume according to the current ambient environment decibel number and the wrapping state of the electronic equipment.
In specific implementation, if the electronic equipment is not in the container and the obtained decibel number of the ambient environment is higher than a first reminding threshold value, judging whether the obtained decibel number of the ambient environment is higher than the first reminding threshold value; or if the electronic equipment is in the container, judging whether the obtained decibel number of the surrounding environment is higher than a second reminding threshold value, and indicating that the incoming call volume needs to be increased in the current environment. And acquiring the corresponding adjusted incoming call volume from the database according to the current ambient environment decibels and the wrapping state of the electronic equipment.
In a further embodiment, step S200 specifically includes:
step S201, when detecting that the decibel number of the current surrounding environment is higher than a reminding threshold value, acquiring a mode of a user requesting to acquire the incoming call volume adjustment, and judging whether the incoming call volume adjustment requested by the user is in fuzzy matching or accurate matching;
step S202, if fuzzy matching is carried out, the original incoming call volume is increased by a preset decibel value to serve as the incoming call volume adjustment, and the original incoming call volume and an incoming call volume adjustment mark are stored;
step S203, if the matching is accurate, obtaining the decibel number of the current surrounding environment and the wrapping state of the electronic equipment from the database to obtain the corresponding adjusted incoming call volume, and storing the original incoming call volume and the incoming call volume adjusting mark.
In specific implementation, if the electronic equipment is not in the container and the obtained decibel number of the ambient environment is higher than a first reminding threshold value, judging whether the obtained decibel number of the ambient environment is higher than the first reminding threshold value; or if the electronic equipment is in the container, judging whether the obtained decibel number of the surrounding environment is higher than a second reminding threshold value, wherein the situation shows that the volume of the incoming call needs to be increased in the current environment, and then changing the volume of the incoming call of the system.
Because the inside of the database is a stored critical value, the corresponding volume is taken when the actually acquired decibel is close to the critical value, and in addition, the processing time is slightly different according to different values of patterns. As shown in the following example of the present invention,
first we judge the value of pattern, if it is 1 (exact pattern), we take all the values from the database, if it is 0 (fuzzy pattern), we only take the value of iswrrapped ═ 0.
1) pattern 1 indicates a precise pattern
The data is grouped according to the value of isWrapped, as shown in Table 1
TABLE 1
isWrapped=1 isWrapped=0 Volume
65 70 10
55 60 8
45 50 6
And then, determining which range the decibel value is in according to the obtained decibel number and the package condition of the electronic device, for example, for the situation that isWrapped is 1, our critical values are 65,55 and 45, if we obtain that the decibel number of the current environment is 62, we take Volume as 10, and if it is 58, we take Volume as 8.
2) pattern is 0, and represents a blur pattern
Firstly, acquiring all data with isWrapped being 0, then judging the decibel number of the current environment and the wrapping condition, if the decibel of the current environment is 62 and the electronic equipment is in the wrapping state, resetting the current decibel to be 67(62+5), and then taking volume being 10; if there is no package, then the volume is taken 8.
Step S300, the electronic equipment modifies the original incoming call volume into the corresponding adjusted incoming call volume.
In specific implementation, the electronic device sets the current incoming call volume according to the adjusted incoming call volume obtained in the fuzzy mode or the accurate mode, so that a user can conveniently hear incoming call reminding, and the user is prevented from missing calls.
And S400, the bottom layer of the electronic equipment cancels the interception of the incoming call, and the electronic equipment performs the modified adjustment of the incoming call volume.
When the method is implemented specifically, after the volume of the electronic equipment is detected to be adjusted, interception of incoming calls is cancelled at the bottom layer of the electronic equipment, and the electronic equipment rings by adjusting the volume of the incoming calls.
In a further embodiment, after step S400, the method further includes:
step S500, when the end or interruption of the incoming call is detected, the electronic equipment restores the current incoming call volume to the original incoming call volume according to the stored original incoming call volume and the incoming call volume adjusting mark.
In specific implementation, when the call is ended or interrupted, and the Connection is an incoming call, the underlying process of the electronic device is performed. In a similar hungpip method, we determine whether to change the incoming call volume according to the value of TAG, and if so, we recover the incoming call volume and vibration through backup information of the current volume.
The invention also provides a flow chart of a specific application embodiment of the incoming call reminding volume adjusting method based on the surrounding environment, and as shown in fig. 2, the method comprises the following steps:
step S10, incoming call;
step S20, intercepting the incoming call by a bottom layer processing class (PstnIncoming CallNotifier);
step S30, obtaining the decibel of the environment and the wrapping state of the electronic equipment through AudioRecord, Light Sensor and P-Sensor;
step S40, determining whether the current environmental decibel is higher than a reminder value (for example, 40 decibels), if so, executing step S50, and if not, executing step S92;
step S50, according to decibel and package state, getting corresponding incoming call volume from database;
step S60, judging whether corresponding data are acquired, if yes, executing step S60, and if not, executing step S92;
step S70, saving the current volume and setting TAG 1 (indicating that the current incoming call volume has been modified) into the Connection object of the current phone;
step S80, setting the incoming call volume to a value corresponding to the database;
step S90, canceling interception of the incoming call;
step S91, when the telephone is over or interrupted, the Connection object is disconnected, and the volume of the incoming call is recovered according to the TAG value and the stored volume;
step S92, no processing is carried out, and interception of the incoming call is cancelled;
step S93 ends the flow.
The invention also provides a flow chart of the incoming call reminding volume adjusting method based on the surrounding environment, wherein the flow chart is used for setting the volume of the current surrounding environment by a user in the specific application embodiment, and as shown in fig. 3, the method comprises the following steps:
step S11, clicking 'collect decibel and set incoming call volume' on the interface by the user;
step S12, obtaining the decibel of the environment and the wrapping state of the electronic equipment through AudioRecord, Light Sensor and P-Sensor;
step S13, judging whether the decibel number of the current environment is more than or equal to the reminding decibel number 40, if so, executing step S14, and if not, executing step S15;
step S14, storing the acquired data in a database;
step S15, reminding the user that the current environment does not need to set the turning-up volume;
step S16, enabling the user to set the incoming call volume aiming at the current environment;
step S17, saving the set volume in item corresponding to the database;
step S18, the user is informed that the collection of decibels and the setting of volume are completed, and the system will adjust the incoming call volume according to the setting when the call comes.
The invention also provides a flow chart of a database retrieval method according to the current surrounding and parcel states in a specific application embodiment of the incoming call reminding volume adjustment method based on the surrounding environment, as shown in fig. 4, the method comprises the following steps:
step S21, acquiring environmental decibels and the wrapping condition of the electronic equipment;
step S22, obtaining the value of Pattern, if it is fuzzy mode, executing step S24, if it is accurate mode, executing step S23;
step S23, acquiring the package condition of the electronic equipment, if the electronic equipment is in the package state, executing step S25, and if the electronic equipment is not in the package state, executing step S26;
step S24, acquiring the package condition of the electronic equipment, if the electronic equipment is in the package state, executing step S28, and if the electronic equipment is not in the package state, executing step S29;
step S25, acquiring data with iswrrapped 1 from the database, and then executing step S27;
step S26, acquiring data with iswrrapped being 0 from the database;
step S27, comparing the decibel number of the current environment with the decibel number of the name group data acquired in the database, and then executing step S31;
step S28, taking the environmental decibel number +5 as a new current environmental decibel number;
step S29, acquiring data with iswrrapped being 0 from the database;
and step S31, taking a group of data with relatively close decibels and acquiring the Voulume value of the volume.
In an exemplary embodiment, the apparatus may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as a memory comprising instructions, executable by a processor of an apparatus to perform the above method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present invention also provides a functional block diagram of a preferred embodiment of a system for adjusting volume of incoming call reminder based on ambient environment, as shown in fig. 5, the system comprises:
the detection and judgment module 100 is configured to intercept an incoming call at a bottom layer of the electronic device when the electronic device detects the incoming call, acquire a decibel number of a current surrounding environment of the electronic device and a package state of the electronic device, and judge whether the decibel number of the current surrounding environment is higher than a preset reminding threshold; as shown in the method embodiment.
The adjusted volume obtaining module 200 is configured to, when detecting that the current ambient environment decibel number is higher than the reminding threshold, obtain a corresponding adjusted incoming call volume according to the current ambient environment decibel number and a package state of the electronic device; as shown in the method embodiment.
The incoming call volume adjusting module 300 is used for modifying the original incoming call volume into the corresponding adjusted incoming call volume by the electronic equipment; as shown in the method embodiment.
The control module 400 is used for cancelling the interception of the incoming call at the bottom layer of the electronic equipment and adjusting the volume of the incoming call after the electronic equipment executes modification; as shown in the method embodiment.
The incoming call reminding volume adjusting system based on the surrounding environment, wherein the system further comprises:
the preset and storage module is used for presetting and storing the call volume adjustment corresponding to the current ambient environment decibel number and the call volume adjustment corresponding to the current wrapping state of the electronic equipment in a local database by the electronic equipment; as shown in the method embodiment.
The incoming call volume recovery module is used for recovering the current incoming call volume to the original incoming call volume by the electronic equipment according to the stored original incoming call volume and the incoming call volume adjusting mark when the end or interruption of the incoming call is detected; as shown in the method embodiment.
The incoming call reminding volume adjusting system based on the surrounding environment is characterized in that the detection and judgment module specifically comprises:
the call intercepting unit is used for intercepting call information at the bottom layer of the electronic equipment when the electronic equipment detects a call; as shown in the method embodiment.
The data acquisition unit is used for acquiring the volume of the current surrounding environment of the electronic equipment and the wrapping state of the electronic equipment by the electronic equipment through the sensor and acquiring the initial incoming call volume set by a user; as shown in the method embodiment.
The judging unit is used for judging whether the decibel number of the current surrounding environment is higher than a preset reminding threshold value or not by the electronic equipment; as shown in the method embodiment.
The incoming call reminding volume adjusting system based on the surrounding environment, wherein the volume adjusting module specifically comprises:
the detection and judgment unit is used for acquiring the mode of the incoming call volume adjustment requested by the user when the current ambient environment decibel number is higher than the reminding threshold value, and judging whether the incoming call volume adjustment requested by the user is in fuzzy matching or accurate matching; as shown in the method embodiment.
The incoming call volume increasing and storing unit is used for increasing the original incoming call volume by a preset decibel value to serve as incoming call volume adjustment if fuzzy matching is performed, and storing the original incoming call volume and an incoming call volume adjustment mark; as shown in the method embodiment.
The incoming call volume acquisition and storage unit is used for acquiring the decibel number of the current surrounding environment and the package state of the electronic equipment from the database to acquire the corresponding adjusted incoming call volume if the incoming call volume is accurately matched with the incoming call volume acquisition and storage unit, and storing the original incoming call volume and the incoming call volume adjustment mark; as shown in the method embodiment.
In summary, the present invention provides a method and a system for adjusting incoming call reminding volume based on ambient environment, the method comprising: when the electronic equipment detects an incoming call, intercepting the incoming call at the bottom layer of the electronic equipment, acquiring the decibel number of the current surrounding environment of the electronic equipment and the wrapping state of the electronic equipment, and judging whether the decibel number of the current surrounding environment is higher than a preset reminding threshold value or not; when detecting that the current ambient environment decibel number is higher than the reminding threshold value, acquiring the corresponding adjusted incoming call volume according to the current ambient environment decibel number and the wrapping state of the electronic equipment; the electronic equipment modifies the original incoming call volume into a corresponding adjusted incoming call volume; the bottom layer of the electronic equipment cancels the interception of the incoming call, and the electronic equipment executes the modified adjustment of the incoming call volume. The invention can dynamically adjust the volume of the incoming call ringtone according to the shielding condition of the surrounding environment and the electronic equipment, such as a noisy environment and the condition that the electronic equipment is wrapped (such as being placed in a pocket of clothes or a backpack), so that a user can answer the incoming call more conveniently, and the loss caused by missing the incoming call of the user is reduced.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (3)

1. An incoming call reminding volume adjusting method based on surrounding environment is characterized by comprising the following steps:
A. when the electronic equipment detects an incoming call, intercepting the incoming call at the bottom layer of the electronic equipment, acquiring the decibel number of the current surrounding environment of the electronic equipment and the wrapping state of the electronic equipment, and judging whether the decibel number of the current surrounding environment is higher than a preset reminding threshold value or not;
B. when detecting that the current ambient environment decibel number is higher than the reminding threshold value, acquiring the corresponding adjusted incoming call volume according to the current ambient environment decibel number and the wrapping state of the electronic equipment;
C. the electronic equipment modifies the original incoming call volume into a corresponding adjusted incoming call volume;
D. the bottom layer of the electronic equipment cancels the interception of the incoming call, and the electronic equipment performs the modified regulation of the incoming call volume;
the step A is also preceded by:
s, the electronic equipment respectively sets and stores the incoming call volume corresponding to the ambient environment decibel number when the wrapping state of the electronic equipment is not wrapped and the incoming call volume corresponding to the ambient environment decibel number when the wrapping state of the electronic equipment is wrapped in a local database in advance;
the step A specifically comprises the following steps:
a1, when the electronic equipment detects an incoming call, the bottom layer of the electronic equipment intercepts the incoming call information;
a2, the electronic equipment acquires the volume of the current surrounding environment of the electronic equipment and the wrapping state of the electronic equipment through a sensor, and acquires the initial incoming call volume set by a user;
a3, the electronic equipment judges whether the decibel number of the current surrounding environment is higher than a preset reminding threshold value;
the step B specifically comprises the following steps:
b1, when detecting that the decibel number of the current surrounding environment is higher than the reminding threshold value, acquiring a mode of the user requesting to acquire the incoming call volume adjustment, and judging whether the incoming call volume adjustment requested by the user is in fuzzy matching or accurate matching;
b2, if fuzzy matching, increasing the original incoming call volume by a preset decibel value to be used as the incoming call volume adjustment, and storing the original incoming call volume and an incoming call volume adjustment mark;
b3, if the matching is accurate, obtaining the decibel number of the current surrounding environment and the wrapping state of the electronic equipment from the database to obtain the corresponding call volume adjustment, and storing the original call volume and the call volume adjustment mark;
the reminding threshold value in the step A comprises a first reminding threshold value and a second reminding threshold value, the first reminding threshold value is a reminding threshold value of the electronic equipment in a non-package state, the second reminding threshold value is a reminding threshold value of the electronic equipment in a package state, and the first reminding threshold value is larger than the second reminding threshold value;
the formula for collecting the ambient decibels is:
Figure FDA0002688882530000011
wherein A is1As measured sound pressure, A0Taking the denominator as 1 for the sound pressure of the reference value;
obtaining decibels is obtaining a segment of sound, and averaging the segment of sound.
2. The method of claim 1, further comprising the following step after step D:
E. when the end or interruption of the incoming call is detected, the electronic equipment restores the current incoming call volume to the original incoming call volume according to the stored original incoming call volume and the incoming call volume adjusting mark.
3. An incoming call reminding volume adjustment system based on the surrounding environment, the system comprising: the detection and judgment module is used for intercepting the incoming call at the bottom layer of the electronic equipment when the electronic equipment detects the incoming call, acquiring the decibel number of the current surrounding environment of the electronic equipment and the wrapping state of the electronic equipment, and judging whether the decibel number of the current surrounding environment is higher than a preset reminding threshold value or not;
the adjusting volume obtaining module is used for obtaining the corresponding adjusting incoming call volume according to the current ambient environment decibel number and the wrapping state of the electronic equipment when the current ambient environment decibel number is detected to be higher than the reminding threshold;
the incoming call volume adjusting module is used for modifying the original incoming call volume into the corresponding adjusted incoming call volume by the electronic equipment;
the control module is used for cancelling the interception of the incoming call at the bottom layer of the electronic equipment and adjusting the volume of the incoming call after the electronic equipment executes modification;
the system comprises a presetting and storing module, a receiving and sending module and a sending and receiving module, wherein the presetting and storing module is used for presetting and storing the incoming call volume corresponding to the ambient environment decibel number when the wrapping state of the electronic equipment is not wrapped and the incoming call volume corresponding to the ambient environment decibel number when the wrapping state of the electronic equipment is wrapped in a local database by the electronic equipment respectively;
the system further comprises:
the incoming call volume recovery module is used for recovering the current incoming call volume to the original incoming call volume by the electronic equipment according to the stored original incoming call volume and the incoming call volume adjusting mark when the end or interruption of the incoming call is detected;
the detection and judgment module specifically comprises:
the call intercepting unit is used for intercepting call information at the bottom layer of the electronic equipment when the electronic equipment detects a call;
the data acquisition unit is used for acquiring the volume of the current surrounding environment of the electronic equipment and the wrapping state of the electronic equipment by the electronic equipment through the sensor and acquiring the initial incoming call volume set by a user;
the judging unit is used for judging whether the decibel number of the current surrounding environment is higher than a preset reminding threshold value or not by the electronic equipment;
the volume adjusting acquisition module specifically comprises:
the detection and judgment unit is used for acquiring the mode of the incoming call volume adjustment requested by the user when the current ambient environment decibel number is higher than the reminding threshold value, and judging whether the incoming call volume adjustment requested by the user is in fuzzy matching or accurate matching;
the incoming call volume increasing and storing unit is used for increasing the original incoming call volume by a preset decibel value to serve as incoming call volume adjustment if fuzzy matching is performed, and storing the original incoming call volume and an incoming call volume adjustment mark;
the incoming call volume acquisition and storage unit is used for acquiring the decibel number of the current surrounding environment and the package state of the electronic equipment from the database to acquire the corresponding adjusted incoming call volume if the incoming call volume is accurately matched with the incoming call volume acquisition and storage unit, and storing the original incoming call volume and the incoming call volume adjustment mark;
the reminding threshold comprises a first reminding threshold and a second reminding threshold, the first reminding threshold is a reminding threshold of the electronic equipment in a non-package state, the second reminding threshold is a reminding threshold of the electronic equipment in a package state, and the first reminding threshold is larger than the second reminding threshold;
the formula for collecting the ambient decibels is:
Figure FDA0002688882530000031
wherein A is1As measured sound pressure, A0Taking the denominator as 1 for the sound pressure of the reference value;
obtaining decibels is obtaining a segment of sound, and averaging the segment of sound.
CN201610843542.4A 2016-09-22 2016-09-22 Incoming call reminding volume adjusting method and system based on surrounding environment Active CN106254683B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610843542.4A CN106254683B (en) 2016-09-22 2016-09-22 Incoming call reminding volume adjusting method and system based on surrounding environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610843542.4A CN106254683B (en) 2016-09-22 2016-09-22 Incoming call reminding volume adjusting method and system based on surrounding environment

Publications (2)

Publication Number Publication Date
CN106254683A CN106254683A (en) 2016-12-21
CN106254683B true CN106254683B (en) 2020-12-15

Family

ID=57610788

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610843542.4A Active CN106254683B (en) 2016-09-22 2016-09-22 Incoming call reminding volume adjusting method and system based on surrounding environment

Country Status (1)

Country Link
CN (1) CN106254683B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110233935B (en) * 2019-06-03 2022-03-25 联想(北京)有限公司 Control method and control system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010062880A (en) * 2008-09-04 2010-03-18 Toshitaka Takei Vibrator control system
CN102572088A (en) * 2010-12-31 2012-07-11 广州三星通信技术研究有限公司 Device and method for adjusting ringing strength of portable terminal
CN102957790A (en) * 2011-08-25 2013-03-06 北京爱国者信息技术有限公司 Automatic regulation module of mobile terminal and implementation method thereof
CN105635463A (en) * 2015-12-29 2016-06-01 广东欧珀移动通信有限公司 Adjusting method and apparatus for incoming call prompting of terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010062880A (en) * 2008-09-04 2010-03-18 Toshitaka Takei Vibrator control system
CN102572088A (en) * 2010-12-31 2012-07-11 广州三星通信技术研究有限公司 Device and method for adjusting ringing strength of portable terminal
CN102957790A (en) * 2011-08-25 2013-03-06 北京爱国者信息技术有限公司 Automatic regulation module of mobile terminal and implementation method thereof
CN105635463A (en) * 2015-12-29 2016-06-01 广东欧珀移动通信有限公司 Adjusting method and apparatus for incoming call prompting of terminal

Also Published As

Publication number Publication date
CN106254683A (en) 2016-12-21

Similar Documents

Publication Publication Date Title
US9294864B2 (en) Methods and systems for detecting and preventing unintended dialing by a phone device
US10367950B2 (en) Device notification adjustment dependent on user proximity
US9014720B2 (en) Methods and devices for prioritizing message threads
TW201625039A (en) Selective specific absorption rate adjustment
US9202361B2 (en) Fall detection
US8666453B2 (en) Method of adjusting event prompt degree, and mobile electronic device and computer program product using the same
CN105303768A (en) Heart rate-based fall detection method and system
EP2562999B1 (en) Information processing method and user equipment
CN107135316B (en) method and device for adjusting call volume, storage medium and terminal
CN108924375B (en) Ringtone volume processing method and device, storage medium and terminal
CN105739868A (en) Method and device for identifying mistaken touch of terminal
CN105939513A (en) Call transfer method and device
KR20180116843A (en) Method for detecting motion and electronic device implementing the same
CN106254683B (en) Incoming call reminding volume adjusting method and system based on surrounding environment
CN107135305B (en) Message reminding method, device and terminal
CN114630242A (en) Earphone wearing detection method, earphone and storage medium
CN107277223B (en) Method for adjusting event prompting degree and mobile electronic device thereof
CN109062024B (en) Switching method, device and equipment of reminding mode of smart watch and storage medium
CN108089905B (en) Do not disturb processing method, terminal and computer readable medium
CN107272947B (en) Method and device for determining thickness of touch screen film and terminal
CN103973866A (en) Intelligent alarm detecting system and method
CN108683805B (en) Incoming call processing method, mobile terminal and computer readable storage medium
CN110851014A (en) Touch identification method and device, storage medium and terminal equipment
CN113488002B (en) Abnormal screen brightness adjusting method and device, electronic equipment and medium
KR101280584B1 (en) Method and apparatus for receiving call depending on situation of receiver in mobile phone, and mobile phone having it

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant