Data transmission method and device, terminal, Bluetooth audio equipment and storage medium
By dynamically switching to classic Bluetooth connection between Bluetooth audio devices and terminals, the problem of insufficient transmission speed in large data transmission scenarios is solved, and higher data transmission speed and better user experience are achieved.
Patent Information
- Application Number
- CN202311380983.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-23
- Publication Date
- 2025-04-25
AI Technical Summary
In the scenario of large data transmission, the low-power Bluetooth connection between Bluetooth audio equipment and terminals cannot meet the high-speed data transmission needs, resulting in slower transmission speed and affecting the user experience.
When only Bluetooth low-power connection is established with Bluetooth audio devices, respond to the large data transmission scenario, dynamically switch to the classic Bluetooth connection, and transmit the target data in the large data scenario through the classic Bluetooth connection.
The data transmission speed through classic Bluetooth connection is greater than that of low-power Bluetooth connection, which achieves the improvement of data transmission speed in large data transmission scenarios and improves the user experience.
Smart Images

Figure CN119893480A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of Bluetooth technology, and in particular to a data transmission method, apparatus, terminal, Bluetooth audio device and storage medium. Background Art
[0002] With the continuous development of Bluetooth audio transmission technology, more and more True Wireless Stereo (TWS) headphones have emerged.
[0003] Classic Bluetooth and Bluetooth Low Energy (LE) are two different Bluetooth connection modes. TWS earphones that support Bluetooth dual-mode can connect to terminal devices (such as smartphones) through both classic Bluetooth and LE modes at the same time. Summary of the invention
[0004] The embodiment of the present application provides a data transmission method, apparatus, terminal, Bluetooth audio device and storage medium. The technical solution is as follows:
[0005] On the one hand, an embodiment of the present application provides a data transmission method, which is applied to a terminal and includes:
[0006] In a case where only an LE Audio Bluetooth low energy connection is established with the Bluetooth audio device, in response to entering a large data volume transmission scenario, establishing a classic BT Bluetooth connection with the Bluetooth audio device;
[0007] The target data corresponding to the large data volume scenario is transmitted to the Bluetooth audio device based on the classic Bluetooth connection, wherein the data transmission speed under the classic Bluetooth connection is greater than the data transmission speed under the Bluetooth low energy connection.
[0008] On the other hand, an embodiment of the present application provides a data transmission method, which is applied to a Bluetooth audio device, and the method includes:
[0009] In a case where only a Bluetooth low energy connection is established with the terminal, in response to entering a large data volume transmission scenario, establishing a classic Bluetooth connection with the terminal;
[0010] The target data in a large data volume scenario transmitted by the terminal is received based on the classic Bluetooth connection, wherein a data transmission speed under the classic Bluetooth connection is greater than a data transmission speed under the Bluetooth low energy connection.
[0011] On the other hand, an embodiment of the present application provides a data transmission device, the device comprising:
[0012] A connection module, configured to establish a classic Bluetooth connection with the Bluetooth audio device in response to entering a large data volume transmission scenario when only a Bluetooth low energy connection is established with the Bluetooth audio device;
[0013] A transmission module is used to transmit target data corresponding to a large data volume scenario to the Bluetooth audio device based on the classic Bluetooth connection, wherein the data transmission speed under the classic Bluetooth connection is greater than the data transmission speed under the Bluetooth low energy connection.
[0014] On the other hand, an embodiment of the present application provides a data transmission device, the device comprising:
[0015] A connection module, configured to establish a classic Bluetooth connection with the terminal in response to entering a large data volume transmission scenario when only a Bluetooth low energy connection is established with the terminal;
[0016] A transmission module is used to receive target data in a large data volume scenario transmitted by the terminal based on the classic Bluetooth connection, wherein the data transmission speed under the classic Bluetooth connection is greater than the data transmission speed under the Bluetooth low energy connection.
[0017] On the other hand, an embodiment of the present application provides a terminal, which includes a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the data transmission method as described in the above aspects.
[0018] On the other hand, an embodiment of the present application provides a Bluetooth audio device, which includes a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the data transmission method described in the above aspect.
[0019] On the other hand, an embodiment of the present application provides a computer-readable storage medium, in which at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the data transmission method as described in the above aspects.
[0020] On the other hand, an embodiment of the present application provides a computer program product, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal executes the data transmission method as described in the above aspects.
[0021] In an embodiment of the present application, when only an LE Audio Bluetooth low-power connection is established with the Bluetooth audio device, in response to entering a large data volume transmission scenario, a classic BT classic Bluetooth connection is established with the Bluetooth audio device; target data corresponding to the large data volume scenario is transmitted to the Bluetooth audio device based on the classic Bluetooth connection, wherein the data transmission speed under the classic Bluetooth connection is greater than the data transmission speed under the Bluetooth low-power connection, so that the target data in the large data volume scenario can be transmitted to the Bluetooth audio device based on the classic Bluetooth connection, thereby improving the data transmission speed in the large data volume transmission scenario. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0023] Figure 1 It is a timing diagram of a user switching between classic Bluetooth (BT) and low-power Bluetooth (LE) connection modes by using a switch button in the related art;
[0024] Figure 2 It is a schematic diagram of the types and payloads of various messages in a classic Bluetooth BT connection mode provided by an exemplary embodiment of the present application;
[0025] Figure 3 It is a schematic diagram of a low-power Bluetooth air interface frame in a low-power Bluetooth LE connection mode provided by an exemplary embodiment of the present application;
[0026] Figure 4 is a flow chart of a data transmission method provided by an illustrative embodiment of the present application;
[0027] Figure 5 It is a timing diagram of a smartphone receiving a parameter update request sent by a TWS headset provided by an exemplary embodiment of the present application;
[0028] Figure 6 is a timing diagram of a smart phone sending a parameter update request to a TWS headset provided by an exemplary embodiment of the present application;
[0029] Figure 7 is a timing diagram of a terminal sending a pairing notification to a Bluetooth audio device through a first link based on a first protocol provided by an exemplary embodiment of the present application;
[0030] Figure 8 is a timing diagram of a terminal receiving a parameter recovery request sent by a Bluetooth audio device through a first link provided by an exemplary embodiment of the present application;
[0031] Fig. 9 is a flow chart of a data transmission method provided by another exemplary embodiment of the present application;
[0032] Fig.10 is a structural block diagram of a data transmission device provided by an exemplary embodiment of the present application;
[0033] Fig.11 is a structural block diagram of a data transmission device provided by another exemplary embodiment of the present application;
[0034] Fig.12 It is a structural diagram of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0036] Low Energy Audio (LE-Audio) is a new audio transmission technology of Bluetooth, which provides people with wireless audio services with lower power consumption, lower cost, higher quality and lower latency.
[0037] Classic Bluetooth is an audio transmission technology proposed before low-power Bluetooth audio, including Basic Rate (BR), Enhanced Data Rate (EDR) and Alternate MAC / PHYs (AMP) and other classic Bluetooth technologies.
[0038] With the continuous development of Bluetooth audio transmission technology, more and more TWS earphones have emerged. After entering pairing mode, TWS earphones that support Bluetooth dual-mode can connect to terminal devices (such as smartphones) through both classic Bluetooth and low-power Bluetooth modes at the same time.
[0039] In the related art, users are usually required to manually click a switch button in the interface to switch between classic Bluetooth and low-power Bluetooth connection modes, and the terminal device usually only keeps one of the classic Bluetooth or low-power Bluetooth modes connected by default.
[0040] See also Figure 1 , Figure 1 It is a timing diagram of the user switching between classic Bluetooth (BT) and low-power Bluetooth (LE) connection modes by using a switch button in the related art.
[0041] like Figure 1As shown, the TWS headset includes a TWS master ear and a TWS slave ear, and a TWS connection is established between the master ear and the slave ear. When the user executes step 1.1 to turn on the classic Bluetooth BT connection button, the smartphone initiates a BT connection (step 2.1). When the TWS master ear enters pairing mode (step 3.1), the smartphone establishes a BT connection with the TWS master ear, and the TWS master ear and the TWS slave ear monitor the BT link.
[0042] When the user executes step 1.2 to turn on the Bluetooth Low Energy LE connection button, the smartphone disconnects the BT connection (step 2.2) and initiates an LE connection (step 2.3). After the smartphone receives the LE Audio broadcasts sent by the master ear and the slave ear (step 3.2), it establishes an LE connection with the master ear and the slave ear.
[0043] When the user executes step 1.3 to turn off the Bluetooth Low Energy LE connection button, the smartphone disconnects the LE connection between the master ear and the slave ear, and reconnects the BT connection (step 2.4). The BT connection is re-established between the smartphone and the TWS master ear, and the TWS master ear and the TWS slave ear listen to the BT link again.
[0044] In the two connection modes of classic Bluetooth BT and low-power Bluetooth LE, the underlying physical layer links and transmission protocols of the data transmission process are different, so there is a difference in the amount of data transmitted.
[0045] In the classic Bluetooth BT connection mode, data is transmitted through the physical layer link of the classic Bluetooth based on the Serial Port Profile (SPP). The payload supported by the underlying packet is large, up to 1021 bytes, that is, the maximum amount of data that can be sent by the smartphone at one time is 1021 bytes written by the user layer. In actual use, it can carry about 600 to 700 bytes each time.
[0046] See also Figure 2 , Figure 2 It is a schematic diagram of the types and payloads of various messages in the classic Bluetooth BT connection mode provided by an exemplary embodiment of the present application.
[0047] like Figure 2As shown, the classic Bluetooth BT connection mode includes multiple types of messages, such as DM1 (Diagnostic Message 1), DH1, DM3, DH3, DM5, DH5, 2-DH1, 2-DH3, 2-DH5, 3-DH1, 3-DH3, 3-DH5, etc., and the lengths of their data headers are 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2 bytes respectively, and the effective loads are 0-17, 0-27, 0-121, 0-183, 0-224, 0-339, 0-54, 0-367, 0-679, 0-83, 0-552, and 0-1021 bytes respectively.
[0048] Depend on Figure 2 It can be seen that in the classic Bluetooth BT connection mode, the effective load of the message is usually large, up to 1021 bytes.
[0049] In the low-power Bluetooth LE connection mode, data is transmitted through the physical layer link of the low-power Bluetooth based on the Generic Attribute Profile (GATT). The maximum effective load of the link can only reach 258 bytes.
[0050] See also Figure 3 , Figure 3 It is a schematic diagram of a low-power Bluetooth air interface frame in a low-power Bluetooth LE connection mode provided by an exemplary embodiment of the present application.
[0051] like Figure 3 As shown, in the low-power Bluetooth air interface frame, from LSB (Least Significant Bit) to MSB (Most Significant Bit), it includes the following structures: preamble, usually 1 or 2 octets; Access-address, 4 octets; PDU (Protocol Data Unit), 2-258 octets; CRC (Cyclic Redundancy Check), 3 octets; and Constant Tone Extension.
[0052] Among them, PDU is the basic unit of data transmission in the low-power Bluetooth LE connection mode, which is used to carry the data to be transmitted, that is, the maximum effective load of the low-power Bluetooth air interface frame in the low-power Bluetooth LE connection mode can only reach 258 bytes.
[0053] Combination Figure 2 and Figure 3It can be seen that the data transmission speed based on the GATT protocol in the low-power Bluetooth LE connection mode is significantly different from the data transmission speed based on the SPP protocol in the classic Bluetooth BT connection mode. This will result in a lower data transmission speed and longer transmission time when the user turns on the LE connection button and a large amount of interactive scenarios (such as OTA scenarios (Over-The-Air technology)) occur, affecting the user experience.
[0054] See also Figure 4 , Figure 4 1 is a flow chart of a data transmission method provided by an exemplary embodiment of the present application. In some embodiments, the data transmission method is applied to a terminal. The flow chart includes the following steps.
[0055] Step 401, in the case where only an LE Audio Bluetooth low energy connection is established with the Bluetooth audio device, in response to entering a large data volume transmission scenario, a classic BT classic Bluetooth connection is established with the Bluetooth audio device.
[0056] In some embodiments, the data transmission method is applied to a terminal.
[0057] Optionally, the terminal includes but is not limited to smart phones, tablet computers, laptops, desktop computers, mobile smart terminals, vehicle-mounted smart terminals, smart TVs, wearable devices and other terminal devices.
[0058] A Bluetooth audio device is a device that uses Bluetooth technology to achieve functions such as audio playback.
[0059] Optionally, the Bluetooth audio devices include but are not limited to Bluetooth headsets (such as TWS headsets), Bluetooth speakers, Bluetooth MP3 (Moving Picture Experts Group, Audio Layer III), Bluetooth MP4 (Moving Picture Experts Group 4) and other devices.
[0060] It should be noted that the embodiments of the present application are described by taking the Bluetooth audio device as a TWS headset and the terminal as a smart phone as an example, but do not constitute a limitation on the type of terminal and the type of Bluetooth audio device.
[0061] Bluetooth low energy connection can also be called low energy Bluetooth LE connection. Low Energy Audio (LE-Audio) is a new Bluetooth audio transmission technology that brings people lower power consumption, lower cost, higher quality, and lower latency wireless audio services. In this application, Bluetooth low energy connection can also be referred to as LE Audio Bluetooth low energy connection.
[0062] In some embodiments, the Bluetooth low energy connection is based on a first protocol and transmits data through a first link.
[0063] The first link is a physical layer link corresponding to the Bluetooth low energy connection. For example, when the Bluetooth low energy connection is a low energy Bluetooth LE connection, the first link is a physical layer link corresponding to the low energy Bluetooth LE.
[0064] The first protocol is a transmission protocol used for data transmission in the first link under the Bluetooth low energy connection. For example, when the Bluetooth low energy connection is a low energy Bluetooth LE connection, the first protocol may be a GATT protocol.
[0065] In some embodiments, the data transmission speed over the Bluetooth low energy connection is lower.
[0066] In some embodiments, the large data volume transmission scenario includes an OTA scenario. For example, in order to enable users to use the supporting functions of the headset more conveniently, a headset application can be developed separately on the terminal. The headset application can be used to present the functions supported by the headset and guide users on how to use them. On the other hand, it can also be used to support users to dynamically configure the headset functions, such as headset control settings (pause / play / up and down songs / adjust volume, etc.) or switch noise reduction, etc.
[0067] In various data transmission scenarios, the headset application of the terminal can transmit data to the headset, such as transmitting data used to control the headset configuration or upgrading the headset version via OTA.
[0068] It should be noted that this application uses the OTA scenario as an example of a large data volume transmission scenario, but does not constitute a limitation on the large data volume transmission scenario. The large data volume transmission scenario may also include any other form of scenario with a large data transmission volume.
[0069] In some embodiments, the terminal may determine whether the current scenario is a large data volume transmission scenario based on the data transmission volume of the first link. For example, when the data transmission volume of the first link is greater than the transmission volume threshold, the current scenario is determined to be a large data volume transmission scenario.
[0070] In other embodiments, the terminal can determine whether the current scene is a large data volume transmission scene based on the display of the application interface. For example, when the terminal displays the target application interface, the current scene is determined to be a large data volume transmission scene. Among them, the target application interface is an application interface that triggers the transmission of target data to the dental audio device, and the target data can be data set by the terminal (such as data transmitted during OTA upgrade).
[0071] In other embodiments, the terminal may also determine whether the current scene is a large data volume transmission scene based on other methods. For example, the terminal may also determine whether the current scene is a large data volume transmission scene based on the upgrade period corresponding to the OTA upgrade reserved by the user, etc., and the embodiments of the present application are not limited to this.
[0072] In some embodiments, a classic Bluetooth connection is also referred to as a classic Bluetooth BT connection or a classic BT connection.
[0073] Classic Bluetooth is an audio transmission technology proposed before low-power Bluetooth audio. Optional, Classic Bluetooth includes Basic Rate (BR), Enhanced Data Rate (EDR) and Alternate MAC / PHYs (AMP) and other classic Bluetooth technologies.
[0074] In some embodiments, in a scenario where a large amount of data is transmitted and the Bluetooth audio device is in a Bluetooth pairing mode corresponding to a classic Bluetooth connection, the terminal establishes a classic Bluetooth connection with the Bluetooth audio device.
[0075] It should be noted that after the terminal establishes a classic Bluetooth connection with the Bluetooth audio device, it can maintain a Bluetooth low energy connection with the Bluetooth audio device at the same time, or disconnect the Bluetooth low energy connection with the Bluetooth audio device. In some embodiments, after the terminal establishes a classic Bluetooth connection with the Bluetooth audio device, it can also perform other data transmission (such as other types of data other than OTA upgrades) with the audio device through the first link based on the first protocol under the Bluetooth low energy connection.
[0076] Step 402: transmitting target data corresponding to a large data volume scenario to a Bluetooth audio device based on a classic Bluetooth connection, wherein a data transmission speed under the classic Bluetooth connection is greater than a data transmission speed under a Bluetooth low energy connection.
[0077] In some embodiments, the classic Bluetooth connection is based on a second protocol and performs data transmission through a second link.
[0078] The second link is a physical layer link corresponding to the classic Bluetooth connection. For example, when the classic Bluetooth connection is a classic Bluetooth BT connection, the second link is a physical layer link corresponding to the classic Bluetooth.
[0079] The second protocol is a transmission protocol used for data transmission in the second link under the classic Bluetooth connection. For example, when the classic Bluetooth connection is a classic Bluetooth BT connection, the second protocol may be an SPP protocol.
[0080] In some embodiments, data transmission speeds over a classic Bluetooth connection are greater.
[0081] For example, during an OTA upgrade, data transmission through a second link based on a second protocol may take 2 to 3 minutes; whereas data transmission through a first link based on a first protocol may take up to 7 to 8 minutes.
[0082] The target data is the data that the terminal needs to transmit to the Bluetooth audio device in the scenario of large data transmission. For example, if the scenario of large data transmission is OTA scenario, the target data is the data that the terminal needs to transmit to the Bluetooth audio device during the OTA upgrade process.
[0083] To summarize, when only an LE Audio Bluetooth low-power connection is established with the Bluetooth audio device, in response to entering a large data transmission scenario, a classic BT classic Bluetooth connection is established with the Bluetooth audio device; target data corresponding to the large data scenario is transmitted to the Bluetooth audio device based on the classic Bluetooth connection, wherein the data transmission speed under the classic Bluetooth connection is greater than the data transmission speed under the Bluetooth low-power connection, and the target data in the large data scenario can be transmitted to the Bluetooth audio device based on the classic Bluetooth connection, thereby improving the data transmission speed in the large data transmission scenario.
[0084] In some embodiments, after the terminal establishes a classic Bluetooth connection with the Bluetooth audio device, the terminal may disconnect the Bluetooth low energy connection established with the Bluetooth audio device; or, maintain the Bluetooth low energy connection established with the Bluetooth audio device.
[0085] In some embodiments, after the terminal establishes a classic Bluetooth connection with the Bluetooth audio device, it simultaneously maintains a Bluetooth low energy connection with the Bluetooth audio device.
[0086] Since the Bluetooth audio device maintains a Bluetooth low energy connection and a classic Bluetooth connection with the terminal at the same time, there may be a bandwidth preemption problem caused by maintaining the two connections at the same time. In a large data transmission scenario, in order to avoid the Bluetooth low energy connection from preempting the bandwidth of the classic Bluetooth connection, in some embodiments, the transmission parameters corresponding to the Bluetooth low energy connection can be adjusted to ensure that the Bluetooth audio device allocates bandwidth for the classic Bluetooth connection.
[0087] In some embodiments, before establishing the classic Bluetooth connection, the terminal transmits data with the Bluetooth audio device through a first link corresponding to the Bluetooth low energy connection based on the first protocol and the first transmission parameter.
[0088] The first transmission parameter is a transmission parameter of a first link corresponding to the Bluetooth low energy connection before establishing the classic Bluetooth connection.
[0089] In some embodiments, the first transmission parameter includes at least one of a first communication interval parameter and a first communication timeout parameter.
[0090] The communication interval parameter (connection_intervel) is used to characterize the scheduling frequency on the link. The Bluetooth audio device receives the data packet sent by the terminal at the end of each communication interval indicated by the communication interval parameter. The smaller the communication interval parameter, the higher the communication frequency between the Bluetooth audio device and the terminal, that is, the Bluetooth audio device needs to allocate more Bluetooth time slices to the link.
[0091] For example only, the first communication interval parameter is 7.5 ms.
[0092] The communication timeout parameter (Supervison_Timeout) is used to characterize the maximum communication timeout interval between the Bluetooth audio device and the terminal. That is, when the terminal sends a data packet to the Bluetooth audio device, if the Bluetooth audio device does not respond to each packet sent within the communication timeout parameter, the terminal will disconnect the link with the Bluetooth audio device; or, if the Bluetooth audio device does not receive the data packet sent by the terminal for a period exceeding the communication timeout parameter, the Bluetooth audio device will disconnect the link with the terminal.
[0093] For example only, the first communication timeout parameter is 500 ms.
[0094] In some embodiments, after the terminal establishes a classic Bluetooth connection with the Bluetooth audio device, the terminal can perform data transmission with the Bluetooth audio device through a first link corresponding to the Bluetooth low energy connection based on the first protocol and the second transmission parameters.
[0095] The transmission bandwidth occupied by the first link under the second transmission parameters is smaller than the transmission bandwidth occupied by the first link under the first transmission parameters.
[0096] In some embodiments, the second transmission parameter includes at least one of a second communication interval parameter and a second communication timeout parameter.
[0097] In some embodiments, the second communication interval parameter is greater than the first communication interval parameter, and the second communication timeout parameter is greater than the first communication timeout parameter.
[0098] For example only, the second communication interval parameter is 10 ms, which is greater than the first communication interval parameter (7.5 ms).
[0099] For example only, the second communication timeout parameter is 1000 ms, which is greater than the second communication timeout parameter (500 ms).
[0100] Since the second communication interval parameter is greater than the first communication interval parameter and the second communication timeout parameter is greater than the first communication timeout parameter, the frequency of data transmission in the first link corresponding to the Bluetooth low energy connection is reduced, that is, the Bluetooth audio device allocates relatively less bandwidth on the Bluetooth low energy connection. Therefore, the Bluetooth audio device can allocate relatively more bandwidth on the classic Bluetooth connection, thereby ensuring the transmission speed in large data transmission scenarios.
[0101] In some embodiments, the terminal can determine the second transmission parameter, and after establishing the classic Bluetooth connection, actively update the transmission parameter of the first link corresponding to the Bluetooth low energy connection from the first transmission parameter to the second transmission parameter, and send a parameter update request to the Bluetooth audio device through the first link.
[0102] In other embodiments, the terminal may receive a parameter update request sent by the Bluetooth audio device through the first link, and update the transmission parameter of the first link corresponding to the Bluetooth low energy connection from the first transmission parameter to the second transmission parameter based on the parameter update request.
[0103] The parameter update request is used to indicate that the transmission parameter of the first link is updated to the second transmission parameter. For example, the parameter update request may include information such as the link identifier of the first link corresponding to the Bluetooth low energy connection, the first transmission parameter, the second transmission parameter, and the parameter update time.
[0104] See also Figure 5 , Figure 5 This is a timing diagram of a smartphone receiving a parameter update request sent by a TWS headset provided by an exemplary embodiment of the present application. The timing diagram includes the following steps.
[0105] Step 5.1: The smartphone establishes a Bluetooth low energy connection with the TWS headset.
[0106] In step 5.2, the headset application of the smartphone sends data through the first link based on the first protocol and the first transmission parameters.
[0107] In step 5.3, when entering the OTA interface, the smartphone determines that the current scenario is a large data transmission scenario and establishes a classic Bluetooth connection with the TWS headset.
[0108] Step 5.4, when starting OTA, the smartphone sends target data in a large data volume scenario to the TWS headset through the second link based on the second protocol.
[0109] Step 5.5, the TWS headset determines a second transmission parameter corresponding to the Bluetooth low energy connection, wherein the transmission bandwidth occupied by the first link under the second transmission parameter is less than the transmission bandwidth occupied by the first link under the first transmission parameter.
[0110] Step 5.6: The smartphone sends data to the TWS headset through the first link based on the first protocol and the second transmission parameter.
[0111] In step 5.7, after the smartphone completes the OTA, exit the OTA interface and disconnect the classic Bluetooth connection with the TWS headset.
[0112] See also Figure 6 , Figure 6 This is a timing diagram of a smart phone sending a parameter update request to a TWS headset provided by an exemplary embodiment of the present application. The timing diagram includes the following steps.
[0113] Step 6.1: The smartphone establishes a Bluetooth low energy connection with the TWS headset.
[0114] In step 6.2, the headset application of the smartphone sends data through the first link based on the first protocol and the first transmission parameters.
[0115] In step 6.3, when entering the OTA interface, the smartphone determines that the current scenario is a large data transmission scenario and establishes a classic Bluetooth connection with the TWS headset.
[0116] Step 6.4, when starting OTA, the smartphone sends target data in a large data volume scenario to the TWS headset through the second link based on the second protocol.
[0117] In step 6.5, the smartphone determines a second transmission parameter corresponding to the Bluetooth low energy connection, and sends a parameter update request to the TWS headset through the first link based on the first protocol. The transmission bandwidth occupied by the first link under the second transmission parameter is less than the transmission bandwidth occupied by the first link under the first transmission parameter.
[0118] Step 6.6: The smartphone sends data to the TWS headset through the first link based on the first protocol and the second transmission parameter.
[0119] Step 6.7: After the smartphone completes the OTA, exit the OTA interface and disconnect the classic Bluetooth connection with the TWS headset.
[0120] In this embodiment, by actively sending a parameter update request by the terminal or passively receiving a parameter update request sent by the Bluetooth audio device, the transmission parameters of the first link corresponding to the Bluetooth low energy connection can be adjusted when a large amount of target data is transmitted based on the second link corresponding to the classic Bluetooth connection, so that the Bluetooth audio device allocates relatively less bandwidth to the first link corresponding to the Bluetooth low energy connection and relatively more bandwidth to the second link corresponding to the classic Bluetooth connection, thereby improving the transmission speed in the scenario of large data transmission.
[0121] In order for the terminal to establish a classic Bluetooth connection with the Bluetooth audio device, the Bluetooth audio device must be in the Bluetooth pairing mode corresponding to the classic Bluetooth connection.
[0122] Therefore, in some embodiments, the terminal can send a pairing notification to the Bluetooth audio device through the first link based on the first protocol under the Bluetooth low energy connection, so that the Bluetooth audio device turns on the Bluetooth pairing mode corresponding to the classic Bluetooth connection and establishes a classic Bluetooth connection with the terminal in the Bluetooth pairing mode.
[0123] Among them, the terminal sends a pairing notification to the Bluetooth audio device through the first link, which is called page; the Bluetooth pairing mode corresponding to the Bluetooth audio device turning on the classic Bluetooth connection is called page scan.
[0124] Optionally, the Bluetooth low energy connection is an LE Audio Bluetooth low energy connection, and the first protocol is the GATT general attribute coordination set protocol; the classic Bluetooth connection is a classic BT classic Bluetooth connection, and the second protocol is the SPP serial port communication protocol.
[0125] See also Figure 7 , Figure 7 This is a timing diagram of a terminal sending a pairing notification to a Bluetooth audio device through a first link based on a first protocol provided by an exemplary embodiment of the present application. The timing diagram includes the following steps.
[0126] Step 7.1: The smartphone establishes a Bluetooth low energy connection with the TWS headset.
[0127] In step 7.2, when entering the OTA interface, the smartphone sends a pairing notification to the TWS headset through the first link based on the first protocol, so that the TWS headset turns on the Bluetooth pairing mode corresponding to the classic Bluetooth connection.
[0128] Step 7.3: The TWS headset establishes a classic Bluetooth connection with the terminal in Bluetooth pairing mode.
[0129] Step 7.4, when starting OTA, the smartphone sends target data in a large data volume transmission scenario through the second link based on the second protocol.
[0130] …
[0131] In this embodiment, the terminal sends a pairing notification to the Bluetooth audio device through the first link based on the first protocol, so that the Bluetooth audio device can start the Bluetooth pairing mode corresponding to the classic Bluetooth connection to achieve subsequent establishment of the classic Bluetooth connection.
[0132] The terminal may determine whether the current scenario is a large data volume transmission scenario based on a variety of methods.
[0133] In some embodiments, the terminal may determine that the current scenario is a large data volume transmission scenario when the data transmission volume of the first link is greater than a transmission volume threshold.
[0134] Optionally, the transmission volume threshold may be set by a user, or may be determined by the terminal based on historical data transmission volumes.
[0135] In some embodiments, the terminal may determine that the current scenario is a large data volume transmission scenario when displaying the target application interface.
[0136] The target application interface is an application interface that triggers the transmission of target data to the Bluetooth audio device. For example, the target application interface may be an OTA interface in a headset application, or other application interfaces that transmit large amounts of data.
[0137] In other embodiments, the terminal may also determine whether the current scene is a large data volume transmission scene based on other methods. For example, the terminal may also determine whether the current scene is a large data volume transmission scene based on the upgrade period corresponding to the OTA upgrade reserved by the user, etc., and the embodiments of the present application are not limited to this.
[0138] After the target data is transmitted, the terminal exits the large data transmission scenario. For example, after the OTA upgrade is completed, the terminal exits the OTA interface.
[0139] In some embodiments, when exiting a large data volume transmission scenario, the terminal disconnects the classic Bluetooth connection with the Bluetooth audio device.
[0140] Optionally, the terminal may determine the current scenario as exiting a large data volume transmission scenario when the data transmission volume of the first link is less than a transmission volume threshold or when exiting a target application interface.
[0141] In one possible scenario, the user may frequently enter and exit the OTA interface, resulting in the classic Bluetooth connection being frequently established and disconnected. To solve this problem, an anti-shake function may be added. In some embodiments, when exiting a large data transmission scenario and the exit duration reaches a duration threshold, the terminal disconnects the classic Bluetooth connection with the Bluetooth audio device, wherein the classic Bluetooth connection is maintained if the exit duration does not reach the duration threshold.
[0142] Optionally, the duration threshold may be a fixed value (such as 5 seconds) set by the terminal, or a value set by the user.
[0143] Since a time threshold is set, even if the user continuously enters and exits the OTA interface within the time threshold, the classic Bluetooth connection between the terminal and the Bluetooth audio device will not be disconnected, thereby realizing the anti-shake function and avoiding interference with large data transmission tasks due to frequent entry and exit of the user.
[0144] After the terminal disconnects the classic Bluetooth connection with the Bluetooth audio device, the transmission parameters of the Bluetooth low energy connection can be restored.
[0145] In some embodiments, the terminal may receive a parameter recovery request sent by the Bluetooth audio device through the first link to restore the transmission parameters of the first link to the first transmission parameters. The parameter recovery request is sent when the classic Bluetooth connection is disconnected.
[0146] The parameter restoration request is a request for restoring the transmission parameters of the first link to the first transmission parameters.
[0147] Optionally, the parameter recovery request may include information such as the link identifier of the first link, the second transmission parameter, the first transmission parameter, and the parameter recovery time.
[0148] In some embodiments, the terminal may also send a parameter recovery request to the Bluetooth audio device through the first link, wherein the parameter recovery request is used to indicate that the transmission parameters of the first link are restored to the first transmission parameters, and the parameter recovery request is sent when the classic Bluetooth connection is disconnected.
[0149] See also Figure 8 , Figure 8 This is a timing diagram of a terminal receiving a parameter recovery request sent by a Bluetooth audio device through a first link provided by an exemplary embodiment of the present application. The timing diagram includes the following steps.
[0150] Step 8.1: The smartphone establishes a Bluetooth low energy connection with the TWS headset.
[0151] Step 8.2: The smartphone sends data through the first link based on the first protocol and the first transmission parameters.
[0152] In step 8.3, when entering the OTA interface, the smartphone determines that the current scenario is a large data transmission scenario and establishes a classic Bluetooth connection with the TWS headset.
[0153] Step 8.4, when starting OTA, the smartphone sends target data in a large data volume scenario to the TWS headset through the second link based on the second protocol.
[0154] Step 8.5: The smartphone sends data to the TWS headset through the first link based on the first protocol and the second transmission parameter.
[0155] Among them, the transmission bandwidth occupied by the first link under the second transmission parameters is smaller than the transmission bandwidth occupied by the first link under the first transmission parameters, so that the TWS headset can allocate relatively less bandwidth to the first link and relatively more bandwidth to the second link to improve the transmission speed of large data transmission tasks.
[0156] In step 8.6, when the smartphone exits the OTA interface and the exit duration reaches the duration threshold, the terminal disconnects the classic Bluetooth connection with the Bluetooth audio device.
[0157] By setting the duration threshold, you can avoid the situation where the classic Bluetooth connection is constantly established and disconnected due to the user frequently entering and exiting the OTA interface, thus achieving the anti-shake function.
[0158] In step 8.7, the TWS headset sends a parameter recovery request to the smartphone via the first link, wherein the parameter recovery request is used to indicate that the transmission parameters of the first link are restored to the first transmission parameters, and the parameter recovery request is sent when the classic Bluetooth connection is disconnected.
[0159] Step 8.8: The smartphone re-sends data through the first link based on the first protocol and the first transmission parameters.
[0160] Since the classic Bluetooth connection has been disconnected, the large data transmission task has been completed, and therefore, the transmission parameters on the first link can be restored to increase the data transmission speed on the first link.
[0161] In some embodiments, after disconnecting the Bluetooth low energy connection established with the Bluetooth audio device and exiting a large data transmission scenario, the terminal may re-establish a Bluetooth low energy connection with the Bluetooth audio device.
[0162] See also Fig. 9 , Fig. 9 1 is a flow chart of a data transmission method provided by another exemplary embodiment of the present application. In some embodiments, the data transmission method is applied to a Bluetooth audio device. The flow chart includes the following steps.
[0163] Step 901 : in response to entering a large data volume transmission scenario, when only a Bluetooth low energy connection is established with a terminal, establishing a classic Bluetooth connection with the terminal.
[0164] In some embodiments, the data transmission method is applied to a Bluetooth audio device.
[0165] Optionally, the terminal includes but is not limited to smart phones, tablet computers, laptops, desktop computers, mobile smart terminals, vehicle-mounted smart terminals, smart TVs, wearable devices and other terminal devices.
[0166] A Bluetooth audio device is a device that uses Bluetooth technology to achieve functions such as audio playback.
[0167] Optionally, the Bluetooth audio devices include but are not limited to Bluetooth headsets (such as TWS headsets), Bluetooth speakers, Bluetooth MP3 (Moving Picture Experts Group, Audio Layer III), Bluetooth MP4 (Moving Picture Experts Group 4) and other devices.
[0168] It should be noted that the embodiments of the present application are described by taking the Bluetooth audio device as a TWS headset and the terminal as a smart phone as an example, but do not constitute a limitation on the type of terminal and the type of Bluetooth audio device.
[0169] In some embodiments, the Bluetooth low energy connection is also referred to as a low energy Bluetooth LE connection. Low Energy Audio (LE-Audio) is a new Bluetooth audio transmission technology that provides people with lower power consumption, lower cost, higher quality, and lower latency wireless audio services. In this application, the Bluetooth low energy connection may also be referred to as a LE Audio Bluetooth low energy connection.
[0170] The first link is a physical layer link corresponding to the Bluetooth low energy connection. For example, when the Bluetooth low energy connection is a low energy Bluetooth LE connection, the first link is a physical layer link corresponding to the low energy Bluetooth LE.
[0171] The first protocol is a transmission protocol used for data transmission in the first link under the Bluetooth low energy connection. For example, when the Bluetooth low energy connection is a low energy Bluetooth LE connection, the first protocol may be a GATT protocol.
[0172] In some embodiments, the data transmission speed of the first link based on the first protocol is relatively low.
[0173] In some embodiments, the large data volume transmission scenario includes an OTA scenario. For example, in order to enable users to use the supporting functions of the headset more conveniently, a headset application can be developed separately on the terminal. The headset application can be used to present the functions supported by the headset and guide users on how to use them. On the other hand, it can also be used to support users to dynamically configure the headset functions, such as headset control settings (pause / play / up and down songs / adjust volume, etc.) or switch noise reduction, etc.
[0174] In various data transmission scenarios, the headset application of the terminal can transmit data to the headset, such as transmitting data used to control the headset configuration or upgrading the headset version via OTA.
[0175] In some embodiments, the Bluetooth audio device can determine whether the current scene is a large data volume transmission scene based on the data transmission volume of the first link. For example, when the data transmission volume of the first link is greater than the transmission volume threshold, the current scene is determined to be a large data volume transmission scene.
[0176] In other embodiments, the Bluetooth audio device may also determine whether the current scene is a large data volume transmission scene based on other methods. For example, the Bluetooth audio device may also determine whether the current scene is a large data volume transmission scene based on the upgrade period corresponding to the OTA upgrade reserved by the user, etc., and the embodiments of the present application are not limited to this.
[0177] In some embodiments, the classic Bluetooth connection is a classic Bluetooth connection, which is also referred to as a classic Bluetooth BT connection or a classic BT classic Bluetooth connection in this application.
[0178] Classic Bluetooth is an audio transmission technology proposed before low-power Bluetooth audio. Optional, Classic Bluetooth includes Basic Rate (BR), Enhanced Data Rate (EDR) and Alternate MAC / PHYs (AMP) and other classic Bluetooth technologies.
[0179] In some embodiments, in a scenario where a large amount of data is transmitted and the Bluetooth audio device is in a Bluetooth pairing mode corresponding to a classic Bluetooth connection, the Bluetooth audio device establishes a classic Bluetooth connection with the terminal.
[0180] It should be noted that after the terminal establishes a classic Bluetooth connection with the Bluetooth audio device, it can simultaneously maintain a Bluetooth low energy connection with the Bluetooth audio device. In some embodiments, after the terminal establishes a classic Bluetooth connection with the Bluetooth audio device, it can also perform other data transmission (e.g., other types of data other than OTA upgrades) with the audio device through the first link based on the first protocol under the Bluetooth low energy connection.
[0181] Step 902: Receive target data in a large data volume scenario transmitted by a terminal based on a classic Bluetooth connection, wherein a data transmission speed under the classic Bluetooth connection is greater than a data transmission speed under a Bluetooth low energy connection.
[0182] The second link is a physical layer link corresponding to the classic Bluetooth connection. For example, when the classic Bluetooth connection is a classic Bluetooth BT connection, the second link is a physical layer link corresponding to the classic Bluetooth.
[0183] The second protocol is a transmission protocol used for data transmission in the second link under the classic Bluetooth connection. For example, when the classic Bluetooth connection is a classic Bluetooth BT connection, the second protocol may be an SPP protocol.
[0184] In some embodiments, the data transmission speed of the second link based on the second protocol is greater than the data transmission speed of the first protocol.
[0185] For example, during an OTA upgrade, data transmission through a second link based on a second protocol may take 2 to 3 minutes; whereas data transmission through a first link based on a first protocol may take up to 7 to 8 minutes.
[0186] The target data is the data sent by the terminal received by the Bluetooth audio device in the scenario of large data transmission. For example, if the scenario of large data transmission is OTA scenario, the target data is the data sent by the terminal received by the Bluetooth audio device during the OTA upgrade process.
[0187] In the embodiment of the present application, when a Bluetooth low energy connection is established with a terminal, in response to entering a large data volume transmission scenario, a classic Bluetooth connection is established with the terminal, so that target data in a large data volume scenario sent by the terminal can be received based on the classic Bluetooth connection. Since the data transmission speed under the classic Bluetooth connection is greater than the data transmission speed under the Bluetooth low energy connection, the data transmission speed can be increased in a large data volume transmission scenario.
[0188] In some embodiments, before the Bluetooth audio device establishes a classic Bluetooth connection with the terminal, it can receive a pairing notification sent by the terminal through the first link based on the first protocol, and based on the pairing notification, start a Bluetooth pairing mode corresponding to the classic Bluetooth connection.
[0189] In some embodiments, the Bluetooth audio device establishes a classic Bluetooth connection with the terminal in Bluetooth pairing mode.
[0190] For more information about pairing notifications and Bluetooth pairing mode, see Figure 7 And the related descriptions are not repeated here.
[0191] In some embodiments, before establishing a classic Bluetooth connection with the terminal, the Bluetooth audio device transmits data with the terminal through a first link corresponding to the Bluetooth low energy connection based on a first protocol and a first transmission parameter.
[0192] In some embodiments, after establishing a classic Bluetooth connection with a terminal, the Bluetooth audio device transmits data with the terminal through a first link corresponding to the Bluetooth low energy connection based on a first protocol and a second transmission parameter, wherein the transmission bandwidth occupied by the first link under the second transmission parameter is less than the transmission bandwidth occupied by the first link under the first transmission parameter.
[0193] In some embodiments, the Bluetooth audio device receives a parameter update request sent by the terminal through the first link, wherein the parameter update request is used to indicate that the transmission parameter of the first link is updated to the second transmission parameter.
[0194] In other embodiments, the Bluetooth audio device determines a second transmission parameter, and based on the second transmission parameter, sends a parameter update request to the terminal through the first link; wherein the parameter update request is used to indicate that the transmission parameter of the first link is updated to the second transmission parameter.
[0195] In some embodiments, the Bluetooth audio device may determine the second transmission parameter based on the data volume of the target data in a large data volume transmission scenario.
[0196] For information about parameter update request, first transmission parameter and second transmission parameter, see Figure 5 and Figure 6 And the related description will not be repeated here.
[0197] In some embodiments, after the classic Bluetooth connection between the Bluetooth audio device and the terminal is disconnected, the Bluetooth audio device may receive a parameter recovery request sent by the terminal through the first link; or, send a parameter recovery request to the terminal through the first link; wherein the parameter recovery request is used to indicate that the transmission parameters of the first link are restored to the first transmission parameters, and the parameter recovery request is sent when the classic Bluetooth connection is disconnected.
[0198] For more information about parameter recovery requests, see Figure 8 And the related description will not be repeated here.
[0199] See also Fig.10 , Fig.10 : is a structural block diagram of a data transmission device provided by an exemplary embodiment of the present application. The device includes:
[0200] A connection module 1001 is used for establishing a classic Bluetooth connection with the Bluetooth audio device in response to entering a large data volume transmission scenario when only a Bluetooth low energy connection is established with the Bluetooth audio device;
[0201] The transmission module 1002 is used to transmit target data corresponding to a large data volume scenario to the Bluetooth audio device based on the classic Bluetooth connection, wherein the data transmission speed under the classic Bluetooth connection is greater than the data transmission speed under the Bluetooth low energy connection.
[0202] Optionally, the apparatus further includes a disconnection module, after establishing a classic Bluetooth connection with the Bluetooth audio device, the disconnection module is used to:
[0203] Disconnect the Bluetooth low energy connection established with the Bluetooth audio device.
[0204] Optionally, after establishing the classic Bluetooth connection with the Bluetooth audio device, the connection module 1001 is used to:
[0205] Maintain the Bluetooth low energy connection established with the Bluetooth audio device.
[0206] Optionally, before establishing the classic Bluetooth connection with the Bluetooth audio device, the transmission module 1002 is used to:
[0207] Based on the first protocol and the first transmission parameter, performing data transmission with the Bluetooth audio device through a first link corresponding to the Bluetooth low energy connection;
[0208] Optionally, after establishing the classic Bluetooth connection with the Bluetooth audio device, the transmission module 1002 is used to:
[0209] Based on the first protocol and the second transmission parameters, data is transmitted with the Bluetooth audio device through the first link corresponding to the Bluetooth low energy connection, wherein the transmission bandwidth occupied by the first link under the second transmission parameters is smaller than the transmission bandwidth occupied by the first link under the first transmission parameters.
[0210] Optionally, the transmission module 1002 is used to:
[0211] receiving a parameter update request sent by the Bluetooth audio device through the first link; or,
[0212] determining the second transmission parameter; and sending a parameter update request to the Bluetooth audio device through the first link based on the second transmission parameter;
[0213] The parameter update request is used to indicate that the transmission parameter of the first link is updated to the second transmission parameter.
[0214] Optionally, the first transmission parameter includes at least one of a first communication interval parameter and a first communication timeout parameter, and the second transmission parameter includes at least one of a second communication interval parameter and a second communication timeout parameter, wherein the second communication interval parameter is greater than the first communication interval parameter, and the second communication timeout parameter is greater than the first communication timeout parameter.
[0215] Optionally, the transmission module 1002 is used to:
[0216] receiving a parameter recovery request sent by the Bluetooth audio device through the first link; or,
[0217] Sending a parameter recovery request to the Bluetooth audio device through the first link;
[0218] The parameter recovery request is used to instruct to restore the transmission parameter of the first link to the first transmission parameter, and the parameter recovery request is sent when the classic Bluetooth connection is disconnected.
[0219] Optionally, before establishing the classic Bluetooth connection with the Bluetooth audio device, the connection module 1001 is used to:
[0220] A pairing notification is sent to the Bluetooth audio device based on the Bluetooth low energy connection, so that the Bluetooth audio device turns on a Bluetooth pairing mode corresponding to the classic Bluetooth connection, and establishes the classic Bluetooth connection with the terminal in the Bluetooth pairing mode.
[0221] Optionally, the device further includes a large data volume scene determination module, which is used to:
[0222] When the data transmission volume of the first link corresponding to the Bluetooth low energy connection is greater than the transmission volume threshold, determining that the current scenario is the large data volume transmission scenario; or,
[0223] When the target application interface is displayed, it is determined that the current scenario is the large data volume transmission scenario, and the target application interface is an application interface that triggers the transmission of the target data to the Bluetooth audio device.
[0224] Optional, disconnect module for:
[0225] When exiting the large data volume transmission scenario, the classic Bluetooth connection with the Bluetooth audio device is disconnected.
[0226] Optionally, when disconnecting the Bluetooth low energy connection established with the Bluetooth audio device, the connection module 1001 is configured to:
[0227] When exiting the large data volume transmission scenario, re-establish the Bluetooth low energy connection with the Bluetooth audio device.
[0228] Optional, disconnect module for:
[0229] When exiting the large data volume transmission scenario and the exit duration reaches a duration threshold, disconnecting the classic Bluetooth connection with the Bluetooth audio device, wherein the classic Bluetooth connection is maintained when the exit duration does not reach the duration threshold.
[0230] See also Fig.11 , Fig.11 : is a structural block diagram of a data transmission device provided by another exemplary embodiment of the present application. The device includes:
[0231] A connection module 1101 is configured to establish a classic Bluetooth connection with the terminal in response to entering a large data volume transmission scenario when only a Bluetooth low energy connection is established with the terminal;
[0232] The transmission module 1102 is used to receive target data in a large data volume scenario transmitted by the terminal based on the classic Bluetooth connection, wherein the data transmission speed under the classic Bluetooth connection is greater than the data transmission speed under the Bluetooth low energy connection.
[0233] Optionally, the connection module 1101 is used to:
[0234] Receiving a pairing notification sent by the terminal based on the Bluetooth low energy connection;
[0235] Based on the pairing notification, enable a Bluetooth pairing mode corresponding to the classic Bluetooth connection;
[0236] The classic Bluetooth connection is established with the terminal in the Bluetooth pairing mode.
[0237] Optionally, before establishing the classic Bluetooth connection with the terminal, the transmission module 1102 is used to:
[0238] Based on the first protocol and the first transmission parameter, performing data transmission with the terminal through a first link corresponding to the Bluetooth low energy connection;
[0239] Optionally, after establishing the classic Bluetooth connection with the terminal, the transmission module 1102 is used to:
[0240] Based on the first protocol and the second transmission parameters, data is transmitted with the terminal through the first link corresponding to the Bluetooth low energy connection, wherein the transmission bandwidth occupied by the first link under the second transmission parameters is smaller than the transmission bandwidth occupied by the first link under the first transmission parameters.
[0241] Optionally, the transmission module 1102 is used to:
[0242] receiving a parameter update request sent by the terminal through the first link; or,
[0243] determining the second transmission parameter; and sending a parameter update request to the terminal through the first link based on the second transmission parameter;
[0244] The parameter update request is used to indicate that the transmission parameter of the first link is updated to the second transmission parameter.
[0245] Optionally, the transmission module 1102 is used to:
[0246] receiving a parameter recovery request sent by the terminal through the first link; or,
[0247] sending a parameter recovery request to the terminal through the first link;
[0248] The parameter recovery request is used to instruct to restore the transmission parameter of the first link to the first transmission parameter, and the parameter recovery request is sent when the classic Bluetooth connection is disconnected.
[0249] See also Fig.12 , Fig.12 It is a structural diagram of a computer device provided by an exemplary embodiment of the present application.
[0250] The computer device may be implemented as the terminal or the Bluetooth audio device in the above embodiment.
[0251] The terminal includes but is not limited to smart phones, tablet computers, laptops, desktop computers, mobile smart terminals, vehicle-mounted smart terminals, smart TVs, wearable devices and other terminal devices. The terminal may also be called user equipment, portable terminal and other names.
[0252] The Bluetooth audio device includes but is not limited to Bluetooth headsets (such as TWS headsets), Bluetooth speakers, Bluetooth MP3 (Moving Picture Experts Group, Audio Layer III), Bluetooth MP4 (Moving Picture Experts Group 4) and other devices.
[0253] The terminal or the Bluetooth audio device may further include one or more of the following components: a processor 1210 and a memory 1220 .
[0254] Optionally, the processor 1210 uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 1220, and calling data stored in the memory 1220. Optionally, the processor 1210 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1210 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a neural network processor (NPU), and a baseband chip. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the touch display; the NPU is used to implement artificial intelligence (AI) functions; and the baseband chip is used to process wireless communications. It is understandable that the above-mentioned baseband chip may not be integrated into the processor 1210, but may be implemented by a separate chip.
[0255] The memory 1220 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1220 includes a non-transitory computer-readable storage medium. The memory 1220 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 1220 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data created according to the use of the electronic device (such as audio data, a phone book), etc.
[0256] In addition, those skilled in the art will appreciate that the structure of the electronic device shown in the above figures does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figures, or a combination of certain components, or a different arrangement of components.
[0257] The embodiment of the present application also provides a computer-readable storage medium, in which at least one instruction is stored, and the at least one instruction is loaded and executed by a processor to implement the method described in the above embodiment. Optionally, the computer-readable storage medium may include: ROM, RAM, solid state drive (SSD, Solid State Drives) or optical disk, etc. Among them, RAM may include resistance random access memory (ReRAM, Resistance Random Access Memory) and dynamic random access memory (DRAM, Dynamic Random Access Memory).
[0258] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the data transmission method provided in various optional implementations of the above aspects.
[0259] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A data transmission method, characterized in that: The method is applied to a terminal, and the method includes: In the case where only an LE Audio Bluetooth low energy connection is established with the Bluetooth audio device, the Bluetooth low energy connection establishes a classic BT classic Bluetooth connection with the Bluetooth audio device in response to entering a large data volume transmission scenario; Based on the classic Bluetooth connection, the target data corresponding to the large data volume scenario is transmitted to the Bluetooth audio device through the classic Bluetooth connection, wherein the data transmission speed under the classic Bluetooth connection is greater than the data transmission speed under the Bluetooth low energy connection.
2. The method according to claim 1, characterized in that After establishing a classic Bluetooth connection with the Bluetooth audio device, the method includes: disconnecting the Bluetooth low energy connection established with the Bluetooth audio device; or, Maintain the Bluetooth low energy connection established with the Bluetooth audio device.
3. The method according to claim 2, characterized in that Before establishing a classic Bluetooth connection with the Bluetooth audio device, the method includes: Based on the first protocol and the first transmission parameter, data is transmitted to the Bluetooth audio device through the Bluetooth low energy connection and a first link corresponding to the Bluetooth low energy connection; While maintaining the Bluetooth low energy connection established with the Bluetooth audio device, after establishing a classic Bluetooth connection with the Bluetooth audio device, the method further includes: Based on the first protocol and the second transmission parameters, data is transmitted with the Bluetooth audio device via the first link corresponding to the Bluetooth low energy connection through the Bluetooth low energy connection, wherein the transmission bandwidth occupied by the first link under the second transmission parameters is less than the transmission bandwidth occupied by the first link under the first transmission parameters.
4. The method according to claim 3, characterized in that The method further comprises: receiving a parameter update request sent by the Bluetooth audio device through the first link; or, determining the second transmission parameter; and sending a parameter update request to the Bluetooth audio device through the first link based on the second transmission parameter; The parameter update request is used to indicate that the transmission parameter of the first link is updated to the second transmission parameter.
5. The method according to claim 3, characterized in that: The first transmission parameter includes at least one of a first communication interval parameter and a first communication timeout parameter, and the second transmission parameter includes at least one of a second communication interval parameter and a second communication timeout parameter, wherein the second communication interval parameter is greater than the first communication interval parameter, and the second communication timeout parameter is greater than the first communication timeout parameter.
6. The method according to claim 3, characterized in that: The method further comprises: receiving a parameter recovery request sent by the Bluetooth audio device through the first link; or, Sending a parameter recovery request to the Bluetooth audio device through the first link; The parameter recovery request is used to instruct to restore the transmission parameter of the first link to the first transmission parameter, and the parameter recovery request is sent when the classic Bluetooth connection is disconnected.
7. The method according to claim 1, characterized in that Before establishing a classic Bluetooth connection with the Bluetooth audio device, the method further includes: Based on the Bluetooth low energy connection, a pairing notification is sent to the Bluetooth audio device, so that the Bluetooth audio device turns on the Bluetooth pairing mode corresponding to the classic Bluetooth connection, and establishes the classic Bluetooth connection with the terminal in the Bluetooth pairing mode.
8. The method according to claim 1, characterized in that In the scenario of large data volume transmission, before establishing a classic Bluetooth connection with the Bluetooth audio device, the method further includes: When the data transmission volume of the first link corresponding to the Bluetooth low energy connection is greater than the transmission volume threshold, determining that the current scenario is the large data volume transmission scenario; or, When the target application interface is displayed, it is determined that the current scenario is the large data volume transmission scenario, and the target application interface is an application interface that triggers the transmission of the target data to the Bluetooth audio device.
9. The method according to claim 1, characterized in that: The method further comprises: When exiting the large data volume transmission scenario, disconnect the classic Bluetooth connection with the Bluetooth audio device.
10. The method according to claim 2, characterized in that In case of disconnecting the Bluetooth low energy connection established with the Bluetooth audio device, the method further includes: When exiting the large data volume transmission scenario, re-establish the Bluetooth low energy connection with the Bluetooth audio device.
11. The method according to claim 9, characterized in that When exiting the large data volume transmission scenario, disconnecting the classic Bluetooth connection with the Bluetooth audio device comprises: When exiting the large data volume transmission scenario and the exit duration reaches a duration threshold, disconnecting the classic Bluetooth connection with the Bluetooth audio device, wherein the classic Bluetooth connection is maintained when the exit duration does not reach the duration threshold.
12. A data transmission method, characterized in that: The method is applied to a Bluetooth audio device, and the method comprises: In the case where only a Bluetooth low energy connection is established with the terminal, the Bluetooth low energy connection establishes a classic Bluetooth connection with the terminal in response to entering a large data volume transmission scenario; The target data in a large data volume scenario transmitted by the terminal is received via the classic Bluetooth connection based on the classic Bluetooth connection, wherein a data transmission speed under the classic Bluetooth connection is greater than a data transmission speed under the Bluetooth low energy connection.
13. The method according to claim 12, characterized in that Before establishing the classic Bluetooth connection with the terminal, the method further includes: Receiving a pairing notification sent by the terminal based on the Bluetooth low energy connection; Based on the pairing notification, enable a Bluetooth pairing mode corresponding to the classic Bluetooth connection; The establishing the classic Bluetooth connection with the terminal includes: The classic Bluetooth connection is established with the terminal in the Bluetooth pairing mode.
14. The method according to claim 12, characterized in that The method of establishing a Bluetooth low energy connection with the terminal before establishing a classic Bluetooth connection includes: Based on the first protocol and the first transmission parameter, performing data transmission with the terminal through the Bluetooth low energy connection and a first link corresponding to the Bluetooth low energy connection; After establishing a classic Bluetooth connection with the terminal, the method further includes: Based on the first protocol and the second transmission parameters, data is transmitted with the terminal via the first link corresponding to the Bluetooth low energy connection through the Bluetooth low energy connection, wherein the transmission bandwidth occupied by the first link under the second transmission parameters is less than the transmission bandwidth occupied by the first link under the first transmission parameters.
15. The method according to claim 14, characterized in that The method further comprises: receiving a parameter update request sent by the terminal through the first link; or, determining the second transmission parameter; and sending a parameter update request to the terminal through the first link based on the second transmission parameter; The parameter update request is used to indicate that the transmission parameter of the first link is updated to the second transmission parameter.
16. The method according to claim 14, characterized in that The method further comprises: receiving a parameter recovery request sent by the terminal through the first link; or, sending a parameter recovery request to the terminal through the first link; The parameter recovery request is used to instruct to restore the transmission parameter of the first link to the first transmission parameter, and the parameter recovery request is sent when the classic Bluetooth connection is disconnected.
17. A data transmission device, characterized in that: The device comprises: A connection module, configured to establish a Bluetooth low energy connection, a Bluetooth low energy connection, a classic Bluetooth connection, a classic Bluetooth connection, and, in response to entering a large data volume transmission scenario, establish a classic Bluetooth connection with the Bluetooth audio device when only a Bluetooth low energy connection is established with the Bluetooth audio device; A transmission module is used to transmit target data corresponding to a large data volume scenario to the Bluetooth audio device based on the classic Bluetooth connection, wherein the data transmission speed under the classic Bluetooth connection is greater than the data transmission speed under the Bluetooth low energy connection.
18. A data transmission device, characterized in that: The device comprises: Bluetooth low energy connection Bluetooth low energy connection Classic Bluetooth connection Classic Bluetooth connection Classic Bluetooth connection Connection module, used for establishing a classic Bluetooth connection with the terminal in response to entering a large data volume transmission scenario when only a Bluetooth low energy connection is established with the terminal; A transmission module is used to receive target data in a large data volume scenario transmitted by the terminal based on the classic Bluetooth connection, wherein the data transmission speed under the classic Bluetooth connection is greater than the data transmission speed under the Bluetooth low energy connection.
19. A terminal, characterized in that: The terminal includes a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the data transmission method according to any one of claims 1 to 11.
20. A Bluetooth audio device, characterized in that: The Bluetooth audio device includes a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the data transmission method according to any one of claims 12 to 16.
21. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the data transmission method according to any one of claims 1 to 16.
22. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the data transmission method according to any one of claims 1 to 16.