TWS Bluetooth headset call method, device, TWS Bluetooth headset and storage medium
By detecting the signal strength and wearing condition of the TWS Bluetooth headset, it automatically adjusts the headset mode, solving the problem of privacy leakage of TWS Bluetooth headset calls and achieving call security and privacy protection.
Patent Information
- Application Number
- CN202310496158.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-04
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2043-05-04
AI Technical Summary
When using TWS Bluetooth headsets, some users only wear one earphone, and the other earphone may be picked up by others, which may lead to call privacy leakage.
By detecting whether the main earphone and the auxiliary earphone are connected to external devices and judging the signal strength, the two earphones are set to call mode when worn by the same person. When worn by different people, the earphone with greater signal strength is set to call mode, and the other earphones are set to non-working mode.
It effectively prevents the risk of privacy leakage during calls with TWS Bluetooth headsets and ensures call security.
Smart Images

Figure CN116582786B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Bluetooth communication technology, and in particular to a TWS Bluetooth headset call method, a TWS Bluetooth headset, and a storage medium. Background Art
[0002] Bluetooth headsets have become one of the most widely used electronic products in people's daily lives. As a wireless headset, TWS (True Wireless Stereo) Bluetooth headsets do not require connecting wires and can achieve independent work of left and right ears, bringing users a convenient and comfortable audio experience.
[0003] However, when using TWS earphones, some users prefer to wear only one earphone and place the other earphone in or outside the charging box. In this case, if someone else picks up the other earphone during a call, they may hear the user's conversation, thereby leaking the privacy of the call. Summary of the Invention
[0004] The embodiments of the present application provide a TWS Bluetooth headset call method, device, TWS Bluetooth headset and storage medium to solve the problem of call privacy leakage when using a TWS Bluetooth headset for calls.
[0005] In a first aspect of the present application, a TWS Bluetooth headset call method is provided, comprising:
[0006] Check whether both the main earphone and the auxiliary earphone of the TWS Bluetooth headset are connected to external devices;
[0007] If both the primary earphone and the secondary earphone are connected to an external device, detecting whether the external device receives a call request;
[0008] If a call request is received, calculating the first signal strength and the second signal strength corresponding to the external device between the primary earphone and the secondary earphone, and calculating the third signal strength between the primary earphone and the secondary earphone;
[0009] determining whether the primary earphone and the secondary earphone are worn by the same person based on the first signal strength, the second signal strength, and the third signal strength;
[0010] If they are worn by the same person, both the main earphone and the auxiliary earphone are set to call mode; if they are not worn by the same person, the earphone with the strongest signal strength is set to call mode, and the other earphones are set to non-working mode.
[0011] In a second aspect of the present application, a TWS Bluetooth headset communication device is provided, comprising:
[0012] The earphone connection judgment module is used to detect whether the main earphone and the auxiliary earphone of the TWS Bluetooth headset are connected to external devices;
[0013] a call request detection module, configured to detect whether the external device has received a call request if both the primary earphone and the secondary earphone are connected to an external device;
[0014] a signal strength calculation module, configured to calculate, upon receiving a call request, a first signal strength and a second signal strength corresponding to the external device between the primary earphone and the secondary earphone, respectively, and to calculate a third signal strength between the primary earphone and the secondary earphone;
[0015] an earphone wearing judgment module, configured to judge whether the primary earphone and the secondary earphone are worn by the same person based on the first signal strength, the second signal strength, and the third signal strength;
[0016] The call mode setting module is used to set the main earphone and the auxiliary earphone to call mode if they are worn by the same person; if they are not worn by the same person, the earphone with the strongest signal strength is set to call mode and the other earphones are set to non-working mode.
[0017] In a third aspect of the present application, a TWS Bluetooth headset is provided, comprising a memory and a processor, wherein the memory is coupled to the processor, and the memory stores instructions. When the instructions are executed by the processor, the processor executes the steps of the above-mentioned TWS Bluetooth headset call method.
[0018] In a fourth aspect of the present application, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the steps of the above-mentioned TWS Bluetooth headset call method are implemented.
[0019] The above-mentioned TWS Bluetooth headset call method, device, TWS Bluetooth headset and storage medium detect whether the main ear headset and the auxiliary ear headset of the TWS Bluetooth headset are both connected to an external device; if the main ear headset and the auxiliary ear headset are both connected to the external device, detect whether the external device has received a call request; if a call request is received, calculate the first signal strength and the second signal strength corresponding to the main ear headset and the auxiliary ear headset and the external device respectively, and calculate the third signal strength between the main ear headset and the auxiliary ear headset; determine whether the main ear headset and the auxiliary ear headset are worn by the same person based on the first signal strength, the second signal strength and the third signal strength; if they are worn by the same person, set the main ear headset and the auxiliary ear headset to call mode; if they are not worn by the same person, set the headset with the largest signal strength to call mode, and the other headsets to non-working mode; effectively prevent the risk of call privacy being leaked when using TWS Bluetooth headset for calls. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0021] Figure 1 This is a schematic diagram of an application environment of a TWS Bluetooth headset calling method in one embodiment of the present application;
[0022] Figure 2 This is a flow chart of a TWS Bluetooth headset call method in one embodiment of the present application;
[0023] Figure 3 This is a schematic diagram of the structure of a TWS Bluetooth headset communication device in one embodiment of the present application;
[0024] Figure 4 This is a schematic diagram of a TWS Bluetooth headset in one embodiment of the present application. DETAILED DESCRIPTION
[0025] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0026] The TWS Bluetooth headset call method provided in this application can be applied to Figure 1Please refer to the application environment. Figure 1 The application environment includes an external electronic device 10 and a TWS Bluetooth headset 20, wherein the TWS Bluetooth headset 20 includes a main ear headset 210 and a secondary ear headset 220. As an implementable manner, the main ear headset 210 can establish a first Bluetooth communication link for audio data transmission with the external electronic device 10, the secondary ear headset 220 can establish a second Bluetooth communication link for audio data transmission with the external electronic device 10, and the main ear headset 210 can establish a third Bluetooth communication link for data transmission with the secondary ear headset 220.
[0027] In some embodiments, if the main earphone 210 plays the left channel audio data, the auxiliary earphone 220 plays the right channel audio data; if the main earphone 210 plays the right channel audio data, the auxiliary earphone 220 plays the left channel audio data.
[0028] In one embodiment, if Figure 2 As shown, a TWS Bluetooth headset call method is provided, which is applied in Figure 1 Taking the computer device in FIG. 1 as an example, the method includes the following steps S101 to S105:
[0029] S101: Detect whether the main earphone and the auxiliary earphone of the TWS Bluetooth headset are connected to an external device.
[0030] In this embodiment, in addition to detecting whether the primary earphone 210 has established a first Bluetooth communication link with the external device 10, and detecting whether the secondary earphone 220 has established a second Bluetooth communication link with the external device 10, it is also detected whether the primary earphone 210 has established a third Bluetooth communication link with the secondary earphone 220. Because TWS (True Wireless Stereo Earbuds) Bluetooth headsets are Bluetooth headsets that use true wireless technology, the primary earphone and secondary earphone of TWS Bluetooth headsets are connected wirelessly via Bluetooth.
[0031] S102: If both the primary earphone and the secondary earphone are connected to an external device, detect whether the external device receives a call request.
[0032] In some embodiments, after the step of detecting whether both the main ear earphone and the auxiliary earphone of the TWS Bluetooth headset are connected to the external device, it also includes: first, if only one of the main ear earphone and the auxiliary earphone of the TWS Bluetooth headset is connected to the external device, detect whether the other earphone that is not connected to the external device is reconnected. Because the other earphone that is not connected to the external device (the main ear earphone or the auxiliary earphone) may be placed in a Bluetooth headset box or lost by the user outside the Bluetooth communication range, or even damaged. Although only one earphone of the TWS Bluetooth headset is connected to the external device, on the one hand, the earphone that has been connected to the external device must work normally for audio data transmission, and on the other hand, the other earphone that is not connected to the external device must also be continuously detected. Finally, if the other earphone that is not connected to the external device is reconnected, go to the step of calculating the first signal strength and the second signal strength corresponding to the main earphone and the auxiliary earphone and the external device respectively if a call request is received.
[0033] S103. If a call request is received, calculate the first signal strength and the second signal strength corresponding to the external device between the primary earphone and the secondary earphone, respectively, and calculate the third signal strength between the primary earphone and the secondary earphone.
[0034] In some embodiments, the steps of calculating the first signal strength, the second signal strength, and the third signal strength include: first, obtaining a first power integral of the baseband IQ signal of the primary earphone during a preset first time period when the primary earphone is connected to the external device, and using the first power integral as the first signal strength instantaneous value. Then, obtaining a second power integral of the baseband IQ signal of the secondary earphone during a preset first time period when the secondary earphone is connected to the external device, and using the second power integral as the second signal strength instantaneous value. Secondly, obtaining a third power integral of the baseband IQ signal of the primary earphone or the secondary earphone during a preset first time period when the secondary earphone or the primary earphone is connected, and using the third power integral as the third signal strength instantaneous value. Then, respectively calculating the first signal strength average, the second signal strength average, and the third signal strength average corresponding to the first signal strength instantaneous value, the second signal strength instantaneous value, and the third signal strength instantaneous value collected during the second time period. Finally, setting the first signal strength average, the second signal strength average, and the third signal strength average as the first signal strength, the second signal strength average, and the third signal strength average, respectively.
[0035] Among them, it should be noted that the signal strength RSSI (Received Signal Strength Indicator) of the Bluetooth device is obtained by integrating the power in the digital domain and then back-calculating it to the antenna port. The inconsistency of the reverse channel signal transmission characteristics will affect the accuracy of the RSSI, but it does not affect the accuracy of the judgment of the signal strength in this embodiment. At the same time, in some more specific embodiments, the signal strength RSSI of the Bluetooth device (external device, main earphone and auxiliary earphone of TWS Bluetooth headset) is processed as follows: the baseband IQ power is integrated within 104 microseconds to obtain the instantaneous value of RSSI, and then the 8192 instantaneous RSSI values are averaged within 1 second to obtain the average value of RSSI.
[0036] S104: Determine whether the primary earphone and the secondary earphone are worn by the same person based on the first signal strength, the second signal strength, and the third signal strength.
[0037] In some embodiments, if the main earphone and the auxiliary earphone are not worn by the same person, it is necessary to compare the first signal strength and the second signal strength. Then, a judgment is made based on the comparison result of the first signal strength and the second signal strength. On the one hand, if the first signal strength is greater than or equal to the second signal strength, the main earphone is set to call mode, and the auxiliary earphone is set to non-working mode, that is, the main earphone closest to the external device is set to call mode, and the auxiliary earphone farthest from the external device is set to non-working mode. On the other hand, if the first signal strength is less than the second signal strength, the main earphone is set to non-working mode, and the auxiliary earphone is set to call mode, that is, the auxiliary earphone closest to the external device is set to call mode, and the main earphone farthest from the external device is set to non-working mode. The earphone that is farther away from the external device in the TWS Bluetooth headset is set to non-working mode. At this time, the earphone set to non-working mode will not be able to receive call audio data, thereby achieving the technical effect of preventing call privacy from being leaked.
[0038] In some embodiments, the step of determining whether the primary earphone and the secondary earphone are worn by the same person based on the first signal strength, the second signal strength, and the third signal strength includes: first, calculating a first absolute value of the difference between the first signal strength and the second signal strength. Then, if the first absolute value is within a preset first range, and the third signal strength is greater than a preset signal strength threshold, the main ear earphone and the auxiliary ear earphone are worn by the same person, otherwise the main ear earphone and the auxiliary ear earphone are not worn by the same person, that is, the difference in signal strength between the main ear earphone and the auxiliary earphone of the TWS Bluetooth headset and the external device is within a preset difference range (when the main ear earphone and the auxiliary earphone are worn on the user's left ear and right ear at the same time, the signal strength between the external device should be within an acceptable signal strength difference range. The signal strength also reflects the distance from the earphone to the external device, that is, when the main ear earphone and the auxiliary earphone are worn on the user's left ear and right ear at the same time, the absolute value between the distances between the main ear earphone and the right earphone and the external device should be within a preset error range (the minimum can be 0, that is, the distances between the main ear earphone and the auxiliary earphone and the external device are equal, and the maximum can be the maximum diameter of the average human head, that is, the external device, the main ear earphone , the right earphone is in the same straight line), and the signal strength between the main earphone and the auxiliary earphone of the TWS Bluetooth headset is also within the preset signal strength range (the signal strength range when worn on the user's left and right ears at the same time, that is, when the main earphone and the auxiliary earphone are worn on the left and right ears of the same user at the same time, the distance between the main earphone and the auxiliary earphone should be the maximum diameter of the user's head. The specific reason is the same as that of the above-mentioned TWS Bluetooth headset. The difference in signal strength between the main earphone and the auxiliary earphone and the external device is within the preset difference range, which will not be repeated here). Among them, it should be specially noted that the situation where two earphones are worn by two different users and the distance between the two different users is extremely close to each other is not within the scope of consideration of this application, because when two people are talking to each other at an extremely close distance, there is a risk of call privacy being leaked when one of them uses a TWS Bluetooth headset to talk.
[0039] S105. If the earphones are worn by the same person, both the primary earphone and the secondary earphone are set to a call mode; if the earphones are not worn by the same person, the earphone with the strongest signal strength is set to a call mode, and the other earphones are set to a non-working mode.
[0040] In some embodiments, after setting the earphone with the highest signal strength to call mode and the other earphones to non-working mode, the step further includes monitoring the first signal strength, the second signal strength, and the third signal strength during the call. Monitoring changes in the first signal strength, the second signal strength, and the third signal strength is to prevent the wearing style of the primary earphone and the auxiliary earphone from changing during a call, thereby preventing the risk of call privacy leakage caused by the aforementioned wearing style change.
[0041] In some embodiments, after monitoring that the first signal strength, the second signal strength and the third signal strength have changed to a certain extent, the following steps need to be performed: first, if the change value of the first signal strength or the second signal strength exceeds the preset second range, then jump to executing the step of determining whether the main ear earphone and the auxiliary earphone are worn by the same person based on the first signal strength, the second signal strength and the third signal strength, that is, when the main ear earphone or the auxiliary earphone is away from the external device during a call, the main ear earphone or the auxiliary earphone away from the external device needs to be set to a non-working mode. Then, if the change value of the third signal strength exceeds the preset third range, the step of determining whether the main ear earphone and the auxiliary earphone are worn by the same person based on the first signal strength, the second signal strength and the third signal strength is executed. That is, although the distance between the main ear earphone and the auxiliary earphone and the external device has not changed, there is still a situation where the distance between the main ear earphone and the auxiliary earphone has changed. For example, the main ear earphone is 3 meters to the left of the external device, and the auxiliary earphone is 3 meters to the right of the external device. In this scenario, the main ear earphone and the auxiliary earphone are impossible to be on the left and right ears of the same person.
[0042] The TWS Bluetooth headset call method provided in this embodiment detects whether the main ear headset and the auxiliary ear headset of the TWS Bluetooth headset are both connected to an external device; if the main ear headset and the auxiliary ear headset are both connected to the external device, detects whether the external device has received a call request; if a call request is received, calculates the first signal strength and the second signal strength corresponding to the main ear headset and the auxiliary ear headset and the external device respectively, and calculates the third signal strength between the main ear headset and the auxiliary ear headset; determines whether the main ear headset and the auxiliary ear headset are worn by the same person based on the first signal strength, the second signal strength and the third signal strength; if they are worn by the same person, sets the main ear headset and the auxiliary ear headset to call mode; if they are not worn by the same person, sets the headset with the largest signal strength to call mode, and the other headsets to non-working mode; effectively prevents the risk of call privacy being leaked when using TWS Bluetooth headsets for calls.
[0043] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0044] In one embodiment, a TWS Bluetooth headset call device 300 is provided, which corresponds to the TWS Bluetooth headset call method in the above embodiment. Figure 3 As shown, the TWS Bluetooth headset call device 300 includes a headset connection judgment module 310, a call request detection module 320, a signal strength calculation module 330, a headset wearing judgment module 340 and a call mode setting module 350. The functional modules are described in detail as follows:
[0045] The earphone connection determination module 310 is used to detect whether the main earphone and the auxiliary earphone of the TWS Bluetooth headset are connected to the external device;
[0046] a call request detection module 320 for detecting whether the external device has received a call request if both the primary earphone and the secondary earphone are connected to an external device;
[0047] a signal strength calculation module 330 for calculating, upon receiving a call request, a first signal strength and a second signal strength between the primary earphone and the secondary earphone and the external device, respectively, and calculating a third signal strength between the primary earphone and the secondary earphone;
[0048] an earphone wearing determination module 340, configured to determine whether the primary earphone and the secondary earphone are worn by the same person based on the first signal strength, the second signal strength, and the third signal strength;
[0049] The call mode setting module 350 is used to set both the main earphone and the auxiliary earphone to call mode if they are worn by the same person; if they are not worn by the same person, the earphone with the highest signal strength is set to call mode and the other earphones are set to non-working mode.
[0050] Furthermore, the call mode setting module 350 includes:
[0051] The first signal strength comparison submodule is configured to compare the first signal strength and the second signal strength if the two devices are not worn by the same person.
[0052] The first call mode switching submodule is used to set the main earphone to a call mode and the auxiliary earphone to a non-working mode if the first signal strength is greater than or equal to the second signal strength.
[0053] The second call mode switching submodule is used to set the main earphone to a non-working mode and the auxiliary earphone to a call mode if the first signal strength is less than the second signal strength.
[0054] Furthermore, the headset connection determination module 310 includes:
[0055] The earphone reconnection detection submodule is used to detect whether the other earphone that is not connected to the external device is reconnected if only one of the main earphone and the auxiliary earphone of the TWS Bluetooth headset is connected to the external device.
[0056] The second signal strength calculation submodule is used to, if another earphone that is not connected to the external device is reconnected, proceed to execute the step of calculating the first signal strength and the second signal strength corresponding to the external device between the main earphone and the auxiliary earphone and the external device respectively if a call request is received.
[0057] Furthermore, the signal strength calculation module 330 includes:
[0058] A first signal strength instantaneous value submodule is configured to obtain a first power integral of the baseband IQ signal of the master earphone within a preset first time period when the baseband IQ signal of the master earphone is connected to the external device, and use the first power integral as a first signal strength instantaneous value;
[0059] A second signal strength instantaneous value submodule is configured to obtain a second power integral of the baseband IQ signal of the auxiliary earphone within a preset first time period when the auxiliary earphone is connected to the external device, and use the second power integral as a second signal strength instantaneous value;
[0060] a third signal strength instantaneous value submodule, configured to obtain a third power integral of the baseband IQ signal of the primary earphone or the auxiliary earphone within a preset first time period when the primary earphone or the auxiliary earphone is connected, and use the third power integral as a third signal strength instantaneous value;
[0061] a signal strength average value submodule, configured to respectively calculate a first signal strength average value, a second signal strength average value, and a third signal strength average value corresponding to the first signal strength instantaneous value, the second signal strength instantaneous value, and the third signal strength instantaneous value collected in a second time period;
[0062] The signal strength value setting submodule is used to set the first signal strength average value, the second signal strength average value, and the third signal strength average value to correspond to the first signal strength, the second signal strength, and the third signal strength, respectively.
[0063] Furthermore, the headphone wearing determination module 340 includes:
[0064] The second signal strength comparison submodule is configured to calculate a first absolute value of a difference between the first signal strength and the second signal strength.
[0065] The second headphone wearing judgment submodule is used to determine that if the first absolute value is within a preset first range and the third signal strength is greater than a preset signal strength threshold, the main ear headphone and the auxiliary ear headphone are worn by the same person; otherwise, the main ear headphone and the auxiliary ear headphone are not worn by the same person.
[0066] Furthermore, the headphone wearing determination module 340 further includes:
[0067] A signal strength monitoring submodule, configured to monitor the first signal strength, the second signal strength, and the third signal strength during a call acquisition process;
[0068] Furthermore, the signal strength monitoring submodule further includes:
[0069] The first call mode reset subunit is used to execute the step of determining whether the main ear earphone and the auxiliary earphone are worn by the same person based on the first signal strength, the second signal strength and the third signal strength if the change value of the first signal strength or the second signal strength exceeds a preset second range.
[0070] The second call mode reset subunit is used to execute the step of determining whether the main ear earphone and the auxiliary earphone are worn by the same person based on the first signal strength, the second signal strength and the third signal strength if the change value of the third signal strength exceeds the preset third range.
[0071] The meaning of "first" and "second" in the above modules / units is only to distinguish different modules / units, and is not used to limit which module / unit has a higher priority or other limiting meanings. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or modules is not necessarily limited to those steps or modules clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or devices. The division of modules in this application is only a logical division, and other division methods may be used in actual applications.
[0072] For the specific definition of the TWS Bluetooth headset call device 300, please refer to the definition of the TWS Bluetooth headset call method above, which will not be repeated here. The various modules in the above-mentioned TWS Bluetooth headset call device 300 can be implemented in whole or in part by software, hardware, and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0073] In some embodiments, a TWS Bluetooth device 400 is provided, and its structural block diagram can be found in Figure 4 The TWS Bluetooth headset 400 in the present application may include one or more of the following components: a memory 410, a processor 420, and one or more applications, wherein the one or more applications may be stored in the memory 410 and configured to be executed by the one or more processors 420, and the one or more programs are configured to execute the steps described in the aforementioned TWS Bluetooth headset call method embodiment.
[0074] Among them, the processor 420 may include one or more processing cores. The processor 420 uses various interfaces and lines to connect the various parts of the entire TWS Bluetooth headset 400, and executes various functions and processes data of the TWS Bluetooth headset 400 by running or executing instructions, programs, code sets or instruction sets stored in the memory 410, and calling data stored in the memory 410. Optionally, the processor 420 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 420 can integrate one or more combinations of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the modem is used to handle wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 220, but may be implemented separately through a communication chip.
[0075] The memory 410 may include a random access memory (RAM) or a read-only memory (ROM). The memory 410 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 410 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data created by the TWS Bluetooth headset 400 during use (such as a phone book, audio and video data, chat record data), etc.
[0076] In some embodiments, a computer-readable storage medium is provided on which a computer program is stored. When the computer program is executed by a processor, the steps of the TWS Bluetooth headset call method in the above embodiment are implemented, such as Figure 2 Alternatively, when the computer program is executed by the processor, the functions of each module / unit of the TWS Bluetooth headset communication device 300 in the above embodiment are realized, such as Figure 3 The functions of modules 310 to 350 are shown in FIG. 3 and will not be described in detail here to avoid repetition.
[0077] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0078] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0079] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A TWS Bluetooth headset calling method, characterized in that: include: Check whether both the main earphone and the auxiliary earphone of the TWS Bluetooth headset are connected to external devices; If both the primary earphone and the secondary earphone are connected to an external device, detecting whether the external device receives a call request; If a call request is received, calculating the first signal strength and the second signal strength corresponding to the external device between the primary earphone and the secondary earphone, and calculating the third signal strength between the primary earphone and the secondary earphone; determining whether the primary earphone and the secondary earphone are worn by the same person based on the first signal strength, the second signal strength, and the third signal strength; If they are worn by the same person, both the main earphone and the auxiliary earphone are set to call mode; if they are not worn by the same person, the earphone with the strongest signal strength with the external device is set to call mode, and the other earphones are set to non-working mode.
2. The TWS Bluetooth headset calling method according to claim 1, characterized in that: If the earphones are not worn by the same person, the step of setting the earphone with the strongest signal strength with the external device to the call mode and the other earphones to the non-working mode includes: comparing the first signal strength and the second signal strength; If the first signal strength is greater than or equal to the second signal strength, setting the primary earphone to a call mode and setting the secondary earphone to a non-working mode; If the first signal strength is less than the second signal strength, the primary earphone is set to a non-working mode and the secondary earphone is set to a call mode.
3. The TWS Bluetooth headset calling method according to claim 1, characterized in that: After the step of detecting whether both the main earphone and the auxiliary earphone of the TWS Bluetooth headset have been connected to the external device, the method further includes: If only one of the main earphone and the auxiliary earphone of the TWS Bluetooth headset is connected to the external device, detect whether the other earphone that is not connected to the external device is reconnected; If the other earphone that is not connected to the external device is reconnected, the process proceeds to executing the step of calculating the first signal strength and the second signal strength corresponding to the external device respectively between the main earphone and the auxiliary earphone if a call request is received.
4. The TWS Bluetooth headset calling method according to claim 1, characterized in that: The steps of calculating the first signal strength and the second signal strength corresponding to each between the primary earphone and the secondary earphone and the external device, and calculating the third signal strength between the primary earphone and the secondary earphone include: Obtaining a first power integral of a baseband IQ signal of the primary earphone within a preset first time period when the baseband IQ signal of the primary earphone is connected to the external device, and using the first power integral as a first signal strength instantaneous value; obtaining a second power integral of a baseband IQ signal of the auxiliary earphone within a preset first time period when the auxiliary earphone is connected to the external device, and using the second power integral as a second signal strength instantaneous value; Obtaining a third power integral of the baseband IQ signal of the primary earphone or the secondary earphone within a preset first time period when the secondary earphone or the primary earphone is connected, and using the third power integral as a third signal strength instantaneous value; Respectively calculating a first signal strength average value, a second signal strength average value, and a third signal strength average value corresponding to the first signal strength instantaneous value, the second signal strength instantaneous value, and the third signal strength instantaneous value collected in a second time period; The first signal strength average value, the second signal strength average value, and the third signal strength average value are respectively set to correspond to the first signal strength, the second signal strength, and the third signal strength.
5. The TWS Bluetooth headset calling method according to claim 1, characterized in that: The step of determining whether the primary earphone and the secondary earphone are worn by the same person according to the first signal strength, the second signal strength, and the third signal strength includes: Calculating a first absolute value of a difference between the first signal strength and the second signal strength; If the first absolute value is within a preset first range and the third signal strength is greater than a preset signal strength threshold, the main ear earphone and the auxiliary earphone are worn by the same person; otherwise, the main ear earphone and the auxiliary earphone are not worn by the same person.
6. The TWS Bluetooth headset calling method according to claim 5, characterized in that: After the step of setting the earphone with the strongest signal strength with the external device to a call mode and other earphones to a non-working mode if they are not worn by the same person, the method further includes: The first signal strength, the second signal strength, and the third signal strength during the call are monitored and collected.
7. The TWS Bluetooth headset calling method according to claim 6, characterized in that: After the step of monitoring and collecting the first signal strength, the second signal strength, and the third signal strength during the call, the method further includes: If the change in the first signal strength or the second signal strength exceeds a preset second range, the method proceeds to executing the step of determining whether the primary earphone and the secondary earphone are worn by the same person based on the first signal strength, the second signal strength, and the third signal strength; If the change value of the third signal strength exceeds the preset third range, the process proceeds to executing the step of determining whether the main ear earphone and the auxiliary earphone are worn by the same person based on the first signal strength, the second signal strength and the third signal strength.
8. A TWS Bluetooth headset communication device, characterized in that: include: The earphone connection judgment module is used to detect whether the main earphone and the auxiliary earphone of the TWS Bluetooth headset are connected to external devices; a call request detection module, configured to detect whether the external device has received a call request if both the primary earphone and the secondary earphone are connected to an external device; a signal strength calculation module, configured to calculate, upon receiving a call request, a first signal strength and a second signal strength corresponding to the external device between the primary earphone and the secondary earphone, respectively, and to calculate a third signal strength between the primary earphone and the secondary earphone; an earphone wearing judgment module, configured to judge whether the primary earphone and the secondary earphone are worn by the same person based on the first signal strength, the second signal strength, and the third signal strength; The call mode setting module is used to set both the main earphone and the auxiliary earphone to call mode if they are worn by the same person; if they are not worn by the same person, the earphone with the strongest signal strength with the external device is set to call mode, and the other earphones are set to non-working mode.
9. A TWS Bluetooth headset, characterized in that: The method comprises a memory and a processor, wherein the memory is coupled to the processor and stores instructions. When the instructions are executed by the processor, the processor performs the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, which can be called by a processor to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
TWS earphone control method, TWS earphone, equipment and storage medium
CN108429964A
Call privacy protection method and device and computer readable storage medium
CN111510551A