Headphone connection method, device, headphone and medium
By obtaining the location information of the TWS headset device and adjusting the back connection parameters, the problem of headset attempting back connection is solved, reducing power consumption and bandwidth usage, and avoiding the negative impact on connected devices.
Patent Information
- Application Number
- CN202210431419.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-22
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2042-04-22
AI Technical Summary
In the dual-connection scenario of TWS headsets, the headset attempts to connect devices that are not within the range of the back connection distance, resulting in meaningless back connection attempts, occupying bandwidth and affecting the business of connected devices.
By obtaining the historical location information of the device to be connected and the current location information of the connected device, adjusting the back connection parameters, such as the back connection frequency, number of times and time interval, ensure that the back connection is only performed when the device is within the back connection distance range.
Reduces the power consumption brought by the back-connected devices, saves bandwidth, avoids the impact on the connected device business, and improves the user experience.
Smart Images

Figure CN114885278B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the technical field of smart devices, and more specifically, to a method for connecting an earphone, an apparatus for connecting an earphone, an earphone, and a computer-readable storage medium. Background Art
[0002] With the development of technology, more and more True Wireless Stereo (TWS) headphones support multi-point connection function, bringing users a more convenient connection experience. The more common implementation scheme is dual-device connection, that is, the same pair of TWS headphones can be connected to two main devices at the same time. For example, the same pair of TWS headphones can be connected to two mobile phones at the same time, and the same pair of TWS headphones can be connected to a mobile phone and a computer at the same time.
[0003] However, in actual use, it often happens that the headset is already connected to one of the two devices. At this time, the headset will try to reconnect to the other device. However, if the other device is not within the reconnection distance range, it will cause a meaningless reconnection attempt. At the same time, since the reconnection process occupies more bandwidth, it will also affect the services of the connected device, such as causing the sound of the connected device to freeze. Summary of the invention
[0004] An object of the embodiments of the present disclosure is to provide a new technical solution for connecting headphones.
[0005] According to a first aspect of an embodiment of the present disclosure, a method for reconnecting an earphone is provided, the method comprising:
[0006] Acquire first location information of a first electronic device to be reconnected; wherein the first location information is location information of the first electronic device when the headset and the first electronic device established a communication connection last time;
[0007] Acquiring current location information of a second electronic device with which a communication connection has been established;
[0008] When the distance between the first location information and the current location information is not within a set distance range, adjusting a back-connection parameter for back-connecting to the first electronic device;
[0009] The first electronic device is connected back according to the adjusted connection back parameter.
[0010] Optionally, the method further comprises:
[0011] Acquire the service status between the headset and the second electronic device;
[0012] When the service state is not the audio service state, the step of reconnecting the first electronic device according to the adjusted reconnection parameter is performed.
[0013] Optionally, the method further comprises:
[0014] When the service state is the audio service state, the step of reconnecting the first electronic device according to the adjusted reconnection parameters is suspended, and the step of acquiring the service state between the headset and the second electronic device is continued.
[0015] Optionally, when the distance between the first location information and the current location information is not within a set distance range, adjusting a reconnection parameter for reconnecting to the first electronic device includes:
[0016] When the distance between the first location information and the current location information is not within a set distance range, at least one of a reconnection frequency of the headset connecting back to the first electronic device, a reconnection number of times the headset connects back to the first electronic device, and a reconnection time interval of the headset connecting back to the first electronic device is adjusted.
[0017] According to a second aspect of an embodiment of the present disclosure, a device for connecting an earphone is provided, the device comprising:
[0018] An acquisition module, configured to acquire first location information of a first electronic device to be reconnected; wherein the first location information is location information of the first electronic device when the headset and the first electronic device established a communication connection last time;
[0019] The acquisition module is used to acquire the current location information of the second electronic device with which the communication connection has been established;
[0020] an adjustment module, configured to adjust a back-connection parameter for connecting back to the first electronic device when the distance between the first location information and the current location information is not within a set distance range;
[0021] The back-connection module is used to back-connect the first electronic device according to the adjusted back-connection parameters.
[0022] Optionally, the acquisition module is used to acquire the service status between the headset and the second electronic device;
[0023] The reconnection module is used to reconnect the first electronic device according to the adjusted reconnection parameters when the service state is not the audio service state.
[0024] Optionally, the reconnection module is further used to, when the service state is the audio service state, suspend reconnecting the first electronic device according to the adjusted reconnection parameters, and continue to obtain the service state between the headset and the second electronic device by the acquisition module.
[0025] Optionally, the adjustment module is specifically used to: when the distance between the first location information and the current location information is not within a set distance range, adjust at least one of the reconnection frequency of the headset connecting back to the first electronic device, the number of reconnections of the headset connecting back to the first electronic device, and the reconnection time interval of the headset connecting back to the first electronic device.
[0026] According to a third aspect of an embodiment of the present disclosure, there is provided an earphone, the earphone comprising:
[0027] Memory for storing executable computer instructions;
[0028] The processor is used to execute the headset connection method according to the first aspect above under the control of the executable computer instructions.
[0029] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which computer instructions are stored. When the computer instructions are executed by a processor, the method for connecting headphones described in the first aspect above is executed.
[0030] One beneficial effect of the disclosed embodiment is that for a dual connection scenario of the headset, the headset will first obtain the current location information of the second electronic device with which a communication connection has been established, and the first location information of the first electronic device to be reconnected, the first location information being the location information of the first electronic device when a communication connection was established with the first electronic device last time, and when the distance between the first location information and the current location information is not within a set distance range, the reconnection parameters of the reconnection to the first electronic device are adjusted, and the reconnection to the first electronic device is based on the adjusted reconnection 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 with which communication has been established, thereby reducing the power consumption caused by reconnecting to the first electronic device, saving bandwidth, and avoiding affecting the services of connected devices.
[0031] Other features and advantages of the present specification will become apparent from the following detailed description of exemplary embodiments of the present specification with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the specification and, together with the description, serve to explain the principles of the specification.
[0033] Figure 1 is a schematic diagram of the hardware configuration of the headset according to an embodiment of the present disclosure;
[0034] Figure 2 is a flowchart of a method for connecting headphones according to an embodiment of the present disclosure;
[0035] Figure 3 is a schematic diagram of a method for connecting headphones according to an example of the present disclosure;
[0036] Figure 4 is a principle block diagram of a connection device for headphones according to an embodiment of the present disclosure;
[0037] Figure 5 It is a principle block diagram of a headset according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0038] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the embodiments of the present disclosure.
[0039] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0040] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0041] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0042] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0043] <Hardware Configuration>
[0044] Figure 1 1 is a block diagram of the hardware configuration of the earphone 1000 according to an embodiment of the present disclosure, and the earphone 1000 may be a TWS earphone.
[0045] In one embodiment, Figure 1 As shown, 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.
[0046] Among them, the processor 1100 may include but is not limited to a central processing unit CPU, a microprocessor MCU, etc. The memory 1200 includes, for example, a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 1300 includes, for example, various bus interfaces, such as a serial bus interface (including a USB interface), a parallel bus interface, etc. The communication device 1400 is, for example, capable of wired or wireless communication. The display device 1500 is, for example, a liquid crystal display, an LED display, a touch display, etc. The input device 1600 includes, for example, a touch screen, a keyboard, a handle, etc. The headset 1000 can output audio information through a speaker 1700 and can collect audio information through a microphone 1800.
[0047] It should be understood by those skilled in the art that although Figure 1 Multiple devices of the headset 1000 are shown in the figure, but the headset 1000 of the embodiment of this specification may only involve some of the devices, or may also include other devices, which is not limited here.
[0048] In this embodiment, the memory 1200 of the headset 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 headset connection method according to any embodiment. The technician can design instructions according to the scheme disclosed in this specification. How the instructions control the processor to operate is well known in the art, so it will not be described in detail here.
[0049] In the above description, the technician can design instructions according to the solution provided by the present disclosure. How instructions control the processor to operate is well known in the art, so it will not be described in detail here.
[0050] Figure 1 The headphones shown are illustrative only and are in no way intended to limit the disclosure, its application, or uses.
[0051] <Method Example>
[0052] Figure 2 A method for connecting an earphone according to an embodiment of the present disclosure is shown. The method for connecting an earphone according to an embodiment of the present disclosure can be performed as follows. Figure 1 The headset 1000 is shown as an implementation.
[0053] like Figure 2 As shown, the headset connection method in this embodiment may include the following steps S2100 to S2400:
[0054] Step S2100: Acquire first location information of a first electronic device to be reconnected.
[0055] In this embodiment, the headset can achieve dual-device connection, that is, the same pair of headsets can be connected to two devices at the same time. For example, the same pair of headsets can be connected to two mobile phones at the same time; for example, the same pair of headsets can be connected to a mobile phone and a computer at the same time. It can be understood that when a pairing relationship has been established between the headset and the two devices, the headset will automatically connect to the two devices, and the operation of the headset automatically connecting to the device can be called a back-connection operation.
[0056] The first location information is location information of the first electronic device when the headset and the first electronic device established a communication connection last time.
[0057] In a specific implementation, the first electronic device is one of the devices to which the headset is about to reconnect. Here, when the headset reconnects to the first electronic device for the last time, that is, when the headset establishes a communication connection with the first electronic device for the last time, the first electronic device will synchronize its own location information, that is, the first location information Loc1 to the headset, and the headset will store the first location information Loc1 in the storage module of the headset for reading.
[0058] After executing step S2100 to obtain the first location information of the first electronic device to be reconnected, proceed to:
[0059] Step S2200: Acquire current location information of a second electronic device with which a communication connection has been established.
[0060] The second electronic device is another device that has established a communication connection with the headset. Here, the positioning device of the second electronic device will obtain its own current location information Loc2 and synchronize 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.
[0061] After executing step S2200 to obtain the current location information of the second electronic device with which the communication connection has been established, proceed to:
[0062] Step S2300: When the distance between the first location information and the current location information is not within a set distance range, adjust a connection parameter for connecting back to the first electronic device.
[0063] The reconnection parameters for reconnecting to the first electronic device include: a reconnection frequency for the headset to reconnect to the first electronic device, a reconnection number of times the headset to reconnect to the first electronic device, and a reconnection time interval for the headset to reconnect to the first electronic device.
[0064] The set distance range may be a value set according to actual application scenarios and actual needs, and the set distance range may be within 1000 meters or within several hundred meters.
[0065] In specific implementation, as described above, 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 the headset. The current location information Loc2 can reflect the current location information of the wearer of the headset. In addition, the first electronic device to which the headset is about to reconnect will also synchronize its own first location information Loc1 when the last communication connection was established with the headset to the headset. In this way, the headset can obtain the first location information Loc1 of the first electronic device and the current location information Loc2 of the second electronic device, and when the distance between the first location information Loc1 and the current location information Loc2 is within a set distance range, for example, within 1 kilometer, it can be considered that the first electronic device is within the reconnection distance range. Conversely, 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, it is considered that the first electronic device is not within the reconnection distance range.
[0066] It can be understood that when the distance between the first location information of the first electronic device and the current location information of the second electronic device is within the set distance range, that is, when the first electronic device is within the reconnection distance range, the reconnection parameters for reconnecting to the first electronic device will not be adjusted, that is, the reconnection to the first electronic device will not be based on the current number of reconnections, the current reconnection frequency, and the current reconnection time interval.
[0067] In this embodiment, in this step S2300, when the distance between the first location information and the current location information is not within the set distance range, adjusting the reconnection parameters for connecting back to the first electronic device may further include: when the distance between the first location information and the current location information is not within the set distance range, adjusting at least one of the reconnection frequency of the headset connecting back to the first electronic device, the number of reconnections of the headset connecting back to the first electronic device, and the reconnection time interval of the headset connecting back to the first electronic device.
[0068] The reconnection time interval is the time interval between two reconnection requests initiated by the headset.
[0069] In a specific implementation, when the distance between the first location information and the current location information is not within the set distance range, the headset will adjust the number of reconnections to the first electronic device, or adjust the reconnection frequency to the first electronic device, or adjust the reconnection time interval to the first electronic device.
[0070] When the distance between the first location information and the current location information is not within the set distance range in the above step S2300, after adjusting the reconnection parameters for reconnecting to the first electronic device, proceed to:
[0071] Step S2400: reconnecting to the first electronic device according to the adjusted reconnection parameters.
[0072] In a specific implementation, after adjusting the number of reconnections between the headset and the first electronic device, or adjusting the reconnection frequency between the headset and the first electronic device, or adjusting the reconnection time interval between the headset and the first electronic device, the headset can reconnect to the first electronic device according to the adjusted number of reconnections, or the adjusted reconnection frequency, or the adjusted reconnection time interval. It is understandable that regardless of whether the reconnection parameter is adjusted, the time when the headset first initiates a reconnection request to the first electronic device does not change.
[0073] According to an embodiment of the present application, for a dual-connection scenario of the headset, the headset will first obtain the current location information of the second electronic device with which a communication connection has been established, and the first location information of the first electronic device to be reconnected, the first location information being the location information of the first electronic device when a communication connection was established with the first electronic device the last time, and when the distance between the first location information and the current location information is not within a set distance range, adjust the reconnection parameters of the first electronic device, and reconnect the first electronic device based on the adjusted reconnection 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 with which communication has been established, thereby reducing the power consumption caused by reconnecting to the first electronic device, saving bandwidth, and avoiding affecting the services of connected devices.
[0074] In one embodiment, the headset connection method of the embodiment of the present disclosure further includes the following steps S4100 to S4300:
[0075] Step S4100: Acquire the service status between the headset and the second electronic device.
[0076] The service status includes an audio service status and a non-audio service status. The audio service status includes, but is not limited to, the headset and the second electronic device being in a call service, the headset and the second electronic device being in a game mode, and the headset and the second electronic device being in an audio low-latency mode.
[0077] Step S4200: When the service state is not the audio service state, the step of reconnecting the first electronic device according to the adjusted reconnection parameter is executed.
[0078] In this embodiment, when the service state between the headset and the second electronic device is not an audio service state, it indicates that reconnecting to the first electronic device at this time will not affect the second electronic device. At this time, the above step S2400 is executed to reconnect to the first electronic device according to the adjusted reconnection parameters, or if the reconnection parameters are not adjusted, reconnect to the first electronic device according to the original reconnection parameters.
[0079] Step S4300, when the service state is the audio service state, suspending the step of reconnecting the first electronic device according to the adjusted reconnection parameters, and continuing to execute the step of acquiring the service state between the headset and the second electronic device.
[0080] In this embodiment, when the service status between the headset and the second electronic device is an audio service status, it indicates that reconnecting to the first electronic device at this time will affect the second electronic device. Here, it is necessary to stop the reconnection operation and continue to obtain the service status between the headset and the second electronic device, so as to perform the reconnection operation when the service status is not an audio service status.
[0081] According to this embodiment, it is possible to adjust the timing of the headset reconnecting to the first electronic device according to the service status between the headset and another device with which a communication connection has been established, thereby avoiding the impact of the reconnection on the current service of the headset and improving the user experience.
[0082] <Example>
[0083] Next, an example of a method for connecting headphones is shown. In this example, Figure 3 As shown, the connection method of the headset includes:
[0084] Step S301: the second electronic device that has established a communication connection with the headset synchronizes its current location information to the headset.
[0085] Step S302: The headset reads the last synchronized location information of the first electronic device to be reconnected as the first location information.
[0086] Step S303, calculating whether the absolute value of the difference between the first position information and the current position information is greater than a preset distance threshold, if the absolute value of the difference is greater than the preset distance threshold, executing step S304, otherwise, executing step S305.
[0087] In 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 a target reconnection parameter, and then proceeds to step S306.
[0088] In step S305, the headset uses the original reconnection parameters as target reconnection parameters, and continues to execute step S306.
[0089] Step S306, the headset obtains the service status between the headset and the second electronic device, and determines whether the service status is an audio service status. If yes, continue to step S306, otherwise, execute step S307.
[0090] Step S307: reconnect to the first electronic device according to the target reconnection parameter.
[0091] Step S308: The headset determines whether the connection back to the first electronic device is successful. If yes, the process ends; if not, the process continues to step S307.
[0092] According to this example, based on the current business scenario and location information of the user's headset, the method of multi-device connection is optimized to reduce meaningless reconnection attempts when another device is out of connection range, reduce the power consumption of the headset, and avoid the impact of reconnection on the current business of the headset, thereby improving the user experience.
[0093] <Device Example>
[0094] Figure 4 FIG. 1 is a schematic diagram of a structure of a connection device for headphones according to an embodiment. Figure 4 As shown, the headset connection device 400 includes an acquisition module 410 , an adjustment module 420 and a back-connection module 430 .
[0095] The acquisition module 410 is used to acquire the first location information of the first electronic device to be reconnected; wherein the first location information is the location information of the first electronic device when the headset and the first electronic device established a communication connection last time.
[0096] The acquisition module 410 is used to acquire the current location information of the second electronic device with which the communication connection has been established.
[0097] The adjustment module 420 is configured to adjust a back-connection parameter for connecting back to the first electronic device when the distance between the first location information and the current location information is not within a set distance range.
[0098] The reconnection module 430 is configured to reconnect the first electronic device according to the adjusted reconnection parameters.
[0099] In one embodiment, the acquisition module 410 is used to acquire the service status between the headset and the second electronic device.
[0100] The reconnection module 430 is configured to reconnect the first electronic device according to the adjusted reconnection parameters when the service state is not the audio service state.
[0101] In one embodiment, the reconnection module 430 is used to suspend reconnecting the first electronic device according to the adjusted reconnection parameters when the service state is the audio service state, and continue to obtain the service state between the headset and the second electronic device by the acquisition module 410.
[0102] In one embodiment, the adjustment module 420 is specifically used to adjust at least one of the reconnection frequency of the headset connecting back to the first electronic device, the number of reconnections of the headset connecting back to the first electronic device, and the reconnection time interval of the headset connecting back to the first electronic device when the distance between the first location information and the current location information is not within a set distance range.
[0103] According to an embodiment of the present disclosure, for a dual-connection scenario of a headset, the headset will first obtain the current location information of the second electronic device with which a communication connection has been established, and the first location information of the first electronic device to be reconnected, the first location information being the location information of the first electronic device when a communication connection was established with the first electronic device the last time, and when the distance between the first location information and the current location information is not within a set distance range, adjust the reconnection parameters of the first electronic device, and reconnect the first electronic device based on the adjusted reconnection 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 with which communication has been established, thereby reducing the power consumption caused by reconnecting to the first electronic device, saving bandwidth, and avoiding affecting the services of connected devices.
[0104] <Equipment Embodiment>
[0105] Figure 5 FIG. 1 is a schematic diagram of the hardware structure of a headset according to an embodiment. Figure 5 As shown, the headset 500 includes a processor 510 and a memory 520 .
[0106] The memory 520 may be used to store executable computer instructions.
[0107] The processor 510 can be used to execute the headset connection method described in the embodiment of the method of the present disclosure according to the control of the executable computer instructions.
[0108] The earphone 500 may be Figure 1 The earphone 1000 shown may also be a device with other hardware structures, which is not limited here.
[0109] In another embodiment, the earphone 500 may include the above connecting device 400 .
[0110] In one embodiment, each module of the above connection device 400 can be implemented by the processor 510 running computer instructions stored in the memory 520 .
[0111] According to an embodiment of the present disclosure, for a dual connection scenario of the headset, the headset will first obtain the first location information of the first electronic device to be reconnected, the first location information being the location information of the first electronic device when a communication connection was established with the first electronic device last time, and when the first location information is not within the reconnection distance range, adjust the reconnection parameters of the first electronic device, and reconnect the first electronic device based on the adjusted reconnection parameters. Since the connection distance range is associated with the current location information of the second electronic device with which the headset has established a communication connection, 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 with which communication has been established, thereby reducing the power consumption caused by reconnecting to the first electronic device, saving bandwidth, and avoiding affecting the services of connected devices.
[0112] <Computer Readable Storage Medium>
[0113] The embodiment of the present disclosure further provides a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed by a processor, the earphone connection method provided by the embodiment of the present disclosure is executed.
[0114] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0115] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0116] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0117] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0118] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0119] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0120] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0121] The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of an instruction, and the module, a program segment or a part of an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0122] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present disclosure is defined by the appended claims.
Claims
1. A method for connecting an earphone, characterized in that: The headset can realize dual-device connection, and the method includes: Acquire first location information of a first electronic device to be reconnected; wherein the first location information is location information of the first electronic device when the headset and the first electronic device established a communication connection last time; Acquire current location information of a second electronic device with which a communication connection has been established; wherein the current location information is used to reflect the current location information of the wearer of the headset; When the distance between the first location information and the current location information is not within a set distance range, adjusting a back-connection parameter for back-connecting to the first electronic device; The first electronic device is connected back according to the adjusted connection back parameter.
2. The method according to claim 1, characterized in that The method further comprises: Acquire the service status between the headset and the second electronic device; When the service state is not the audio service state, the step of reconnecting the first electronic device according to the adjusted reconnection parameter is performed.
3. The method according to claim 2, characterized in that The method further comprises: When the service state is the audio service state, the step of reconnecting the first electronic device according to the adjusted reconnection parameters is suspended, and the step of acquiring the service state between the headset and the second electronic device is continued.
4. The method according to claim 1, characterized in that: When the distance between the first location information and the current location information is not within a set distance range, adjusting the reconnection parameter for reconnecting to the first electronic device includes: When the distance between the first location information and the current location information is not within a set distance range, at least one of a reconnection frequency of the headset connecting back to the first electronic device, a reconnection number of times the headset connects back to the first electronic device, and a reconnection time interval of the headset connecting back to the first electronic device is adjusted.
5. A headset connection device, characterized in that: The headset can realize dual-device connection, and the device includes: An acquisition module, configured to acquire first location information of a first electronic device to be reconnected; wherein the first location information is location information of the first electronic device when the headset and the first electronic device established a communication connection last time; The acquisition module is used to acquire the current location information of the second electronic device with which the communication connection has been established; wherein the current location information is used to reflect the current location information of the wearer of the headset; an adjustment module, configured to adjust a back-connection parameter for connecting back to the first electronic device when the distance between the first location information and the current location information is not within a set distance range; The back-connection module is used to back-connect the first electronic device according to the adjusted back-connection parameters.
6. The device according to claim 5, characterized in that The acquisition module is used to acquire the service status between the headset and the second electronic device; The reconnection module is used to reconnect the first electronic device according to the adjusted reconnection parameters when the service state is not the audio service state.
7. The device according to claim 6, characterized in that The reconnection module is further configured to, when the service state is the audio service state, suspend reconnecting the first electronic device according to the adjusted reconnection parameters, and continue to obtain the service state between the headset and the second electronic device by the acquisition module.
8. The device according to claim 5, characterized in that The adjustment module is specifically used for: When the distance between the first location information and the current location information is not within a set distance range, at least one of a reconnection frequency of the headset connecting back to the first electronic device, a reconnection number of times the headset connects back to the first electronic device, and a reconnection time interval of the headset connecting back to the first electronic device is adjusted.
9. A headset, characterized in that: The earphone comprises: Memory for storing executable computer instructions; A processor is used to execute the earphone connection method according to any one of claims 1 to 4 under the control of the executable computer instructions.
10. A computer-readable storage medium having computer instructions stored thereon, wherein the computer instructions are executed by a processor to execute the earphone connection method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Bluetooth reconnection method and system, electronic equipment, server and storage medium
CN114173285A
Equipment reconnection method and Bluetooth peripheral
CN114245362A