Bluetooth communication method, Bluetooth communication device, and storage medium
By dynamically adjusting Bluetooth device bit rates for AAC compatibility, the method addresses the inefficiencies of traditional lists, ensuring flexible and high-quality audio transmission.
Patent Information
- Application Number
- CN202110523690.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-13
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2041-05-13
AI Technical Summary
In the prior art, the AAC whitelist or blacklist between the terminal and the Bluetooth device is incomplete, resulting in the user experience during Bluetooth communication, and the preliminary test cost is high and cannot be fully covered.
By determining the advanced audio encoding format bitrate supported by the Bluetooth device, adjusting or confirming the encoding format bitrate between the terminal and the Bluetooth device, we can flexibly determine the communication encoding format and avoid relying on whitelists or blacklists.
Improves the flexibility and user experience of Bluetooth communication, ensures communication quality, and reduces the impact of testing costs and incomplete lists.
Smart Images

Figure CN115348567B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of Bluetooth communication, and in particular to a Bluetooth communication method, a Bluetooth communication device and a storage medium. Background Art
[0002] In the related art, a terminal usually establishes a communication connection with a Bluetooth device, for example, a user often uses a Bluetooth device to establish a Bluetooth communication connection with a terminal. In the Bluetooth communication process, some common types of coding formats are involved, and these coding formats play an important role in Bluetooth communication.
[0003] For example, SBC is the abbreviation of Sub-band coding, also known as sub-band coding. This coding format is the earliest Bluetooth audio coding and is a mandatory coding format stipulated by the Bluetooth audio transmission protocol. For example, AAC is the abbreviation of Advanced Audio Coding, also known as advanced audio coding, which is a file compression format designed specifically for sound data. Therefore, controlling the coding format is also crucial in data processing technology.
[0004] In the related art, Bluetooth devices produced by different manufacturers support different encoding formats, which leads to the need to determine in advance whether the Bluetooth device interacting with the terminal supports Bluetooth transmission using AAC during the interaction between the terminal and the Bluetooth device. Therefore, in order to manage the communication connection between the terminal and the Bluetooth device, the terminal manufacturer pre-determines multiple Bluetooth devices that can support Bluetooth transmission using AAC through AAC compatibility testing during the development process, and adds the Media Access Control Address (MAC) address corresponding to each Bluetooth device to the AAC whitelist in the terminal, so that when the terminal is paired with the Bluetooth device, it can be clearly stated that AAC can be used for Bluetooth transmission between the two. Alternatively, the MAC addresses corresponding to multiple Bluetooth devices that do not support Bluetooth transmission using AAC are added to the AAC blacklist in the terminal, so that when the terminal is paired with the Bluetooth device, it can be clearly stated that AAC cannot be used for Bluetooth transmission between the two.
[0005] However, using this method to determine whether the terminal and the Bluetooth device support AAC for Bluetooth transmission requires a lot of testing costs in the early stages of testing, and due to the large number of types of Bluetooth devices, the test results cannot cover all aspects, resulting in incomplete Bluetooth devices involved in the AAC whitelist or blacklist, which in turn affects the user experience when the terminal communicates with the Bluetooth device via Bluetooth. Summary of the invention
[0006] To overcome the problems existing in the related art, the present disclosure provides a Bluetooth communication method, a Bluetooth communication device, and a storage medium.
[0007] According to a first aspect of the embodiments of the present disclosure, there is provided a Bluetooth communication method applied to a terminal. The method includes: determining an encoding format used for Bluetooth communication between the terminal and a Bluetooth device; in response to the encoding format used for communication between the terminal and the Bluetooth device being an advanced audio coding format, determining an advanced audio coding format bit rate used for Bluetooth communication between the terminal and the Bluetooth device based on the advanced audio coding format bit rate supported by the Bluetooth device; and controlling the Bluetooth communication between the terminal and the Bluetooth device based on the advanced audio coding format bit rate used for Bluetooth communication between the terminal and the Bluetooth device.
[0008] In an implementation manner, the determining an advanced audio coding format bit rate used for Bluetooth communication between the terminal and the Bluetooth device based on the advanced audio coding format bit rate supported by the Bluetooth device includes: if the advanced audio coding format bit rate supported by the Bluetooth device is not within the range of the advanced audio coding format bit rates supported by the terminal, adjusting the advanced audio coding format bit rate supported by the Bluetooth device; if the adjusted advanced audio coding format bit rate is within the range of the advanced audio coding format bit rates supported by the terminal, determining the adjusted advanced audio coding format bit rate as the advanced audio coding format bit rate used for Bluetooth communication between the terminal and the Bluetooth device; and if the adjusted advanced audio coding format bit rate is not within the range of the advanced audio coding format bit rates supported by the terminal, determining the default advanced audio coding format bit rate of the terminal as the advanced audio coding format bit rate used for Bluetooth communication between the terminal and the Bluetooth device.
[0009] In an implementation manner, adjusting the advanced audio coding format bit rate supported by the Bluetooth device includes: multiplying the advanced audio coding format bit rate supported by the Bluetooth device by a preset bit rate multiplier, and using the multiplied advanced audio coding format bit rate as the adjusted advanced audio coding format bit rate.
[0010] In an implementation manner, the determining an advanced audio coding format bit rate used for Bluetooth communication between the terminal and the Bluetooth device based on the advanced audio coding format bit rate supported by the Bluetooth device includes: if the advanced audio coding format bit rate supported by the Bluetooth device is within the range of the advanced audio coding format bit rates supported by the terminal, determining the advanced audio coding format bit rate supported by the Bluetooth device as the advanced audio coding format bit rate used for Bluetooth communication between the terminal and the Bluetooth device.
[0011] In one implementation, determining the encoding format used for Bluetooth communication between a terminal and a Bluetooth device includes: receiving a first encoding format request sent by the Bluetooth device, where the first encoding format request is used to request to obtain the advanced audio coding format supported by the terminal and the bit rate of the advanced audio coding format supported by the terminal; determining the switch state of the advanced audio coding format displayed on the current display interface; if the switch state of the advanced audio coding format displayed on the current display interface is in the on state, then in response to the first encoding format request, sending a first encoding format response message to the Bluetooth device, where the first encoding format response message is used to indicate that the terminal supports the advanced audio coding format and the bit rate of the advanced audio coding format supported by the terminal; if an indication signaling used to characterize that the Bluetooth device has set the advanced audio coding format is received, then determining that the encoding format used for Bluetooth communication between the terminal and the Bluetooth device is the advanced audio coding format.
[0012] In one implementation, the Bluetooth communication method further includes: if the switch state of the advanced audio coding format displayed on the current display interface is in the off state, then sending a second encoding format response message to the Bluetooth device, where the second encoding format response message is used to indicate that the terminal supports the sub-band coding format; if an indication signaling used to characterize that the Bluetooth device has set the sub-band coding format based on the second encoding format response message is received, then determining that the encoding format used for Bluetooth communication between the terminal and the Bluetooth device is the sub-band coding format.
[0013] In one implementation, determining the encoding format used for Bluetooth communication between a terminal and a Bluetooth device includes: sending a second encoding format request to the Bluetooth device; if a third encoding format response message sent by the Bluetooth device is received, then determining that the encoding format used for Bluetooth communication between the terminal and the Bluetooth device is the advanced audio coding format, where the third encoding format response message indicates that the Bluetooth device supports the advanced audio coding format and the bit rate of the advanced audio coding format supported by the Bluetooth device. According to a second aspect of the embodiments of the present disclosure, a Bluetooth communication method is provided, which is applied to a Bluetooth device. The Bluetooth communication method includes: setting the encoding format used for Bluetooth communication between the Bluetooth device and the terminal; in response to the encoding format used for communication between the Bluetooth device and the terminal being the advanced audio coding format, the bit rate of the advanced audio coding format used for Bluetooth communication between the Bluetooth device and the terminal, controlling the Bluetooth device to communicate with the terminal via Bluetooth, and the bit rate of the advanced audio coding format used for Bluetooth communication between the Bluetooth device and the terminal is determined based on the bit rate of the advanced audio coding format supported by the Bluetooth device.
[0014] In one implementation, the encoding format adopted for Bluetooth communication between the Bluetooth device and the terminal includes: sending a first encoding format request to the terminal, where the first encoding format request is used to request to obtain the advanced audio coding format supported by the terminal and the bit rate of the advanced audio coding format supported by the terminal; if the first encoding format response message sent by the terminal is received, setting the encoding format adopted for Bluetooth communication between the Bluetooth device and the terminal as the advanced audio coding format, and sending an indication signaling to the terminal for indicating that the Bluetooth device has set the advanced audio coding format, where the first encoding format response message is used to indicate that the terminal supports the advanced audio coding format and the bit rate of the advanced audio coding format supported by the terminal, and the switch state of the advanced audio coding format displayed on the current display interface of the terminal is in the on state; if the second encoding format response message sent by the terminal is received, setting the encoding format adopted for Bluetooth communication between the Bluetooth device and the terminal as the sub-band coding format, and sending an indication signaling to the terminal for indicating that the Bluetooth device has set the sub-band coding format, where the second encoding format response message is used to indicate that the terminal supports the sub-band coding format and the switch of the advanced audio coding format displayed on the current display interface is in the off state.
[0015] According to a third aspect of the embodiments of the present disclosure, a Bluetooth communication device is provided, which is applied to a terminal. The device includes: a determination unit, configured to determine the encoding format adopted for Bluetooth communication between the terminal and the Bluetooth device, and in response to the encoding format adopted for communication between the terminal and the Bluetooth device being the advanced audio coding format, determine the bit rate of the advanced audio coding format adopted for Bluetooth communication between the terminal and the Bluetooth device based on the bit rate of the advanced audio coding format supported by the Bluetooth device; a communication unit, configured to control Bluetooth communication between the terminal and the Bluetooth device based on the bit rate of the advanced audio coding format adopted for Bluetooth communication between the terminal and the Bluetooth device.
[0016] In one implementation, the determining unit determines the bitrate of the advanced audio coding format supported by the Bluetooth device in the following manner, and determines the bitrate of the advanced audio coding format used for Bluetooth communication between the terminal and the Bluetooth device: If the bitrate of the advanced audio coding format supported by the Bluetooth device does not fall within the range of the bitrates of the advanced audio coding formats supported by the terminal, then adjust the bitrate of the advanced audio coding format supported by the Bluetooth device; If the adjusted bitrate of the advanced audio coding format falls within the range of the bitrates of the advanced audio coding formats supported by the terminal, then determine the adjusted bitrate of the advanced audio coding format as the bitrate of the advanced audio coding format used for Bluetooth communication between the terminal and the Bluetooth device; If the adjusted bitrate of the advanced audio coding format does not fall within the range of the bitrates of the advanced audio coding formats supported by the terminal, then determine the default bitrate of the advanced audio coding format of the terminal as the bitrate of the advanced audio coding format used for Bluetooth communication between the terminal and the Bluetooth device.
[0017] In one implementation, the determining unit adjusts the bitrate of the advanced audio coding format supported by the Bluetooth device in the following manner: Multiply the bitrate of the advanced audio coding format supported by the Bluetooth device by a preset bitrate multiplier, and use the resulting bitrate of the advanced audio coding format after multiplication as the adjusted bitrate of the advanced audio coding format.
[0018] In one implementation, the determining unit determines the bitrate of the advanced audio coding format for Bluetooth communication with the Bluetooth device based on the bitrate of the advanced audio coding format supported by the Bluetooth device in the following manner: If the bitrate of the advanced audio coding format supported by the Bluetooth device falls within the range of the bitrates of the advanced audio coding formats supported by the terminal, then determine the bitrate of the advanced audio coding format supported by the Bluetooth device as the bitrate of the advanced audio coding format used for Bluetooth communication between the terminal and the Bluetooth device.
[0019] In one implementation, the determining unit determines the encoding format used for Bluetooth communication between the terminal and the Bluetooth device in the following manner: receiving a first encoding format request sent by the Bluetooth device, where the first encoding format request is used to request to obtain the advanced audio coding format supported by the terminal and the bit rate of the advanced audio coding format supported by the terminal; determining the on / off state of the advanced audio coding format switch displayed on the current display interface; if the on / off state of the advanced audio coding format switch displayed on the current display interface is the on state, then in response to the first encoding format request, sending a first encoding format response message to the Bluetooth device, where the first encoding format response message is used to indicate that the terminal supports the advanced audio coding format and the bit rate of the advanced audio coding format supported by the terminal; if receiving an indication signaling indicating that the Bluetooth device has set the advanced audio coding format, then determining that the encoding format used for Bluetooth communication between the terminal and the Bluetooth device is the advanced audio coding format.
[0020] In one implementation, the communication unit is further configured to: if the on / off state of the advanced audio coding format switch displayed on the current display interface is the off state, then send a second encoding format response message to the Bluetooth device, where the second encoding format response message is used to indicate that the terminal supports the sub-band coding format; if receiving an indication signaling indicating that the Bluetooth device has set the sub-band coding format based on the second encoding format response message, then determining that the encoding format used for Bluetooth communication between the terminal and the Bluetooth device is the sub-band coding format.
[0021] In one implementation, the determining unit determines the encoding format used for Bluetooth communication between the terminal and the Bluetooth device in the following manner: sending a second encoding format request to the Bluetooth device; if receiving a third encoding format response message sent by the Bluetooth device, then determining that the encoding format used for Bluetooth communication between the terminal and the Bluetooth device is the advanced audio coding format, where the third encoding format response message is used to indicate that the Bluetooth device supports the advanced audio coding format and the bit rate of the advanced audio coding format supported by the Bluetooth device.
[0022] According to a fourth aspect of the embodiments of the present disclosure, a Bluetooth communication device is provided, which is applied to a Bluetooth device. The Bluetooth communication device includes: a setting unit configured to set the encoding format used for Bluetooth communication between the Bluetooth device and the terminal; a communication unit configured to, in response to the encoding format used for communication between the Bluetooth device and the terminal being the advanced audio coding format, control the Bluetooth device and the terminal to perform Bluetooth communication based on the bit rate of the advanced audio coding format used for Bluetooth communication between the Bluetooth device and the terminal, where the bit rate of the advanced audio coding format used for Bluetooth communication between the Bluetooth device and the terminal.
[0023] In one implementation, the setting unit sets the encoding format used for Bluetooth communication between the Bluetooth device and the terminal in the following manner: sending a first encoding format request to the terminal, where the first encoding format request is used to request to obtain the advanced audio coding format supported by the terminal and the bit rate of the advanced audio coding format supported by the terminal; if receiving the first encoding format response message sent by the terminal, setting the encoding format used for Bluetooth communication between the Bluetooth device and the terminal as the advanced audio coding format, and sending an indication signaling to the terminal for representing that the Bluetooth device has set the advanced audio coding format, where the first encoding format response message is used to indicate that the terminal supports the advanced audio coding format and the bit rate of the advanced audio coding format supported by the terminal, and the switch state of the advanced audio coding format displayed on the current display interface of the terminal is the on state.
[0024] In one implementation, the setting unit also sets the encoding format used for Bluetooth communication between the Bluetooth device and the terminal in the following manner: sending a first encoding format request to the terminal; if receiving the second encoding format response message sent by the terminal, setting the encoding format used for Bluetooth communication between the Bluetooth device and the terminal as the sub-band coding format, and sending an indication signaling to the terminal for representing that the Bluetooth device has set the sub-band coding format, where the second encoding format response message is used to indicate that the terminal supports the sub-band coding format, and the switch of the advanced audio coding format displayed on the current display interface is the off state.
[0025] In one implementation, the setting unit sets the encoding format used for Bluetooth communication between the Bluetooth device and the terminal in the following manner: receiving the second encoding format request sent by the terminal; if the Bluetooth device supports the advanced audio coding format, sending a second encoding format response message to the terminal, and setting the encoding format used for Bluetooth communication between the Bluetooth device and the terminal as the advanced audio coding format; the second encoding format response message indicates that the Bluetooth device supports the advanced audio coding format and the bit rate of the advanced audio coding format supported by the Bluetooth device.
[0026] In one implementation, the setting unit also sets the encoding format used for Bluetooth communication between the Bluetooth device and the terminal in the following manner: receiving the second encoding format request sent by the terminal; if the Bluetooth device supports the advanced audio coding format, sending a third encoding format response message to the terminal, and setting the encoding format used for Bluetooth communication between the Bluetooth device and the terminal as the advanced audio coding format; the third encoding format response message is used to indicate that the Bluetooth device supports the advanced audio coding format and the bit rate of the advanced audio coding format supported by the Bluetooth device.
[0027] According to a fifth aspect of the embodiments of the present disclosure, a Bluetooth communication device is provided, including: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the Bluetooth communication method described in the first aspect or any one of the implementation manners in the first aspect.
[0028] According to a sixth aspect of the embodiments of the present disclosure, a Bluetooth communication device is provided, including: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the Bluetooth communication method described in the second aspect or any one of the implementation manners in the second aspect.
[0029] According to a seventh aspect of the embodiments of the present disclosure, a storage medium is provided, wherein instructions are stored in the storage medium, and when the instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to execute the Bluetooth communication method described in the first aspect or any one of the implementation manners in the first aspect.
[0030] According to an eighth aspect of the embodiments of the present disclosure, a storage medium is provided, wherein instructions are stored in the storage medium, and when the instructions in the storage medium are executed by a processor of a Bluetooth communication device, the Bluetooth device is enabled to execute the Bluetooth communication method described in the second aspect or any one of the implementation manners in the second aspect.
[0031] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: Through the Bluetooth communication method provided by the present disclosure, before the terminal communicates with the Bluetooth device, it is possible to determine the advanced audio coding format bit rate for Bluetooth communication with the Bluetooth device based on the advanced audio coding format bit rate supported by the Bluetooth device, and then control the terminal and the Bluetooth device to communicate based on the determined bit rate, thereby avoiding the situation that the Bluetooth devices included in the AAC whitelist or blacklist are incomplete, which affects the Bluetooth communication between the terminal and the Bluetooth device using AAC.
[0032] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.
[0034] Figure 1 is a flowchart of a Bluetooth communication method shown according to an exemplary embodiment.
[0035] Figure 2 is a flowchart of another Bluetooth communication method shown according to an exemplary embodiment.
[0036] Figure 3It is a flowchart of another Bluetooth communication method shown according to an exemplary embodiment.
[0037] Figure 4 It is a flowchart of another Bluetooth communication method shown according to an exemplary embodiment.
[0038] Figure 5 It is a flowchart of another Bluetooth communication method shown according to an exemplary embodiment.
[0039] Figure 6 It is a communication interaction diagram between a mobile phone and a Bluetooth device shown according to an exemplary embodiment.
[0040] Figure 7 It is a flowchart of another Bluetooth communication method shown according to an exemplary embodiment.
[0041] Figure 8 It is a flowchart of another Bluetooth communication interaction method shown according to an exemplary embodiment.
[0042] Figure 9 It is a flowchart of another Bluetooth communication method shown according to an exemplary embodiment.
[0043] Figure 10 It is a flowchart of another Bluetooth communication method shown according to an exemplary embodiment.
[0044] Figure 11 It is another communication interaction diagram between a mobile phone and a Bluetooth device shown according to an exemplary embodiment.
[0045] Figure 12 It is a block diagram of a Bluetooth communication device shown according to an exemplary embodiment.
[0046] Figure 13 It is a block diagram of another Bluetooth communication device shown according to an exemplary embodiment.
[0047] Figure 14 It is a block diagram of another Bluetooth communication device shown according to an exemplary embodiment. Detailed implementation
[0048] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0049] The Bluetooth communication method provided by the embodiment of the present disclosure can be applied to the use scenario of determining the coding format required for Bluetooth communication during the communication between the terminal and the Bluetooth device. For example: in the field of Bluetooth communication, when the terminal communicates with the Bluetooth device via Bluetooth, determine whether to use AAC for Bluetooth communication or SBC for Bluetooth communication. Bluetooth is an open wireless communication standard. In the field of Bluetooth audio, in addition to using standard sub-band coding (SBC for short) to set the Bluetooth coding format, some Bluetooth devices can also support SBC and AAC for Bluetooth communication.
[0050] In the related art, in order to manage the communication connection between the terminal and the Bluetooth device, the terminal manufacturer pre-determines multiple Bluetooth devices that can support AAC for encoding and transmission through AAC compatibility testing during the development process, and adds the Media Access Control Address (MAC) address corresponding to each Bluetooth device to the AAC whitelist in the terminal, so that when the terminal is paired with the Bluetooth device, it can be clear that AAC can be used for Bluetooth transmission between the two. Alternatively, the MAC addresses corresponding to multiple Bluetooth devices that do not support AAC for Bluetooth transmission are added to the AAC blacklist in the terminal, so that when the terminal is paired with the Bluetooth device, it can be clear that AAC cannot be used for Bluetooth transmission between the two. However, using this method to determine whether AAC is supported for Bluetooth transmission between the terminal and the Bluetooth device, the preliminary test requires a lot of testing costs, and due to the excessive types of Bluetooth devices, the test results cannot be fully covered, resulting in incomplete Bluetooth devices involved in the AAC whitelist or blacklist, which in turn affects the user experience when the terminal communicates with the Bluetooth device via Bluetooth.
[0051] In view of this, the present disclosure provides a Bluetooth communication method, which can determine the encoding format used by a terminal and a Bluetooth device when performing Bluetooth communication based on the bit rate of the advanced audio coding format supported by the Bluetooth device, thereby determining the bit rate of the advanced audio coding format used by the terminal and the Bluetooth device for Bluetooth communication, and controlling the terminal and the Bluetooth device to perform Bluetooth communication based on the determined bit rate, thereby avoiding the situation where the Bluetooth devices involved in the AAC whitelist or blacklist are incomplete, affecting the user's use, making the method of determining the encoding format used for Bluetooth communication more flexible and more helpful to improve the user experience. Among them, the English name of bit rate is bitrate.
[0052] In one embodiment, the Bluetooth communication method provided by the present disclosure can be applied to any terminal that supports Bluetooth communication. In one example, the types of terminals can include mobile terminals, such as mobile phones, tablets, smart TVs, smart speakers with screens, smart watches with screens, iPods, etc. In another example, the structure of the terminal can include: dual-screen terminals, foldable-screen terminals, full-screen terminals, etc. The Bluetooth device can be any device capable of performing Bluetooth communication and is not limited in the present disclosure.
[0053] Figure 1 is a flowchart of a Bluetooth communication method shown according to an exemplary embodiment, as Figure 1 shown. This communication method is used in a terminal and includes the following steps.
[0054] In step S11, determine the encoding format used for Bluetooth communication between the terminal and the Bluetooth device.
[0055] In the embodiments of the present disclosure, to determine whether the AAC format can be used for communication when the terminal and the Bluetooth device are performing Bluetooth communication, first determine the encoding format used for Bluetooth communication between the terminal and the Bluetooth device. Among them, the encoding format can include the AAC format, the SBC format, or the AAC format and the BBC format. In one example, during the process of Bluetooth communication, the AAC format has the characteristics of high sound quality and low latency. Therefore, compared with the SBC format, using the AAC format for communication is more helpful for improving the audio transmission quality, increasing the transmission speed of the bit rate, and reducing latency. When it is determined that the encoding format used for Bluetooth communication between the terminal and the Bluetooth device can be the AAC format or the BBC format, it can be considered that the encoding format used for Bluetooth communication between the terminal and the Bluetooth device is the AAC format.
[0056] In step S12, in response to the encoding format used for communication between the terminal and the Bluetooth device being the AAC format, determine the AAC format bit rate used for Bluetooth communication between the terminal and the Bluetooth device based on the AAC format bit rate supported by the Bluetooth device.
[0057] In the implementation of the present disclosure, AAC is a file compression format designed specifically for sound data. When it is determined that the encoding format used for Bluetooth communication between the terminal and the Bluetooth device is the AAC format, it indicates that the AAC format can be used for Bluetooth communication between the terminal and the Bluetooth device. Since the manufacturers of the terminal and the Bluetooth device may be different, the AAC format bit rate supported by the terminal and the AAC format bit rate supported by the Bluetooth device may also be different. Therefore, when controlling Bluetooth transmission between the terminal and the Bluetooth device, the AAC format bit rate used for Bluetooth communication between the terminal and the Bluetooth device can be determined based on the AAC format bit rate supported by the Bluetooth device.
[0058] In one example, the AAC format bit rate used for Bluetooth communication between the terminal and the Bluetooth device can be determined through an AAC format control policy. For example, by determining whether the AAC format bit rate supported by the Bluetooth device falls within the range of the AAC format bit rates supported by the terminal, the AAC format bit rate used for Bluetooth communication between the terminal and the Bluetooth device is determined. If the AAC format bit rate supported by the Bluetooth device falls within the range of the AAC format bit rates supported by the terminal, then the AAC format bit rate supported by the Bluetooth device is determined as the AAC format bit rate used for Bluetooth communication between the terminal and the Bluetooth device. If the AAC format bit rate supported by the Bluetooth device does not fall within the range of the AAC format bit rates supported by the terminal, then the AAC format bit rate used for Bluetooth communication between the terminal and the Bluetooth device can be the adjusted AAC format bit rate supported by the Bluetooth device or the default AAC format bit rate of the terminal.
[0059] Compared with the method of determining to use the AAC format for Bluetooth communication by adopting an AAC whitelist or blacklist, the present disclosure determines the AAC format bit rate used for Bluetooth communication between the terminal and the Bluetooth device based on the AAC format bit rate supported by the Bluetooth device, and can determine the AAC format bit rate used for Bluetooth communication between the terminal and the Bluetooth device according to the AAC format bit rate supported by the Bluetooth device, without being affected by the incomplete coverage of Bluetooth devices in the AAC whitelist or blacklist. Furthermore, the process of determining the AAC format bit rate used for Bluetooth communication between the terminal and the Bluetooth device is more flexible, the determination result is more in line with the actual usage scenario, and it is more helpful to provide users with a high-quality Bluetooth communication experience.
[0060] In step S13, based on the AAC format bit rate used for Bluetooth communication between the terminal and the Bluetooth device, the Bluetooth communication between the terminal and the Bluetooth device is controlled.
[0061] Through the above embodiments, after determining that the terminal and the Bluetooth device can use the AAC format for Bluetooth transmission, the AAC format bit rate used for Bluetooth communication between the terminal and the Bluetooth device can be determined based on the AAC format bit rate supported by the Bluetooth device. Furthermore, the process of determining the coding format used for Bluetooth communication between the terminal and the Bluetooth device is more flexible, and the determination result is more in line with the actual usage scenario.
[0062] In an implementation scenario, through the above Bluetooth communication method, when it is determined that both the terminal and the Bluetooth device support Bluetooth communication encoding in the AAC format, after determining the AAC format bit rate for controlling the Bluetooth communication between the terminal and the Bluetooth device through the AAC format control policy, when the terminal needs to perform Bluetooth communication with the current Bluetooth device and the MAC address corresponding to the current Bluetooth device does not exist in the AAC whitelist included in the terminal, the current Bluetooth device can be added to the AAC whitelist based on the currently determined AAC format bit rate for Bluetooth communication between the terminal and the Bluetooth device, so as to make up for the lack of comprehensive previous test results. When encountering the same type of Bluetooth device that needs to perform Bluetooth communication with the terminal again, the Bluetooth communication between the terminal and the Bluetooth device can be directly controlled based on the AAC format control policy.
[0063] In the Bluetooth communication method provided by the embodiments of the present disclosure, the AAC format bit rate for Bluetooth communication between the terminal and the Bluetooth device involved above can be determined based on the empirical bit rate set through multiple debuggings during the communication process between the Bluetooth device and the terminal.
[0064] Figure 2 The flowchart of another Bluetooth communication method shown in an exemplary embodiment of the present disclosure is shown. This communication method is used in a terminal. As Figure 2 shown, it includes the following steps.
[0065] In step S21, determine the encoding format used for Bluetooth communication between the terminal and the Bluetooth device.
[0066] In step S22, in response to the encoding format used for communication between the terminal and the Bluetooth device being the AAC format, if the AAC format bit rate supported by the Bluetooth device does not fall within the range of the AAC format bit rates supported by the terminal, adjust the AAC format bit rate supported by the Bluetooth device.
[0067] In the embodiments of the present disclosure, since the Bluetooth device and the terminal may belong to different types of devices, when performing Bluetooth communication in the AAC format, it is possible that the AAC format bit rate supported by the Bluetooth device does not fall within the range of the AAC format bit rates supported by the terminal. To ensure that the communication quality is not affected when the two perform Bluetooth communication, the relationship between the AAC format bit rate supported by the Bluetooth device and the range of the AAC format bit rates supported by the terminal is first determined.
[0068] If the AAC format bitrate supported by the Bluetooth device does not fall within the range of AAC format bitrates supported by the terminal, it indicates that the currently supported AAC format bitrate of the Bluetooth device cannot communicate normally with the terminal via Bluetooth, and the Bluetooth communication quality is likely to be affected. Therefore, to ensure the Bluetooth communication quality, the AAC format bitrate currently supported by the Bluetooth device is adjusted, and then, through the adjusted AAC format bitrate, the communication quality of Bluetooth communication using the AAC format is guaranteed. In one example, the AAC format supported by the Bluetooth device can be amplified or reduced according to a specified multiple value.
[0069] In step S231, if the adjusted AAC format bitrate falls within the range of AAC format bitrates supported by the terminal, then the adjusted AAC format bitrate is determined as the AAC format bitrate used for Bluetooth communication between the terminal and the Bluetooth device.
[0070] In the embodiment of the present disclosure, if the adjusted AAC format bitrate falls within the range of AAC format bitrates supported by the terminal, it indicates that when the Bluetooth device communicates with the terminal using the adjusted AAC format bitrate, the communication quality is not affected.
[0071] In step S232, if the adjusted AAC format bitrate does not fall within the range of AAC format bitrates supported by the terminal, then the default AAC format bitrate of the terminal is determined as the AAC format bitrate used for Bluetooth communication between the terminal and the Bluetooth device.
[0072] In the embodiment of the present disclosure, if the adjusted AAC format bitrate does not fall within the range of AAC format bitrates supported by the terminal, it indicates that although both can communicate via Bluetooth using the AAC format, the adjusted AAC format bitrate supported by the Bluetooth device cannot meet the terminal's requirement for using this adjusted AAC format bitrate for Bluetooth communication. Therefore, to ensure that the terminal can communicate with the Bluetooth device, the default AAC format bitrate of the terminal is used as the AAC format bitrate for Bluetooth communication between the terminal and the Bluetooth device, that is, during the Bluetooth communication process between the terminal and the Bluetooth device, the default AAC format bitrate of the terminal is used. In one embodiment, the default AAC format bitrate can be the AAC format bitrate supported by the Bluetooth device.
[0073] In an implementation scenario, the AAC format bitrate range supported by the terminal is from 64 kilobits per second (64 kbps (bit per second) or 64 kb / s, where k represents kilobits) to 256 kb / s within one second. The bitrates within this range can be referred to as the effective bitrates of the terminal. If the AAC format bitrate supported by the Bluetooth device is 64 b / s per second, it can be determined that the AAC format bitrate supported by the Bluetooth device does not fall within the AAC format bitrate range supported by the terminal, and the AAC format bitrate supported by the Bluetooth device needs to be further adjusted. If the adjusted AAC format bitrate is 64 kb / s, which is within the AAC format bitrate range supported by the terminal, then the adjusted AAC format bitrate of the Bluetooth device is used as the AAC format bitrate for Bluetooth communication between the terminal and the Bluetooth device. If the adjusted AAC format bitrate is 560 b / s, which is not within the AAC format bitrate range supported by the terminal, then the default AAC format bitrate of the terminal is used as the AAC format bitrate for Bluetooth communication between the terminal and the Bluetooth device.
[0074] In step S24, based on the AAC format bitrate used for Bluetooth communication between the terminal and the Bluetooth device, control the Bluetooth communication AAC between the terminal and the Bluetooth device.
[0075] In one embodiment, when adjusting the AAC format bitrate supported by the Bluetooth device, the AAC format bitrate supported by the Bluetooth device can be multiplied by a preset bitrate multiplier, and then the AAC format bitrate obtained after multiplication is used as the adjusted AAC format bitrate. For example: The AAC format bitrate supported by the Bluetooth device is 230 b / s, and the preset bitrate multiplier is 1000. 230 * 1000 = 230000 b / s = 230 kb / s. Therefore, 230 kb / s can be used as the adjusted AAC format bitrate supported by the Bluetooth device. The preset bitrate multiplier can be a specified multiplier or determined based on the AAC format bitrate range supported by the terminal, and it is not limited in this disclosure. In one embodiment, when determining based on the AAC format bitrate range supported by the terminal, it can be determined according to the order of magnitude difference between the lower limit and the upper limit of the AAC format bitrate supported by the terminal, so as to avoid the adjusted AAC format bitrate supported by the Bluetooth device exceeding the AAC bitrate range that the AAC format can support.
[0076] In another embodiment, if the bitrate of the AAC format supported by the Bluetooth device falls within the range of the AAC format bitrates supported by the terminal, it indicates that the currently supported AAC format bitrate of the Bluetooth device can directly communicate with the terminal via normal Bluetooth communication, and the Bluetooth communication quality is not easily affected. Therefore, there is no need to adjust the AAC format bitrate supported by the Bluetooth device, and it can be directly determined that the AAC format bitrate supported by the Bluetooth device is the AAC format bitrate used for Bluetooth communication between the terminal and the Bluetooth device. For example: the range of the AAC format bitrate supported by the terminal is 64 kbps - 256 kbps, the AAC format bitrate supported by the Bluetooth device is 125 kbps, and the AAC bitrate supported by the Bluetooth device falls within the range of the AAC format bitrates supported by the terminal, then it can be determined that the AAC format bitrate used for Bluetooth communication between the terminal and the Bluetooth device is 125 kbps.
[0077] Figure 3 FIG. shows a flowchart of yet another Bluetooth communication method shown in an exemplary embodiment of the present disclosure. This communication method is used in a terminal, as Figure 3 shown, and includes the following steps.
[0078] In step S31, a first encoding format request sent by a Bluetooth device is received.
[0079] In the embodiments of the present disclosure, the first encoding format request is an instruction for requesting to obtain the AAC format supported by the terminal and the AAC format bitrates supported by the terminal. Through the first encoding format request, it can be clarified that the Bluetooth device sending the first encoding format request wants to establish Bluetooth communication with the terminal. In one example, the Bluetooth device can send the first encoding format request through Discover codec, where Discover codec is a discovery signal codec.
[0080] In step S32, the AAC format switch state displayed on the current display interface is determined.
[0081] In the embodiments of the present disclosure, determining the encoding format that the terminal can support for Bluetooth communication is determined according to the AAC format switch state displayed on the current display interface of the terminal. Through the AAC format switch state, it can be determined whether the terminal can use the AAC format when performing Bluetooth communication. If the AAC format switch state displayed on the current display interface is in the on state, it indicates that the terminal can support Bluetooth communication using the AAC format and can also support Bluetooth communication using the SBC format. If the AAC format switch state displayed on the current display interface is in the off state, it indicates that the terminal does not support the AAC format and only supports Bluetooth communication using the SBC format.
[0082] In an implementation scenario, the AAC format switch state displayed on the current display interface of the terminal can be controlled by the user himself, which helps to enhance the interactivity between the user and the terminal, enabling the user to independently select the encoding format for Bluetooth communication.
[0083] If the AAC format switch state displayed on the current display interface is in the on state, in response to a first encoding format request, a first encoding format response message corresponding to the first encoding format request is generated and sent to the Bluetooth device to inform the Bluetooth device that the current terminal can use the AAC format for Bluetooth communication. Among them, the first encoding format response message is used to indicate that the terminal supports the AAC format and the AAC format bit rate supported by the terminal.
[0084] It should be noted that in the present disclosure, there may be no implementation sequence relationship between step S31 and step S32. Determining the AAC format switch state displayed on the current display interface can be determined before step S31 or after step S31.
[0085] In step S33, if an indication signaling for characterizing that the Bluetooth device has set the AAC format is received, it is determined that the encoding format used for Bluetooth communication between the terminal and the Bluetooth device is the AAC format.
[0086] In the embodiment of the present disclosure, when the Bluetooth device receives the first encoding format response message and after the AAC format is set, an indication signaling for the set AAC format is generated and sent to the terminal. If the terminal receives the indication signaling for characterizing that the Bluetooth device has set the AAC format, it indicates that the Bluetooth device also supports using the AAC format for Bluetooth communication and is ready to communicate with the terminal using the AAC format. Therefore, it can be determined that the encoding format used for Bluetooth communication between the terminal and the Bluetooth device is the AAC format.
[0087] In step S34, in response to the encoding format used for communication between the terminal and the Bluetooth device being the AAC format, based on the AAC format bit rate supported by the Bluetooth device, the AAC format bit rate used for Bluetooth communication between the terminal and the Bluetooth device is determined;
[0088] In step S35, based on the AAC format bit rate used for Bluetooth communication between the terminal and the Bluetooth device, the Bluetooth communication between the terminal and the Bluetooth device is controlled.
[0089] In an implementation scenario, the AAC format switch state displayed on the current display interface of the terminal can be defaulted to the on state. Then, when the terminal conducts Bluetooth communication with the Bluetooth device, it can preferentially use the AAC format for Bluetooth communication, thereby improving the communication quality, reducing the latency effect, and enhancing the user experience.
[0090] Figure 4 The flowchart of yet another Bluetooth communication method shown in an exemplary embodiment of the present disclosure is illustrated. This communication method is used in a terminal, such as Figure 4 as shown, and includes the following steps.
[0091] In step S41, a first encoding format request sent by a Bluetooth device is received.
[0092] In step S42, the AAC format switch state displayed on the current display interface is determined.
[0093] In an embodiment of the present disclosure, if the AAC format switch state displayed on the current display interface is in the off state, in response to the first encoding format request, a second encoding format response message is sent to the Bluetooth device, indicating that the terminal does not support Bluetooth communication in the AAC format and can only use SBC for Bluetooth communication. Among them, the second encoding format response message is used to indicate that the terminal supports the SBC format.
[0094] In step S43, if an indication signaling for indicating that the Bluetooth device has set the SBC format based on the second encoding format response message is received, it is determined that the encoding format used for Bluetooth communication between the terminal and the Bluetooth device is the SBC format.
[0095] In an embodiment of the present disclosure, when the Bluetooth device receives the second encoding format response message and has set the encoding format to the sub-band encoding format, an indication signaling for indicating that the SBC format has been set is generated and sent to the terminal. When the terminal receives the indication signaling for indicating that the Bluetooth device has set the SBC format based on the second encoding format response message, it indicates that the Bluetooth device can also support Bluetooth communication in the SBC format and is ready to perform Bluetooth communication with the terminal in the SBC format. Therefore, it can be determined that the encoding format used for Bluetooth communication between the terminal and the Bluetooth device is the SBC format.
[0096] In step S44, Bluetooth communication is performed with the Bluetooth device based on the SBC format.
[0097] Figure 5 The flowchart of yet another Bluetooth communication method shown in an exemplary embodiment of the present disclosure is illustrated. This communication method is used in a terminal, such as Figure 5 as shown, and includes the following steps.
[0098] In step S51, a second encoding format request is sent to the Bluetooth device.
[0099] In an embodiment of the present disclosure, the terminal can actively send a second encoding format request to the Bluetooth device, and then establish a communication relationship with the Bluetooth device. Among them, the second encoding request is a request for determining all types of encoding formats supported by the Bluetooth device. The encoding format includes requests for the AAC format and the SBC format, and can be sent through Discover codec. It can be understood that the encoding formats supported by the terminal during Bluetooth communication can include the AAC format and the SBC format. By sending the second encoding format request, it can be determined whether the AAC format can be used for Bluetooth communication when the two perform Bluetooth communication. When the Bluetooth device receives the second encoding format request, it generates a third encoding format response message and sends the third encoding format response message to the terminal to inform the terminal of the encoding format adopted by the Bluetooth device through the third encoding format response message.
[0100] In step S52, if the third encoding format response message sent by the Bluetooth device is received, it is determined that the encoding format used for Bluetooth communication between the terminal and the Bluetooth device is the AAC format.
[0101] In an embodiment of the present disclosure, if the third encoding format response message sent by the Bluetooth device is received, it indicates that the Bluetooth device can support the AAC format and can perform Bluetooth communication with the terminal using the AAC format. Among them, the third encoding format response message is used to indicate that the Bluetooth device supports the AAC format and the bit rate of the AAC format supported by the Bluetooth device. Therefore, it can be determined that the encoding format used for Bluetooth communication between the terminal and the Bluetooth device is the AAC format.
[0102] In an example, when it is determined that the Bluetooth device supports the AAC format, if the AAC format switch status displayed on the current display interface of the terminal is in the on state, it indicates that the terminal can currently use the AAC format for Bluetooth communication. Then, when the terminal and the Bluetooth device perform Bluetooth communication, the AAC format can be used. If the AAC format switch status displayed on the current display interface of the terminal is in the off state at this time, it indicates that the terminal cannot currently use the AAC format for Bluetooth communication. To increase the usage rate of Bluetooth communication using the AAC format, the Bluetooth device can send an inquiry request to the terminal to inquire whether the terminal can support the AAC format. Then, based on the reply of the terminal, when it is determined that the terminal can support Bluetooth communication using the AAC format, it is determined that the AAC format can be used for Bluetooth communication between the terminal and the Bluetooth device. If the terminal cannot support Bluetooth communication using the AAC format, it is determined that the SBC format is used for Bluetooth communication between the terminal and the Bluetooth device.
[0103] In step S53, in response to the coding format adopted for communication between the terminal and the Bluetooth device being the AAC format, the AAC format bit rate adopted for Bluetooth communication between the terminal and the Bluetooth device is determined based on the AAC format bit rate supported by the Bluetooth device.
[0104] In step S54, based on the AAC format bit rate adopted by the terminal and the Bluetooth device for Bluetooth communication, the terminal is controlled to perform Bluetooth communication with the Bluetooth device.
[0105] In an implementation scenario, the terminal may be a mobile phone as an example, and the interactive process of the mobile phone communicating with the Bluetooth device may be as follows: Figure 6 shown. Figure 6 A communication interaction diagram between a mobile phone and a Bluetooth device in an exemplary embodiment of the present disclosure is shown.
[0106] To establish a pairing connection between the mobile phone and the Bluetooth device, the mobile phone actively initiates a second code request to the Bluetooth device through the Discover codec.
[0107] If the Bluetooth device supports the AAC format, a third encoding format response message is sent to the terminal, indicating that the Bluetooth device supports the AAC format and the AAC format bit rate supported by the Bluetooth device. If the AAC format switch state displayed on the current display interface of the terminal is on at this time, it is determined that the terminal can use the AAC format for Bluetooth communication with the Bluetooth device. Furthermore, any of the above methods for determining the AAC format bit rate used by the terminal for Bluetooth communication with the Bluetooth device is used to determine the AAC format bit rate for controlling the mobile phone to communicate with the Bluetooth device. If the Bluetooth device does not support the AAC format, it is determined that the encoding format used for Bluetooth communication between the mobile phone and the Bluetooth device is the SBC format.
[0108] In one example, when the Bluetooth device does not support the AAC format, the mobile phone can send a query request to the Bluetooth device to inquire whether the Bluetooth device can use the AAC format for Bluetooth communication. If the Bluetooth device replies that the AAC format can be used for Bluetooth communication, it is determined that the terminal can use the AAC format for Bluetooth communication with the Bluetooth device. If the Bluetooth device replies that the AAC format cannot be used for Bluetooth communication, it is determined that the encoding format used for Bluetooth communication between the mobile phone and the Bluetooth device is the SBC format.
[0109] In one example, the process of determining the AAC format bit rate for Bluetooth communication can be determined in the following manner: The mobile phone determines whether the AAC format bit rate supported by the Bluetooth device belongs to the range of AAC format bit rates supported by the mobile phone based on the third coding format response message sent by the Bluetooth device. If the AAC format bit rate supported by the Bluetooth device belongs to the range of AAC format bit rates supported by the mobile phone, it is determined that the AAC format bit rate used for Bluetooth communication between the mobile phone and the Bluetooth device is the AAC bit rate supported by the Bluetooth device, and the Bluetooth communication between the mobile phone and the Bluetooth device is controlled using this AAC format bit rate.
[0110] If it does not belong to the range of AAC format bit rates supported by the mobile phone, the AAC bit rate supported by the Bluetooth device is adjusted, and it is multiplied by a preset bit rate multiplier to obtain the adjusted AAC format bit rate. For example: The AAC bit rate supported by the Bluetooth device is multiplied by a preset bit rate multiplier of 1000. It is determined whether the adjusted AAC format bit rate belongs to the range of AAC format bit rates supported by the mobile phone. If the adjusted AAC format bit rate belongs to the range of AAC format bit rates supported by the mobile phone, it is determined that the adjusted AAC format bit rate is the AAC format bit rate used for Bluetooth communication between the mobile phone and the Bluetooth device, and the Bluetooth communication between the mobile phone and the Bluetooth device is controlled using this adjusted AAC format bit rate.
[0111] If the adjusted AAC format bit rate does not belong to the range of AAC format bit rates supported by the mobile phone, it is determined that the default AAC format bit rate of the terminal is the AAC format bit rate used for Bluetooth communication between the mobile phone and the Bluetooth device, and then the Bluetooth communication between the mobile phone and the Bluetooth device is controlled using the default AAC format bit rate of the terminal.
[0112] Based on the determined AAC format bit rate, control the Bluetooth communication between the mobile phone and the Bluetooth device.
[0113] Based on the same concept, an embodiment of the present disclosure also provides a Bluetooth communication method, which is applied to a Bluetooth device. Among them, the Bluetooth device in the embodiment of the present disclosure can be a Bluetooth headset or a Bluetooth watch or a Bluetooth vehicle-mounted device or other devices, not limited to this.
[0114] Figure 7 The flowchart of another Bluetooth communication method shown in an exemplary embodiment of the present disclosure is shown. As Figure 7 shown, when applied to a Bluetooth device, it includes the following steps.
[0115] In step S71, set the coding format used for Bluetooth communication between the Bluetooth device and the terminal.
[0116] In step S72, in response to the encoding format adopted for communication between the Bluetooth device and the terminal being the AAC format, based on the AAC format bit rate used for Bluetooth communication between the Bluetooth device and the terminal, control the Bluetooth communication between the Bluetooth device and the terminal.
[0117] In an embodiment of the present disclosure, the AAC format bit rate used for Bluetooth communication between the Bluetooth device and the terminal is determined based on the AAC format bit rate supported by the Bluetooth device.
[0118] Through the above embodiments, by presetting the encoding format used for Bluetooth communication between the Bluetooth device and the terminal, after determining that the terminal and the Bluetooth device can use the AAC format for Bluetooth transmission, it is possible to determine the AAC format bit rate used to control the Bluetooth communication between the terminal and the Bluetooth device based on the AAC format bit rate supported by the Bluetooth device, thereby making the determination process of the encoding format used for Bluetooth communication between the terminal and the Bluetooth device more flexible and the determination result more in line with the actual usage scenario.
[0119] Figure 8 The flowchart of yet another Bluetooth communication method shown in an exemplary embodiment of the present disclosure is shown. As Figure 8 shown, applied to a Bluetooth device, it includes the following steps.
[0120] In step S81, send a first encoding format request to the terminal.
[0121] In an embodiment of the present disclosure, the first encoding format request is a request for requesting to obtain that the terminal supports the AAC format and the AAC format bit rate supported by the terminal. By sending the first encoding format request to the terminal, it can inform the terminal that this Bluetooth device supports the AAC format. If the terminal also supports the AAC format, then the AAC format can be used for Bluetooth communication.
[0122] In step S82, if a first encoding format response message sent by the terminal is received, set the encoding format used for Bluetooth communication between the Bluetooth device and the terminal to the AAC format, and send an indication signaling to the terminal indicating that the AAC format has been set for the Bluetooth device.
[0123] In an embodiment of the present disclosure, the first encoding format response message is used to indicate that the terminal supports the AAC format and the AAC format bit rate supported by the terminal. At this time, the AAC format switch state displayed on the current display interface of the terminal is in the on state, which is used to indicate that the terminal also supports using the AAC format for Bluetooth communication. After receiving the first encoding format response message sent by the terminal and making a response, set the encoding format used for Bluetooth communication between the Bluetooth device and the terminal to the AAC format.
[0124] In step S83, in response to the encoding format adopted for communication between the Bluetooth device and the terminal being the AAC format, based on the AAC format bit rate adopted for Bluetooth communication between the Bluetooth device and the terminal, control the Bluetooth communication between the Bluetooth device and the terminal.
[0125] Figure 9 The flowchart of yet another Bluetooth communication method shown in an exemplary embodiment of the present disclosure is shown. As Figure 9 shown, applied to a Bluetooth device, it includes the following steps.
[0126] In step S91, send a first encoding format request to the terminal.
[0127] In step S92, if a second encoding format response message sent by the terminal is received, set the encoding format adopted for Bluetooth communication between the Bluetooth device and the terminal to the SBC format, and send an indication signaling to the terminal to indicate that the Bluetooth device has set the SBC format.
[0128] In the embodiment of the present disclosure, the second encoding format response message is used to indicate that the terminal supports the SBC format and the AAC format switch displayed on the current display interface is in the off state.
[0129] In step S93, in response to the encoding format adopted for communication between the Bluetooth device and the terminal being the AAC format, based on the AAC format bit rate adopted for Bluetooth communication between the Bluetooth device and the terminal, control the Bluetooth communication between the Bluetooth device and the terminal.
[0130] Figure 10 The flowchart of yet another Bluetooth communication method shown in an exemplary embodiment of the present disclosure is shown. As Figure 10 shown, applied to a Bluetooth device, it includes the following steps.
[0131] In step S101, receive a second encoding format request sent by the terminal.
[0132] In step S102, if the Bluetooth device supports the AAC format, send a third encoding format response message to the terminal, and set the encoding format adopted for Bluetooth communication between the Bluetooth device and the terminal to the AAC format.
[0133] In the embodiment of the present disclosure, the third encoding format response message is used to indicate that the Bluetooth device supports the AAC format and the AAC format bit rate supported by the Bluetooth device.
[0134] In step S103, in response to the encoding format adopted for communication between the Bluetooth device and the terminal being the AAC format, and the AAC format bit rate adopted for Bluetooth communication between the Bluetooth device and the terminal, control the Bluetooth device.
[0135] In an implementation scenario, the terminal may be a mobile phone as an example, and the interactive process of the mobile phone communicating with the Bluetooth device may be as follows: Figure 11 shown. Figure 11 A communication interaction diagram between another mobile phone and a Bluetooth device shown in an exemplary embodiment of the present disclosure is shown.
[0136] In order to establish a pairing connection between the mobile phone and the Bluetooth device, the Bluetooth device actively initiates a first coding request to the Bluetooth device through Discovercodec.
[0137] If the AAC format switch state displayed on the current display interface of the terminal is turned on, it indicates that the terminal can support the AAC format for Bluetooth communication and can also support the SBC format for Bluetooth communication. In the case where the terminal supports the AAC format for Bluetooth communication and can also support the SBC format for Bluetooth communication, a first encoding format response message is sent to the Bluetooth device, indicating that the Bluetooth device terminal can support the AAC format, and indicating the AAC format bit rate supported by the terminal, and an indication signaling is sent to the terminal to indicate that the Bluetooth device has set the AAC format.
[0138] If the AAC format switch state displayed on the current display interface of the terminal is off, it indicates that the terminal may not support the AAC format for Bluetooth communication and only supports the SBC format for Bluetooth communication. If the terminal supports the SBC format for Bluetooth communication, a second encoding format response message is sent to the Bluetooth device, and an indication signaling is sent to the terminal to indicate that the Bluetooth device has set the SBC format.
[0139] In one example, the process of determining the AAC format bit rate for Bluetooth communication can be determined in the following manner: the mobile phone sends a third encoding format response message based on the Bluetooth device, and determines whether the AAC bit rate supported by the Bluetooth device is within the AAC format bit rate range supported by the mobile phone. If the AAC bit rate supported by the Bluetooth device is within the AAC format bit rate range supported by the mobile phone, the AAC bit rate supported by the Bluetooth device is determined to be the AAC format bit rate for Bluetooth communication between the mobile phone and the Bluetooth device.
[0140] If it is not within the range of the AAC format bit rate supported by the mobile phone, adjust the AAC format bit rate supported by the Bluetooth device, multiply it by the preset bit rate multiplier, and obtain the adjusted AAC format bit rate. For example: multiply the AAC format bit rate supported by the Bluetooth device by the preset bit rate multiplier of 1000. Determine whether the adjusted AAC format bit rate is within the range of the AAC format bit rate supported by the mobile phone. If the adjusted AAC format bit rate is within the range of the AAC format bit rate supported by the mobile phone, determine that the adjusted AAC format bit rate is the AAC format bit rate used by the mobile phone and the Bluetooth device for Bluetooth communication.
[0141] If the AAC format bit rate after adjustment does not fall within the range of AAC format bit rates supported by the mobile phone, it is determined that the default AAC format bit rate of the terminal is the AAC format bit rate used for Bluetooth communication between the mobile phone and the Bluetooth device.
[0142] In response to the encoding format used for communication between the Bluetooth device and the terminal being the AAC format, based on the AAC format bit rate used for Bluetooth communication between the Bluetooth device and the mobile phone, control the Bluetooth communication between the mobile phone and the Bluetooth device.
[0143] In another implementation scenario, the Bluetooth device actively sets the encoding format. If the set encoding format is the SBC format, the mobile phone will actively initiate a first encoding request to query all the encoding formats supported by the Bluetooth device, and combine the encoding formats supported by the mobile phone itself and the AAC format switch state displayed on the current display interface to select the encoding format with the best sound quality among all the encoding formats supported by the Bluetooth device. After determining the encoding format used by the Bluetooth device during Bluetooth communication, the mobile phone resets the encoding format used by itself during Bluetooth communication to be consistent with the encoding format used by the Bluetooth device during Bluetooth communication, and then controls the Bluetooth communication between the mobile phone and the Bluetooth device.
[0144] Based on the same concept, the embodiments of the present disclosure also provide a Bluetooth communication device.
[0145] It can be understood that, in order to implement the above functions, the Bluetooth communication device provided by the embodiments of the present disclosure includes the corresponding hardware structures and / or software modules for executing each function. Combining the units and algorithm steps of the examples disclosed in the embodiments of the present disclosure, the embodiments of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the way of hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiments of the present disclosure.
[0146] Figure 12 It is a block diagram of a Bluetooth communication device shown according to an exemplary embodiment. Referring to Figure 12 , the Bluetooth communication device 100 includes a determination unit 101 and a communication unit 102.
[0147] The determination unit 101 is configured to determine the encoding format used for Bluetooth communication between the terminal and the Bluetooth device, and in response to the encoding format used for communication between the terminal and the Bluetooth device being the AAC format, determine the AAC format bit rate used for Bluetooth communication between the terminal and the Bluetooth device based on the AAC format bit rate supported by the Bluetooth device.
[0148] The communication unit 102 controls the Bluetooth communication between the terminal and the Bluetooth device using the AAC format bit rate for the Bluetooth communication between the terminal and the Bluetooth device.
[0149] In one implementation, the determination unit 101 determines the AAC format bit rate supported by the Bluetooth device and the AAC format bit rate used for the Bluetooth communication between the terminal and the Bluetooth device in the following manner: If the AAC format bit rate supported by the Bluetooth device is not within the range of the AAC format bit rates supported by the terminal, then adjust the AAC format bit rate supported by the Bluetooth device; if the adjusted AAC format bit rate is within the range of the AAC format bit rates supported by the terminal, then determine the adjusted AAC format bit rate as the AAC format bit rate used for the Bluetooth communication between the terminal and the Bluetooth device; if the adjusted AAC format bit rate is not within the range of the AAC format bit rates supported by the terminal, then determine the default AAC format bit rate of the terminal as the AAC format bit rate used for the Bluetooth communication between the terminal and the Bluetooth device.
[0150] In one implementation, the determination unit 101 adjusts the AAC format bit rate supported by the Bluetooth device in the following manner: Multiply the AAC format bit rate supported by the Bluetooth device by a preset bit rate multiplier, and use the AAC format bit rate obtained after the multiplication as the adjusted AAC format bit rate.
[0151] In one implementation, the determination unit 101 determines the AAC format bit rate used for the Bluetooth communication between the terminal and the Bluetooth device based on the AAC format bit rate supported by the Bluetooth device in the following manner: If the AAC format bit rate supported by the Bluetooth device is within the range of the AAC format bit rates supported by the terminal, then determine the AAC format bit rate supported by the Bluetooth device as the AAC format bit rate used for the Bluetooth communication between the terminal and the Bluetooth device.
[0152] In one implementation, the determining unit 101 determines the encoding format used for Bluetooth communication between the terminal and the Bluetooth device in the following manner: receiving a first encoding format request sent by the Bluetooth device, where the first encoding format request is used to request to obtain the AAC format supported by the terminal and the bit rate of the AAC format supported by the terminal; determining the on / off state of the AAC format switch displayed on the current display interface; if the on / off state of the AAC format switch displayed on the current display interface is the on state, then in response to the first encoding format request, sending a first encoding format response message to the Bluetooth device, where the first encoding format response message is used to indicate that the terminal supports the AAC format and the bit rate of the AAC format supported by the terminal; if receiving an indication signaling indicating that the Bluetooth device has set the AAC format, then determining that the encoding format used for Bluetooth communication between the terminal and the Bluetooth device is the AAC format.
[0153] In one implementation, the communication unit 102 is further configured to: if the on / off state of the AAC format switch displayed on the current display interface is the off state, then send a second encoding format response message to the Bluetooth device, where the second encoding format response message is used to indicate that the terminal supports the SBC format; if receiving an indication signaling indicating that the Bluetooth device has set the SBC format based on the second encoding format response message, then determining that the encoding format used for Bluetooth communication between the terminal and the Bluetooth device is the SBC format.
[0154] In one implementation, the determining unit 101 determines the encoding format used for Bluetooth communication between the terminal and the Bluetooth device in the following manner: sending a second encoding format request instruction to the Bluetooth device; if receiving a third encoding format response message sent by the Bluetooth device, then determining that the encoding format used for Bluetooth communication between the terminal and the Bluetooth device is the AAC format, where the third encoding format response message is used to indicate that the Bluetooth device supports the AAC format and the bit rate of the AAC format supported by the Bluetooth device.
[0155] Figure 13 It is another block diagram of a Bluetooth communication device shown according to an exemplary embodiment. Referring to Figure 13 , the applied Bluetooth communication device 200 includes a setting unit 201 and a communication unit 202.
[0156] The setting unit 201 is configured to set the encoding format used for Bluetooth communication between the Bluetooth device and the terminal.
[0157] The communication unit 202 is configured to, in response to the encoding format used for communication between the Bluetooth device and the terminal being the AAC, control the Bluetooth device and the terminal to perform Bluetooth communication based on the bit rate of the AAC format used for Bluetooth communication between the Bluetooth device and the terminal, the bit rate of the AAC format used for Bluetooth communication between the Bluetooth device and the terminal.
[0158] In one implementation, the setting unit 201 sets the encoding format used for Bluetooth communication between the Bluetooth device and the terminal in the following manner: sending a first encoding format request to the terminal, where the first encoding format request is used to request to obtain that the terminal supports the AAC format and the bit rate of the AAC format supported by the terminal; if a first encoding format response message sent by the terminal is received, then set the encoding format used for Bluetooth communication between the Bluetooth device and the terminal to the AAC format, and send an indication signaling to the terminal to indicate that the Bluetooth device has set the AAC format. The first encoding format response message is used to indicate that the terminal supports the AAC format and the bit rate of the AAC format supported by the terminal, and the switch state of the AAC format displayed on the current display interface of the terminal is the on state.
[0159] In one implementation, the setting unit 201 also sets the encoding format used for Bluetooth communication between the Bluetooth device and the terminal in the following manner: sending a first encoding format request to the terminal. If a second encoding format response message sent by the terminal is received, then set the encoding format used for Bluetooth communication between the Bluetooth device and the terminal to the SBC format, and send an indication signaling to the terminal to indicate that the Bluetooth device has set the SBC format. The second encoding format response message is used to indicate that the terminal supports the SBC format and the AAC format switch displayed on the current display interface is in the off state.
[0160] In one implementation, the setting unit 201 sets the encoding format used for Bluetooth communication between the Bluetooth device and the terminal in the following manner: receiving a second encoding format request sent by the terminal; if the Bluetooth device supports the AAC format, send a second encoding format response message to the terminal, and set the encoding format used for Bluetooth communication between the Bluetooth device and the terminal to the AAC format; the second encoding format response message indicates that the Bluetooth device supports the AAC format and the bit rate of the AAC format supported by the Bluetooth device.
[0161] In one implementation, the setting unit 201 also sets the encoding format used for Bluetooth communication between the Bluetooth device and the terminal in the following manner: receiving a second encoding format request sent by the terminal; if the Bluetooth device supports the AAC format, send a third encoding format response message to the terminal, and set the encoding format used for Bluetooth communication between the Bluetooth device and the terminal to the AAC format; the third encoding format response message is used to indicate that the Bluetooth device supports the AAC format and the bit rate of the AAC format supported by the Bluetooth device.
[0162] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.
[0163] Figure 14It is a block diagram of a Bluetooth communication device shown according to an exemplary embodiment. The Bluetooth communication device 300 can be provided as a terminal or a Bluetooth device. For example, the Bluetooth communication device 300 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0164] Referring to Figure 14 , the Bluetooth communication device 300 can include one or more of the following components: a processing component 302, a memory 304, a power component 306, a multimedia component 308, an audio component 310, an input / output (I / O) interface 312, a sensor component 314, and a communication component 316.
[0165] The processing component 302 generally controls the overall operation of the Bluetooth communication device 300, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 302 can include one or more processors 320 to execute instructions to complete all or part of the steps of the above methods. In addition, the processing component 302 can include one or more modules to facilitate the interaction between the processing component 302 and other components. For example, the processing component 302 can include a multimedia module to facilitate the interaction between the multimedia component 308 and the processing component 302.
[0166] The memory 304 is configured to store various types of data to support the operation of the Bluetooth communication device 300. Examples of such data include instructions for any application or method operating on the Bluetooth communication device 300, contact data, phone book data, messages, pictures, videos, etc. The memory 304 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0167] The power component 306 provides power to various components of the Bluetooth communication device 300. The power component 306 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the Bluetooth communication device 300.
[0168] The multimedia component 308 includes a screen that provides an output interface between the Bluetooth communication device 300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 308 includes a front camera and / or a rear camera. When the Bluetooth communication device 300 is in an operation mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and an optical zoom capability.
[0169] The audio component 310 is configured to output and / or input audio signals. For example, the audio component 310 includes a microphone (MIC) that is configured to receive external audio signals when the Bluetooth communication device 300 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 304 or transmitted via the communication component 316. In some embodiments, the audio component 310 further includes a speaker for outputting audio signals.
[0170] The I / O interface 312 provides an interface between the processing component 302 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a power button, and a lock button.
[0171] The sensor component 314 includes one or more sensors for providing status evaluations of various aspects of the Bluetooth communication device 300. For example, the sensor component 314 can detect the on / off state of the Bluetooth communication device 300, the relative positioning of components, such as the display and the keypad of the Bluetooth communication device 300. The sensor component 314 can also detect a change in the position of the Bluetooth communication device 300 or a component of the Bluetooth communication device 300, the presence or absence of user contact with the Bluetooth communication device 300, the orientation or acceleration / deceleration of the Bluetooth communication device 300, and the temperature change of the Bluetooth communication device 300. The sensor component 314 can include a proximity sensor that is configured to detect the presence of nearby objects without any physical contact. The sensor component 314 can also include a light sensor, such as a CMOS or a CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 314 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0172] The communication component 316 is configured to facilitate communication between the Bluetooth communication device 300 and other devices in a wired or wireless manner. The Bluetooth communication device 300 can access a communication standard-based wireless network, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0173] In an exemplary embodiment, the Bluetooth communication device 300 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.
[0174] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 304 including instructions, and the above instructions can be executed by a processor 320 of the Bluetooth communication device 300 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0175] It can be understood that "a plurality of" in the present disclosure means two or more, and other quantifiers are similar. "And / or" describes the association relationship of associated objects and indicates that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after. The singular forms of "a", "the", and "said" are also intended to include the plural forms unless the context clearly indicates otherwise.
[0176] It can be further understood that the terms "first", "second", etc. are used to describe various information, but this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other and do not represent a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.
[0177] It can be further understood that, although operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be construed as requiring these operations to be performed in the specific order shown or in a serial order, or requiring all the operations shown to obtain the desired result. In certain environments, multitasking and parallel processing may be advantageous.
[0178] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed by the present disclosure. The specification and examples are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.
[0179] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
Claims
1. A Bluetooth communication method, characterized in that, Applied to a terminal, the method includes: Determine the encoding format used for Bluetooth communication between the terminal and the Bluetooth device; In response to the encoding format used for communication between the terminal and the Bluetooth device being the Advanced Audio Coding format, determine the Advanced Audio Coding format bitrate used for Bluetooth communication between the terminal and the Bluetooth device based on the Advanced Audio Coding format bitrate supported by the Bluetooth device; Control the Bluetooth communication between the terminal and the Bluetooth device in the Advanced Audio Coding format based on the Advanced Audio Coding format bitrate used for Bluetooth communication between the terminal and the Bluetooth device; Wherein, determining the Advanced Audio Coding format bitrate used for Bluetooth communication between the terminal and the Bluetooth device based on the Advanced Audio Coding format bitrate supported by the Bluetooth device includes: If the Advanced Audio Coding format bitrate supported by the Bluetooth device falls within the range of Advanced Audio Coding format bitrates supported by the terminal, determine the Advanced Audio Coding format bitrate supported by the Bluetooth device as the Advanced Audio Coding format bitrate used for Bluetooth communication between the terminal and the Bluetooth device; If the Advanced Audio Coding format bitrate supported by the Bluetooth device does not fall within the range of Advanced Audio Coding format bitrates supported by the terminal, adjust the Advanced Audio Coding format bitrate supported by the Bluetooth device; If the adjusted Advanced Audio Coding format bitrate falls within the range of Advanced Audio Coding format bitrates supported by the terminal, determine the adjusted Advanced Audio Coding format bitrate as the Advanced Audio Coding format bitrate used for Bluetooth communication between the terminal and the Bluetooth device; If the adjusted Advanced Audio Coding format bitrate does not fall within the range of Advanced Audio Coding format bitrates supported by the terminal, determine the default Advanced Audio Coding format bitrate of the terminal as the Advanced Audio Coding format bitrate used for Bluetooth communication between the terminal and the Bluetooth device.
2. The Bluetooth communication method according to claim 1, wherein Adjusting the Advanced Audio Coding format bitrate supported by the Bluetooth device includes: Multiply the Advanced Audio Coding format bitrate supported by the Bluetooth device by a preset bitrate multiplier, and use the resulting Advanced Audio Coding format bitrate after multiplication as the adjusted Advanced Audio Coding format bitrate.
3. The Bluetooth communication method according to claim 1, wherein Determining the encoding format used for Bluetooth communication between the terminal and the Bluetooth device includes: Receive a first encoding format request sent by the Bluetooth device, where the first encoding format request is used to request to obtain whether the terminal supports the Advanced Audio Coding format and the Advanced Audio Coding format bitrate supported by the terminal; Determine the switch state of the Advanced Audio Coding format displayed on the current display interface; If the advanced audio coding format switch state displayed on the current display interface is in the on state, in response to the first coding format request, a first coding format response message is sent to the Bluetooth device, and the first coding format response message is used to indicate that the terminal supports the advanced audio coding format and the bit rate of the advanced audio coding format supported by the terminal; If an indication signaling used to characterize that the Bluetooth device has set the advanced audio coding format is received, it is determined that the coding format used for Bluetooth communication between the terminal and the Bluetooth device is the advanced audio coding format.
4. The Bluetooth communication method according to claim 3, wherein The Bluetooth communication method further includes: If the advanced audio coding format switch state displayed on the current display interface is in the off state, a second coding format response message is sent to the Bluetooth device, and the second coding format response message is used to indicate that the terminal supports the sub-band coding format; If an indication signaling used to characterize that the Bluetooth device has set the sub-band coding format based on the second coding format response message is received, it is determined that the coding format used for Bluetooth communication between the terminal and the Bluetooth device is the sub-band coding format.
5. The Bluetooth communication method according to claim 1, characterized in that, Determining the coding format used for Bluetooth communication between the terminal and the Bluetooth device includes: Sending a second coding format request to the Bluetooth device; If a third coding format response message sent by the Bluetooth device is received, it is determined that the coding format used for Bluetooth communication between the terminal and the Bluetooth device is the advanced audio coding format, where the third coding format response message is used to indicate that the Bluetooth device supports the advanced audio coding format and the bit rate of the advanced audio coding format supported by the Bluetooth device.
6. A Bluetooth communication method, characterized in that, Applied to a Bluetooth device, the Bluetooth communication method includes: Setting the coding format used for Bluetooth communication between the Bluetooth device and the terminal; In response to the coding format used for communication between the Bluetooth device and the terminal being the advanced audio coding format, based on the bit rate of the advanced audio coding format used for Bluetooth communication between the Bluetooth device and the terminal, controlling the Bluetooth device and the terminal to perform advanced audio coding format Bluetooth communication, and the bit rate of the advanced audio coding format used for Bluetooth communication between the Bluetooth device and the terminal is determined based on the bit rate of the advanced audio coding format supported by the Bluetooth device; Wherein, determining the bit rate of the advanced audio coding format used for Bluetooth communication between the terminal and the Bluetooth device based on the bit rate of the advanced audio coding format supported by the Bluetooth device includes: If the bit rate of the advanced audio coding format supported by the Bluetooth device falls within the range of the bit rates of the advanced audio coding format supported by the terminal, determining the bit rate of the advanced audio coding format supported by the Bluetooth device as the bit rate of the advanced audio coding format used for Bluetooth communication between the terminal and the Bluetooth device; If the bit rate of the advanced audio coding format supported by the Bluetooth device does not fall within the range of the bit rates of the advanced audio coding format supported by the terminal, adjusting the bit rate of the advanced audio coding format supported by the Bluetooth device; If the bit rate of the adjusted Advanced Audio Coding (AAC) format falls within the range of AAC format bit rates supported by the terminal, determine the adjusted AAC format bit rate as the AAC format bit rate used for AAC format Bluetooth communication between the terminal and the Bluetooth device; if the bit rate of the adjusted AAC format does not fall within the range of AAC format bit rates supported by the terminal, determine the default AAC format bit rate of the terminal as the AAC format bit rate used for AAC format Bluetooth communication between the terminal and the Bluetooth device.
7. The Bluetooth communication method according to claim 6, characterized in that The method for setting the coding format used for Bluetooth communication between a Bluetooth device and a terminal includes: Sending a first coding format request to the terminal, where the first coding format request is used to request to obtain the AAC format supported by the terminal and the AAC format bit rates supported by the terminal; If receiving the first coding format response message sent by the terminal, set the coding format used for Bluetooth communication between the Bluetooth device and the terminal as the AAC format, and send an indication signaling to the terminal to indicate that the Bluetooth device has set the AAC format. The first coding format response message is used to indicate that the terminal supports the AAC format, the AAC format bit rates supported by the terminal, and the switch state of the AAC format displayed on the current display interface of the terminal is in the on state; If receiving the second coding format response message sent by the terminal, set the coding format used for Bluetooth communication between the Bluetooth device and the terminal as the Subband Coding (SBC) format, and send an indication signaling to the terminal to indicate that the Bluetooth device has set the SBC format. The second coding format response message is used to indicate that the terminal supports the SBC format, and the switch of the AAC format displayed on the current display interface is in the off state; or Receiving a second coding format request sent by the terminal; if the Bluetooth device supports the AAC format, send a third coding format response message to the terminal, and set the coding format used for Bluetooth communication between the Bluetooth device and the terminal as the AAC format; the third coding format response message is used to indicate that the Bluetooth device supports the AAC format and the AAC format bit rates supported by the Bluetooth device.
8. A Bluetooth communication device, characterized in that, When applied to a terminal, the device includes: A determination unit, configured to determine the coding format used for Bluetooth communication between the terminal and the Bluetooth device, and in response to the coding format used for communication between the terminal and the Bluetooth device being the AAC format, determine the AAC format bit rate used for AAC format Bluetooth communication between the terminal and the Bluetooth device based on the AAC format bit rates supported by the Bluetooth device; A communication unit, configured to control the terminal and the Bluetooth device to perform AAC format Bluetooth communication based on the AAC format bit rate used for Bluetooth communication between the terminal and the Bluetooth device; Among them, the determining unit determines the bit rate of the advanced audio coding format supported by the Bluetooth device in the following manner, and determines the bit rate of the advanced audio coding format used for Bluetooth communication of the advanced audio coding format between the terminal and the Bluetooth device: If the bit rate of the advanced audio coding format supported by the Bluetooth device belongs to the range of the bit rates of the advanced audio coding formats supported by the terminal, then determine the bit rate of the advanced audio coding format supported by the Bluetooth device as the bit rate of the advanced audio coding format used for Bluetooth communication of the advanced audio coding format between the terminal and the Bluetooth device; If the bit rate of the advanced audio coding format supported by the Bluetooth device does not belong to the range of the bit rates of the advanced audio coding formats supported by the terminal, then adjust the bit rate of the advanced audio coding format supported by the Bluetooth device; if the adjusted bit rate of the advanced audio coding format belongs to the range of the bit rates of the advanced audio coding formats supported by the terminal, then determine the adjusted bit rate of the advanced audio coding format as the bit rate of the advanced audio coding format used for Bluetooth communication of the advanced audio coding format between the terminal and the Bluetooth device; If the adjusted bit rate of the advanced audio coding format does not belong to the range of the bit rates of the advanced audio coding formats supported by the terminal, then determine the default bit rate of the advanced audio coding format of the terminal as the bit rate of the advanced audio coding format used for Bluetooth communication of the advanced audio coding format between the terminal and the Bluetooth device.
9. The Bluetooth communication device according to claim 8, wherein The determining unit adjusts the bit rate of the advanced audio coding format supported by the Bluetooth device in the following manner: Multiply the bit rate of the advanced audio coding format supported by the Bluetooth device by a preset bit rate multiplier, and use the bit rate of the advanced audio coding format obtained after multiplication as the adjusted bit rate of the advanced audio coding format.
10. The Bluetooth communication device according to claim 8, wherein, The determining unit determines the coding format used for Bluetooth communication between the terminal and the Bluetooth device in the following manner: Receive a first coding format request sent by the Bluetooth device, where the first coding format request is used to request to obtain the advanced audio coding format supported by the terminal and the bit rate of the advanced audio coding format supported by the terminal; Determine the on / off state of the advanced audio coding format switch displayed on the current display interface; If the on / off state of the advanced audio coding format switch displayed on the current display interface is the on state, then respond to the first coding format request and send a first coding format response message to the Bluetooth device, where the first coding format response message is used to indicate the advanced audio coding format supported by the terminal and the bit rate of the advanced audio coding format supported by the terminal; If an indication signaling used to represent that the Bluetooth device has set the advanced audio coding format is received, then determine that the coding format used for Bluetooth communication between the terminal and the Bluetooth device is the advanced audio coding format.
11. The Bluetooth communication device according to claim 10, wherein The communication unit is further configured to: If the on / off state of the advanced audio coding format switch displayed on the current display interface is the off state, then send a second coding format response message to the Bluetooth device, where the second coding format response message is used to indicate that the terminal supports the sub-band coding format; If an indication signaling for characterizing that the Bluetooth device has set the sub-band coding format based on the second coding format response message is received, determine that the coding format adopted for Bluetooth communication between the terminal and the Bluetooth device is the sub-band coding format.
12. The Bluetooth communication device according to claim 8, wherein The determining unit determines the coding format adopted for Bluetooth communication between the terminal and the Bluetooth device in the following manner: Send a second coding format request to the Bluetooth device; If a third coding format response message sent by the Bluetooth device is received, determine that the coding format adopted for Bluetooth communication between the terminal and the Bluetooth device is the advanced audio coding format, where the third coding format response message is used to indicate that the Bluetooth device supports the advanced audio coding format and the bit rate of the advanced audio coding format supported by the Bluetooth device.
13. A Bluetooth communication device, characterized in that, Applied to the Bluetooth device, the Bluetooth communication device includes: A setting unit for setting the coding format adopted for Bluetooth communication between the Bluetooth device and the terminal; A communication unit for, in response to the coding format adopted for communication between the Bluetooth device and the terminal being the advanced audio coding format, controlling the Bluetooth device and the terminal to perform advanced audio coding format Bluetooth communication based on the bit rate of the advanced audio coding format adopted for Bluetooth communication between the Bluetooth device and the terminal, where the bit rate of the advanced audio coding format adopted for Bluetooth communication between the Bluetooth device and the terminal is determined based on the bit rate of the advanced audio coding format supported by the Bluetooth device; where determining the bit rate of the advanced audio coding format adopted for Bluetooth communication between the terminal and the Bluetooth device based on the bit rate of the advanced audio coding format supported by the Bluetooth device includes: If the bit rate of the advanced audio coding format supported by the Bluetooth device falls within the range of the bit rates of the advanced audio coding format supported by the terminal, determine that the bit rate of the advanced audio coding format supported by the Bluetooth device is the bit rate of the advanced audio coding format adopted for Bluetooth communication between the terminal and the Bluetooth device; If the bit rate of the advanced audio coding format supported by the Bluetooth device does not fall within the range of the bit rates of the advanced audio coding format supported by the terminal, adjust the bit rate of the advanced audio coding format supported by the Bluetooth device; If the adjusted bit rate of the advanced audio coding format falls within the range of the bit rates of the advanced audio coding format supported by the terminal, determine that the adjusted bit rate of the advanced audio coding format is the bit rate of the advanced audio coding format adopted for Bluetooth communication between the terminal and the Bluetooth device; If the adjusted bit rate of the advanced audio coding format does not fall within the range of the bit rates of the advanced audio coding format supported by the terminal, determine that the default bit rate of the advanced audio coding format of the terminal is the bit rate of the advanced audio coding format adopted for Bluetooth communication between the terminal and the Bluetooth device.
14. A Bluetooth communication device, characterized in that, Includes: A processor; A memory for storing instructions executable by the processor; Wherein, the processor is configured to: execute the Bluetooth communication method according to any one of claims 1 to 5, or execute the Bluetooth communication method according to any one of claims 6 to 7.
15. A storage medium, characterized in that, Instructions are stored in the storage medium, and when the instructions in the storage medium are executed by a processor of the terminal, the terminal is enabled to execute the Bluetooth communication method according to any one of claims 1 to 5, or when the instructions in the storage medium are executed by a processor of the Bluetooth device, the Bluetooth device is enabled to execute the Bluetooth communication method according to any one of claims 6 to 7.
Citation Information
Patent Citations
Audio coding format determination method and device, storage medium and electronic equipment
CN111199743A
Method and system for controlling accessing device of individual lan
CN1805324A