Bluetooth adapter, sound source switching method, electronic device, and storage medium

By receiving the audio source switching instruction from the wearable device, the pull-up resistor control module and the Bluetooth chip are used to automatically switch the audio playback mode without plugging in or out the Bluetooth adapter, solving the audio playback problem when the headset is low on power and improving the user experience.

CN115396782BActive Publication Date: 2025-10-17ANKER INNOVATIONS TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211016154.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-23
Publication Date
2025-10-17
Estimated Expiration
2042-08-23

AI Technical Summary

Technical Problem

When the existing Bluetooth adapter is low on headset power, music playback or call audio cannot be automatically switched to the terminal device, and the adapter needs to be manually unplugged to hear the sound.

Method used

By receiving the audio source switching instruction sent by the wearable device, generating and sending a switching signal, the terminal device automatically switches the audio playback mode, and uses the pull-up resistor control module and Bluetooth chip to achieve audio source switching without plugging in or out the adapter.

Benefits of technology

It can automatically switch the audio playback mode from the wearable device to the terminal device without unplugging the Bluetooth adapter, improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115396782B_ABST
    Figure CN115396782B_ABST
Patent Text Reader

Abstract

The embodiment of the present disclosure relates to a Bluetooth adapter, a sound source switching method, an electronic device and a storage medium, and the sound source switching method comprises the following steps: receiving a first sound source switching instruction sent by a wearable device, wherein the first sound source switching instruction is used to indicate that the audio playing mode is switched from playing by the wearable device to playing by a terminal device; generating a first sound source switching signal according to the first sound source switching instruction; and sending the first sound source switching signal to the terminal device connected with the Bluetooth adapter, so that the terminal device switches the audio playing mode from playing by the wearable device to playing by the terminal device. By the method, the automatic switching of the playing sound source can be realized without plugging and unplugging the Bluetooth adapter.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of Bluetooth, and in particular to a Bluetooth dongle, a sound source switching method, an electronic device and a storage medium. BACKGROUND

[0002] A Bluetooth dongle is an interface converter between a digital product and a Bluetooth device. The Bluetooth dongle can be plugged into a mobile phone or a computer through a USB (Universal Serial Bus) interface, and then communicate with a Bluetooth earphone.

[0003] However, when the existing Bluetooth dongle is plugged into a mobile phone or a computer and communicates with an earphone to play music or make a call, if the earphone automatically shuts down due to lack of power, the music playing sound or the call sound cannot be directly played through the computer or the mobile phone, and the music playing and the call sound can be heard only by manually unplugging the Bluetooth dongle. SUMMARY

[0004] In view of this, to solve some or all of the above technical problems, the present disclosure provides a Bluetooth dongle, a sound source switching method, an electronic device and a storage medium.

[0005] In a first aspect, the present disclosure provides a sound source switching method, the method comprising:

[0006] receiving a first sound source switching instruction sent by a wearable device, the first sound source switching instruction being used to instruct to switch an audio playing mode from playing by the wearable device to playing by a terminal device;

[0007] generating a first sound source switching signal according to the first sound source switching instruction;

[0008] sending the first sound source switching signal to a terminal device connected with the Bluetooth dongle, so as to make the terminal device switch the audio playing mode from playing by the wearable device to playing by the terminal device.

[0009] In one possible implementation,

[0010] the first sound source switching instruction is generated by one of the following ways:

[0011] generating the first sound source switching instruction in a case where a remaining power of the wearable device is less than or equal to a preset first threshold; or

[0012] generating the first sound source switching instruction in a case where a preset first sound source switching operation performed on the wearable device is detected, wherein the preset first sound source switching operation is used to instruct to switch the audio playing mode from playing by the wearable device to playing by the terminal device.

[0013] In a possible implementation, the method further includes:

[0014] receiving a second audio source switching instruction sent by the wearable device, the second audio source switching instruction being used to instruct to switch the audio playing mode from being played by the terminal device to being played by the wearable device;

[0015] generating a second audio source switching signal according to the second audio source switching instruction;

[0016] sending the second audio source switching signal to the terminal device, so that the terminal device switches the audio playing mode from being played by the terminal device to being played by the wearable device.

[0017] In a possible implementation, the second audio source switching instruction is generated in one of the following ways:

[0018] generating the second audio source switching instruction in a case where the remaining power of the wearable device is greater than or equal to a preset second threshold; or

[0019] generating the second audio source switching instruction in a case where a preset second audio source switching operation performed on the wearable device is detected, wherein the preset second audio source switching operation is used to instruct to switch the audio playing mode from being played by the terminal device to being played by the wearable device.

[0020] In a possible implementation, the wearable device is a wireless Bluetooth earphone, and the terminal device is a mobile phone terminal or a computer terminal.

[0021] In a second aspect, the embodiments of the present disclosure provide a Bluetooth adapter, which comprises:

[0022] a universal serial bus module, a pull-up resistance control module, and a Bluetooth chip; the universal serial bus module is connected with a first interface and a pull-up node; the pull-up resistance control module is connected with the pull-up node, a second interface, and a third interface; and the Bluetooth chip is connected with the second interface and the third interface, wherein:

[0023] the universal serial bus module is configured to receive a first audio source switching instruction sent by a wearable device, the first audio source switching instruction being used to instruct to switch the audio playing mode from being played by the wearable device to being played by a terminal device;

[0024] the pull-up resistance control module is configured to receive the first audio source switching instruction from the universal serial bus module, and generate a first audio source switching signal according to the first audio source switching instruction;

[0025] The Bluetooth chip is configured to send the first audio source switching signal to a terminal device connected to the Bluetooth adapter, so that the terminal device switches the audio playing mode from playing by the wearable device to playing by the terminal device.

[0026] In a possible implementation, the USB module is further configured to receive a second audio source switching instruction sent by the wearable device, the second audio source switching instruction being used to instruct to switch the audio playing mode from playing by the terminal device to playing by the wearable device.

[0027] The pull-up resistor control module is configured to receive the second audio source switching instruction from the USB module, and generate a second audio source switching signal according to the second audio source switching instruction.

[0028] The Bluetooth chip is further configured to send the second audio source switching signal to the terminal device, so that the terminal device switches the audio playing mode from playing by the terminal device to playing by the wearable device.

[0029] In a possible implementation,

[0030] The pull-up resistor control module includes a first resistor, a second resistor, a pull-up resistor, and a triode.

[0031] The emitter of the triode is connected to a voltage signal input end, the collector is connected to a first end of the pull-up resistor, and the base is connected to a first end of the second resistor.

[0032] A second end of the pull-up resistor is connected to the pull-up node.

[0033] A first end of the first resistor is connected to the pull-up node, and a second end of the first resistor is connected to the second interface.

[0034] A second end of the second resistor is connected to the third interface.

[0035] In a possible implementation, the pull-up resistor control module is specifically configured to:

[0036] The triode is turned off, the second interface outputs a high level, the pull-up resistor is turned off, and the first audio source switching signal is generated.

[0037] In a possible implementation, the pull-up resistor control module is specifically configured to:

[0038] The second interface outputs a low level, the triode is turned on, the pull-up resistor is turned on, and the second audio source switching signal is generated.

[0039] In a possible implementation, the wearable device is a wireless Bluetooth earphone, and the terminal device is a mobile phone or a computer.

[0040] In a fourth aspect, the embodiments of the present disclosure provide an electronic device, comprising:

[0041] a memory configured to store a computer program;

[0042] a processor configured to execute the computer program stored in the memory, and when the computer program is executed, the method of any one of the embodiments of the sound source switching method of the second aspect of the present disclosure is implemented.

[0043] In a fifth aspect, the embodiments of the present disclosure provide a computer readable storage medium, and when the computer program is executed by the processor, the method of any one of the embodiments of the sound source switching method of the second aspect of the present disclosure is implemented.

[0044] In a sixth aspect, the embodiments of the present disclosure provide a computer program, and the computer program comprises computer readable code, when the computer readable code is run on a device, the processor in the device executes instructions for implementing each step in the method of any one of the embodiments of the sound source switching method of the second aspect of the present disclosure.

[0045] The sound source switching method provided by the embodiments of the present disclosure receives the first sound source switching instruction sent by the wearable device, the first sound source switching instruction is used to indicate that the audio playing mode is switched from playing by the wearable device to playing by the terminal device, then, the first sound source switching signal is generated according to the first sound source switching instruction, and then, the first sound source switching signal is sent to the terminal device connected with the Bluetooth adapter, so that the terminal device switches the audio playing mode from playing by the wearable device to playing by the terminal device. By this method, the first sound source switching signal is sent to the terminal device connected with the Bluetooth adapter, so that the terminal device switches the audio playing mode from playing by the wearable device to playing by the terminal device, thereby the automatic switching of the playing sound source can be realized without plugging and unplugging the Bluetooth adapter. BRIEF DESCRIPTION OF DRAWINGS

[0046] Figure 1 A flowchart of a sound source switching method provided by the embodiments of the present disclosure;

[0047] Figure 2 A flowchart of another sound source switching method provided by the embodiments of the present disclosure;

[0048] Figure 3 A structural diagram of a Bluetooth adapter provided by the embodiments of the present disclosure;

[0049] Figure 4A structural schematic diagram of a Bluetooth adapter provided by an embodiment of the present disclosure is shown in FIG. 1.

[0050] Figure 5 A structural schematic diagram of an electronic device provided by an embodiment of the present disclosure is shown in FIG. 2. DETAILED DESCRIPTION

[0051] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. Note that the relative arrangement, numerical expressions, and numerical values of components and steps set forth in these embodiments are not intended to limit the scope of the present disclosure unless otherwise specifically stated.

[0052] Those skilled in the art can understand that the terms "first", "second", and the like in the embodiments of the present disclosure are only used to distinguish different steps, devices, or modules, and do not represent any specific technical meaning, nor do they represent a logical order between them.

[0053] It should also be understood that "multiple" can refer to two or more, and "at least one" can refer to one, two, or more in the present embodiments.

[0054] It should also be understood that, for any component, data, or structure mentioned in the embodiments of the present disclosure, one or more can be generally understood unless specifically limited or the context gives a contrary indication.

[0055] In addition, the term "and / or" in the present disclosure is only a description of the association relationship between the associated objects, which means that there can be three relationships, for example, A and / or B can represent the existence of A alone, the existence of A and B together, and the existence of B alone. In addition, the character " / " in the present disclosure generally represents an "or" relationship between the front and rear associated objects.

[0056] It should also be understood that the description of various embodiments of the present disclosure focuses on the differences between the various embodiments, and the same or similar parts can be referred to each other, and for the sake of brevity, will not be repeated.

[0057] The following description of at least one exemplary embodiment is merely exemplary in nature and is in no way intended to limit the present disclosure, its application, or uses.

[0058] Techniques, methods, and devices known to those of ordinary skill in the relevant art can not be discussed in detail, but should be considered part of the specification where appropriate.

[0059] It should be noted that similar reference numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further discussed in subsequent drawings.

[0060] It should be noted that the embodiments and features of the present disclosure can be combined if there is no conflict. To make the present disclosure easy to understand, the following will refer to the drawings and embodiments to describe the present disclosure in detail. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative labor are within the scope of the present disclosure.

[0061] Figure 1 A flowchart of a sound source switching method provided by an embodiment of the present disclosure is shown. The method can be applied to one or more electronic devices such as Bluetooth adapters, smart phones, notebook computers, desktop computers, portable computers, servers, etc. In addition, the execution subject of the method can be hardware or software. When the execution subject is hardware, the execution subject can be one or more of the above-mentioned electronic devices. For example, a single electronic device can execute the method, or multiple electronic devices can cooperate with each other to execute the method. When the execution subject is software, the method can be implemented as multiple software or software modules, or as a single software or software module. No specific limitation is made here.

[0062] As shown in Figure 1 , the method specifically includes:

[0063] 101. Receive a first sound source switching instruction sent by a wearable device, the first sound source switching instruction being used to instruct to switch an audio playing mode from playing by the wearable device to playing by a terminal device.

[0064] In the embodiment, the wearable device can be a Bluetooth device such as a Bluetooth headset or a Bluetooth speaker.

[0065] 102. Generate a first sound source switching signal according to the first sound source switching instruction.

[0066] In the embodiment, the first sound source switching signal can be used to switch the audio playing mode from playing by the wearable device to playing by the terminal device.

[0067] 103. Send the first sound source switching signal to a terminal device connected to the Bluetooth adapter, so that the terminal device switches the audio playing mode from playing by the wearable device to playing by the terminal device.

[0068] In the embodiment, the generation and transmission of the data (such as the first sound source switching signal and the first sound source switching instruction) can be realized by software (such as a communication module) and / or hardware (such as a circuit).

[0069] In some optional implementations of the embodiment, the first audio source switching instruction is generated in one of the following manners:

[0070] Manner one, in a case where the remaining power of the wearable device is less than or equal to a preset threshold, the audio source switching instruction for instructing to switch the audio playback mode from being played by the wearable device to being played by the terminal device is generated.

[0071] Manner two, the first audio source switching instruction is generated in a case where a preset first audio source switching operation performed on the wearable device is detected. The preset first audio source switching operation is used to instruct to switch the audio playback mode from being played by the wearable device to being played by the terminal device.

[0072] It can be understood that in the above optional implementations, the first audio source switching instruction can be automatically generated in a case where a corresponding condition is met, and then the terminal device switches the audio playback mode from being played by the wearable device to being played by the terminal device according to the instruction of the first audio source switching instruction.

[0073] The audio source switching method provided by the embodiment of the present disclosure receives the first audio source switching instruction sent by the wearable device, the first audio source switching instruction is used to instruct to switch the audio playback mode from being played by the wearable device to being played by the terminal device, then generates a first audio source switching signal according to the first audio source switching instruction, and then sends the first audio source switching signal to the terminal device connected with the Bluetooth adapter, so that the terminal device switches the audio playback mode from being played by the wearable device to being played by the terminal device. By this method, the terminal device switches the audio playback mode from being played by the wearable device to being played by the terminal device by sending the first audio source switching signal to the terminal device connected with the Bluetooth adapter, so that the automatic switching of the playback sound source can be realized without plugging and unplugging the Bluetooth adapter.

[0074] The following refers to Figure 2 . Figure 2 Another flowchart of an audio source switching method provided by the embodiment of the present disclosure is shown in FIG. 2. As shown in FIG. 2, the method includes the following steps. Figure 2

[0075] 201, receiving a first audio source switching instruction sent by a wearable device, the first audio source switching instruction is used to instruct to switch the audio playback mode from being played by the wearable device to being played by a terminal device.

[0076] In the embodiment, step 201 is basically the same as step 101 in the corresponding embodiment, which will not be described here. Figure 1

[0077] 202, generating a first audio source switching signal according to the first audio source switching instruction.​​

[0078] In the embodiment, step 202 is basically the same as step 102 in the corresponding embodiment, which will not be described here again. Figure 1

[0079] 203. Send the first audio source switching signal to a terminal device connected to the Bluetooth adapter, so that the terminal device switches the audio playback mode from being played by the wearable device to being played by the terminal device.

[0080] In the embodiment, step 203 is basically the same as step 103 in the corresponding embodiment, which will not be described here again. Figure 1

[0081] 204. Receive the second audio source switching instruction sent by the wearable device, the second audio source switching instruction being used to instruct to switch the audio playback mode from being played by the terminal device to being played by the wearable device.

[0082] 205. Generate a second audio source switching signal according to the second audio source switching instruction.

[0083] In the embodiment, the second audio source switching signal can be used to switch the audio playback mode from being played by the terminal device to being played by the wearable device.

[0084] 206. Send the second audio source switching signal to the terminal device, so that the terminal device switches the audio playback mode from being played by the terminal device to being played by the wearable device.

[0085] In the embodiment, the generation and transmission of the data (such as the second audio source switching signal and the second audio source switching instruction) can be realized by software (such as a communication module) and / or hardware (such as a circuit).

[0086] In some optional implementation manners of the embodiment, the second audio source switching instruction is generated in one of the following manners:

[0087] Manner one: the second audio source switching instruction is generated when the remaining power of the wearable device is greater than or equal to a preset second threshold. The preset second threshold can be greater than the first preset threshold.

[0088] Manner two: the second audio source switching instruction is generated when a preset second audio source switching operation performed on the wearable device is detected, wherein the preset second audio source switching operation is used to instruct to switch the audio playback mode from being played by the terminal device to being played by the wearable device.

[0089] ​​It can be understood that in the optional implementation mode described above, the second audio source switching instruction can be automatically generated under the condition of meeting the corresponding condition, and then the terminal device automatically switches the audio playing mode from playing by the terminal device to playing by the wearable device according to the indication of the second audio source switching instruction.

[0090] In some optional implementation modes of the embodiment, the Bluetooth adapter is the Bluetooth adapter described in the embodiments of Figure 3 or Figure 4 .

[0091] Specifically, the Bluetooth adapter described above includes a universal serial bus module, a pull-up resistance control module, and a Bluetooth chip.

[0092] The universal serial bus module is connected with a first interface and a pull-up node; the pull-up resistance control module is connected with the pull-up node, a second interface, and a third interface; and the Bluetooth chip is connected with the second interface and the third interface.

[0093] The pull-up resistance control module includes a first resistance, a second resistance, a pull-up resistance, and a triode; the emitter of the triode is connected with a voltage signal input end, the collector is connected with a first end of the pull-up resistance, and the base is connected with a first end of the second resistance; a second end of the pull-up resistance is connected with the pull-up node; a first end of the first resistance is connected with the pull-up node, and a second end of the first resistance is connected with the second interface; and a second end of the second resistance is connected with the third interface.

[0094] In some application scenarios in the optional implementation mode described above, the first audio source switching signal is generated by the following manner: the triode is turned off, the second interface outputs a high level, and the pull-up resistance is cut off to generate the first audio source switching signal.

[0095] It can be understood that in the application scenarios described above, through the above circuit design, the audio playing mode can be automatically switched from playing by the wearable device to playing by the terminal device without plugging and unplugging the Bluetooth adapter.

[0096] In some application scenarios in the optional implementation mode described above, the second audio source switching signal is generated by the following manner: the second interface outputs a low level, the triode is turned on, and the pull-up resistance is connected to generate the second audio source switching signal.

[0097] It can be understood that in the application scenarios described above, through the above circuit design, the audio playing mode can be automatically switched from playing by the terminal device to playing by the wearable device without plugging and unplugging the Bluetooth adapter.

[0098] In some optional implementations of the embodiment, the pull-up resistor control module comprises a first resistor, a second resistor, a pull-up resistor and a triode.

[0099] The emitter of the triode is connected with the voltage signal input end, the collector is connected with the first end of the pull-up resistor, and the base is connected with the first end of the second resistor.

[0100] The second end of the pull-up resistor is connected with the pull-up node.

[0101] The first end of the first resistor is connected with the pull-up node, and the second end of the first resistor is connected with the second interface.

[0102] The second end of the second resistor is connected with the third interface.

[0103] It can be understood that, in the optional implementation, the triode is used to control the conduction and disconnection of the pull-up resistor, so as to simulate the plugging operation of the Bluetooth adapter, thereby realizing the automatic switching of the audio playing mode without plugging the Bluetooth adapter.

[0104] In some application scenarios of the optional implementation, the pull-up resistor control module is specifically used for:

[0105] The triode is turned off, the second interface outputs a high level, the pull-up resistor is cut off, and a first audio source switching signal is generated.

[0106] It can be understood that, in the application scenario, the triode is turned off, the second interface outputs a high level, and the pull-up resistor is cut off, so that the audio playing mode can be automatically switched from being played by the wearable device to being played by the terminal device without plugging the Bluetooth adapter.

[0107] In some application scenarios of the optional implementation, the pull-up resistor control module is specifically used for:

[0108] The second interface outputs a low level, the triode is turned on, the pull-up resistor is turned on, and a second audio source switching signal is generated.

[0109] It can be understood that, in the application scenario, the second interface outputs a low level, the triode is turned on, and the pull-up resistor is turned on, so that the audio playing mode can be automatically switched from being played by the terminal device to being played by the wearable device without plugging the Bluetooth adapter.

[0110] In some optional implementations of the embodiment, the wearable device is a wireless Bluetooth earphone, and the terminal device is a mobile phone terminal or a computer terminal.

[0111] The following exemplary describes the embodiments of the present disclosure, but it should be noted that the embodiments of the present disclosure can have the features described below, but the following description does not constitute a limitation on the scope of protection of the embodiments of the present disclosure.

[0112] When the Bluetooth headset or other receiving device (i.e. the wearable device described above) is out of power, the Bluetooth headset or other receiving device will send a shutdown command to the Bluetooth adapter before shutting down, notifying the Bluetooth adapter that it is about to shut down.

[0113] After the Bluetooth adapter receives this shutdown command, it automatically performs a sound source switching action, turning off the transistor Q1 in Figure 2 The second interface P3 of the Bluetooth chip outputs a high level, cutting off the pull-up resistor R1. Here, since the terminal device detects the insertion and removal of the USB device (e.g. the Bluetooth adapter described above) through the pull-up resistor R1. Therefore, at this time, it is equivalent to the USB slave end (e.g. the Bluetooth adapter described above) informing the terminal device that I have been removed.

[0114] When the terminal device learns that the current USB slave end is removed, the terminal device automatically releases the current USB AUDIO channel and automatically switches to the terminal device's (e.g. the computer or mobile phone) own sound source mode. At this time, audio playback and calls can be automatically switched from the Bluetooth headset end to the terminal device, without the need for manual plugging and unplugging of the Bluetooth adapter to achieve automatic switching.

[0115] When the Bluetooth headset is powered on, it automatically switches the sound source from the terminal device to the headset end (i.e. the wearable device described above), without the need for additional operations.

[0116] Specifically, when the wearable device is powered on, it actively reconnects to the Bluetooth adapter. At this time, the Bluetooth adapter receives this reconnect command and automatically outputs a low level to the USB D+ pull-up resistor R1 control pin in the Bluetooth chip, turning on the transistor Q1, which automatically connects the USB D+ pull-up resistor R1 to the D+ end of the terminal device, equivalent to telling the terminal device that I have a USB device inserted.

[0117] Next, the terminal device initiates a USB enumeration process to identify the connected slave end. After enumeration is complete, the sound source is automatically switched from the mobile phone or computer end to the USB AUDIO device end. Then the USB audio signal is sent to the headset end through the Bluetooth chip. At this time, the sound can be directly heard from the headset end, and the data received by the microphone during a call will also be transmitted to the terminal device through Bluetooth.

[0118] Thus, one-key switching of audio sources can be realized at the earphone end. When a user wants to play music and make a call through the terminal device, the user can press the audio source switching key at the earphone end (i.e., the first preset audio source switching operation described above), and an audio source switching command (i.e., the first audio source switching instruction described above) is sent to the Bluetooth adapter. After receiving the command, the Bluetooth adapter automatically switches the audio source by disconnecting and connecting the USB D+ signal according to the current state, which is convenient for the user to operate and enables the user to realize the audio source switching without unplugging the Bluetooth adapter.

[0119] It should be noted that, in addition to the above, the present embodiment can also include technical features described in the corresponding embodiments, thereby realizing the technical effects of the audio source switching method shown in the above Figure 1 Figure 1 The technical effects of the audio source switching method shown in the above Figure 1 For brevity, the relevant description is not repeated here.

[0120] The audio source switching method provided by the present embodiment automatically switches the audio playback mode from being played by the terminal device to being played by the wearable device without unplugging the Bluetooth adapter.

[0121] Figure 3 A structural schematic diagram of a Bluetooth adapter provided by the present embodiment is shown in FIG. 1. As shown in the figure, the Bluetooth adapter includes: Figure 3

[0122] a USB module 10, a pull-up resistor control module 20, and a Bluetooth chip 30.

[0123] Further, the Bluetooth adapter also includes a first interface (hereinafter referred to as P1), a pull-up node (hereinafter referred to as P2), a second interface (hereinafter referred to as P3), and a third interface (hereinafter referred to as P4).

[0124] The circuit structure inside the Bluetooth adapter includes:

[0125] The USB module 10 is connected to the first interface P1 and the pull-up node P2.

[0126] ​​The pull-up resistor control module 20 is connected with the pull-up node P2, the second interface P3 and the third interface P4.

[0127] The Bluetooth chip 30 is connected with the second interface P3 and the third interface P4.

[0128] The first interface P1, the second interface P3 and the third interface P4 can be understood as interfaces between internal modules of the Bluetooth adapter or interfaces for connecting the Bluetooth adapter with a terminal device.

[0129] Specifically, the first interface P1 can be a signal input interface of the USB module 10 or a signal output interface of the USB module.

[0130] The second interface P3 and the third interface P4 can be interfaces of the Bluetooth chip. In some cases, the second interface P3 can be an interface for connecting a USB D+ signal line, i.e., a USB data positive signal line, USB-DP line, abbreviated as D+.

[0131] The third interface P4 can be a general interface of the Bluetooth chip.

[0132] The pull-up node P2 can be understood as a connection point formed by connecting modules.

[0133] In the use process of the Bluetooth adapter, when the Bluetooth adapter is inserted into a computer or a mobile phone, an audio source can be transmitted to the Bluetooth chip through a USB AUDIO ISOChronous Out endpoint. Then, the Bluetooth chip sends the audio source to the earphone end. When the earphone end is in conversation, the data collected by the microphone can be sent to the Bluetooth chip through Bluetooth, and the Bluetooth chip uploads the data collected by the microphone to the mobile phone or the computer through a USB ISOChronous In endpoint. Thus, the mobile phone or the computer end can realize two-way communication with the earphone.

[0134] The USB module is configured to receive a first audio source switching instruction sent by the wearable device, and the first audio source switching instruction is used to instruct to switch an audio playing mode from playing by the wearable device to playing by a terminal device.

[0135] The pull-up resistor control module is configured to receive the first audio source switching instruction from the USB module and generate a first audio source switching signal according to the first audio source switching instruction.

[0136] The Bluetooth chip is configured to send the first audio source switching signal to a terminal device connected with the Bluetooth adapter, so that the terminal device switches the audio playing mode from playing by the wearable device to playing by the terminal device.

[0137] In some optional implementations of this embodiment:

[0138] The universal serial bus module is further configured to receive a second audio source switching instruction sent by the wearable device, where the second audio source switching instruction is configured to instruct the audio playback mode to be switched from playback by the terminal device to playback by the wearable device;

[0139] The pull-up resistor control module is configured to receive the second audio source switching instruction from the universal serial bus module; and generate a second audio source switching signal according to the second audio source switching instruction;

[0140] The Bluetooth chip is further used to send the second audio source switching signal to the terminal device, so that the terminal device switches the audio playback mode from playback by the terminal device to playback by the wearable device.

[0141] It should be noted that, in addition to the above contents, this embodiment may also include Figure 1 and / or Figure 2 The technical features described in the corresponding embodiments are then realized Figure 1 and / or Figure 2 For details on the technical effects of the method shown, please refer to Figure 1 and / or Figure 2 For the sake of brevity, the relevant description will not be repeated here.

[0142] The Bluetooth adapter provided by the embodiment of the present disclosure includes: a universal serial bus module, a pull-up resistor control module and a Bluetooth chip; the universal serial bus module is connected to a first interface and a pull-up node; the pull-up resistor control module is connected to the pull-up node, the second interface and the third interface; the Bluetooth chip is connected to the second interface and the third interface. The universal serial bus module is used to receive a first audio source switching instruction sent by a wearable device, and the first audio source switching instruction is used to instruct to switch the audio playback mode from the wearable device to the terminal device; the pull-up resistor control module is used to receive the first audio source switching instruction from the universal serial bus module; generate a first audio source switching signal according to the first audio source switching instruction; the Bluetooth chip is used to send the first audio source switching signal to the terminal device connected to the Bluetooth adapter, so that the terminal device switches the audio playback mode from the wearable device to the terminal device. Therefore, through the pull-up resistor control module, the above-mentioned Bluetooth adapter can achieve the switching of audio playback without plugging or unplugging it.

[0143] Figure 4 This is a schematic diagram of the structure of another Bluetooth adapter provided by the embodiment of the present disclosure. Figure 4 As shown, the Bluetooth adapter includes:

[0144] The universal serial bus module 10, the pull-up resistance control module 20 and the Bluetooth chip 30.

[0145] The circuit structure inside the Bluetooth adapter comprises:

[0146] The universal serial bus module 10 is connected with the first interface P1 and the pull-up node P2.

[0147] The pull-up resistance control module 20 is connected with the pull-up node P2, the second interface P3 and the third interface P4.

[0148] The Bluetooth chip 30 is connected with the second interface P3 and the third interface P4.

[0149] Here, the pull-up resistance control module 20 comprises a first resistance R2, a second resistance R3, a pull-up resistance R1 and a triode Q1.

[0150] The emitter of the triode Q1 is connected with the voltage signal input end VDD, the collector is connected with the first end of the pull-up resistance R1, and the base is connected with the first end of the second resistance R3. The first end of the pull-up resistance R1 can be any end of the pull-up resistance R1. The first end of the second resistance R3 can be any end of the second resistance R3.

[0151] The second end of the pull-up resistance R1 is connected with the pull-up node. The second end of the pull-up resistance R1 can be another end different from the first end of the pull-up resistance R1.

[0152] The first end of the first resistance R2 is connected with the pull-up node P2, and the second end of the first resistance R2 is connected with the second interface P3. The first end of the first resistance R2 can be any end of the first resistance R2. The second end of the first resistance R2 can be another end different from the first end of the first resistance R2.

[0153] The second end of the second resistance R3 is connected with the third interface P4. The second end of the second resistance R3 can be another end different from the first end of the second resistance R3.

[0154] The universal serial bus module is configured to receive a first audio source switching instruction sent by a wearable device, the first audio source switching instruction being configured to instruct to switch an audio playing mode from being played by the wearable device to being played by a terminal device.

[0155] The pull-up resistance control module is configured to receive the first audio source switching instruction from the universal serial bus module, and generate a first audio source switching signal according to the first audio source switching instruction.

[0156] The Bluetooth chip is configured to send the first sound source switching signal to a terminal device connected to the Bluetooth adapter, so that the terminal device switches an audio playing mode from playing by the wearable device to playing by the terminal device.

[0157] In some optional implementations of the embodiment, the pull-up resistor control module is specifically configured to:

[0158] The triode is turned off, the second interface outputs a high level, the pull-up resistor is turned off, and the first sound source switching signal is generated.

[0159] In some optional implementations of the embodiment, the pull-up resistor control module is specifically configured to:

[0160] The second interface outputs a low level, the triode is turned on, the pull-up resistor is turned on, and the second sound source switching signal is generated.

[0161] It should be noted that, in addition to the above-mentioned content, the embodiment can also include the technical features described in the embodiments corresponding to any of the drawings in Figures 1-3 , and thus achieve the corresponding technical effects. For details, please refer to the related description in the embodiments of any of the drawings in Figure 3 . For brevity, no further description is given here.

[0162] The Bluetooth adapter provided by the embodiment of the present disclosure can control the disconnection and connection of the pull-up resistor through the triode, so that the switching of the audio playing can be realized without plugging and unplugging the Bluetooth adapter.

[0163] Figure 5 Fig. 1 is a structural schematic diagram of an electronic device provided by the embodiment of the present disclosure, Figure 5 The electronic device 500 shown in Fig. 1 includes at least one processor 501, a memory 502, at least one network interface 504 and other user interfaces 503. The various components in the electronic device 500 are coupled together through a bus system 505. It can be understood that the bus system 505 is used to realize the connection and communication between the components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, all kinds of buses are marked as the bus system 505 in Figure 5 .

[0164] The user interface 503 can include a display, a keyboard or a clicking device (for example, a mouse, a trackball, a touchpad or a touch screen, etc.).

[0165] It can be understood that the memory 502 in the embodiments of the present disclosure can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or a flash memory. The volatile memory can be a random access memory (Random Access Memory, RAM) used as an external cache. By way of example, but not by way of limitation, many forms of RAM are available, such as static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM). The memory 502 described herein is intended to include, but not limited to, these and any other suitable types of memory.

[0166] In some embodiments, the memory 502 stores the following elements, executable units or data structures, or a subset of them, or an extended set of them: an operating system 5021 and an application program 5022.

[0167] The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application program 5022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., for implementing various application services. The program for implementing the method of the embodiments of the present disclosure can be included in the application program 5022.

[0168] In the present embodiment, by invoking the programs or instructions stored in the memory 502, specifically, the programs or instructions stored in the application program 5022, the processor 501 is configured to execute the method steps provided by each method embodiment, for example, including:

[0169] receive the first sound source switching instruction sent by the wearable device, the first sound source switching instruction being used to instruct to switch the audio playing mode from being played by the wearable device to being played by a terminal device;

[0170] generate a first sound source switching signal according to the first sound source switching instruction;

[0171] send the first sound source switching signal to a terminal device connected with the Bluetooth adapter, so as to make the terminal device switch the audio playing mode from being played by the wearable device to being played by the terminal device.

[0172] The method disclosed by the embodiments of the present disclosure can be applied to the processor 501 or implemented by the processor 501. The processor 501 can be an integrated circuit chip having a signal processing capability. In the implementation process, each step of the above method can be completed by the integrated logic circuit or the instruction in the form of software in the processor 501. The processor 501 can be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. Each method, step and logic block diagram disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in combination with the embodiments of the present disclosure can be directly embodied as a hardware code processor for execution, or a combination of hardware and software units in the code processor for execution. The software unit can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register or other mature storage medium in the art. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and combines the hardware to complete the steps of the above method.

[0173] It can be understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing units can be implemented within one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSP Devices, DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions described above, or a combination thereof.

[0174] For software implementation, the techniques described herein can be implemented with a processing unit performing the functions described above. The software code can be stored in a memory and executed by a processor. The memory can be implemented within the processor or external to the processor.

[0175] The electronic device provided by the embodiment can be an electronic device as shown in Figure 5 , can perform all steps of the sound source switching method as shown in Figures 1-2 , and thus achieve the technical effects of the sound source switching method as shown in Figures 1-2 . For details, please refer to the relevant description Figures 1-2 . For brevity, the details are not repeated here.

[0176] The embodiment of the present disclosure further provides a storage medium (computer readable storage medium). The storage medium stores one or more programs. The storage medium can include a volatile memory such as a random access memory, and the memory can also include a non-volatile memory such as a read-only memory, a flash memory, a hard disk, or a solid state disk, and the memory can also include a combination of the above types of memories.

[0177] When the one or more programs in the storage medium can be executed by one or more processors to implement the sound source switching method described above.

[0178] The processor is configured to execute the sound source switching program stored in the memory to implement the following steps of the sound source switching method executed on the side of the electronic device:

[0179] receiving a first sound source switching instruction sent by the wearable device, the first sound source switching instruction being used to instruct to switch an audio playing mode from being played by the wearable device to being played by a terminal device;

[0180] generate a first audio source switching signal according to the first audio source switching instruction;

[0181] send the first audio source switching signal to a terminal device connected with the Bluetooth adapter, so as to switch an audio playing mode from playing by the wearable device to playing by the terminal device.

[0182] Those skilled in the art should further appreciate that the units and algorithm steps of each example described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been described in general terms above as being generally associated with the functionality of the example. The specific implementation of the described functionality depends on the particular application and design constraints imposed on the overall system. Those skilled in the art can implement the described functionality using different methods for each specific application, but such implementation should not be considered to be beyond the scope of the present disclosure.

[0183] The steps of a method or algorithm described in connection with the embodiments disclosed herein can be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module can reside in random access memory (RAM), flash memory, read-only memory (ROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0184] The above detailed description has further described the purposes, technical solutions, and beneficial effects of the present disclosure. It should be understood that the above detailed description is merely a specific implementation of the present disclosure and is not intended to limit the protection scope of the present disclosure. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A Bluetooth adapter, characterized in that: The Bluetooth adapter includes: a universal serial bus module, a pull-up resistor control module, and a Bluetooth chip; the universal serial bus module is connected to the first interface and the pull-up node; the pull-up resistor control module is connected to the pull-up node, the second interface, and the third interface; the Bluetooth chip is connected to the second interface and the third interface, wherein: The universal serial bus module is configured to receive a first audio source switching instruction sent by a wearable device, where the first audio source switching instruction is used to instruct to switch the audio playback mode from playback by the wearable device to playback by the terminal device; The pull-up resistor control module is configured to receive the first audio source switching instruction from the universal serial bus module; and generate a first audio source switching signal according to the first audio source switching instruction; The Bluetooth chip is configured to send the first audio source switching signal to a terminal device connected to the Bluetooth adapter, so that the terminal device switches the audio playback mode from playback by the wearable device to playback by the terminal device; Wherein, the pull-up resistor control module includes: a first resistor, a second resistor, a pull-up resistor and a transistor; The emitter of the transistor is connected to the voltage signal input terminal, the collector is connected to the first end of the pull-up resistor, and the base is connected to the first end of the second resistor; The second end of the pull-up resistor is connected to the pull-up node; A first end of the first resistor is connected to the pull-up node, and a second end of the first resistor is connected to the second interface; The second end of the second resistor is connected to the third interface; The pull-up resistor control module is specifically configured to: turn off the transistor, cause the second interface to output a high level, and cut off the pull-up resistor to generate a first audio source switching signal.

2. The Bluetooth adapter according to claim 1, wherein: The universal serial bus module is further configured to receive a second audio source switching instruction sent by the wearable device, where the second audio source switching instruction is configured to instruct the audio playback mode to be switched from playback by the terminal device to playback by the wearable device; The pull-up resistor control module is further configured to receive the second audio source switching instruction from the universal serial bus module; and generate a second audio source switching signal according to the second audio source switching instruction; The Bluetooth chip is further used to send the second audio source switching signal to the terminal device, so that the terminal device switches the audio playback mode from playback by the terminal device to playback by the wearable device.

3. The Bluetooth adapter according to claim 2, wherein: The pull-up resistor control module is specifically used to: The second interface outputs a low level, turns on the transistor, and connects the pull-up resistor to generate a second audio source switching signal.

4. A method for switching audio sources, characterized in that: Applied to the Bluetooth adapter according to any one of claims 1 to 3, the method comprises: Receive a first audio source switching instruction sent by a wearable device, where the first audio source switching instruction is used to instruct to switch the audio playback mode from playback by the wearable device to playback by the terminal device; generating a first audio source switching signal according to the first audio source switching instruction; The first audio source switching signal is sent to a terminal device connected to the Bluetooth adapter, so that the terminal device switches the audio playback mode from playback by the wearable device to playback by the terminal device.

5. The method according to claim 4, characterized in that The first audio source switching instruction is generated by one of the following methods: generating a first audio source switching instruction when the remaining power of the wearable device is less than or equal to a preset first threshold; or A first sound source switching instruction is generated when a preset first sound source switching operation is detected for the wearable device, wherein the preset first sound source switching operation is used to instruct to switch the audio playback mode from playback by the wearable device to playback by the terminal device.

6. The method according to claim 4, characterized in that Also includes: receiving a second audio source switching instruction sent by the wearable device, where the second audio source switching instruction is used to instruct to switch the audio playback mode from playback by the terminal device to playback by the wearable device; generating a second audio source switching signal according to the second audio source switching instruction; The second audio source switching signal is sent to the terminal device, so that the terminal device switches the audio playback mode from playback by the terminal device to playback by the wearable device.

7. The method according to claim 6, characterized in that The second audio source switching instruction is generated by one of the following methods: generating a second audio source switching instruction when the remaining power of the wearable device is greater than or equal to a preset second threshold; or A second audio source switching instruction is generated when a preset second audio source switching operation is detected for the wearable device, wherein the preset second audio source switching operation is used to instruct the audio playback mode to be switched from playback by the terminal device to playback by the wearable device.

8. An electronic device, characterized in that: include: Memory for storing computer programs; A processor is configured to execute a computer program stored in the memory, and when the computer program is executed, implements the method described in any one of claims 4 to 7.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 4 to 7 is implemented.

Citation Information

Patent Citations

  • Method and device for switching audio playback mode

    CN107124512A

  • Audio playing method and terminal equipment

    CN113963732A

  • Bluetooth conversion circuit module

    CN204375144U