Audio communication method, device and equipment based on charging bin and storage medium
By introducing interface units and detection functions into the charging chamber of Bluetooth headsets, establishing EDR connections, the audio communication problem between Bluetooth headsets and terminals without Bluetooth function is solved, and audio data transmission and playback without additional hardware is realized, and adaptation is improved. Sex and user experience.
Patent Information
- Application Number
- CN202411165355.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2025-01-10
AI Technical Summary
Traditional Bluetooth headsets cannot directly communicate audio with terminal devices that do not have Bluetooth capabilities (such as personal computers), resulting in users having to purchase additional hardware or perform cumbersome operations to obtain and transmit audio data.
By introducing an interface unit for accessing the smart terminal in the charging chamber of the Bluetooth headset, the status of the Bluetooth headset is detected and the EDR connection is established to achieve the forwarding of audio data, so that the audio data of the smart terminal can be played without the need for additional hardware peripherals.
It improves the adaptability of Bluetooth headphones to different smart terminals, simplifies user operations, improves user experience, and reduces hardware redundancy and operation complexity.
Smart Images

Figure CN119299902A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of audio communication technology, and in particular to an audio communication method, device, equipment and storage medium based on a charging compartment. Background Art
[0002] Bluetooth headsets are an audio device that is free from the constraints of traditional cables and are currently a popular electronic product. The Bluetooth headset charging compartment is mainly used to charge Bluetooth headsets and is usually equipped with a charging cable for charging, such as a USB cable, which usually also has a communication function. Usually, after the Bluetooth headset is fully charged, it is taken out and connected to a mobile terminal such as a mobile phone to obtain the audio data of the mobile terminal for music playback or calls.
[0003] However, if some terminals, such as personal computers (PCs) and TVs, do not have Bluetooth functions, if users want to listen to audio from such terminals, taking PCs as an example, the mainstream solutions are: 1. Obtain audio data or call data from the PC by inserting a wired speaker or wired headset into the PC; 2. Obtain audio data or call data from the PC by inserting a Bluetooth-enabled peripheral, such as a Bluetooth dongle, into the PC, and then wirelessly connecting the Bluetooth headset to the Bluetooth dongle.
[0004] Therefore, for traditional terminals without Bluetooth function, even if you have Bluetooth headsets and their charging cases, you cannot directly obtain the audio of such terminals through Bluetooth headsets, but need to buy wired speakers or wired headsets or Bluetooth dongles. On the one hand, this will lead to higher costs for users and redundant hardware equipment; on the other hand, even if you use peripherals such as Bluetooth dongles, connecting Bluetooth headsets to them requires repeated manual operations on the mobile phone and the Bluetooth dongle, which is cumbersome and has a poor user experience.
[0005] Therefore, how to expand the function of the charging case so that the Bluetooth headset can adapt to different terminals has become a technical problem that needs to be solved urgently. Summary of the invention
[0006] Based on the above situation, the main purpose of this application is to provide an audio communication method, device, equipment and storage medium based on a charging case, so as to address the problem of how to expand the function of the charging case so that the Bluetooth headset can adapt to different terminals.
[0007] To achieve the above objectives, the technical solutions adopted in this application are as follows:
[0008] In a first aspect, an embodiment of the present application discloses an audio communication method based on a charging compartment, which is applied to a charging compartment of a Bluetooth headset, wherein the charging compartment includes an interface unit for accessing a smart terminal, and the audio communication method includes:
[0009] S100, when the smart terminal is connected and audio data sent by the smart terminal is received, confirm whether the Bluetooth headset is located in the charging compartment;
[0010] S200, when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is powered on, establish an EDR connection with the Bluetooth headset;
[0011] S300: After establishing an EDR connection with the Bluetooth headset, the received audio data is sent to the Bluetooth headset through the established EDR connection.
[0012] Optionally, after step S100, the audio communication method further includes:
[0013] S400, when the Bluetooth headset is not in the charging compartment and is in a powered-off state, issuing a first prompt to prompt the user to power on the Bluetooth headset;
[0014] S500, after the Bluetooth headset is turned on, establish an EDR connection with the Bluetooth headset.
[0015] Optionally, step S200 includes:
[0016] S201, when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is turned on, confirm whether the Bluetooth headset has an EDR connection with other terminals;
[0017] S202, if the Bluetooth headset has an EDR connection with the other terminal, sending a disconnection instruction to the Bluetooth headset; the disconnection instruction is used to instruct the Bluetooth headset to disconnect the EDR connection with the other terminal;
[0018] S203: If the Bluetooth headset does not have an EDR connection with other terminals or has disconnected the EDR connection with other terminals, establish an EDR connection with the Bluetooth headset.
[0019] Optionally, step S200 includes:
[0020] S201', when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is turned on, confirm whether the Bluetooth headset has an EDR connection with other terminals;
[0021] S202', if the Bluetooth headset has an EDR connection with another terminal and the existing EDR connection is used for voice calls, execute a second prompt to prompt the user that a connection with the Bluetooth headset cannot be established at present;
[0022] S203', if the Bluetooth headset has an EDR connection with the other terminal and the existing EDR connection is not used for voice calls, send a disconnection instruction to the Bluetooth headset; the disconnection instruction is used to instruct the Bluetooth headset to disconnect the EDR connection with the other terminal;
[0023] S204', if the Bluetooth headset has no EDR connection with other terminals or has disconnected the EDR connection with other terminals, establish an EDR connection with the Bluetooth headset.
[0024] Optionally, after step S100, the audio communication method further includes:
[0025] S600, when the Bluetooth headset is in the charging compartment, establish an EDR connection with the Bluetooth headset;
[0026] S700, after establishing an EDR connection with the Bluetooth headset, if the Bluetooth headset changes from being located in the charging compartment to being out of the charging compartment, the received audio data is sent to the Bluetooth headset through the established EDR connection.
[0027] Optionally, after step S600, the audio communication method further includes:
[0028] Step S800, after establishing an EDR connection with the Bluetooth headset, if the Bluetooth headset is still in the charging compartment, storing the received audio data;
[0029] Step S900, when the storage time of the audio data exceeds a preset time and the Bluetooth headset is still in the charging compartment, the stored audio data is deleted.
[0030] In a second aspect, an embodiment of the present application discloses an audio communication device, which is applied to a charging compartment of a Bluetooth headset, wherein the charging compartment includes an interface unit for accessing a smart terminal, and the audio communication device includes:
[0031] A detection unit, used to confirm whether the Bluetooth headset is located in the charging compartment when the smart terminal is connected and audio data sent by the smart terminal is received;
[0032] The main control unit is used to establish an EDR connection with the Bluetooth headset when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is powered on;
[0033] The audio unit is used to send the received audio data to the Bluetooth headset through the established EDR connection after establishing an EDR connection with the Bluetooth headset.
[0034] Optionally, the audio communication device further includes:
[0035] An interaction unit, configured to issue a first prompt to prompt a user to power on the Bluetooth headset when the Bluetooth headset is not in the charging compartment and is in a powered-off state;
[0036] The communication unit is also used to establish an EDR connection with the Bluetooth headset after the Bluetooth headset is turned on.
[0037] Optionally, the main control unit includes:
[0038] A connection confirmation subunit is used to confirm whether the Bluetooth headset has an EDR connection with other terminals when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is turned on;
[0039] A disconnection subunit, used for sending a disconnection instruction to the Bluetooth headset when the Bluetooth headset has an EDR connection with other terminals; the disconnection instruction is used to instruct the Bluetooth headset to disconnect the EDR connection with other terminals;
[0040] The connection establishment subunit is used to establish an EDR connection with the Bluetooth headset when the Bluetooth headset does not have an EDR connection with other terminals or has disconnected the EDR connection with other terminals.
[0041] Optionally, the main control unit includes:
[0042] A connection confirmation subunit is used to confirm whether the Bluetooth headset has an EDR connection with other terminals when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is turned on;
[0043] A prompting subunit, configured to, when the Bluetooth headset has an EDR connection with another terminal and the existing EDR connection is used for a voice call, execute a second prompt to prompt the user that a connection cannot be established with the Bluetooth headset at present;
[0044] A disconnection subunit, used for sending a disconnection instruction to the Bluetooth headset when the Bluetooth headset has an EDR connection with the other terminal and the existing EDR connection is not used for voice calls; the disconnection instruction is used to instruct the Bluetooth headset to disconnect the EDR connection with the other terminal;
[0045] The connection establishment subunit is used to establish an EDR connection with the Bluetooth headset when the Bluetooth headset does not have an EDR connection with other terminals or has disconnected the EDR connection with other terminals.
[0046] Optionally, the main control unit is further used to establish an EDR connection with the Bluetooth headset when the Bluetooth headset is in the charging compartment;
[0047] The audio unit is also used to send the received audio data to the Bluetooth headset through the established EDR connection after establishing an EDR connection with the Bluetooth headset, if the Bluetooth headset changes from being located in the charging compartment to being out of the charging compartment.
[0048] Optionally, the audio communication device comprises:
[0049] A storage unit, used to store received audio data after establishing an EDR connection with the Bluetooth headset if the Bluetooth headset is still in the charging compartment;
[0050] The clearing unit is used to delete the stored audio data when the storage time of the audio data exceeds a preset time and the Bluetooth headset is still in the charging compartment.
[0051] In a third aspect, an embodiment of the present invention discloses a Bluetooth headset charging case, comprising: a processor for implementing the audio communication method disclosed in the first aspect above.
[0052] In a fourth aspect, an embodiment of the present invention discloses a chip of an audio device, on which an integrated circuit is provided, and the integrated circuit is designed to implement the method disclosed in the first aspect.
[0053] In a fifth aspect, an embodiment of the present invention discloses a computer-readable storage medium having a computer program stored thereon, wherein the computer program stored in the storage medium is used to be executed to implement the method disclosed in the first aspect above.
[0054] Beneficial effects:
[0055] According to the audio communication method, device, equipment and storage medium based on the charging bin disclosed in the embodiment of the present invention, the method is applied to the charging bin of the Bluetooth headset, and the charging bin includes an interface unit for accessing the smart terminal. When the smart terminal is accessed and the audio data sent by the smart terminal is received, the charging bin confirms whether the Bluetooth headset is located in the charging bin; when the Bluetooth headset is not in the charging bin and the Bluetooth headset is in the power-on state, an EDR connection is established with the Bluetooth headset; after the EDR connection is established with the Bluetooth headset, the received audio data is sent to the Bluetooth headset through the established EDR connection. Through the above scheme, even if the Bluetooth headset is not in the charging bin, the charging bin can automatically establish an EDR connection suitable for audio transmission with the Bluetooth headset, and forward the audio data received from the smart terminal to the Bluetooth headset through the EDR connection, so that the audio of the smart terminal can be played through the Bluetooth headset without adding other hardware peripherals. This scheme improves the adaptability of the Bluetooth headset to different smart terminals. At the same time, the playback of audio data on the smart terminal does not require the user to perform cumbersome operations at the Bluetooth headset or on other terminals, which improves the user experience.
[0056] Other beneficial effects of the present invention will be explained in the specific implementation manner through the introduction of specific technical features and technical solutions. Through the introduction of these technical features and technical solutions, those skilled in the art should be able to understand the beneficial technical effects brought about by the technical features and technical solutions. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] The following will describe an embodiment of the present invention with reference to the accompanying drawings.
[0058] Figure 1 Shown is a schematic diagram of an application environment of an audio communication method disclosed in an embodiment of the present application.
[0059] Figure 2 The figure is a flow chart of an audio communication method disclosed in one embodiment of the present application.
[0060] Figure 3 FIG. 1 is a schematic diagram of a detailed flow chart of step S200 disclosed in an embodiment of the present application.
[0061] Figure 4 FIG. 1 is a schematic diagram of a detailed flow chart of step S200 disclosed in an embodiment of the present application.
[0062] Figure 5 Shown is a schematic diagram of the structure of an audio communication device applied to a charging bin disclosed in one embodiment of the present application. DETAILED DESCRIPTION
[0063] In order to solve the problem of poor compatibility between Bluetooth headsets and traditional terminals, the present application discloses an audio communication method applied to a charging bin. Figure 1 , which is a schematic diagram of the application environment of the audio communication method disclosed in the embodiment of the present application. Figure 1 As shown, the Bluetooth headset 10 is a headset used in conjunction with the charging compartment 20, and the two can be connected wirelessly. For example, the connection can be maintained through a BLE (Bluetooth Low Energy) connection. When audio data needs to be transmitted, an EDR (Enhanced Data Rate) connection can also be established between the Bluetooth headset 10 and the charging compartment 20. The charging compartment 20 and the smart terminal 30 are connected by a cable 21.
[0064] Understandably, Figure 1 The smart terminal 30 shown in the figure is a personal computer PC, but the present application does not limit the type of the smart terminal 30. The smart terminal 30 can be any terminal without Bluetooth function, or any terminal with Bluetooth function but unable to establish Bluetooth connection with the Bluetooth headset 10.
[0065] The Bluetooth headset 10 and the charging compartment 20 are usually used together. The charging compartment 20 can be used to accommodate the Bluetooth headset 10 and charge the Bluetooth headset 10. Figure 1 As shown, the charging compartment 20 is usually also equipped with a cable 21, which is, for example, a USB (Universal Serial Bus) cable. The charging compartment 20 includes an interface unit, through which the USB cable 21 connects the charging compartment box body and other power sources ( Figure 1 (not shown) or a smart terminal to charge the charging compartment 20 and / or communicate with the charging compartment.
[0066] It should be noted that the interface type on the charging bin 20 can be a USB interface such as a TYPE-A interface, a TYPE-C interface, or a Lightning interface, etc. This application does not limit the interface type of the interface unit of the charging bin 20. It is understandable that the type of the cable 21 is adapted to the charging bin interface type to achieve a wired connection between the charging bin 20 and the smart terminal or power supply.
[0067] It should be noted that the Bluetooth headset 10 can be a complete set of Bluetooth audio playback device pairs, and each Bluetooth headset 10 can include two identical headsets. When one headset acts as a master headset, the other headset acts as a slave headset, and the roles of the master headset and the slave headset can be interchanged. For example, each wireless headset pair includes a left headset and a slave headset. When the left headset is the master headset, the right headset is the slave headset; or when the left headset is the slave headset, the right headset is the master headset.
[0068] It should be noted that, in some embodiments, the connection between the charging compartment 10 and the Bluetooth headset 10 referred to in this application may refer to the connection between the charging compartment 10 and the main headset of the Bluetooth headset 10, for example, there is a BLE connection or EDR connection between the charging compartment 10 and the main headset of the Bluetooth headset 10. Data communication and command sending between the charging compartment 10 and the slave headset can be forwarded by the master headset, or actively monitored by the slave headset. In other embodiments, the connection between the charging compartment 10 and the Bluetooth headset 10 may also refer to the simultaneous existence of Bluetooth connections such as BLE connections or EDR connections between the charging compartment 10 and the master and slave headsets of the Bluetooth headset 10, and this application does not limit this.
[0069] Please refer to Figure 2 , shown is a flow chart of an audio communication method based on a charging bin disclosed in an embodiment of the present application, which is applied to Figure 1 The charging compartment shown in the figure, the audio communication method is used to enable the Bluetooth headset to play the audio of the smart terminal through the charging compartment. Figure 2 As shown, the audio communication method includes steps S100 to S300, and each step is described below.
[0070] Step S100, when the smart terminal is connected and audio data sent by the smart terminal is received, confirm whether the Bluetooth headset is located in the charging compartment.
[0071] Specifically, the charging compartment 20 can confirm whether a smart terminal is connected through the interface unit. When the user connects the interface unit of the charging compartment to the corresponding peripheral interface on the smart terminal 30 through the cable 21, the charging compartment 20 can confirm that a device is connected to the interface unit. This application does not limit how to identify device access, and it can be implemented using existing technologies. For example, it can be confirmed based on the CC detection of the USB protocol whether the connected device is a smart terminal 30 or a power supply.
[0072] When the interface unit of the charging compartment 20 is connected to the smart terminal 30, the smart terminal 30 can communicate with the charging compartment 20. At this time, the communication data transmitted may be other communication data in addition to audio data. For example, when the charging compartment 20 is charging, the communication data transmitted between the charging compartment 20 and the smart terminal may be charging information, such as charging current, voltage and other information. Therefore, the charging compartment 20 distinguishes the received data, and only when the received data is audio data, will it interact with the Bluetooth headset 10 in the subsequent process.
[0073] It can be understood that when the user connects the charging compartment 20 to the smart terminal 30 and operates the smart terminal 30 to send audio data to the charging compartment 20, the Bluetooth headset 10 may be taken out of the charging compartment 20 by the user, or may still be in the charging compartment 20. Therefore, when the smart terminal 30 communicates with the charging compartment 20 through the cable 21 and sends audio data, the charging compartment 20 further confirms the current location of the Bluetooth headset 10, including: being in the charging compartment, or not in the charging compartment.
[0074] Step S200, when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is in the powered-on state, establishing an EDR connection with the Bluetooth headset;
[0075] When the Bluetooth headset 10 is not in the charging compartment, the Bluetooth headset 10 may be in use or in an idle state. For the Bluetooth headset 20 in an idle state, it will usually automatically shut down after being idle for a certain period of time. Therefore, only when it is confirmed that the Bluetooth headset 10 is in the power-on state, the charging compartment 20 will send an EDR connection request to the Bluetooth headset 10 and establish an EDR connection with the Bluetooth headset 10.
[0076] Step S300: After establishing an EDR connection with the Bluetooth headset, the received audio data is sent to the Bluetooth headset through the established EDR connection.
[0077] When the EDR connection is successfully established between the Bluetooth headset 10 and the charging case 20, the charging case 20 acts as a data transfer station, receives the audio data sent by the smart terminal 30 through the cable 21, and sends the received audio data to the Bluetooth headset 10 in a timely manner through the EDR connection between the Bluetooth headset 10, which is played by the Bluetooth headset 10.
[0078] The audio communication method disclosed in the above embodiment is that when the charging compartment is connected to the smart terminal and receives the audio data sent by the smart terminal, it confirms whether the Bluetooth headset is located in the charging compartment; when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is in the power-on state, an EDR connection is established with the Bluetooth headset; after the EDR connection is established with the Bluetooth headset, the received audio data is sent to the Bluetooth headset through the established EDR connection. Even if the Bluetooth headset is not in the charging compartment, the charging compartment can automatically establish an EDR connection suitable for audio transmission with the Bluetooth headset, and forward the audio data received from the smart terminal to the Bluetooth headset through the EDR connection, so that the audio of the smart terminal can be played through the Bluetooth headset without adding other hardware peripherals. This solution improves the adaptability of Bluetooth headsets to different smart terminals. At the same time, the playback of audio data on the smart terminal does not require the user to perform cumbersome operations at the Bluetooth headset or on other terminals, which improves the user experience.
[0079] Please continue to refer to Figure 2 In some embodiments, the audio communication method further includes steps S400-S500.
[0080] Step S400, when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is in a powered-off state, a first prompt is issued to prompt the user to power on the Bluetooth headset.
[0081] As mentioned above, the Bluetooth headset 20 in an idle state will usually be automatically turned off after being idle for a certain period of time. Therefore, if the Bluetooth headset 10 is not in the charging compartment 20 and has been turned off, the charging compartment 20 will issue a first prompt to prompt the user to perform a power-on operation on the Bluetooth headset.
[0082] In some embodiments, the charging compartment 20 may include a display unit such as a display screen, and the first prompt may be an information prompt on the display screen.
[0083] In some embodiments, the charging compartment 20 includes an indicator light indicating the charging status, and the first prompt can be implemented by multiplexing the indicator light, for example, by causing the indicator light to flash in a preset manner to prompt the user to perform a power-on operation.
[0084] In some embodiments, the first prompt may be an information prompt on a display screen of a smart terminal, such as a pop-up window display.
[0085] After seeing the first prompt, the user can turn on the Bluetooth headset 10, for example, by tapping / touching the power button / area on the Bluetooth headset 10, or by placing the Bluetooth headset 10 back into the charging compartment 20 and taking it out again to turn it on.
[0086] Step S500, after the Bluetooth headset is turned on, an EDR connection is established with the Bluetooth headset.
[0087] When the user performs a power-on operation to turn on the Bluetooth headset 10, it can be understood that the Bluetooth headset 10 must not have established a Bluetooth connection with other terminals at this time. Therefore, after the Bluetooth headset 10 is turned on, the charging compartment 20 can immediately establish an EDR connection with the Bluetooth headset.
[0088] In the above embodiment, when the Bluetooth headset 10 is taken out of the charging compartment 20 and is not turned on, the charging compartment 20 can prompt the user to turn on the device. As soon as the Bluetooth headset 10 is turned on, the charging compartment 20 immediately establishes an EDR connection with the Bluetooth headset 10 to forward audio data. The entire process does not require the user to manually connect, which reduces the user's operations and does not require the addition of other hardware peripherals, thereby realizing automatic audio playback between the Bluetooth headset and the smart terminal based on the charging compartment.
[0089] Please refer to Figure 3 , Figure 3 FIG. 2 is a detailed flow chart of step S200 in an embodiment of the present application. Figure 3 As shown, in some embodiments, step S200 includes:
[0090] S201, when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is in the powered-on state, confirm whether the Bluetooth headset has an EDR connection with other terminals.
[0091] When the Bluetooth headset 10 is not in the charging compartment and is in the power-on state, the Bluetooth headset 10 may be in use or in an idle state, for example, it is currently connected to a mobile terminal such as a mobile phone, or the idle time has not yet reached the automatic shutdown time. It is understandable that even if the Bluetooth headset 10 is not in the charging compartment, as long as the Bluetooth headset 10 is in the power-on state and within the Bluetooth connection range, a BLE connection is usually maintained between the Bluetooth headset 10 and the charging compartment 20. In some embodiments, the charging compartment 20 can send an inquiry instruction to the Bluetooth headset 10 through the BLE connection to confirm whether it can currently make an EDR connection. After receiving the inquiry instruction, the Bluetooth headset 10 responds, for example, replying whether the charging compartment 20 has established an EDR connection, so that the charging compartment 20 can confirm the current EDR connection status of the Bluetooth headset 10.
[0092] S202: If the Bluetooth headset has an EDR connection with other terminals, a disconnection instruction is sent to the Bluetooth headset; the disconnection instruction is used to instruct the Bluetooth headset to disconnect the EDR connection with other terminals.
[0093] If the Bluetooth headset 10 has currently established an EDR connection with other terminals such as a mobile phone, the charging compartment 20 needs to send a disconnection command to the Bluetooth headset 10 through the established BLE connection. After receiving the disconnection command, the Bluetooth headset 10 executes the command as the highest priority command, cuts off the EDR connection with other terminals, waits for the EDR connection of the charging compartment 20, or actively sends an EDR back connection with the charging compartment.
[0094] S203: If the Bluetooth headset does not have an EDR connection with other terminals or has disconnected the EDR connection with other terminals, establish an EDR connection with the Bluetooth headset.
[0095] After there is no EDR connection between the Bluetooth headset 10 and other terminals, the charging compartment 20 can establish an EDR connection with the Bluetooth headset 20, and forward the audio data received from the smart terminal 30 to the Bluetooth headset 10 through the EDR connection, and the Bluetooth headset 10 will play it.
[0096] In the prior art, when switching connection objects, a general Bluetooth headset often requires the user to manually select to cut off the connection with the original terminal on the original terminal, and then manually select the Bluetooth headset on the new terminal to achieve the connection. Or, turn off the Bluetooth function of the original terminal to cut off the connection between the Bluetooth headset and the original terminal, and then manually select the Bluetooth headset on the new terminal to achieve the connection. The operation is cumbersome, and both the original terminal and the new terminal need to have Bluetooth functions. In the above embodiment, when the Bluetooth headset 10 establishes an EDR connection with other terminals, the charging compartment 20 can actively make the Bluetooth headset 10 cut off the existing EDR connection and automatically establish a connection with the charging compartment 20. The user does not need to operate the disconnection and reconnection operations throughout the process, and the Bluetooth headset connection object can be switched, and the audio data of the smart terminal can be automatically played. There is no need for the smart terminal to have Bluetooth function, and no user operation is required. By reusing the charging compartment, the Bluetooth headset can be switched from connecting to the original terminal to playing the audio of the smart terminal, which saves hardware costs, realizes automatic switching and automatic playback, and provides a good user experience.
[0097] Please refer to Figure 4 , which is a detailed flow chart of step S200 in another embodiment of the present application. Figure 4 As shown, in one embodiment, step S200 includes:
[0098] S201', when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is in the powered-on state, confirm whether the Bluetooth headset has an EDR connection with another terminal.
[0099] S202', if the Bluetooth headset has an EDR connection with another terminal and the existing EDR connection is used for voice calls, execute a second prompt to prompt the user that a connection with the Bluetooth headset cannot be established currently.
[0100] S203', if the Bluetooth headset has an EDR connection with other terminals and the existing EDR connection is not used for voice calls, send a disconnection instruction to the Bluetooth headset; the disconnection instruction is used to instruct the Bluetooth headset to disconnect the EDR connection with other terminals.
[0101] S204', if the Bluetooth headset has no EDR connection with other terminals or has disconnected the EDR connection with other terminals, establish an EDR connection with the Bluetooth headset.
[0102] This embodiment and Figure 3 The difference between the illustrated embodiments is that in this embodiment, when the Bluetooth headset 10 has an EDR connection with another terminal, the charging compartment 20 will further confirm the purpose of the EDR connection, for example, for voice calls or for audio playback. When the existing EDR connection is used for voice calls, it means that the mobile terminal currently connected to the Bluetooth headset 10 has the highest priority. At this time, the call should not be disconnected for audio playback. Therefore, the charging compartment 20 will execute the second prompt, prompting the user that it is currently unable to establish a connection with the Bluetooth headset.
[0103] It can be understood that whether the existing EDR connection is used for voice calls can be confirmed by the protocol used by the current EDR connection of the Bluetooth headset 10. For example, if the EDR connection currently uses the HFP (Hands-Free Profile) or HSP (Headset Profile) protocol, it can be confirmed that the EDR connection is currently used for voice calls, otherwise, it is used for audio playback or other. The above information can be responded by the Bluetooth headset 10 after receiving the inquiry instruction from the charging compartment 20, and this application does not limit this.
[0104] On the contrary, if the existing EDR connection is not used for voice calls, the charging compartment 20 can continue to send a disconnection instruction, and the subsequent process is the same as Figure 3 The same is shown and will not be repeated here.
[0105] It can be understood that the implementation method of the second prompt here is similar to the first prompt. It can be performed through the display unit, indicator light, etc. of the charging compartment 20, or through a smart terminal. As long as the user can be prompted, this application does not impose any restrictions on this.
[0106] It can be understood that when the user receives the second prompt, if the user wants to stop the voice call and play audio, the user can manually operate the mobile terminal to manually cut off the connection between the mobile terminal and the Bluetooth headset 10. When the charging compartment receives the audio data from the smart terminal 30 again, it will try to connect to the Bluetooth headset again, as described in the aforementioned embodiments, and this application will not elaborate on this.
[0107] In the above embodiment, when the Bluetooth headset 10 establishes an EDR connection with other terminals and the connection is used for voice calls, the charging case 20 will not directly cut off the existing EDR connection of the Bluetooth headset 10, but will prioritize ensuring the normal conduct of the user's voice call, and prompt the user through a second prompt, which is left to the user to choose, thereby ensuring the priority of the voice call and avoiding user misoperation that causes the audio playback to affect the voice call of the Bluetooth headset.
[0108] In one embodiment, after step S100, the audio communication method further includes step 600 and step S700.
[0109] Step S600, when the Bluetooth headset is in the charging compartment, establishing an EDR connection with the Bluetooth headset;
[0110] Step S700, after establishing an EDR connection with the Bluetooth headset, if the Bluetooth headset changes from being located in the charging compartment to being out of the charging compartment, the received audio data is sent to the Bluetooth headset through the established EDR connection.
[0111] If the Bluetooth headset 10 is in the charging compartment 20 when the charging compartment 20 receives the audio data sent by the smart terminal 30, it means that the Bluetooth headset 10 is in an idle state. At this time, the charging compartment 20 can directly establish an EDR connection with the Bluetooth headset 10. However, since the Bluetooth headset 10 is still in the compartment, there is no need to transmit audio data at this time. When the user takes the Bluetooth headset 10 out of the charging compartment 20, the charging compartment 20 starts to send the received audio data to the Bluetooth headset 10 through the EDR connection. In this way, the user can enjoy the music being played as soon as he puts on the Bluetooth headset 10.
[0112] The transmission of audio data starts only after the Bluetooth headset 10 is taken out, thereby avoiding the waste of communication bandwidth.
[0113] Further, after step S600 , the audio communication method further includes step 800 and step 900 .
[0114] Step S800, after establishing an EDR connection with the Bluetooth headset, if the Bluetooth headset is still in the charging compartment, storing the received audio data;
[0115] Step S900, when the storage time of the audio data exceeds a preset time and the Bluetooth headset is still in the charging compartment, the stored audio data is deleted.
[0116] It can be understood that if the charging compartment 20 receives the audio data sent by the smart terminal 30 and establishes an EDR connection with the Bluetooth headset 10, and the user has not taken the Bluetooth headset 10 out of the compartment, the charging compartment 20 can temporarily store the received audio data. Since the storage space of the charging compartment 20 is limited, when the audio data storage time exceeds the preset time and the Bluetooth headset 10 has been in the charging compartment and has not been taken out, the charging compartment 20 can delete the stored audio data.
[0117] It can be understood that if the Bluetooth headset is always in the charging compartment for a period of time after the charging compartment 20 first receives the audio data sent by the smart terminal 30, it means that the user may not need to play the audio data through the Bluetooth headset 10. At this time, the smart terminal 30 can ignore the audio data sent by the smart terminal, for example, not receive it or directly discard it.
[0118] Through the above embodiment, the charging warehouse can temporarily store the audio data sent by the smart terminal, and send it in time after the user takes out the Bluetooth headset and wears it, so as to avoid sending it in advance and causing some audio data to be unable to be listened to by the user in time.
[0119] Please refer to Figure 5 The embodiment of the present application also discloses an audio communication device, which is applied to a charging compartment of a Bluetooth headset, and the charging compartment includes an interface unit for accessing a smart terminal. The audio communication device 500 includes a detection unit 510, a main control unit 520, and an audio unit 530.
[0120] The detection unit 510 is used to confirm whether the Bluetooth headset is located in the charging compartment when the smart terminal is connected and the audio data sent by the smart terminal is received;
[0121] The main control unit 520 is used to establish an EDR connection with the Bluetooth headset when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is in a powered-on state;
[0122] The audio unit 530 is used to send the received audio data to the Bluetooth headset through the established EDR connection after establishing an EDR connection with the Bluetooth headset.
[0123] In addition to the above units, the charging compartment may also include functional units for realizing other basic functions of the charging compartment, such as a power supply unit, a display unit, a storage unit, a sensor unit, a data instruction unit, a communication unit, and the like. The power supply unit is used to realize the charging function of the Bluetooth headset and to receive the charge of the power supply unit. The display unit is used for information display, such as displaying a function interface, a menu button, or prompt information. The storage unit can be implemented by a memory to realize data / instruction storage. The sensor unit may include a touch sensor for realizing touch detection, such as a touch display on a display unit or a touch detection of a preset touch area of the charging compartment housing. The communication unit mainly includes an antenna for realizing the reception and transmission of Bluetooth signals. For example, the above-mentioned main control unit 520 establishes an EDR connection with the Bluetooth headset and the audio data transmission and reception of the audio unit 530 are ultimately carried out through the transceiver antenna of the communication unit.
[0124] It can be understood that the detection unit 510, the main control unit 520 and the audio unit 530 are all units required for the charging warehouse to realize the basic functions of the charging warehouse. Therefore, the solution of the present application can be fully reused by reusing the original hardware resources of the charging warehouse without increasing more hardware costs.
[0125] In some embodiments, the audio communication device 500 further includes: an interaction unit 540, configured to issue a first prompt to prompt the user to power on the Bluetooth headset when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is powered off. The main control unit 520 is also configured to establish an EDR connection with the Bluetooth headset after the Bluetooth headset is powered on.
[0126] In some embodiments, the main control unit 520 includes:
[0127] A connection confirmation subunit is used to confirm whether the Bluetooth headset has an EDR connection with other terminals when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is turned on;
[0128] A disconnection subunit, used for sending a disconnection instruction to the Bluetooth headset when the Bluetooth headset has an EDR connection with other terminals; the disconnection instruction is used to instruct the Bluetooth headset to disconnect the EDR connection with other terminals;
[0129] The connection establishment subunit is used to establish an EDR connection with the Bluetooth headset when the Bluetooth headset does not have an EDR connection with other terminals or has disconnected the EDR connection with other terminals.
[0130] In some embodiments, the main control unit 520 includes:
[0131] A connection confirmation subunit is used to confirm whether the Bluetooth headset has an EDR connection with other terminals when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is turned on;
[0132] A prompting subunit, configured to, when the Bluetooth headset has an EDR connection with another terminal and the existing EDR connection is used for a voice call, execute a second prompt to prompt the user that a connection cannot be established with the Bluetooth headset at present;
[0133] A disconnection subunit, used for sending a disconnection instruction to the Bluetooth headset when the Bluetooth headset has an EDR connection with the other terminal and the existing EDR connection is not used for voice calls; the disconnection instruction is used to instruct the Bluetooth headset to disconnect the EDR connection with the other terminal;
[0134] The connection establishment subunit is used to establish an EDR connection with the Bluetooth headset when the Bluetooth headset does not have an EDR connection with other terminals or has disconnected the EDR connection with other terminals.
[0135] In some embodiments, the main control unit 520 is further configured to establish an EDR connection with the Bluetooth headset when the Bluetooth headset is in the charging compartment. The audio unit 530 is further configured to, after establishing the EDR connection with the Bluetooth headset, send the received audio data to the Bluetooth headset through the established EDR connection if the Bluetooth headset changes from being in the charging compartment to not being in the charging compartment.
[0136] In some embodiments, the audio communication device further comprises:
[0137] A storage unit, used to store received audio data after establishing an EDR connection with the Bluetooth headset if the Bluetooth headset is still in the charging compartment;
[0138] The clearing unit is used to delete the stored audio data when the storage time of the audio data exceeds a preset time and the Bluetooth headset is still in the charging compartment.
[0139] It can be understood that the detailed process of the audio communication device implementing the audio communication method based on the charging case through the above-mentioned units can be referred to the description of the above-mentioned embodiments and will not be repeated here.
[0140] This embodiment also discloses a Bluetooth headset charging compartment, which is a charging device used in conjunction with a Bluetooth headset, and is used to accommodate and charge a pair of wireless headsets, and includes an interface unit for accessing a smart terminal or a power supply, and can be connected to the smart terminal or the power supply via a cable. The Bluetooth headset charging compartment includes: a processor, which is used to implement the audio communication method disclosed in the above embodiment.
[0141] This embodiment further discloses a computer-readable storage medium on which a computer program is stored. The computer program stored in the storage medium is used to be executed to implement the method disclosed in the above embodiment.
[0142] This embodiment also discloses a chip of an audio device, on which an integrated circuit is provided. The integrated circuit is designed to implement the method disclosed in the above embodiment.
[0143] It can be understood that when the chip of the audio device is used in a charging case, its integrated circuit is designed to implement the audio communication method implemented by the above-mentioned charging case.
[0144] It should be noted that the use of step numbers (letters or numbers) to refer to certain specific method steps in the present invention is only for the purpose of convenience and brevity of description, and is by no means intended to limit the order of these method steps. Those skilled in the art will appreciate that the order of the relevant method steps should be determined by the technology itself and should not be inappropriately limited by the existence of step numbers.
[0145] Those skilled in the art will appreciate that, without conflict, the above-mentioned preferred solutions can be freely combined and superimposed.
[0146] It should be understood that the above-mentioned embodiments are merely illustrative and not restrictive. Without departing from the basic principles of the present invention, various obvious or equivalent modifications or substitutions that can be made by those skilled in the art to the above-mentioned details will all be included in the scope of the claims of the present invention.
Claims
1. An audio communication method based on a charging compartment, applied to a charging compartment of a Bluetooth headset, wherein the charging compartment includes an interface unit for accessing a smart terminal, characterized in that: The audio communication method comprises: S100, when the smart terminal is connected and receives audio data sent by the smart terminal, confirm whether the Bluetooth headset is located in the charging compartment; S200, when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is in a powered-on state, establishing an EDR connection with the Bluetooth headset; S300: After establishing an EDR connection with the Bluetooth headset, sending the received audio data to the Bluetooth headset through the established EDR connection.
2. The audio communication method according to claim 1, characterized in that: After step S100, the audio communication method further includes: S400, when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is in a powered-off state, issuing a first prompt to prompt a user to power on the Bluetooth headset; S500: After the Bluetooth headset is turned on, an EDR connection is established with the Bluetooth headset.
3. The audio communication method according to claim 1, wherein: Step S200 includes: S201, when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is in a powered-on state, confirming whether the Bluetooth headset has an EDR connection with another terminal; S202, if the Bluetooth headset has an EDR connection with other terminals, sending a disconnection instruction to the Bluetooth headset; the disconnection instruction is used to instruct the Bluetooth headset to disconnect the EDR connection with other terminals; S203: If the Bluetooth headset does not have an EDR connection with other terminals or has disconnected the EDR connection with other terminals, establish an EDR connection with the Bluetooth headset.
4. The audio communication method according to claim 1, wherein: Step S200 includes: S201', when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is in a powered-on state, confirming whether the Bluetooth headset has an EDR connection with another terminal; S202', if the Bluetooth headset has an EDR connection with another terminal and the existing EDR connection is used for voice calls, execute a second prompt to prompt the user that a connection with the Bluetooth headset cannot be established at present; S203', if the Bluetooth headset has an EDR connection with other terminals and the existing EDR connection is not used for voice calls, sending a disconnection instruction to the Bluetooth headset; the disconnection instruction is used to instruct the Bluetooth headset to disconnect the EDR connection with other terminals; S204': if the Bluetooth headset has no EDR connection with other terminals or has disconnected the EDR connection with other terminals, establish an EDR connection with the Bluetooth headset.
5. The audio communication method according to claim 1, wherein: After step S100, the audio communication method further includes: S600, when the Bluetooth headset is in the charging compartment, establishing an EDR connection with the Bluetooth headset; S700, after establishing an EDR connection with the Bluetooth headset, if the Bluetooth headset changes from being located in the charging compartment to being out of the charging compartment, sending the received audio data to the Bluetooth headset through the established EDR connection.
6. The audio communication method according to claim 5, characterized in that: After step S600, the audio communication method further includes: Step S800, after establishing an EDR connection with the Bluetooth headset, if the Bluetooth headset is still in the charging compartment, storing the received audio data; Step S900, when the storage time of the audio data exceeds a preset time length and the Bluetooth headset is still in the charging compartment, the stored audio data is deleted.
7. An audio communication device, applied to a charging compartment of a Bluetooth headset, wherein the charging compartment includes an interface unit for accessing a smart terminal, characterized in that: The audio communication device comprises: a detection unit, configured to confirm whether the Bluetooth headset is located in the charging compartment when the smart terminal is connected and receives audio data sent by the smart terminal; A main control unit, used for establishing an EDR connection with the Bluetooth headset when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is in a powered-on state; The audio unit is used to send the received audio data to the Bluetooth headset through the established EDR connection after establishing an EDR connection with the Bluetooth headset.
8. The audio communication device according to claim 7, characterized in that: The audio communication device further comprises: An interaction unit, configured to issue a first prompt to prompt a user to power on the Bluetooth headset when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is in a powered-off state; The main control unit is also used to establish an EDR connection with the Bluetooth headset after the Bluetooth headset is turned on.
9. The audio communication device according to claim 7, characterized in that: The main control unit comprises: A connection confirmation subunit, used for confirming whether the Bluetooth headset has an EDR connection with another terminal when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is in a powered-on state; A disconnection subunit, configured to send a disconnection instruction to the Bluetooth headset when the Bluetooth headset has an EDR connection with other terminals; the disconnection instruction is used to instruct the Bluetooth headset to disconnect the EDR connection with other terminals; The connection establishment subunit is used to establish an EDR connection with the Bluetooth headset when there is no EDR connection between the Bluetooth headset and other terminals or the EDR connection with other terminals has been disconnected.
10. The audio communication device according to claim 7, characterized in that: The main control unit comprises: A connection confirmation subunit, used for confirming whether the Bluetooth headset has an EDR connection with another terminal when the Bluetooth headset is not in the charging compartment and the Bluetooth headset is in a powered-on state; A prompting subunit, configured to, when the Bluetooth headset has an EDR connection with another terminal and the existing EDR connection is used for a voice call, execute a second prompt to prompt the user that a connection cannot be established with the Bluetooth headset at present; A disconnection subunit, configured to send a disconnection instruction to the Bluetooth headset when there is an EDR connection between the Bluetooth headset and other terminals and the existing EDR connection is not used for voice calls; the disconnection instruction is used to instruct the Bluetooth headset to disconnect the EDR connection with other terminals; The connection establishment subunit is used to establish an EDR connection with the Bluetooth headset when there is no EDR connection between the Bluetooth headset and other terminals or the EDR connection with other terminals has been disconnected.
11. The audio communication device according to claim 7, characterized in that: The main control unit is further used to establish an EDR connection with the Bluetooth headset when the Bluetooth headset is in the charging compartment; The audio unit is also used to send the received audio data to the Bluetooth headset through the established EDR connection after establishing an EDR connection with the Bluetooth headset, if the Bluetooth headset changes from being located in the charging compartment to being out of the charging compartment.
12. The audio communication device according to claim 11, characterized in that: The audio communication device further comprises: a storage unit, configured to store the received audio data after establishing an EDR connection with the Bluetooth headset if the Bluetooth headset is still in the charging compartment; A clearing unit is used to delete the stored audio data when the storage time of the audio data exceeds a preset time and the Bluetooth headset is still in the charging compartment.
13. A Bluetooth headset charging compartment, characterized in that: include: A processor, used to implement the audio communication method based on the charging case as described in any one of claims 1-6.
14. A chip of an audio device having an integrated circuit thereon, characterized in that: The integrated circuit is designed to implement the audio communication method based on the charging case as described in any one of claims 1-6.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program stored in the storage medium is used to be executed to implement the audio communication method based on the charging case as described in any one of claims 1-6.