WO2023201885A1 - 耳机的连接方法、装置、耳机及介质 - Google Patents

耳机的连接方法、装置、耳机及介质 Download PDF

Info

Publication number
WO2023201885A1
WO2023201885A1 PCT/CN2022/102103 CN2022102103W WO2023201885A1 WO 2023201885 A1 WO2023201885 A1 WO 2023201885A1 CN 2022102103 W CN2022102103 W CN 2022102103W WO 2023201885 A1 WO2023201885 A1 WO 2023201885A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
headset
location information
reconnection
connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2022/102103
Other languages
English (en)
French (fr)
Inventor
曾楷
张茜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Inc
Original Assignee
Goertek Inc
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 Goertek Inc filed Critical Goertek Inc
Publication of WO2023201885A1 publication Critical patent/WO2023201885A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • H04W76/32Release of transport tunnels
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the technical field of smart devices, and more specifically, to an earphone connection method, an earphone connection device, an earphone, and a computer-readable storage medium.
  • TWS True Wireless Stereo
  • the more common implementation solution is dual-device connection, that is, the same A pair of TWS earphones can be connected to two main devices at the same time.
  • the same pair of TWS earphones can be connected to two mobile phones at the same time, or the same pair of TWS earphones can be connected to a mobile phone and a computer at the same time.
  • the headset in actual use, it often happens that the headset has been connected to one of the dual devices. At this time, the headset will try to connect back to the other of the dual devices. However, if the other device is not within the reconnection distance, it will cause Meaningless reconnection attempts, and because the reconnection process takes up a lot of bandwidth, will also affect the business of the connected device, such as causing sound lag on the connected device.
  • One purpose of this application is to provide a new technical solution for earphone connection.
  • a method for reconnecting headphones includes:
  • the first location information is the location information of the first electronic device when the headset and the first electronic device previously established a communication connection;
  • the first electronic device is backconnected.
  • the method also includes:
  • the service state is not an audio service state, then perform the step of reconnecting the first electronic device according to the adjusted reconnection parameter.
  • the method also includes:
  • the service state is the audio service state
  • adjusting the reconnection parameters of the first electronic device includes:
  • a headphone connection device is provided, and the device includes:
  • the acquisition module is used to obtain the first location information of the first electronic device to be connected back; wherein the first location information is the first location information of the first electronic device when the headset and the first electronic device previously established a communication connection.
  • Device location information is used to obtain the first location information of the first electronic device to be connected back; wherein the first location information is the first location information of the first electronic device when the headset and the first electronic device previously established a communication connection.
  • the acquisition module is used to acquire the current location information of the second electronic device that has established a communication connection
  • An adjustment module configured to adjust the back-connection parameters of the first electronic device when the distance between the first position information and the current position information is not within the set distance range;
  • the back-connection module is used to back-connect the first electronic device according to the adjusted back-connection parameters.
  • the obtaining module is used to obtain the service status between the headset and the second electronic device;
  • the reconnection module is configured to reconnect to the first electronic device according to the adjusted reconnection parameter when the service state is not an audio service state.
  • the reconnection module is further configured to suspend reconnection to the first electronic device according to the adjusted reconnection parameter when the service state is the audio service state, and continue to connect back to the first electronic device.
  • the obtaining module obtains the service status between the headset and the second electronic device.
  • the adjustment module is specifically configured to: adjust the headset to connect back to the first electronic device when the distance between the first position information and the current position information is not within a set distance range. At least one of the reconnection frequency of the device, the number of reconnections of the earphone to the first electronic device, and the reconnection time interval of the earphone to the first electronic device.
  • an earphone which earphone includes:
  • Memory used to store executable computer instructions
  • a processor configured to execute the earphone connection method according to the above first aspect according to the control of the executable computer instructions.
  • a computer-readable storage medium on which computer instructions are stored, and when the computer instructions are run by a processor, the method for connecting the earphones described in the above first aspect is executed.
  • the headset will first obtain the current location information of the second electronic device that has established a communication connection, and the first location information of the first electronic device to be connected back.
  • the first location information is the location information of the first electronic device when the communication connection was previously established with the first electronic device, and when the distance between the first location information and the current location information is not within the set distance range, the adjustment Connect back the connection parameters of the first electronic device, and connect back the first electronic device based on the adjusted connection parameters. That is, the headset can adjust the reconnection parameters of the first electronic device to be reconnected based on the current location information of the second electronic device that has established communication, thereby reducing the power consumption caused by reconnecting the first electronic device and saving money. Bandwidth to avoid affecting the business of connected devices.
  • Figure 1 is a schematic diagram of the hardware configuration of a headset according to an embodiment of the present application
  • Figure 2 is a schematic flowchart of a headphone connection method according to an embodiment of the present application
  • Figure 3 is a schematic diagram of a connection method of headphones according to an example of the present application.
  • Figure 4 is a functional block diagram of a headphone connection device according to an embodiment of the present application.
  • Figure 5 is a functional block diagram of an earphone according to an embodiment of the present application.
  • any specific values are to be construed as illustrative only and not as limiting. Accordingly, other examples of the exemplary embodiments may have different values.
  • FIG. 1 is a block diagram of the hardware configuration of an earphone 1000 according to an embodiment of the present application.
  • the earphone 1000 may be a TWS earphone.
  • the headset 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, a speaker 1700, a microphone 1800, and the like.
  • the processor 1100 may include, but is not limited to, a central processing unit (CPU), a microprocessor (MCU), and the like.
  • the memory 1200 includes, for example, ROM (Read Only Memory), RAM (Random Access Memory), nonvolatile memory such as a hard disk, and the like.
  • the interface device 1300 includes, for example, various bus interfaces, such as serial bus interfaces (including USB interfaces), parallel bus interfaces, etc.
  • the communication device 1400 is capable of wired or wireless communication, for example.
  • the display device 1500 is, for example, a liquid crystal display screen, an LED display screen, a touch display screen, etc.
  • the input device 1600 includes, for example, a touch screen, a keyboard, a handle, and the like.
  • the earphone 1000 can output audio information through the speaker 1700 and can collect audio information through the microphone 1800.
  • the earphone 1000 in the embodiment of this specification may only involve some of the devices, or may also include other devices, which will not be discussed here. limited.
  • the memory 1200 of the earphone 1000 is used to store instructions, and the instructions are used to control the processor 1100 to operate to implement or support the implementation of the earphone connection method according to any embodiment.
  • Technical personnel can design instructions based on the solutions disclosed in this specification. How instructions control the processor to operate is well known in the art and will not be described in detail here.
  • the headset shown in Figure 1 is illustrative only and is in no way intended to limit the present application, its applications or uses.
  • FIG. 2 shows a connection method of an earphone according to an embodiment of the present application.
  • the connection method may be implemented by, for example, the earphone 1000 shown in FIG. 1 .
  • the earphone connection method in this embodiment may include the following steps S2100 to S2400:
  • Step S2100 Obtain the first location information of the first electronic device to be connected back.
  • the earphones can realize dual-device connection, that is, the same pair of earphones can be connected to two devices at the same time.
  • the same pair of headphones can be connected to two mobile phones at the same time; for example, the same pair of headphones can be connected to a mobile phone and a computer at the same time.
  • the headset will automatically connect to the two devices.
  • the operation of the headset automatically connecting to the device can be called a reconnection operation.
  • the first location information is the location information of the first electronic device when the earphone and the first electronic device previously established a communication connection.
  • the first electronic device is one of the devices that the earphone is about to connect back to.
  • the first electronic device will synchronize its own location information, that is, the first location information Loc1, to the earphone, and the earphone will store the first location information Loc1 into the storage module of the earphone for reading.
  • step S2100 After executing step S2100 to obtain the first location information of the first electronic device to be connected back, enter:
  • Step S2200 Obtain the current location information of the second electronic device that has established a communication connection.
  • the second electronic device is another device that has established a communication connection with the headset.
  • the positioning device of the second electronic device obtains its own current location information Loc2 and synchronizes the current location information Loc2 to the headset. It can be understood that the current location information Loc2 can reflect the current location information of the wearer of the headset.
  • step S2200 After executing step S2200 to obtain the current location information of the second electronic device that has established a communication connection, enter:
  • Step S2300 When the distance between the first location information and the current location information is not within the set distance range, adjust the reconnection parameter for reconnection to the first electronic device.
  • the reconnection parameters for reconnecting to the first electronic device include: the reconnection frequency for the earphone to connect back to the first electronic device, the number of reconnections for the earphone to connect back to the first electronic device, and the reconnection time interval for the earphone to connect back to the first electronic device.
  • the set distance range can be a value set according to actual application scenarios and actual needs.
  • the set distance range can be within 1,000 meters or within several hundred meters.
  • the positioning device of the second electronic device when a communication connection is established between the headset and the second electronic device, the positioning device of the second electronic device will obtain its own current location information Loc2 and synchronize the current location information Loc2 to earphone.
  • the current location information Loc2 may reflect the current location information of the wearer of the headset.
  • the first electronic device to which the earphone is about to be connected will also synchronize its first location information Loc1 to the earphone when the communication connection was previously established with the earphone.
  • the headset can obtain the first position information Loc1 of the first electronic device and the current position information Loc2 of the second electronic device, and the distance between the first position information Loc1 and the current position information Loc2 is within the set distance range, for example If it is within 1 kilometer, the first electronic device can be considered to be within the back-connection distance. On the contrary, when the distance between the first location information Loc1 and the current location information Loc2 is not within the set distance range, for example, not within 1 kilometer, the first electronic device is considered not to be within the back-connection distance range.
  • the reconnection parameters of the first electronic device are based on the current reconnection times, the current reconnection frequency, and the current reconnection time interval.
  • step S2300 when the distance between the first position information and the current position information is not within the set distance range, adjusting the back connection parameter of the first electronic device can further be adjusted. Including: when the distance between the first location information and the current location information is not within the set distance range, adjusting the reconnection frequency of the earphone to the first electronic device, the reconnection frequency of the earphone to the first electronic device, and the reconnection frequency of the earphone to the first electronic device. At least one of the number of reconnections of the first electronic device and the reconnection time interval of the headset reconnecting to the first electronic device.
  • the reconnection time interval is the time interval between two reconnection requests initiated by the headset.
  • the headset when the distance between the first location information and the current location information is not within the set distance range, at this time, the headset will adjust the number of back connections with the first electronic device, or adjust the number of connections with the first electronic device.
  • Step S2400 Backconnect the first electronic device according to the adjusted backconnection parameters.
  • the headset adjusts the number of reconnections with the first electronic device, or adjusts the reconnection frequency with the first electronic device, or adjusts the reconnection time interval with the first electronic device. Then, the first electronic device can be connected back according to the adjusted number of reconnections, the adjusted reconnection frequency, or the adjusted reconnection time interval. It is understandable that no matter whether the return connection parameters are adjusted or not,
  • the headset will first obtain the current location information of the second electronic device that has established a communication connection, and the first location information of the first electronic device to be connected back.
  • the location information is the location information of the first electronic device when the communication connection was previously established with the first electronic device, and when the distance between the first location information and the current location information is not within the set distance range, the return connection is adjusted
  • the headset can adjust the reconnection parameters of the first electronic device to be reconnected based on the current location information of the second electronic device that has established communication, thereby reducing the power consumption caused by reconnecting the first electronic device and saving money. Bandwidth to avoid affecting the business of connected devices.
  • the earphone connection method according to the embodiment of the present application further includes the following steps S4100 to S4300:
  • Step S4100 Obtain the service status between the headset and the second electronic device.
  • the service status includes audio service status and non-audio service status.
  • the audio service status includes, for example, but is not limited to, the headset and the second electronic device are in call service, the headset and the second electronic device are in game mode, and the headset and the second electronic device are in audio low-latency mode.
  • Step S4200 If the service state is not an audio service state, perform the step of reconnecting the first electronic device according to the adjusted reconnection parameter.
  • step S2400 is executed to connect back to the first electronic device according to the adjusted backconnect parameters, or, if the backconnect parameters are not adjusted, to connect back to the first electronic device based on the original backconnect parameters.
  • Step S4300 When the service state is the audio service state, suspend the step of reconnecting the first electronic device according to the adjusted reconnection parameters, and continue to obtain the headset and the third electronic device. Steps of business status between two electronic devices.
  • the service state between the headset and the second electronic device is the audio service state
  • the headset it is possible to adjust the reconnection timing of the headset to the first electronic device according to the business status between the headset and another device that has established a communication connection, so as to avoid the impact of the reconnection on the current business of the headset and improve the user experience.
  • the headphone connection method includes:
  • Step S301 The second electronic device that has established a communication connection with the earphone synchronizes its current location information to the earphone.
  • Step S302 The headset reads the previously synchronized location information of the first electronic device to be connected back as the first location information.
  • Step S303 Calculate whether the absolute value of the difference between the first position information and the current position information is greater than the preset distance threshold. If the absolute value of the difference is greater than the preset distance threshold, execute step S304. Otherwise, execute step S304. S305.
  • Step S304 the headset adjusts the number of reconnections with the first electronic device, or adjusts the reconnection frequency with the first electronic device, or adjusts the reconnection time interval with the first electronic device to obtain the target reconnection parameters, and continues to perform steps S306.
  • Step S305 The headset uses the original reconnection parameters as the target reconnection parameters, and continues to execute step S306.
  • Step S306 The headset obtains the service status with the second electronic device and determines whether the service status is the audio service status. If so, continue to execute step S306; otherwise, execute step S307.
  • Step S307 Connect back to the first electronic device according to the target backconnect parameter.
  • step S308 the headset determines whether the connection back to the first electronic device is successful. If yes, the process ends. If not, step S307 continues.
  • the multi-device connection method is optimized to reduce meaningless reconnection attempts when another device is not within the connection range, reduce the power consumption of the headset, and avoid reconnection to the headset. Impact on current business and improve user experience.
  • FIG. 4 is a schematic structural diagram of an earphone connection device according to an embodiment.
  • the earphone connection device 400 includes an acquisition module 410 , an adjustment module 420 and a reconnection module 430 .
  • the acquisition module 410 is used to obtain the first location information of the first electronic device to be connected back; wherein the first location information is the first location information when the headset and the first electronic device previously established a communication connection. Location information of electronic devices.
  • the obtaining module 410 is used to obtain the current location information of the second electronic device that has established a communication connection.
  • the adjustment module 420 is configured to adjust the reconnection parameters of the first electronic device when the distance between the first location information and the current location information is not within the set distance range.
  • the reconnection module 430 is used to reconnect the first electronic device according to the adjusted reconnection parameters.
  • the obtaining module 410 is used to obtain the service status between the headset and the second electronic device.
  • the reconnection module 430 is configured to reconnect to the first electronic device according to the adjusted reconnection parameter when the service state is not an audio service state.
  • the reconnection module 430 is configured to suspend reconnection to the first electronic device according to the adjusted reconnection parameters when the service state is the audio service state, and continue to connect back to the first electronic device.
  • the obtaining module 410 obtains the service status between the headset and the second electronic device.
  • the adjustment module 420 is specifically configured to adjust the headset to connect back to the first electronic device when the distance between the first position information and the current position information is not within a set distance range. At least one of the reconnection frequency of the device, the number of reconnections of the earphone to the first electronic device, and the reconnection time interval of the earphone to the first electronic device.
  • the headset will first obtain the current location information of the second electronic device that has established a communication connection, and the first location information of the first electronic device to be connected back.
  • the location information is the location information of the first electronic device when the communication connection was previously established with the first electronic device, and when the distance between the first location information and the current location information is not within the set distance range, the return connection is adjusted
  • the headset can adjust the reconnection parameters of the first electronic device to be reconnected based on the current location information of the second electronic device that has established communication, thereby reducing the power consumption caused by reconnecting the first electronic device and saving money. Bandwidth to avoid affecting the business of connected devices.
  • FIG. 5 is a schematic diagram of the hardware structure of an earphone according to an embodiment.
  • the headset 500 includes a processor 510 and a memory 520 .
  • the memory 520 may be used to store executable computer instructions.
  • the processor 510 may be configured to execute the earphone connection method according to the method embodiment of the present application under the control of the executable computer instructions.
  • the earphone 500 may be the earphone 1000 as shown in FIG. 1 , or may be a device with other hardware structures, which is not limited here.
  • the earphone 500 may include the above connection device 400 .
  • each module of the above connection device 400 can be implemented by the processor 510 running computer instructions stored in the memory 520 .
  • the headset will first obtain the first location information of the first electronic device to be connected back.
  • the first location information is the location when the communication connection was last established with the first electronic device.
  • position information of the first electronic device and when the first position information is not within the back-connection distance range, adjust the back-connection parameters of the first electronic device, and back-connect the first electronic device based on the adjusted back-connection parameters. equipment. Since the connection distance range is associated with the current location information of the second electronic device to which the headset has established a communication connection, that is, the headset can adjust the first location to be connected back based on the current location information of the second electronic device to which communication has been established.
  • the back-connection parameters of the electronic device can thereby reduce the power consumption caused by the back-connection to the first electronic device, save bandwidth, and avoid affecting the business of the connected device.
  • Embodiments of the present application also provide a computer-readable storage medium on which computer instructions are stored, and when the computer instructions are run by a processor, they execute the earphone connection method provided by embodiments of the present application.
  • the application may be a system, method and/or computer program product.
  • the computer program product may include a computer-readable storage medium having thereon computer-readable program instructions for causing a processor to implement various aspects of the present application.
  • Computer-readable storage media may be tangible devices that can retain and store instructions for use by an instruction execution device.
  • the computer-readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) or Flash memory), Static Random Access Memory (SRAM), Compact Disk Read Only Memory (CD-ROM), Digital Versatile Disk (DVD), Memory Stick, Floppy Disk, Mechanical Coding Device, such as a printer with instructions stored on it.
  • RAM random access memory
  • ROM read-only memory
  • EPROM erasable programmable read-only memory
  • Flash memory Static Random Access Memory
  • CD-ROM Compact Disk Read Only Memory
  • DVD Digital Versatile Disk
  • Memory Stick
  • Computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or through electrical wires. transmitted electrical signals.
  • Computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to various computing/processing devices, or to an external computer or external storage device over a network, such as the Internet, a local area network, a wide area network, and/or a wireless network.
  • the network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers.
  • a network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage on a computer-readable storage medium in the respective computing/processing device .
  • Computer program instructions for performing the operations of this application may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or instructions in one or more programming languages.
  • the computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server implement.
  • the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as an Internet service provider through the Internet). connect).
  • LAN local area network
  • WAN wide area network
  • an external computer such as an Internet service provider through the Internet. connect
  • an electronic circuit such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA)
  • the electronic circuit can Computer readable program instructions are executed to implement various aspects of the application.
  • These computer-readable program instructions may be provided to a processor of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, thereby producing a machine, such that when executed by the processor of the computer or other programmable data processing apparatus, these computer-readable program instructions , resulting in an apparatus that implements the functions/actions specified in one or more blocks in the flowchart and/or block diagram.
  • These computer-readable program instructions can also be stored in a computer-readable storage medium. These instructions cause the computer, programmable data processing device and/or other equipment to work in a specific manner. Therefore, the computer-readable medium storing the instructions includes An article of manufacture that includes instructions that implement aspects of the functions/acts specified in one or more blocks of the flowcharts and/or block diagrams.
  • Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other equipment, causing a series of operating steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process , thereby causing instructions executed on a computer, other programmable data processing apparatus, or other equipment to implement the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams.
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions that embody one or more elements for implementing the specified logical function(s).
  • Executable instructions may occur out of the order noted in the figures. For example, two consecutive blocks may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved.
  • each block of the block diagram and/or flowchart illustration, and combinations of blocks in the block diagram and/or flowchart illustration can be implemented by special purpose hardware-based systems that perform the specified functions or acts. , or can be implemented using a combination of specialized hardware and computer instructions. It is well known to those skilled in the art that implementation through hardware, implementation through software, and implementation through a combination of software and hardware are all equivalent.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

本申请提供了一种耳机的连接方法、装置、耳机及介质,该方法包括:获取待回连的第一电子设备的第一位置信息;其中,所述第一位置信息为所述耳机与所述第一电子设备前一次建立通信连接时所述第一电子设备的位置信息;获取已建立通信连接的第二电子设备的当前位置信息;在所述第一位置信息与所述当前位置信息间的距离不位于设定距离范围的情况下,调整回连所述第一电子设备的回连参数;根据调整后的回连参数,回连所述第一电子设备。

Description

耳机的连接方法、装置、耳机及介质
本申请要求于2022年04月22日提交中国专利局、申请号202210431419.7、申请名称为“耳机的连接方法、装置、耳机及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及智能设备技术领域,更具体地,涉及一种耳机的连接方法、一种耳机的连接装置、一种耳机、及一种计算机可读存储介质。
背景技术
随着技术的发展,越来越多的真正无线立体声(True Wireless Stereo,TWS)耳机支持多点连接功能,为用户带来更加便利的连接体验,比较常见的实现方案为双设备连接,即同一对TWS耳机可以同时连接两个主设备,例如同一对TWS耳机可以同时连接两部手机,又例如同一对TWS耳机可以同时连接一部手机和一台电脑。
然而,在实际使用中,经常会出现耳机已经连接了双设备中的一个,此时耳机会尝试回连双设备中的另一个,然而,如果另一个设备不在回连距离范围内,就会造成无意义的回连尝试,同时由于回连过程占用较多带宽,也会影响已连接设备的业务,例如造成已连接的设备出现声音卡顿等现象。
发明内容
本申请的一个目的是提供一种耳机的连接的新的技术方案。
根据本申请的第一方面,提供一种耳机的回连方法,所述方法包括:
获取所要回连的第一电子设备的第一位置信息;其中,所述第一位置信息为所述耳机与所述第一电子设备前一次建立通信连接时所述第一电子设备的位置信息;
获取已建立通信连接的第二电子设备的当前位置信息;
在所述第一位置信息与所述当前位置信息间的距离不位于设定距离范围的情况下,调整回连所述第一电子设备的回连参数;
根据调整后的回连参数,回连所述第一电子设备。
可选地,所述方法还包括:
获取所述耳机与所述第二电子设备之间的业务状态;
在所述业务状态不为音频业务状态的情况下,再执行根据调整后的所述回连参数,回连所述第一电子设备的步骤。
可选地,所述方法还包括:
在所述业务状态为所述音频业务状态的情况下,暂停执行根据调整后的回连参数,回连所述第一电子设备的步骤,并继续执行获取所述耳机与所述第二电子设备之间的业务状态的步骤。
可选地,所述在所述第一位置信息与所述当前位置信息间的距离不位于设定距离范围的情况下,调整回连所述第一电子设备的回连参数,包括:
在所述第一位置信息与所述当前位置信息间的距离不位于设定距离范围的情况下,调整所述耳机回连所述第一电子设备的回连频率、所述耳机回连所述第一电子设备的回连次数、所述耳机回连所述第一电子设备的回连时间间隔中的至少一项。
根据本申请的第二方面,提供了一种耳机的连接装置,所述装置包括:
获取模块,用于获取待回连的第一电子设备的第一位置信息;其中,所述第一位置信息为所述耳机与所述第一电子设备前一次建立通信连接时所述第一电子设备的位置信息;
所述获取模块,用于获取已建立通信连接的第二电子设备的当前位置信息;
调整模块,用于在所述第一位置信息与所述当前位置信息间的距离不位于设定距离范围的情况下,调整回连所述第一电子设备的回连参数;
回连模块,用于根据调整后的回连参数,回连所述第一电子设备。
可选地,所述获取模块,用于获取所述耳机与所述第二电子设备之间的业务状态;
所述回连模块,用于在所述业务状态不为音频业务状态的情况下,再根据调整后的所述回连参数,回连所述第一电子设备。
可选地,所述回连模块,还用于在所述业务状态为所述音频业务状态的情况下,暂停根据调整后的回连参数,回连所述第一电子设备,并继续由所述获取模块获取所述耳机与所述第二电子设备之间的业务状态。
可选地,所述调整模块,具体用于:在所述第一位置信息与所述当前位置信息间的距离不位于设定距离范围的情况下,调整所述耳机回连所述第一电子设备的回连频率、所述耳机回连所述第一电子设备的回连次数、所述耳机回连所述第一电子设备的回连时间间隔中的至少一项。
根据本申请的第三方面,提供了一种耳机,所述耳机包括:
存储器,用于存储可执行的计算机指令;
处理器,用于根据所述可执行的计算机指令的控制,执行根据以上第一方面所述的耳机的连接方法。
根据本申请的第四方面,提供了一种计算机可读存储介质,其上存储有计算机指令,所述计算机指令被处理器运行时执行以上第一方面所述的耳机的连接方法。
本申请的一个有益效果在于,对于耳机的双连接场景,其耳机会先获取已建立通信连接的第二电子设备的当前位置信息,以及待回连的第一电子设备的第一位置信息,该第一位置信息为与第一电子设备前一次建立通信连接时该第一电子设备的位置信息,并在第一位置信息与当前位置信息间的距离不位于设定距离范围内的情况下,调整回连第一电子设备的回连参数,并基于调整后的回连参数回连第一电子设备。即,耳机能够基于与已经建立通信的第二电子设备的当前位置信息,去调整待回连的第一电子设备的回连参数,从而降低回连第一电子设备带来的功耗,节省了带宽,避免影响已连接设备的业务。
通过以下参照附图对本说明书的示例性实施例的详细描述,本说明书的其它特征及其优点将会变得清楚。
附图说明
被结合在说明书中并构成说明书的一部分的附图示出了本说明书的实施例,并且连同其说明一起用于解释本说明书的原理。
图1是根据本申请实施例的耳机的硬件配置示意图;
图2是根据本申请实施例的耳机的连接方法的流程示意图;
图3是根据本申请一个例子的耳机的连接方法示意图;
图4是根据本申请实施例的耳机的连接装置的原理框图;
图5是根据本申请实施例的耳机的原理框图。
具体实施方式
现在将参照附图来详细描述本申请的各种示例性实施例。应注意到:除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表达式和数值不限制本申请实施例的范围。
以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本申请及其应用或使用的任何限制。
对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为说明书的一部分。
在这里示出和讨论的所有例子中,任何具体值应被解释为仅仅是示例性的,而不是作为限制。因此,示例性实施例的其它例子可以具有不同的值。
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。
<硬件配置>
图1是根据本申请实施例的耳机1000的硬件配置的框图,该耳机1000可以为TWS耳机。
在一个实施例中,如图1所示,耳机1000可以包括处理器1100、存储器1200、接口装置1300、通信装置1400、显示装置1500、输入装置1600、扬声器1700、麦克风1800等等。
其中,处理器1100可以包括但不限于中央处理器CPU、微处理器MCU等。存储器1200例如包括ROM(只读存储器)、RAM(随机存取存储器)、诸如硬盘的非易失性存储器等。接口 装置1300例如包括各种总线接口,例如串行总线接口(包括USB接口)、并行总线接口等。通信装置1400例如能够进行有线或无线通信。显示装置1500例如是液晶显示屏、LED显示屏、触摸显示屏等。输入装置1600例如包括触摸屏、键盘、手柄等。耳机1000可以通过扬声器1700输出音频信息,可以通过麦克风1800采集音频信息。
本领域技术人员应当理解,尽管在图1中示出了耳机1000的多个装置,但是,本说明书实施例的耳机1000可以仅涉及其中的部分装置,也可以还包含其他装置,在此不做限定。
本实施例中,耳机1000的存储器1200用于存储指令,该指令用于控制处理器1100进行操作以实施或者支持实施根据任意实施例的耳机的连接方法。技术人员可以根据本说明书所公开方案设计指令。指令如何控制处理器进行操作,这是本领域公知,故在此不再详细描述。
在上述描述中,技术人员可以根据本申请所提供的方案设计指令。指令如何控制处理器进行操作,这是本领域公知,故在此不再详细描述。
图1所示的耳机仅是解释性的,并且决不是为了要限制本申请、其应用或用途。
<方法实施例>
图2示出了本申请的一个实施例的耳机的连接方法,该连接方法例如可以由如图1所示的耳机1000实施。
如图2所示,本实施例中的耳机的连接方法可以包括如下步骤S2100~步骤S2400:
步骤S2100,获取待回连的第一电子设备的第一位置信息。
本实施例中,耳机能够实现双设备连接,即同一对耳机可以同时连接两个设备。例如同一对耳机可以同时连接两部手机;又例如同一对耳机可以同时连接一部手机和一台电脑等。可以理解的是,当耳机与该两个设备之间已经建立配对关系的情况下,该耳机会自动连接两个设备,该耳机自动连接设备的操作可以称之为回连操作。
其中,所述第一位置信息为所述耳机与所述第一电子设备前一次建立通信连接时所述第一电子设备的位置信息。
在具体实施时,第一电子设备为耳机即将要回连的其中一个设备,在此,当耳机前一次回连第一电子设备,即,耳机前一次与第一电子设备之间建立通信连接时,第一电子设备会将自身的位置信息即第一位置信息Loc1同步至耳机,耳机会将该第一位置信息Loc1存储至耳机的存储模块中以供读取。
在执行步骤S2100获取待回连的第一电子设备的第一位置信息之后,进入:
步骤S2200,获取已建立通信连接的第二电子设备的当前位置信息。
第二电子设备为已经与耳机建立通信连接的另外一个设备,在此,第二电子设备的定位装置会获取自身的当前位置信息Loc2,并将该当前位置信息Loc2同步至耳机。可以理解的是,该当前位置信息Loc2可以反映出耳机的佩戴者的当前位置信息。
在执行步骤S2200获取已建立通信连接的第二电子设备的当前位置信息之后,进入:
步骤S2300,在所述第一位置信息与所述当前位置信息间的距离不位于设定距离范围的情况下,调整回连所述第一电子设备的回连参数。
回连第一电子设备的回连参数包括:耳机回连第一电子设备的回连频率、耳机回连第一电子设备的回连次数、耳机回连第一电子设备的回连时间间隔。
设定距离范围可以是根据实际应用场景和实际需求设置的数值,该设定距离范围可以是1000米以内,也可以是几百米以内。
在具体实施时,如上所述,在耳机与第二电子设备之间建立通信连接的情况下,第二电子设备的定位装置会获取自身的当前位置信息Loc2,并将该当前位置信息Loc2同步至耳机。该当前位置信息Loc2可以反映出耳机的佩戴者的当前位置信息。并且,耳机即将回连的第一电子设备也会将前一次与耳机建立通信连接时自身的第一位置信息Loc1同步至耳机。这样,耳机便可获取到第一电子设备的第一位置信息Loc1和第二电子设备的当前位置信息Loc2,并在第一位置信息Loc1和当前位置信息Loc2之间的距离处于设定距离范围例如处于1公里内的情况下,便可认为第一电子设备处于回连距离范围内。反之,在第一位置信息Loc1和当前位置信息Loc2之间的距离不处于设定距离范围例如不处于1公里内的情况下,则认为第一电子设备不处于回连距离范围内。
可以理解的是,在第一电子设备的第一位置信息与第二电子设备的当前位置信息间的距离位于设定距离范围,即在第一电子设备处于回连距离范围内,便不会调整回连第一电子设备的回连参数,即基于当前的回连次数、当前的回连频率、当前的回连时间间隔回连第一电子设备。
本实施例中,本步骤S2300中在所述第一位置信息与所述当前位置信息间的距离不位于设定距离范围的情况下,调整回连所述第一电子设备的回连参数可以进一步包括:在所述第一位置信息与所述当前位置信息间的距离不位于设定距离范围的情况下,调整所述耳机回连所述第一电子设备的回连频率、所述耳机回连所述第一电子设备的回连次数、所述耳 机回连所述第一电子设备的回连时间间隔中的至少一项。
其中,回连时间间隔为耳机两次发起回连请求的时间间隔。
在具体实施时,在第一位置信息与当前位置信息间的距离不位于设定距离范围的情况下,此时,耳机会调整与第一电子设备之间的回连次数,或者调整与第一电子设备之间的回连频率,或者调整与第一电子设备之间的回连时间间隔。
在执行以上步骤S2300在所述第一位置信息与所述当前位置信息间的距离不位于设定距离范围的情况下,调整回连所述第一电子设备的回连参数之后,进入:
步骤S2400,根据调整后的回连参数,回连所述第一电子设备。
在具体实施时,耳机在调整与第一电子设备之间的回连次数,或者调整与第一电子设备之间的回连频率,或者调整与第一电子设备之间的回连时间间隔之后,便可根据调整后的回连次数,或者调整后的回连频率,或者调整后的回连时间间隔回连第一电子设备。可以理解的是,无论回连参数是否调
根据本申请实施例,对于耳机的双连接场景,其耳机会先获取已建立通信连接的第二电子设备的当前位置信息,以及待回连的第一电子设备的第一位置信息,该第一位置信息为与第一电子设备前一次建立通信连接时该第一电子设备的位置信息,并在第一位置信息与当前位置信息间的距离不位于设定距离范围内的情况下,调整回连第一电子设备的回连参数,并基于调整后的回连参数回连第一电子设备。即,耳机能够基于与已经建立通信的第二电子设备的当前位置信息,去调整待回连的第一电子设备的回连参数,从而降低回连第一电子设备带来的功耗,节省了带宽,避免影响已连接设备的业务。
在一个实施例中,本申请实施例的耳机的连接方法进一步包括如下步骤S4100~步骤S4300:
步骤S4100,获取所述耳机与所述第二电子设备之间的业务状态。
其中,业务状态包括音频业务状态和非音频业务状态。音频业务状态例如但不限于包括耳机与第二电子设备处于通话业务、耳机与第二电子设备处于游戏模式、耳机与第二电子设备处于音频低延时模式。
步骤S4200,在所述业务状态不为音频业务状态的情况下,再执行根据调整后的所述回连参数,回连所述第一电子设备的步骤。
本实施例中,在耳机与第二电子设备之间的业务状态不为音频业务状态的情况下,表明此时回连第一电子设备,不会对第二电子设备造成影响。此时,便执行以上步骤S2400 根据调整后的回连参数,回连所述第一电子设备,或者在未调整回连参数的情况下,根据原有的回连参数回连第一电子设备。
步骤S4300,在所述业务状态为所述音频业务状态的情况下,暂停执行根据调整后的回连参数,回连所述第一电子设备的步骤,并继续执行获取所述耳机与所述第二电子设备之间的业务状态的步骤。
本实施例中,在耳机与第二电子设备之间的业务状态为音频业务状态的情况下,表明此时回连第一电子设备,会对第二电子设备造成影响。在此,需要停止回连操作,并继续获取耳机与第二电子设备之间的业务状态,以在业务状态不为音频业务状态的情况下,再执行回连操作。
根据本实施例,其能够根据耳机与已建立通信连接的另一设备之间的业务状态,调整耳机回连第一电子设备的回连时机,避免回连对耳机当前业务的影响,提升用户体验。
<例子>
接下来示出一个例子的耳机的连接方法,该例子中,结合图3所示,该耳机的连接方法包括:
步骤S301,与耳机已建立通信连接的第二电子设备将自身的当前位置信息同步至耳机。
步骤S302,耳机读取待回连的第一电子设备前一次同步的位置信息作为第一位置信息。
步骤S303,计算第一位置信息与当前位置信息之间的差值的绝对值是否大于预设距离阈值,在差值的绝对值大于预设距离阈值的情况下,执行步骤S304,反之,执行步骤S305。
步骤S304,耳机调整与第一电子设备的回连次数,或者调整与第一电子设备的回连频率,或者调整与第一电子设备的回连时间间隔以得到目标回连参数,并继续执行步骤S306。
步骤S305,耳机将原有的回连参数作为目标回连参数,并继续执行步骤S306。
步骤S306,耳机获取与第二电子设备之间的业务状态,并判断业务状态是否为音频业务状态,是的话,继续执行步骤S306,反之,执行步骤S307。
步骤S307,根据目标回连参数,回连第一电子设备。
步骤S308,耳机判断回连第一电子设备是否成功,是的话,流程结束,否的话,继续执行步骤S307。
根据本例子,基于用户耳机当前的业务场景、位置信息,优化多设备连接的方法,减少因另一个设备不在连接范围时无意义的回连尝试,降低耳机的功耗,同时避免回连对耳 机当前业务的影响,提升用户体验。
<装置实施例>
图4是根据一个实施例的耳机的连接装置的结构示意图。如图4所示,该耳机的连接装置400包括获取模块410、调整模块420和回连模块430。
获取模块410,用于获取待回连的第一电子设备的第一位置信息;其中,所述第一位置信息为所述耳机与所述第一电子设备前一次建立通信连接时所述第一电子设备的位置信息。
所述获取模块410,用于获取已建立通信连接的第二电子设备的当前位置信息。
调整模块420,用于在所述第一位置信息与所述当前位置信息间的距离不位于设定距离范围的情况下,调整回连所述第一电子设备的回连参数。
回连模块430,用于根据调整后的回连参数,回连所述第一电子设备。
在一个实施例中,所述获取模块410,用于获取所述耳机与所述第二电子设备之间的业务状态。
所述回连模块430,用于在所述业务状态不为音频业务状态的情况下,再根据调整后的所述回连参数,回连所述第一电子设备。
在一个实施例中,所述回连模块430用于在所述业务状态为所述音频业务状态的情况下,暂停根据调整后的回连参数,回连所述第一电子设备,并继续由所述获取模块410获取所述耳机与所述第二电子设备之间的业务状态。
在一个实施例中,调整模块420,具体用于在所述第一位置信息与所述当前位置信息间的距离不位于设定距离范围的情况下,调整所述耳机回连所述第一电子设备的回连频率、所述耳机回连所述第一电子设备的回连次数、所述耳机回连所述第一电子设备的回连时间间隔中的至少一项。
根据本申请实施例,对于耳机的双连接场景,其耳机会先获取已建立通信连接的第二电子设备的当前位置信息,以及待回连的第一电子设备的第一位置信息,该第一位置信息为与第一电子设备前一次建立通信连接时该第一电子设备的位置信息,并在第一位置信息与当前位置信息间的距离不位于设定距离范围内的情况下,调整回连第一电子设备的回连参数,并基于调整后的回连参数回连第一电子设备。即,耳机能够基于与已经建立通信的第二电子设备的当前位置信息,去调整待回连的第一电子设备的回连参数,从而降低回连 第一电子设备带来的功耗,节省了带宽,避免影响已连接设备的业务。
<设备实施例>
图5是根据一个实施例的耳机的硬件结构示意图。如图5所示,该耳机500包括处理器510和存储器520。
该存储器520可以用于存储可执行的计算机指令。
该处理器510可以用于根据所述可执行的计算机指令的控制,执行根据本申请方法实施例所述的耳机的连接方法。
该耳机500可以是如图1所示的耳机1000,也可以是具备其他硬件结构的设备,在此不做限定。
在另外的实施例中,该耳机500可以包括以上连接装置400。
在一个实施例中,以上连接装置400的各模块可以通过处理器510运行存储器520中存储的计算机指令实现。
根据本申请实施例,对于耳机的双连接场景,其耳机会先获取待回连的第一电子设备的第一位置信息,该第一位置信息为与第一电子设备前一次建立通信连接时该第一电子设备的位置信息,并在第一位置信息不位于回连距离范围内的情况下,调整回连第一电子设备的回连参数,并基于调整后的回连参数回连第一电子设备。由于该连接距离范围与耳机已建立通信连接的第二电子设备的当前位置信息相关联,即,耳机能够基于与已经建立通信的第二电子设备的当前位置信息,去调整待回连的第一电子设备的回连参数,从而降低回连第一电子设备带来的功耗,节省了带宽,避免影响已连接设备的业务。
<计算机可读存储介质>
本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机指令,所述计算机指令被处理器运行时执行本申请实施例提供的耳机的连接方法。
本申请可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本申请的各个方面的计算机可读程序指令。
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是――但不限于――电存储设备、磁存储设备、光存储设备、 电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。
用于执行本申请操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本申请的各个方面。
这里参照根据本申请实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本申请的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。
附图中的流程图和框图显示了根据本申请的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。对于本领域技术人员来说公知的是,通过硬件方式实现、通过软件方式实现以及通过软件和硬件结合的方式实现都是等价的。
以上已经描述了本申请的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。本申请的范围由所附权利要求来限定。

Claims (10)

  1. 一种耳机的连接方法,其特征在于,所述方法包括:
    获取待回连的第一电子设备的第一位置信息;其中,所述第一位置信息为所述耳机与所述第一电子设备前一次建立通信连接时所述第一电子设备的位置信息;
    获取已建立通信连接的第二电子设备的当前位置信息;
    在所述第一位置信息与所述当前位置信息间的距离不位于设定距离范围的情况下,调整回连所述第一电子设备的回连参数;
    根据调整后的回连参数,回连所述第一电子设备。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    获取所述耳机与所述第二电子设备之间的业务状态;
    在所述业务状态不为音频业务状态的情况下,再执行根据调整后的所述回连参数,回连所述第一电子设备的步骤。
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:
    在所述业务状态为所述音频业务状态的情况下,暂停执行根据调整后的回连参数,回连所述第一电子设备的步骤,并继续执行获取所述耳机与所述第二电子设备之间的业务状态的步骤。
  4. 根据权利要求1所述的方法,其特征在于,所述在所述第一位置信息与所述当前位置信息间的距离不位于设定距离范围的情况下,调整回连所述第一电子设备的回连参数,包括:
    在所述第一位置信息与所述当前位置信息间的距离不位于设定距离范围的情况下,调整所述耳机回连所述第一电子设备的回连频率、所述耳机回连所述第一电子设备的回连次数、所述耳机回连所述第一电子设备的回连时间间隔中的至少一项。
  5. 一种耳机的连接装置,其特征在于,所述装置包括:
    获取模块,用于获取待回连的第一电子设备的第一位置信息;其中,所述第一位置信息为所述耳机与所述第一电子设备前一次建立通信连接时所述第一电子设备的位置信息;
    所述获取模块,用于获取已建立通信连接的第二电子设备的当前位置信息;
    调整模块,用于在所述第一位置信息与所述当前位置信息间的距离不位于设定距离范围的情况下,调整回连所述第一电子设备的回连参数;
    回连模块,用于根据调整后的回连参数,回连所述第一电子设备。
  6. 根据权利要求5所述的装置,其特征在于,
    所述获取模块,用于获取所述耳机与所述第二电子设备之间的业务状态;
    所述回连模块,用于在所述业务状态不为音频业务状态的情况下,再根据调整后的所述回连参数,回连所述第一电子设备。
  7. 根据权利要求6所述的装置,其特征在于,所述回连模块,还用于在所述业务状态为所述音频业务状态的情况下,暂停根据调整后的回连参数,回连所述第一电子设备,并继续由所述获取模块获取所述耳机与所述第二电子设备之间的业务状态。
  8. 根据权利要求5所述的装置,其特征在于,所述调整模块,具体用于:
    在所述第一位置信息与所述当前位置信息间的距离不位于设定距离范围的情况下,调整所述耳机回连所述第一电子设备的回连频率、所述耳机回连所述第一电子设备的回连次数、所述耳机回连所述第一电子设备的回连时间间隔中的至少一项。
  9. 一种耳机,其特征在于,所述耳机包括:
    存储器,用于存储可执行的计算机指令;
    处理器,用于根据所述可执行的计算机指令的控制,执行根据权利要求1-4中任意一项所述的耳机的连接方法。
  10. 一种计算机可读存储介质,其上存储有计算机指令,所述计算机指令被处理器运行时执行权利要求1-4中任意一项所述的耳机的连接方法。
PCT/CN2022/102103 2022-04-22 2022-06-29 耳机的连接方法、装置、耳机及介质 Ceased WO2023201885A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210431419.7 2022-04-22
CN202210431419.7A CN114885278B (zh) 2022-04-22 2022-04-22 耳机的连接方法、装置、耳机及介质

Publications (1)

Publication Number Publication Date
WO2023201885A1 true WO2023201885A1 (zh) 2023-10-26

Family

ID=82671608

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/102103 Ceased WO2023201885A1 (zh) 2022-04-22 2022-06-29 耳机的连接方法、装置、耳机及介质

Country Status (2)

Country Link
CN (1) CN114885278B (zh)
WO (1) WO2023201885A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210120608A1 (en) * 2018-07-02 2021-04-22 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for establishing communication connection and related products
CN112995501A (zh) * 2021-02-05 2021-06-18 歌尔科技有限公司 摄像头的控制方法、装置、电子设备及存储介质
CN114173285A (zh) * 2022-02-11 2022-03-11 荣耀终端有限公司 一种蓝牙回连方法、系统、电子设备、服务器及存储介质
WO2022057156A1 (zh) * 2020-09-21 2022-03-24 闻泰科技(深圳)有限公司 信息共享方法、装置、耳机盒及计算机可读存储介质

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020107485A1 (zh) * 2018-11-30 2020-06-04 华为技术有限公司 一种蓝牙连接方法及设备
CN113225693B (zh) * 2019-04-18 2022-04-15 华为技术有限公司 一种蓝牙连接方法、设备及系统
CN113810887B (zh) * 2020-05-29 2023-07-14 Oppo广东移动通信有限公司 蓝牙协议连接方法、装置、存储介质及相关设备
CN112203179B (zh) * 2020-09-22 2022-10-18 歌尔科技有限公司 Tws耳机及其自动回连方法、装置、计算机存储介质
CN114339696B (zh) * 2020-09-30 2026-02-06 华为技术有限公司 蓝牙通信系统、蓝牙连接方法、电子设备及存储介质
CN114245362B (zh) * 2022-02-25 2022-11-15 荣耀终端有限公司 设备回连方法和蓝牙外设

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210120608A1 (en) * 2018-07-02 2021-04-22 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for establishing communication connection and related products
WO2022057156A1 (zh) * 2020-09-21 2022-03-24 闻泰科技(深圳)有限公司 信息共享方法、装置、耳机盒及计算机可读存储介质
CN112995501A (zh) * 2021-02-05 2021-06-18 歌尔科技有限公司 摄像头的控制方法、装置、电子设备及存储介质
CN114173285A (zh) * 2022-02-11 2022-03-11 荣耀终端有限公司 一种蓝牙回连方法、系统、电子设备、服务器及存储介质

Also Published As

Publication number Publication date
CN114885278B (zh) 2025-04-15
CN114885278A (zh) 2022-08-09

Similar Documents

Publication Publication Date Title
US10820272B2 (en) Connection method and connection device for Bluetooth device
US10067734B2 (en) Changing companion communication device behavior based on status of wearable device
US11243595B2 (en) Method and apparatus for reducing continuous-wakeup delay of bluetooth loudspeaker, and bluetooth loudspeaker
CN111698672A (zh) 无线耳机的音频同步方法及无线耳机
US20190132666A1 (en) Headset Sound Channel Control Method and System, and Related Device
CN106210949A (zh) 一种耳机的模式切换方法以及模式切换装置
KR102613283B1 (ko) 바이노럴 라우드스피커의 지향성을 보상하는 방법
CN106411447B (zh) 播放控制方法、装置及终端
WO2021031290A1 (zh) 一种用于耳机对的翻译方法、装置、耳机对及翻译系统
CN113377312A (zh) 同屏互动方法、装置、计算机设备及计算机可读存储介质
WO2024027315A1 (zh) 音频处理方法、装置、电子设备、存储介质和程序产品
US11694700B2 (en) Method, apparatus and device for processing sound signal
CN106878915A (zh) 播放设备的控制方法、装置及播放设备和移动终端
CN110086941B (zh) 语音播放方法、装置及终端设备
WO2023201885A1 (zh) 耳机的连接方法、装置、耳机及介质
WO2017185602A1 (zh) 一种耳机模式切换方法和电子设备
CN103606373B (zh) 一种音频还原方法、装置和终端设备
CN115550820B (zh) 扬声器控制方法、装置、电子设备及存储介质
CN106331356B (zh) 一种音量控制方法及终端
CN106528037B (zh) 一种音频处理方法及终端
CN115065904B (zh) 音量调节方法、装置、耳机、电子设备及可读存储介质
CN113709506A (zh) 基于云手机的多媒体播放方法、装置、介质及程序产品
CN114827804A (zh) 无线耳机的音量调节方法、装置、无线耳机及存储介质
WO2017185693A1 (zh) 电子设备以及从直连的另一电子设备中复制数据的方法
WO2017000371A1 (zh) 一种调节蓝牙设备输出的方法、装置、系统及存储介质

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

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 18858444

Country of ref document: US

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 21-02-2025)

122 Ep: pct application non-entry in european phase

Ref document number: 22938112

Country of ref document: EP

Kind code of ref document: A1