CN114726949B - Incoming call answering method and Bluetooth headset - Google Patents
Incoming call answering method and Bluetooth headset Download PDFInfo
- Publication number
- CN114726949B CN114726949B CN202210404437.6A CN202210404437A CN114726949B CN 114726949 B CN114726949 B CN 114726949B CN 202210404437 A CN202210404437 A CN 202210404437A CN 114726949 B CN114726949 B CN 114726949B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- target mobile
- time interval
- incoming call
- broadcast signal
- 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 54
- 230000033001 locomotion Effects 0.000 claims abstract description 37
- 230000008859 change Effects 0.000 claims abstract description 25
- 238000005070 sampling Methods 0.000 claims description 71
- 230000004044 response Effects 0.000 claims description 14
- 238000012545 processing Methods 0.000 claims description 10
- 238000001914 filtration Methods 0.000 claims description 9
- 230000006870 function Effects 0.000 claims description 7
- 230000009471 action Effects 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 238000001514 detection method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000035945 sensitivity Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 238000011144 upstream manufacturing Methods 0.000 description 1
Images
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/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The invention provides a method for answering an incoming call and a Bluetooth earphone, which are characterized in that whether a broadcast signal carrying an incoming call flag bit and sent by one or more mobile terminals in a plurality of mobile terminals which are paired with the Bluetooth earphone exists or not is determined by periodically scanning broadcast signals on a plurality of Bluetooth broadcast channels, after the broadcast signal carrying the incoming call flag bit and sent by the paired mobile terminals is scanned, the paired mobile terminals are determined as target mobile terminals, the signal intensity change information of the broadcast signal of the target mobile terminal is detected, the relative motion state of the Bluetooth earphone and the target mobile terminals is determined according to the signal intensity change information of the broadcast signal of the target mobile terminals, whether the relative motion state of the Bluetooth earphone and the target mobile terminals meets a preset condition or not is judged, if yes, the Bluetooth earphone and the target mobile terminals are connected to answer the incoming call is judged, the rapid connection and the answering of the incoming call can be realized under the condition that the Bluetooth earphone and the mobile terminals are paired in many pairs and many pairs, and the user experience is improved.
Description
Technical Field
The invention relates to the technical field of Bluetooth, in particular to a method for answering a call and a Bluetooth headset.
Background
Compared with wired earphones, the Bluetooth earphones are widely loved by consumers with excellent portability advantages, and along with the improvement of low power consumption technology, audio processing technology and the like of the Bluetooth earphones, the defects of the Bluetooth earphones in the aspects of endurance and tone quality are not prominent, so that the Bluetooth earphones gradually replace the wired earphones to become earphones which are used by people more often. Even so, there still exist some disadvantages in present bluetooth headset and wired earphone, for example wired earphone disect insertion arbitrary smart mobile phone of the same interface can use, does not have loaded down with trivial details pairing and connection process, also does not have the restriction in quantity. For the bluetooth headset, due to consideration of various aspects of program design logics of manufacturers at upstream and downstream, most of the bluetooth headsets in the market can only be paired with one smart phone, when the bluetooth headset needs to be used on other smart phones, the currently paired smart phones need to be released from a partner and then be paired for use, and some smart phones can limit the number of the paired bluetooth headsets, so that users who own a plurality of smart phones or a plurality of sets of bluetooth headsets at the same time can only select the bluetooth headsets carelessly and cannot be matched for use flexibly.
The technical scheme of the invention is applied to the scene of one-to-many and many-to-many pairing of the mobile terminal and the Bluetooth headset, wherein the mobile terminal comprises a smart phone, a non-smart phone, a tablet computer or a PDA (Personal Digital Assistant/palm computer) and the like with Bluetooth and cellular mobile communication functions. The one-to-many pairing scene refers to a situation that one mobile terminal is paired with a plurality of Bluetooth earphones, and the many-to-many pairing scene refers to a situation that a plurality of mobile terminals are paired with a plurality of Bluetooth earphones. In the case that the mobile terminal and the bluetooth headset are paired but not connected, if the mobile terminal receives an incoming call, the following situations may occur:
1. the paired Bluetooth earphones do not exist in the Bluetooth signal connection range, and under the condition, a user can directly use a loudspeaker or other equipment such as a wired earphone and the like of the mobile phone to answer the call.
2. In this case, the user may first select to answer the call using the bluetooth headset, or may select to directly answer the call using a speaker of the mobile phone or other devices, such as a wired headset.
3. In the case that a plurality of paired bluetooth headsets exist in the bluetooth signal connection range, a user may first select one of the bluetooth headsets to answer a call, or may select a speaker or other devices, such as a wired headset, of the mobile phone to answer the call.
For the above case 2 or case 3, it is obviously not appropriate to directly select to connect the bluetooth headsets or one of the bluetooth headsets to answer the call without user intervention, and it is not necessarily in line with the user's requirement to directly use the speaker or other devices of the mobile phone to answer the call. In the traditional scheme, one mobile terminal such as a smart phone can only be paired with one pair of Bluetooth earphones, when the paired Bluetooth earphones are located in the Bluetooth signal range of the mobile terminal, the mobile terminal is directly connected with the mobile terminal, and all sound information is delivered to the Bluetooth earphones for playing, so that the problem of selection does not exist. When a mobile terminal can be paired with a plurality of sets of Bluetooth earphones, or a set of Bluetooth earphones can be paired with a plurality of mobile terminals, the direct connection is not in line with the user requirements when the mobile terminal enters a Bluetooth signal range, under the condition, the user needs to enter a Bluetooth equipment management interface to select and connect, and for an incoming call answering event which needs short response time, the user needs to perform complicated operation and then answer the incoming call, so that the user experience is influenced badly.
Disclosure of Invention
The invention provides a call answering method and a Bluetooth headset based on the problems, which can realize quick connection and call answering under the condition that the Bluetooth headset and a mobile terminal are paired in many-to-many mode, and improve user experience.
In view of the above, a first aspect of the present invention provides an incoming call answering method applied to a bluetooth headset, including:
s100: periodically scanning for broadcast signals on a plurality of bluetooth broadcast channels;
s200: determining whether a broadcast signal which is sent by one or more mobile terminals in the plurality of mobile terminals paired with the Bluetooth headset and carries an incoming call flag bit exists;
s300: after the broadcast signal which is sent by the paired mobile terminal and carries the incoming call flag bit is scanned, the paired mobile terminal is determined as a target mobile terminal;
s400: detecting signal strength variation information of a broadcast signal of the target mobile terminal;
s500: determining the relative motion state of the Bluetooth headset and the target mobile terminal according to the signal intensity change information of the broadcast signal of the target mobile terminal;
s600: judging whether the relative motion state of the Bluetooth headset and the target mobile terminal meets a preset condition or not;
s700: and if so, enabling the Bluetooth headset to be connected with the target mobile terminal so as to answer the incoming call.
Further, in the method for answering a call, after scanning a broadcast signal with a call flag bit sent by the paired mobile terminal, the method further includes:
s350: and sending a first response message for responding to the broadcast signal to the paired mobile terminals, so that the paired mobile terminals are adjusted from a state of sending the broadcast signal at a first time interval to a state of sending the broadcast signal at a second time interval, wherein the second time interval is smaller than the first time interval.
Further, in the incoming call answering method, the step of detecting the signal strength variation information of the broadcast signal of the target mobile terminal specifically includes:
s410: sampling a broadcast signal of the target mobile terminal at a third time interval which is greater than or equal to the second time interval to obtain sampling data, wherein when the third time interval is not equal to the second time interval, the third time interval is an integral multiple of the second time interval;
s420: and processing the sampling data to obtain the signal intensity change information of the broadcast signal of the target mobile terminal.
Further, in the incoming call answering method, the step of processing the sampled data to obtain the signal strength change information of the broadcast signal of the target mobile terminal specifically includes:
s421: inputting the sampling data set obtained by current sampling into a Gaussian filter function for filtering by taking a fourth time interval as a period, wherein the fourth time interval is an integral multiple of the third time interval;
s422: and fitting a sampled data curve by taking the sampled data subjected to Gaussian filtering as samples.
Further, in the incoming call answering method, the step of determining the relative motion state of the bluetooth headset and the target mobile terminal according to the signal strength variation information of the broadcast signal of the target mobile terminal specifically includes:
s510: calculating to obtain an average value of the sampling data curve;
s520: determining whether the sampled data curve exists more than the average value and the difference value from the average value is more than a first threshold value; if yes, the following steps are executed:
s530: acquiring a first time point corresponding to the maximum value of the sampling data curve;
s540: a fifth time interval is pushed forwards by the first time point to obtain a second time point;
s550: pushing a sixth time interval backwards by the first time point to obtain a third time point;
s560: and when the difference value between the value on the sampling data curve corresponding to the second time point and the third time point and the maximum value is smaller than a second threshold value, determining that the relative motion state of the Bluetooth headset and the target mobile terminal meets a preset condition.
Further, in the incoming call answering method, in the step of determining whether the sampling data curve has a value greater than the average value and a difference value with the average value is greater than a first threshold value, if the determination is negative, the step of sampling the broadcast signal of the target mobile terminal at a third time interval greater than or equal to the second time interval to obtain the sampling data is returned.
Further, in the method for answering an incoming call, after the step of obtaining a second time point by advancing a fifth time interval from the first time point, the method further includes:
s543: when the second time point does not exist in the sampling data curve, merging the sampling data of the previous fourth time interval into the current sampling data;
s544: and returning to the step of inputting the sampling data set obtained by current sampling into a Gaussian filter function for filtering.
Further, in the incoming call answering method, after the step of sampling the signal strength of the broadcast signal of the target mobile terminal at a third time interval greater than or equal to the second time interval to obtain sampled data, the method further includes:
s450: and when the broadcast signal of the target mobile terminal disappears, returning to the step of periodically scanning the broadcast signals on the plurality of Bluetooth broadcast channels.
Further, in the method for answering the incoming call, the step of establishing a connection between the bluetooth headset and the target mobile terminal to answer the incoming call specifically includes:
s710: transmitting a second response message for responding to the broadcast signal to the target mobile terminal;
s720: receiving a frequency hopping synchronization data packet sent by the target mobile terminal;
s730: establishing connection with the target mobile terminal according to the frequency hopping same-frequency data packet;
s740: and sending a control instruction for answering the incoming call to the target mobile terminal to enable the target mobile terminal to answer the incoming call and send incoming call voice data to the Bluetooth headset.
A second aspect of the present invention provides a bluetooth headset, including a processor, a memory, and a control program stored on the memory and executable by the processor, wherein the control program, when executed by the processor, implements the incoming call answering method as described in any one of the above.
The invention provides a method for answering an incoming call and a Bluetooth earphone, which are characterized in that whether a broadcast signal carrying an incoming call flag bit and sent by one or more mobile terminals in a plurality of mobile terminals which are paired with the Bluetooth earphone exists or not is determined by periodically scanning broadcast signals on a plurality of Bluetooth broadcast channels, after the broadcast signal carrying the incoming call flag bit and sent by the paired mobile terminals is scanned, the paired mobile terminals are determined as target mobile terminals, the signal intensity change information of the broadcast signal of the target mobile terminal is detected, the relative motion state of the Bluetooth earphone and the target mobile terminals is determined according to the signal intensity change information of the broadcast signal of the target mobile terminals, whether the relative motion state of the Bluetooth earphone and the target mobile terminals meets a preset condition or not is judged, if yes, the Bluetooth earphone and the target mobile terminals are connected to answer the incoming call is judged, the rapid connection and the answering of the incoming call can be realized under the condition that the Bluetooth earphone and the mobile terminals are paired in many pairs and many pairs, and the user experience is improved.
Drawings
Fig. 1 is an interaction flowchart of a method for answering an incoming call according to an embodiment of the present invention;
fig. 2 is a control flow chart of a method for answering an incoming call according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for determining a relative movement mode of a bluetooth headset and a mobile terminal according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for connecting a bluetooth headset to a mobile terminal according to an embodiment of the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention, taken in conjunction with the accompanying drawings and detailed description, is set forth below. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced otherwise than as specifically described herein, and thus the scope of the present invention is not limited by the specific embodiments disclosed below.
In the description of the present invention, the terms "plurality" or "a plurality" refer to two or more, and unless otherwise specifically limited, the terms "upper", "lower", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are merely for convenience in describing the present invention and simplifying the description, but do not indicate or imply that the referred device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and thus should not be construed as limiting the present invention. The terms "connected", "mounted", "fixed", and the like are to be construed broadly and may include, for example, fixed connections, detachable connections, or integral connections; may be directly connected or indirectly connected through an intermediate. The specific meanings of the above terms in the present invention can be understood according to specific situations by those of ordinary skill in the art. Furthermore, the 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 defined as "first," "second," etc. may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless otherwise specified.
In the description of the specification, reference to "one embodiment," "some embodiments," "a specific embodiment," or the like, means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
An incoming call answering method and a bluetooth headset according to some embodiments of the present invention are described below with reference to fig. 1 to 4.
As shown in fig. 1, a first aspect of the present invention provides an incoming call answering method, which is applied to a bluetooth headset. In the technical scheme of the invention, after the mobile terminal receives the incoming call, the mobile terminal sequentially sends the broadcast signals to the plurality of Bluetooth broadcast channels through the Bluetooth module of the mobile terminal, and the broadcast signals carry the incoming call flag bits, so that when other Bluetooth devices in the Bluetooth signal coverage range of the mobile terminal monitor the broadcast signals, the mobile terminal which is currently receiving the incoming call but is not in the listening state can recognize the broadcast signals to be sent by the mobile terminal.
As shown in fig. 2, in the technical solution of the present invention, the incoming call answering method includes:
s100: broadcast signals on a plurality of bluetooth broadcast channels are periodically scanned. In the technical solution of the present invention, when the bluetooth headset is in a standby state, that is, in a pairing unconnected state, the bluetooth headset is configured to enter a page scanning sub-state by default, and in the page scanning sub-state, the bluetooth headset listens to a plurality of bluetooth broadcast channels, that is, periodically performs page scanning on the plurality of bluetooth broadcast channels to acquire broadcast signals sent by other bluetooth devices, such as a mobile terminal, on the plurality of bluetooth broadcast channels.
S200: and determining whether a broadcast signal carrying an incoming call flag bit sent by one or more mobile terminals in the plurality of mobile terminals paired with the Bluetooth headset exists or not. In the technical scheme of the invention, when the Bluetooth headset intercepts a plurality of Bluetooth broadcast channels, the Bluetooth headset firstly determines whether broadcast signals carrying incoming call flag bits, which are sent by one or more mobile terminals in a plurality of mobile terminals paired with the Bluetooth headset, exist.
S300: and after the broadcast signal carrying the incoming call flag bit sent by the paired mobile terminal is scanned, determining the paired mobile terminal as a target mobile terminal. And when the Bluetooth headset scans the broadcast signals which are sent by the paired mobile terminals and carry the incoming call flag bits, preferentially responding to the broadcast signals. In the technical solution of the embodiment of the present invention, when a plurality of bluetooth headsets paired with the mobile terminal all listen to a broadcast signal carrying an incoming call flag bit sent by the same mobile terminal, the paired mobile terminal is determined as a target mobile terminal in response to the broadcast signal, and the following step of detecting signal strength change information of the broadcast signal of the target mobile terminal is performed.
S400: and detecting the signal strength change information of the broadcast signal of the target mobile terminal. Factors affecting the bluetooth signal strength are many, such as the transmitting power of the bluetooth signal transmitter, the distance between the bluetooth signal transmitter and the bluetooth signal receiver, whether there is an obstacle between the bluetooth signal transmitter and the bluetooth signal receiver, the material of the obstacle, the sensitivity of the bluetooth signal receiver, and the like, and similarly, the variation of these factors also causes the variation of the bluetooth signal strength. And correspondingly judging the change condition of factors influencing the signal strength of the broadcast signal of the target mobile terminal by depending on the detection result of the Bluetooth headset on the signal strength change information of the broadcast signal of the target mobile terminal.
S500: and determining the relative motion state of the Bluetooth headset and the target mobile terminal according to the signal intensity change information of the broadcast signal of the target mobile terminal. Generally, when no human or program is involved, the transmission power of the bluetooth signal transmitter, the distance between the bluetooth signal transmitter and the bluetooth signal receiver, whether an obstacle exists between the bluetooth signal transmitter and the bluetooth signal receiver, the material of the obstacle, the sensitivity of the bluetooth signal receiver, and the like do not change actively or change significantly actively, so that when a user moves the mobile terminal or the bluetooth headset, the bluetooth headset and the target mobile terminal move relatively to each other, and the state of the relative movement can be represented significantly in the signal intensity change information of the broadcast signal of the target mobile terminal detected by the bluetooth headset. For example, as shown in fig. 1, when there are two bluetooth headsets, namely, the bluetooth headset 1 and the bluetooth headset 2 shown in the figure, in the coverage area of the broadcast signal of the mobile terminal, both the bluetooth headset 1 and the bluetooth headset 2 may periodically scan the broadcast signals on a plurality of bluetooth broadcast channels, and detect the elasticity variation of the broadcast signals to determine the relative motion state of the current bluetooth headset and the mobile terminal.
S600: and judging whether the relative motion state of the Bluetooth headset and the target mobile terminal meets a preset condition or not. When a user moves the mobile terminal or the Bluetooth headset, if the relative motion state of the Bluetooth headset and the target mobile terminal meets a preset condition through the movement action, the Bluetooth headset can recognize the operation intention of the user from the detected signal intensity change information of the broadcast signal of the target mobile terminal.
S700: and if so, enabling the Bluetooth headset to be connected with the target mobile terminal so as to answer the incoming call. The bluetooth headset recognizes the operation intention of the user from the detected signal strength change information of the broadcast signal of the target mobile terminal, for example, the operation of the user means that the bluetooth headset establishes a bluetooth connection with the target mobile terminal to answer a call, and then the bluetooth headset can execute a corresponding instruction to match the operation intention of the user.
The invention provides a method for answering an incoming call and a Bluetooth headset, which are characterized in that whether a broadcast signal carrying a calling flag bit sent by one or more mobile terminals in a plurality of mobile terminals which are paired with the Bluetooth headset exists or not is determined by periodically scanning broadcast signals on a plurality of Bluetooth broadcast channels, after the broadcast signal carrying the calling flag bit sent by the paired mobile terminals is scanned, the paired mobile terminals are determined as target mobile terminals, the signal intensity change information of the broadcast signal of the target mobile terminals is detected, the relative motion state of the Bluetooth headset and the target mobile terminals is determined according to the signal intensity change information of the broadcast signal of the target mobile terminals, whether the relative motion state of the Bluetooth headset and the target mobile terminals meets preset conditions or not is judged, if yes, the Bluetooth headset and the target mobile terminals are connected to answer the incoming call is judged, the quick connection and the incoming call answering under the condition that the Bluetooth headset and the mobile terminals are paired in many pairs and many pairs can be realized, and the user experience is improved.
Further, in some embodiments of the present invention, after scanning the broadcast signal with the incoming call flag bit sent by the paired mobile terminal, the method further includes:
s350: and sending a first response message for responding to the broadcast signal to the paired mobile terminals, so that the paired mobile terminals are adjusted from a state of sending the broadcast signal at a first time interval to a state of sending the broadcast signal at a second time interval, wherein the second time interval is smaller than the first time interval. In this embodiment, when the mobile terminal receives the first response message, which means that there is a paired bluetooth headset within the bluetooth broadcast signal coverage of the mobile terminal, to operate with lower power consumption, the mobile terminal transmits broadcast signals to the plurality of broadcast channels at a lower frequency, i.e., at a first time interval, before there is a bluetooth headset transmitting the first response message to the mobile terminal in response to the broadcast signals. After the bluetooth headset transmits the first response message to the mobile terminal in response to the broadcast signal, the mobile terminal transmits the broadcast signal to a plurality of broadcast channels at a higher frequency, i.e., at a second time interval, in order to obtain more consistent broadcast signal sample data in the subsequent step of the bluetooth headset detecting the signal strength variation information of the broadcast signal of the target mobile terminal. Preferably, the second time interval is not greater than 100ms (milliseconds), and not less than 10ms.
In other embodiments of the present invention, the mobile terminal transmits the broadcast signal at the second time interval after receiving an incoming call. Since the incoming call event belongs to an emergency event, in this embodiment, in order to enable the bluetooth headset to respond to the broadcast message of the mobile terminal more quickly, the mobile terminal transmits a broadcast signal to a plurality of the broadcast channels at a higher frequency, i.e., at a second time interval, upon receiving the incoming call.
Further, in the incoming call answering method, the step of detecting the signal strength variation information of the broadcast signal of the target mobile terminal specifically includes:
s410: sampling the broadcast signal of the target mobile terminal at a third time interval which is greater than or equal to the second time interval to obtain sampling data, wherein when the third time interval is not equal to the second time interval, the third time interval is integral multiple of the second time interval;
s420: and processing the sampling data to obtain the signal intensity change information of the broadcast signal of the target mobile terminal.
Further, in the incoming call answering method, the step of processing the sampled data to obtain the signal strength change information of the broadcast signal of the target mobile terminal specifically includes:
s421: inputting the sampling data set obtained by current sampling into a Gaussian filter function for filtering by taking a fourth time interval as a period, wherein the fourth time interval is an integral multiple of the third time interval;
s422: and fitting a sampled data curve by taking the sampled data subjected to Gaussian filtering as samples.
And processing the sampled data at intervals, namely, at a fourth time interval, to identify whether there is a user moving the target mobile terminal or the bluetooth headset, where the fourth time interval is large enough to cover at least one moving operation of the user, and preferably, the fourth time interval is not less than 5s (second).
As shown in fig. 3, in the incoming call answering method, the step of determining the relative motion state of the bluetooth headset and the target mobile terminal according to the signal strength variation information of the broadcast signal of the target mobile terminal specifically includes:
s510: calculating to obtain an average value of the sampling data curve;
s520: determining whether the sampled data curve exists more than the average value and the difference value from the average value is more than a first threshold value; if yes, the following steps are executed:
s530: acquiring a first time point corresponding to the maximum value of the sampling data curve;
s540: a fifth time interval is pushed forwards by the first time point to obtain a second time point;
s550: pushing a sixth time interval backwards by the first time point to obtain a third time point;
s560: and when the difference value between the value on the sampling data curve corresponding to the second time point and the third time point and the maximum value is smaller than a second threshold value, determining that the relative motion state of the Bluetooth headset and the target mobile terminal meets a preset condition.
In this embodiment, because a bluetooth signal is interfered by an external environment or an external signal, or is influenced by other factors, under the condition that a bluetooth signal sending end, such as the target mobile terminal, and a bluetooth signal receiving end, such as the bluetooth headset, do not move, the signal intensity of the acquired broadcast signal may have a certain fluctuation, the fluctuation of the sampled data curve is described by a difference between a value of each point on the sampled data curve and an average value of the sampled data curve, when a difference between a value of any point on the sampled data curve and the average value of the sampled data curve is smaller than the first threshold, it may be considered that no relative motion occurs between the target mobile terminal and the bluetooth headset, otherwise, it is determined that the relative motion occurs between the target mobile terminal and the bluetooth headset.
For example, when the target mobile terminal receives an incoming call, the user picks up the target mobile terminal and directly answers the incoming call with a speaker of the target mobile terminal, when the bluetooth headset is right in a bluetooth signal coverage range of the target mobile terminal at the moment, relative motion occurs between the target mobile terminal and the bluetooth headset, and the relative motion is embodied in broadcast signal intensity variation information of the target mobile terminal detected by the bluetooth headset, that is, a situation that the sampled data curve has a value greater than the average value and a difference value from the average value is greater than a first threshold value occurs. Therefore, it is necessary to define a relative motion pattern, and when the relative motion between the target mobile terminal and the bluetooth headset matches the relative motion pattern, the user is considered to be the operation intention of answering the incoming call of the target mobile terminal by using the bluetooth headset. For example, in some embodiments of the present invention, when the target mobile terminal receives an incoming call, the user takes an action of picking up the bluetooth headset to be close to the target mobile terminal and pausing for a period of time, and then, the bluetooth headset is far away from the target mobile terminal to be worn, and when the change information of the broadcast signal strength of the target mobile terminal detected by the bluetooth headset matches with the motion pattern, the user is considered to have an operation intention of answering the incoming call of the target mobile terminal by using the bluetooth headset. In other embodiments of the present invention, when the user has worn the bluetooth headset, the target mobile terminal receives an incoming call, the user takes the target mobile terminal close to the bluetooth headset and pauses for a period of time, then moves the target mobile terminal away from the bluetooth headset, for example, places the target mobile terminal on a desktop or a mobile phone stand, and when the variation information of the broadcast signal strength of the target mobile terminal detected by the bluetooth headset matches the motion pattern, the user is considered to have an operation intention to answer the incoming call of the target mobile terminal using the bluetooth headset. In the technical solution of the foregoing embodiment of the present invention, a first time point corresponding to a maximum value of the sampled data curve is first obtained, and at the first time point, a distance between the bluetooth headset and the target mobile terminal is closest in a relative motion process of the bluetooth headset and the target mobile terminal. And then, a fifth time interval is pushed forwards by the first time point to obtain a second time point, a sixth time interval is pushed backwards by the first time point to obtain a third time point, between the second time point and the third time point, the bluetooth headset and the target mobile terminal are in a motion state that the bluetooth headset and the target mobile terminal are close to each other and then are far away from each other again, and when the difference value between the maximum value and the value on the sampling data curve corresponding to the second time point and the third time point is smaller than a second threshold value, it can be judged that the relative motion state of the bluetooth headset and the target mobile terminal meets a preset condition.
Further, in the incoming call answering method, in the step of determining whether the sampling data curve has a value greater than the average value and a difference value with the average value is greater than a first threshold value, if the determination is negative, the step of sampling the broadcast signal of the target mobile terminal at a third time interval greater than or equal to the second time interval to obtain the sampling data is returned. When the sampling data curve is not larger than the average value and the difference value from the average value is larger than a first threshold value, the relative motion trend of the whole of the Bluetooth headset and the target mobile terminal is in a state of continuous approaching, continuous far away or no relative motion, in this case, it is determined that the user does not make the action intention of using the Bluetooth headset to answer the incoming call of the target mobile terminal, and the Bluetooth headset still continuously listens to the broadcast signal of the target mobile terminal, so that the broadcast signal is continuously sampled to be continuously detected.
Further, in some embodiments of the present invention, after the step of obtaining the second time point by advancing the first time point by the fifth time interval, the method further includes:
s541: when the second time point does not exist in the sampling data curve, emptying the sampling data;
s542: and returning to the step of sampling the broadcast signal of the target mobile terminal at a third time interval which is greater than or equal to the second time interval to obtain sampling data.
In this embodiment, when the sampling data corresponding to the fifth time interval is pushed forward at a time point where the maximum value does not exist in the sampling data curve, the current sampling data is directly emptied and then the next round of sampling is performed to perform detection.
Preferably, in other embodiments of the present invention, after the step of obtaining the second time point by advancing the first time point by the fifth time interval, the method further includes:
s543: when the second time point does not exist in the sampling data curve, merging the sampling data of the last fourth time interval into the current sampling data;
s544: and returning to the step of inputting the sampling data set obtained by current sampling into a Gaussian filter function for filtering.
In this embodiment, in order to avoid that the dividing point of the fourth period falls into the action process of the user moving the target mobile terminal or the bluetooth headset, so that the sampled data cannot completely reflect the mobile terminal of the user, and thus an erroneous judgment is made, when the second time point does not exist in the sampled data curve, the data of the previous sampling period is merged into the sampled data of the current period for processing. And when the third time point does not exist in the sampling data curve, giving up processing on the sampling data of the current sampling period, and returning to execute data sampling of the next period, and because the third time point does not exist in the current period, the situation that the second time point does not exist in the next sampling period occurs, at this time, the data of the previous sampling period and the data of the next sampling period are combined according to the steps of the current implementation mode.
Further, in the method for answering an incoming call, after the step of sampling the signal strength of the broadcast signal of the target mobile terminal at a third time interval greater than or equal to the second time interval to obtain the sampling data, the method further includes:
s450: and when the broadcast signal of the target mobile terminal disappears, returning to the step of periodically scanning the broadcast signals on the plurality of Bluetooth broadcast channels.
In this embodiment, when a user uses a speaker of the mobile terminal, another device, or another bluetooth headset to answer a call, or selects to hang up directly without answering the incoming call, the target mobile terminal no longer sends a broadcast signal carrying an incoming call flag bit to the plurality of bluetooth broadcast channels, the broadcast signal of the target mobile terminal disappears, the bluetooth headset no longer detects the broadcast signal carrying the incoming call flag bit sent by the target mobile terminal, and the bluetooth headset returns to the step of performing the periodic scanning of the broadcast signals on the plurality of bluetooth broadcast channels.
As shown in fig. 4, in the method for answering an incoming call, the step of establishing a connection between the bluetooth headset and the target mobile terminal to answer the incoming call specifically includes:
s710: transmitting a second response message for responding to the broadcast signal to the target mobile terminal;
s720: receiving a frequency hopping synchronization data packet sent by the target mobile terminal;
s730: establishing connection with the target mobile terminal according to the frequency hopping same-frequency data packet;
s740: and sending a control instruction for answering the incoming call to the target mobile terminal to enable the target mobile terminal to answer the incoming call and send incoming call voice data to the Bluetooth headset.
In this embodiment, after receiving a second response message sent by the bluetooth headset and sent to respond to the broadcast signal, the target mobile terminal sends a frequency hopping synchronization data packet to the bluetooth headset and enters a connection state, and the bluetooth headset establishes a connection with the target mobile terminal according to the frequency hopping same-frequency data packet and also enters the connection state. After the Bluetooth headset is connected with the target mobile terminal, the Bluetooth headset sends a call answering control instruction to the target mobile terminal, so that the target mobile terminal answers the call and sends call voice data to the Bluetooth headset.
A second aspect of the present invention provides a bluetooth headset, including a processor, a memory, and a control program stored on the memory and executable by the processor, wherein the control program, when executed by the processor, implements the incoming call answering method as described in any one of the above.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
While embodiments in accordance with the invention have been described above, these embodiments are not intended to be exhaustive or to limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as are suited to the particular use contemplated. The invention is limited only by the claims and their full scope and equivalents.
Claims (6)
1. A method for answering an incoming call is applied to a Bluetooth headset and is characterized by comprising the following steps:
s100: periodically scanning for broadcast signals on a plurality of bluetooth broadcast channels;
s200: determining whether a broadcast signal carrying an incoming call flag bit sent by one or more mobile terminals in a plurality of mobile terminals paired with the Bluetooth headset exists or not;
s300: after the broadcast signal which is sent by the paired mobile terminal and carries the incoming call flag bit is scanned, the paired mobile terminal is determined as a target mobile terminal;
s400: detecting signal strength variation information of a broadcast signal of the target mobile terminal;
s500: determining the relative motion state of the Bluetooth headset and the target mobile terminal according to the signal intensity change information of the broadcast signal of the target mobile terminal;
s600: judging whether the relative motion state of the Bluetooth headset and the target mobile terminal meets a preset condition or not;
s700: if so, enabling the Bluetooth headset to be connected with the target mobile terminal so as to answer the incoming call;
after scanning the broadcast signal with the incoming call flag bit sent by the paired mobile terminal, the method further comprises:
s350: transmitting a first response message for responding to the broadcast signal to the paired mobile terminal, so that the paired mobile terminal is adjusted from a state of transmitting the broadcast signal at a first time interval to a state of transmitting the broadcast signal at a second time interval, wherein the second time interval is smaller than the first time interval;
the step of detecting the signal strength variation information of the broadcast signal of the target mobile terminal specifically includes:
s410: sampling the broadcast signal of the target mobile terminal at a third time interval which is greater than or equal to the second time interval to obtain sampling data, wherein when the third time interval is not equal to the second time interval, the third time interval is an integral multiple of the second time interval;
s420: processing the sampling data to obtain the signal intensity change information of the broadcast signal of the target mobile terminal;
the step of processing the sampling data to obtain the signal strength change information of the broadcast signal of the target mobile terminal specifically includes:
s421: inputting the sampling data set obtained by current sampling into a Gaussian filter function for filtering by taking a fourth time interval as a period, wherein the fourth time interval is an integral multiple of the third time interval;
s422: fitting a sampling data curve by taking the sampling data subjected to Gaussian filtering as a sample;
the step of determining the relative motion state of the bluetooth headset and the target mobile terminal according to the signal strength variation information of the broadcast signal of the target mobile terminal specifically includes:
s510: calculating to obtain an average value of the sampling data curve;
s520: determining whether the sampled data curve exists more than the average value and the difference value from the average value is more than a first threshold value; if yes, the following steps are executed:
s530: acquiring a first time point corresponding to the maximum value of the sampling data curve;
s540: a fifth time interval is pushed forwards by the first time point to obtain a second time point;
s550: pushing a sixth time interval backwards according to the first time point to obtain a third time point;
s560: and when the difference value between the value on the sampling data curve corresponding to the second time point and the third time point and the maximum value is smaller than a second threshold value, determining that the relative motion state of the Bluetooth headset and the target mobile terminal meets a preset condition.
2. The incoming call answering method according to claim 1, wherein in the step of determining whether the sampled data curve has a value greater than the average value and a difference value from the average value is greater than a first threshold value, if no, the step of sampling the broadcast signal of the target mobile terminal at a third time interval greater than or equal to the second time interval to obtain sampled data is executed in return.
3. The method of claim 1, further comprising, after the step of advancing the first time point by a fifth time interval to obtain a second time point:
s543: when the second time point does not exist in the sampling data curve, merging the sampling data of the previous fourth time interval into the current sampling data;
s544: and returning to the step of inputting the sampling data set obtained by current sampling into a Gaussian filter function for filtering.
4. The incoming call answering method according to claim 1, wherein the step of sampling the signal strength of the broadcast signal of the target mobile terminal at a third time interval greater than or equal to the second time interval to obtain sampled data further comprises:
s450: and when the broadcast signal of the target mobile terminal disappears, returning to the step of periodically scanning the broadcast signals on the plurality of Bluetooth broadcast channels.
5. The incoming call answering method according to claim 1, wherein the step of enabling the bluetooth headset to establish a connection with the target mobile terminal to answer the incoming call specifically comprises:
s710: transmitting a second response message for responding to the broadcast signal to the target mobile terminal;
s720: receiving a frequency hopping synchronization data packet sent by the target mobile terminal;
s730: establishing connection with the target mobile terminal according to the frequency hopping same-frequency data packet;
s740: and sending a control instruction for answering the incoming call to the target mobile terminal to enable the target mobile terminal to answer the incoming call and send incoming call voice data to the Bluetooth headset.
6. A bluetooth headset comprising a processor, a memory, and a control program stored on the memory and executable by the processor, wherein the control program, when executed by the processor, implements the incoming call answering method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210404437.6A CN114726949B (en) | 2022-04-18 | 2022-04-18 | Incoming call answering method and Bluetooth headset |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210404437.6A CN114726949B (en) | 2022-04-18 | 2022-04-18 | Incoming call answering method and Bluetooth headset |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114726949A CN114726949A (en) | 2022-07-08 |
CN114726949B true CN114726949B (en) | 2022-11-22 |
Family
ID=82244209
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210404437.6A Active CN114726949B (en) | 2022-04-18 | 2022-04-18 | Incoming call answering method and Bluetooth headset |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114726949B (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102752030A (en) * | 2011-04-22 | 2012-10-24 | 比亚迪股份有限公司 | Method and system for connecting incoming call to Bluetooth headset |
CN104967970B (en) * | 2015-06-02 | 2019-02-01 | 深圳市文鼎创数据科技有限公司 | The method and system of terminal device pairing connection |
CN105101058A (en) * | 2015-07-13 | 2015-11-25 | 惠州Tcl移动通信有限公司 | Method and equipment for realizing cooperative works of multiple Bluetooth headsets |
CN107277748A (en) * | 2017-05-15 | 2017-10-20 | 深圳市冠旭电子股份有限公司 | A kind of Bluetooth pairing methods, system and its terminal device |
CN111818499B (en) * | 2020-07-27 | 2023-09-22 | 深圳市千分一智能技术有限公司 | Quick pairing method, device, equipment and computer readable storage medium |
-
2022
- 2022-04-18 CN CN202210404437.6A patent/CN114726949B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN114726949A (en) | 2022-07-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105162950B (en) | Mobile terminal and method for switching microphones in call | |
EP3429174B1 (en) | Automatic routing of call audio at incoming call | |
US10630826B2 (en) | Information processing device | |
CN104243662B (en) | Terminal prompt mode adjusting method and terminal | |
WO2020057419A1 (en) | Audio control method and device, and terminal | |
US20120045990A1 (en) | Intelligent Audio Routing for Incoming Calls | |
CN109379490B (en) | Audio playing method and device, electronic equipment and computer readable medium | |
JP5973289B2 (en) | Portable terminal, voice control program, and voice control method | |
US20240171953A1 (en) | Earphone communication method, earphone device and computer-readable storage medium | |
CN113784001B (en) | Audio data playing method and device, electronic equipment and storage medium | |
CN110225195B (en) | Voice communication method and terminal | |
US20080220820A1 (en) | Battery saving selective screen control | |
KR20100010388A (en) | Apparatus and method for controling camera of portable terminal | |
CN108566221B (en) | Call control method and related equipment | |
CN108432220B (en) | Method and terminal for switching call mode | |
CN114726949B (en) | Incoming call answering method and Bluetooth headset | |
EP3599776A1 (en) | Selecting audio input from a hearing device and a mobile device for telephony | |
JP5890289B2 (en) | Portable terminal, voice control program, and voice control method | |
CN112866855A (en) | Hearing aid method and system, earphone charging box and storage medium | |
CN114513742A (en) | Equipment position indication method, storage medium and equipment | |
CN114501239B (en) | Master-slave switching method and device of earphone, bluetooth earphone and storage medium | |
EP4246982A1 (en) | Sound effect adjustment method and electronic device | |
CN111800836A (en) | Communication method, communication device, electronic equipment and storage medium | |
CN113596232B (en) | Sound channel management method, system and mobile terminal | |
US20240106922A1 (en) | Call Method and Terminal, and Non-transitory 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 |