Earphone connection equipment switching method and device, storage medium, earphone and vehicle
By incorporating a sensing module and touch controls on the device, automatic device switching for wireless headphones is achieved, solving the problem of cumbersome operation in existing technologies and improving user experience and the convenience of device switching.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2026-03-13
AI Technical Summary
Existing wireless headphones require users to disconnect and reconnect on the device when switching between connected devices, which is inconvenient.
A sensing module is installed on the first device. When the earphone is close, a communication connection is automatically established. By obtaining the device list and determining the target device based on touch data or swipe direction, a switching connection command is generated to realize the automatic switching between the earphone and the target device.
It simplifies the headphone device switching process, improves the user experience, and makes it easy to switch, especially in scenarios where manual operation is inconvenient, such as while driving, thus ensuring user convenience.
Smart Images

Figure CN121665373A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of headphone interaction, and in particular to a headphone connection device switching method, apparatus, storage medium, headphone, and vehicle. Background Technology
[0002] Wireless headphones are devices that use wireless transmission technologies such as Bluetooth to transmit and play audio data. Wireless headphones eliminate the limitations of connecting wires between headphones and devices and are now widely used.
[0003] Currently, headphones can only connect to one device to receive and play audio data from that device. When users need to switch the device the headphones are connected to, they need to disconnect the currently connected device on the device and then establish a connection with the headphones on the target device to switch the connected devices, which is rather inconvenient. Summary of the Invention
[0004] This application provides a method, apparatus, storage medium, headphones, and vehicle for switching headphone connection devices, which enables more convenient switching of headphone connection devices and improves user experience.
[0005] In a first aspect, embodiments of this application provide a method for switching headphone connection devices, wherein the first device includes a sensing module for sensing headphones, and the method includes the following steps:
[0006] When the sensing module senses the earphone, a communication connection is established between the earphone and the first device;
[0007] Obtain the device list of the first device; the device list includes at least one second device that is communicatively connected to the first device.
[0008] In response to a connection switching command, the device connected to the headphones is switched to the target second device in the device list.
[0009] Optionally, each second device in the device list has a corresponding connection order;
[0010] Switching the device connected to the headphones to the target second device in the device list specifically includes:
[0011] Acquire the touch data of the headphones;
[0012] The target second device is determined based on the touch data and the connection sequence;
[0013] A switching connection command is generated based on the target second device.
[0014] In this embodiment, the user only needs to perform a touch operation on the earphone. Based on the touch data and connection order, the target second device is determined and a switching connection command is automatically generated, thereby automatically switching the device connected to the earphone to the target second device in the device list. The operation is simple and can improve the user experience.
[0015] Optionally, the touch data is data generated by performing a target touch operation on the earphone, and determining the target second device based on the touch data and the connection order includes:
[0016] The second device located after the connection sequence of the first device is designated as the target second device;
[0017] Alternatively, the second device that precedes the first device in the connection sequence can be designated as the target second device.
[0018] In this embodiment, the user only needs to perform a target touch operation on the headphones to automatically switch the device transmitting audio data from the original first device to a second device that is located before or after the first device in the connection sequence, thereby realizing automatic switching of the headphone connection device among multiple devices and improving the user's headphone experience.
[0019] Optionally, the touch data includes the sliding direction of the swipe operation; determining the target second device based on the touch data and the connection sequence includes:
[0020] Obtain the correspondence between the sliding direction, the connection order of the first device, and the connection order of the target second device, and select the corresponding second device as the target second device according to the correspondence.
[0021] In this embodiment, by obtaining the correspondence between the sliding direction, the connection order of the first device, and the connection order of the target second device, the target second device is determined based on the sliding direction of the user's sliding operation on the touch module and the connection order of the first device. The user can switch the audio transmission device of the headphones to different devices by sliding in different directions on the headphones, thereby meeting the user's connection needs for different devices and improving the user experience.
[0022] Optionally, the earphone includes a battery and a magnetic charging interface male socket for charging the battery, and the first device and the at least one second device include a magnetic charging interface female socket corresponding to the magnetic charging interface male socket;
[0023] Alternatively, the earphones include a battery and a magnetic charging interface female for charging the battery, and the first device and the at least one second device include a magnetic charging interface male that is connected to the magnetic charging interface female.
[0024] In this embodiment, the earphones can be magnetically attached to a first or second device via a magnetic charging interface. When the user does not need to use the earphones, they can be stored by attaching them to the first or second device, thus preventing the earphones from being lost. At the same time, the magnetic charging interface makes it easier to connect male and female connectors. Attaching the earphones to the first or second device makes them less likely to be lost while charging the earphone batteries, making the earphones convenient to use.
[0025] Optionally, the earphones include a battery and an earphone charging terminal for charging the battery;
[0026] The earphone charging terminal is electrically connected to the magnetic charging interface male socket of the earphone case, and the earphone case includes a receiving space for accommodating the earphone; the first device and the at least one second device include a magnetic charging interface female socket corresponding to the magnetic charging interface male socket;
[0027] Alternatively, the earphone charging terminal is electrically connected to the magnetic charging interface female of the earphone case, the earphone case including a receiving space for accommodating the earphone; the first device and the at least one second device include a magnetic charging interface male of the magnetic charging interface female.
[0028] In this embodiment, when the earphones are not in use, they can be stored in the earphone case to prevent them from being lost. The earphone case can be attached to a first or second device via a magnetic charging interface. When not in use, the earphone case can be attached to the first or second device via the magnetic charging interface. This not only makes them less likely to be lost, but also charges the earphone battery, thereby improving the user experience of using the earphones.
[0029] Secondly, embodiments of this application provide a headphone connection device switching device, the first device including a sensing module for sensing headphones, the device including:
[0030] A communication connection establishment module is used to establish a communication connection between the earphone and the first device when the sensing module senses the earphone;
[0031] A device list acquisition module is used to acquire a device list of the first device; the device list includes at least one second device that is communicatively connected to the first device.
[0032] A connection switching module is used to switch the device connected to the headphones to a target second device in the device list in response to a connection switching command.
[0033] Thirdly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the headphone connection device switching method as described in any of the above claims.
[0034] Fourthly, embodiments of this application provide an electronic device, including a sensing module for sensing headphones, a memory, a processor, and a computer program stored in the memory and executable by the processor;
[0035] When the processor executes the computer program, it implements the steps of the headphone connection device switching method as described in any of the above.
[0036] Fifthly, embodiments of this application provide a vehicle including headphones, a first device, and at least one second device; the first device is the aforementioned electronic device; the first device and the at least one second device are communicatively connected.
[0037] In this embodiment, a sensing module for sensing headphones is provided on the first device. When the sensing module of the first device senses the headphones, a communication connection is established between the headphones and the first device. The user only needs to move the headphones within the sensing range of the first device to automatically establish a communication connection between the headphones and the first device. By obtaining a device list of at least one second device connected to the first device, the device connected to the headphones can be switched to the target second device in the device list by a switching connection command. Therefore, it is not necessary to perform headphone connection operations on the second device, realizing a pairing-free connection between the headphones and the second device. This application can easily and conveniently realize the switching of headphone connection devices, improving the user's headphone experience.
[0038] To better understand and implement this invention, the following detailed description is provided in conjunction with the accompanying drawings. Attached Figure Description
[0039] Figure 1 This is a schematic diagram of an application scenario in one embodiment of the present invention;
[0040] Figure 2 This is a flowchart illustrating a method for switching headphone connection devices according to an embodiment of the present invention;
[0041] Figure 3 This is a flowchart of a headphone connection device switching method according to another embodiment of the present invention;
[0042] Figure 4 This is a schematic diagram of a headphone connection device switching device according to one embodiment of the present invention;
[0043] Figure 5 This is a schematic diagram of an earphone according to one embodiment of the present invention;
[0044] Figure 6 This is a schematic diagram of a vehicle according to one embodiment of the present invention. Detailed Implementation
[0045] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0046] It should be understood that the described embodiments are merely some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of the embodiments of this application.
[0047] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the embodiments of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0048] In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims. In the description of this application, it should be understood that the terms "first," "second," "third," etc., are used only to distinguish similar objects and are not necessarily used to describe a specific order or sequence, nor should they be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0049] Furthermore, in the description of this application, unless otherwise stated, "several" refers to two or more. "And / or" describes the correspondence between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0050] The headphone connection device switching method of this application embodiment can be used to switch the headphone connection device.
[0051] For wired headphones, the device that the headphones connect to via the cable is the device that the headphones receive and play audio data. When you need to switch devices, simply connect the cable to the target device to switch the devices the headphones are connected to.
[0052] For wireless headphones that connect to devices via wireless communication technology, such as Bluetooth headphones, Bluetooth headphones are wireless audio devices that connect to audio source devices such as mobile phones and tablets via Bluetooth technology, allowing users to wirelessly listen to music, answer calls, or make voice calls. However, switching connected devices with wireless headphones requires disconnecting from the currently connected device and then reconnecting to the headphones on the target device, which is relatively inconvenient.
[0053] Therefore, to address the aforementioned issues, this application embodiment provides a sensing module for sensing headphones on a first device. When the sensing module of the first device senses the headphones, a communication connection is established between the headphones and the first device. The user only needs to move the headphones within the sensing range of the first device to automatically establish a communication connection between the headphones and the first device. By obtaining a device list of at least one second device connected to the first device, a connection switching command can be used to switch the device connected to the headphones to the target second device in the device list. This eliminates the need to perform headphone connection operations on the second device, achieving a pairing-free connection between the headphones and the second device. This application can easily and conveniently switch the headphone connection device, improving the user's headphone experience.
[0054] Please see Figure 1 This is a schematic diagram of an application scenario in one embodiment of the present application. The application scenario includes an earphone 110, a first device 210 and at least one second device 220; the first device 210 is communicatively connected to at least one second device 220.
[0055] The first device 210 and at least one second device 220 can communicate with each other via Bluetooth, network or other wireless communication methods.
[0056] The first device 210 and the second device 220 can be a television, a computer, a mobile terminal, or other devices with audio output capabilities.
[0057] The first device 210 includes a sensing module for sensing the earphone 110. When the earphone 110 enters the sensing range of the sensing module, the sensing module senses the earphone 110, and the first device 210 establishes a communication connection with the earphone 110. The earphone 110 communicates with the first device 210 via Bluetooth, network, or other wireless communication methods.
[0058] After the headset 110 establishes a communication connection with the first device 210, the headset 110 can receive and play audio data from the first device 210. When the headset 110 includes an audio acquisition module, the headset 110 can also send the audio data acquired by the audio acquisition module to the first device 210.
[0059] Please see Figure 2 The headphone connection device switching method of this application embodiment includes the following steps:
[0060] S110: When the sensing module senses the earphone, a communication connection is established between the earphone and the first device;
[0061] The sensing module can be a thermal infrared sensing module, a near-field communication module, or other modules that can be used to sense whether the earphone is close to the first device.
[0062] In this embodiment, the sensing module can be a first near-field communication (NFC) module, and the earphone can include a second NFC module corresponding to the first NFC module. The NFC module is used to realize short-range wireless communication between the two devices. In this embodiment, the first and second NFC modules can be NFC chips or NFC tags.
[0063] When the first near-field communication module senses the second near-field communication module, that is, when it determines that the earphone is within the target range of the first device, a communication connection is established between the earphone and the first device.
[0064] When the headset is connected to another device, you can first disconnect the headset from that device and then establish a communication connection between the headset and the first device.
[0065] S120: Obtain the device list of the first device; the device list includes at least one second device that is communicatively connected to the first device;
[0066] The second device in the device list is a device that has established a communication connection with the first device in advance. The first device and the second device can communicate with each other and exchange data; or, the first device can be the master device and the second device can be the slave device. The first device can send control commands to the second device to control the second device.
[0067] S130: In response to the connection switching command, the device connected to the headphones is switched to the target second device in the device list.
[0068] The switch connection command is used to switch the device to which the headphones are connected. After switching the device to which the headphones are connected to the target second device, the headphones can be used to receive and play audio data from the target second device.
[0069] In this embodiment, a sensing module for sensing headphones is provided on the first device. When the sensing module of the first device senses the headphones, a communication connection is established between the headphones and the first device. The user only needs to move the headphones within the sensing range of the first device to automatically establish a communication connection between the headphones and the first device. By obtaining a device list of at least one second device connected to the first device, the device connected to the headphones can be switched to the target second device in the device list by a switching connection command. Therefore, it is not necessary to perform headphone connection operations on the second device, realizing a pairing-free connection between the headphones and the second device. This application can easily and conveniently realize the switching of headphone connection devices, improving the user's headphone experience.
[0070] In step S110, establishing a communication connection between the headset and the first device can be achieved by enabling the headset's pairing function, having the first device search for the headset, and selecting the headset to be paired from the list of found devices, thereby establishing a communication connection between the headset and the first device.
[0071] Alternatively, the device information of the first device can be obtained, and a communication connection between the headset and the first device can be established based on the device information.
[0072] In one embodiment, the first near-field communication module stores identification information of a first device, and the second near-field communication module stores identification information of the headset. The identification information may include device information of the headset / device, communication address, and other data that can be used to establish a communication connection.
[0073] The earphone and the first device can exchange their respective identification information through the first near-field communication module and the second near-field communication module, thereby automatically establishing a communication connection between the earphone and the first device based on the identification information of the first device and the earphone.
[0074] In this embodiment, the user only needs to move the earphone to the sensing range of the sensing module of the first device. The first device and the earphone automatically exchange their respective identification information through the first near-field communication module and the second near-field communication module, and then automatically establish a communication connection between the earphone and the first device based on the identification information. The operation is simple and the connection between the earphone and the first device is highly efficient.
[0075] In step S120, the device list may include identification information of at least one second device that is communicatively connected to the first device;
[0076] Optionally, the device list may also include identification information of the first device. When the device connected to the headphones is switched to the target second device, it may also include: in response to the first device switching connection command, switching the device connected to the headphones to the first device.
[0077] The first device switching connection instruction may include the identification information of the first device. The first device switching connection instruction is used to switch the device connected to the headphones to the first device.
[0078] In this embodiment, users can switch the device connected to the headphones to the first or second device in the device list as needed, thereby meeting the user's headphone connection needs in different scenarios and improving the user experience.
[0079] In step S130, the connection switching instruction may include the identification information of the target second device to be connected. After receiving the connection switching instruction, the device connected to the headset is switched to the target second device.
[0080] The connection switching command can be a control command input by the user to the first device. Alternatively, the connection switching command can also be a command generated in response to a target operation performed by the user on the headphones. The target operation can be set according to the user's actual application; for example, in this embodiment, the target operation can be set to touch or press.
[0081] In one embodiment, each second device in the device list has a corresponding connection order; the connection order is used to determine the connection priority of at least one second device, and the connection order can be preset by the user, wherein the higher the connection priority, the earlier the device is connected.
[0082] like Figure 3 As shown, switching the device connected to the headphones to the target second device in the device list specifically includes:
[0083] S131: Obtain the touch data of the earphone;
[0084] S132: Determine the target second device based on the touch data and the connection sequence;
[0085] S133: Generate a switching connection command based on the target second device.
[0086] Touch data can be data generated by a user's touch operation on the touch area of the headphones. The touch area can be located on a section of the headphone shell, and includes one or more touch sensors, within which the user can perform touch operations.
[0087] Touch data can include information such as the type of touch operation, the location of the touch point, and the number of touch points, which can be obtained by reading the detection data from the touch sensor. Types of touch operations can include taps, long presses, and swipes.
[0088] When determining the target second device, the corresponding target second device can be determined according to the correspondence between the touch operation and the connection order of the target second device to be selected. The correspondence between the touch operation and the connection order of the target second device to be selected can be preset by the user. For example, a touch operation can select the second device after the connection order of the first device, or a touch operation can select the second device before the connection order of the first device, etc., and then the target second device for switching the connection can be determined according to the touch data and the connection order.
[0089] In this embodiment, the user only needs to perform a touch operation on the earphone. Based on the touch data and connection order, the target second device is determined and a switching connection command is automatically generated, thereby automatically switching the device connected to the earphone to the target second device in the device list. The operation is simple and can improve the user experience.
[0090] In one embodiment, the target touch data is data generated by performing a target touch operation on the earphones, and determining the target second device based on the touch data and the connection order includes:
[0091] The second device located after the connection sequence of the first device is designated as the target second device;
[0092] Alternatively, the second device that precedes the first device in the connection sequence can be designated as the target second device.
[0093] The target touch operation can be a touch operation preset by the user. Optionally, the target touch operation is a tap; or, the target touch operation is a press; or, the target touch operation is a double tap.
[0094] When determining the target second device, the Nth second device located before or after the connection sequence of the first device can be used as the target second device, where N is a natural number greater than 0, and N can be set according to the user's actual application needs.
[0095] In this embodiment, the user only needs to perform a target touch operation on the touch module to automatically switch the device transmitting audio data from the original first device to a second device that is located before or after the first device in the connection sequence, thereby realizing automatic switching of the headphone connection device among multiple devices and improving the user's headphone experience.
[0096] In another embodiment, the touch operation can also be a swipe operation, and the touch data includes the swipe direction; determining the target second device based on the touch data and the connection order includes:
[0097] Obtain the correspondence between the sliding direction, the connection order of the first device, and the connection order of the target second device, and select the corresponding second device as the target second device according to the correspondence.
[0098] The correspondence is used to determine the correspondence between the sliding direction, the connection order of the first device, and the connection order of the target second device, so as to determine the corresponding second device based on the sliding direction, the connection order of the first device, and the correspondence.
[0099] The swipe direction refers to the direction in which the user moves the touch module. The swipe direction can be left, right, up, or down, etc.
[0100] The correspondence between the connection order of the first device and the connection order of the target second device differs depending on the sliding direction. For example, when sliding to the right, the Nth second device after determining the connection order of the first device is the target second device; when sliding to the left, the Nth second device before determining the connection order of the first device is the target second device. Alternatively, when sliding to the left, the Nth second device after determining the connection order of the first device is the target second device; when sliding to the right, the Nth second device before determining the connection order of the first device is the target second device, and so on. For sliding upwards or downwards, the Nth second device before or after the connection order of the first device can also be selected as the target second device. Here, N is a natural number greater than 0, and N can be set according to the user's actual application needs.
[0101] In this embodiment, by obtaining the correspondence between the sliding direction, the connection order of the first device, and the connection order of the target second device, the target second device is determined based on the sliding direction of the user's sliding operation on the touch module and the connection order of the first device. The user can switch the audio transmission device of the headphones to different devices by sliding operations in different directions on the touch module, thereby meeting the user's connection needs for different devices and improving the user experience.
[0102] In one embodiment, the headphones may further include a charging port and a battery. The charging port can be connected to a power source via a charging cable to charge the headphone's battery, or it may be a wireless charging port. The electrical energy stored in the battery is used to power the headphones for daily use.
[0103] Specifically, in this embodiment of the application, the earphone includes a battery and a magnetic charging interface male socket for charging the battery, and the first device and the at least one second device include a magnetic charging interface female socket corresponding to the magnetic charging interface male socket;
[0104] Alternatively, the earphones include a battery and a magnetic charging interface female for charging the battery, and the first device and the at least one second device include a magnetic charging interface male that is connected to the magnetic charging interface female.
[0105] In this embodiment, the earphones can be magnetically attached to a first or second device via a magnetic charging interface. When the user does not need to use the earphones, they can be stored by attaching them to the first or second device, thus preventing the earphones from being lost. At the same time, the magnetic charging interface makes it easier to connect male and female connectors. Attaching the earphones to the first or second device makes them less likely to be lost while charging the earphone batteries, making the earphones convenient to use.
[0106] In another embodiment, the earphones include a battery and an earphone charging terminal for charging the battery;
[0107] The earphone charging terminal is electrically connected to the magnetic charging interface male socket of the earphone case; the earphone case includes a receiving space for accommodating the earphones; the first device and the at least one second device include a magnetic charging interface female socket corresponding to the magnetic charging interface male socket;
[0108] Alternatively, the earphone charging terminal is electrically connected to the magnetic charging interface female of the earphone case, the earphone case including a receiving space for accommodating the earphone; the first device and the at least one second device include a magnetic charging interface male of the magnetic charging interface female.
[0109] The earphone case includes a storage space for holding the earphones. This space not only stores the earphones, preventing them from being lost, but also protects them from external damage.
[0110] In this embodiment, when the earphones are not in use, they can be stored in the earphone case to prevent them from being lost. The earphone case can be attached to a first or second device via a magnetic charging interface. When not in use, the earphone case can be attached to the first or second device via the magnetic charging interface. This not only makes them less likely to be lost, but also charges the earphone battery, thereby improving the user experience of using the earphones.
[0111] The headset in this application embodiment may further include modules such as a wireless communication module, an audio decoding module, a speaker, and firmware. The wireless communication module is used to receive and transmit wireless signals; in this application embodiment, the wireless communication module may specifically be a Bluetooth module. The audio decoding module is used to convert received digital audio signals into analog signals to drive the speaker. The speaker is used to convert electrical signals into sound. The firmware is used to store and execute software programs for managing various functions of the headset and managing the pairing of the headset with devices, thereby controlling the headset to perform functions such as audio playback, volume control, telephone answering, and device pairing. The headset connection device switching method of this application can be executed by the firmware in the headset.
[0112] The headphone connection device switching method of this application embodiment can be applied in a vehicle scenario to realize the switching connection between the headphone and multiple devices inside the vehicle. Specifically, the first device and the second device can be devices inside the vehicle such as the driver's screen, instrument panel screen, passenger screen, rear screen, and armrest screen. In this application embodiment, the user only needs to bring the headphone close to a device inside the vehicle to automatically establish a communication connection between the headphone and that device. When the user needs to switch the connected device, the user only needs to perform a touch operation on the headphone to generate a switching connection command. The switching connection command is used to switch the device connected to the headphone to the target second device in the device list. This application can be applied in scenarios where the user is driving or other scenarios where manual operation is inconvenient, to realize the free switching of the connection between the headphone and multiple devices inside the vehicle, to ensure the user's driving safety, and to improve the user's headphone connection device switching experience.
[0113] Please see Figure 4 This application embodiment also provides a headphone connection device switching device, the first device including a sensing module for sensing headphones, the device including:
[0114] The communication connection establishment module 310 is used to establish a communication connection between the earphone and the first device when the sensing module senses the earphone;
[0115] The device list acquisition module 320 is used to acquire the device list of the first device; the device list includes at least one second device that is communicatively connected to the first device.
[0116] The switching connection module 330 is used to switch the device connected to the headphones to the target second device in the device list in response to a switching connection command.
[0117] Optionally, each second device in the device list has a corresponding connection order;
[0118] Switching the connection module 330 specifically includes:
[0119] A touch data acquisition unit is used to acquire touch data from the earphones;
[0120] A target second device determination unit is configured to determine a target second device based on the touch data and the connection sequence;
[0121] A connection switching instruction generation unit is used to generate a connection switching instruction based on the target second device.
[0122] Optionally, the touch data is data generated by performing a target touch operation on the earphone, and the target second device determination unit includes:
[0123] The first device determination unit is used to identify the second device located after the connection sequence of the first device as the target second device;
[0124] or,
[0125] The second device determination unit is used to identify the second device that is located before the first device in the connection sequence as the target second device.
[0126] Optionally, the touch data includes the sliding direction of the swipe operation; the target second device determination unit includes:
[0127] The third device determination unit is used to obtain the correspondence between the sliding direction, the connection order of the first device and the connection order of the target second device, and select the corresponding second device as the target second device according to the correspondence.
[0128] Optionally, the earphone includes a battery and a magnetic charging interface male socket for charging the battery, and the first device and the at least one second device include a magnetic charging interface female socket corresponding to the magnetic charging interface male socket;
[0129] Alternatively, the earphones include a battery and a magnetic charging interface female for charging the battery, and the first device and the at least one second device include a magnetic charging interface male that is connected to the magnetic charging interface female.
[0130] Optionally, the earphones include a battery and an earphone charging terminal for charging the battery;
[0131] The earphone charging terminal is electrically connected to the magnetic charging interface male socket of the earphone case, and the earphone case includes a receiving space for accommodating the earphone; the first device and the at least one second device include a magnetic charging interface female socket corresponding to the magnetic charging interface male socket;
[0132] Alternatively, the earphone charging terminal is electrically connected to the magnetic charging interface female of the earphone case, the earphone case including a receiving space for accommodating the earphone; the first device and the at least one second device include a magnetic charging interface male of the magnetic charging interface female.
[0133] It should be noted that the headphone connection device switching device provided in the above embodiments is only illustrated by the division of the above functional modules when executing the headphone connection device switching method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the headphone connection device switching device provided in the above embodiments and the headphone connection device switching method in the above embodiments belong to the same concept, and its implementation process is detailed in the method embodiments, which will not be repeated here.
[0134] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the headphone connection device switching method as described in any of the above claims.
[0135] The embodiments of this application may take the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program code. Computer-readable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information may be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to: phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.
[0136] like Figure 5 As shown, this application embodiment also provides an electronic device 400, including a sensing module 410 for sensing headphones, a memory 420, a processor 430, and a computer program stored in the memory 420 and executable by the processor 430;
[0137] When the processor 430 executes the computer program, it implements the steps of the headphone connection device switching method as described in any of the above.
[0138] The sensing module 410 can be a thermal infrared sensing module, a near-field communication module, or other modules that can be used to sense whether the earphone is close to the first device.
[0139] The memory 420 includes read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.
[0140] The processor 430 is the control unit of the headset 400. It connects to various components of the headset 400 via various interfaces and lines. By running or executing programs or modules stored in the memory 420, and by calling data stored in the memory 420, it performs various functions of the headset 400 and processes data. For example, when the processor 430 executes the computer program stored in the memory 420, it implements all or part of the steps of the headset connection device switching method described in this embodiment; or it implements all or part of the functions of the headset connection device switching device. The processor 430 can be composed of integrated circuits, such as a single packaged integrated circuit, or multiple integrated circuits with the same or different functions, including combinations of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips.
[0141] Please see Figure 6 This application embodiment also provides a vehicle 500, including the earphone 510, a first device 400, and at least one second device 520 as described above; the first device 400 and the at least one second device 520 are communicatively connected.
[0142] The first device 400 and the second device 520 can be in-vehicle devices such as the driver's screen, instrument panel screen, passenger's screen, rear screen, and armrest screen.
[0143] In this embodiment, the user only needs to bring the earphone close to a device in the car to automatically establish a communication connection between the earphone and that device. When the user needs to switch the connected device, the user only needs to perform a touch operation on the earphone to generate a switch connection command. The switch connection command is used to switch the device connected to the earphone to the target second device in the device list. This application can be applied in scenarios where the user is driving or other scenarios where manual operation is inconvenient, so as to realize the free switching of the connection between the earphone and multiple devices in the car, ensure the user's driving safety, and improve the user's experience of switching the earphone connection device.
[0144] This invention is not limited to the above-described embodiments. If any modifications or variations to this invention do not depart from the spirit and scope of this invention, and if such modifications and variations fall within the scope of the claims and equivalent technologies of this invention, then this invention also intends to include such modifications and variations.
Claims
1. A method for switching headphone connection devices, characterized in that, The first device includes a sensing module for sensing headphones, and the method includes the following steps: When the sensing module senses the earphone, a communication connection is established between the earphone and the first device; Obtain the device list of the first device; the device list includes at least one second device that is communicatively connected to the first device. In response to a connection switching command, the device connected to the headphones is switched to the target second device in the device list.
2. The headphone connection device switching method according to claim 1, characterized in that, Each second device in the device list has a corresponding connection order; Switching the device connected to the headphones to the target second device in the device list specifically includes: Acquire the touch data of the headphones; The target second device is determined based on the touch data and the connection sequence; A switching connection command is generated based on the target second device.
3. The headphone connection device switching method according to claim 2, characterized in that, The touch data is data generated by performing a target touch operation on the earphone. Determining the target second device based on the touch data and the connection order includes: The second device located after the connection sequence of the first device is designated as the target second device; Alternatively, the second device that precedes the first device in the connection sequence can be designated as the target second device.
4. The headphone connection device switching method according to claim 2, characterized in that, The touch data includes the sliding direction of the swipe operation; Determining the target second device based on the touch data and the connection sequence includes: Obtain the correspondence between the sliding direction, the connection order of the first device, and the connection order of the target second device, and select the corresponding second device as the target second device according to the correspondence.
5. The headphone connection device switching method according to claim 1, characterized in that, The earphones include a battery and a magnetic charging interface male socket for charging the battery, and the first device and the at least one second device include a magnetic charging interface female socket corresponding to the magnetic charging interface male socket; Alternatively, the earphones include a battery and a magnetic charging interface female for charging the battery, and the first device and the at least one second device include a magnetic charging interface male that is connected to the magnetic charging interface female.
6. The headphone connection device switching method according to claim 1, characterized in that, The earphones include a battery and an earphone charging terminal for charging the battery; The earphone charging terminal is electrically connected to the magnetic charging interface male socket of the earphone case, and the earphone case includes a receiving space for accommodating the earphone; the first device and the at least one second device include a magnetic charging interface female socket corresponding to the magnetic charging interface male socket; Alternatively, the earphone charging terminal is electrically connected to the magnetic charging interface female of the earphone case, the earphone case including a receiving space for accommodating the earphone; the first device and the at least one second device include a magnetic charging interface male of the magnetic charging interface female.
7. A headphone connection device switching device, characterized in that, The first device includes a sensing module for sensing headphones, the device comprising: A communication connection establishment module is used to establish a communication connection between the earphone and the first device when the sensing module senses the earphone; A device list acquisition module is used to acquire a device list of the first device; the device list includes at least one second device that is communicatively connected to the first device. A connection switching module is used to switch the device connected to the headphones to a target second device in the device list in response to a connection switching command.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When executed by a processor, the computer program implements the steps of the headphone connection device switching method as described in any one of claims 1-6.
9. An electronic device, characterized in that, It includes a sensing module for sensing headphones, a memory, a processor, and a computer program stored in the memory and executable by the processor; When the processor executes the computer program, it implements the steps of the headphone connection device switching method as described in any one of claims 1-6.
10. A vehicle, characterized in that, It includes headphones, a first device, and at least one second device; the first device is the electronic device as described in claim 9; The first device and the at least one second device are in a communicative connection.