WO2023029143A1 - 一种耳机的连接设备切换方法、系统及相关组件 - Google Patents

一种耳机的连接设备切换方法、系统及相关组件 Download PDF

Info

Publication number
WO2023029143A1
WO2023029143A1 PCT/CN2021/122225 CN2021122225W WO2023029143A1 WO 2023029143 A1 WO2023029143 A1 WO 2023029143A1 CN 2021122225 W CN2021122225 W CN 2021122225W WO 2023029143 A1 WO2023029143 A1 WO 2023029143A1
Authority
WO
WIPO (PCT)
Prior art keywords
earphone
wearing
category
worn
machine
Prior art date
Application number
PCT/CN2021/122225
Other languages
English (en)
French (fr)
Inventor
王杰松
Original Assignee
歌尔股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 歌尔股份有限公司 filed Critical 歌尔股份有限公司
Publication of WO2023029143A1 publication Critical patent/WO2023029143A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/34Reselection control
    • H04W36/36Reselection control by user or terminal equipment

Definitions

  • the present application relates to the field of audio control, in particular to a method, system and related components for switching an earphone connection device.
  • Bluetooth headsets have achieved multi-device connection, that is, a pair of TWS (True Wireless Stereo, True Wireless Stereo) headsets can be connected to a computer and a mobile phone at the same time, or a pair of TWS headsets can be connected to two mobile phones at the same time.
  • a pair of TWS earphones can only play the audio of one connected device at the same time. For example, when the earphone is playing the audio of the connected device 1, the connected device 2 cannot play the audio through the earphone; when the earphone is playing the audio of the connected device 1 During audio, if the connected device 2 has an incoming call, the connected device 2 will directly occupy the earphone and interrupt the audio playback of the device 1.
  • the existing solution cannot realize that one headset can play the audio of a connected device, which affects the user experience.
  • the purpose of this application is to provide a method, system, device, and earphone device for switching the connecting device of an earphone, which can realize that two earphones can respectively play the audio signals of two connected devices at the same time, expand the scope of application of the earphone, and enhance user experience .
  • the present application provides a method for switching a connection device of an earphone, which is applied to any earphone in the earphone device, and the method for switching the connection device includes:
  • the process of determining the wearing category of the earphone device includes:
  • the wearing type of the earphone device is worn by the same user; otherwise, it is determined that the wearing type of the earphone device is worn by different users.
  • the process of obtaining the first inertial parameter of the machine includes:
  • the process of obtaining the second inertial parameter of another earphone in the earphone device includes:
  • the process of determining the wearing category of the earphone device includes:
  • the wearing category of the earphone device is worn by the same user
  • the wearing category of the earphone device is worn by different users
  • the second preset value is greater than or equal to the first preset value.
  • the process of obtaining the distance between this machine and another earphone in the earphone device includes:
  • the process of selecting a target connection device of this machine from among multiple connection devices according to the wearing category includes:
  • the wearing category When the wearing category is worn by multiple users, select a connecting device different from the target connecting device of another earphone among the multiple connecting devices as the target connecting device of the headset.
  • the process of selecting a target connection device of this machine from among multiple connection devices according to the wearing category includes:
  • the wearing sequence and the wearing category select the target connecting device of the machine from among the multiple connecting devices.
  • the present application also provides an earphone connection device switching system, which is applied to any earphone in the earphone device, and the connection device switching system includes:
  • a determining module configured to determine the wearing category of the earphone device, where the wearing category is worn by the same user or worn by different users;
  • a selection module configured to select a target connection device of the machine from a plurality of connection devices according to the wearing category
  • the control module is used for receiving and playing the audio signal of the target connected device.
  • an earphone connection device switching device including:
  • a processor configured to implement the steps of the method for switching a connection device for an earphone as described in any one of the above when executing the computer program.
  • the present application also provides an earphone device, including two earphones, both of which include the above-mentioned device switching device for earphones.
  • This application provides a method for switching earphone connection devices. Firstly, it is determined whether the wearing type of the earphone device is worn, that is, whether the two earphones in the earphone device are worn by the same user or by different users. The wearing category selects its corresponding target connection device, and the two earphones only receive and play the audio signal of their corresponding target connection device, and do not play the audio signal of other connected devices, so that the two earphones can be separated at the same time. Play audio signals from two connected devices, expanding the scope of application of the headset and enhancing user experience.
  • the present application also provides an earphone connection device switching system, device, and earphone device, which have the same beneficial effects as the above-mentioned earphone connection device switching method.
  • FIG. 1 is a flow chart of the steps of a method for switching an earphone connection device provided by the present application
  • Fig. 2 is a schematic diagram of a six-axis accelerometer provided by the present application.
  • FIG. 3 is a schematic structural diagram of an earphone connection device switching system provided by the present application.
  • FIG. 4 is a schematic structural diagram of an earphone connection device switching device provided by the present application.
  • the core of the present application is to provide a method, system, device and earphone device for switching the connecting device of the earphone, which can realize that the two earphones can respectively play the audio signals of the two connected devices at the same time, expand the scope of application of the earphone, and enhance the user experience .
  • the earphone device includes two earphones, namely the left earphone and the right earphone. Both earphones can be paired with multiple connected devices. A description of the program to apply for. Before implementing this solution, first complete the pairing of the left earphone with the computer and mobile phone, and the pairing of the right earphone with the computer and mobile phone, so that both the left and right earphones can choose to receive audio signals from the mobile phone and/or computer.
  • different wearing categories of earphones can be selected in different application environments.
  • the left and right earphones can be worn by the same user; in other application environments, the left and right earphones can be worn by the same user respectively Two users wear it.
  • the earphones are worn in different categories, the left and right earphones have different choices about which audio signal of the connected device they want to receive.
  • the executive subject of the solution of this embodiment can be any earphone that is taken out from the charging compartment and worn in the earphone device.
  • the control logic of this application is described below using the left earphone as an example.
  • the control logic of the right earphone the same way.
  • Fig. 1 is the flow chart of the steps of the connection device switching method of a kind of earphone provided by the present application, the connection device switching method of the earphone comprises:
  • S101 Determine the wearing category of the earphone device, where the wearing category is worn by the same user or worn by different users;
  • the wearing category of the earphone device that is, determine whether the machine and the right earphone are worn by the same user, or are worn by two users separately. If it is still in the charging compartment and has not been taken out, that is, it is worn alone.
  • the wearing type of the earphone device may be determined according to a preset period, so as to detect a change in the wearing type of the earphone device in time and make a response.
  • the wearing type of the earphone device can be detected by the earphone that is taken out first. For example, assuming that the device is taken out of the charging compartment and worn first, the device can detect the wearing category of the earphone device at preset intervals, and send the detection result to the right earphone that is normally worn, so that the right earphone can The detection result determines the wearing category of the headset device.
  • the wearing type of the earphone device can be detected by the right earphone every preset time, and the wearing type of the earphone device can be determined according to the detection result sent by the right earphone after the machine is worn.
  • any one of the earphones in the earphone device can be pre-selected as the master earphone, and the other earphone as the slave earphone.
  • the device After the device is worn, when it detects that the device is the master earphone, the device can detect the wearing category of the earphone device every preset time, and send the detection result to the slave earphone that is normally worn, so that the slave earphone can be controlled according to the The detection result of the device determines the wearing category of the earphone device.
  • the device can determine the wearing type of the earphone device according to the detection result sent by the master earphone.
  • the slave earphone may be taken out of the charging compartment before the master earphone, if the slave earphone does not receive the wearing category detection result sent by the master earphone within the preset time period from the moment of wearing it, then this The machine determines that the wearing category of the earphone device is single-machine wearing, and if it subsequently receives the wearing category detection result sent by the master earphone, it then determines the wearing category of the headset device according to the wearing category detection result.
  • the determination of the wearing type by one earphone can ensure that the two earphones use the same wearing type detection result for subsequent control, so that the corresponding target connection devices can be accurately selected subsequently.
  • the wearing type of the earphone device can also be detected by the two earphones respectively, that is, after the machine is taken out of the charging compartment and worn, it detects the wearing type of the earphone device, and after the right earphone is taken out of the charging compartment and worn, it detects the wearing type of the earphone device.
  • Wearing category the two earphones respectively select their corresponding target connection devices according to their detected wearing categories.
  • S103 Receive and play the audio signal of the target connected device.
  • each earphone can only play the audio signal of one connected device at the same time. Therefore, it is necessary to select a connected device among all connected devices according to the wearing category of the headset device as the target connected device of this unit. This unit only receives and plays the audio signal of the target connected device, and this unit does not receive audio from other paired connected devices. Signal.
  • the wearing category includes wearing by the same user or by different users.
  • both earphones in the earphone device are taken out of the charging compartment, they are worn by the same user, that is, the machine and the right earphone are worn by one user.
  • the category of wearing by the same user also includes stand-alone wear.
  • the two can transmit the information of the target connection device selected by each.
  • the process of selecting a target connection device of this machine from multiple connection devices according to the wearing category includes:
  • a connecting device different from the target connecting device of another headset is selected as the target connecting device of this machine among the multiple connecting devices.
  • the target connection device selected by the machine is the same as the target connection device selected by the right earphone, and both the machine and the right earphone receive audio from the same target connection device.
  • Signal and output, at this time can achieve a higher stereo listening experience.
  • the target connection device selected by the local device may be different from the target connection device selected by the right earphone.
  • the machine is worn by user A, and the right earphone is worn by user B. If the machine selects the computer as the target connection device to receive and play the audio signal of the computer, correspondingly, the right earphone selects the mobile phone as the target connection device to receive and play the audio signal of the earphone. Audio signals, so as to achieve the purpose of playing the audio signals of different connected devices at the same time on the two earphones.
  • both the machine and the right earphone can select the computer as the target connection device, so that both the machine and the right earphone can receive and Plays the connection signal of the computer.
  • the device can select the target according to the audio signal playback order of each connected device, the playback priority of each connected device, etc. Connect the device.
  • the mobile phone when the device is taken out from the charging compartment and worn, if the mobile phone outputs an audio signal first, the mobile phone will be used as the target connection device of the device;
  • the playback priority of the computer select the connection device with higher playback priority as the target connection device of this unit; if both the mobile phone and the computer output audio signals, when the unit is taken out of the charging compartment, both the mobile phone and the computer will suspend the audio signal
  • the output the user selects a certain device to continue playing, and the selected device is the target connection device of this machine.
  • the wearing type of the earphone device is first judged, that is, whether the two earphones in the earphone device are worn by the same user or by different users, and then the two earphones respectively select their respective corresponding earphones according to the wearing type of the earphone device.
  • the target connected device, the two earphones only receive and play the audio signal of their corresponding target connected device, and do not play the audio signal of other connected devices, so that the two earphones can respectively play the audio of the two connected devices at the same time
  • the audio signal expands the scope of application of the headset and enhances user experience.
  • the process of determining the wearing category of the earphone device includes:
  • the wearing type of the earphone device is worn by the same user; otherwise, it is determined that the wearing type of the earphone device is worn by different users.
  • the process of obtaining the first inertial parameter of the machine includes:
  • the process of obtaining the second inertial parameter of another earphone in the earphone device includes:
  • the second inertial parameter of the other earphone is acquired.
  • each earphone in the earphone device includes an inertial sensor and a proximity sensor inside, wherein the proximity sensor is used to detect the wearing of the earphone, and the inertial sensor acquires the inertial parameters of the earphone after determining that the earphone is normally worn, and the two earphones can be wirelessly transmitted respective inertial parameters.
  • the proximity sensor is used to detect the wearing of the earphone, and the inertial sensor acquires the inertial parameters of the earphone after determining that the earphone is normally worn, and the two earphones can be wirelessly transmitted respective inertial parameters.
  • the proximity sensor inside the left earphone works to detect whether the left earphone is worn by the user.
  • the inertial sensor of the left earphone works to obtain The first inertial parameter of the left earphone, when the left earphone obtains the second inertial parameter of the right earphone, compare the first inertial parameter and the second inertial parameter, when the first inertial parameter and the second inertial parameter are in the same or opposite direction, It is determined that the wearing category of the earphones is worn by the same user; otherwise, it is determined that the wearing category of the earphones is worn by different users, and the detection process of the wearing category of the right earphone is similar.
  • the above-mentioned embodiment is a scheme in which both earphones are used for wearing category detection.
  • the earphone that is taken out first can be used for the wearing category according to the order in which the two earphones are taken out of the charging compartment. Assume that the earphone that is taken out first is the left earphone. After the left earphone is worn normally, its own inertial parameters are obtained through the inertial sensor. For the left earphone, the left earphone compares its inertial parameters with the inertial parameters sent by the right earphone to obtain the wearing category of the earphone device, and sends the wearing category to the right earphone. In this embodiment, the right earphone does not need to obtain the information of the left earphone. Inertial parameters perform operations such as comparison and wear category determination.
  • the following is an example of how to determine the wearing category of the earphone device according to the inertial parameters of the left and right earphones: first define the six axes of the inertial sensor, the three-axis acceleration is a x , a y , a z , and the three-axis angular acceleration is respectively are a rx , a ry , and a rz , and the schematic diagram of the six-axis accelerometer is shown in FIG. 2 . After the left earphone or the right earphone is taken out of the charging compartment, both the left earphone and the right earphone will be detected by the proximity sensor.
  • the inertial sensor of the left earphone When the left earphone is detected to be worn, the inertial sensor of the left earphone will start to work and collect six-axis parameters, namely a 1x , a 1y , a 1z , a 1rx , a 1ry , a 1rz , when the proximity sensor of the right earphone detects that the right earphone is worn normally, the inertial sensor of the right earphone starts to work and collects six-axis parameters, namely a 2x , a 2y , a 2z , a 2rx , a 2ry , a 2rz .
  • the direction of movement can be determined, and the direction of acceleration will be on the same straight line, either in the same direction or in the opposite direction.
  • direction first judge the acceleration of the three axes, the magnitude of the composite acceleration vector of the three axes will be different, but the direction must be in the same direction or in the opposite direction, therefore, to judge the direction of the composite vector, and
  • the direction of a 1rx is the same as that of a 2rx
  • the direction of a 1ry is the same as that of a 2ry
  • the direction of a 1rz is the same as that of a 2rz .
  • the inertial sensors of the left and right earphones collect six-axis parameters at a preset cycle (such as 6ms). When the six-axis parameters are collected for multiple consecutive cycles (such as 300ms) and all meet the above conditions, it is determined that the wearing category is worn by the same user. Further, if there is a little sampling data in the middle that does not meet the conditions, discard it, and add data for matching to ensure accuracy.
  • the motion conditions of the two users will be different, and the direction of the synthesized vector and Not in a straight line (the direction is not the same or opposite), the direction of angular acceleration a 1rx and a 2rx may be different, the direction of a 1ry and a 2ry , the direction of a 1rz and a 2rz may be different, if collected in multiple consecutive cycles (such as 300ms) Up to the six-axis parameters, as long as one of the above four points can be met every time, it is determined that the wearing category is worn by different users. Further, if some data in the middle does not meet the above conditions, discard and add data matching to ensure accuracy. It can be understood that the inertial sensor has high precision, and can more accurately identify the difference in motion conditions of two users when wearing it.
  • the process of determining the wearing category of the earphone device includes:
  • the wearing category of the earphone device is worn by the same user
  • the wearing category of the earphone device is worn by different users
  • the second preset value is greater than or equal to the first preset value.
  • the process of obtaining the distance between the local machine and another earphone in the earphone device includes:
  • the distance between the two earphones in the earphone device can be judged by the Bluetooth RSSI ranging principle.
  • the principle of Bluetooth RSSI ranging is to establish a relationship between the Bluetooth signal strength and the distance of the transmitting and receiving device, so as to calculate the distance between two Bluetooth devices (ie, the left earphone and the right earphone in this application) through the RSSI value. The relationship is:
  • d is the distance between the left earphone and the right earphone
  • n is the empirical value, which is calibrated and calculated at the factory
  • txpower is the RSSI value when the current device is 1m away
  • A is the currently acquired RSSI value.
  • the D and A values are approximately proportional to each other. Carry out RSSI calibration for each pair of earphones before leaving the factory, and fix the n value and txpower value. Then use the dummy head (50-65cm) to calibrate, obtain the RSSI value worn by normal people under real wearing conditions, and store it in the flash.
  • the A value is detected. If it is within the range stored in the flash, it means that the wearing category is worn by the same user, and a single person can be prompted to wear it. If it is actually worn by two people at this time, two users If the position is farther away, it can be re-judged that it is worn by different users, and the detection of the wearing type will be stopped until it is detected that someone takes off the earphones, and then the detection of the wearing type will be carried out again. Correspondingly, if A is detected after wearing If the value is not within the range, it is directly judged that the device is worn by different users.
  • the process of selecting a target connection device of this machine from multiple connection devices according to the wearing category includes:
  • the wearing order and wearing category select the target connecting device of this machine among multiple connecting devices.
  • the left earphone is taken out of the charging compartment first, after the left earphone is taken out and worn, select a connection device from a computer or a mobile phone as the target connection device of the left earphone, assuming that the target connection device is a mobile phone, then make the mobile phone output Audio signal, to ensure that the left earphone is matched with the mobile phone, receive the audio signal output by the mobile phone, and then when the right earphone is taken out of the charging compartment and worn, the wearing type detection is performed. If it is worn by the same user, the right earphone also selects the earphone as the target connection The device receives and plays the audio signal output by the mobile phone. If it is worn by a different user, the right earphone selects the computer as the target connection device to receive and play the audio signal output by the computer.
  • Figure 3 is a schematic structural diagram of a headphone connection device switching system provided by the present application, which is applied to any headphone in the headphone device.
  • the connection device switching system includes:
  • a determining module 11 configured to determine the wearing category of the earphone device, where the wearing category is worn by the same user or worn by different users;
  • the selection module 12 is used to select the target connection device of this machine among a plurality of connection devices according to the wearing category;
  • the control module 13 is configured to receive and play the audio signal of the target connected device.
  • the wearing type of the earphone device is first judged, that is, whether the two earphones in the earphone device are worn by the same user or by different users, and then the two earphones respectively select their respective corresponding earphones according to the wearing type of the earphone device.
  • the target connected device, the two earphones only receive and play the audio signal of their corresponding target connected device, and do not play the audio signal of other connected devices, so that the two earphones can respectively play the audio of the two connected devices at the same time
  • the audio signal expands the scope of application of the headset and enhances user experience.
  • the process of determining the wearing category of the earphone device includes:
  • the wearing type of the earphone device is worn by the same user; otherwise, it is determined that the wearing type of the earphone device is worn by different users.
  • the process of obtaining the first inertial parameter of the machine includes:
  • the process of obtaining the second inertial parameter of another earphone in the earphone device includes:
  • the second inertial parameter of the other earphone is acquired.
  • the process of determining the wearing category of the earphone device includes:
  • the wearing category of the earphone device is worn by the same user
  • the wearing category of the earphone device is worn by different users
  • the second preset value is greater than or equal to the first preset value.
  • the process of obtaining the distance between the local machine and another earphone in the earphone device includes:
  • the process of selecting a target connection device of this machine from multiple connection devices according to the wearing category includes:
  • a connecting device different from the target connecting device of another headset is selected as the target connecting device of this machine among the multiple connecting devices.
  • the process of selecting a target connection device of this machine from multiple connection devices according to the wearing category includes:
  • the wearing order and wearing category select the target connecting device of this machine among multiple connecting devices.
  • an earphone connection device switching device including:
  • Memory 21 used to store computer programs
  • the processor 22 is configured to implement the steps of the method for switching the connected device of the earphone as described in any one of the above embodiments when executing the computer program.
  • the memory 21 includes a non-volatile storage medium and an internal memory 21 .
  • the non-volatile storage medium stores an operating system and computer-readable instructions
  • the internal memory 21 provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium.
  • the processor 22 provides computing and control capabilities for the earphone device. When executing the computer program stored in the memory 21, the following steps can be implemented: determine the wearing category of the earphone device, whether the wearing category is worn by the same user or worn by different users; Select the target connection device of this unit from one connection device; receive and play the audio signal of the target connection device.
  • the wearing type of the earphone device is first judged, that is, whether the two earphones in the earphone device are worn by the same user or by different users, and then the two earphones respectively select their respective corresponding earphones according to the wearing type of the earphone device.
  • the target connected device, the two earphones only receive and play the audio signal of their corresponding target connected device, and do not play the audio signal of other connected devices, so that the two earphones can respectively play the audio of the two connected devices at the same time
  • the audio signal expands the scope of application of the headset and enhances user experience.
  • the processor 22 executes the computer subroutine stored in the memory 21, the following steps can be implemented: acquiring the first inertial parameter of the machine; acquiring the second inertial parameter of another earphone in the earphone device ; When the direction of the first inertial parameter and the second inertial parameter are the same or opposite, it is determined that the wearing category of the headset device is worn by the same user; otherwise, it is determined that the wearing category of the headset device is worn by different users.
  • the processor 22 executes the computer subroutine stored in the memory 21, the following steps can be implemented: when it is detected that the machine is in the wearing state, the first inertial parameter of the machine is obtained;
  • the process of the second inertial parameter of the other earphone includes: when it is detected that the other earphone in the earphone device is in the wearing state, acquiring the second inertial parameter of the other earphone.
  • the processor 22 executes the computer subroutine stored in the memory 21, the following steps can be implemented: obtain the distance between the machine and another earphone in the earphone device; when the distance is less than the first preset value, the wearing category of the headset device is worn by the same user; when the distance is greater than the second preset value, the wearing category of the headset device is worn by different users; the second preset value is greater than or equal to the first preset value.
  • the processor 22 executes the computer subroutine stored in the memory 21, the following steps may be implemented: measure the distance between the device and another earphone in the earphone device through RSSI.
  • the processor 22 executes the computer subroutine stored in the memory 21, the following steps can be implemented: when the wearing category is worn by the same user, select the target connection device of another earphone among multiple connection devices As the target connection device of this unit; when the wearing category is worn by multiple users, select a connection device different from the target connection device of another headset among the multiple connection devices as the target connection device of this unit.
  • the processor 22 executes the computer subroutine stored in the memory 21, the following steps can be implemented: obtain the wearing sequence of the headset and another earphone; Select the target connection device of this machine from the connection devices.
  • the present application also provides an earphone device, which includes two earphones, and both earphones include the above-mentioned device switching device for earphones.
  • An earphone device provided by the present application has the same beneficial effect as the above-mentioned method for switching the connecting device of the earphone.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Headphones And Earphones (AREA)

Abstract

本申请公开了一种耳机的连接设备切换方法,应用于耳机设备中的任一耳机,该连接设备切换方法包括:确定所述耳机设备的佩戴类别,所述佩戴类别为同一用户佩戴或不同用户佩戴;根据所述佩戴类别在多个所述连接设备中选择本机的目标连接设备;接收并播放所述目标连接设备的音频信号。本申请能够实现在同一时刻两只耳机分别播放两个连接设备的音频信号,扩大了耳机的适用范围,增强用户体验。本申请还公开了一种耳机的连接设备切换系统、装置及耳机设备,具有以上有益效果。

Description

一种耳机的连接设备切换方法、系统及相关组件
本申请要求于2021年8月31日提交中国专利局、申请号为202111013223.8、发明名称为“一种耳机的连接设备切换方法、系统及相关组件”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及音频控制领域,特别涉及一种耳机的连接设备切换方法、系统及相关组件。
背景技术
目前,蓝牙耳机已经实现了多设备连接,即一对TWS(True Wireless Stereo,真无线立体声)耳机可以同时连接一部电脑和手机,或者一对TWS耳机可以同时连接两部手机。但是在同一时刻一对TWS耳机只能播放一个连接设备的音频,举例说明,当耳机正在播放连接设备1的音频时,连接设备2则无法通过该耳机播放音频;当耳机正在播放连接设备1的音频时,若连接设备2有来电通话,连接设备2会直接占用耳机,中断设备1的音频播放。在某些特殊场景,如两个用户各佩戴TWS耳机中的一只耳机时,现有方案无法实现一只耳机播放一个连接设备的音频,影响用户体验。
因此,如何提供一种解决上述技术问题的方案是本领域技术人员目前需要解决的问题。
发明内容
本申请的目的是提供一种耳机的连接设备切换方法、系统、装置及耳机设备,能够实现在同一时刻两只耳机分别播放两个连接设备的音频信号,扩大了耳机的适用范围,增强用户体验。
为解决上述技术问题,本申请提供了一种耳机的连接设备切换方法,应用于耳机设备中的任一耳机,该连接设备切换方法包括:
确定所述耳机设备的佩戴类别,所述佩戴类别为同一用户佩戴或不同用 户佩戴;
根据所述佩戴类别在多个所述连接设备中选择本机的目标连接设备;
接收并播放所述目标连接设备的音频信号。
可选的,所述确定所述耳机设备的佩戴类别的过程包括:
获取本机的第一惯性参数;
获取所述耳机设备中的另一所述耳机的第二惯性参数;
当所述第一惯性参数和所述第二惯性参数方向相同或方向相反,判定所述耳机设备的佩戴类别为同一用户佩戴,否则,判定所述耳机设备的佩戴类别为不同用户佩戴。
可选的,所述获取本机的第一惯性参数的过程包括:
当检测到本机为佩戴状态,获取本机的第一惯性参数;
所述获取所述耳机设备中的另一所述耳机的第二惯性参数的过程包括:
当检测到所述耳机设备中的另一所述耳机为所述佩戴状态,获取另一所述耳机的第二惯性参数。
可选的,所述确定所述耳机设备的佩戴类别的过程包括:
获取本机和所述耳机设备中另一所述耳机之间的距离;
当所述距离小于第一预设值,所述耳机设备的佩戴类别为同一用户佩戴;
当所述距离大于第二预设值,所述耳机设备的佩戴类别为不同用户佩戴;
所述第二预设值大于或等于所述第一预设值。
可选的,所述获取本机和所述耳机设备中另一所述耳机之间的距离的过程包括:
通过RSSI测量本机和所述耳机设备中另一所述耳机之间的距离。
可选的,所述根据所述佩戴类别在多个所述连接设备中选择本机的目标连接设备的过程包括:
当所述佩戴类别为同一用户佩戴,在多个所述连接设备中选择另一所述耳机的目标连接设备作为本机的目标连接设备;
当所述佩戴类别为多个用户佩戴,在多个所述连接设备中选择与另一所述耳机的目标连接设备不同的连接设备作为本机的目标连接设备。
可选的,所述根据所述佩戴类别在多个所述连接设备中选择本机的目标连接设备的过程包括:
获取本机与另一所述耳机的佩戴先后顺序;
根据所述佩戴先后顺序及所述佩戴类别,在多个所述连接设备中选择本机的目标连接设备。
为解决上述技术问题,本申请还提供了一种耳机的连接设备切换系统,应用于耳机设备中的任一耳机,该连接设备切换系统包括:
确定模块,用于确定所述耳机设备的佩戴类别,所述佩戴类别为同一用户佩戴或不同用户佩戴;
选择模块,用于根据所述佩戴类别在多个所述连接设备中选择本机的目标连接设备;
控制模块,用于接收并播放所述目标连接设备的音频信号。
为解决上述技术问题,本申请还提供了一种耳机的连接设备切换装置,包括:
存储器,用于存储计算机程序;
处理器,用于执行所述计算机程序时实现如上文任意一项所述的耳机的连接设备切换方法的步骤。
为解决上述技术问题,本申请还提供了一种耳机设备,包括两个耳机,两个所述耳机均包括上文所述的耳机的连接设备切换装置。
本申请提供了一种耳机的连接设备切换方法,首先判断耳机设备的佩戴类别,即耳机设备中的两只耳机是由同一用户佩戴,还是由不同用户佩戴,然后两只耳机分别根据耳机设备的佩戴类别选择其各自对应的目标连接设备,两只耳机均仅接收并播放播放其各自对应的目标连接设备的音频信号,而不播放其他连接设备的音频信号,从而实现在同一时刻两只耳机分别播放两个连接设备的音频信号,扩大了耳机的适用范围,增强用户体验。本申请还提供了一种耳机的连接设备切换系统、装置及耳机设备,具有和上述耳机的连接设备切换方法相同的有益效果。
附图说明
为了更清楚地说明本申请实施例,下面将对实施例中所需要使用的附图做简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据 这些附图获得其他的附图。
图1为本申请所提供的一种耳机的连接设备切换方法的步骤流程图;
图2为本申请所提供的一种六轴加速度计示意图;
图3为本申请所提供的一种耳机的连接设备切换系统的结构示意图;
图4为本申请所提供的一种耳机的连接设备切换装置的结构示意图。
具体实施方式
本申请的核心是提供一种耳机的连接设备切换方法、系统、装置及耳机设备,能够实现在同一时刻两只耳机分别播放两个连接设备的音频信号,扩大了耳机的适用范围,增强用户体验。
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
首先需要说明的是,耳机设备包括两个耳机,分别为左耳机或右耳机,两个耳机均可以与多个连接设备配对,为便于理解,以两个连接设备分别为电脑和手机为例对本申请的方案进行说明。在执行本方案之前,首先完成左耳机与电脑和手机的配对,以及右耳机与电脑和手机的配对,以便左、右耳机均可以选择接收手机和/或电脑的音频信号。
可以理解的是,耳机设备在不同的应用环境中可选择不同的佩戴类别,如在一些应用环境中,左、右耳机可由同一用户佩戴,在另一些应用环境中,左、右耳机可分别由两个用户佩戴,考虑到耳机设备在不同的佩戴类别下,左、右耳机对于其各自要接收哪一个连接设备的音频信号会有不同的选择。
具体的,本实施例的方案的执行主体可以为耳机设备中的任一从充电仓中取出并佩戴的耳机,下文均以左耳机为例对本申请的控制逻辑进行说明,右耳机的控制逻辑,同理。
下面对本申请所提供的耳机的连接设备切换方法进行详细说明。
请参照图1,图1为本申请所提供的一种耳机的连接设备切换方法的步骤 流程图,该耳机的连接设备切换方法包括:
S101:确定耳机设备的佩戴类别,佩戴类别为同一用户佩戴或不同用户佩戴;
具体的,首先确定耳机设备的佩戴类别,即确定本机与右耳机是由同一用户佩戴,还是由两个用户分别佩戴,其中,同一用户佩戴中还包括,一个用户仅佩戴本机而右耳机仍在充电仓中未取出的情况,即单机佩戴。
本实施例中,可以按预设周期确定耳机设备的佩戴类别,以便及时发现耳机设备的佩戴类别的变化,并做出响应。
可以理解的是,假设本机与右耳机均从充电仓中取出,本机和右耳机的取出时间会存在先后顺序,可由先取出的耳机对耳机设备的佩戴类别进行检测。举例说明,假设本机先从充电仓中取出佩戴,本机可以每隔预设时间检测一次耳机设备的佩戴类别,并将该检测结果发送给正常佩戴的右耳机,以便右耳机根据本机的检测结果确定耳机设备的佩戴类别。相应的,假设右耳机先从充电仓中取出佩戴,则可由右耳机每隔预设时间检测一次耳机设备的佩戴类别,本机佩戴后可根据右耳机发送的检测结果确定耳机设备的佩戴类别。
进一步的,可预先选择耳机设备中的任意一个耳机作为主控耳机,另一耳机作为从控耳机。本机佩戴后,当检测到本机为主控耳机,本机可以每隔预设时间检测一次耳机设备的佩戴类别,并将检测结果发送给正常佩戴的从控耳机,以使从控耳机根据本机的检测结果确定耳机设备的佩戴类别,本机佩戴后,当检测到本机为从控耳机,本机可根据接收到的主控耳机发送的检测结果确定耳机设备的佩戴类别。考虑到可能存在从控耳机先于主控耳机从充电仓中取出的情况,若从控耳机从佩戴时刻起的预设时间段内,未接收到主控耳机发送的佩戴类别检测结果,则本机确定耳机设备的佩戴类别为单机佩戴,若后续接收到主控耳机发送的佩戴类别检测结果,再按该佩戴类别检测结果确定耳机设备的佩戴类别。
由一个耳机完成佩戴类别的判定,可以保证两个耳机是采用相同的佩戴类别检测结果进行后续的控制,以便后续准确选择各自对应的目标连接设备。
当然,也可由两个耳机各自分别对耳机设备的佩戴类别进行检测,即本机从充电仓取出并佩戴后,检测耳机设备的佩戴类别,右耳机从充电仓中取 出佩戴后,检测耳机设备的佩戴类别,两个耳机分别根据各自的检测得到的佩戴类别,选择各自对应的目标连接设备。
S102:根据佩戴类别在多个连接设备中选择本机的目标连接设备;
S103:接收并播放目标连接设备的音频信号。
在耳机设备的实际使用过程中,每一只耳机在同一时刻仅能播放一个连接设备的音频信号。因此,需要根据耳机设备的佩戴类别在所有连接设备中选择一个连接设备作为本机的目标连接设备,本机仅接收并播放目标连接设备的音频信号,本机不接收其他配对的连接设备的音频信号。
参照上文所述,佩戴类别包括同一用户佩戴或不同用户佩戴,在本申请中,当耳机设备中的两只耳机都从充电仓取出时,同一用户佩戴,即本机和右耳机由一个用户佩戴,不同用户佩戴,即本机由有一个用户佩戴,而右耳机由另一个用户佩戴,当耳机设备中只有本机从充电仓取出时,同一用户佩戴类别中还包括单机佩戴。
可以理解的是,本机与右耳机之间存在通信连接,可以进行数据交互,因此,二者可传输各自选择的目标连接设备的信息。
作为一种可选的实施例,根据佩戴类别在多个连接设备中选择本机的目标连接设备的过程包括:
当佩戴类别为同一用户佩戴,在多个连接设备中选择另一耳机的目标连接设备作为本机的目标连接设备;
当佩戴类别为多个用户佩戴,在多个连接设备中选择与另一耳机的目标连接设备不同的连接设备作为本机的目标连接设备。
具体的,若佩戴类别对应本机和右耳机由一个用户佩戴,那么本机选择的目标连接设备,与右耳机选择的目标连接设备相同,本机与右耳机均接收同一个目标连接设备的音频信号并输出,此时可以实现较高的立体声听觉体验。
若佩戴类别对应本机和右耳机分别由两个用户佩戴,那么本机选择的目标连接设备,与右耳机选择的目标连接设备可以不同。假设本机由用户A佩戴,右耳机由用户B佩戴,若本机选择电脑作为目标连接设备,接收并播放电脑的音频信号,相应的,右耳机选择手机作为目标连接设备,接收并播放耳机的音频信号,从而达到在同一时刻两只耳机分别播放不同连接设备的音 频信号的目的。当然,在某些应用环境下,如当用户A和用户B通过一台电脑看电影时,此时,本机和右耳机均可选择电脑作为目标连接设备,使本机和右耳机均接收并播放电脑的连接信号。
若佩戴类别为单机佩戴,即只有本机被取出佩戴,而右耳机在充电仓中未取出时,本机可根据各连接设备的音频信号播放顺序、各连接设备的播放优先级等信息选择目标连接设备。举例说明,当本机从充电仓中取出并佩戴后,若手机先输出音频信号,则将手机作为本机的目标连接设备;若手机和电脑均输出音频信号,则可根据预设的手机和电脑的播放优先级,选择播放优先级较高的连接设备作为本机的目标连接设备;若手机和电脑均输出音频信号,当本机从充电仓被取出后,手机和电脑均会暂停音频信号的输出,由用户选择某一设备继续播放,被选择的设备即为本机的目标连接设备。
可见,本实施例中,首先判断耳机设备的佩戴类别,即耳机设备中的两只耳机是由同一用户佩戴,还是由不同用户佩戴,然后两只耳机分别根据耳机设备的佩戴类别选择其各自对应的目标连接设备,两只耳机均仅接收并播放播放其各自对应的目标连接设备的音频信号,而不播放其他连接设备的音频信号,从而实现在同一时刻两只耳机分别播放两个连接设备的音频信号,扩大了耳机的适用范围,增强用户体验。
在上述实施例的基础上:
作为一种可选的实施例,确定耳机设备的佩戴类别的过程包括:
获取本机的第一惯性参数;
获取耳机设备中的另一耳机的第二惯性参数;
当第一惯性参数和第二惯性参数方向相同或方向相反,判定耳机设备的佩戴类别为同一用户佩戴,否则,判定耳机设备的佩戴类别为不同用户佩戴。
作为一种可选的实施例,获取本机的第一惯性参数的过程包括:
当检测到本机为佩戴状态,获取本机的第一惯性参数;
获取耳机设备中的另一耳机的第二惯性参数的过程包括:
当检测到耳机设备中的另一耳机为佩戴状态,获取另一耳机的第二惯性参数。
具体的,耳机设备中每一耳机内部均包括惯性传感器和接近传感器,其 中接近传感器用于执行耳机的佩戴检测,惯性传感器在判定耳机正常佩戴后获取耳机的惯性参数,两个耳机可通过无线传输各自的惯性参数。以左耳机为例对佩戴类别的检测过程进行说明,当左耳机从充电仓被取出后,左耳机内部的接近传感器工作,检测左耳机是否被用户佩戴,若是,左耳机的惯性传感器工作,获取左耳机的第一惯性参数,当左耳机获取到右耳机的第二惯性参数后,比对第一惯性参数和第二惯性参数,当第一惯性参数和第二惯性参数方向相同或方向相反,判定耳机设备的佩戴类别为同一用户佩戴,否则,判定耳机设备的佩戴类别为不同用户佩戴,右耳机的佩戴类别的检测过程,同理。
当然,上述实施例是两个耳机均进行佩戴类别检测的方案,作为另一种可选的实施例,还可以根据两只耳机从充电仓中取出的先后顺序,由先取出的耳机进行佩戴类别的检测,假设先取出的耳机为左耳机,左耳机正常佩戴后,通过惯性传感器获取自身的惯性参数,当右耳机取出佩戴后,由惯性传感器获取其自身的惯性参数后,将该惯性参数发送给左耳机,左耳机将自身的惯性参数和右耳机发送的惯性参数进行比对得到耳机设备的佩戴类别,并将佩戴类别发送给右耳机,在本实施例中,右耳机无需获取左耳机的惯性参数执行比对、佩戴类别判定等操作。
下面对如何根据左、右耳机的惯性参数确定耳机设备的佩戴类别进行举例说明:首先定义惯性传感器的六个轴,三轴加速度分别为a x,a y,a z,三轴角加速度分别为a rx,a ry,a rz,六轴加速度计示意图参照图2所示。左耳机或右耳机从充电仓取出后,左耳机和右耳机都会通过接近传感器进行佩戴检测,当检测到左耳机佩戴后,左耳机的惯性传感器开始工作并采集六轴参数,即a 1x,a 1y,a 1z,a 1rx,a 1ry,a 1rz,当右耳机的接近传感器检测到右耳机正常佩戴后,右耳机的惯性传感器开始工作并采集六轴参数,即a 2x,a 2y,a 2z,a 2rx,a 2ry,a 2rz
当左、右耳机被同一用户佩戴时,无论用户头部进行什么动作,左、右耳机的相对位置是不变的,运动方向可以确定,加速度方向会在同一直线上,要么同向,要么反向,首先判断三轴的加速度,三轴的加速度合成矢量大小会不同,但是方向一定是同向或者反向,因此,判断合成矢量的方向,
Figure PCTCN2021122225-appb-000001
Figure PCTCN2021122225-appb-000002
的方向相同或相反,不进行数值大小的匹配,三轴角 加速度的方向一定相同,即a 1rx与a 2rx方向相同,a 1ry与a 2ry方向相同,a 1rz与a 2rz方向相同。左、右耳机的惯性传感器均按预设周期(如6ms)采集六轴参数,当连续多个周期(如300ms)采集到六轴参数均满足上述条件,则判定佩戴类别为同一用户佩戴。进一步的,如果中间有少许采样数据不满足条件,则舍弃,并增加数据进行匹配以确保准确性。
当左、右耳机分别被不同用户佩戴时,两个用户的运动状况会不同,此时合成的矢量方向
Figure PCTCN2021122225-appb-000003
Figure PCTCN2021122225-appb-000004
不在一条直线(方向不相同也不相反),角加速度a 1rx与a 2rx方向可能不同,a 1ry与a 2ry方向,a 1rz与a 2rz方向可能会不同,如果连续多个周期(如300ms)采集到六轴参数,只要每次都能够满足以上四点中的一点,则判定佩戴类别为不同用户佩戴。进一步的,如果中间有少许数据不满足上述条件,则舍弃并增加数据匹配以确保准确性。可以理解的是,惯性传感器的精度较高,能够较为准确地识别出两个用户佩戴时的运动状况的不同。
作为一种可选的实施例,确定耳机设备的佩戴类别的过程包括:
获取本机和耳机设备中另一耳机之间的距离;
当距离小于第一预设值,耳机设备的佩戴类别为同一用户佩戴;
当距离大于第二预设值,耳机设备的佩戴类别为不同用户佩戴;
第二预设值大于或等于第一预设值。作为一种可选的实施例,获取本机和耳机设备中另一耳机之间的距离的过程包括:
通过RSSI测量本机和耳机设备中另一耳机之间的距离。
可以理解的是,目前耳机设备中的两个耳机均通过蓝牙进行通信,因此,可通过蓝牙RSSI测距原理来判断两个耳机之间距离。具体的,蓝牙RSSI测距原理是通过蓝牙信号强度和收发设备距离建立相关的关系式,从而通过RSSI值计算出两个蓝牙设备(即本申请中的左耳机和右耳机)间的距离。关系式为:
d=10 (A-txpower)/10n
其中,d为左耳机和右耳机之间的距离,n为经验值,在工厂端进行校准测算,txpower为当前设备距离1m时的RSSI值,A为当前获取的RSSI值。D和A值近似的成正比的关系。在出厂前对每对耳机进行RSSI校准,固定n值和txpower值。然后使用仿真头(50-65cm)进行校准,获取真实佩戴情况 下,正常人佩戴的RSSI值,存储到flash中。
在用户进行佩戴时,进行A值的检测,如果在flash存储的区间内,则说明为佩戴类别为同一用户佩戴,可语音提示单人佩戴,如果此时实际为两人佩戴,则两位用户位置疏远一些,则可重新判断为不同用户佩戴,并且停止进行佩戴类别的检测,直到检测出有人摘下耳机的动作后,再重新进行佩戴类别的检测,相应的,如果佩戴后检测到的A值不在区间内,则直接判断为不同用户佩戴。
作为一种可选的实施例,根据佩戴类别在多个连接设备中选择本机的目标连接设备的过程包括:
获取本机与另一耳机的佩戴先后顺序;
根据佩戴先后顺序及佩戴类别,在多个连接设备中选择本机的目标连接设备。
具体的,假设左耳机先从充电仓中取出,当左耳机取出并被佩戴后,从电脑或手机中选择一个连接设备作为左耳机的目标连接设备,假设目标连接设备为手机,则令手机输出音频信号,保证左耳机与手机进行匹配,接收手机输出的音频信号,然后当右耳机从充电仓中取出佩戴后,进行佩戴类别的检测,如果是同一用户佩戴,右耳机也选择耳机作为目标连接设备,接收并播放手机输出的音频信号,若果是不同用户佩戴,右耳机选择电脑作为目标连接设备,接收并播放电脑输出的音频信号。
请参照图3,图3为本申请所提供的一种耳机的连接设备切换系统的结构示意图,应用于耳机设备中的任一耳机,该连接设备切换系统包括:
确定模块11,用于确定耳机设备的佩戴类别,佩戴类别为同一用户佩戴或不同用户佩戴;
选择模块12,用于根据佩戴类别在多个连接设备中选择本机的目标连接设备;
控制模块13,用于接收并播放目标连接设备的音频信号。
可见,本实施例中,首先判断耳机设备的佩戴类别,即耳机设备中的两只耳机是由同一用户佩戴,还是由不同用户佩戴,然后两只耳机分别根据耳机设备的佩戴类别选择其各自对应的目标连接设备,两只耳机均仅接收并播 放播放其各自对应的目标连接设备的音频信号,而不播放其他连接设备的音频信号,从而实现在同一时刻两只耳机分别播放两个连接设备的音频信号,扩大了耳机的适用范围,增强用户体验。
作为一种可选的实施例,确定耳机设备的佩戴类别的过程包括:
获取本机的第一惯性参数;
获取耳机设备中的另一耳机的第二惯性参数;
当第一惯性参数和第二惯性参数方向相同或方向相反,判定耳机设备的佩戴类别为同一用户佩戴,否则,判定耳机设备的佩戴类别为不同用户佩戴。
作为一种可选的实施例,获取本机的第一惯性参数的过程包括:
当检测到本机为佩戴状态,获取本机的第一惯性参数;
获取耳机设备中的另一耳机的第二惯性参数的过程包括:
当检测到耳机设备中的另一耳机为佩戴状态,获取另一耳机的第二惯性参数。
作为一种可选的实施例,确定耳机设备的佩戴类别的过程包括:
获取本机和耳机设备中另一耳机之间的距离;
当距离小于第一预设值,耳机设备的佩戴类别为同一用户佩戴;
当距离大于第二预设值,耳机设备的佩戴类别为不同用户佩戴;
第二预设值大于或等于第一预设值。
作为一种可选的实施例,获取本机和耳机设备中另一耳机之间的距离的过程包括:
通过RSSI测量本机和耳机设备中另一耳机之间的距离。
作为一种可选的实施例,根据佩戴类别在多个连接设备中选择本机的目标连接设备的过程包括:
当佩戴类别为同一用户佩戴,在多个连接设备中选择另一耳机的目标连接设备作为本机的目标连接设备;
当佩戴类别为多个用户佩戴,在多个连接设备中选择与另一耳机的目标连接设备不同的连接设备作为本机的目标连接设备。
作为一种可选的实施例,根据佩戴类别在多个连接设备中选择本机的目标连接设备的过程包括:
获取本机与另一耳机的佩戴先后顺序;
根据佩戴先后顺序及佩戴类别,在多个连接设备中选择本机的目标连接设备。
另一方面,本申请还提供了一种耳机的连接设备切换装置,包括:
存储器21,用于存储计算机程序;
处理器22,用于执行计算机程序时实现如上文任意一个实施例所描述的耳机的连接设备切换方法的步骤。
具体的,存储器21包括非易失性存储介质、内存储器21。该非易失性存储介质存储有操作系统和计算机可读指令,该内存储器21为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。处理器22为耳机设备提供计算和控制能力,执行存储器21中保存的计算机程序时,可以实现以下步骤:确定耳机设备的佩戴类别,佩戴类别为同一用户佩戴或不同用户佩戴;根据佩戴类别在多个连接设备中选择本机的目标连接设备;接收并播放目标连接设备的音频信号。
可见,本实施例中,首先判断耳机设备的佩戴类别,即耳机设备中的两只耳机是由同一用户佩戴,还是由不同用户佩戴,然后两只耳机分别根据耳机设备的佩戴类别选择其各自对应的目标连接设备,两只耳机均仅接收并播放播放其各自对应的目标连接设备的音频信号,而不播放其他连接设备的音频信号,从而实现在同一时刻两只耳机分别播放两个连接设备的音频信号,扩大了耳机的适用范围,增强用户体验。
作为一种可选的实施例,处理器22执行存储器21中保存的计算机子程序时,可以实现以下步骤:获取本机的第一惯性参数;获取耳机设备中的另一耳机的第二惯性参数;当第一惯性参数和第二惯性参数方向相同或方向相反,判定耳机设备的佩戴类别为同一用户佩戴,否则,判定耳机设备的佩戴类别为不同用户佩戴。
作为一种可选的实施例,处理器22执行存储器21中保存的计算机子程序时,可以实现以下步骤:当检测到本机为佩戴状态,获取本机的第一惯性参数;获取耳机设备中的另一耳机的第二惯性参数的过程包括:当检测到耳机设备中的另一耳机为佩戴状态,获取另一耳机的第二惯性参数。
作为一种可选的实施例,处理器22执行存储器21中保存的计算机子程 序时,可以实现以下步骤:获取本机和耳机设备中另一耳机之间的距离;当距离小于第一预设值,耳机设备的佩戴类别为同一用户佩戴;当距离大于第二预设值,耳机设备的佩戴类别为不同用户佩戴;第二预设值大于或等于第一预设值。
作为一种可选的实施例,处理器22执行存储器21中保存的计算机子程序时,可以实现以下步骤:通过RSSI测量本机和耳机设备中另一耳机之间的距离。
作为一种可选的实施例,处理器22执行存储器21中保存的计算机子程序时,可以实现以下步骤:当佩戴类别为同一用户佩戴,在多个连接设备中选择另一耳机的目标连接设备作为本机的目标连接设备;当佩戴类别为多个用户佩戴,在多个连接设备中选择与另一耳机的目标连接设备不同的连接设备作为本机的目标连接设备。
作为一种可选的实施例,处理器22执行存储器21中保存的计算机子程序时,可以实现以下步骤:获取本机与另一耳机的佩戴先后顺序;根据佩戴先后顺序及佩戴类别,在多个连接设备中选择本机的目标连接设备。
另一方面,本申请还提供了一种耳机设备,包括两个耳机,两个耳机均包括上文的耳机的连接设备切换装置。
对于本申请所提供的一种耳机设备的介绍请参照上述实施例,本申请在此不再赘述。
本申请所提供的一种耳机设备具有和上述耳机的连接设备的切换方法相同的有益效果。
还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的状况下,由语句“包括一个……”限定的要素, 并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其他实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims (10)

  1. 一种耳机的连接设备切换方法,其特征在于,应用于耳机设备中的任一耳机,该连接设备切换方法包括:
    确定所述耳机设备的佩戴类别,所述佩戴类别为同一用户佩戴或不同用户佩戴;
    根据所述佩戴类别在多个所述连接设备中选择本机的目标连接设备;
    接收并播放所述目标连接设备的音频信号。
  2. 根据权利要求1所述的连接设备切换方法,其特征在于,所述确定所述耳机设备的佩戴类别的过程包括:
    获取本机的第一惯性参数;
    获取所述耳机设备中的另一所述耳机的第二惯性参数;
    当所述第一惯性参数和所述第二惯性参数方向相同或方向相反,判定所述耳机设备的佩戴类别为同一用户佩戴,否则,判定所述耳机设备的佩戴类别为不同用户佩戴。
  3. 根据权利要求2所述的连接设备切换方法,其特征在于,所述获取本机的第一惯性参数的过程包括:
    当检测到本机为佩戴状态,获取本机的第一惯性参数;
    所述获取所述耳机设备中的另一所述耳机的第二惯性参数的过程包括:
    当检测到所述耳机设备中的另一所述耳机为所述佩戴状态,获取另一所述耳机的第二惯性参数。
  4. 根据权利要求1所述的连接设备切换方法,其特征在于,所述确定所述耳机设备的佩戴类别的过程包括:
    获取本机和所述耳机设备中另一所述耳机之间的距离;
    当所述距离小于第一预设值,所述耳机设备的佩戴类别为同一用户佩戴;
    当所述距离大于第二预设值,所述耳机设备的佩戴类别为不同用户佩戴;
    所述第二预设值大于或等于所述第一预设值。
  5. 根据权利要求4所述的连接设备切换方法,其特征在于,所述获取本机和所述耳机设备中另一所述耳机之间的距离的过程包括:
    通过RSSI测量本机和所述耳机设备中另一所述耳机之间的距离。
  6. 根据权利要求1所述的连接设备切换方法,其特征在于,所述根据所述佩戴类别在多个所述连接设备中选择本机的目标连接设备的过程包括:
    当所述佩戴类别为同一用户佩戴,在多个所述连接设备中选择另一所述耳机的目标连接设备作为本机的目标连接设备;
    当所述佩戴类别为多个用户佩戴,在多个所述连接设备中选择与另一所述耳机的目标连接设备不同的连接设备作为本机的目标连接设备。
  7. 根据权利要求1-6任意一项所述的连接设备切换方法,其特征在于,所述根据所述佩戴类别在多个所述连接设备中选择本机的目标连接设备的过程包括:
    获取本机与另一所述耳机的佩戴先后顺序;
    根据所述佩戴先后顺序及所述佩戴类别,在多个所述连接设备中选择本机的目标连接设备。
  8. 一种耳机的连接设备切换系统,其特征在于,应用于耳机设备中的任一耳机,该连接设备切换系统包括:
    确定模块,用于确定所述耳机设备的佩戴类别,所述佩戴类别为同一用户佩戴或不同用户佩戴;
    选择模块,用于根据所述佩戴类别在多个所述连接设备中选择本机的目标连接设备;
    控制模块,用于接收并播放所述目标连接设备的音频信号。
  9. 一种耳机的连接设备切换装置,其特征在于,包括:
    存储器,用于存储计算机程序;
    处理器,用于执行所述计算机程序时实现如权利要求1-7任意一项所述的耳机的连接设备切换方法的步骤。
  10. 一种耳机设备,其特征在于,包括两个耳机,两个所述耳机均包括如权利要求9所述的耳机的连接设备切换装置。
PCT/CN2021/122225 2021-08-31 2021-09-30 一种耳机的连接设备切换方法、系统及相关组件 WO2023029143A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111013223.8 2021-08-31
CN202111013223.8A CN113596802A (zh) 2021-08-31 2021-08-31 一种耳机的连接设备切换方法、系统及相关组件

Publications (1)

Publication Number Publication Date
WO2023029143A1 true WO2023029143A1 (zh) 2023-03-09

Family

ID=78240676

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/122225 WO2023029143A1 (zh) 2021-08-31 2021-09-30 一种耳机的连接设备切换方法、系统及相关组件

Country Status (2)

Country Link
CN (1) CN113596802A (zh)
WO (1) WO2023029143A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666445B (zh) * 2022-02-25 2023-09-01 华为技术有限公司 通话方法、装置、芯片和可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150055784A1 (en) * 2013-04-11 2015-02-26 Darryl Dwight Brayton Headset Hearing Protection with Integrated Transceiver and Siren Alert Device
CN109379653A (zh) * 2018-09-30 2019-02-22 Oppo广东移动通信有限公司 音频传输方法、装置、电子设备及存储介质
CN111182401A (zh) * 2019-12-31 2020-05-19 联想(北京)有限公司 一种检测方法及电子设备
CN111698607A (zh) * 2020-07-03 2020-09-22 歌尔科技有限公司 Tws耳机音频输出控制方法、装置、设备及介质
CN112752198A (zh) * 2019-10-31 2021-05-04 深圳市冠旭电子股份有限公司 控制耳机播放立体声的方法、装置、终端及存储介质

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105050002B (zh) * 2015-08-05 2019-08-20 惠州Tcl移动通信有限公司 一种智能终端的多媒体播放方法及系统
US10575086B2 (en) * 2017-03-22 2020-02-25 Bragi GmbH System and method for sharing wireless earpieces
CN111787444A (zh) * 2020-06-19 2020-10-16 深圳市蓝色冰川教育科技有限公司 一种蓝牙耳机的配对方法、装置、蓝牙耳机及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150055784A1 (en) * 2013-04-11 2015-02-26 Darryl Dwight Brayton Headset Hearing Protection with Integrated Transceiver and Siren Alert Device
CN109379653A (zh) * 2018-09-30 2019-02-22 Oppo广东移动通信有限公司 音频传输方法、装置、电子设备及存储介质
CN112752198A (zh) * 2019-10-31 2021-05-04 深圳市冠旭电子股份有限公司 控制耳机播放立体声的方法、装置、终端及存储介质
CN111182401A (zh) * 2019-12-31 2020-05-19 联想(北京)有限公司 一种检测方法及电子设备
CN111698607A (zh) * 2020-07-03 2020-09-22 歌尔科技有限公司 Tws耳机音频输出控制方法、装置、设备及介质

Also Published As

Publication number Publication date
CN113596802A (zh) 2021-11-02

Similar Documents

Publication Publication Date Title
US8678876B2 (en) Method and apparatus for remote controlled object gaming with proximity-based augmented reality enhancement
CN108810788A (zh) 一种无线耳机的佩戴情况检测方法、装置及无线耳机
CN107182011B (zh) 音频播放方法及系统、移动终端、WiFi耳机
US11647352B2 (en) Head to headset rotation transform estimation for head pose tracking in spatial audio applications
CN113475094A (zh) 头戴式耳机中的不同头部检测
US10674305B2 (en) Remote multi-dimensional audio
WO2013144371A1 (en) A hearing device with an inertial measurement unit
WO2023029143A1 (zh) 一种耳机的连接设备切换方法、系统及相关组件
CN109104684A (zh) 麦克风堵孔检测方法及相关产品
WO2021103266A1 (zh) 一种头戴式设备及其佩戴检测方法、装置、介质
US11716601B2 (en) Device presence detection system
US20150334504A1 (en) Determining positions of media devices based on motion data
CN112449259B (zh) 耳机配对的方法和终端
CN108649660A (zh) 电量显示方法和无线收发设备、充电设备
WO2022057365A1 (zh) 降噪方法、终端设备及计算机可读存储介质
WO2020025033A1 (zh) 基于音量的主从切换方法及相关产品
US12022252B2 (en) Sound input-output control apparatus, sound input-output control method, and non-transitory computer-readable medium
EP4132014A1 (en) Audio signal processing method, electronic apparatus, and storage medium
CN113099373B (zh) 声场宽度扩展的方法、装置、终端及存储介质
JP2020520198A (ja) 音生成物体の装着者の耳の間の距離を決定する方法と、耳装着音生成物体
CN110987154B (zh) 一种敲击事件的检测方法、装置、介质及头戴式设备
CN114513722A (zh) 耳机的佩戴检测方法、装置、耳机设备以及存储介质
CN116347284B (zh) 耳机音效补偿方法和耳机音效补偿装置
TW202034706A (zh) 與轉換感測資料相關的系統及耳機
JP6352774B2 (ja) デバイス選択方法、端末、コンピュータプログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21955672

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE