WO2020077493A1 - Method for disconnecting earphone, related device, and computer readable storage medium - Google Patents

Method for disconnecting earphone, related device, and computer readable storage medium Download PDF

Info

Publication number
WO2020077493A1
WO2020077493A1 PCT/CN2018/110244 CN2018110244W WO2020077493A1 WO 2020077493 A1 WO2020077493 A1 WO 2020077493A1 CN 2018110244 W CN2018110244 W CN 2018110244W WO 2020077493 A1 WO2020077493 A1 WO 2020077493A1
Authority
WO
WIPO (PCT)
Prior art keywords
earphone
headset
meets
mobile terminal
duration
Prior art date
Application number
PCT/CN2018/110244
Other languages
French (fr)
Chinese (zh)
Inventor
龚金华
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to CN201880098270.7A priority Critical patent/CN112823530A/en
Priority to PCT/CN2018/110244 priority patent/WO2020077493A1/en
Publication of WO2020077493A1 publication Critical patent/WO2020077493A1/en

Links

Images

Classifications

    • 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

Definitions

  • the invention relates to the technical field of mobile terminals, in particular to a method for disconnecting a headset, related equipment and a computer-readable storage medium.
  • wireless headsets connect to mobile terminals such as mobile phones through wireless technology. People can realize various functions such as listening to music and making phone calls through wireless headphones.
  • a pair of wireless earphones can be composed of a master earphone and a slave earphone. After the master earphone establishes a data transmission link with the mobile phone, the master earphone synchronizes the received audio data to the slave earphone for playback.
  • the master earphone and slave earphone can be stored in the earphone box.
  • the master earphone or slave earphone is put into the earphone box, the master earphone and the mobile phone are automatically disconnected or the slave earphone and the master earphone are automatically disconnected.
  • the master earphone and the mobile phone are automatically reconnected or the slave earphone and the master earphone are automatically reconnected. In some scenarios, if the user repeatedly puts in and takes out the headset, it will cause repeated automatic disconnection and reconnection, resulting in poor connection stability of the headset.
  • Embodiments of the present application provide a method for disconnecting a headset, related equipment, and a computer-readable storage medium, which can reduce the number of times the headset is automatically disconnected and reconnected, and improve the connection stability of the headset.
  • a first aspect of an embodiment of the present application provides a method for disconnecting an earphone.
  • the method is applied to a mobile terminal, and the mobile terminal is communicatively connected to a first earphone of a wireless earphone, and the first earphone is connected to the wireless earphone.
  • the second headset communication connection the method includes:
  • a disconnection operation is performed on the first earphone or the second earphone.
  • a second aspect of an embodiment of the present application provides an earphone disconnection device.
  • the device is applied to a mobile terminal, and the mobile terminal is in communication connection with a first earphone of a wireless earphone, and the first earphone and the first earphone of the wireless earphone Two headset communication connections, the device includes a detection unit, a holding unit, a recording unit and a processing unit;
  • the detection unit is configured to detect whether the first earphone or the second earphone meets a corresponding disconnection condition
  • the holding unit is configured to maintain the connection state of the first earphone or the second earphone when the detection unit detects that the first earphone or the second earphone meets a corresponding disconnection condition;
  • the recording unit is configured to record that the first earphone or the second earphone meets the corresponding disconnection when the detection unit detects that the first earphone or the second earphone meets the corresponding disconnection condition Duration of open connection conditions;
  • the processing unit is configured to perform a disconnection operation on the first headset or the second headset when the duration recorded by the recording unit reaches a preset duration.
  • a third aspect of embodiments of the present application provides a mobile terminal, including a processor and a memory, where the memory is used to store one or more programs, the one or more programs are configured to be executed by the processor, the The procedure includes performing some or all of the steps as described in any method of the first aspect of the embodiments of the present application.
  • a fourth aspect of embodiments of the present application provides a computer-readable storage medium for storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute the first aspect of the embodiment of the present application Part or all of the steps described in any method.
  • a fifth aspect of an embodiment of the present application provides a computer program product.
  • the computer program product includes a non-transitory computer-readable storage medium that stores a computer program.
  • the computer program is operable to cause a computer to execute the first embodiment of the present application. In one aspect, some or all of the steps described in any method.
  • the mobile terminal detects whether the first earphone or the second earphone meets the corresponding disconnection condition; when it detects that the first earphone or the second earphone meets the corresponding disconnection condition, the first earphone or the second earphone is kept The connection status of the two earphones, and record the duration of time that the first earphone or the second earphone meets the corresponding disconnection condition; when the above duration reaches the preset time, perform a disconnection operation on the first earphone or the second earphone.
  • the first earphone or the second earphone when it is detected that the first earphone or the second earphone meets the corresponding disconnection condition, the first earphone or the second earphone is not immediately disconnected, but the first earphone or the second earphone is maintained. Connection status, within a period of time (preset duration), if the first headset or the second headset still meets the corresponding disconnection conditions, the first headset or the second headset is disconnected to avoid the first headset or the The frequent disconnection and reconnection of the second earphone can reduce the number of times the earphone automatically disconnects and reconnects, and improve the connection stability of the earphone.
  • FIG. 1 is a schematic diagram of a network architecture disclosed in an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a method for disconnecting a headset disclosed in an embodiment of the present application
  • FIG. 3 is a schematic flowchart of another method for disconnecting a headset disclosed in an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a headphone disconnecting device disclosed in an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of yet another mobile terminal disclosed in an embodiment of the present application.
  • the mobile terminals involved in the embodiments of the present application may include various handheld devices with wireless communication functions, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, and various forms of user equipment (User Equipment, UE), Mobile Station (MS), terminal device, etc.
  • UE User Equipment
  • MS Mobile Station
  • terminal device etc.
  • the above-mentioned devices are collectively referred to as mobile terminals.
  • FIG. 1 is a schematic diagram of a network architecture disclosed in an embodiment of the present application.
  • the network architecture includes a mobile terminal 100 and a wireless headset 200, where the wireless headset 200 includes a first headset 21 and a first Two earphones 22, the mobile terminal 100 and the first earphone 21 are in communication connection through a wireless network (for example, WiFi, Bluetooth), and the first earphone 21 and the second earphone 22 are in communication connection through a wireless network.
  • a wireless network for example, WiFi, Bluetooth
  • the mobile terminal 100 may include various handheld devices with wireless communication functions, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, as well as various forms of user equipment (User Equipment, UE), mobile stations (Mobile Station, MS), terminal equipment (terminal) and so on.
  • UE User Equipment
  • MS Mobile Station
  • terminal terminal equipment
  • the first headset 21 in FIG. 1 establishes a communication connection with the mobile terminal 100.
  • the first headset 21 is a master headset in the wireless headset 200
  • the second headset 22 is a slave headset in the wireless headset.
  • the main headset is a headset that establishes a communication connection with the mobile terminal 100.
  • the connection between the first earphone 21 and the mobile terminal 100 is maintained, and if the first earphone 21 is not in the wearing state after a delay, then Disconnect the first earphone 21 from the mobile terminal 100, and if it is detected that the first earphone 21 is in the wearing state within the above-mentioned period of time, then continue to maintain the connection of the first earphone 21 and the mobile terminal 100.
  • the connection between the second earphone 22 and the first earphone 21 is disconnected, and if it is detected that the second earphone 22 is in the wearing state within the above-mentioned period of time, the connection between the second earphone 22 and the first earphone 21 is continued.
  • the mobile terminal 100 can be disconnected from the first headset 21 to establish a communication connection between the mobile terminal 100 and the second headset 22, so As the main earphone, realize the switch of the main earphone.
  • the wireless earphone may be a hanging earphone, an earplug earphone, or a headset, which is not limited in the embodiments of the present application.
  • the wireless earphone may be stored in the earphone box, and the earphone box may include: two receiving cavities (a first receiving cavity and a second receiving cavity), the two receiving cavities are sized and shaped to receive the first earphone and the second earphone; One or more earphone housing magnetic components provided in the box. The one or more earphone housing magnetic components are used to magnetically attract and fix the first earphone and the second earphone to the two receiving chambers, respectively.
  • the earphone box may also include a headphone cover.
  • the size and shape of the first receiving cavity are designed to receive the first earphone, and the size and shape of the second receiving cavity are designed to receive the second earphone.
  • the wireless earphone may include an earphone housing, a rechargeable battery (for example, a lithium battery) provided in the earphone housing, a plurality of metal contacts for connecting the battery and the charging device, a speaker assembly including a driver unit and a directional sound port,
  • the driver unit includes a magnet, a voice coil, and a diaphragm. The driver unit is used to emit sound from the directional sound port.
  • the above-mentioned multiple metal contacts are provided on the outer surface of the earphone housing.
  • the wireless headset may further include a touch area, and the touch area may be located on an outer surface of the earphone housing.
  • the touch area is provided with at least one touch sensor for detecting a touch operation.
  • the touch sensor may include a capacitor sensor. When the user touches the touch area, at least one capacitive sensor can detect a change in its own capacitance to recognize the touch operation.
  • the wireless headset may further include an acceleration sensor and a three-axis gyroscope.
  • the acceleration sensor and the three-axis gyroscope may be provided in the earphone shell.
  • the acceleration sensor and the three-axis gyroscope are used to identify the wireless headset. Start action and take off action.
  • the wireless earphone may further include at least one air pressure sensor, and the air pressure sensor may be disposed on the surface of the earphone housing to detect the air pressure in the ear after the wireless earphone is worn.
  • the tightness of the wireless headset can be detected by the air pressure sensor.
  • the wireless headset may send a prompt message to the electronic device connected to the wireless headset to alert the user that the wireless headset is at risk of dropping.
  • FIG. 2 is a schematic flowchart of a method for disconnecting a headset disclosed in an embodiment of the present application. As shown in FIG. 2, the headset is disconnected.
  • the method of opening a connection includes the following steps.
  • the mobile terminal detects whether the first headset or the second headset meets the corresponding disconnection condition.
  • the mobile terminal is communicatively connected to the first headset of the wireless headset
  • the first headset is communicatively connected to the second headset of the wireless headset
  • the first headset is the master headset
  • the second headset is the slave headset.
  • the disconnection condition corresponding to the first earphone may include that the first earphone is not in a wearing state, and may specifically include that the first earphone takes off, the first earphone is put into the earphone box, the first earphone is put into the earphone box, and the earphone box Any one of being covered, the first earphone being in a still and unworn state, the first earphone being in a charging state, and the distance between the first earphone and the mobile terminal being greater than a certain distance threshold.
  • the disconnection condition corresponding to the second earphone may include that the second earphone is not in a wearing state, and may specifically include that the second earphone takes off, the second earphone is put into the earphone box, the second earphone is put into the earphone box and the earphone box Either one of being covered, the second earphone is in a still and unweared state, the second earphone is in a charged state, and the second earphone is not in a worn state.
  • both the first earphone and the second earphone may have a built-in attitude sensor, and the attitude sensor is used to detect whether the first earphone and / or the second earphone take off.
  • the attitude sensor may include a three-axis gyroscope and a three-axis acceleration sensor.
  • the earphone box can detect whether the first earphone and / or the second earphone are put into the earphone box through its built-in pressure sensor.
  • the earphone box can also detect whether the earphone box is covered.
  • the mobile terminal can also be connected to the earphone box.
  • the box may send a notification message to the mobile terminal when detecting that the first earphone and / or the second earphone are placed in the earphone box and the earphone box is covered.
  • the first earphone and / or the second earphone can detect whether it is in a charging state.
  • the first earphone and / or the second earphone may detect whether they are in a wearing state through an air pressure sensor, a pressure sensor, or an infrared sensor.
  • a specific implementation manner of the mobile terminal detecting the distance between the first headset and the mobile terminal includes: the mobile terminal determining the RSSI value of the first headset and the mobile terminal, and determining the distance between the first headset and the mobile terminal according to the RSSI value.
  • the mobile terminal can directly obtain the RSSI value of the mobile terminal and the first headset.
  • the specific implementation manner of the mobile terminal determining the distance according to the RSSI value includes: the mobile terminal determines the distance corresponding to the RSSI value according to the mapping relationship between the RSSI value and the distance. In the mapping relationship between the RSSI value and the distance, the RSSI value is inversely proportional to the distance. The larger the RSSI value, the smaller the corresponding distance, and the smaller the RSSI value, the larger the corresponding distance.
  • the mobile terminal detects whether the first headset or the second headset meets the corresponding disconnection condition, which may specifically be:
  • the mobile terminal detects whether the first earphone or the second earphone has a preset picking action; or,
  • the mobile terminal detects whether the first earphone or the second earphone is located in the earphone box and the earphone box is covered; or,
  • the mobile terminal detects whether the first earphone or the second earphone is in a charging state.
  • the preset picking action can be detected by a posture sensor (eg, gravity sensor, three-axis acceleration sensor, or three-axis gyroscope) built into the first earphone or the second earphone.
  • a posture sensor eg, gravity sensor, three-axis acceleration sensor, or three-axis gyroscope
  • the mobile terminal When detecting that the first headset or the second headset meets the corresponding disconnection condition, the mobile terminal maintains the connection status of the first headset or the second headset, and records that the first headset or the second headset meets the corresponding disconnection The duration of the condition.
  • the mobile terminal when it is detected that the first earphone or the second earphone meets the corresponding disconnection condition, the mobile terminal does not immediately perform a disconnection operation on the first earphone or the second earphone, but keeps the first earphone The connection status of the earphone or the second earphone, and start recording the duration that the first earphone or the second earphone meets the corresponding disconnection condition. If the duration of the first headset or the second headset meeting the corresponding disconnection condition reaches the preset duration, it means that the duration of the first headset or the second headset meeting the corresponding disconnection condition is longer.
  • the first earphone or the second earphone performs a disconnection operation; if the duration that the first earphone or the second earphone meets the corresponding disconnection condition is less than the preset duration, it indicates that the first earphone or the second earphone meets the corresponding disconnection
  • the duration of the condition is short, and the mobile terminal continues to maintain the connection state of the first headset or the second headset.
  • the mobile terminal performs a disconnection operation on the first headset or the second headset.
  • the mobile terminal performing the disconnection operation on the first headset is that the mobile terminal disconnects the communication connection with the first headset.
  • the mobile terminal performing the disconnection operation on the second headset is that the mobile terminal disconnects the communication connection between the second headset and the first headset.
  • the preset duration is determined based on the type of disconnection condition and the scene in which the wireless headset is located.
  • the disconnection condition may include a low-priority type disconnection condition and a high-priority type disconnection condition, where the low-priority type disconnection condition includes: the headset takes off 1. The earphone is put into the earphone box, and the earphone is in a static and unworn state; the disconnection conditions of the high priority type include: the earphone is put into the earphone box and the earphone box is covered, and the earphone is in a charging state.
  • the scenarios where the wireless headset is located may include: call scenarios, audio playback scenarios, sports scenarios, and so on.
  • the scene where the wireless headset is located can be divided into a high-frequency scene and a low-frequency scene. You can determine which scenes are high-frequency scenes based on the historical use records of wireless headphones. For example, audio playback scenes are high-frequency scenes, and call scenes and sports scenes are low-frequency scenes.
  • the combination of different types of disconnection conditions and different scenarios in which the wireless headset is located may correspond to different preset durations.
  • the correspondence between the type of disconnection condition and the type of scene where the wireless headset is located and the preset duration can be specifically referred to Table 1.
  • Types of disconnection conditions The type of scene where the wireless headset is located Default duration High priority type Low frequency scene First preset duration High priority type High frequency scene Second preset duration Low priority type Low frequency scene The third preset duration Low priority type High frequency scene Fourth preset duration
  • the size of the first preset duration, the second preset duration, the third preset duration, and the fourth preset duration increase in sequence.
  • high-priority types of disconnection conditions for example, putting the headset in the headset box for charging, the user is likely not to wear it for a long time, and the corresponding preset duration can be set shorter to save power consumption
  • low-priority types of disconnection conditions for example, taking the headset off and putting it down, the user is likely to wear it again in a short time, and the corresponding preset duration can be set longer to avoid frequent disconnection of the headset. Connected, can reduce the number of times the headset is automatically disconnected and reconnected, and improve the connection stability of the headset.
  • the corresponding preset duration can be set shorter to save power consumption.
  • the user is likely to operate the headset frequently, and can set the corresponding preset The duration is set longer to avoid frequent disconnection and reconnection of the headset, which can reduce the number of times the headset is automatically disconnected and reconnected, and improve the connection stability of the headset.
  • the mobile terminal detects whether the first headset or the second headset meets the reconnection condition.
  • the mobile terminal detects whether the first headset or the second headset meets the reconnection condition, which may specifically be:
  • the mobile terminal detects whether the first earphone or the second earphone is in a wearing state; or,
  • the mobile terminal detects whether a preset wearing action occurs on the first earphone or the second earphone.
  • the mobile terminal detecting whether the first earphone or the second earphone is in a wearing state can be detected by an air pressure sensor, a pressure sensor, or an infrared sensor in the first earphone or the second earphone.
  • the preset wearing motion may be detected by a posture sensor (eg, gravity sensor, three-axis acceleration sensor, or three-axis gyroscope) built into the first earphone or the second earphone.
  • a posture sensor eg, gravity sensor, three-axis acceleration sensor, or three-axis gyroscope
  • the mobile terminal continues to maintain the connection state of the first earphone or the second earphone.
  • the first earphone or the second earphone may be in a wearing state and a non-wearing state.
  • the first earphone or the second earphone meets the reconnection condition. If a headset or a second headset is connected, the connection status of the first headset or the second headset will continue to be maintained.
  • the connection of the first headset or the second headset will be restored;
  • the first earphone or the second earphone is in a non-wearing state, if the first earphone or the second earphone meets the reconnection condition (for example, when the first earphone or the second earphone is in the pick-up state), if the first earphone or the second earphone In the connected state, the connection state of the first earphone or the second earphone is maintained.
  • the connection of the first earphone or the second earphone is restored; when the first earphone or the second earphone When the headset is in a non-wearing state, if the first headset or the second headset meets the disconnection condition, if the first headset or the second headset is connected, record The duration of the first earphone or the second earphone meeting the corresponding disconnection condition, when the duration of the first earphone or the second earphone meeting the corresponding disconnection condition reaches a preset time, the first earphone or the second earphone is disconnected Connection, when the duration that the first headset or the second headset meets the corresponding disconnection condition is less than the preset duration, continue to maintain the connection status of the first headset or the second headset; When wearing, if the first earphone or the second earphone meets the disconnection condition, if the first earphone or the second earphone is not in the connected state, continue to maintain the connection state of the first earphone or the second earphone
  • the mobile terminal continues to maintain the connection state of the first headset as follows: the mobile terminal maintains a communication connection with the first headset.
  • the mobile terminal continues to maintain the connection state of the second headset as follows: the mobile terminal maintains the communication connection between the second headset and the first headset.
  • the method shown in FIG. 2 can be applied to audio playback scenarios or call scenarios.
  • the first earphone or the second earphone when it is detected that the first earphone or the second earphone meets the corresponding disconnection condition, the first earphone or the second earphone is not immediately disconnected, but the first earphone or the second earphone is maintained.
  • the connection status of the two earphones if the first earphone or the second earphone still meets the corresponding disconnection condition within a period of time (preset duration), then perform the disconnection operation on the first earphone or the second earphone to avoid the first earphone Frequent disconnection and reconnection of the headset or the second headset can reduce the number of times the headset is automatically disconnected and reconnected, and improve the connection stability of the headset.
  • FIG. 3 is a schematic flowchart of another method for disconnecting a headset disclosed in an embodiment of the present application. As shown in FIG. 3, the method for disconnecting a headset includes the following steps.
  • the mobile terminal detects whether the first headset or the second headset meets the corresponding disconnection condition.
  • the mobile terminal When detecting that the first headset or the second headset meets the corresponding disconnection condition, the mobile terminal maintains the connection status of the first headset or the second headset, and records that the first headset or the second headset meets the corresponding disconnection The duration of the condition.
  • the mobile terminal performs a disconnection operation on the first headset or the second headset.
  • the mobile terminal detects whether the first headset or the second headset meets the reconnection condition.
  • the mobile terminal continues to maintain the connection state of the first earphone or the second earphone.
  • steps 301 to 305 in the embodiments of the present application, reference may be made to steps 201 to 205 shown in FIG. 2, and details are not described here.
  • the mobile terminal detects whether the main earphone switching condition is met.
  • the mobile terminal performs a main headset switching operation.
  • step 306 may be executed after step 303.
  • the switching condition of the main headset may include: the main headset is disconnected from the mobile terminal, the distance between the main headset and the mobile terminal is greater than a certain distance threshold, and the communication quality between the main headset and the mobile terminal is lower than the preset communication quality .
  • the switch operation of the main earphone is as follows: the former main earphone is used as the slave earphone, and the former slave earphone is used as the master earphone to realize the master earphone switch.
  • the main earphone can be switched in time to ensure that the second earphone can still normally communicate with the mobile terminal and improve the user experience.
  • the mobile terminal includes a hardware structure and / or a software module corresponding to each function.
  • the present invention can be implemented in the form of hardware or a combination of hardware and computer software in combination with the units and algorithm steps of the examples described in the embodiments disclosed herein. Whether a function is executed by hardware or computer software driven hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.
  • the embodiments of the present application may divide the functional unit of the mobile terminal according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit.
  • the above integrated unit can be implemented in the form of hardware or software function unit. It should be noted that the division of units in the embodiments of the present application is schematic, and is only a division of logical functions, and there may be other division manners in actual implementation.
  • FIG. 4 is a schematic structural diagram of a headphone disconnecting device disclosed in an embodiment of the present application.
  • the headset disconnection device 400 is applied to a mobile terminal.
  • the mobile terminal is in communication connection with a first headset of a wireless headset, and the first headset is in communication connection with a second headset of a wireless headset.
  • the headset disconnection device 400 includes The detection unit 401, the holding unit 402, the recording unit 403, and the processing unit 404.
  • the detection unit 401 is configured to detect whether the first earphone or the second earphone meets the corresponding disconnection condition
  • the holding unit 402 is configured to maintain the connection state of the first earphone or the second earphone when the detection unit 401 detects that the first earphone or the second earphone meets the corresponding disconnection condition;
  • the recording unit 403 is configured to record the duration that the first earphone or the second earphone meets the corresponding disconnection condition when the detection unit 401 detects that the first earphone or the second earphone meets the corresponding disconnection condition;
  • the processing unit 404 is configured to perform a disconnection operation on the first headset or the second headset when the duration recorded by the recording unit 403 reaches a preset duration.
  • the detection unit 401 is further configured to detect whether the first headset or the second headset meets the reconnection condition when the duration recorded by the recording unit 403 is less than the preset duration.
  • the holding unit 402 is further configured to continue to maintain the connection state of the first earphone or the second earphone when the detection unit 401 detects that the first earphone or the second earphone meets the reconnection condition.
  • the detection unit 401 detects whether the first earphone or the second earphone meets the reconnection condition, specifically:
  • the detection unit 401 detects whether the first earphone or the second earphone is in a wearing state; or,
  • the detection unit 401 detects whether a preset wearing action occurs on the first earphone or the second earphone.
  • the detection unit 401 detects whether the first earphone or the second earphone meets the corresponding disconnection condition, including:
  • the detection unit 401 detects whether the first earphone or the second earphone has a preset picking action; or,
  • the detection unit 401 detects whether the first earphone or the second earphone is located in the earphone box and the earphone box is covered; or,
  • the detection unit 401 detects whether the first earphone or the second earphone is in a charging state.
  • the detection unit 401 is further configured to detect whether the main earphone switching condition is met after the processing unit 404 performs a disconnect operation on the first earphone or the second earphone;
  • the processing unit 404 is further configured to execute the main headset switching operation when the detection unit 401 detects that the main headset switching condition is met.
  • the preset duration is determined based on the type of disconnection condition and the scene in which the wireless headset is located.
  • the implementation of the device for disconnecting a wireless headset can refer to the method embodiments shown in FIGS. 1-3, and the repetition is not repeated here.
  • Implementing the earphone disconnecting device shown in FIG. 4 does not immediately disconnect the first earphone or the second earphone when it detects that the first earphone or the second earphone meets the corresponding disconnection condition, but Maintain the connection status of the first earphone or the second earphone, and disconnect the first earphone or the second earphone if the first earphone or the second earphone still meets the corresponding disconnection condition within a period of time (preset duration)
  • the connection operation avoids frequent disconnection and reconnection of the first earphone or the second earphone, can reduce the number of times the earphone automatically disconnects and reconnects, and improves the connection stability of the earphone.
  • FIG. 5 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present application.
  • the mobile terminal 500 includes a processor 501 and a memory 502, wherein the mobile terminal 500 may further include a bus 503, the processor 501 and the memory 502 may be connected to each other through the bus 503, and the bus 503 may be a peripheral component Peripheral Component Interconnect (PCI) bus or Extended Industry Standard Architecture (EISA) bus, etc.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the bus 503 can be divided into an address bus, a data bus, and a control bus. For ease of representation, only a thick line is used in FIG. 5, but it does not mean that there is only one bus or one type of bus.
  • the mobile terminal 500 may further include an input and output device 504, and the input and output device 504 may include a display screen, such as a liquid crystal display screen.
  • the memory 502 is used to store one or more programs containing instructions; the processor 501 is used to call the instructions stored in the memory 502 to perform some or all of the method steps in FIGS. 1 to 3 described above.
  • the first earphone or the second earphone When the mobile terminal shown in FIG. 5 is detected, when it is detected that the first earphone or the second earphone meets the corresponding disconnection condition, the first earphone or the second earphone is not immediately disconnected, but the first earphone is maintained.
  • the connection status of the earphone or the second earphone if the first earphone or the second earphone still meets the corresponding disconnection condition within a period of time (preset duration), the first earphone or the second earphone is disconnected, Avoiding frequent disconnection and reconnection of the first earphone or the second earphone can reduce the number of times the earphone automatically disconnects and reconnects, and improve the connection stability of the earphone.
  • the mobile terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, etc. Taking the mobile terminal as a mobile phone as an example:
  • the mobile phone includes: a radio frequency (Radio Frequency) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (WiFi) module 970, a processor 980 , And power supply 990 and other components.
  • a radio frequency (Radio Frequency) circuit 910 the mobile phone includes: a radio frequency (Radio Frequency) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (WiFi) module 970, a processor 980 , And power supply 990 and other components.
  • WiFi wireless fidelity
  • FIG. 6 does not constitute a limitation on the mobile phone, and may include more or fewer components than shown, or combine some components, or arrange different components.
  • the RF circuit 910 can be used for information reception and transmission.
  • the RF circuit 910 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like.
  • the RF circuit 910 can also communicate with other devices through a wireless communication network.
  • the above wireless communication can use any communication standard or protocol, including but not limited to Global Mobile System (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division) Multiple Access (CDMA), Wideband Code Division Multiple Access (Wideband Code Multiple Division Access, WCDMA), Long Term Evolution (LTE), E-mail, Short Message Service (SMS), etc.
  • GSM Global Mobile System
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • E-mail Short Message Service
  • the memory 920 may be used to store software programs and modules.
  • the processor 980 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 920.
  • the memory 920 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, application programs required for at least one function, and the like; the storage data area may store data created according to the use of a mobile phone, and the like.
  • the memory 920 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
  • the input unit 930 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the mobile phone.
  • the input unit 930 may include a fingerprint recognition module 931 and other input devices 932.
  • the fingerprint recognition module 931 can collect fingerprint data on the user.
  • the input unit 930 may also include other input devices 932.
  • other input devices 932 may include, but are not limited to, one or more of a touch screen, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), trackball, mouse, joystick, and so on.
  • the display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone.
  • the display unit 940 may include a display screen 941.
  • the display screen 941 may be configured in the form of a liquid crystal display (Liquid Crystal) (LCD), an organic or inorganic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
  • LCD liquid crystal display
  • OLED Organic Light-Emitting Diode
  • the mobile phone may further include at least one sensor 950, such as a light sensor, a motion sensor, a pressure sensor, a temperature sensor, and other sensors.
  • the light sensor may include an ambient light sensor (also called a light sensor) and a proximity sensor, wherein the ambient light sensor may adjust the backlight brightness of the mobile phone according to the brightness of the ambient light, thereby adjusting the brightness of the display screen 941, and the proximity sensor may When the mobile phone moves to the ear, the display 941 and / or backlight is turned off.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when at rest, and can be used for applications that recognize mobile phone gestures (such as horizontal and vertical screen switching, magnetic force) Pose counter calibration), vibration recognition related functions (such as pedometer, tap), etc.
  • the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, not repeated here.
  • the audio circuit 960, the speaker 961, and the microphone 962 can provide an audio interface between the user and the mobile phone.
  • the audio circuit 960 can transmit the received electrical signal converted into audio signals to the speaker 961, which is converted into a sound signal by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, and the audio circuit 960 After receiving, it is converted into audio data, and then processed by the audio data playback processor 980, and then sent to, for example, another mobile phone through the RF circuit 910, or the audio data is played to the memory 920 for further processing.
  • WiFi is a short-distance wireless transmission technology.
  • a mobile phone can help users send and receive emails, browse web pages, and access streaming media. It provides users with wireless broadband Internet access.
  • FIG. 6 shows the WiFi module 970, it can be understood that it is not a necessary component of a mobile phone, and can be omitted as needed without changing the scope of the essence of the invention.
  • the processor 980 is the control center of the mobile phone, connects various parts of the entire mobile phone with various interfaces and lines, executes or executes the software programs and / or modules stored in the memory 920, and calls the data stored in the memory 920 to execute Various functions of the mobile phone and processing data, so as to monitor the mobile phone as a whole.
  • the processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, and application programs, etc.
  • the modem processor mainly handles wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 980.
  • the mobile phone also includes a power supply 990 (such as a battery) that supplies power to various components.
  • a power supply 990 (such as a battery) that supplies power to various components.
  • the power supply can be logically connected to the processor 980 through the power management system, so as to realize functions such as charging, discharging, and power management through the power management system.
  • the mobile phone may further include a camera 9100.
  • the camera 9100 is used to capture images and videos, and transmit the captured images and videos to the processor 980 for processing.
  • the mobile phone can also have a Bluetooth module, etc., which will not be repeated here.
  • the method flow of each step may be implemented based on the structure of the mobile phone.
  • An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes the computer to execute any of the headphones disconnected as described in the above method embodiments Some or all steps of the method.
  • An embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause the computer to execute as described in the above method embodiments Some or all steps of any method of disconnecting headphones.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may Integration into another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or software function unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable memory.
  • the technical solution of the present invention can be embodied in the form of a software product in essence or a part that contributes to the existing technology or all or part of the technical solution, and the computer software product is stored in a memory.
  • a computer device which may be a personal computer, server, or network device, etc.
  • the aforementioned memory includes: U disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
  • the program may be stored in a computer-readable memory, and the memory may include: a flash disk , Read-Only Memory (English: Read-Only Memory, abbreviation: ROM), Random Access Device (English: Random Access Memory, abbreviation: RAM), magnetic disk or optical disk, etc.
  • ROM Read-Only Memory
  • RAM Random Access Device
  • magnetic disk or optical disk etc.

Abstract

Disclosed are a method for disconnecting an earphone, a related device, and a computer readable storage medium. A mobile terminal is communicationally connected to a first earphone of true wireless stereo earphones, and the first earphone is communicationally connected to a second earphone of the true wireless stereo earphones. The method comprises: detecting whether a first earphone or a second earphone meets a corresponding disconnection condition; if it is detected that the first earphone or the second earphone meets the corresponding disconnection conduction, keeping the connection state of the first earphone or the second earphone, and recording a duration in which the first earphone or the second earphone meets the corresponding disconnection condition; and when the duration reaches a preset duration, performing a disconnection operation on the first earphone or the second earphone. The embodiments of the present application can reduce the number of automatic disconnections and re-connections of earphones, thereby improving the connection stability of the earphones.

Description

耳机断开连接的方法、相关设备及计算机可读存储介质Headphone disconnection method, related equipment and computer readable storage medium 技术领域Technical field
本发明涉及移动终端技术领域,具体涉及一种耳机断开连接的方法、相关设备及计算机可读存储介质。The invention relates to the technical field of mobile terminals, in particular to a method for disconnecting a headset, related equipment and a computer-readable storage medium.
背景技术Background technique
随着无线技术的成熟,无线耳机通过无线技术连接手机等移动终端的场景越来越多。人们可以通过无线耳机实现听音乐、打电话等各种功能。一般而言,一副无线耳机可以由主耳机和从耳机组成,主耳机与手机建立数据传输链路之后,主耳机将接收到的音频数据同步到从耳机后进行播放。With the maturity of wireless technology, there are more and more scenarios where wireless headsets connect to mobile terminals such as mobile phones through wireless technology. People can realize various functions such as listening to music and making phone calls through wireless headphones. Generally speaking, a pair of wireless earphones can be composed of a master earphone and a slave earphone. After the master earphone establishes a data transmission link with the mobile phone, the master earphone synchronizes the received audio data to the slave earphone for playback.
主耳机和从耳机可以收纳在耳机盒中,当主耳机或从耳机被放入耳机盒时,会自动断开主耳机与手机的连接或自动断开从耳机与主耳机的连接。当用户将主耳机或从耳机从耳机盒中拿出时,主耳机与手机自动重新连接或者从耳机与主耳机自动重新连接。在一些场景下,如果用户反复放入和拿出耳机,则会造成反复的自动断开与重连,导致耳机的连接稳定性较差。The master earphone and slave earphone can be stored in the earphone box. When the master earphone or slave earphone is put into the earphone box, the master earphone and the mobile phone are automatically disconnected or the slave earphone and the master earphone are automatically disconnected. When the user takes out the master earphone or the slave earphone from the earphone box, the master earphone and the mobile phone are automatically reconnected or the slave earphone and the master earphone are automatically reconnected. In some scenarios, if the user repeatedly puts in and takes out the headset, it will cause repeated automatic disconnection and reconnection, resulting in poor connection stability of the headset.
发明内容Summary of the invention
本申请实施例提供了一种耳机断开连接的方法、相关设备及计算机可读存储介质,可以减少耳机自动断开与重连的次数,提高耳机的连接稳定性。Embodiments of the present application provide a method for disconnecting a headset, related equipment, and a computer-readable storage medium, which can reduce the number of times the headset is automatically disconnected and reconnected, and improve the connection stability of the headset.
本申请实施例第一方面提供一种耳机断开连接的方法,所述方法应用于移动终端,所述移动终端与无线耳机的第一耳机通信连接,所述第一耳机与所述无线耳机的第二耳机通信连接,所述方法包括:A first aspect of an embodiment of the present application provides a method for disconnecting an earphone. The method is applied to a mobile terminal, and the mobile terminal is communicatively connected to a first earphone of a wireless earphone, and the first earphone is connected to the wireless earphone. The second headset communication connection, the method includes:
检测所述第一耳机或所述第二耳机是否符合对应的断开连接条件;Detecting whether the first earphone or the second earphone meets the corresponding disconnection condition;
在检测到所述第一耳机或所述第二耳机符合对应的断开连接条件时,保持所述第一耳机或所述第二耳机的连接状态,并记录所述第一耳机或所述第二耳机符合对应的断开连接条件的持续时长;When detecting that the first earphone or the second earphone meets the corresponding disconnection condition, maintain the connection state of the first earphone or the second earphone, and record the first earphone or the second earphone The duration that the two headphones meet the corresponding disconnection conditions;
在所述持续时长达到预设时长时,对所述第一耳机或所述第二耳机执行断开连接操作。When the continuous duration reaches a preset duration, a disconnection operation is performed on the first earphone or the second earphone.
本申请实施例第二方面提供一种耳机断开连接装置,所述装置应用于移动 终端,所述移动终端与无线耳机的第一耳机通信连接,所述第一耳机与所述无线耳机的第二耳机通信连接,所述装置包括检测单元、保持单元、记录单元和处理单元;A second aspect of an embodiment of the present application provides an earphone disconnection device. The device is applied to a mobile terminal, and the mobile terminal is in communication connection with a first earphone of a wireless earphone, and the first earphone and the first earphone of the wireless earphone Two headset communication connections, the device includes a detection unit, a holding unit, a recording unit and a processing unit;
所述检测单元,用于检测所述第一耳机或所述第二耳机是否符合对应的断开连接条件;The detection unit is configured to detect whether the first earphone or the second earphone meets a corresponding disconnection condition;
所述保持单元,用于在所述检测单元检测到所述第一耳机或所述第二耳机符合对应的断开连接条件时,保持所述第一耳机或所述第二耳机的连接状态;The holding unit is configured to maintain the connection state of the first earphone or the second earphone when the detection unit detects that the first earphone or the second earphone meets a corresponding disconnection condition;
所述记录单元,用于在所述检测单元检测到所述第一耳机或所述第二耳机符合对应的断开连接条件时,记录所述第一耳机或所述第二耳机符合对应的断开连接条件的持续时长;The recording unit is configured to record that the first earphone or the second earphone meets the corresponding disconnection when the detection unit detects that the first earphone or the second earphone meets the corresponding disconnection condition Duration of open connection conditions;
所述处理单元,用于在所述记录单元记录的所述持续时长达到预设时长时,对所述第一耳机或所述第二耳机执行断开连接操作。The processing unit is configured to perform a disconnection operation on the first headset or the second headset when the duration recorded by the recording unit reaches a preset duration.
本申请实施例第三方面提供一种移动终端,包括处理器以及存储器,所述存储器用于存储一个或多个程序,所述一个或多个程序被配置成由所述处理器执行,所述程序包括用于执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。A third aspect of embodiments of the present application provides a mobile terminal, including a processor and a memory, where the memory is used to store one or more programs, the one or more programs are configured to be executed by the processor, the The procedure includes performing some or all of the steps as described in any method of the first aspect of the embodiments of the present application.
本申请实施例第四方面提供一种计算机可读存储介质,所述计算机可读存储介质用于存储电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。A fourth aspect of embodiments of the present application provides a computer-readable storage medium for storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute the first aspect of the embodiment of the present application Part or all of the steps described in any method.
本申请实施例第五方面提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。A fifth aspect of an embodiment of the present application provides a computer program product. The computer program product includes a non-transitory computer-readable storage medium that stores a computer program. The computer program is operable to cause a computer to execute the first embodiment of the present application. In one aspect, some or all of the steps described in any method.
本申请实施例中,移动终端检测第一耳机或第二耳机是否符合对应的断开连接条件;在检测到第一耳机或第二耳机符合对应的断开连接条件时,保持第一耳机或第二耳机的连接状态,并记录第一耳机或第二耳机符合对应的断开连接条件的持续时长;在上述持续时长达到预设时长时,对第一耳机或第二耳机执行断开连接操作。本申请实施例在检测到第一耳机或第二耳机符合对应的断开连接条件时,并不立即对第一耳机或第二耳机执行断开连接操作,而是保持第一耳机或第二耳机的连接状态,在一段时间(预设时长)内如果第一耳机或 第二耳机仍然符合对应的断开连接条件,才对第一耳机或第二耳机执行断开连接操作,避免第一耳机或第二耳机频繁的断开重连,可以减少耳机自动断开与重连的次数,提高耳机的连接稳定性。In the embodiment of the present application, the mobile terminal detects whether the first earphone or the second earphone meets the corresponding disconnection condition; when it detects that the first earphone or the second earphone meets the corresponding disconnection condition, the first earphone or the second earphone is kept The connection status of the two earphones, and record the duration of time that the first earphone or the second earphone meets the corresponding disconnection condition; when the above duration reaches the preset time, perform a disconnection operation on the first earphone or the second earphone. In the embodiment of the present application, when it is detected that the first earphone or the second earphone meets the corresponding disconnection condition, the first earphone or the second earphone is not immediately disconnected, but the first earphone or the second earphone is maintained. Connection status, within a period of time (preset duration), if the first headset or the second headset still meets the corresponding disconnection conditions, the first headset or the second headset is disconnected to avoid the first headset or the The frequent disconnection and reconnection of the second earphone can reduce the number of times the earphone automatically disconnects and reconnects, and improve the connection stability of the earphone.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, without paying any creative labor, other drawings can be obtained based on these drawings.
图1是本申请实施例公开的一种网络构架示意图;1 is a schematic diagram of a network architecture disclosed in an embodiment of the present application;
图2是本申请实施例公开的一种耳机断开连接的方法的流程示意图;2 is a schematic flowchart of a method for disconnecting a headset disclosed in an embodiment of the present application;
图3是本申请实施例公开的另一种耳机断开连接的方法的流程示意图;3 is a schematic flowchart of another method for disconnecting a headset disclosed in an embodiment of the present application;
图4是本申请实施例公开的一种耳机断开连接装置的结构示意图;4 is a schematic structural diagram of a headphone disconnecting device disclosed in an embodiment of the present application;
图5是本申请实施例公开的一种移动终端的结构示意图;5 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present application;
图6是本申请实施例公开的又一种移动终端的结构示意图。6 is a schematic structural diagram of yet another mobile terminal disclosed in an embodiment of the present application.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only It is a part of the embodiments of the present invention, but not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second", etc. in the description and claims of the present invention and the above drawings are used to distinguish different objects, not to describe a specific order. 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 units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally also includes Other steps or units inherent to these processes, methods, products, or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不 一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to "embodiments" means that specific features, structures, or characteristics described in connection with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art understand explicitly and implicitly that the embodiments described herein can be combined with other embodiments.
本申请实施例所涉及到的移动终端可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为移动终端。The mobile terminals involved in the embodiments of the present application may include various handheld devices with wireless communication functions, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, and various forms of user equipment (User Equipment, UE), Mobile Station (MS), terminal device, etc. For convenience of description, the above-mentioned devices are collectively referred to as mobile terminals.
下面对本申请实施例进行详细介绍。The following describes the embodiments of the present application in detail.
请参阅图1,图1是本申请实施例公开的一种网络构架示意图,如图1所示,该网络构架包括移动终端100和无线耳机200,其中,无线耳机200包括第一耳机21和第二耳机22,移动终端100与第一耳机21通过无线网络(比如,WiFi、蓝牙)进行通信连接,第一耳机21与第二耳机22通过无线网络进行通信连接。Please refer to FIG. 1. FIG. 1 is a schematic diagram of a network architecture disclosed in an embodiment of the present application. As shown in FIG. 1, the network architecture includes a mobile terminal 100 and a wireless headset 200, where the wireless headset 200 includes a first headset 21 and a first Two earphones 22, the mobile terminal 100 and the first earphone 21 are in communication connection through a wireless network (for example, WiFi, Bluetooth), and the first earphone 21 and the second earphone 22 are in communication connection through a wireless network.
移动终端100可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。The mobile terminal 100 may include various handheld devices with wireless communication functions, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, as well as various forms of user equipment (User Equipment, UE), mobile stations (Mobile Station, MS), terminal equipment (terminal) and so on.
图1中的第一耳机21与移动终端100建立通信连接,第一耳机21为无线耳机200中的主耳机,第二耳机22为无线耳机中的从耳机。主耳机,即为与移动终端100建立通信连接的耳机。The first headset 21 in FIG. 1 establishes a communication connection with the mobile terminal 100. The first headset 21 is a master headset in the wireless headset 200, and the second headset 22 is a slave headset in the wireless headset. The main headset is a headset that establishes a communication connection with the mobile terminal 100.
当第一耳机21被摘下,或者当第一耳机21被放入耳机盒时,保持第一耳机21与移动终端100的连接,延时一段时间后如果第一耳机21不处于佩戴状态,则断开第一耳机21与移动终端100的连接,如果在上述一段时间内检测到第一耳机21处于佩戴状态,则继续保持第一耳机21与移动终端100的连接。When the first earphone 21 is taken off, or when the first earphone 21 is put into the earphone box, the connection between the first earphone 21 and the mobile terminal 100 is maintained, and if the first earphone 21 is not in the wearing state after a delay, then Disconnect the first earphone 21 from the mobile terminal 100, and if it is detected that the first earphone 21 is in the wearing state within the above-mentioned period of time, then continue to maintain the connection of the first earphone 21 and the mobile terminal 100.
当第二耳机22被摘下,或者当第二耳机22被放入耳机盒时,保持第二耳机22与第一耳机21的连接,延时一段时间后如果第二耳机22不处于佩戴状态,则断开第二耳机22与第一耳机21的连接,如果在上述一段时间内检测到第二耳机22处于佩戴状态,则继续保持第二耳机22与第一耳机21的连接。When the second earphone 22 is taken off, or when the second earphone 22 is put into the earphone case, keep the connection between the second earphone 22 and the first earphone 21, and if the second earphone 22 is not in the wearing state after a delay, Then, the connection between the second earphone 22 and the first earphone 21 is disconnected, and if it is detected that the second earphone 22 is in the wearing state within the above-mentioned period of time, the connection between the second earphone 22 and the first earphone 21 is continued.
当第一耳机21与移动终端100的通信质量较差时,可以将移动终端100与第一耳机21断开通信连接,将移动终端100与第二耳机22建立通信连接,从而将第 二耳机22作为主耳机,实现主耳机的切换。When the communication quality between the first headset 21 and the mobile terminal 100 is poor, the mobile terminal 100 can be disconnected from the first headset 21 to establish a communication connection between the mobile terminal 100 and the second headset 22, so As the main earphone, realize the switch of the main earphone.
无线耳机可以为挂耳式耳机,也可以为耳塞式耳机,也可以为头戴式耳机,本申请实施例不做限定。The wireless earphone may be a hanging earphone, an earplug earphone, or a headset, which is not limited in the embodiments of the present application.
无线耳机可以收纳在耳机盒中,耳机盒可以包括:两个接收腔(第一接收腔和第二接收腔),该两个接收腔的大小和形状设计成接收第一耳机和第二耳机;设置在盒内的一个或多个耳机外壳磁性部件,上述一个或多个耳机外壳磁性部件用于将第一耳机和第二耳机磁性吸引且分别磁性固定到两个接收腔中。耳机盒还可以包括耳机盖。其中,第一接收腔的大小和形状设计成接收第一耳机,第二接收腔的大小和形状设计成接收第二耳机。The wireless earphone may be stored in the earphone box, and the earphone box may include: two receiving cavities (a first receiving cavity and a second receiving cavity), the two receiving cavities are sized and shaped to receive the first earphone and the second earphone; One or more earphone housing magnetic components provided in the box. The one or more earphone housing magnetic components are used to magnetically attract and fix the first earphone and the second earphone to the two receiving chambers, respectively. The earphone box may also include a headphone cover. The size and shape of the first receiving cavity are designed to receive the first earphone, and the size and shape of the second receiving cavity are designed to receive the second earphone.
无线耳机可以包括耳机外壳、设置在耳机外壳内的可循环充电的电池(例如,锂电池)、用于连接电池与充电装置的多个金属触点、包括驱动器单元和定向声音端口的扬声器组件,其中,驱动器单元包括磁体、音圈和隔膜,驱动器单元用于从定向声音端口发出声音,上述多个金属触点设置在耳机外壳的外部表面。The wireless earphone may include an earphone housing, a rechargeable battery (for example, a lithium battery) provided in the earphone housing, a plurality of metal contacts for connecting the battery and the charging device, a speaker assembly including a driver unit and a directional sound port, The driver unit includes a magnet, a voice coil, and a diaphragm. The driver unit is used to emit sound from the directional sound port. The above-mentioned multiple metal contacts are provided on the outer surface of the earphone housing.
在一种可能的实现方式中,无线耳机还可以包括触摸区,该触摸区可以位于在耳机外壳的外部表面,触摸区内设置有至少一个触摸传感器,用于检测触摸操作,触摸传感器可以包括电容传感器。当用户触摸触摸区时,至少一个电容传感器可以检测到自身电容的变化从而识别触摸操作。In a possible implementation manner, the wireless headset may further include a touch area, and the touch area may be located on an outer surface of the earphone housing. The touch area is provided with at least one touch sensor for detecting a touch operation. The touch sensor may include a capacitor sensor. When the user touches the touch area, at least one capacitive sensor can detect a change in its own capacitance to recognize the touch operation.
在一种可能的实现方式中,无线耳机还可以包括加速度传感器和三轴陀螺仪,加速度传感器和三轴陀螺仪可以设置在耳机外壳内,加速度传感器和三轴陀螺仪用于识别无线耳机的拿起动作和取下动作。In a possible implementation, the wireless headset may further include an acceleration sensor and a three-axis gyroscope. The acceleration sensor and the three-axis gyroscope may be provided in the earphone shell. The acceleration sensor and the three-axis gyroscope are used to identify the wireless headset. Start action and take off action.
在一种可能的实现方式中,无线耳机还可以包括至少一个气压传感器,气压传感器可以设置在耳机外壳的表面,用于在无线耳机佩戴后检测耳内气压。可以通过气压传感器检测无线耳机的佩戴松紧度。当检测到无线耳机佩戴较松时,无线耳机可以向与无线耳机连接的电子装置发送提示信息,以提示用户该无线耳机有掉落风险。In a possible implementation manner, the wireless earphone may further include at least one air pressure sensor, and the air pressure sensor may be disposed on the surface of the earphone housing to detect the air pressure in the ear after the wireless earphone is worn. The tightness of the wireless headset can be detected by the air pressure sensor. When it is detected that the wireless headset is loosely worn, the wireless headset may send a prompt message to the electronic device connected to the wireless headset to alert the user that the wireless headset is at risk of dropping.
基于图1的网络构架,公开一种耳机断开连接,请参阅图2,图2是本申请实施例公开的一种耳机断开连接的方法的流程示意图,如图2所示,该耳机断开连接的方法包括如下步骤。Based on the network architecture of FIG. 1, a headset disconnection is disclosed. Please refer to FIG. 2. FIG. 2 is a schematic flowchart of a method for disconnecting a headset disclosed in an embodiment of the present application. As shown in FIG. 2, the headset is disconnected. The method of opening a connection includes the following steps.
201,移动终端检测第一耳机或第二耳机是否符合对应的断开连接条件。201. The mobile terminal detects whether the first headset or the second headset meets the corresponding disconnection condition.
本申请实施例中,移动终端与无线耳机的第一耳机通信连接,第一耳机与无线耳机的第二耳机通信连接,第一耳机为主耳机,第二耳机为从耳机。In the embodiment of the present application, the mobile terminal is communicatively connected to the first headset of the wireless headset, the first headset is communicatively connected to the second headset of the wireless headset, the first headset is the master headset, and the second headset is the slave headset.
第一耳机对应的断开连接条件可以包括第一耳机不处于佩戴状态,具体可以包括第一耳机发生摘取动作、第一耳机被放入耳机盒、第一耳机被放入耳机盒且耳机盒被盖上、第一耳机处于静止未佩戴状态、第一耳机处于充电状态、第一耳机与移动终端的距离大于一定距离阈值中的任一种。The disconnection condition corresponding to the first earphone may include that the first earphone is not in a wearing state, and may specifically include that the first earphone takes off, the first earphone is put into the earphone box, the first earphone is put into the earphone box, and the earphone box Any one of being covered, the first earphone being in a still and unworn state, the first earphone being in a charging state, and the distance between the first earphone and the mobile terminal being greater than a certain distance threshold.
第二耳机对应的断开连接条件可以包括第二耳机不处于佩戴状态,具体可以包括第二耳机发生摘取动作、第二耳机被放入耳机盒、第二耳机被放入耳机盒且耳机盒被盖上、第二耳机处于静止未佩戴状态、第二耳机处于充电状态、第二耳机不处于佩戴状态中的任一种。The disconnection condition corresponding to the second earphone may include that the second earphone is not in a wearing state, and may specifically include that the second earphone takes off, the second earphone is put into the earphone box, the second earphone is put into the earphone box and the earphone box Either one of being covered, the second earphone is in a still and unweared state, the second earphone is in a charged state, and the second earphone is not in a worn state.
其中,第一耳机和第二耳机都可以内置姿态传感器,通过姿态传感器来检测第一耳机和/或第二耳机是否发生摘取动作。姿态传感器可以包括三轴陀螺仪和三轴加速度传感器。耳机盒可以通过其内置的压力传感器检测到第一耳机和/或第二耳机是否放入耳机盒,耳机盒还可以检测到耳机盒是否被盖上,移动终端还可以与耳机盒连接,当耳机盒检测到第一耳机和/或第二耳机放入耳机盒、耳机盒被盖上时可以向移动终端发通知消息。第一耳机和/或第二耳机可以检测自身是否处于充电状态。第一耳机和/或第二耳机可以通过气压传感器、压力传感器、红外传感器来检测自身是否处于佩戴状态。Wherein, both the first earphone and the second earphone may have a built-in attitude sensor, and the attitude sensor is used to detect whether the first earphone and / or the second earphone take off. The attitude sensor may include a three-axis gyroscope and a three-axis acceleration sensor. The earphone box can detect whether the first earphone and / or the second earphone are put into the earphone box through its built-in pressure sensor. The earphone box can also detect whether the earphone box is covered. The mobile terminal can also be connected to the earphone box. The box may send a notification message to the mobile terminal when detecting that the first earphone and / or the second earphone are placed in the earphone box and the earphone box is covered. The first earphone and / or the second earphone can detect whether it is in a charging state. The first earphone and / or the second earphone may detect whether they are in a wearing state through an air pressure sensor, a pressure sensor, or an infrared sensor.
移动终端检测第一耳机与移动终端的距离的具体实现方式有:移动终端确定所述第一耳机与所述移动终端的RSSI值,以及根据所述RSSI值确定第一耳机与移动终端的距离。A specific implementation manner of the mobile terminal detecting the distance between the first headset and the mobile terminal includes: the mobile terminal determining the RSSI value of the first headset and the mobile terminal, and determining the distance between the first headset and the mobile terminal according to the RSSI value.
具体地,由于移动终端与第一耳机连接,移动终端可直接得到移动终端与第一耳机的RSSI值。移动终端根据RSSI值确定距离的具体实现方式有:移动终端根据RSSI值与距离的映射关系确定该RSSI值对应的距离。在RSSI值与距离的映射关系中,RSSI值与距离成反比,RSSI值越大对应的距离越小,RSSI值越小对应的距离越大。Specifically, since the mobile terminal is connected to the first headset, the mobile terminal can directly obtain the RSSI value of the mobile terminal and the first headset. The specific implementation manner of the mobile terminal determining the distance according to the RSSI value includes: the mobile terminal determines the distance corresponding to the RSSI value according to the mapping relationship between the RSSI value and the distance. In the mapping relationship between the RSSI value and the distance, the RSSI value is inversely proportional to the distance. The larger the RSSI value, the smaller the corresponding distance, and the smaller the RSSI value, the larger the corresponding distance.
可选的,步骤201中,移动终端检测第一耳机或第二耳机是否符合对应的断开连接条件,具体可以为:Optionally, in step 201, the mobile terminal detects whether the first headset or the second headset meets the corresponding disconnection condition, which may specifically be:
移动终端检测第一耳机或第二耳机是否发生预设摘取动作;或,The mobile terminal detects whether the first earphone or the second earphone has a preset picking action; or,
移动终端检测第一耳机或第二耳机是否位于耳机盒且耳机盒被盖上;或,The mobile terminal detects whether the first earphone or the second earphone is located in the earphone box and the earphone box is covered; or,
移动终端检测第一耳机或第二耳机是否处于充电状态。The mobile terminal detects whether the first earphone or the second earphone is in a charging state.
其中,预设摘取动作可以通过第一耳机或第二耳机中内置的姿态传感器(比如,重力传感器、三轴加速度传感器、三轴陀螺仪)来检测。The preset picking action can be detected by a posture sensor (eg, gravity sensor, three-axis acceleration sensor, or three-axis gyroscope) built into the first earphone or the second earphone.
202,在检测到第一耳机或第二耳机符合对应的断开连接条件时,移动终端保持第一耳机或第二耳机的连接状态,并记录第一耳机或第二耳机符合对应的断开连接条件的持续时长。202. When detecting that the first headset or the second headset meets the corresponding disconnection condition, the mobile terminal maintains the connection status of the first headset or the second headset, and records that the first headset or the second headset meets the corresponding disconnection The duration of the condition.
本申请实施例中,在检测到第一耳机或第二耳机符合对应的断开连接条件时,移动终端并不会立即对第一耳机或第二耳机执行断开连接操作,而是保持第一耳机或第二耳机的连接状态,并开始记录第一耳机或第二耳机符合对应的断开连接条件的持续时长。如果第一耳机或第二耳机符合对应的断开连接条件的持续时长达到预设时长时,表明第一耳机或第二耳机符合对应的断开连接条件的持续时长较长,移动终端才会对第一耳机或第二耳机执行断开连接操作;如果第一耳机或第二耳机符合对应的断开连接条件的持续时长小于预设时长,表明第一耳机或第二耳机符合对应的断开连接条件的持续时长较短,移动终端继续保持第一耳机或第二耳机的连接状态。In the embodiment of the present application, when it is detected that the first earphone or the second earphone meets the corresponding disconnection condition, the mobile terminal does not immediately perform a disconnection operation on the first earphone or the second earphone, but keeps the first earphone The connection status of the earphone or the second earphone, and start recording the duration that the first earphone or the second earphone meets the corresponding disconnection condition. If the duration of the first headset or the second headset meeting the corresponding disconnection condition reaches the preset duration, it means that the duration of the first headset or the second headset meeting the corresponding disconnection condition is longer. The first earphone or the second earphone performs a disconnection operation; if the duration that the first earphone or the second earphone meets the corresponding disconnection condition is less than the preset duration, it indicates that the first earphone or the second earphone meets the corresponding disconnection The duration of the condition is short, and the mobile terminal continues to maintain the connection state of the first headset or the second headset.
203,在上述持续时长达到预设时长时,移动终端对第一耳机或第二耳机执行断开连接操作。203. When the foregoing duration reaches the preset duration, the mobile terminal performs a disconnection operation on the first headset or the second headset.
其中,移动终端对第一耳机执行断开连接操作为:移动终端断开与第一耳机的通信连接。移动终端对第二耳机执行断开连接操作为:移动终端断开第二耳机与第一耳机的通信连接。Wherein, the mobile terminal performing the disconnection operation on the first headset is that the mobile terminal disconnects the communication connection with the first headset. The mobile terminal performing the disconnection operation on the second headset is that the mobile terminal disconnects the communication connection between the second headset and the first headset.
可选的,预设时长基于断开连接条件的类型以及无线耳机所处的场景确定。Optionally, the preset duration is determined based on the type of disconnection condition and the scene in which the wireless headset is located.
本申请实施例中,断开连接条件可以包括低优先级类型的断开连接条件和高优先级类型的断开连接条件,其中,低优先级类型的断开连接条件包括:耳机发生摘取动作、耳机被放入耳机盒、耳机处于静止未佩戴状态;高优先级类型的断开连接条件包括:耳机被放入耳机盒且耳机盒被盖上、耳机处于充电状态。In the embodiment of the present application, the disconnection condition may include a low-priority type disconnection condition and a high-priority type disconnection condition, where the low-priority type disconnection condition includes: the headset takes off 1. The earphone is put into the earphone box, and the earphone is in a static and unworn state; the disconnection conditions of the high priority type include: the earphone is put into the earphone box and the earphone box is covered, and the earphone is in a charging state.
无线耳机所处的场景可以包括:通话场景、音频播放场景、运动场景等。无线耳机所处的场景可以分为高频场景和低频场景。可以根据无线耳机的历史使用记录来确定哪些场景为高频场景。比如,音频播放场景为高频场景,通话场景和运动场景为低频场景。The scenarios where the wireless headset is located may include: call scenarios, audio playback scenarios, sports scenarios, and so on. The scene where the wireless headset is located can be divided into a high-frequency scene and a low-frequency scene. You can determine which scenes are high-frequency scenes based on the historical use records of wireless headphones. For example, audio playback scenes are high-frequency scenes, and call scenes and sports scenes are low-frequency scenes.
其中,不同的断开连接条件的类型与无线耳机所处的不同场景的组合可以对应不同的预设时长。断开连接条件的类型与无线耳机所处的场景类型与预设时长的对应关系可以具体参见表1。The combination of different types of disconnection conditions and different scenarios in which the wireless headset is located may correspond to different preset durations. The correspondence between the type of disconnection condition and the type of scene where the wireless headset is located and the preset duration can be specifically referred to Table 1.
断开连接条件的类型Types of disconnection conditions 无线耳机所处的场景类型The type of scene where the wireless headset is located 预设时长Default duration
高优先级类型High priority type 低频场景Low frequency scene 第一预设时长First preset duration
高优先级类型High priority type 高频场景High frequency scene 第二预设时长Second preset duration
低优先级类型Low priority type 低频场景Low frequency scene 第三预设时长The third preset duration
低优先级类型Low priority type 高频场景High frequency scene 第四预设时长Fourth preset duration
其中,第一预设时长、第二预设时长、第三预设时长、第四预设时长的大小依次增加。对于高优先级类型的断开连接条件,比如,将耳机放入耳机盒中充电,用户很可能长时间不会进行佩戴,可以将对应的预设时长设置的较短,以节省功耗,而对于低优先级类型的断开连接条件,比如,将耳机摘下、放下,用户很可能在短时间内再次佩戴,可以将对应的预设时长设置的较长,以避免耳机频繁的断开重连,可以减少耳机自动断开与重连的次数,提高耳机的连接稳定性。对于低频场景,用户很可能长时间不会操作耳机,可以将对应的预设时长设置的较短,以节省功耗,对于高频场景,用户很可能频繁的操作耳机,可以将对应的预设时长设置的较长,以避免耳机频繁的断开重连,可以减少耳机自动断开与重连的次数,提高耳机的连接稳定性。The size of the first preset duration, the second preset duration, the third preset duration, and the fourth preset duration increase in sequence. For high-priority types of disconnection conditions, for example, putting the headset in the headset box for charging, the user is likely not to wear it for a long time, and the corresponding preset duration can be set shorter to save power consumption, while For low-priority types of disconnection conditions, for example, taking the headset off and putting it down, the user is likely to wear it again in a short time, and the corresponding preset duration can be set longer to avoid frequent disconnection of the headset. Connected, can reduce the number of times the headset is automatically disconnected and reconnected, and improve the connection stability of the headset. For low-frequency scenes, users are likely not to operate the headset for a long time, and the corresponding preset duration can be set shorter to save power consumption. For high-frequency scenes, the user is likely to operate the headset frequently, and can set the corresponding preset The duration is set longer to avoid frequent disconnection and reconnection of the headset, which can reduce the number of times the headset is automatically disconnected and reconnected, and improve the connection stability of the headset.
204,在上述持续时长小于预设时长时,移动终端检测到第一耳机或第二耳机是否符合重新连接条件。204. When the above duration is less than the preset duration, the mobile terminal detects whether the first headset or the second headset meets the reconnection condition.
可选的,步骤204中,移动终端检测到第一耳机或第二耳机是否符合重新连接条件,具体可以为:Optionally, in step 204, the mobile terminal detects whether the first headset or the second headset meets the reconnection condition, which may specifically be:
移动终端检测第一耳机或第二耳机是否处于佩戴状态;或,The mobile terminal detects whether the first earphone or the second earphone is in a wearing state; or,
移动终端检测第一耳机或第二耳机是否发生预设佩戴动作。The mobile terminal detects whether a preset wearing action occurs on the first earphone or the second earphone.
其中,移动终端检测第一耳机或第二耳机是否处于佩戴状态可以通过第一耳机或第二耳机中的气压传感器、压力传感器、红外传感器来检测。Wherein, the mobile terminal detecting whether the first earphone or the second earphone is in a wearing state can be detected by an air pressure sensor, a pressure sensor, or an infrared sensor in the first earphone or the second earphone.
预设佩戴动作可以通过第一耳机或第二耳机中内置的姿态传感器(比如,重力传感器、三轴加速度传感器、三轴陀螺仪)来检测。The preset wearing motion may be detected by a posture sensor (eg, gravity sensor, three-axis acceleration sensor, or three-axis gyroscope) built into the first earphone or the second earphone.
205,若检测到第一耳机或第二耳机符合重新连接条件,移动终端继续保持第一耳机或第二耳机的连接状态。205. If it is detected that the first earphone or the second earphone meets the reconnection condition, the mobile terminal continues to maintain the connection state of the first earphone or the second earphone.
本申请实施例中,第一耳机或第二耳机可以处于佩戴状态和非佩戴状态,当第一耳机或第二耳机处于佩戴状态时,则第一耳机或第二耳机符合重新连接条件,如果第一耳机或第二耳机处于连接状态,则继续保持第一耳机或第二耳机的连接状态,如果第一耳机或第二耳机不处于连接状态,则恢复第一耳机或第二耳机的连接;当第一耳机或第二耳机处于非佩戴状态时,如果第一耳机或第二耳机符合重新连接条件(比如,第一耳机或第二耳机处于拿起状态时),如果第一耳机或第二耳机处于连接状态,则继续保持第一耳机或第二耳机的连接状态,如果第一耳机或第二耳机不处于连接状态,则恢复第一耳机或第二耳机的连接;当第一耳机或第二耳机处于非佩戴状态时,如果第一耳机或第二耳机符合断开连接条件,如果第一耳机或第二耳机处于连接状态,记录第一耳机或第二耳机符合对应的断开连接条件的持续时长,在第一耳机或第二耳机符合对应的断开连接条件的持续时长达到预设时长时,断开第一耳机或第二耳机的连接,在第一耳机或第二耳机符合对应的断开连接条件的持续时长小于预设时长时,继续保持第一耳机或第二耳机的连接状态;当第一耳机或第二耳机处于非佩戴状态时,如果第一耳机或第二耳机符合断开连接条件,如果第一耳机或第二耳机不处于连接状态,则继续保持第一耳机或第二耳机的连接状态,如果第一耳机或第二耳机不不处于连接状态,则继续保持第一耳机或第二耳机不处于连接状态。In the embodiment of the present application, the first earphone or the second earphone may be in a wearing state and a non-wearing state. When the first earphone or the second earphone is in the wearing state, the first earphone or the second earphone meets the reconnection condition. If a headset or a second headset is connected, the connection status of the first headset or the second headset will continue to be maintained. If the first headset or the second headset is not connected, the connection of the first headset or the second headset will be restored; When the first earphone or the second earphone is in a non-wearing state, if the first earphone or the second earphone meets the reconnection condition (for example, when the first earphone or the second earphone is in the pick-up state), if the first earphone or the second earphone In the connected state, the connection state of the first earphone or the second earphone is maintained. If the first earphone or the second earphone is not in the connected state, the connection of the first earphone or the second earphone is restored; when the first earphone or the second earphone When the headset is in a non-wearing state, if the first headset or the second headset meets the disconnection condition, if the first headset or the second headset is connected, record The duration of the first earphone or the second earphone meeting the corresponding disconnection condition, when the duration of the first earphone or the second earphone meeting the corresponding disconnection condition reaches a preset time, the first earphone or the second earphone is disconnected Connection, when the duration that the first headset or the second headset meets the corresponding disconnection condition is less than the preset duration, continue to maintain the connection status of the first headset or the second headset; When wearing, if the first earphone or the second earphone meets the disconnection condition, if the first earphone or the second earphone is not in the connected state, continue to maintain the connection state of the first earphone or the second earphone. If the second earphone is not in the connected state, continue to keep the first earphone or the second earphone not in the connected state.
其中,移动终端继续保持第一耳机的连接状态为:移动终端保持与第一耳机的通信连接。移动终端继续保持第二耳机的连接状态为:移动终端保持第二耳机与第一耳机的通信连接。The mobile terminal continues to maintain the connection state of the first headset as follows: the mobile terminal maintains a communication connection with the first headset. The mobile terminal continues to maintain the connection state of the second headset as follows: the mobile terminal maintains the communication connection between the second headset and the first headset.
其中,图2所示的方法可以适用于音频播放场景或通话场景。Among them, the method shown in FIG. 2 can be applied to audio playback scenarios or call scenarios.
本申请实施例中,在检测到第一耳机或第二耳机符合对应的断开连接条件时,并不立即对第一耳机或第二耳机执行断开连接操作,而是保持第一耳机或第二耳机的连接状态,在一段时间(预设时长)内如果第一耳机或第二耳机仍然符合对应的断开连接条件,才对第一耳机或第二耳机执行断开连接操作,避免第一耳机或第二耳机频繁的断开重连,可以减少耳机自动断开与重连的次数,提高耳机的连接稳定性。In the embodiment of the present application, when it is detected that the first earphone or the second earphone meets the corresponding disconnection condition, the first earphone or the second earphone is not immediately disconnected, but the first earphone or the second earphone is maintained. The connection status of the two earphones, if the first earphone or the second earphone still meets the corresponding disconnection condition within a period of time (preset duration), then perform the disconnection operation on the first earphone or the second earphone to avoid the first earphone Frequent disconnection and reconnection of the headset or the second headset can reduce the number of times the headset is automatically disconnected and reconnected, and improve the connection stability of the headset.
请参阅图3,图3是本申请实施例公开的另一种耳机断开连接的方法的流程示意图,如图3所示,该耳机断开连接的方法包括如下步骤。Please refer to FIG. 3, which is a schematic flowchart of another method for disconnecting a headset disclosed in an embodiment of the present application. As shown in FIG. 3, the method for disconnecting a headset includes the following steps.
301,移动终端检测第一耳机或第二耳机是否符合对应的断开连接条件。301. The mobile terminal detects whether the first headset or the second headset meets the corresponding disconnection condition.
302,在检测到第一耳机或第二耳机符合对应的断开连接条件时,移动终端保持第一耳机或第二耳机的连接状态,并记录第一耳机或第二耳机符合对应的断开连接条件的持续时长。302. When detecting that the first headset or the second headset meets the corresponding disconnection condition, the mobile terminal maintains the connection status of the first headset or the second headset, and records that the first headset or the second headset meets the corresponding disconnection The duration of the condition.
303,在上述持续时长达到预设时长时,移动终端对第一耳机或第二耳机执行断开连接操作。303. When the above duration duration reaches a preset duration, the mobile terminal performs a disconnection operation on the first headset or the second headset.
304,在上述持续时长小于预设时长时,移动终端检测到第一耳机或第二耳机是否符合重新连接条件。304. When the above duration is less than the preset duration, the mobile terminal detects whether the first headset or the second headset meets the reconnection condition.
305,若检测到第一耳机或第二耳机符合重新连接条件,移动终端继续保持第一耳机或第二耳机的连接状态。305. If it is detected that the first earphone or the second earphone meets the reconnection condition, the mobile terminal continues to maintain the connection state of the first earphone or the second earphone.
本申请实施例中的步骤301至步骤305的具体实施可以参见图2所示的步骤201至步骤205,此处不再赘述。For the specific implementation of steps 301 to 305 in the embodiments of the present application, reference may be made to steps 201 to 205 shown in FIG. 2, and details are not described here.
306,移动终端检测是否符合主耳机切换条件。306. The mobile terminal detects whether the main earphone switching condition is met.
307,若符合,移动终端执行主耳机切换操作。307. If it matches, the mobile terminal performs a main headset switching operation.
其中,步骤306可以在步骤303之后执行。Wherein, step 306 may be executed after step 303.
本申请实施例中,主耳机切换条件可以包括:主耳机与移动终端断开连接、主耳机与移动终端之间的距离大于一定距离阈值、主耳机与移动终端的通信质量低于预设通信质量。In the embodiment of the present application, the switching condition of the main headset may include: the main headset is disconnected from the mobile terminal, the distance between the main headset and the mobile terminal is greater than a certain distance threshold, and the communication quality between the main headset and the mobile terminal is lower than the preset communication quality .
如果符合以上任意一种主耳机切换条件,则会进行主耳机切换操作。主耳机切换操作为:将之前的主耳机作为从耳机,将之前的从耳机作为主耳机,以实现主耳机切换。If any of the above main headset switching conditions are met, the main headset switching operation will be performed. The switch operation of the main earphone is as follows: the former main earphone is used as the slave earphone, and the former slave earphone is used as the master earphone to realize the master earphone switch.
本申请实施例中,可以在第一耳机与移动终端断开连接后,及时进行主耳机切换,保证第二耳机仍然能够正常与移动终端通信,提高用户体验。In the embodiment of the present application, after the first earphone is disconnected from the mobile terminal, the main earphone can be switched in time to ensure that the second earphone can still normally communicate with the mobile terminal and improve the user experience.
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,移动终端为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本发明能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本 发明的范围。The above mainly introduces the solution of the embodiment of the present application from the perspective of the execution process on the method side. It can be understood that, in order to realize the above-mentioned functions, the mobile terminal includes a hardware structure and / or a software module corresponding to each function. Those skilled in the art should easily realize that the present invention can be implemented in the form of hardware or a combination of hardware and computer software in combination with the units and algorithm steps of the examples described in the embodiments disclosed herein. Whether a function is executed by hardware or computer software driven hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.
本申请实施例可以根据上述方法示例对移动终端进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiments of the present application may divide the functional unit of the mobile terminal according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or software function unit. It should be noted that the division of units in the embodiments of the present application is schematic, and is only a division of logical functions, and there may be other division manners in actual implementation.
请参阅图4,图4是本申请实施例公开的一种耳机断开连接装置的结构示意图。如图4所示,该耳机断开连接装置400应用于移动终端,移动终端与无线耳机的第一耳机通信连接,第一耳机与无线耳机的第二耳机通信连接,耳机断开连接装置400包括检测单元401、保持单元402、记录单元403和处理单元404。Please refer to FIG. 4, which is a schematic structural diagram of a headphone disconnecting device disclosed in an embodiment of the present application. As shown in FIG. 4, the headset disconnection device 400 is applied to a mobile terminal. The mobile terminal is in communication connection with a first headset of a wireless headset, and the first headset is in communication connection with a second headset of a wireless headset. The headset disconnection device 400 includes The detection unit 401, the holding unit 402, the recording unit 403, and the processing unit 404.
检测单元401,用于检测第一耳机或第二耳机是否符合对应的断开连接条件;The detection unit 401 is configured to detect whether the first earphone or the second earphone meets the corresponding disconnection condition;
保持单元402,用于在检测单元401检测到第一耳机或第二耳机符合对应的断开连接条件时,保持第一耳机或第二耳机的连接状态;The holding unit 402 is configured to maintain the connection state of the first earphone or the second earphone when the detection unit 401 detects that the first earphone or the second earphone meets the corresponding disconnection condition;
记录单元403,用于在检测单元401检测到第一耳机或第二耳机符合对应的断开连接条件时,记录第一耳机或第二耳机符合对应的断开连接条件的持续时长;The recording unit 403 is configured to record the duration that the first earphone or the second earphone meets the corresponding disconnection condition when the detection unit 401 detects that the first earphone or the second earphone meets the corresponding disconnection condition;
处理单元404,用于在记录单元403记录的持续时长达到预设时长时,对第一耳机或第二耳机执行断开连接操作。The processing unit 404 is configured to perform a disconnection operation on the first headset or the second headset when the duration recorded by the recording unit 403 reaches a preset duration.
可选的,检测单元401,还用于在记录单元403记录的持续时长小于预设时长时,检测第一耳机或第二耳机是否符合重新连接条件。Optionally, the detection unit 401 is further configured to detect whether the first headset or the second headset meets the reconnection condition when the duration recorded by the recording unit 403 is less than the preset duration.
保持单元402,还用于在检测单元401检测到第一耳机或第二耳机符合重新连接条件,则继续保持第一耳机或第二耳机的连接状态。The holding unit 402 is further configured to continue to maintain the connection state of the first earphone or the second earphone when the detection unit 401 detects that the first earphone or the second earphone meets the reconnection condition.
可选的,检测单元401检测到第一耳机或第二耳机是否符合重新连接条件,具体为:Optionally, the detection unit 401 detects whether the first earphone or the second earphone meets the reconnection condition, specifically:
检测单元401检测第一耳机或第二耳机是否处于佩戴状态;或,The detection unit 401 detects whether the first earphone or the second earphone is in a wearing state; or,
检测单元401检测第一耳机或第二耳机是否发生预设佩戴动作。The detection unit 401 detects whether a preset wearing action occurs on the first earphone or the second earphone.
可选的,检测单元401检测第一耳机或第二耳机是否符合对应的断开连接条件,包括:Optionally, the detection unit 401 detects whether the first earphone or the second earphone meets the corresponding disconnection condition, including:
检测单元401检测第一耳机或第二耳机是否发生预设摘取动作;或,The detection unit 401 detects whether the first earphone or the second earphone has a preset picking action; or,
检测单元401检测第一耳机或第二耳机是否位于耳机盒且耳机盒被盖上;或,The detection unit 401 detects whether the first earphone or the second earphone is located in the earphone box and the earphone box is covered; or,
检测单元401检测第一耳机或第二耳机是否处于充电状态。The detection unit 401 detects whether the first earphone or the second earphone is in a charging state.
可选的,检测单元401,还用于在处理单元404对第一耳机或第二耳机执行断开连接操作之后,检测是否符合主耳机切换条件;Optionally, the detection unit 401 is further configured to detect whether the main earphone switching condition is met after the processing unit 404 performs a disconnect operation on the first earphone or the second earphone;
处理单元404,还用于在检测单元401检测到符合主耳机切换条件时,执行主耳机切换操作。The processing unit 404 is further configured to execute the main headset switching operation when the detection unit 401 detects that the main headset switching condition is met.
可选的,预设时长基于断开连接条件的类型以及无线耳机所处的场景确定。Optionally, the preset duration is determined based on the type of disconnection condition and the scene in which the wireless headset is located.
该无线耳机断开连接装置的实施可以参见图1-3所示的方法实施例,重复之处不再赘述。The implementation of the device for disconnecting a wireless headset can refer to the method embodiments shown in FIGS. 1-3, and the repetition is not repeated here.
实施图4所示的耳机断开连接装置,在检测到第一耳机或第二耳机符合对应的断开连接条件时,并不立即对第一耳机或第二耳机执行断开连接操作,而是保持第一耳机或第二耳机的连接状态,在一段时间(预设时长)内如果第一耳机或第二耳机仍然符合对应的断开连接条件,才对第一耳机或第二耳机执行断开连接操作,避免第一耳机或第二耳机频繁的断开重连,可以减少耳机自动断开与重连的次数,提高耳机的连接稳定性。Implementing the earphone disconnecting device shown in FIG. 4 does not immediately disconnect the first earphone or the second earphone when it detects that the first earphone or the second earphone meets the corresponding disconnection condition, but Maintain the connection status of the first earphone or the second earphone, and disconnect the first earphone or the second earphone if the first earphone or the second earphone still meets the corresponding disconnection condition within a period of time (preset duration) The connection operation avoids frequent disconnection and reconnection of the first earphone or the second earphone, can reduce the number of times the earphone automatically disconnects and reconnects, and improves the connection stability of the earphone.
请参阅图5,图5是本申请实施例公开的一种移动终端的结构示意图。如图5所示,该移动终端500包括处理器501和存储器502,其中,移动终端500还可以包括总线503,处理器501和存储器502可以通过总线503相互连接,总线503可以是外设部件互连标准(Peripheral Component Interconnect,简称PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,简称EISA)总线等。总线503可以分为地址总线、数据总线、控制总线等。为便于表示,图5中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。其中,移动终端500还可以包括输入输出设备504,输入输出设备504可以包括显示屏,例如液晶显示屏。存储器502用于存储包含指令的一个或多个程序;处理器501用于调用存储在存储器502中的指令执行上述图1至图3中的部分或全部方法步骤。Please refer to FIG. 5, which is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present application. As shown in FIG. 5, the mobile terminal 500 includes a processor 501 and a memory 502, wherein the mobile terminal 500 may further include a bus 503, the processor 501 and the memory 502 may be connected to each other through the bus 503, and the bus 503 may be a peripheral component Peripheral Component Interconnect (PCI) bus or Extended Industry Standard Architecture (EISA) bus, etc. The bus 503 can be divided into an address bus, a data bus, and a control bus. For ease of representation, only a thick line is used in FIG. 5, but it does not mean that there is only one bus or one type of bus. The mobile terminal 500 may further include an input and output device 504, and the input and output device 504 may include a display screen, such as a liquid crystal display screen. The memory 502 is used to store one or more programs containing instructions; the processor 501 is used to call the instructions stored in the memory 502 to perform some or all of the method steps in FIGS. 1 to 3 described above.
实施图5所示的移动终端,在检测到第一耳机或第二耳机符合对应的断开连接条件时,并不立即对第一耳机或第二耳机执行断开连接操作,而是保持第一耳机或第二耳机的连接状态,在一段时间(预设时长)内如果第一耳机或第二 耳机仍然符合对应的断开连接条件,才对第一耳机或第二耳机执行断开连接操作,避免第一耳机或第二耳机频繁的断开重连,可以减少耳机自动断开与重连的次数,提高耳机的连接稳定性。When the mobile terminal shown in FIG. 5 is detected, when it is detected that the first earphone or the second earphone meets the corresponding disconnection condition, the first earphone or the second earphone is not immediately disconnected, but the first earphone is maintained. The connection status of the earphone or the second earphone, if the first earphone or the second earphone still meets the corresponding disconnection condition within a period of time (preset duration), the first earphone or the second earphone is disconnected, Avoiding frequent disconnection and reconnection of the first earphone or the second earphone can reduce the number of times the earphone automatically disconnects and reconnects, and improve the connection stability of the earphone.
本申请实施例还提供了另一种移动终端,如图6所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该移动终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以移动终端为手机为例:An embodiment of the present application also provides another mobile terminal. As shown in FIG. 6, for ease of description, only parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method of the embodiment of the present application section. The mobile terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, etc. Taking the mobile terminal as a mobile phone as an example:
图6示出的是与本申请实施例提供的移动终端相关的手机的部分结构的框图。参考图6,手机包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、显示单元940、传感器950、音频电路960、无线保真(Wireless Fidelity,WiFi)模块970、处理器980、以及电源990等部件。本领域技术人员可以理解,图6中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。6 is a block diagram of a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present application. 6, the mobile phone includes: a radio frequency (Radio Frequency) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (WiFi) module 970, a processor 980 , And power supply 990 and other components. A person skilled in the art may understand that the structure of the mobile phone shown in FIG. 6 does not constitute a limitation on the mobile phone, and may include more or fewer components than shown, or combine some components, or arrange different components.
下面结合图6对手机的各个构成部件进行具体的介绍:The following describes each component of the mobile phone in detail with reference to FIG. 6:
RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 910 can be used for information reception and transmission. Generally, the RF circuit 910 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 910 can also communicate with other devices through a wireless communication network. The above wireless communication can use any communication standard or protocol, including but not limited to Global Mobile System (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division) Multiple Access (CDMA), Wideband Code Division Multiple Access (Wideband Code Multiple Division Access, WCDMA), Long Term Evolution (LTE), E-mail, Short Message Service (SMS), etc.
存储器920可用于存储软件程序以及模块,处理器980通过运行存储在存储器920的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器920可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据手机的使用所创建的数据等。此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固 态存储器件。The memory 920 may be used to store software programs and modules. The processor 980 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 920. The memory 920 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, application programs required for at least one function, and the like; the storage data area may store data created according to the use of a mobile phone, and the like. In addition, the memory 920 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括指纹识别模组931以及其他输入设备932。指纹识别模组931,可采集用户在其上的指纹数据。除了指纹识别模组931,输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于触控屏、物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 930 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the mobile phone. Specifically, the input unit 930 may include a fingerprint recognition module 931 and other input devices 932. The fingerprint recognition module 931 can collect fingerprint data on the user. In addition to the fingerprint recognition module 931, the input unit 930 may also include other input devices 932. Specifically, other input devices 932 may include, but are not limited to, one or more of a touch screen, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), trackball, mouse, joystick, and so on.
显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元940可包括显示屏941,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机或无机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏941。The display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 940 may include a display screen 941. Alternatively, the display screen 941 may be configured in the form of a liquid crystal display (Liquid Crystal) (LCD), an organic or inorganic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
手机还可包括至少一种传感器950,比如光传感器、运动传感器、压力传感器、温度传感器以及其他传感器。具体地,光传感器可包括环境光传感器(也称为光线传感器)及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节手机的背光亮度,进而调节显示屏941的亮度,接近传感器可在手机移动到耳边时,关闭显示屏941和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The mobile phone may further include at least one sensor 950, such as a light sensor, a motion sensor, a pressure sensor, a temperature sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor (also called a light sensor) and a proximity sensor, wherein the ambient light sensor may adjust the backlight brightness of the mobile phone according to the brightness of the ambient light, thereby adjusting the brightness of the display screen 941, and the proximity sensor may When the mobile phone moves to the ear, the display 941 and / or backlight is turned off. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when at rest, and can be used for applications that recognize mobile phone gestures (such as horizontal and vertical screen switching, magnetic force) Pose counter calibration), vibration recognition related functions (such as pedometer, tap), etc. As for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, not repeated here.
音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号播放;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据播放处理器980处理后,经RF电路910以发送给比如另一手机,或者将音频数据播放至存储器920以便进一步处理。The audio circuit 960, the speaker 961, and the microphone 962 can provide an audio interface between the user and the mobile phone. The audio circuit 960 can transmit the received electrical signal converted into audio signals to the speaker 961, which is converted into a sound signal by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, and the audio circuit 960 After receiving, it is converted into audio data, and then processed by the audio data playback processor 980, and then sent to, for example, another mobile phone through the RF circuit 910, or the audio data is played to the memory 920 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了WiFi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. Through the WiFi module 970, a mobile phone can help users send and receive emails, browse web pages, and access streaming media. It provides users with wireless broadband Internet access. Although FIG. 6 shows the WiFi module 970, it can be understood that it is not a necessary component of a mobile phone, and can be omitted as needed without changing the scope of the essence of the invention.
处理器980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器980可包括一个或多个处理单元;优选的,处理器980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器980中。The processor 980 is the control center of the mobile phone, connects various parts of the entire mobile phone with various interfaces and lines, executes or executes the software programs and / or modules stored in the memory 920, and calls the data stored in the memory 920 to execute Various functions of the mobile phone and processing data, so as to monitor the mobile phone as a whole. Optionally, the processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, and application programs, etc. The modem processor mainly handles wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 980.
手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 990 (such as a battery) that supplies power to various components. Preferably, the power supply can be logically connected to the processor 980 through the power management system, so as to realize functions such as charging, discharging, and power management through the power management system.
手机还可以包括摄像头9100,摄像头9100用于拍摄图像与视频,并将拍摄的图像和视频传输到处理器980进行处理。The mobile phone may further include a camera 9100. The camera 9100 is used to capture images and videos, and transmit the captured images and videos to the processor 980 for processing.
手机还可以蓝牙模块等,在此不再赘述。The mobile phone can also have a Bluetooth module, etc., which will not be repeated here.
前述图1~图3所示的实施例中,各步骤方法流程可以基于该手机的结构实现。In the foregoing embodiments shown in FIGS. 1 to 3, the method flow of each step may be implemented based on the structure of the mobile phone.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种耳机断开连接的方法的部分或全部步骤。An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes the computer to execute any of the headphones disconnected as described in the above method embodiments Some or all steps of the method.
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种耳机断开连接的方法的部分或全部步骤。An embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause the computer to execute as described in the above method embodiments Some or all steps of any method of disconnecting headphones.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the sequence of actions described. Because according to the invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the involved actions and modules are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For a part that is not detailed in an embodiment, you can refer to the related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其 它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or may Integration into another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or software function unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable memory. Based on such an understanding, the technical solution of the present invention can be embodied in the form of a software product in essence or a part that contributes to the existing technology or all or part of the technical solution, and the computer software product is stored in a memory, Several instructions are included to enable a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned memory includes: U disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。A person of ordinary skill in the art may understand that all or part of the steps in the various methods of the foregoing embodiments may be completed by instructing relevant hardware through a program. The program may be stored in a computer-readable memory, and the memory may include: a flash disk , Read-Only Memory (English: Read-Only Memory, abbreviation: ROM), Random Access Device (English: Random Access Memory, abbreviation: RAM), magnetic disk or optical disk, etc.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方 法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The embodiments of the present application have been described in detail above, and specific examples are used in this article to explain the principles and implementations of the present invention. The descriptions of the above embodiments are only used to help understand the method of the present invention and its core ideas; Those of ordinary skill in the art, according to the ideas of the present invention, may have changes in specific implementations and application scopes. In summary, the content of this specification should not be construed as limiting the present invention.

Claims (10)

  1. 一种耳机断开连接的方法,其特征在于,所述方法应用于移动终端,所述移动终端与无线耳机的第一耳机通信连接,所述第一耳机与所述无线耳机的第二耳机通信连接,所述方法包括:A method for disconnecting an earphone, characterized in that the method is applied to a mobile terminal, the mobile terminal is in communication connection with a first earphone of a wireless earphone, and the first earphone communicates with a second earphone of the wireless earphone Connection, the method includes:
    检测所述第一耳机或所述第二耳机是否符合对应的断开连接条件;Detecting whether the first earphone or the second earphone meets the corresponding disconnection condition;
    在检测到所述第一耳机或所述第二耳机符合对应的断开连接条件时,保持所述第一耳机或所述第二耳机的连接状态,并记录所述第一耳机或所述第二耳机符合对应的断开连接条件的持续时长;When detecting that the first earphone or the second earphone meets the corresponding disconnection condition, maintain the connection state of the first earphone or the second earphone, and record the first earphone or the second earphone The duration that the two headphones meet the corresponding disconnection conditions;
    在所述持续时长达到预设时长时,对所述第一耳机或所述第二耳机执行断开连接操作。When the continuous duration reaches a preset duration, a disconnection operation is performed on the first earphone or the second earphone.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    在所述持续时长小于所述预设时长时,检测所述第一耳机或所述第二耳机是否符合重新连接条件;When the duration is less than the preset duration, detecting whether the first earphone or the second earphone meets the reconnection condition;
    若检测到所述第一耳机或所述第二耳机符合所述重新连接条件,则继续保持所述第一耳机或所述第二耳机的连接状态。If it is detected that the first earphone or the second earphone meets the reconnection condition, the connection state of the first earphone or the second earphone is continuously maintained.
  3. 根据权利要求2所述的方法,其特征在于,所述检测到所述第一耳机或所述第二耳机是否符合重新连接条件,包括:The method according to claim 2, wherein the detecting whether the first earphone or the second earphone meets the reconnection condition includes:
    检测所述第一耳机或所述第二耳机是否处于佩戴状态;或,Detecting whether the first earphone or the second earphone is in a wearing state; or,
    检测所述第一耳机或所述第二耳机是否发生预设佩戴动作。Detecting whether a preset wearing action occurs on the first earphone or the second earphone.
  4. 根据权利要求1或2所述的方法,其特征在于,所述检测所述第一耳机或所述第二耳机是否符合对应的断开连接条件,包括:The method according to claim 1 or 2, wherein the detecting whether the first earphone or the second earphone meets a corresponding disconnection condition includes:
    检测所述第一耳机或所述第二耳机是否发生预设摘取动作;或,Detecting whether the first earphone or the second earphone has a preset picking action; or,
    检测所述第一耳机或所述第二耳机是否位于耳机盒且所述耳机盒被盖上;或,Detecting whether the first earphone or the second earphone is located in the earphone box and the earphone box is covered; or,
    检测所述第一耳机或所述第二耳机是否处于充电状态。It is detected whether the first earphone or the second earphone is in a charging state.
  5. 根据权利要求1~4任一项所述的方法,其特征在于,所述对所述第一耳 机或所述第二耳机执行断开连接操作之后,所述方法还包括:The method according to any one of claims 1 to 4, wherein after the disconnecting operation is performed on the first earphone or the second earphone, the method further comprises:
    检测是否符合主耳机切换条件;Check whether it meets the switching conditions of the main earphone;
    若符合,则执行主耳机切换操作。If it matches, the main headset switching operation is performed.
  6. 根据权利要求1~5任一项所述的方法,其特征在于,所述预设时长基于所述断开连接条件的类型以及所述无线耳机所处的场景确定。The method according to any one of claims 1 to 5, wherein the preset duration is determined based on the type of the disconnection condition and the scene in which the wireless headset is located.
  7. 根据权利要求1~6任一项所述的方法,其特征在于,所述方法应用于音频播放场景。The method according to any one of claims 1 to 6, wherein the method is applied to an audio playback scene.
  8. 一种耳机断开连接装置,其特征在于,所述装置应用于移动终端,所述移动终端与无线耳机的第一耳机通信连接,所述第一耳机与所述无线耳机的第二耳机通信连接,所述装置包括检测单元、保持单元、记录单元和处理单元;An earphone disconnection device, characterized in that the device is applied to a mobile terminal, the mobile terminal is in communication connection with a first earphone of a wireless earphone, and the first earphone is in communication connection with a second earphone of the wireless earphone The device includes a detection unit, a holding unit, a recording unit and a processing unit;
    所述检测单元,用于检测所述第一耳机或所述第二耳机是否符合对应的断开连接条件;The detection unit is configured to detect whether the first earphone or the second earphone meets a corresponding disconnection condition;
    所述保持单元,用于在所述检测单元检测到所述第一耳机或所述第二耳机符合对应的断开连接条件时,保持所述第一耳机或所述第二耳机的连接状态;The holding unit is configured to maintain the connection state of the first earphone or the second earphone when the detection unit detects that the first earphone or the second earphone meets a corresponding disconnection condition;
    所述记录单元,用于在所述检测单元检测到所述第一耳机或所述第二耳机符合对应的断开连接条件时,记录所述第一耳机或所述第二耳机符合对应的断开连接条件的持续时长;The recording unit is configured to record that the first earphone or the second earphone meets the corresponding disconnection when the detection unit detects that the first earphone or the second earphone meets the corresponding disconnection condition Duration of open connection conditions;
    所述处理单元,用于在所述记录单元记录的所述持续时长达到预设时长时,对所述第一耳机或所述第二耳机执行断开连接操作。The processing unit is configured to perform a disconnection operation on the first headset or the second headset when the duration recorded by the recording unit reaches a preset duration.
  9. 一种移动终端,其特征在于,包括处理器以及存储器,所述存储器用于存储一个或多个程序,所述一个或多个程序被配置成由所述处理器执行,所述程序包括用于执行如权利要求1-7任一项所述的方法。A mobile terminal is characterized by comprising a processor and a memory, the memory is used to store one or more programs, the one or more programs are configured to be executed by the processor, the program includes The method according to any one of claims 1-7 is performed.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-7任一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium is used to store a computer program for electronic data exchange, wherein the computer program causes a computer to execute the computer program according to any one of claims 1-7 method.
PCT/CN2018/110244 2018-10-15 2018-10-15 Method for disconnecting earphone, related device, and computer readable storage medium WO2020077493A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880098270.7A CN112823530A (en) 2018-10-15 2018-10-15 Method for disconnecting earphone, related equipment and computer readable storage medium
PCT/CN2018/110244 WO2020077493A1 (en) 2018-10-15 2018-10-15 Method for disconnecting earphone, related device, and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/110244 WO2020077493A1 (en) 2018-10-15 2018-10-15 Method for disconnecting earphone, related device, and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2020077493A1 true WO2020077493A1 (en) 2020-04-23

Family

ID=70283330

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/110244 WO2020077493A1 (en) 2018-10-15 2018-10-15 Method for disconnecting earphone, related device, and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN112823530A (en)
WO (1) WO2020077493A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113242495A (en) * 2021-06-10 2021-08-10 东莞立讯精密工业有限公司 True wireless stereo earphone assembly and control method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469400A (en) * 2010-11-17 2012-05-23 奥迪康有限公司 Wireless binaural hearing system
US20140140568A1 (en) * 2012-11-21 2014-05-22 Sung Sik IM Earphone easily facilitating the tying and untying of an earphone wire
CN106454581A (en) * 2016-08-31 2017-02-22 上海卓易云汇智能技术有限公司 Method for reducing power consumption of Bluetooth headset
CN107885478A (en) * 2017-09-21 2018-04-06 广东思派康电子科技有限公司 Computer-readable recording medium, communication system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161804A (en) * 2016-08-31 2016-11-23 维沃移动通信有限公司 A kind of audio play control method and mobile terminal
CN207304835U (en) * 2017-08-25 2018-05-01 广东思派康电子科技有限公司 The TWS earphones resetted with charging
CN107566939B (en) * 2017-08-31 2019-10-29 努比亚技术有限公司 A kind of method and terminal of controlling terminal
CN108650668B (en) * 2018-05-17 2020-02-07 歌尔科技有限公司 Connection request processing method, Bluetooth headset and wearable device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469400A (en) * 2010-11-17 2012-05-23 奥迪康有限公司 Wireless binaural hearing system
US20140140568A1 (en) * 2012-11-21 2014-05-22 Sung Sik IM Earphone easily facilitating the tying and untying of an earphone wire
CN106454581A (en) * 2016-08-31 2017-02-22 上海卓易云汇智能技术有限公司 Method for reducing power consumption of Bluetooth headset
CN107885478A (en) * 2017-09-21 2018-04-06 广东思派康电子科技有限公司 Computer-readable recording medium, communication system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113242495A (en) * 2021-06-10 2021-08-10 东莞立讯精密工业有限公司 True wireless stereo earphone assembly and control method thereof
CN113242495B (en) * 2021-06-10 2022-08-05 东莞立讯精密工业有限公司 True wireless stereo earphone assembly and control method thereof

Also Published As

Publication number Publication date
CN112823530A (en) 2021-05-18

Similar Documents

Publication Publication Date Title
CN109040887B (en) Master-slave earphone switching control method and related product
WO2020019847A1 (en) Method for switching main headset, and related device
US10805731B2 (en) Method for controlling earphone switching, earphone, and earphone system
US11452172B2 (en) Method for switching master earphone, mobile terminal, and non-transitory computer-readable storage medium
US11102697B2 (en) Method for controlling earphone switching and earphone
CN109511037B (en) Earphone volume adjusting method and device and computer readable storage medium
US11395059B2 (en) Master/slave switching method for wearable apparatus and related product
CN108897516B (en) Wearable device volume adjustment method and related product
CN108052304B (en) Volume adjusting method, volume adjusting equipment and computer storage medium
CN108834013B (en) Wearable equipment electric quantity balancing method and related product
CN108882084B (en) Wearable equipment electric quantity balancing method and related product
WO2020025033A1 (en) Volume-based master-slave switching method and related products
WO2022033176A1 (en) Audio play control method and apparatus, and electronic device and storage medium
WO2020077493A1 (en) Method for disconnecting earphone, related device, and computer readable storage medium
WO2020082391A1 (en) Wireless earphone control method and relevant product
CN109618062B (en) Voice interaction method, device, equipment and computer readable storage medium
CN109982230B (en) Method, system, mobile terminal and storage medium for enhancing microphone pickup effect
WO2020113525A1 (en) Playing control method and apparatus, and computer-readable storage medium and electronic device
CN108882085B (en) Wearable equipment electric quantity balancing method and related product
CN110650413B (en) Hearing aid implementation circuit and method and mobile terminal
CN115052068A (en) Volume adjusting method, mobile terminal and storage medium

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: 18937191

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 25/08/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18937191

Country of ref document: EP

Kind code of ref document: A1