CN116033061B - Method for controlling incoming call silence and electronic equipment - Google Patents
Method for controlling incoming call silence and electronic equipment Download PDFInfo
- Publication number
- CN116033061B CN116033061B CN202210910764.9A CN202210910764A CN116033061B CN 116033061 B CN116033061 B CN 116033061B CN 202210910764 A CN202210910764 A CN 202210910764A CN 116033061 B CN116033061 B CN 116033061B
- Authority
- CN
- China
- Prior art keywords
- electronic device
- data
- incoming call
- action
- electronic equipment
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 154
- 230000001133 acceleration Effects 0.000 claims abstract description 277
- 230000009471 action Effects 0.000 claims abstract description 232
- 210000000707 wrist Anatomy 0.000 claims description 183
- 238000004422 calculation algorithm Methods 0.000 claims description 84
- 230000033001 locomotion Effects 0.000 claims description 75
- 238000012545 processing Methods 0.000 claims description 63
- 230000015654 memory Effects 0.000 claims description 41
- 238000001914 filtration Methods 0.000 claims description 28
- 238000003062 neural network model Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 16
- 230000006870 function Effects 0.000 description 94
- 238000010586 diagram Methods 0.000 description 20
- 238000004891 communication Methods 0.000 description 19
- 230000008569 process Effects 0.000 description 16
- 230000005540 biological transmission Effects 0.000 description 7
- 230000002452 interceptive effect Effects 0.000 description 7
- 230000002829 reductive effect Effects 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 6
- 230000000737 periodic effect Effects 0.000 description 6
- 238000009499 grossing Methods 0.000 description 5
- 238000003384 imaging method Methods 0.000 description 4
- 238000012216 screening Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000030279 gene silencing Effects 0.000 description 3
- 239000004065 semiconductor Substances 0.000 description 3
- 229920001621 AMOLED Polymers 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 238000013527 convolutional neural network Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000036541 health Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012886 linear function Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 238000004904 shortening Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000013528 artificial neural network Methods 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000011010 flushing procedure Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000036039 immunity Effects 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000036961 partial effect Effects 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72412—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72484—User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Human Computer Interaction (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Telephone Function (AREA)
Abstract
The application relates to the field of terminals and provides a method and electronic equipment for controlling incoming call silence, wherein the method is applied to a system comprising a first electronic equipment and a second electronic equipment, and comprises the following steps: detecting an incoming call of the first electronic equipment; responding to the incoming call, and collecting data of a acceleration sensor in the second electronic equipment; obtaining information of a first peak value and information of a second peak value based on data of an acceleration sensor, wherein the first peak value is a first acceleration signal amplitude related to a first action of a user, and the second peak value is a second acceleration signal amplitude related to a second action of the user; if the first action and the second action accord with the preset action and the direction of the first action and the direction of the second action are different, determining that the time difference value is smaller than or equal to a first preset threshold value, and stopping part or all prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment. Based on the technical scheme of the application, the operation of incoming call silence can be conveniently executed, and the user experience is improved.
Description
Technical Field
The application relates to the field of terminals, in particular to a method and electronic equipment for controlling incoming call silence.
Background
With the development of social technology, wearable devices such as smart bracelets or smart watches are increasingly popular in life, and most of the wearable devices have functions of communication, timing, step counting, health monitoring and the like. When the wearable device receives the incoming call information, if the user wants to put through or hang up the incoming call, the user needs to perform corresponding touch operation or operation on a device key on a screen of the wearable device. In some scenes, the incoming call silence can be controlled by the wearable device in the scene that the user is inconvenient to answer the call.
However, the current method for controlling incoming call silence requires that the user perform corresponding operations when the wearable device is in a fixed position (e.g., the display screen is facing upwards); when the incoming call silencing is executed, the wearable device is required to be placed at a fixed position, so that the incoming call silencing through the wearable device is limited greatly, and the incoming call silencing is not realized through the wearable device in various scenes by a user.
Therefore, how to more intelligently realize incoming call silence makes it a urgent problem to be solved for the user to perform incoming call silence based on more convenient operation.
Disclosure of Invention
The application provides a method and electronic equipment for controlling incoming call silence, which can enable a user to more conveniently execute relevant operations of incoming call silence and improve user experience.
In a first aspect, a method for controlling incoming call silence is provided, and the method is applied to a system including a first electronic device and a second electronic device, where the first electronic device is communicatively connected to the second electronic device, and the second electronic device is a wearable device, and the method includes:
detecting an incoming call of the first electronic device;
responding to the incoming call, and collecting data of an acceleration sensor of the second electronic equipment;
obtaining information of a first peak value and information of a second peak value based on data of the acceleration sensor, wherein the first peak value is a first acceleration signal amplitude related to a first action of a user, the first acceleration signal amplitude is an acceleration signal at a first moment, the second peak value is a second acceleration signal amplitude related to a second action of the user, and the second acceleration signal amplitude is an acceleration signal at a second moment;
if the first action and the second action accord with preset actions and the direction of the first action and the direction of the second action are different, determining that the time difference between the first moment and the second moment is smaller than or equal to a first preset threshold value, and stopping part or all prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment.
In an embodiment of the present application, by acquiring data of an acceleration sensor in a second electronic device (e.g., a wearable device); based on the data of the acceleration sensor in the second electronic device (e.g., wearable device), a first acceleration signal amplitude associated with a first action of the user and a second acceleration signal amplitude associated with a second action of the user may be obtained; if the first action and the second action accord with the preset action, that is, the gesture of the first action and the gesture of the second action accord with the gesture of the preset action, and the direction of the first action is different from the direction of the second action, determining that the time difference between the first moment corresponding to the first acceleration signal amplitude and the second moment corresponding to the second acceleration signal amplitude is smaller than or equal to a first preset threshold value, and stopping part or all prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment; the incoming call mute function can be realized for the first electronic equipment and/or the second electronic equipment; in embodiments of the present application, the second electronic device (e.g., wearable device) need not be in a fixed location as the first and second actions of the user are detected; in other words, the method for controlling incoming call silence provided by the embodiment of the application can be applied to more scenes, and a user does not need to be limited to a fixed scene with the screen of the second electronic device (for example, the wearable device) facing upwards and in the palm when performing relevant operations of incoming call silence; therefore, the method for controlling the incoming call silence can realize the incoming call silence more intelligently, so that a user can more conveniently execute relevant operations of the incoming call silence; and the user experience is improved.
It should be understood that detecting an incoming call to the first electronic device may refer to detecting whether the first electronic device is currently in a called state; for example, whether the first electronic device is currently in a called and unanswered state.
It should be appreciated that the embodiments of the present application are to implement incoming call muting of a first electronic device and/or a wearable device in the case where the first electronic device is in an incoming call; therefore, in the case that the first electronic device has an incoming call, the first electronic device may be considered to be in a state of ringing and/or vibrating the incoming call; in an embodiment of the present application, it may not be considered that the first electronic device or the wearable device is in a mute state.
With reference to the first aspect, in certain implementations of the first aspect, the preset motion includes a motion of flipping the wrist.
In one possible implementation, the first motion and the second motion may be motion of the user turning the wrist in different directions.
In one possible implementation, the preset actions may also include actions with the user's intended directionality, such as lifting the wrist and dropping the wrist, extending the wrist and retracting the wrist, taking a step forward, or retracting one step backward.
With reference to the first aspect, in certain implementation manners of the first aspect, the determining that the time difference between the first time and the second time is less than or equal to a first preset threshold value, stopping part or all of the prompt information of the incoming call in the first electronic device and/or the second electronic device includes:
and determining that the time difference between the first time and the second time is smaller than or equal to a first preset threshold value, wherein the ratio of the first acceleration signal amplitude to the second acceleration signal amplitude meets a first range, and stopping part or all prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment.
In the embodiment of the present application, when the time difference between the first time and the second time is less than or equal to the first preset threshold, it may further be determined whether the ratio between the amplitude of the first action and the amplitude of the second action meets the first range, that is, whether the ratio between the amplitude value of the first acceleration signal amplitude and the amplitude value of the second acceleration signal amplitude meets the first range; stopping part or all prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment when the ratio of the amplitude value of the first acceleration signal amplitude to the amplitude value of the second acceleration signal amplitude meets a first range, namely, executing incoming call mute on the first electronic equipment and/or the wearable equipment; in the embodiment of the present application, since the time difference between the first time and the second time satisfies the first preset threshold, the ratio of the amplitude of the first action to the amplitude of the second action may be further determined; therefore, misoperation of a user can be effectively avoided to a certain extent, and the incoming call silence accuracy is improved.
With reference to the first aspect, in certain implementation manners of the first aspect, the obtaining, based on the data of the acceleration sensor, information of a first peak value and information of a second peak value includes:
and processing the data of the acceleration sensor based on a peak searching algorithm to obtain a data set, wherein the data set comprises the information of the first peak value and the information of the second peak value.
It should be understood that a peak finding algorithm refers to a signal that finds the location of a peak or trough in a set of signals.
In the embodiment of the application, whether the wave crest and the wave trough exist or not can be detected based on the data of the acceleration sensor, namely whether the data of the first action and the second action (for example, the wrist is overturned twice or not) exist or not is detected; determining position information of peaks and troughs based on data of the acceleration sensor; based on the position information, time information corresponding to the wave crest and the wave trough can be obtained, so that whether the time difference between the first moment and the second moment is smaller than or equal to a first preset threshold value is determined; under the condition that the time difference value meets a first preset threshold value, performing incoming call silence on the first electronic equipment and/or the second electronic equipment; and stopping part or all of prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment.
With reference to the first aspect, in some implementations of the first aspect, processing data of the acceleration sensor based on a peak-finding algorithm to obtain a data set includes:
and processing the data of the acceleration sensor through a neural network model to obtain the data set, wherein the neural network model is used for running the peak finding algorithm.
In an embodiment of the present application, a peak-finding algorithm may be performed on the data of the acceleration sensor through a neural network model; wherein the neural network model may comprise a convolutional neural network; the operation efficiency of the peak searching algorithm can be improved by executing the peak searching algorithm through the neural network model; thereby shortening the waiting time of the first electronic device and/or the second electronic device for executing the incoming call silence.
With reference to the first aspect, in some implementations of the first aspect, the processing the data of the acceleration sensor based on the peak-finding algorithm to obtain a data set includes:
filtering the data of the acceleration sensor to obtain processed data;
and processing the processed data based on the peak searching algorithm to obtain the data set.
In the embodiment of the application, part of noise data can be removed by filtering data processing on the acquired data of the acceleration sensor, so that the accuracy of the data of the acceleration sensor is ensured.
With reference to the first aspect, in some implementation manners of the first aspect, the filtering processing the data of the acceleration sensor to obtain processed data includes:
and carrying out filtering processing on the data of the acceleration sensor based on an average value filter to obtain the processed data.
In the embodiment of the application, the filtering process may be performed by using an average filter; the average filter has good anti-noise performance on the motion state with non-periodic motion and the motion state with periodic motion; therefore, by filtering the acquired data of the acceleration sensor by using the average filter, noise data in the data can be effectively reduced.
With reference to the first aspect, in certain implementation manners of the first aspect, the information of the first peak includes a first identifier, where the first identifier is an identifier of a data frame corresponding to the first peak; the information of the second peak value comprises a second identifier, the second identifier is an identifier of a data frame corresponding to the second peak value, and the time difference value is a time difference value obtained based on the first identifier and the second identifier.
With reference to the first aspect, in certain implementations of the first aspect, a direction of the first action is opposite to a direction of the second action.
In embodiments of the present application, the direction of the first action may be opposite to the direction of the second action; after the user executes the first action, the second action opposite to the first action can be executed, so that the user can operate more conveniently, and the user experience is improved.
With reference to the first aspect, in certain implementations of the first aspect, a direction of the first action is opposite to a direction of the second action, including:
the direction of the first action is clockwise, and the direction of the second action is anticlockwise; or,
the direction of the first action is anticlockwise and the direction of the second action is clockwise.
With reference to the first aspect, in certain implementations of the first aspect, the first action is a first action to flip the wrist, and the second action is a second action to flip the wrist; and the direction of the first turning wrist is opposite to the direction of the second turning wrist.
It should be understood that turning the wrist in embodiments of the present application may refer to turning the wrist.
With reference to the first aspect, in certain implementations of the first aspect, the direction of the first flip wrist is clockwise and the direction of the second flip wrist is counterclockwise; or,
The direction of the first turning wrist is anticlockwise, and the direction of the second turning wrist is clockwise.
With reference to the first aspect, in certain implementations of the first aspect, in a case where the direction of the first flip wrist is clockwise and the direction of the second flip wrist is counterclockwise, the first peak is a peak value and the second peak is a trough value.
With reference to the first aspect, in certain implementations of the first aspect, in a case where the direction of the first flip wrist is counterclockwise and the direction of the second flip wrist is clockwise, the first peak is a trough value and the second peak is a peak value.
With reference to the first aspect, in certain implementation manners of the first aspect, the collecting data of the acceleration sensor in the second electronic device includes:
and acquiring data of the acceleration sensor in the second electronic equipment within a preset time period, wherein the preset time period is the time period of the incoming call.
In the embodiment of the present application, collecting the data of the acceleration sensor of the second electronic device may refer to collecting the data of the acceleration sensor of the second electronic device during the time period of the incoming call of the first electronic device when the incoming call of the first electronic device is detected; in other words, when the incoming call of the first electronic device is not detected, the data of the acceleration sensor of the second electronic device may not be acquired; therefore, the problem of high power consumption caused by the fact that the data of the acceleration sensor are always collected in the second electronic equipment can be avoided to a certain extent.
In one possible implementation, the data of the acceleration sensor in the second electronic device may be collected all the time; namely, when the incoming call of the first electronic equipment is not detected, the data of the acceleration sensor of the second electronic equipment can be acquired; after the incoming call of the first electronic device is detected, the data of the acceleration sensor of the second electronic device can be continuously collected, the data is subjected to peak searching algorithm processing to determine whether the first peak value and the second peak value can be detected in the data, and mute incoming call is executed for the first electronic device and/or the second electronic device based on the information of the first peak value and the information of the second peak value.
With reference to the first aspect, in certain implementation manners of the first aspect, the stopping part or all of the prompt information of the incoming call in the first electronic device and/or the second electronic device includes:
stopping all prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment.
In the embodiment of the application, when the mute incoming call is executed on the first electronic device and/or the second electronic device, all prompt information in the first electronic device and/or the second electronic device can be stopped, so that the first electronic device and/or the second electronic device can not remind a user at all, and the influence of the incoming call on the user is reduced.
With reference to the first aspect, in certain implementation manners of the first aspect, the stopping all prompt information of the incoming call in the first electronic device and/or the second electronic device includes:
stopping all prompt information of the incoming call in the first electronic equipment and the second electronic equipment.
In the embodiment of the application, when the mute incoming call is executed on the first electronic device and/or the second electronic device, all prompt information of the incoming call in the first electronic device and the second electronic device can be stopped; therefore, under the condition that the user is inconvenient to answer the telephone, the user can mute the incoming call to the first electronic equipment and the second equipment through simple operation.
In a possible implementation manner, the stopping part or all of the prompt information of the incoming call in the first electronic device and/or the second electronic device includes:
stopping part of prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment.
In one possible implementation manner, stopping the partial prompt information of the incoming call in the first electronic device and/or the second electronic device includes:
stopping part of prompt information of the incoming call in the first electronic equipment and the second electronic equipment.
With reference to the first aspect, in certain implementation manners of the first aspect, the prompt information includes a ringing prompt information and/or a vibration prompt information.
With reference to the first aspect, in certain implementation manners of the first aspect, the communicatively connecting the first electronic device with the second electronic device includes:
and the first electronic equipment is in wireless connection with the second electronic equipment, or the first electronic equipment is in Bluetooth connection with the second electronic equipment.
In one possible implementation, the communication connection between the first electronic device and the second electronic device may also be implemented by other means.
With reference to the first aspect, in certain implementation manners of the first aspect, the method further includes:
displaying a first interface;
and detecting a first operation in the first interface, wherein the first operation is an operation for indicating to start incoming call mute.
In a second aspect, an electronic device is provided, comprising means for performing the method of controlling incoming call muting in the first aspect or any implementation manner of the first aspect.
In a third aspect, an electronic device is provided that includes one or more processors and memory; the memory is coupled with the one or more processors, the memory is for storing computer program code, the computer program code comprising computer instructions that the one or more processors call to cause the electronic device to perform:
Detecting an incoming call of the first electronic device;
responding to the incoming call, and collecting data of an acceleration sensor of the second electronic equipment;
obtaining information of a first peak value and information of a second peak value based on data of the acceleration sensor, wherein the first peak value is a first acceleration signal amplitude related to a first action of a user, the first acceleration signal amplitude is an acceleration signal at a first moment, the second peak value is a second acceleration signal amplitude related to a second action of the user, and the second acceleration signal amplitude is an acceleration signal at a second moment;
if the first action and the second action accord with preset actions and the direction of the first action and the direction of the second action are different, determining that the time difference between the first moment and the second moment is smaller than or equal to a first preset threshold value, and stopping part or all prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment.
Alternatively, the electronic device may be the first electronic device in the first aspect or the second electronic device in the first aspect.
With reference to the third aspect, in certain implementations of the third aspect, the one or more processors invoke the computer instructions to cause the electronic device to perform:
And determining that the time difference between the first time and the second time is smaller than or equal to a first preset threshold value, wherein the ratio of the first acceleration signal amplitude to the second acceleration signal amplitude meets a first range, and stopping part or all prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment.
With reference to the third aspect, in certain implementations of the third aspect, the one or more processors invoke the computer instructions to cause the electronic device to perform:
and processing the data of the acceleration sensor based on a peak searching algorithm to obtain a data set, wherein the data set comprises the information of the first peak value and the information of the second peak value.
With reference to the third aspect, in certain implementations of the third aspect, the one or more processors invoke the computer instructions to cause the electronic device to perform:
and processing the data of the acceleration sensor through a neural network model to obtain the data set, wherein the neural network model is used for running the peak finding algorithm.
With reference to the third aspect, in certain implementations of the third aspect, the one or more processors invoke the computer instructions to cause the electronic device to perform:
Filtering the data of the acceleration sensor to obtain processed data;
and processing the processed data based on the peak searching algorithm to obtain the data set.
With reference to the third aspect, in certain implementations of the third aspect, the one or more processors invoke the computer instructions to cause the electronic device to perform:
and carrying out filtering processing on the data of the acceleration sensor based on an average value filter to obtain the processed data.
With reference to the third aspect, in some implementations of the third aspect, the information of the first peak includes a first identifier, where the first identifier is an identifier of a data frame corresponding to the first peak; the information of the second peak value comprises a second identifier, the second identifier is an identifier of a data frame corresponding to the second peak value, and the time difference value is a time difference value obtained based on the first identifier and the second identifier.
With reference to the third aspect, in some implementations of the third aspect, a direction of the first action is opposite to a direction of the second action.
With reference to the third aspect, in some implementations of the third aspect, a direction of the first action is opposite to a direction of the second action, including:
The direction of the first action is clockwise, and the direction of the second action is anticlockwise; or,
the direction of the first action is anticlockwise and the direction of the second action is clockwise.
With reference to the third aspect, in certain implementations of the third aspect, the one or more processors invoke the computer instructions to cause the electronic device to perform:
and acquiring data of the acceleration sensor in the second electronic equipment within a preset time period, wherein the preset time period is the time period of the incoming call.
With reference to the third aspect, in certain implementations of the third aspect, the first peak is the first acceleration signal amplitude acquired based on the first action of the user; the second peak is the second acceleration signal amplitude acquired based on the second action of the user.
With reference to the third aspect, in certain implementations of the third aspect, the preset action includes an action to flip the wrist.
With reference to the third aspect, in certain implementations of the third aspect, the one or more processors invoke the computer instructions to cause the electronic device to perform:
Stopping all prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment.
With reference to the third aspect, in certain implementations of the third aspect, the one or more processors invoke the computer instructions to cause the electronic device to perform:
stopping all prompt information of the incoming call in the first electronic equipment and the second electronic equipment.
With reference to the third aspect, in certain implementations of the third aspect, the alert information includes a ringing alert information and/or a vibration alert information.
With reference to the third aspect, in certain implementations of the third aspect, the one or more processors invoke the computer instructions to cause the electronic device to perform:
the first electronic device communicatively coupled to the second electronic device includes:
and the first electronic equipment is in wireless connection with the second electronic equipment, or the first electronic equipment is in Bluetooth connection with the second electronic equipment.
With reference to the third aspect, in certain implementations of the third aspect, the one or more processors invoke the computer instructions to cause the electronic device to perform:
Displaying a first interface;
and detecting a first operation in the first interface, wherein the first operation is an operation for indicating to start incoming call mute.
In a fourth aspect, an electronic device is provided, the electronic device comprising one or more processors, a memory; the memory is coupled to the one or more processors, the memory for storing computer program code comprising computer instructions that the one or more processors invoke the computer instructions to cause the electronic device to perform the method of controlling incoming call muting in the first aspect or any implementation of the first aspect.
In a fifth aspect, a chip system is provided, the chip system being applied to an electronic device, the chip system comprising one or more processors for invoking computer instructions to cause the electronic device to perform the method of controlling incoming call muting in the first aspect or any implementation of the first aspect.
In a sixth aspect, a computer readable storage medium is provided, the computer readable storage medium storing computer program code which, when executed by an electronic device, causes the electronic device to perform the method of controlling incoming call muting in the first aspect or any implementation manner of the first aspect.
In a seventh aspect, there is provided a computer program product comprising: computer program code which, when run by an electronic device, causes the electronic device to perform the method of controlling incoming call muting in the first aspect or any one of the implementations of the first aspect.
In an embodiment of the present application, by acquiring data of an acceleration sensor in a second electronic device (e.g., a wearable device); based on the data of the acceleration sensor in the second electronic device (e.g., wearable device), a first acceleration signal amplitude associated with a first action of the user and a second acceleration signal amplitude associated with a second action of the user may be obtained; if the first action and the second action accord with the preset action, that is, the gesture of the first action and the gesture of the second action accord with the gesture of the preset action, and the direction of the first action is different from the direction of the second action, determining that the time difference between the first moment corresponding to the first acceleration signal amplitude and the second moment corresponding to the second acceleration signal amplitude is smaller than or equal to a first preset threshold value, and stopping part or all prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment; the incoming call mute function can be realized for the first electronic equipment and/or the second electronic equipment; in embodiments of the present application, the second electronic device (e.g., wearable device) need not be in a fixed location as the first and second actions of the user are detected; in other words, the method for controlling incoming call silence provided by the embodiment of the application can be applied to more scenes, and a user does not need to be limited to a fixed scene with the screen of the second electronic device (for example, the wearable device) facing upwards and in the palm when performing relevant operations of incoming call silence; therefore, the method for controlling the incoming call silence can realize the incoming call silence more intelligently, so that a user can more conveniently execute relevant operations of the incoming call silence; and the user experience is improved.
Drawings
FIG. 1 is a schematic diagram of a hardware system suitable for use with the electronic device of the present application;
FIG. 2 is a schematic diagram of a software system suitable for interaction between an electronic device and a wearable device of the present application;
FIG. 3 is a schematic diagram of an application scenario suitable for use in embodiments of the present application;
FIG. 4 is a schematic flow chart of a method for controlling incoming call silence provided by an embodiment of the present application;
fig. 5 is a schematic diagram of an acceleration signal collected by an acceleration sensor according to an embodiment of the present application;
FIG. 6 is a schematic diagram of directions of a first action or a second action of a user provided in an embodiment of the present application;
fig. 7 is a schematic flow chart of a method for controlling incoming call silence according to an embodiment of the present application;
FIG. 8 is an interactive flow chart of a method for controlling incoming call muting provided in an embodiment of the present application;
FIG. 9 is an interactive flow chart of a method for controlling incoming call muting provided in an embodiment of the present application;
FIG. 10 is an interactive flow chart of a method for controlling incoming call muting provided in an embodiment of the present application;
FIG. 11 is a schematic flow chart of a method for obtaining a tag value based on data of an acceleration sensor according to an embodiment of the present application;
FIG. 12 is a schematic flow chart of another method for obtaining a tag value based on data of an acceleration sensor provided in an embodiment of the present application;
FIG. 13 is a schematic flow chart of a method for obtaining a tag value based on data of an acceleration sensor according to an embodiment of the present application;
FIG. 14 is a schematic diagram of a graphical user interface of a wearable device provided by an embodiment of the present application;
FIG. 15 is a schematic diagram of a graphical user interface of another wearable device provided by an embodiment of the present application;
FIG. 16 is a schematic diagram of a graphical user interface of an electronic device provided in an embodiment of the present application;
fig. 17 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 18 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the embodiments of the present application, the following terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present embodiment, unless otherwise specified, the meaning of "plurality" is two or more.
In order to facilitate understanding of embodiments of the present application, related concepts related to the embodiments of the present application will be briefly described first.
1. Incoming call silence
Incoming call muting refers to a terminal device changing from a ring state to a mute state and not hanging up when the terminal device is called (e.g., has a new incoming phone call).
2. Acceleration sensor
The acceleration sensor is a device in the terminal equipment that can measure acceleration.
3. Peak finding algorithm
The peak finding algorithm refers to an algorithm for finding the peak or trough position in a set of signals.
Fig. 1 shows a hardware system suitable for use in the electronic device of the present application.
The electronic device 100 may be a cell phone, a smart screen, a tablet computer, a wearable electronic device, an in-vehicle electronic device, an augmented reality (augmented reality, AR) device, a Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA), a projector, etc., and the specific type of the electronic device 100 is not limited in the embodiments of the present application.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
The configuration shown in fig. 1 does not constitute a specific limitation on the electronic apparatus 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than those shown in FIG. 1, or electronic device 100 may include a combination of some of the components shown in FIG. 1, or electronic device 100 may include sub-components of some of the components shown in FIG. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units. For example, the processor 110 may include at least one of the following processing units: application processors (application processor, AP), modem processors, graphics processors (graphics processing unit, GPU), image signal processors (image signal processor, ISP), controllers, video codecs, digital signal processors (digital signal processor, DSP), baseband processors, neural-Network Processors (NPU). The different processing units may be separate devices or integrated devices. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. For example, the processor 110 may include at least one of the following interfaces: inter-integrated circuit, I2C) interfaces, inter-integrated circuit audio (inter-integrated circuit sound, I2S) interfaces, pulse code modulation (pulse code modulation, PCM) interfaces, universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interfaces, mobile industry processor interfaces (mobile industry processor interface, MIPI), general-purpose input/output (GPIO) interfaces, SIM interfaces, USB interfaces.
Illustratively, in an embodiment of the present application, the processor 110 may be configured to perform a method for controlling incoming call muting provided in an embodiment of the present application; for example, an incoming call to a first electronic device is detected; responding to the incoming call, and collecting data of a acceleration sensor in the second electronic equipment; obtaining information of a first peak value and information of a second peak value based on data of an acceleration sensor, wherein the first peak value is a first acceleration signal amplitude related to a first action of a user, the first acceleration signal amplitude is an acceleration signal at a first moment, the second peak value is a second acceleration signal amplitude related to a second action of the user, and the second acceleration signal amplitude is an acceleration signal at a second moment; if the first action and the second action accord with the preset action and the direction of the first action and the direction of the second action are different, determining that the time difference between the first moment and the second moment is smaller than or equal to a first preset threshold value, and stopping part or all of prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment.
The connection relationships between the modules shown in fig. 1 are merely illustrative, and do not constitute a limitation on the connection relationships between the modules of the electronic device 100. Alternatively, the modules of the electronic device 100 may also use a combination of the various connection manners in the foregoing embodiments.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The electronic device 100 may implement display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 may be used to display images or video.
Alternatively, the display screen 194 may be used to display images or video. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini light-emitting diode (Mini LED), a Micro light-emitting diode (Micro LED), a Micro OLED (Micro OLED), or a quantum dot LED (quantum dot light emitting diodes, QLED). In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement a photographing function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the camera, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. The ISP can carry out algorithm optimization on noise, brightness and color of the image, and can optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
A camera 193 (also referred to as a lens) is used to capture still images or video. The shooting function can be realized by triggering and starting through an application program instruction, such as shooting and acquiring an image of any scene. The camera may include imaging lenses, filters, image sensors, and the like. Light rays emitted or reflected by the object enter the imaging lens, pass through the optical filter and finally are converged on the image sensor. The imaging lens is mainly used for converging and imaging light emitted or reflected by all objects (also called a scene to be shot and a target scene, and also called a scene image expected to be shot by a user) in a shooting view angle; the optical filter is mainly used for filtering out redundant light waves (such as light waves except visible light, such as infrared light) in the light; the image sensor may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The image sensor is mainly used for photoelectrically converting a received optical signal into an electrical signal, and then transmitting the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format.
Illustratively, the digital signal processor is configured to process digital signals, and may process other digital signals in addition to digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Illustratively, video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, and MPEG4.
Illustratively, the gyroscopic sensor 180B may be used to determine a motion pose of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x-axis, y-axis, and z-axis) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B can also be used for scenes such as navigation and motion sensing games.
For example, the acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically, x-axis, y-axis, and z-axis). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The acceleration sensor 180E may also be used to recognize the gesture of the electronic device 100 as an input parameter for applications such as landscape switching and pedometer.
Illustratively, a distance sensor 180F is used to measure distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, for example, in a shooting scene, the electronic device 100 may range using the distance sensor 180F to achieve fast focus.
Illustratively, ambient light sensor 180L is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent false touches.
Illustratively, the fingerprint sensor 180H is used to capture a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to perform functions such as unlocking, accessing an application lock, taking a photograph, and receiving an incoming call.
Illustratively, the touch sensor 180K, also referred to as a touch device. The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a touch screen. The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor 180K may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 and at a different location than the display 194.
The hardware system of the electronic device 100 is described in detail above, and the software system of the electronic device 100 is described below.
Fig. 2 is a schematic diagram of a software system for interaction between an electronic device and a wearable device provided in an embodiment of the present application.
In one example, as shown in fig. 2, an electronic device 100 and a wearable device 200 may be included in a system architecture; the electronic device 100 may include an application layer 310, an application framework layer 320, a hardware abstraction layer 330, and a sensor algorithm layer 340, among others; the wearable device 200 may include an acceleration sensor and a bluetooth module.
Optionally, the electronic device 100 may also include a hardware layer; hardware devices in the electronic device may also be included in the hardware layer.
By way of example, the application layer 310 in the electronic device may include a sports health application or other application; other applications include, but are not limited to: camera applications, gallery, calendar, conversation, map, navigation, WLAN, bluetooth, music, video, short message, etc. applications.
Illustratively, the application framework layer 320 in the electronic device provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer; the application framework layer may include some predefined functions.
Illustratively, a hardware abstraction layer 330 in the electronic device is used to abstract the hardware.
Illustratively, the hardware abstraction layer may include a hardware abstraction module 331; the hardware abstraction module 331 may be configured to run an algorithm with larger occupied memory and higher power consumption; for example, the hardware abstraction module 331 may be used to run a peak finding algorithm or the like; alternatively, the peak finding algorithm may be referred to the following description of step S906 in fig. 11 or step S1006 in fig. 12.
Illustratively, the incoming call silence may refer to a related algorithm of the method for controlling incoming call silence provided in the embodiment of the present application; similarly, the method for controlling the incoming call silence provided by the embodiment of the application can be also suitable for other scenes needing silence; such as a silent alarm clock or a silent video call, etc. Optionally, the underlying algorithm module may also include related algorithms for answering the call.
Optionally, interactive communication can be implemented between the hardware abstraction module 331 and the underlying algorithm module; for example, the output data of the underlying algorithm module may be used as input data to the hardware abstraction module 331, thereby enabling optimization of high power algorithms.
Alternatively, the hardware abstraction module 331 and the underlying algorithm module may be located in the same hardware in the electronic device; alternatively, the hardware abstraction module 331 and the underlying algorithm module may reside in different hardware in the electronic device.
Illustratively, the hardware abstraction module 331 and the underlying algorithm module may be located on the same chip in the electronic device; alternatively, the converged hardware abstraction module 331 and the underlying algorithm module may reside on different chips in the electronic device.
Alternatively, a modem hardware abstraction (modem HAL) module may be included in the bluetooth hardware abstraction module; the modem HAL module may be used to perform a modem process on the available data.
Illustratively, the sensor algorithm layer 340 in the electronic device may include an underlying algorithm module that runs low power consumption in the electronic device; for example, the underlying algorithm module may run algorithms that occupy less memory and consume less power; for example, the underlying algorithm modules may include, but are not limited to: incoming call silence, silence alarm clock, silence video incoming call.
Optionally, the electronic device 100 may also include a hardware layer; hardware devices in the electronic device may also be included in the hardware layer.
Optionally, a driving layer may be further included between the sensor algorithm layer 340 and the hardware layer; the driver layer may be used to provide drivers for different hardware devices.
Illustratively, the wearable device 200 may include an acceleration sensor and a bluetooth module; the acceleration sensor can be used for collecting data of the acceleration sensor; the Bluetooth module can be used for realizing data transmission with other devices; for example, a bluetooth module in the wearable device may communicate data with a bluetooth hardware abstraction module in the electronic device.
In the embodiment of the present application, for the electronic device, since the bluetooth hardware abstraction module in the hardware abstraction layer 330 cannot perform data transmission with other modules in the hardware abstraction layer; therefore, the application framework layer 320 of the electronic device may include a transmission module, where the transmission module may receive the data of the bluetooth hardware abstraction module and send the data in the bluetooth hardware abstraction module to the smart sensor fusion hardware abstraction module 331; in other words, data transmission between the electronic device and the wearable device can be achieved through the Bluetooth hardware abstraction module and the transmission module in the electronic device.
Optionally, the electronic device and the wearable device may also be connected by wireless connection, or by other communication methods; the present application is not limited in any way.
Optionally, in an embodiment of the present application, in a case where the wearable device has a certain computing capability and a storage space, the peak-finding algorithm and/or the bottom-layer algorithm running in the electronic device may also run in the wearable device.
Currently, when a wearable device is in a fixed position (for example, a display screen faces upwards) in a method for controlling incoming call silence, a user performs corresponding operation; for example, screen up and palm down is required to perform flipping when performing incoming call muting; however, for some scenarios, such as when the user is lying in bed or while the user is driving, the screen is facing upwards and the palm may not be easy for the user to operate; therefore, when the incoming call mute is currently executed, the wearable device needs to be placed at a fixed position, so that the incoming call mute through the wearable device is limited greatly, and the incoming call mute is not realized through the wearable device in various scenes by a user.
In view of this, the present application provides a method of controlling incoming call silence by acquiring data of an acceleration sensor in a second electronic device (e.g., a wearable device); based on the data of the acceleration sensor in the second electronic device (e.g., wearable device), a first acceleration signal amplitude associated with a first action of the user and a second acceleration signal amplitude associated with a second action of the user may be obtained; if the first action and the second action accord with the preset action, that is, the gesture of the first action and the gesture of the second action accord with the gesture of the preset action, and the direction of the first action is different from the direction of the second action, determining that the time difference between the first moment corresponding to the first acceleration signal amplitude and the second moment corresponding to the second acceleration signal amplitude is smaller than or equal to a first preset threshold value, and stopping part or all prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment; the incoming call mute function can be realized for the first electronic equipment and/or the second electronic equipment; in embodiments of the present application, the second electronic device (e.g., wearable device) need not be in a fixed location as the first and second actions of the user are detected; in other words, the method for controlling incoming call silence provided by the embodiment of the application can be applied to more scenes, and a user does not need to be limited to a fixed scene with the screen of the second electronic device (for example, the wearable device) facing upwards and in the palm when performing relevant operations of incoming call silence; therefore, the method for controlling the incoming call silence can realize the incoming call silence more intelligently, so that a user can more conveniently execute relevant operations of the incoming call silence; and the user experience is improved.
An application scenario of the method for controlling incoming call silence according to the embodiment of the present application is illustrated below with reference to fig. 3. As shown in fig. 3, the method for muting an incoming call provided in the embodiment of the present application may be applicable to an incoming call muting scene; for example, the user may carry the wearable device 200, the user is lying down and the electronic device 100 is a relatively large distance from the user; at this time, the electronic equipment is in the incoming call bell and vibration state; the user can realize the function of incoming call silence through the rotation operation of the wearable device 200 because the user is inconvenient to answer the call; for example, a user may implement an incoming call mute function of an electronic device and/or a wearable device by rotating the wrist twice.
Optionally, the incoming call mute function may include any of the following:
the electronic device stops the incoming call prompt information and does not hang up the telephone, the wearable device stops the incoming call prompt information and does not hang up the telephone, or the electronic device and the wearable device both stop the incoming call prompt information and do not hang up the telephone.
Wherein, the electronic device stops the incoming call prompt information and the phone is not hung up may include: the electronic device stops ringing and does not hang up the phone, the electronic device stops vibrating and does not hang up the phone, the electronic device stops ringing and vibrating and does not hang up the phone.
The wearable device stopping the incoming call prompt and not hanging up the phone may include: the wearable device stops ringing and does not hang up the phone, the wearable device stops vibrating and does not hang up the phone, the wearable device stops ringing and vibrating and does not hang up the phone.
Optionally, the method for controlling incoming call silence provided in the embodiment of the present application is also applicable to a scenario of a silence video incoming call, or a scenario of a silence alarm clock, etc.
The following describes in detail the method for controlling the incoming call silence according to the embodiment of the present application with reference to fig. 4 to 14.
Fig. 4 is a schematic flowchart of a method for controlling incoming call silence according to an embodiment of the present application. The method 400 includes steps S410 to S440, and the following describes steps S410 to S440 in detail.
It should be understood that the method for muting an incoming call provided in the embodiment of the present application may be applied to a system including a first electronic device and a second electronic device, where the first electronic device is communicatively connected to the second electronic device, and the second electronic device is a wearable device; the first electronic device may refer to the electronic device 100 shown in fig. 1 or fig. 2; the second electronic device may refer to a wearable device 200 as shown in fig. 2.
Optionally, the communication connection between the first electronic device and the second electronic device includes: the first electronic device is wirelessly connected with the second electronic device, or the first electronic device is connected with the second electronic device through bluetooth, or the first electronic device is connected with the second electronic device through other communication modes, which is not limited in the application.
Alternatively, the method 400 may be performed in a first electronic device, as in fig. 4, i.e. the method 400 may be performed in the electronic device 100 as shown in fig. 1 or fig. 2.
Alternatively, in case the second electronic device has a certain storage space and computing power, the method 400 as shown in fig. 4 may be performed in the second electronic device, i.e. the method 400 may be performed in the wearable device 200 as shown in fig. 2.
Step S410, detecting an incoming call of the first electronic device.
Alternatively, the first electronic device may detect that the first electronic device has an incoming call, or the second electronic device may detect that the first electronic device has a specific incoming call.
For example, detecting an incoming call to the first electronic device may refer to detecting that the first electronic device is currently in a called state; for example, the first electronic device is currently in a called and unanswered state.
And step S420, responding to the incoming call, and collecting data of the acceleration sensor of the second electronic equipment.
In one example, when the first electronic device is not detected to be powered on, acquiring data of a acceleration sensor in the second electronic device; when the first electronic equipment is detected to be powered on, acquiring data of an acceleration sensor in the second electronic equipment, and processing the data of the acceleration sensor; detecting whether the data of the acceleration sensor in the second electronic equipment comprises a first peak value and a second peak value in the time period of the incoming call of the first electronic equipment; determining whether to perform a silent incoming call to the first electronic device and/or the second electronic device based on the information of the first peak and the information of the second peak; i.e. determining whether to stop part or all of the alert information of the incoming call to the first electronic device in the first electronic device and/or the second electronic device.
In one example, the data of the acceleration sensor of the second electronic device may not be collected when the first electronic device is not detected to be incoming; and when the first electronic equipment is detected to be powered on, acquiring data of a acceleration sensor of the second electronic equipment.
Optionally, collecting data of the acceleration sensor in the second electronic device includes:
And acquiring data of the acceleration sensor in the second electronic equipment within a preset time period, wherein the preset time period is a time period of the incoming call of the first electronic equipment.
In the embodiment of the present application, collecting the data of the acceleration sensor of the second electronic device may refer to collecting the data of the acceleration sensor of the second electronic device during the time period of the incoming call of the first electronic device when the incoming call of the first electronic device is detected; in other words, when the incoming call of the first electronic device is not detected, the data of the acceleration sensor of the second electronic device may not be acquired; therefore, the problem of high power consumption caused by the fact that the data of the acceleration sensor are always collected in the second electronic equipment can be avoided to a certain extent.
Step S430, obtaining information of a first peak value and information of a second peak value based on data of the acceleration sensor, wherein the first peak value is a first acceleration signal amplitude related to a first action of the user, and the second peak value is a second acceleration signal amplitude related to a second action of the user.
The first acceleration signal amplitude is an acceleration signal at a first moment; the second acceleration signal amplitude is the acceleration signal at the second moment.
It should be noted that, the data in the acceleration sensor may include data of the acceleration sensor in the second electronic device collected during the incoming call period of the first electronic device; or the data in the acceleration sensor can comprise data of a acceleration sensor in a second electronic device acquired in the incoming call time period and the future electric time period of the first electronic device; i.e. the data of the acceleration sensor may comprise data not related to an incoming call.
It will be appreciated that the first time instant and the second time instant are different time instants.
It should be further understood that the first peak value is a first acceleration signal amplitude related to the first action of the user, which may mean that the first peak value is an acceleration signal amplitude generated by the first action of the user in the second collected electronic device when the user performs the first action; similarly, the second peak value is a second acceleration signal amplitude related to the second action of the user, which may refer to the acceleration signal amplitude generated by the second action of the user in the second collected electronic device when the user performs the second action.
Optionally, obtaining the information of the first peak value and the information of the second peak value based on the data of the acceleration sensor includes:
and processing the data of the acceleration sensor based on a peak searching algorithm to obtain a data set, wherein the data set comprises the information of the first peak value and the information of the second peak value.
It should be understood that a peak finding algorithm refers to a signal that finds the location of a peak or trough in a set of signals.
Alternatively, the peak finding algorithm may include, but is not limited to: a comparison method, a derivative method, a Constant False Alarm Rate (CFAR) algorithm, a symmetrical zero area algorithm, a linear fitting peak finding algorithm and the like.
The comparison method is to carry out smoothing treatment on the data firstly and carry out maximum value comparison to obtain the position of the wave crest or the wave trough; the derivative method is to smooth the data; then, first-order, second-order and third-order derivative data are carried out on the data; obtaining an average value of the derivative data, setting a threshold according to the average value, and then carrying out peak value screening; the CFAR algorithm refers to setting two window functions; performing window smoothing to obtain an optimized curve; calculating the average value of the data, setting a threshold according to the average value, and then carrying out peak value screening; the symmetrical zero area algorithm is that a simple function of symmetrical zero area is selected as a change function; setting a window function according to the symmetrical zero area; when the net area of a peak is several times larger than the standard deviation of the total area of the peak (sum of net area and base area of the peak), the peak is confirmed to be a true peak. The linear fitting peak searching algorithm is to obtain a linear function coefficient according to a least square method; obtaining a fitting curve according to the fitting function; and calculating corresponding peak heights and peak widths based on the fitted curve. Alternatively, the specific algorithm may refer to the description related to step S906 in fig. 11, which is not repeated here.
In the embodiment of the application, whether the wave crest and the wave trough exist or not can be detected based on the data of the acceleration sensor, namely whether the data of the first action and the second action (for example, the wrist is overturned twice or not) exist or not is detected; determining position information of peaks and troughs based on data of the acceleration sensor; based on the position information, time information corresponding to the wave crest and the wave trough can be obtained, so that whether the time difference between the first moment and the second moment is smaller than or equal to a first preset threshold value is determined; under the condition that the time difference value meets a first preset threshold value, performing incoming call silence on the first electronic equipment and/or the second electronic equipment; and stopping part or all of prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment.
Optionally, multiple sets of data may be included in the data set, each set of data including a sequence number of the frame-an identification of a peak or trough.
Optionally, multiple sets of data may be included in the data set, each set of data including a sequence number of the frame-an identification of a peak or trough-an amplitude value size.
For example, the data set may include data set 1, data set 2, data set 3, and so on; wherein, the data group 1 can be 0 frame-flag 4-0.5; the data set 2 may be a 2 nd frame-flag 2-1.5; the third set of data may be frame 3-flag 3-1.4; wherein, flag2 may represent a peak; flag3 may represent a trough; flag4 may represent non-peaks, valleys.
Illustratively, assuming that the clockwise direction is the positive direction, the direction of the first action (e.g., flipping the wrist for the first time) of the user is the counterclockwise direction, and the direction of the second action (e.g., flipping the wrist for the second time) is the clockwise direction, as shown in fig. 5; FIG. 5 is a schematic diagram of acceleration signals collected by an acceleration sensor, wherein the abscissa of the schematic diagram may represent a frame number, and the ordinate may represent an amplitude value of acceleration information; the point A can be determined to be a first peak value through a peak searching algorithm, the first peak value corresponds to the maximum value of the acceleration signal of the first action of the user, and the curve 460 represents the acceleration signal curve of the first action; point B is a second peak corresponding to the maximum value of the acceleration signal for the second action of the user, and curve 470 represents the acceleration signal curve for the second action.
Optionally, processing the data of the acceleration sensor based on a peak searching algorithm to obtain a data set, including:
and processing the data of the acceleration sensor through a neural network model to obtain a data set, wherein the neural network model is used for running a peak searching algorithm.
In an embodiment of the present application, a peak-finding algorithm may be performed on the data of the acceleration sensor through a neural network model; wherein the neural network model may comprise a convolutional neural network; the operation efficiency of the peak searching algorithm can be improved by executing the peak searching algorithm through the neural network model; thereby shortening the waiting time of the first electronic device and/or the second electronic device for executing the incoming call silence.
Optionally, processing the data of the acceleration sensor based on a peak searching algorithm to obtain a data set, including:
filtering the data of the acceleration sensor to obtain processed data;
and processing the processed data based on a peak searching algorithm to obtain a data set.
In the embodiment of the application, part of noise data can be removed by filtering data processing on the acquired data of the acceleration sensor, so that the accuracy of the data of the acceleration sensor is ensured.
Optionally, filtering the data of the acceleration sensor to obtain processed data, including:
and carrying out filtering processing on the data of the acceleration sensor based on the mean value filter to obtain processed data.
In the embodiment of the application, the filtering process may be performed by using an average filter; the average filter has good anti-noise performance on the motion state with non-periodic motion and the motion state with periodic motion; therefore, by filtering the acquired data of the acceleration sensor by using the average filter, noise data in the data can be effectively reduced.
Optionally, the information of the first peak value includes a first identifier, where the first identifier is an identifier of a data frame corresponding to the first peak value; the information of the second peak value comprises a second identifier, the second identifier is the identifier of the data frame corresponding to the second peak value, and the time difference value is the time difference value obtained based on the first identifier and the second identifier.
For example, a time offset between the first time instant and the second time instant may be derived based on the identification of the data frame. For example, assuming that 100 frames of data can be collected for 1 second, the identification of the data frame corresponding to the data of the first action is 20 th frame, and the identification of the data frame corresponding to the second action is 30 th frame, the time interval between the first action and the second action, that is, the time deviation between the first time and the second time is (30-20) ×1/100) =0.1 second.
Step S440, if the first action and the second action conform to the preset action and the direction of the first action and the direction of the second action are different, determining that the time difference between the first moment and the second moment is smaller than or equal to the first preset threshold, and stopping part or all of the prompt information of the incoming call in the first electronic device and/or the second electronic device.
Alternatively, the preset actions may also include actions having the directivity intended by the user, such as turning over the wrist, lifting the wrist and dropping the wrist, extending the wrist and retracting the wrist, taking one step forward, or retracting one step backward.
Alternatively, the direction of the first action may be opposite to the direction of the second action.
In embodiments of the present application, the direction of the first action may be opposite to the direction of the second action; after the user executes the first action, the second action opposite to the first action can be executed, so that the user can operate more conveniently, and the user experience is improved.
Alternatively, the first action may be an action of turning the wrist clockwise, and the second action may be an action of turning the wrist counterclockwise; alternatively, the first motion may be a motion of turning the wrist in a counterclockwise direction, and the second motion may be a motion of turning the wrist in a clockwise direction.
For example, the action of turning the wrist clockwise is shown in fig. 6 (a); the movement of turning the wrist in the counterclockwise direction is shown in fig. 6 (b).
Alternatively, the first action may be an action of lifting the wrist upward, and the second action may be an action of dropping the wrist downward; alternatively, the first motion may be a motion of dropping the wrist, and the second motion may be a motion of lifting the wrist.
For example, the action of lifting the wrist is shown in fig. 6 (c); the action of lowering the wrist downward is shown in fig. 6 (d).
Alternatively, the first motion may be a motion of moving the wrist to the left, and the second motion may be a motion of moving the wrist to the right; alternatively, the first motion may be a motion of moving the wrist to the right, and the second motion may be a motion of moving the wrist to the left.
For example, an action of moving the wrist to the left as shown in (e) of fig. 6; the movement of the wrist to the right is shown in fig. 6 (f).
Alternatively, the first motion may be a motion of moving the wrist to the left front, and the second motion may be a motion of moving the wrist to the right front; alternatively, the first motion may be a motion of moving the wrist rightward and forward, and the second motion may be a motion of moving the wrist leftward and forward.
For example, as shown in (g) in fig. 6, the movement from the point C to the point C1 may be a movement directed to the left front; the movement from point C to point C2 may be movement directed to the right front.
Alternatively, the first motion may be a motion of extending the wrist and the second motion may be a motion of retracting the wrist.
Alternatively, the first action may be to take a step forward to the left and the second action may be to retract to the home position; alternatively, the first action may be to take a step forward left and the second action may be to take a step forward right.
Alternatively, the first action may be to withdraw one step to the left and back, and the second action may be to return to the home position; alternatively, the first action may be to withdraw one step to the left rear, and the second action may be to withdraw one step to the right rear.
Alternatively, the first preset threshold may be 50ms.
Optionally, in one possible implementation manner, determining that the time difference between the first time and the second time is less than or equal to a first preset threshold, stopping part or all of the prompt information of the incoming call in the first electronic device and/or the second electronic device includes:
and determining that the time difference between the first time and the second time is smaller than or equal to a first preset threshold value, and stopping part or all prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment when the ratio of the first acceleration signal amplitude to the second acceleration signal amplitude meets a first range.
Alternatively, the first range may be 0.6 to 0.9.
In the embodiment of the present application, when the time difference between the first time and the second time is less than or equal to the first preset threshold, it may further be determined whether the ratio between the amplitude of the first action and the amplitude of the second action meets the first range, that is, whether the ratio between the amplitude value of the first acceleration signal amplitude and the amplitude value of the second acceleration signal amplitude meets the first range; stopping part or all prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment when the ratio of the amplitude value of the first acceleration signal amplitude to the amplitude value of the second acceleration signal amplitude meets a first range, namely, executing incoming call mute on the first electronic equipment and/or the wearable equipment; in the embodiment of the present application, since the time difference between the first time and the second time satisfies the first preset threshold, the ratio of the amplitude of the first action to the amplitude of the second action may be further determined; therefore, misoperation of a user can be effectively avoided to a certain extent, and the incoming call silence accuracy is improved.
Optionally, in one possible implementation manner, stopping part or all of the prompt information of the incoming call in the first electronic device and/or the second electronic device includes:
Stopping all prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment.
In the embodiment of the application, when the mute incoming call is executed on the first electronic device and/or the second electronic device, all prompt information in the first electronic device and/or the second electronic device can be stopped, so that the first electronic device and/or the second electronic device can not remind a user at all, and the influence of the incoming call on the user is reduced.
Optionally, in one possible implementation manner, stopping all prompt information of the incoming call in the first electronic device and/or the second electronic device includes:
stopping all prompt information of the incoming call in the first electronic equipment and the second electronic equipment.
In the embodiment of the application, when the mute incoming call is executed on the first electronic device and/or the second electronic device, all prompt information of the incoming call in the first electronic device and the second electronic device can be stopped; therefore, under the condition that the user is inconvenient to answer the telephone, the user can mute the incoming call to the first electronic equipment and the second equipment through simple operation.
Optionally, in one possible implementation manner, stopping part or all of the prompt information of the incoming call in the first electronic device and/or the second electronic device includes:
Stopping part of prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment.
Optionally, in one possible implementation manner, stopping part of the prompt information of the incoming call in the first electronic device and/or the second electronic device includes:
stopping part of prompt information of the incoming call in the first electronic equipment and the second electronic equipment.
Optionally, the alert information includes a ringing alert information and/or a vibration alert information.
Optionally, in one possible implementation manner, the method further includes:
displaying a first interface; a first operation is detected in the first interface, wherein the first operation is an operation for indicating to start incoming call mute.
By way of example, the first interface may refer to a settings display interface in the electronic device; the first operation may refer to an operation of turning on an incoming call silence in a setting interface of the electronic device. For example, the first interface may be as shown in (c) of fig. 16; the first operation may be a click operation as shown in (d) of fig. 16.
By way of example, the first interface may refer to a settings display interface in the wearable device; the first operation may refer to an operation of turning on an incoming call silence in a setting interface of the wearable device. For example, the first interface may be as shown in (g) of fig. 14, and the first operation may be a click operation as shown in (h) of fig. 14.
In embodiments of the present application, by acquiring data of an acceleration sensor in a wearable device (e.g., a smart bracelet); based on the data of the acceleration sensor in the wearable device, a first acceleration signal amplitude related to a first action of the user and a second acceleration signal amplitude related to a second action of the user can be obtained; if the first action and the second action accord with the preset action, that is, the gesture of the first action and the gesture of the second action accord with the gesture of the preset action, and the direction of the first action is different from the direction of the second action, determining that the time difference between the first moment corresponding to the first acceleration signal amplitude and the second moment corresponding to the second acceleration signal amplitude is smaller than or equal to a first preset threshold value, and stopping part or all prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment; the incoming call mute function can be realized for the first electronic equipment and/or the second electronic equipment; in the embodiment of the application, the wearable device does not need to be in a fixed position when detecting the first and second actions of the user; in other words, the method for controlling incoming call silence provided by the embodiment of the application can be suitable for more scenes, and a user does not need to be limited to a fixed scene with an upward screen and a palm of a wearable device when performing relevant operations of incoming call silence); therefore, the method for controlling the incoming call silence can realize the incoming call silence more intelligently, so that a user can more conveniently execute relevant operations of the incoming call silence; and the user experience is improved.
Fig. 7 is a schematic flowchart of a method for controlling incoming call silence according to an embodiment of the present application. The method 500 may be performed by the electronic device shown in fig. 1 or by the wearable device 200 shown in fig. 2; the method 500 includes steps S510 to S540, and the following describes steps S510 to S540 in detail.
Step S510, determining whether the first scene is met.
By way of example, the first scenario may refer to a scenario in which an incoming call of the electronic device rings and/or vibrates.
Alternatively, the first scene may refer to a scene of a video call ringing and/or a video call vibration of the electronic device.
Alternatively, the first scenario may refer to a scenario in which an alarm clock of the electronic device rings and/or the alarm clock vibrates.
It should be appreciated that the above description is illustrative of a first scenario; in a first scene, the electronic equipment is in ringing and/or vibrating, and the mute function of the electronic equipment can be realized through the method provided by the embodiment of the application; the mute function may mean that the electronic device stops ringing; alternatively, the mute function may also mean that the electronic device stops ringing and vibrating; alternatively, the mute function may refer to the electronic device ceasing to vibrate; after the mute function of the electronic equipment is realized, the electronic equipment does not send any prompt to the user; or any prompt to the user.
Step S520, under the condition of conforming to the first scene, acquiring data acquired by a acceleration sensor of the wearable equipment.
Illustratively, the electronic device is in a scenario of an incoming call ringing; or in a scene that the electronic equipment is in an incoming call bell and an incoming call vibrates; or in a scene that the electronic equipment is in incoming call vibration, the data acquired by the acceleration sensor of the wearable equipment can be acquired.
Optionally, the first scene may also be an alarm clock scene or a video passing scene; the specific description refers to step S510, and will not be repeated here.
Step S530, obtaining a label value based on the data acquired by the acceleration sensor.
Illustratively, acquiring data acquired by an acceleration sensor; processing data acquired by the acceleration sensor to obtain a tag value; optionally, a specific implementation method for processing the data of the acceleration sensor may be shown in fig. 11, fig. 12, or fig. 13, which are not described herein.
Step S540, instructing the wearable device and/or the electronic device to execute the corresponding function based on the tag value.
For example, the tag value obtained based on the acquired data of the acceleration sensor may be 1; alternatively, the tag value obtained based on the acquired data of the acceleration sensor may be 0; when the tag value is 1, the tag value may be used to instruct the wearable device and/or the electronic device to perform an incoming call mute function; when the tag value is 0, the tag value may be used to indicate that the wearable device and/or the electronic device is not performing an incoming call mute function.
Optionally, the electronic device and the wearable device may be controlled separately to perform an incoming call mute function; alternatively, the electronic device and the wearable device may be controlled entirely to perform the incoming call mute function.
In one example, the electronic device and the wearable device may be controlled separately to perform an incoming call mute function; when the electronic equipment is in call, the electronic equipment can ring, vibrate or ring and vibrate; under the condition that the tag value is 1 and the electronic equipment rings, the electronic equipment can be instructed to stop ringing, and incoming call silence is realized; or under the condition that the tag value is 1 and the electronic equipment vibrates, the electronic equipment can be instructed to stop vibrating, so that incoming call silence is realized; or, under the condition that the tag value is 1 and the electronic equipment is ringing and vibrating, the electronic equipment can be instructed to stop ringing and vibrating, so that the incoming call silence is realized.
Optionally, when the electronic device and the wearable device are controlled separately to execute the incoming call mute function, the electronic device can implement incoming call mute based on the tag value; at this time, the wearable device may be in any one of a bell and/or vibration state; the present application is not limited in any way.
In one example, the electronic device and the wearable device may be controlled entirely to perform an incoming call mute function; when the electronic equipment is in call, the electronic equipment can ring, vibrate or ring and vibrate; the wearable device may also be a bell, a vibration, or both; when the tag value is 1, the electronic device and the wearable device can be enabled to stop sending any prompt information.
For example, if the electronic device is in the ringing and vibrating state, the wearable device is also in the ringing and vibrating state, and when the tag value is 1, the electronic device and the wearable device can stop both the ringing and vibrating state, so as to realize the incoming call mute function.
For example, when the electronic device is in a ringing state, the electronic device and the wearable device can stop ringing and hang up the phone when the tag value obtained based on the data of the acceleration sensor of the wearable device is 1, so as to realize the incoming call mute function.
For example, when the electronic device is in a call, the electronic device and the wearable device can ring and vibrate, and when a tag value obtained based on data of an acceleration sensor of the wearable device is 1, the electronic device and the wearable device stop ringing and vibrating and do not hang up the phone, so that a call mute function is realized.
For example, when the electronic device is in a call, the electronic device rings and the wearable device vibrates, and when a tag value obtained based on data of an acceleration sensor of the wearable device is 1, the electronic device can stop ringing and the wearable device can notify the vibration and not hang up the phone, so that a call mute function is realized.
It should be understood that the above is illustrated with a tag value of 1 or a tag value of 0; the specific numerical values of the tag values are not limited in this application.
Optionally, the steps S510 to S540 take the first scene as the incoming call scene, and illustrate the silence of the incoming call; the method shown in fig. 7 is equally applicable to scenes such as mute alarm clock or the like for mute video call incoming calls; the present application is not limited in any way.
In the embodiment of the application, under the condition that the current state of the electronic device or the wearable device is determined to accord with the first scene, the tag value can be obtained based on the data of the acceleration sensor of the wearable device; the electronic device and/or the wearable device may be caused to perform respective operations corresponding to the tag values based on the tag values.
Alternatively, steps S510 to S540 shown in fig. 7 may be performed in the electronic device; or may also refer to execution in a wearable device; alternatively, part of steps S510 to S540 are performed in the electronic device and part of steps are performed in the wearable device, and the following description will be given in detail for each case by way of illustration of incoming call scenarios.
Case one: the electronic device may obtain a tag value based on data of an acceleration sensor of the wearable device, and the electronic device determines that the electronic device and/or the wearable device performs a function corresponding to the tag value (e.g., whether to perform incoming call muting).
Fig. 8 is an interactive flowchart of a method for controlling incoming call silence according to an embodiment of the present application. The method 600 includes steps S610 to S640, and steps S610 to S640 are described in detail below.
It should be appreciated that the electronic device shown in fig. 8 may be the electronic device 100 shown in fig. 1 or fig. 2; alternatively, a first electronic device as shown in fig. 4; the wearable device shown in fig. 8 may be the wearable device 200 shown in fig. 2, or a second electronic device shown in fig. 4.
Step S610, the electronic device determines that the first scene is met.
The electronic device determines that the current state of the electronic device conforms to the first scenario.
By way of example, the first scenario may refer to a scenario in which an incoming call of the electronic device rings and/or vibrates.
Alternatively, the first scene may refer to a scene of a video incoming call bell and/or a video incoming call vibration of the electronic device.
Alternatively, the first scenario may refer to a scenario in which an alarm clock of the electronic device rings and/or the alarm clock vibrates.
It should be appreciated that the above description is illustrative of a first scenario; in a first scene, the electronic equipment is in ringing and/or vibrating, and the mute function of the electronic equipment can be realized through the method provided by the embodiment of the application; the mute function may mean that the electronic device stops ringing; alternatively, the mute function may also mean that the electronic device stops ringing and vibrating; alternatively, the mute function may refer to the electronic device ceasing to vibrate; after the mute function of the electronic equipment is realized, the electronic equipment does not send any prompt to the user; or any interference to the user.
Step S620, the electronic device acquires data of an acceleration sensor of the wearable device.
For example, the electronic device may send a data reporting instruction to the wearable device; the wearable device may send data collected in real time by the acceleration sensor to the electronic device.
Step S630, the electronic device obtains a tag value based on the data.
For example, the electronic device may acquire data acquired by the acceleration sensor; processing data acquired by the acceleration sensor to obtain a tag value; optionally, a specific implementation method for processing the data of the acceleration sensor may be shown in fig. 11, fig. 12, or fig. 13, which are not described herein.
Step S640, the electronic device determines, based on the tag value, that the electronic device and/or the wearable device perform a corresponding operation.
Optionally, the electronic device may determine that the electronic device performs incoming call muting based on the tag value; alternatively, the electronic device may determine that the wearable device is performing incoming call muting based on the tag value; or, the electronic device determines that the electronic device and the wearable device both perform incoming call muting based on the tag value.
Alternatively, the specific implementation may be referred to in the related description shown in fig. 4 or fig. 7, which is not repeated here.
In the embodiment of the application, under the condition that the electronic equipment accords with the first scene, the electronic equipment can acquire the data of the acceleration sensor of the wearable equipment, and a tag value is obtained based on the data of the acceleration sensor; it is determined whether to perform a corresponding operation on the electronic device and/or the wearable device based on the tag value.
And a second case: the electronic equipment can obtain a tag value based on the data of the acceleration sensor of the wearable equipment, and execute the function corresponding to the tag value; the electronic device may send the tag value to the wearable device, which determines whether to perform a function corresponding to the tag value (e.g., whether to perform incoming call muting) based on the tag value.
Fig. 9 is an interactive flowchart of a method for controlling incoming call silence according to an embodiment of the present application. The method 700 includes steps S710 to S760, and steps S710 to S760 are described in detail below.
It should be appreciated that the electronic device shown in fig. 9 may be the electronic device 100 shown in fig. 1 or fig. 2; alternatively, a first electronic device as shown in fig. 4; the wearable device shown in fig. 8 may be the wearable device 200 shown in fig. 2, or a second electronic device shown in fig. 4.
Step S710, the electronic device determines that the first scene is met.
The electronic device determines that the current state of the electronic device conforms to the first scenario.
By way of example, the first scenario may refer to a scenario in which an incoming call of the electronic device rings and/or vibrates.
Alternatively, the first scene may refer to a scene of a video incoming call bell and/or a video incoming call vibration of the electronic device.
Alternatively, the first scenario may refer to a scenario in which an alarm clock of the electronic device rings and/or the alarm clock vibrates.
It should be appreciated that the above description is illustrative of a first scenario; in a first scene, the electronic equipment is in ringing and/or vibrating, and the mute function of the electronic equipment can be realized through the method provided by the embodiment of the application; the mute function may mean that the electronic device stops ringing; alternatively, the mute function may also mean that the electronic device stops ringing and vibrating; alternatively, the mute function may refer to the electronic device ceasing to vibrate; after the mute function of the electronic equipment is realized, the electronic equipment does not send any prompt to the user; or any interference to the user.
Step S720, the electronic device acquires data of an acceleration sensor of the wearable device.
For example, the electronic device may send a data reporting instruction to the wearable device; the wearable device may send data collected in real time by the acceleration sensor to the electronic device.
Step S730, the electronic device obtains a tag value based on the data.
For example, the electronic device may acquire data acquired by the acceleration sensor; processing data acquired by the acceleration sensor to obtain a tag value; optionally, a specific implementation method for processing the data of the acceleration sensor may be shown in fig. 11, fig. 12, or fig. 13, which are not described herein.
Step S740, the electronic device executes the operation corresponding to the tag value.
Optionally, taking the incoming call scenario as an example, the electronic device may perform incoming call muting based on the tag value; alternatively, the electronic device may perform the incoming call unmuted based on the tag value.
Step S750, the electronic device sends the tag value to the wearable device.
Alternatively, step S740 and step S750 may be performed simultaneously; alternatively, step S750 may be performed first, and then step S740 may be performed. The present application is not limited in any way.
Step S760, the wearable device determines whether to execute the corresponding operation based on the tag value.
Alternatively, the specific implementation may be referred to in fig. 4 or the related description shown in fig. 7, which is not repeated here.
In the embodiment of the application, under the condition that the electronic equipment accords with the first scene, the electronic equipment can acquire the data of the acceleration sensor of the wearable equipment, and a tag value is obtained based on the data of the acceleration sensor; the electronic device can execute corresponding operation based on the tag value and send the tag value to the wearable device; the wearable device may determine whether to perform the corresponding operation based on the tag value.
And a third case: the wearable device can obtain a tag value based on data in the acceleration sensor, and the wearable device executes a function corresponding to the tag value based on the tag value; the wearable electronic device sends the tag value to the electronic device, which determines whether to perform a corresponding operation (e.g., whether to perform incoming call muting) based on the tag value.
Fig. 10 is an interactive flowchart of a method for controlling incoming call silence according to an embodiment of the present application. The method 800 includes steps S810 to S860, and the following describes steps S810 to S860 in detail.
It should be appreciated that the electronic device shown in fig. 10 may be the electronic device 100 shown in fig. 1 or fig. 2; alternatively, a first electronic device as shown in fig. 4; the wearable device shown in fig. 8 may be the wearable device 200 shown in fig. 2, or a second electronic device shown in fig. 4.
Step S810, the wearable device determines to conform to the first scenario.
For example, the wearable device may determine that the current state of the electronic device conforms to the first scenario.
By way of example, the first scenario may refer to a scenario in which an incoming call of the electronic device rings and/or vibrates.
Alternatively, the first scene may refer to a scene of a video call ringing and/or a video call vibration of the electronic device.
Alternatively, the first scenario may refer to a scenario in which an alarm clock of the electronic device rings and/or the alarm clock vibrates.
It should be appreciated that the above description is illustrative of a first scenario; in a first scene, the electronic equipment is in ringing and/or vibrating, and the mute function of the electronic equipment can be realized through the method provided by the embodiment of the application; the mute function may mean that the electronic device stops ringing; alternatively, the mute function may also mean that the electronic device stops ringing and vibrating; alternatively, the mute function may refer to the electronic device ceasing to vibrate; after the mute function of the electronic equipment is realized, the electronic equipment does not send any prompt to the user; or any interference to the user.
Alternatively, in one possible implementation, step S810 may refer to the wearable device determining that the current state of the wearable device conforms to the first scenario.
Step S820, the wearable device acquires data of an acceleration sensor.
For example, the electronic device may send a data reporting instruction to the wearable device; the wearable device may send data collected in real time by the acceleration sensor to the electronic device.
Step S830, the wearable device obtains a tag value based on the data.
For example, the wearable device may acquire data acquired by the acceleration sensor; processing data acquired by the acceleration sensor to obtain a tag value; optionally, a specific implementation method for processing the data of the acceleration sensor may be shown in fig. 11, fig. 12, or fig. 13, which are not described herein.
Step S840, the wearable device performs a corresponding operation of the tag value.
Optionally, taking the incoming call scenario as an example, the wearable device may perform incoming call muting based on the tag value; alternatively, the wearable device may perform an incoming call unmuted based on the tag value.
Step S850, the wearable device sends the tag value to the electronic device.
Alternatively, step S840 and step S850 may be performed simultaneously; alternatively, step S850 may be performed first, and step S840 may be performed next; the present application is not limited in any way.
Step S860, the electronic device determines whether to execute the corresponding operation based on the tag value.
Alternatively, the specific implementation may be referred to in fig. 4 or the related description shown in fig. 7, which is not repeated here.
Alternatively, in the method 800 shown in fig. 10, for steps S840 to S860, some or all of steps S840 to S860 may be performed; for example, steps S840 to S860 may be performed, or steps S840 and S840 may be performed, or steps S850 and S860 may be performed, or only step S840 may be performed.
In the embodiment of the application, the wearable device can acquire the data of the acceleration sensor of the wearable device under the condition that the electronic device is determined to accord with the first scene; obtaining a tag value based on data of the acceleration sensor; the wearable device can execute corresponding operation based on the tag value and send the tag value to the electronic device; the electronic device may determine whether to perform the corresponding operation based on the tag value.
An algorithm for deriving a tag value based on data of an acceleration sensor of a wearable device is described in detail below with reference to fig. 11 to 13.
It should be understood that in the embodiment shown in fig. 11 to 13, the first movement of the user is taken as a first rotation of the wrist, and the second movement of the user is taken as a second rotation of the wrist as an example; the turning wrist may refer to a flip wrist, and in embodiments of the present application the turning wrist and the flip wrist may represent the same meaning.
Alternatively, the first action may be an action of lifting the wrist upward, and the second action may be an action of dropping the wrist downward; alternatively, the first action may be an action of dropping the wrist, and the second action may be an action of lifting the wrist; alternatively, the first motion may be a motion of moving the wrist to the left, and the second motion may be a motion of moving the wrist to the right; alternatively, the first motion may be a motion of moving the wrist to the right, and the second motion may be a motion of moving the wrist to the left; alternatively, the first motion may be a motion of moving the wrist to the left front, and the second motion may be a motion of moving the wrist to the right front; alternatively, the first motion may be a motion of moving the wrist to the right front, and the second motion may be a motion of moving the wrist to the left front; alternatively, the first motion may be a wrist extension motion and the second motion may be a wrist retraction motion; alternatively, the first action may be to take a step forward to the left and the second action may be to retract to the home position; alternatively, the first action may be taking a step forward left and the second action may be taking a step forward right; alternatively, the first action may be to retract one step to the left and back, and the second action may be to return to the home position; alternatively, the first action may be to withdraw one step to the left rear, and the second action may be to withdraw one step to the right rear.
Fig. 11 is a schematic flowchart of a method for obtaining a tag value based on data of an acceleration sensor of a wearable device according to an embodiment of the present application. The method 900 includes steps S901 to S914, and the following describes steps S901 to S914 in detail.
Step S901, initializing the stored data.
Illustratively, initializing the data may be flushing cached data in the electronic device; alternatively, initializing the data may refer to emptying the number in the acceleration sensor.
And step S902, collecting data of an acceleration sensor.
Step S903, judging whether the acquired data meets the acquisition duration; if the acquisition duration is satisfied, executing step S904; if the acquisition duration is not satisfied, the process returns to step S905.
It is understood that when acquiring the data of the acceleration sensor, ensuring that the acquisition time length is satisfied is to acquire the data of the acceleration sensor within a period of time, so that the situation that the data of the wrist rotated by the user for many times cannot be acquired due to the too short acquisition time is avoided; and the accuracy of the output tag value is improved by collecting the data of the acceleration sensor within a period of time.
And step S904, filtering the data to obtain the processed data.
It should be understood that the filtering data processing is performed on the data to smooth the collected data; and part of noise data is removed, so that the accuracy of the data of the acceleration sensor is ensured.
Step S905, continuously collecting data.
Illustratively, the data continues to be acquired until the duration of acquiring the data of the acceleration sensor is greater than or equal to the acquisition duration.
Step S906, the processed data are processed through an AI algorithm to obtain a data set.
Illustratively, the data set includes time information (e.g., frame number), identification of peaks, or identification of valleys.
Optionally, amplitude values may also be included in the data set.
Optionally, identifying peaks and troughs in the data of the acceleration sensor through an AI peak finding algorithm, and simultaneously recording sequence numbers (positions) of frames of the peaks and the troughs; the AI peak-finding algorithm may refer to running the peak-finding algorithm based on a neural network model.
Illustratively, a peak finding algorithm refers to a signal that finds the location of a peak or trough in a set of signals.
Alternatively, the peak finding algorithm may include, but is not limited to: a comparison method, a derivative method, a Constant False Alarm Rate (CFAR) algorithm, a symmetrical zero area algorithm, a linear fitting peak finding algorithm and the like.
The comparison method is to carry out smoothing treatment on the data firstly and carry out maximum value comparison to obtain the position of the wave crest or the wave trough; the derivative method is to smooth the data; then, first-order, second-order and third-order derivative data are carried out on the data; obtaining an average value of the derivative data, setting a threshold according to the average value, and then carrying out peak value screening; the CFAR algorithm refers to setting two window functions; performing window smoothing to obtain an optimized curve; calculating the average value of the data, setting a threshold according to the average value, and then carrying out peak value screening; the symmetrical zero area algorithm is that a simple function of symmetrical zero area is selected as a change function; setting a window function according to the symmetrical zero area; when the net area of a peak is several times larger than the standard deviation of the total area of the peak (sum of net area and base area of the peak), the peak is confirmed to be a true peak. The linear fitting peak searching algorithm is to obtain a linear function coefficient according to a least square method; obtaining a fitting curve according to the fitting function; and calculating corresponding peak heights and peak widths based on the fitted curve.
It should be appreciated that the above is an illustration of a peak finding algorithm; the peak searching algorithm in the present application may refer to any peak searching algorithm in the prior art, which is not limited in any way in the present application.
Step S907, storing the data set.
For example, the data set may be stored into cached data; the stored data set is used for judging whether the data set comprises the data of the wrist rotated for the first time and the data of the wrist rotated for the second time or not in the follow-up data set; in the case that the data set includes data of two rotations, it is further determined whether the data of two rotations satisfies a time difference.
It should be appreciated that in embodiments of the present application, a first rotation of the wrist may refer to a first rotation of the wrist and a second rotation of the wrist may refer to a second flipping of the wrist; turning the wrist may mean turning the wrist the same meaning.
For example, multiple sets of data may be included in a data set, each set of data including a sequence number of a frame-an identification of a peak or trough; for example, the data set may include data set 1, data set 2, data set 3, and so on; wherein, the data group 1 can be 1 st frame-flag 2; the data set 2 may be a 2 nd frame-flag 4; the third set of data may be frame 3-flag 3; wherein, flag2 may represent a peak; flag3 may represent a trough; flag4 may represent non-peaks, valleys.
It should be understood that the foregoing is exemplified by flag2, flag3, and flag4, and the label values of the peaks, the troughs, or the non-peaks and the troughs are not shown in any way in the present application.
Step S908, judging whether the first rotation of the wrist is detected; if the first rotation of the wrist is detected, step S909 is executed; if the first rotation of the wrist is not detected, step S910 is performed.
For example, it may be determined whether a first rotation of the wrist is detected based on whether a peak or trough is detected in the data set.
For example, when the user turns the wrist once in a body-side direction (e.g., counter-clockwise), one trough may be included in the data set; when the user turns the wrist once in the opposite direction to the body side (e.g., clockwise), a peak may be included in the data set.
Step S909, acquire time information T1 of the first rotation of the wrist.
Illustratively, the data set 1 included in the data set may be a 1 st frame-flag 2; the data set 2 may be a 2 nd frame-flag 4; the third set of data may be frame 3-flag 3; wherein, flag2 may represent a peak; flag3 may represent a trough; flag4 may represent a non-peak, trough; the information of the first rotation of the wrist obtained based on the data set is 1 st frame-flag 2, and the time information T1 of the first rotation of the wrist is the frame identification of 1 st frame.
Step S910, output tag value flag=0.
For example, the tag value obtained based on the acquired data of the acceleration sensor may be 0, i.e., flag=0; when the tag value is 0, it may be used to instruct the wearable device and/or the electronic device not to perform an incoming call mute function.
Step S911, judging whether the wrist is rotated for the second time or not; if the second rotation of the wrist is detected, step S912 is performed; if the second rotation of the wrist is not detected, step S910 is performed.
It should be appreciated that determining whether a second rotation is detected may be to indicate whether there is second peak or trough data in the data set; for example, if the data corresponding to the wrist rotated for the first time is the data of the wave crest, the data of the second rotation refers to the data of the wave trough; if the data corresponding to the wrist rotated for the first time is the data of the trough, the data rotated for the second time refers to the data of the crest.
It should also be appreciated that if the user purposefully rotates the wrist, based on two rotations, the direction of the first rotation and the second rotation should be opposite in order to achieve the incoming call mute function; for example, a first rotation of the wrist to the opposite side of the body (e.g., clockwise), then a second rotation of the wrist may refer to a rotation back to the wrist to home (e.g., counterclockwise); if the first rotation of the wrist is to the body side (e.g., clockwise), the second rotation of the wrist may refer to a rotation that returns the wrist to its original position (e.g., counterclockwise).
Step S912, acquiring time information T2 of the second rotation of the wrist.
Illustratively, the data set 1 included in the data set may be a 1 st frame-flag 2; the data set 2 may be a 2 nd frame-flag 4; the third set of data may be frame 3-flag 3; wherein, flag2 may represent a peak; flag3 may represent a trough; flag4 may represent a non-peak, trough; the information of the second rotation obtained based on the data set is the 3 rd frame-flag 3, and the time information T2 of the second rotation is the frame identification of the 2 nd frame.
Step S913, judging whether T2-T1 is less than or equal to T3; if T2-T1 is less than or equal to T3, then step S914 is performed; if T2-T1 is greater than T3, step S910 is performed.
Wherein T3 is a preset time threshold. Alternatively, T3 may be 50ms.
It should be appreciated that if the user wishes to achieve incoming call muting based on two rotations of the wrist, the interval between the two rotations is typically short; therefore, the time difference between the time information T1 of the first rotation of the wrist and the time information T2 of the second rotation acquired based on the data in the data set is small; if the time difference between the time information T1 of the first rotation of the wrist and the time information T2 of the second rotation is large, the intended directivity of the user cannot be accurately reflected; therefore, the user can not realize that the incoming call is muted by rotating the wrist twice.
It should also be appreciated that determining whether to perform an incoming call mute operation is based on a detected time difference in time information of two rotations of the wrist in the embodiments of the present application; because the method for controlling incoming call silence in the method is determined based on the time difference value of the two wrist rotations, the wearable equipment is not required to be in a fixed position (for example, a display screen faces upwards), so that a user can realize the incoming call silence function in various life scenes more conveniently, and the user experience is improved.
Step S914, output tag value flag=1.
For example, the tag value obtained based on the acquired data of the acceleration sensor may be 1, i.e., flag=1; when the tag value is 1, it may be used to instruct the wearable device and/or the electronic device to perform an incoming call mute function.
Optionally, the electronic device and the wearable device may be controlled separately to perform an incoming call mute function; alternatively, the electronic device and the wearable device may be controlled entirely to perform the incoming call mute function.
In one example, the electronic device and the wearable device may be controlled separately to perform an incoming call mute function; when the electronic equipment is in call, the electronic equipment can ring, vibrate or ring and vibrate; under the condition that the tag value is 1 and the electronic equipment rings, the electronic equipment can be instructed to stop ringing, and incoming call silence is realized; or under the condition that the tag value is 1 and the electronic equipment vibrates, the electronic equipment can be instructed to stop vibrating, so that incoming call silence is realized; or, under the condition that the tag value is 1 and the electronic equipment is ringing and vibrating, the electronic equipment can be instructed to stop ringing and vibrating, so that the incoming call silence is realized.
Optionally, when the electronic device and the wearable device are controlled separately to execute the incoming call mute function, the electronic device can implement incoming call mute based on the tag value; at this time, the wearable device may be in any one of a bell and/or vibration state; the present application is not limited in any way.
In one example, the electronic device and the wearable device may be controlled entirely to perform an incoming call mute function; when the electronic equipment is in call, the electronic equipment can ring, vibrate or ring and vibrate; the wearable device may also be a bell, a vibration, or both; when the tag value is 1, the electronic device and the wearable device can be enabled to stop sending any prompt information.
For example, if the electronic device is in the ringing and vibrating state, the wearable device is also in the ringing and vibrating state, and when the tag value is 1, the electronic device and the wearable device can stop both the ringing and vibrating state, so as to realize the silence of the incoming call.
For example, when the electronic device calls, the electronic device and the wearable device both ring, and when a tag value obtained based on data of an acceleration sensor of the wearable device is 1, the electronic device and the wearable device both stop ringing and do not hang up, so that a call mute function is realized.
For example, when the electronic device is in a call, the electronic device and the wearable device can ring and vibrate, and when a tag value obtained based on data of an acceleration sensor of the wearable device is 1, the electronic device and the wearable device stop ringing and vibrating and do not hang up the phone, so that a call mute function is realized.
For example, when the electronic device is in a call, the electronic device rings and the wearable device vibrates, and when a tag value obtained based on data of an acceleration sensor of the wearable device is 1, the electronic device can stop ringing and the wearable device can notify the vibration and not hang up the phone, so that a call mute function is realized.
It should be understood that the above is illustrated with a tag value of 1 or a tag value of 0; the specific numerical values of the tag values are not limited in this application.
Alternatively, step S540 as shown in fig. 7 may be performed after step S914; alternatively, step S640 shown in fig. 8 is performed; alternatively, part or all of steps S740 to S760 shown in fig. 9 are performed; alternatively, part or all of steps S840 to S860 shown in fig. 10 are performed.
Alternatively, step S410 and step S420 as shown in fig. 7 may be performed before step S901; alternatively, step S610 shown in fig. 8 is performed; alternatively, step S710 shown in fig. 9 is performed; alternatively, step S810 shown in fig. 10 is performed.
In an embodiment of the application, data of an acceleration sensor in the wearable device are acquired; determining whether data of the user rotating the wrist twice is detected based on the data of the acceleration sensor; under the condition that data of the wrist rotated twice by the user is detected, determining whether the data of the wrist rotated twice meets a time condition; under the condition that the data of the wrist rotated twice meets the time condition, the incoming call mute function can be realized for the electronic equipment and/or the wearable equipment; since in embodiments of the present application the wearable device need not be in a fixed position when detecting the user's operation; in other words, the method for controlling incoming call silence provided by the embodiment of the application can be suitable for more scenes, and a user does not need to perform rotation with the screen of the wearable device facing upwards and the palm facing downwards when performing relevant operations of incoming call silence; therefore, the method for controlling the incoming call silence can realize the incoming call silence more intelligently, so that a user can more conveniently execute relevant operations of the incoming call silence; and the user experience is improved.
Optionally, in an embodiment of the present application, to further improve the accuracy of the output tag value; when it is determined that the time difference between the time information T1 of the first rotation wrist and the time information T2 of the second rotation wrist is less than or equal to T3, the ratio of the magnitude value of the first rotation wrist to the magnitude value of the second rotation wrist may be further determined; if the user intentionally rotates the wrist twice is detected, the amplitude value of the wrist twice is close; if the ratio of the detected amplitude values of the two times of wrist rotation is larger, misoperation of a user is possible; therefore, when the time difference between the two wrist rotations is less than or equal to T3, it is further determined whether the ratio of the amplitude values of the two wrist rotations satisfies the first range (for example, 0.6 to 0.9), so that misoperation of the wrist rotation of the user can be effectively avoided to a certain extent, and accuracy of the output label value is improved.
Fig. 12 is a schematic flowchart of a method for obtaining a tag value based on data of an acceleration sensor of a wearable device according to an embodiment of the present application. The method 1000 includes steps S1001 to S1017, and steps S1001 to S1017 are described in detail below.
Step S1001, initializing the stored data.
Step S1002, collecting data of an acceleration sensor.
Step S1003, judging whether the acquisition time length is satisfied; if the acquisition duration is satisfied, executing step S1004; if the acquisition duration is not satisfied, step S1005 is executed.
Step S1004, filtering the data to obtain processed data.
Step S1005, continuously collecting data.
Step S1006, the processed data is processed through an AI algorithm to obtain a data set.
Step S1007, storing data set.
Step S1008, judging whether the first rotation of the wrist is detected; if the first rotation of the wrist is detected, step S1009 is performed; if the first rotation of the wrist is not detected, step S1010 is performed.
Step S1009, obtain time information T1 of first rotation of the wrist.
Step S1010, outputting a tag value flag=0.
Step S1011, judging whether the wrist is rotated for the second time or not; if the second rotation of the wrist is detected, step S1012 is performed; if the second rotation of the wrist is not detected, step S1010 is performed.
Step S1012, acquiring time information T2 of the second rotation of the wrist.
Step S1013, judging whether T2-T1 is less than or equal to T3; if T2-T1 is less than or equal to T3, then step S1014 is performed; if T2-T1 is greater than T3, step S1010 is performed.
Step S1014, obtaining amplitude values of the wrist rotated for the first time and the wrist rotated for the second time.
Optionally, time information (e.g., sequence number of frames), identification of peaks or troughs, and magnitude value size may be included in the data set.
For example, multiple sets of data may be included in a data set, each set of data including a sequence number-identification-amplitude value of a frame; for example, the data set may include data set 1, data set 2, data set 3, and so on; wherein, the data group 1 can be 1 st frame-flag 2-1.5; the data set 2 may be the 2 nd frame-flag 4-0.2; the third set of data may be frame 3-flag 3-1.7; wherein, flag2 may represent a peak; flag3 may represent a trough; flag4 may represent a non-peak, trough; based on the data set, it can be seen that the data set 1 is information of the wrist rotated for the first time, and the data set 3 is information of the wrist rotated for the second time, so that the amplitude value of the wrist rotated for the first time is 1.5; the amplitude value of the second rotation is 1.7. It should be understood that the foregoing is an exemplary description of a data set, and that the numerical values of specific information in the data set are not limited in any way by the present application.
Step S1015, calculating the ratio of the amplitude values of the two rotations of the wrist.
Illustratively, if the amplitude value of the detected first rotation of the wrist is 1.5, the amplitude value of the second rotation is 1.7; the ratio of the amplitude value of the first rotation of the wrist to the amplitude value of the second rotation is 1.5/1.7=0.88.
Step S1016, judging whether the ratio meets a first range; if the ratio of the amplitude values of the two rotating wrists meets the first range, executing step S1017; if the ratio of the amplitude values of the two rotations of the wrist does not satisfy the first range, step S1010 is performed.
Alternatively, the first range may be 0.6 to 0.9.
In the embodiment of the present application, if the user intentionally rotates the wrist twice based on the data set is detected, the time difference between the two times of rotation should be less than or equal to T3, and the ratio of the amplitude values of the two times of rotation satisfies the first range, so that the silence of the incoming call of the electronic device and/or the wearable device can be achieved.
It should be understood that, through the above step S1013, it can be determined whether the time difference between the two rotations of the wrist is less than or equal to T3; in general, if the wrist is turned twice for the user's intention, the time difference between the two turns is small; step S1016 is to further determine the ratio of the amplitude values of the two rotations; for example, if there is a malfunction of the user to rotate the wrist, the ratio of the amplitude values of the two rotations of the wrist may be large; at this time, the ratio of the amplitude value of the first rotation wrist to the amplitude value of the second rotation wrist cannot satisfy the first range; therefore, the above-described occurrence of the user misoperation can be effectively avoided based on step S1016.
Step S1017, outputting a tag value flag=1.
It should be noted that, the same parts as those in fig. 11 in fig. 12 may refer to the related description in fig. 11, and will not be described herein.
Alternatively, step S540 as shown in fig. 7 may be performed after step S1017; alternatively, step S640 shown in fig. 8 is performed; alternatively, part or all of steps S740 to S760 shown in fig. 9 are performed; alternatively, part or all of steps S840 to S860 shown in fig. 10 are performed.
Alternatively, step S410 and step S420 as shown in fig. 7 may be performed before step S1001; alternatively, step S610 shown in fig. 8 is performed; alternatively, step S710 shown in fig. 9 is performed; alternatively, step S810 shown in fig. 10 is performed.
In the embodiment of the present application, in the case where it is determined that the time difference between the time information T1 of the first rotation of the wrist and the time information T2 of the second rotation is less than or equal to T3, the ratio of the amplitude value of the first rotation of the wrist to the amplitude value of the second rotation of the wrist may be further determined; if the user intentionally rotates the wrist twice, the amplitude values of the wrist twice are close; if the ratio of the detected amplitude values of the two times of wrist rotation is larger, misoperation of a user may exist; therefore, under the condition that the time difference value of the wrist rotation for the two times is smaller than or equal to T3, whether the ratio of the amplitude values of the wrist rotation for the two times meets the first range is further judged, misoperation of the wrist rotation of a user can be effectively avoided to a certain extent, and accordingly accuracy of the output label value is improved.
Fig. 13 is a schematic flowchart of a method for obtaining a tag value based on data of an acceleration sensor of a wearable device according to an embodiment of the present application. The method 1100 includes steps S1101 to S1111, and steps S1101 to S1111 are described in detail below.
Step S1101, acquiring multi-frame data of the acceleration sensor.
For example, the acquisition duration may be preset, and data acquired by the acceleration sensor of the wearable device (e.g., smart bracelet) may be acquired.
Step S1102, performing mean filtering processing on each single frame data.
For example, assuming that 10 frames of data are acquired in a preset acquisition time period, average filtering processing needs to be performed on each frame of data in the 10 frames of data.
In the embodiment of the application, the data smoothing process can be realized by carrying out the mean value filtering process on the acquired data, so that noise data in the data can be effectively reduced.
It should be appreciated that since the mean filter has good noise immunity to non-periodic and periodic motion states; therefore, by filtering the acquired data of the acceleration sensor by using the average filter, noise data in the data can be effectively reduced.
Alternatively, after the data is subjected to the average filtering process, time determination (e.g., step S1103 to step S1106) and amplitude ratio determination (step S1107 to step S1110) may be performed, respectively, to thereby determine whether to perform incoming call muting; for example, if the output tag value is flag=0, then no incoming call muting is performed; and if the output tag value is flag=1, performing incoming call silence.
Step S1103, acquiring a preset window length.
Illustratively, the preset acquisition duration may be 20 frames and the preset window length may be 10 frames.
In the embodiment of the application, a certain time difference exists in time due to the fact that the user rotates the wrist twice; the length of the preset window is obtained to judge whether a wave crest or a wave trough exists in the data of the acceleration sensor in the preset window or not; and judging whether the data of the acceleration sensor in the preset window comprise data of the first rotation of the wrist and the second rotation of the user.
Step S1104, determining the wave crest and the wave trough in a preset window.
Illustratively, data collected by a acceleration sensor in a preset window may be obtained; peaks and troughs in data of the acceleration sensor are identified through an AI peak finding algorithm, and frame numbers (positions) of the peaks and the troughs are recorded at the same time.
Optionally, if only a peak exists or only a trough exists in the preset window, the output tag value is flag=0.
Step S1105, calculating a time difference between the peak and the trough.
Optionally, if the peak is located before the trough in the data set, that is, the peak is detected first and then the trough is detected, the time information of the peak is subtracted from the time information of the trough, which is the time difference between the peak and the trough. For example, the first rotation of the wrist by the user is a clockwise rotation and the second rotation is a counterclockwise rotation.
Optionally, if the trough is located before the crest in the data set, that is, the crest is detected first and then the crest is detected, the time difference between the crest and the crest is calculated as the time information of the crest minus the time information of the crest. For example, the user rotates the wrist a first time in a counterclockwise direction and rotates the wrist a second time in a clockwise direction.
Step S1106, judging whether the time difference value is less than or equal to T3; if the time difference is less than or equal to T3, step S1107 is performed; if the time difference is greater than T3, step S1108 is performed.
Step S1107, obtaining amplitude values of the wave crest and the wave trough.
For example, the magnitude value may represent a magnitude of acceleration information of the user turning the wrist.
Step S1108, output tag value flag=0.
Step S1109, calculating the ratio of the amplitude values.
Step S1110, judging whether the ratio meets a first range; if the ratio satisfies the first range, step S1111 is executed; if the ratio does not satisfy the first range, step S1108 is performed.
Step S1111, the output tag value is flag=1.
It should be noted that, the same parts as those in fig. 11 or fig. 12 in fig. 13 may refer to the related descriptions in fig. 11 or fig. 12, and are not repeated here.
Alternatively, step S540 as shown in fig. 7 may be performed after step S1111; alternatively, step S640 shown in fig. 8 is performed; alternatively, part or all of steps S740 to S760 shown in fig. 9 are performed; alternatively, part or all of steps S840 to S860 shown in fig. 10 are performed.
Alternatively, step S410 and step S420 as shown in fig. 7 may be performed before step S1101; alternatively, step S610 shown in fig. 8 is performed; alternatively, step S710 shown in fig. 9 is performed; alternatively, step S810 shown in fig. 10 is performed.
In the embodiment of the present application, in the case where it is determined that the time difference between the time information T1 of the first rotation of the wrist and the time information T2 of the second rotation is less than or equal to T3, the ratio of the amplitude value of the first rotation of the wrist to the amplitude value of the second rotation of the wrist may be further determined; if the user rotates the wrist twice with intention, the amplitude values of the two times of rotation should be close or have smaller difference; if the ratio of the detected amplitude values of the two times of wrist rotation is larger, misoperation of a user may exist; therefore, under the condition that the time difference value of the wrist rotation for the two times is smaller than or equal to T3, whether the ratio of the amplitude values of the wrist rotation for the two times meets the first range can be further judged, so that misoperation of the wrist rotation of a user is effectively avoided to a certain extent, and the accuracy of the output label value is improved.
An exemplary illustration of an interface diagram for turning on incoming call silence in a wearable device and an interface diagram for turning on incoming call silence in an electronic device is described below with reference to fig. 14 and 15.
Fig. 14 is an interface schematic diagram of turning on incoming call silence in a wearable device according to an embodiment of the present application. As shown in fig. 14 (a), a control 1202 to set an application program may be included in a desktop 1201 of the wearable device; the wearable device detects a click operation on the control 1202 of the setting application, as shown in (b) in fig. 14; after the wearable device detects an operation to the control 1202 to set the application, a setting display interface 1203 is displayed; setting a control 1204 including an auxiliary function in the display interface 1230, as shown in (c) in fig. 14; detecting a click operation on a control of the auxiliary function, as shown in (d) of fig. 14; after the wearable device detects a click operation on a control of the auxiliary function, a display interface 1205 of the auxiliary function is displayed; the display interface 1205 of the auxiliary function includes a gesture control 1206, as shown in fig. 14 (e); the wearable device detects a click operation on the gesture control, as shown in (f) in fig. 14; after the wearable device detects a click operation of the gesture control 1206, a gesture-directed display interface 1207 is displayed; gesture-directed display interface 1207 includes a control 1208 that turns the wrist twice to mute the incoming call, as shown in fig. 14 (g); the wearable device detects a click operation of a control that mutes a wrist call turned twice, as shown in (h) in fig. 14; after the wearable device detects a click operation of a control for turning the wrist incoming call mute twice, a setting display interface 1209 for incoming call mute is displayed; the call mute setting display interface 1209 includes a control 1210 for turning on call mute and a control 1211 for turning off call mute, as shown in (i) in fig. 14; as shown in (j) in fig. 14, when the wearable device detects a click operation on a control for starting call silence, a call silence function of the wearable device is started, that is, the method for controlling call silence provided by the embodiment of the present application is executed.
Optionally, fig. 14 is an exemplary illustration of a scenario for turning on incoming silence; the embodiment provided by the application can be also suitable for mute alarm clocks, mute video incoming calls and the like.
Fig. 15 is a schematic diagram of a guidance display interface for incoming call silence of a wearable device provided in an embodiment of the present application.
For example, as shown in (a) in fig. 15, the guidance display interface 1301 of the incoming call silence of the wearable device displays the prompt message of incoming call silence "flip out/in and then return immediately"; after the user carries the wearable device to execute corresponding operation, if the wearable device is currently connected with the electronic device and the electronic device is in an incoming call state; for example, as in the incoming call display interface 1302 shown in (b) of fig. 15, after detecting that the user performs an outward/inward flip and then returns immediately, a function of incoming call muting is performed.
Optionally, the incoming call mute function may include any of the following:
the electronic device stops the incoming call prompt information and does not hang up the telephone, the wearable device stops the incoming call prompt information and does not hang up the telephone, or the electronic device and the wearable device both stop the incoming call prompt information and do not hang up the telephone.
Wherein, the electronic device stops the incoming call prompt information and the phone is not hung up may include: the electronic device stops ringing and does not hang up the phone, the electronic device stops vibrating and does not hang up the phone, the electronic device stops ringing and vibrating and does not hang up the phone.
The wearable device stopping the incoming call prompt and not hanging up the phone may include: the wearable device stops ringing and does not hang up the phone, the wearable device stops vibrating and does not hang up the phone, the wearable device stops ringing and vibrating and does not hang up the phone.
Fig. 16 is an interface schematic diagram of starting incoming call silence in an electronic device according to an embodiment of the present application.
Illustratively, the graphical user interface (graphical user interface, GUI) shown in fig. 16 (a) is a desktop 1410 of the electronic device; the electronic device detects an operation in which the user clicks a control 1420 of the setup application on the desktop 1410, as shown in (b) of fig. 16; after the electronic device detects that the user clicks on control 1420 of the setup application on desktop 1410, another GUI may be displayed as shown in fig. 16 (c); the GUI shown in (c) of fig. 16 may be a display interface for setting an application, and the display interface may include controls such as wireless network, bluetooth, battery, or incoming call silence; for example, control 1430 includes incoming call silence; the electronic device detects a click operation on the control 1430 that mutes the incoming call, as shown in fig. 16 (d); after the electronic device detects the operation of the control 1430 for muting the incoming call, displaying a display interface for muting the incoming call; the display interface for the call silence may include an overall silence control 1440, a device silence control 1450, and a wearable device silence control 1460, as shown in (e) in fig. 16.
Alternatively, as shown in (f) in fig. 16, when the electronic device detects a click operation of the overall mute control, the electronic device and the wearable device may be controlled as a whole to perform the function of incoming call mute.
For example, upon an electronic device incoming call, the electronic device may ring, vibrate, or ring and vibrate; the wearable device may also be a bell, a vibration, or both; when the output tag value is 1, the electronic device and the wearable device can stop sending any prompt information. For example, if the electronic device is in the ringing and vibrating state and the wearable device is also in the ringing and vibrating state when the electronic device is in the incoming call state, the electronic device and the wearable device can stop ringing and vibrating when the output tag value is 1, so as to realize the silence of the incoming call.
Alternatively, as shown in (g) in fig. 16, when the electronic device detects a click operation of a control for muting the device, the incoming call muting function of the electronic device may be implemented separately.
For example, upon an incoming call to the electronic device, the electronic device may be in a ring, vibrating, or ring and vibrating state; when the output tag value is 1, the electronic equipment can be enabled to stop sending any prompt information. For example, if the electronic device is in ringing and vibrating when the electronic device is in a call, the electronic device can stop ringing and vibrating when the output tag value is 1, so as to realize silence of the call; at this time, under the condition that the electronic device realizes the incoming call mute function, the state of the wearable device is not limited; the wearable device may be in a ring, vibrating, or both ring and vibrating state.
Alternatively, as shown in (h) of fig. 16, when the electronic device detects a click operation of a control for muting the wearable device, the incoming call muting function of the wearable device may be implemented separately.
For example, upon an electronic device incoming call, the wearable device may be in a state of ringing, vibrating, or both ringing and vibrating; when the output tag value is 1, the wearable device can be enabled to stop sending any prompt information. For example, if the wearable device is in ringing and vibrating when the electronic device is in a call, the wearable device can stop ringing and vibrating when the output tag value is 1, so as to realize call silence; at this time, under the condition that the wearable device realizes the incoming call mute function, the state of the electronic device is not limited; the electronic device may be in a ring, vibrating, or ring and vibrating state.
Optionally, the foregoing is exemplified by an incoming call silence scenario; the method provided by the embodiment of the application is also suitable for a scene of a mute alarm clock or a scene of a mute video incoming call.
In an embodiment of the application, data of an acceleration sensor in the wearable device are acquired; determining whether data of the user rotating the wrist twice is detected based on the data of the acceleration sensor; under the condition that data of the wrist rotated twice by the user is detected, determining whether the data of the wrist rotated twice meets a time condition; under the condition that the data of the wrist rotated twice meets the time condition, the incoming call mute function can be realized for the electronic equipment and/or the wearable equipment; since in embodiments of the present application the wearable device need not be in a fixed position when detecting the user's operation; in other words, the method for controlling incoming call silence provided by the embodiment of the application can be suitable for more scenes, and a user does not need to perform rotation with the screen of the wearable device facing upwards and the palm facing downwards when performing relevant operations of incoming call silence; therefore, the method for controlling the incoming call silence can realize the incoming call silence more intelligently, so that a user can more conveniently execute relevant operations of the incoming call silence; and the user experience is improved.
Optionally, the method for controlling incoming call silence provided in the embodiment of the present application may also be applicable to a scenario of answering a phone call; namely, acquiring data of an acceleration sensor of the wearable device; based on the obtained data, outputting a tag value, which may be used to instruct the electronic device to answer or not answer the call.
It should be appreciated that the above illustration is to aid one skilled in the art in understanding the embodiments of the application and is not intended to limit the embodiments of the application to the specific numerical values or the specific scenarios illustrated. It will be apparent to those skilled in the art from the foregoing description that various equivalent modifications or variations can be made, and such modifications or variations are intended to be within the scope of the embodiments of the present application.
The method for controlling incoming call silence provided in the embodiment of the present application is described in detail above with reference to fig. 1 to 16; an embodiment of the device of the present application will be described in detail below with reference to fig. 17 and 18. It should be understood that the apparatus in the embodiments of the present application may perform the methods in the embodiments of the present application, that is, specific working procedures of the following various products may refer to corresponding procedures in the embodiments of the methods.
Fig. 17 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 1500 includes a detection module 1510 and a processing module 1520.
Alternatively, the electronic device 1500 may refer to the first electronic device shown in fig. 4.
Alternatively, in the case that the second electronic device has a certain storage space and operation capability, the electronic device 1500 may refer to the second electronic device as shown in fig. 4.
Wherein, the detecting module 1510 is configured to detect an incoming call of the first electronic device; processing module 1520 is configured to collect data of the acceleration sensor of the second electronic device in response to the incoming call; obtaining information of a first peak value and information of a second peak value based on data of the acceleration sensor, wherein the first peak value is a first acceleration signal amplitude related to a first action of a user, the first acceleration signal amplitude is an acceleration signal at a first moment, the second peak value is a second acceleration signal amplitude related to a second action of the user, and the second acceleration signal amplitude is an acceleration signal at a second moment; if the first action and the second action accord with preset actions and the direction of the first action and the direction of the second action are different, determining that the time difference between the first moment and the second moment is smaller than or equal to a first preset threshold value, and stopping part or all prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment.
Optionally, as an embodiment, the processing module 1520 is specifically configured to:
and determining that the time difference between the first time and the second time is smaller than or equal to a first preset threshold value, wherein the ratio of the first acceleration signal amplitude to the second acceleration signal amplitude meets a first range, and stopping part or all prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment.
Optionally, as an embodiment, the processing module 1520 is specifically configured to:
and processing the data of the acceleration sensor based on a peak searching algorithm to obtain a data set, wherein the data set comprises the information of the first peak value and the information of the second peak value.
Optionally, as an embodiment, the processing module 1520 is specifically configured to:
and processing the data of the acceleration sensor through a neural network model to obtain the data set, wherein the neural network model is used for running the peak finding algorithm.
Optionally, as an embodiment, the processing module 1520 is specifically configured to:
filtering the data of the acceleration sensor to obtain processed data;
And processing the processed data based on the peak searching algorithm to obtain the data set.
Optionally, as an embodiment, the processing module 1520 is specifically configured to:
and carrying out filtering processing on the data of the acceleration sensor based on an average value filter to obtain the processed data.
Optionally, as an embodiment, the information of the first peak includes a first identifier, where the first identifier is an identifier of a data frame corresponding to the first peak; the information of the second peak value comprises a second identifier, the second identifier is an identifier of a data frame corresponding to the second peak value, and the time difference value is a time difference value obtained based on the first identifier and the second identifier.
Optionally, as an embodiment, the direction of the first action is opposite to the direction of the second action.
Optionally, as an embodiment, the direction of the first action is opposite to the direction of the second action, including:
the direction of the first action is clockwise, and the direction of the second action is anticlockwise; or,
the direction of the first action is anticlockwise and the direction of the second action is clockwise.
Optionally, as an embodiment, the processing module 1520 is specifically configured to:
and acquiring data of the acceleration sensor in the second electronic equipment within a preset time period, wherein the preset time period is the time period of the incoming call.
Optionally, as an embodiment, the first peak is the first acceleration signal amplitude acquired based on the first action of the user; the second peak is the second acceleration signal amplitude acquired based on the second action of the user.
Optionally, as an embodiment, the preset action includes an action of turning over the wrist.
Optionally, as an embodiment, the processing module 1520 is specifically configured to:
stopping all prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment.
Optionally, as an embodiment, the processing module 1520 is specifically configured to:
stopping all prompt information of the incoming call in the first electronic equipment and the second electronic equipment.
Optionally, as an embodiment, the prompt information includes a ringing prompt information and/or a vibration prompt information.
Optionally, as an embodiment, the communicatively connecting the first electronic device with the second electronic device includes:
And the first electronic equipment is in wireless connection with the second electronic equipment, or the first electronic equipment is in Bluetooth connection with the second electronic equipment.
Optionally, as an embodiment, the processing module 1520 is further configured to:
displaying a first interface;
and detecting a first operation in the first interface, wherein the first operation is an operation for indicating to start incoming call mute.
The electronic device 1500 is embodied as a functional module. The term "module" herein may be implemented in software and/or hardware, and is not specifically limited thereto.
For example, a "module" may be a software program, a hardware circuit, or a combination of both that implements the functionality described above. The hardware circuitry may include application specific integrated circuits (application specific integrated circuit, ASICs), electronic circuits, processors (e.g., shared, proprietary, or group processors, etc.) and memory for executing one or more software or firmware programs, merged logic circuits, and/or other suitable components that support the described functions.
Thus, the elements of the examples described in the embodiments of the present application can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Fig. 18 shows a schematic structural diagram of an electronic device provided in the present application. The dashed line in fig. 18 indicates that the unit or the module is optional; the electronic device 1600 may be used to implement the methods described in the method embodiments described above.
The electronic device 1600 includes one or more processors 1601, which one or more processors 1601 may support a method for controlling incoming call muting in an embodiment of a method implemented by the electronic device 1600. The processor 1601 may be a general-purpose processor or a special-purpose processor. For example, the processor 1601 may be a central processing unit (central processing unit, CPU), digital signal processor (digital signal processor, DSP), application specific integrated circuit (application specific integrated circuit, ASIC), field programmable gate array (field programmable gate array, FPGA) or other programmable logic device such as discrete gates, transistor logic, or discrete hardware components.
The processor 1601 may be configured to control the electronic device 1600, execute software programs, and process data of the software programs. The electronic device 1600 may also include a communication unit 1605 to enable input (reception) and output (transmission) of signals.
For example, electronic device 1600 may be a chip, communication unit 1605 may be input and/or output circuitry of the chip, or communication unit 1605 may be a communication interface of the chip, which may be part of a terminal device or other electronic device.
For another example, the electronic device 1600 may be a terminal device, the communication unit 1605 may be a transceiver of the terminal device, or the communication unit 1605 may be a transceiver circuit of the terminal device.
The electronic device 1600 may include one or more memories 1602 having a program 1604 stored thereon, the program 1604 being executable by the processor 1601 to generate instructions 1603 for causing the processor 1601 to perform the method for controlling incoming call muting described in the above method embodiments according to the instructions 1603.
Optionally, the memory 1602 may also have data stored therein.
Alternatively, the processor 1601 may also read data stored in the memory 1602, which may be stored at the same memory address as the program 1604, or which may be stored at a different memory address than the program 1604.
The processor 1601 and the memory 1602 may be provided separately or may be integrated, for example, on a System On Chip (SOC) of the terminal device.
Illustratively, the memory 1602 may be used to store a related program 1604 of a method of controlling incoming call silence provided in an embodiment of the present application, and the processor 1601 may be used to invoke the related program 1604 of a method of controlling incoming call silence stored in the memory 1602 when performing control to silence, to perform the method of controlling incoming call silence of an embodiment of the present application; for example, an incoming call to a first electronic device is detected; responding to the incoming call, and collecting data of a acceleration sensor in the second electronic equipment; obtaining information of a first peak value and information of a second peak value based on data of an acceleration sensor, wherein the first peak value is a first acceleration signal amplitude related to a first action of a user, the first acceleration signal amplitude is an acceleration signal at a first moment, the second peak value is a second acceleration signal amplitude related to a second action of the user, and the second acceleration signal amplitude is an acceleration signal at a second moment; if the first action and the second action accord with the preset action and the direction of the first action and the direction of the second action are different, determining that the time difference between the first moment and the second moment is smaller than or equal to a first preset threshold value, and stopping part or all of prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment.
Alternatively, the processor 1602 may be used to perform the various steps/functions of the embodiments shown in fig. 4-13.
The present application also provides a computer program product which, when executed by the processor 1601, implements a method of controlling incoming call muting in any of the method embodiments of the present application.
The computer program product may be stored in the memory 1602, for example, the program 1604, and the program 1604 is finally converted into an executable object file capable of being executed by the processor 1601 by a process such as preprocessing, compiling, assembling, and linking.
The present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a computer, implements a method of controlling incoming call silence according to any of the method embodiments of the present application. The computer program may be a high-level language program or an executable object program.
Optionally, the computer readable storage medium is, for example, memory 1602. The memory 1602 may be volatile memory or nonvolatile memory, or the memory 1602 may include both volatile and nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. The volatile memory may be random access memory (random access memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous DRAM (SLDRAM), and direct memory bus RAM (DR RAM).
It should be noted that while the electronic device 1600 shown in fig. 18 described above illustrates only a memory, a processor, and a communication interface, those skilled in the art will appreciate that in a particular implementation, the electronic device 1600 may also include other components necessary to achieve proper operation. Also, those skilled in the art will appreciate that the electronic device 1600 described above may also include hardware devices that perform other additional functions, as desired. Furthermore, those skilled in the art will appreciate that the electronic device 1600 described above may also include only the devices necessary to implement embodiments of the present application, and not necessarily all of the devices shown in fig. 18.
The above embodiments may be implemented in whole or in part by software, hardware, firmware, or any other combination. When implemented in software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, the processes or functions described in accordance with the embodiments of the present application are all or partially produced. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center by wired (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more sets of available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. The semiconductor medium may be a solid state disk.
It should be understood that the term "and/or" is merely an association relationship describing the associated object, and means that three relationships may exist, for example, a and/or B may mean: there are three cases, a alone, a and B together, and B alone, wherein a, B may be singular or plural. In addition, the character "/" herein generally indicates that the associated object is an "or" relationship, but may also indicate an "and/or" relationship, and may be understood by referring to the context.
In the present application, "at least one" means one or more, and "a plurality" means two or more. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural.
It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application. It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (20)
1. A method of controlling incoming call muting applied to a system comprising a first electronic device and a second electronic device, the first electronic device being communicatively connected to the second electronic device, the second electronic device being a wearable device, the method comprising:
detecting an incoming call of the first electronic device;
responding to the incoming call, acquiring data of an acceleration sensor of the second electronic equipment, wherein the time length for acquiring the data of the acceleration sensor is longer than or equal to the acquisition time length, and the acquisition time length is the time length for completing the first action of the user and the second action of the user;
obtaining information of a first peak value and information of a second peak value based on data of the acceleration sensor, wherein the first peak value is a first acceleration signal amplitude related to the first action, the first acceleration signal amplitude is an acceleration signal at a first moment, the second peak value is a second acceleration signal amplitude related to the second action, and the second acceleration signal amplitude is an acceleration signal at a second moment, and when the first action and the second action are executed, the second electronic equipment is in a first pose, and the first pose is a pose except that a screen is upward and a palm of a user is downward;
If the first action and the second action accord with preset actions and the direction of the first action and the direction of the second action are different, determining that the time difference between the first moment and the second moment is smaller than or equal to a first preset threshold value, and stopping part or all prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment.
2. The method of claim 1, wherein the determining that the time difference between the first time and the second time is less than or equal to a first preset threshold value, and stopping part or all of the alert information of the incoming call in the first electronic device and/or the second electronic device, comprises:
and determining that the time difference between the first time and the second time is smaller than or equal to a first preset threshold value, wherein the ratio of the first acceleration signal amplitude to the second acceleration signal amplitude meets a first range, and stopping part or all prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment.
3. The method of claim 1, wherein the deriving the information of the first peak and the information of the second peak based on the data of the acceleration sensor comprises:
And processing the data of the acceleration sensor based on a peak searching algorithm to obtain a data set, wherein the data set comprises the information of the first peak value and the information of the second peak value.
4. A method according to claim 3, wherein the processing the data of the acceleration sensor based on the peak finding algorithm to obtain a data set comprises:
and processing the data of the acceleration sensor through a neural network model to obtain the data set, wherein the neural network model is used for running the peak finding algorithm.
5. A method according to claim 3, wherein the processing the data of the acceleration sensor based on the peak finding algorithm to obtain a data set comprises:
filtering the data of the acceleration sensor to obtain processed data;
and processing the processed data based on the peak searching algorithm to obtain the data set.
6. The method of claim 5, wherein filtering the data of the acceleration sensor to obtain processed data comprises:
and carrying out filtering processing on the data of the acceleration sensor based on an average value filter to obtain the processed data.
7. The method of any of claims 3 to 6, wherein the information of the first peak includes a first identification, the first identification being an identification of a data frame to which the first peak corresponds; the information of the second peak value comprises a second identifier, the second identifier is an identifier of a data frame corresponding to the second peak value, and the time difference value is a time difference value obtained based on the first identifier and the second identifier.
8. The method of any one of claims 1 to 6, wherein the direction of the first action is opposite to the direction of the second action.
9. The method of claim 8, wherein the direction of the first action is opposite to the direction of the second action, comprising:
the direction of the first action is clockwise, and the direction of the second action is anticlockwise; or,
the direction of the first action is anticlockwise and the direction of the second action is clockwise.
10. The method of any of claims 1 to 6, wherein the acquiring data of the acceleration sensor of the second electronic device comprises:
and acquiring data of the acceleration sensor in the second electronic equipment within a preset time period, wherein the preset time period is the time period of the incoming call.
11. The method of any of claims 1-6, wherein the first peak is the first acceleration signal amplitude acquired based on the first action of the user; the second peak is the second acceleration signal amplitude acquired based on the second action of the user.
12. The method of any one of claims 1 to 6, wherein the preset motion comprises a motion of flipping the wrist.
13. The method according to any one of claims 1 to 6, wherein the stopping of part or all of the alert information of the incoming call in the first electronic device and/or the second electronic device comprises:
stopping all prompt information of the incoming call in the first electronic equipment and/or the second electronic equipment.
14. The method of claim 13, wherein the stopping all alert information for the incoming call in the first electronic device and/or the second electronic device comprises:
stopping all prompt information of the incoming call in the first electronic equipment and the second electronic equipment.
15. The method of claim 14, wherein the alert message comprises a ringing alert message and/or a vibration alert message.
16. The method of any of claims 1-6, wherein the first electronic device communicatively connecting with the second electronic device comprises:
and the first electronic equipment is in wireless connection with the second electronic equipment, or the first electronic equipment is in Bluetooth connection with the second electronic equipment.
17. The method of any one of claims 1 to 6, further comprising:
displaying a first interface;
and detecting a first operation in the first interface, wherein the first operation is an operation for indicating to start incoming call mute.
18. An electronic device, comprising:
one or more processors and memory;
the memory is coupled with the one or more processors, the memory for storing computer program code comprising computer instructions that the one or more processors invoke to cause the electronic device to perform the method of any of claims 1-17.
19. A chip system for application to an electronic device, the chip system comprising one or more processors for invoking computer instructions to cause the electronic device to perform the method of any of claims 1 to 17.
20. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, which when executed by a processor causes the processor to perform the method of any of claims 1 to 17.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210910764.9A CN116033061B (en) | 2022-07-29 | 2022-07-29 | Method for controlling incoming call silence and electronic equipment |
PCT/CN2023/091978 WO2024021727A1 (en) | 2022-07-29 | 2023-05-04 | Method for controlling incoming call to be mute, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210910764.9A CN116033061B (en) | 2022-07-29 | 2022-07-29 | Method for controlling incoming call silence and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116033061A CN116033061A (en) | 2023-04-28 |
CN116033061B true CN116033061B (en) | 2024-04-05 |
Family
ID=86073861
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210910764.9A Active CN116033061B (en) | 2022-07-29 | 2022-07-29 | Method for controlling incoming call silence and electronic equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN116033061B (en) |
WO (1) | WO2024021727A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116033061B (en) * | 2022-07-29 | 2024-04-05 | 荣耀终端有限公司 | Method for controlling incoming call silence and electronic equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104796550A (en) * | 2015-04-23 | 2015-07-22 | 谢玉章 | Method for controlling intelligent hardware by aid of bodies during incoming phone call answering |
CN105577924A (en) * | 2015-12-21 | 2016-05-11 | 小米科技有限责任公司 | Method of wearable equipment for controlling terminal equipment, wearable equipment and terminal equipment |
CN106331366A (en) * | 2016-09-12 | 2017-01-11 | 广州视源电子科技股份有限公司 | Incoming call processing method, wearable device, mobile terminal and incoming call processing system |
CN109714481A (en) * | 2018-12-28 | 2019-05-03 | 深圳市潮流网络技术有限公司 | A kind of mobile terminal call management method |
CN113055530A (en) * | 2017-07-13 | 2021-06-29 | 广东小天才科技有限公司 | Mode switching method and device |
CN113382122A (en) * | 2016-06-02 | 2021-09-10 | 荣耀终端有限公司 | Intelligent reminding method, terminal, wearable device and system |
CN114222020A (en) * | 2020-09-03 | 2022-03-22 | 华为技术有限公司 | Position relation identification method and electronic equipment |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102946488A (en) * | 2012-11-23 | 2013-02-27 | 广东欧珀移动通信有限公司 | System and method for mute control of mobile phone |
JP2014220558A (en) * | 2013-05-01 | 2014-11-20 | パナソニック株式会社 | Portable terminal apparatus, sound mute processing method and program |
CN105162979B (en) * | 2015-08-26 | 2019-02-05 | Oppo广东移动通信有限公司 | A kind of incoming call mute control method and smartwatch |
CN114051066A (en) * | 2021-11-26 | 2022-02-15 | 歌尔科技有限公司 | Wearable device, incoming call control method and device thereof, and readable storage medium |
CN116033061B (en) * | 2022-07-29 | 2024-04-05 | 荣耀终端有限公司 | Method for controlling incoming call silence and electronic equipment |
-
2022
- 2022-07-29 CN CN202210910764.9A patent/CN116033061B/en active Active
-
2023
- 2023-05-04 WO PCT/CN2023/091978 patent/WO2024021727A1/en unknown
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104796550A (en) * | 2015-04-23 | 2015-07-22 | 谢玉章 | Method for controlling intelligent hardware by aid of bodies during incoming phone call answering |
CN105577924A (en) * | 2015-12-21 | 2016-05-11 | 小米科技有限责任公司 | Method of wearable equipment for controlling terminal equipment, wearable equipment and terminal equipment |
CN113382122A (en) * | 2016-06-02 | 2021-09-10 | 荣耀终端有限公司 | Intelligent reminding method, terminal, wearable device and system |
CN106331366A (en) * | 2016-09-12 | 2017-01-11 | 广州视源电子科技股份有限公司 | Incoming call processing method, wearable device, mobile terminal and incoming call processing system |
CN113055530A (en) * | 2017-07-13 | 2021-06-29 | 广东小天才科技有限公司 | Mode switching method and device |
CN109714481A (en) * | 2018-12-28 | 2019-05-03 | 深圳市潮流网络技术有限公司 | A kind of mobile terminal call management method |
CN114222020A (en) * | 2020-09-03 | 2022-03-22 | 华为技术有限公司 | Position relation identification method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2024021727A9 (en) | 2024-03-28 |
WO2024021727A1 (en) | 2024-02-01 |
CN116033061A (en) | 2023-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113726950B (en) | Image processing method and electronic equipment | |
KR102577396B1 (en) | Recording frame rate control method and related devices | |
CN109559270B (en) | Image processing method and electronic equipment | |
CN112887583B (en) | Shooting method and electronic equipment | |
JP7355941B2 (en) | Shooting method and device in long focus scenario | |
CN115866121A (en) | Application interface interaction method, electronic device and computer-readable storage medium | |
CN114365482A (en) | Large aperture blurring method based on Dual Camera + TOF | |
JP7400095B2 (en) | Display method of display elements and electronic equipment | |
CN111741283A (en) | Image processing apparatus and method | |
CN112532892A (en) | Image processing method and electronic device | |
CN113891009B (en) | Exposure adjusting method and related equipment | |
CN116033061B (en) | Method for controlling incoming call silence and electronic equipment | |
CN113536866A (en) | Character tracking display method and electronic equipment | |
CN113746961A (en) | Display control method, electronic device, and computer-readable storage medium | |
CN116033060B (en) | Method for controlling incoming call silence and electronic equipment | |
US20240193945A1 (en) | Method for determining recommended scenario and electronic device | |
CN111031492B (en) | Call demand response method and device and electronic equipment | |
CN112437341B (en) | Video stream processing method and electronic equipment | |
CN114205457A (en) | Method for moving user interface element and electronic equipment | |
CN111982037B (en) | Height measuring method and electronic equipment | |
CN114445522A (en) | Brush effect graph generation method, image editing method, device and storage medium | |
CN116095512B (en) | Photographing method of terminal equipment and related device | |
CN114006976B (en) | Interface display method and terminal equipment | |
CN116991274B (en) | Upper sliding effect exception handling method and electronic equipment | |
WO2023124829A1 (en) | Collaborative voice input method, electronic device, and computer-readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | 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 |