A bluetooth data transmission method, master device and slave device

By dividing the raw data into multiple data segments and generating an overlapping set of data segments, the problem of reduced sound quality and data loss in traditional Bluetooth data transmission is solved, achieving more efficient data transmission and better sound quality.

CN115835172BActive Publication Date: 2026-01-20SHENZHEN BLUETRUM TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211526140.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-01
Publication Date
2026-01-20
Estimated Expiration
2042-12-01

AI Technical Summary

Technical Problem

In traditional Bluetooth data transmission, the long interval between data packet transmissions between the master and slave devices leads to reduced sound quality and a significant amount of data packet loss.

Method used

The master device divides the raw data into multiple data segments and generates a set of adjacent data segments, including overlapping data segments, and sends them to the slave device according to a preset communication cycle.

Benefits of technology

By segmenting and recombining data segments, data transmission efficiency is improved, data processing latency and loss are reduced, thereby enhancing sound quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115835172B_ABST
    Figure CN115835172B_ABST
Patent Text Reader

Abstract

The application relates to the field of Bluetooth data transmission and discloses a Bluetooth data transmission method, a master device and a slave device. The Bluetooth data transmission method comprises the following steps: segmenting original data to obtain at least two data segments, generating a plurality of data segment sets according to the data segments, the adjacent two data segment sets comprising overlapping data segments, and sending the data segment sets to the slave device in response to a connection event of a preset communication period. On the one hand, the embodiment is advantageous in improving the Bluetooth data transmission efficiency, reducing the subsequent data processing delay, and thus improving the sound quality, by segmenting the original data into a plurality of data segments and recombining the data segments into a plurality of data segment sets for transmission. On the other hand, the adjacent data segment sets sent by the master device to the slave device comprise overlapping data segments, the overlapping data segments can be transmitted multiple times, which is advantageous in reducing the Bluetooth data loss, and thus further improving the sound quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Bluetooth data transmission, and specifically to a Bluetooth data transmission method, a master device, and a slave device. Background Technology

[0002] eSCO (extended Synchronous Connection Oriented) is a Bluetooth link transmission method that is an extension of SCO (Synchronous Connection Oriented). Unlike SCO, eSCO supports a limited number of retransmissions between devices, while SCO does not support retransmissions.

[0003] In traditional eSCO-based Bluetooth data transmission, the master device and the slave device communicate at a certain communication cycle (e.g., 7.5ms). The master device sends a data packet to the slave device in each communication cycle. If the slave device does not receive the data packet sent by the master device in a communication cycle, the master device will retransmit the data packet to the slave device with a small number of retransmissions until the slave device receives the data packet in the communication cycle. If the slave device does not receive the data packet in the communication cycle, the data packet is lost.

[0004] In traditional methods, the master device sends or retransmits the same data packets to the slave device in the same communication cycle. This can easily cause the slave device to receive different data packets in two adjacent communication cycles with a long time interval, resulting in large data delays and thus reduced sound quality. Summary of the Invention

[0005] One objective of this invention is to provide a Bluetooth data transmission method, a master device, and a slave device that can solve the problem of low sound quality in the prior art.

[0006] In a first aspect, embodiments of the present invention provide a Bluetooth data transmission method, applied to a host device, comprising:

[0007] Split the original data to obtain at least two data segments;

[0008] Based on the data segment, multiple data segment sets are generated, and two adjacent data segment sets include overlapping data segments;

[0009] In response to a connection event that occurs within a preset communication period, the data segment set is sent to the slave device.

[0010] Optionally, at least one of the data segment sets includes the at least two data segments.

[0011] Optionally, the segmentation of the original data to obtain at least two data segments includes:

[0012] Determine the current communication status of the master device;

[0013] Based on the current communication state, segment the original data.

[0014] Optionally, each segmentation level corresponds to a segmentation ratio, and segmenting the original data according to the segmentation level includes:

[0015] The original data is segmented according to the segmentation ratio of the segmentation level.

[0016] Optionally, segmenting the original data according to the current communication state includes:

[0017] Determine the segmentation level based on the current communication status;

[0018] The original data is segmented according to the segmentation level.

[0019] Optionally, it also includes:

[0020] According to a preset link protocol, a data packet to be sent is generated corresponding to each data segment set. Each data packet includes payload data, which includes the data segment set and a data identifier. The data identifier is used to identify the data segment set or the overlapping data segments.

[0021] Optionally, generating a set of multiple data segments based on the data segment includes:

[0022] Sort the data segments to obtain the ordered data segments:

[0023] Multiple data segment sets are generated based on the sequentially arranged data segments.

[0024] In a second aspect, embodiments of the present invention provide a Bluetooth data transmission method, applied to a slave device, comprising:

[0025] In response to a connection event during a preset communication period, the system receives a set of data segments sent by the master device. The set of data segments is generated from at least two data segments, and adjacent sets of data segments include overlapping data segments. The data segments are obtained by the master device by segmenting the original data.

[0026] In a third aspect, embodiments of the present invention provide a main device, comprising:

[0027] At least one processor; and,

[0028] A memory communicatively connected to the at least one processor; wherein,

[0029] The memory stores instructions that can be executed by the at least one processor, which, when executed, enable the at least one processor to perform the Bluetooth data transmission method as described above.

[0030] In a fourth aspect, embodiments of the present invention provide a slave device, comprising:

[0031] At least one processor; and,

[0032] A memory communicatively connected to the at least one processor; wherein,

[0033] The memory stores instructions that can be executed by the at least one processor, which, when executed, enable the at least one processor to perform the Bluetooth data transmission method as described above.

[0034] In the Bluetooth data transmission method provided in this embodiment of the invention, firstly, the master device segments the original data to obtain at least two data segments. Then, the master device generates multiple data segment sets based on the data segments, with adjacent data segment sets including overlapping data segments. Finally, the master device responds to a connection event within a preset communication period and sends the data segment sets to the slave device. On one hand, by segmenting the original data and recombining it into multiple data segment sets before transmission, the master device improves Bluetooth data transmission efficiency and reduces subsequent data processing latency, thereby improving sound quality. On the other hand, since the adjacent data segment sets sent by the master device to the slave device include overlapping data segments, these overlapping data segments can be transmitted multiple times, reducing Bluetooth data loss and further improving sound quality. Attached Figure Description

[0035] One or more embodiments are illustrated by way of example only, and these illustrative examples do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements, and unless otherwise stated, the figures in the drawings do not constitute a limitation on scale.

[0036] Figure 1 This is a flowchart illustrating a Bluetooth data transmission method provided in an embodiment of the present invention;

[0037] Figure 2 This is a schematic diagram of the structure of the data packet to be sent provided in an embodiment of the present invention;

[0038] Figure 3 This is a schematic diagram of the structure of a data packet to be sent according to another embodiment of the present invention;

[0039] Figure 4 This is a schematic diagram illustrating the principle of master-slave device communication in the Bluetooth data transmission method provided in this embodiment of the invention;

[0040] Figure 5 yes Figure 1 The flowchart of S11 is shown below;

[0041] Figure 6 yes Figure 5 The flowchart of S112 is shown below;

[0042] Figure 7 This is a schematic diagram of the structure of a Bluetooth data transmission device provided in an embodiment of the present invention;

[0043] Figure 8 yes Figure 7 The diagram shows the structure of the segmentation module.

[0044] Figure 9 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0045] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without inventive effort are within the scope of protection of this invention.

[0046] It should be noted that, unless otherwise specified, the various features in the embodiments of this invention can be combined with each other, all of which are within the protection scope of this invention. Furthermore, although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than the module division in the device or the order in the flowchart. Moreover, the terms "first," "second," and "third" used in this invention do not limit the data or execution order, but only distinguish identical or similar items with essentially the same function and effect.

[0047] This invention provides a Bluetooth data transmission method. Please refer to [link / reference]. Figure 1 The Bluetooth data transmission method S100 includes:

[0048] S11. Divide the original data to obtain at least two data segments;

[0049] In this step, the raw data is the data that the master device needs to transmit to the slave device in each communication cycle. The master device can use any segmentation method to divide the raw data to obtain at least two data segments, where each data segment is a piece of data from the raw data.

[0050] For example, the original data includes data D123. The master device segments data D123 to obtain data segments D1, D2, and D3. Data segments D1, D2, and D3 are each a segment of data D123.

[0051] S12. Based on the data segments, generate multiple data segment sets, where two adjacent data segment sets include overlapping data segments;

[0052] In this step, the data segment set may include one data segment or multiple data segments, and the overlapping data segments included in two adjacent data segment sets may be one data segment or multiple data segments.

[0053] The master device can generate multiple data segment sets based on data segments using any generation method. In some embodiments, the master device sorts multiple data segments to obtain sequentially arranged data segments, and generates a data segment set based on the sequentially arranged data segments.

[0054] For example, as mentioned above, the master device sorts data segments D1, D2, and D3 to obtain sequentially sorted data segments D1, D2, and D3. Based on the sequentially sorted data segments D1, D2, and D3, the master device obtains a set of data segments A including data segment D1, a set of data segments B including data segments D1 and D2, and a set of data segments C including data segments D1, D2, and D3.

[0055] The master device can arrange the generated multiple data segment sets to obtain a sequentially arranged set of data segments. For example, as mentioned above, the master device arranges data segment set A, data segment set B, and data segment set C to obtain a sequentially arranged set of data segments A, data segment set B, and data segment set C.

[0056] It is understandable that data segment set A and data segment set B are two adjacent data segment sets, and data segment set B and data segment set C are also two adjacent data segment sets. Data segment set A and data segment set B include overlapping data segment D1, and data segment set B and data segment set C include overlapping data segment D1 and data segment D2.

[0057] In some embodiments, the data segment set serves as the payload data of a data packet to be sent from the master device to the slave device, wherein the data packet to be sent is a data packet that the master device is about to send to the slave device in each communication cycle.

[0058] In some embodiments, the master device generates a data packet to be sent corresponding to each data segment set according to a preset link protocol. Each data packet to be sent includes payload data, which includes a data segment set and a data identifier. The data identifier is used to identify the data segment set or overlapping data segments.

[0059] For example, please refer to the following: Figure 2 and Figure 3 The data packet to be transmitted provided in this embodiment of the invention consists of three parts: an access code, a header, and payload data. The access code is used for data synchronization, offset compensation, and data packet identification. The header stores link control information, and the payload data carries upper-layer voice and data fields. In this embodiment, the payload data carries a set of data segments and a data identifier. The data identifier can be a set identifier, used to identify the set of data segments, or it can be a data segment identifier, used to identify overlapping data segments.

[0060] like Figure 2 As shown, the payload data includes a set of data segments A and a set identifier A at the beginning of the data segment set. Here, the set identifier is located at the beginning of the data segment set. It can be understood that the set identifier can also be located in other suitable positions within the data segment set, such as at the end, as long as it can identify each data segment set. The set identifier can be any suitable identifier, such as a sequence number identifier for each data segment set.

[0061] like Figure 3 As shown, the payload data includes data segment D1, a data identifier D1 (located after data segment D1), data segment D2, a data identifier D2 (located after data segment D2), data segment D3, and a data identifier D3 (located after data segment D3). The D1 identifier indicates that data segment D1 is an overlapping data segment, the D2 identifier indicates that data segment D2 is an overlapping data segment, and the D3 identifier indicates that data segment D3 is an overlapping data segment. Here, each data identifier is located at the end of the corresponding overlapping data segment. It can be understood that each data identifier can also be located at other suitable positions within the corresponding overlapping data segment, such as at the beginning of the corresponding overlapping data segment, as long as it can identify each overlapping data segment. The data identifier can be any suitable identifier, such as a sequence number identifier for each overlapping data segment.

[0062] Therefore, the master device adds a data segment identifier for the data segment set or a data segment identifier for each overlapping data segment to the payload data of the data packet according to the preset link protocol, so as to generate a data packet to be sent corresponding to each data segment set. This is beneficial for distinguishing overlapping data segments from non-overlapping data segments or different data segment sets in the later stage, which is conducive to data processing in the later stage.

[0063] In some embodiments, the default link protocol is a custom private SCO (Synchronous Connection Oriented) protocol.

[0064] S13. Respond to the connection event of the preset communication period and send a set of data segments to the slave device.

[0065] In this step, the preset communication period is the period during which the master device transmits the data packets to be sent to the slave device. The preset communication period can be freely defined according to business needs. For example, the preset communication period can be 7.5ms (milliseconds) or any other integer multiple of 625us (microseconds).

[0066] The preset communication period can include one or multiple communication periods. Each communication period can include multiple connection events. The master device can respond to each connection event in the preset communication period and send a data packet to be sent to the slave device. The data packets sent by the master device to the slave device in response to different connection events can be the same or different. That is, the set of data segments sent by the master device to the slave device in response to different connection events can be the same or different.

[0067] For example, if the preset communication period includes three connection events, as mentioned above, the master device can respond to the three connection events of the preset communication period in sequence, sending data segment set A, data segment set B, and data segment set C to the slave device respectively. In this case, the master device sends different data segment sets to the slave device in response to different connection events. If the preset communication period includes four connection events, the master device can respond to the first three connection events of the preset communication period in sequence, sending data segment set A, data segment set B, and data segment set C to the slave device respectively. And when the master device does not receive feedback from the slave device that it has successfully received data segment set C in the third connection event, the master device responds to the fourth connection event and resends data segment set C to the slave device. In this case, the master device can send the same data segment set to the slave device in response to different connection events.

[0068] It is understandable that the master device responds to two adjacent connection events by sending two sets of data segments to the slave device, including overlapping data segments. As mentioned earlier, the master device responds to the first connection event of a preset communication period by sending data segment set A to the slave device, and responds to the second connection event of the preset communication period by sending data segment set B to the slave device. Data segment set A and data segment set B include overlapping data segment D1.

[0069] Please see Figure 4Assume the original data includes data D456 and data D789. Data D456 is the data that the master device needs to transmit to the slave device in communication cycle C1, and data D789 is the data that the master device needs to transmit to the slave device in communication cycle C2. Both communication cycles C1 and C2 include three connection events, and the duration of each interaction between the master device and the slave device is 2.5ms.

[0070] The master device segments data D4, D5, and D6 to obtain data segments D4, D5, and D6, and segments data D7, D8, and D9 to obtain data segments D7, D8, and D9. Then, based on data segments D4, D5, D6, D7, D8, and D9, it generates data segment sets D, E, F, G, H, and I. Among them, data segment set D includes data segment D4, data segment set E includes data segments D4 and D5, data segment set F includes data segments D4, D5, and D6, data segment set G includes data segments D5, D6, and D7, data segment set H includes data segments D6, D7, and D8, and data segment set I includes data segments D7, D8, and D9.

[0071] The master device can respond to the three connection events of communication cycle C1 in sequence, sending data segment set D, data segment set E and data segment set F to the slave device respectively, and respond to the three connection events of communication cycle C2 in sequence, sending data segment set G, data segment set H and data segment set I to the slave device respectively.

[0072] Understandably, in the case of poor communication but no data loss, the maximum data delay is 7.5ms when the device receives data segment set F in the third connection event of communication cycle C1 and data segment set I in the third connection event of communication cycle C2.

[0073] In traditional technology, under the same conditions of poor communication and no data loss, if the slave device receives data D456 in the first connection event of communication cycle C1 and data D789 in the third connection event of communication cycle C2, the data delay is a maximum of 12.5ms. This is because when the slave device receives data D456 in the first connection event of communication cycle C1, it still needs to go through two connection events before entering the next cycle, i.e., communication cycle C2. After entering communication cycle C2, it still needs to go through three connection events before the slave device receives data D789.

[0074] Since the main device can divide the raw data into multiple data segments and recombine them into multiple data segment sets for transmission, it is beneficial to reduce data latency in the event of poor communication, thereby improving sound quality.

[0075] It is also understandable that in traditional technology, data processing can only proceed after the device successfully receives complete data within a communication cycle. For example, if the device receives data D456 in the first connection event of communication cycle C1 and data D789 in the second connection event of communication cycle C2, in this case, after the device receives data D456 and performs subsequent processing, it still needs to wait for the second connection event of communication cycle C2 to receive data D789 before it can perform subsequent processing on data D789, resulting in a significant data processing delay.

[0076] However, in this embodiment, the master device divides the large amount of original data into multiple data segments and recombines them into multiple data segment sets. Adjacent data segment sets include overlapping data segments. The amount of data in the data segment sets is generally smaller than the amount of data in the original data. Therefore, when the master device responds to each connection event in a preset period and sends the data segment sets to the slave device, it can improve data transmission efficiency. This is beneficial because the slave device can process the data after receiving part of the original data, thereby reducing data processing latency and improving sound quality.

[0077] Please continue reading. Figure 4 In the event of poor communication, even if the device fails to receive the data segment set in all three connection events of communication cycle C1, but receives the data segment set G in the first connection event of communication cycle C2, the data segments (data segment D5 and data segment D6) that overlap with the data segment set G and the data segment set F will not be lost. Since data segment D5 and data segment D6 are part of data D456, part of data D456 is retained.

[0078] However, in the traditional method, if the device fails to receive data D456 in all three connection events of communication cycle C1, then data D456 will be lost.

[0079] Since the set of adjacent data segments sent from the master device to the slave device includes overlapping data segments, and these overlapping data segments can be transmitted multiple times, even if the overlapping data segments are not successfully received by the slave device in one connection event but are successfully received by the slave device in other connection events, the overlapping data segments will not be lost. Therefore, compared with traditional methods, this embodiment can reduce the amount of data loss, thereby improving sound quality.

[0080] In some embodiments, at least one set of data segments includes at least two data segments (i.e., all data segments) obtained by splitting the original data.

[0081] For example, as mentioned earlier, the master device splits data D123 to obtain data segments D1, D2, and D3. The data segment set C includes all data segments obtained by splitting the original data (i.e., data segments D1, D2, and D3).

[0082] Understandably, when the data segment set does not include all data segments obtained by splitting the original data, for example, the original data includes data D123, which is the data that the master device needs to transmit to the slave device in the current communication cycle. The master device splits data D123 into data segments D1, D2, and D3. Based on data segments D1, D2, and D3, the master device generates data segment sets J, K, and L, where data segment set J includes data segment D1, data segment set K includes data segment D1, and data segment set L. According to segment D2, data segment set L includes data segment D2 and data segment D3. In response to the connection event of the current communication cycle, the master device sends data segment set J, data segment set K, and data segment set L to the slave device respectively. In the case of poor communication, if the slave device fails to receive data segment set J and data segment set K sent by the master device, but only successfully receives data segment set L sent by the master device, and data segment set L only includes data segment D2 and data segment D3, but does not include data segment D1, the slave device will not be able to receive all the data of data D123 in the current communication cycle.

[0083] It is also understandable that, in the case where at least one data segment set includes all data segments obtained by splitting the original data, as mentioned above, the master device splits data D123 to obtain data segments D1, D2, and D3. Based on data segments D1, D2, and D3, the master device generates data segment sets A, B, and C. In response to the connection event of the current communication cycle, the master device sends data segment sets A, B, and C to the slave device respectively. In the case of poor communication, if the slave device fails to receive data segment sets A and B sent by the master device, but successfully receives only data segment set C sent by the master device, since data segment set C includes data segments D1, D2, and D3, the slave device can receive all the data of data D123 in the current communication cycle.

[0084] Therefore, this approach helps improve the integrity of data received from the device.

[0085] In some embodiments, please refer to Figure 5 Step S11 includes:

[0086] S111, Determine the current communication status of the master device;

[0087] In this step, the current communication status refers to the communication status between the master device and the slave device, indicating the quality of communication during this interaction. The current communication status can be represented by the RSSI (Received Signal Strength Indicator), which allows both the master and slave devices to determine their current communication status.

[0088] S112. Based on the current communication status, segment the original data.

[0089] Therefore, this embodiment enables the segmentation results of the original data to better match the current communication state, thereby adapting to complex communication environments.

[0090] In some embodiments, please refer to Figure 6 Step S112 includes:

[0091] S1121. Determine the segmentation level based on the current communication status;

[0092] In this step, the segmentation level refers to the level at which the original data is segmented, and different current communication states can correspond to different segmentation levels.

[0093] For example, if the master device determines that the current communication status is good based on the RSSI, the master device can determine the segmentation level as the first segmentation level; if the current communication status is normal, the master device can determine the segmentation level as the second segmentation level; and if the current communication status is poor, the master device can determine the segmentation level as the third segmentation level.

[0094] S1122. Segment the original data according to the segmentation level.

[0095] In this step, the master device can segment the original data according to different segmentation levels to obtain different numbers of data segments.

[0096] In some embodiments, each segmentation level includes a corresponding segmentation ratio. The master device can segment the original data according to the segmentation ratio, wherein the segmentation ratio refers to the ratio of the original data to the number of data segments after the original data is segmented.

[0097] For example, as mentioned earlier, if the segmentation ratio of the first segmentation level is 1:3, the segmentation ratio of the second segmentation level is 1:4, and the segmentation ratio of the third segmentation level is 1:5, then the master device can segment the original data according to the segmentation ratio of 1:3 to obtain 3 data segments. Similarly, it can segment the original data according to the segmentation ratio of 1:4 to obtain 4 data segments, and similarly, it can segment the original data according to the segmentation ratio of 1:5 to obtain 5 data segments.

[0098] It is understandable that when the current communication status between the master device and the slave device is worse, the number of data segments obtained by splitting the original data is more, and the number of overlapping data segments in the set of data segments sent by the master device to the slave device in the preset communication cycle is also more. As mentioned earlier, since overlapping data segments can be transmitted multiple times, the more overlapping data segments there are, the more times the overlapping data segments are transmitted. This helps to reduce the probability of overlapping data segment loss, thereby helping to reduce Bluetooth data loss in complex communication environments and thus helping to improve sound quality.

[0099] Therefore, this embodiment can reduce data loss in complex communication environments, thereby improving sound quality.

[0100] This invention provides a Bluetooth data transmission method, wherein a slave device is selected as the execution subject to execute the Bluetooth data transmission method provided in this embodiment. The Bluetooth data transmission method includes:

[0101] In response to a connection event during a preset communication period, the system receives a set of data segments sent by the master device. The set of data segments is generated from at least two data segments, and two adjacent sets of data segments include overlapping data segments. The data segments are obtained by the master device by segmenting the original data.

[0102] On the one hand, this embodiment improves data transmission efficiency and reduces subsequent data processing latency by dividing the original data into multiple data segments and recombining them into multiple data segment sets before transmission. On the other hand, since the adjacent data segment sets sent by the master device to the slave device include overlapping data segments, the overlapping data segments can be transmitted multiple times, which helps reduce Bluetooth data loss and further improves sound quality.

[0103] It should be noted that in the above embodiments, there is no necessarily a certain order between the steps. Those skilled in the art can understand from the description of the embodiments of the present invention that the above steps may have different execution orders in different embodiments, that is, they may be executed in parallel or in turn, etc.

[0104] This invention provides a Bluetooth data transmission device. Please refer to [link / reference]. Figure 7 The Bluetooth data transmission device 700 includes a segmentation module 71, a generation module 72, and a transmission module 73. The segmentation module 71 is used to segment the original data to obtain at least two data segments. The generation module 72 is used to generate multiple data segment sets based on the data segments. Two adjacent data segment sets include overlapping data segments. The transmission module 73 is used to send the data segment sets to the slave device in response to a connection event of a preset communication period.

[0105] On the one hand, this embodiment improves data transmission efficiency and reduces subsequent data processing latency by dividing the original data into multiple data segments and recombining them into multiple data segment sets before transmission. On the other hand, since the adjacent data segment sets sent by the master device to the slave device include overlapping data segments, the overlapping data segments can be transmitted multiple times, which helps reduce Bluetooth data loss and further improves sound quality.

[0106] In some embodiments, please refer to Figure 8 The segmentation module 71 includes a determining unit 711 and a segmentation unit 712. The determining unit 711 is used to determine the current communication status of the master device, and the segmentation unit 712 is used to segment the original data according to the current communication status.

[0107] In some embodiments, the segmentation unit 712 is specifically used to: determine the segmentation level based on the current communication state, and segment the original data according to the segmentation level.

[0108] This invention provides a Bluetooth data transmission device. The Bluetooth data transmission device includes a receiving module, which is used to receive a set of data segments sent by a master device in response to a connection event during a preset communication period. The data segment set is generated from at least two data segments, and adjacent data segment sets include overlapping data segments. The data segments are obtained by the master device by segmenting original data.

[0109] On the one hand, this embodiment improves data transmission efficiency and reduces subsequent data processing latency by dividing the original data into multiple data segments and recombining them into multiple data segment sets before transmission. On the other hand, since the adjacent data segment sets sent by the master device to the slave device include overlapping data segments, the overlapping data segments can be transmitted multiple times, which helps reduce Bluetooth data loss and further improves sound quality.

[0110] It should be noted that the Bluetooth data transmission device described above can execute the Bluetooth data transmission method provided in the embodiments of the present invention, and has the corresponding functional modules and beneficial effects of executing the method. Technical details not described in detail in the embodiments of the Bluetooth data transmission device can be found in the Bluetooth data transmission method provided in the embodiments of the present invention.

[0111] Please see Figure 9 , Figure 9 This is a circuit structure diagram of an electronic device provided as an embodiment of the present invention, wherein the electronic device can be a master device or a slave device. Figure 9 As shown, the electronic device 900 includes one or more processors 91 and a memory 92. Wherein, Figure 9 Take the 91 processor as an example.

[0112] Processor 91 and memory 92 can be connected via a bus or other means. Figure 9 Taking the example of a connection between China and Israel via a bus.

[0113] The memory 92, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the Bluetooth data transmission method in the embodiments of the present invention. The processor 91 executes various functional applications and data processing of the Bluetooth data transmission device by running the non-volatile software programs, instructions, and modules stored in the memory 92, thereby realizing the functions of the Bluetooth data transmission method provided in the above method embodiments and the various modules or units in the above device embodiments.

[0114] Memory 92 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 92 may optionally include memory remotely located relative to processor 91, which can be connected to processor 91 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0115] The program instructions / modules are stored in the memory 92. When the program instructions / modules are executed by one or more processors 91, the Bluetooth data transmission method in any of the above method embodiments is executed.

[0116] This invention also provides a non-volatile computer storage medium storing computer-executable instructions that are executed by one or more processors, for example... Figure 9 One of the processors 91 can enable the one or more processors to execute the Bluetooth data transmission method in any of the above method embodiments.

[0117] This invention also provides a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium. The computer program includes program instructions that, when executed by an electronic device, cause the electronic device to perform any of the Bluetooth data transmission methods described above.

[0118] The device or equipment embodiments described above are merely illustrative. The unit modules described as separate components may or may not be physically separate. The components shown as module units may or may not be physical units; that is, they may be located in one place or distributed across multiple network module units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0119] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software plus a general-purpose hardware platform, or of course, using hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0120] Finally, it should be noted that the present invention can be implemented in many different forms and is not limited to the embodiments described in this specification. These embodiments are not intended to impose additional limitations on the content of the present invention; their purpose is to provide a more thorough and comprehensive understanding of the disclosure of the present invention. Furthermore, within the framework of the present invention, the above-mentioned technical features can be combined with each other, and many other variations of different aspects of the present invention as described above exist, all of which are considered to be within the scope of the present invention specification. Moreover, those skilled in the art can make improvements or modifications based on the above description, and all such improvements and modifications should fall within the protection scope of the appended claims.

Claims

1. A Bluetooth data transmission method, applied to a master device, characterized in that, include: The original data is segmented to obtain at least two data segments. The original data includes first data and second data. The first data is the data that the master device needs to transmit to the slave device in the first communication cycle. The second data is the data that the master device needs to transmit to the slave device in the second communication cycle. The first data includes a first data segment, a second data segment, and a third data segment. The first data segment set includes the first data segment. The second data segment set includes the first data segment and the second data segment. The third data segment set includes the first data segment, the second data segment, and the third data segment. The second data includes a fourth data segment, a fifth data segment, and a sixth data segment. The fourth data segment set includes the second data segment, the third data segment, and the fourth data segment. The fifth data segment set includes the third data segment, the fourth data segment, and the fifth data segment. The sixth data segment set includes the fourth data segment, the fifth data segment, and the sixth data segment. Based on the data segment, multiple data segment sets are generated, and two adjacent data segment sets include overlapping data segments; In response to a connection event during a preset communication period, the master device sends the set of data segments to the slave device. The preset communication period includes a first communication period and a second communication period. Both the first and second communication periods include three connection events. The master device responds sequentially to the three connection events of the first communication period by sending the first set of data segments, the second set of data segments, and the third set of data segments to the slave device, respectively. In response to the three connection events of the second communication period, the master device sends the fourth set of data segments, the fifth set of data segments, and the sixth set of data segments to the slave device, respectively.

2. The Bluetooth data transmission method according to claim 1, characterized in that, At least one of the data segment sets includes the at least two data segments.

3. The Bluetooth data transmission method according to claim 1, characterized in that, The process of segmenting the original data to obtain at least two data segments includes: Determine the current communication status of the master device; Based on the current communication state, segment the original data.

4. The Bluetooth data transmission method according to claim 3, characterized in that, The step of segmenting the original data according to the current communication state includes: Determine the segmentation level based on the current communication status; The original data is segmented according to the segmentation level.

5. The Bluetooth data transmission method according to claim 4, characterized in that, Each segmentation level corresponds to a segmentation ratio. The segmentation of the original data according to the segmentation level includes: The original data is segmented according to the segmentation ratio of the segmentation level.

6. The Bluetooth data transmission method according to claim 1, characterized in that, Also includes: According to a preset link protocol, a data packet to be sent is generated corresponding to each data segment set. Each data packet to be sent includes payload data, which includes the data segment set and a data identifier. The data identifier is used to identify the data segment set or the overlapping data segments.

7. The Bluetooth data transmission method according to any one of claims 1 to 6, characterized in that, The step of generating multiple data segment sets based on the data segment includes: Sort the data segments to obtain the ordered data segments: Multiple data segment sets are generated based on the sequentially arranged data segments.

8. A Bluetooth data transmission method, applied to a slave device, characterized in that, include: In response to a connection event within a preset communication period, the system receives a set of data segments sent by the master device. The set of data segments is generated by the master device from at least two data segments obtained by segmenting the original data. Adjacent sets of data segments include overlapping data segments. The original data includes first data and second data. The first data is data that the master device needs to transmit to the slave device in the first communication period, and the second data is data that the master device needs to transmit to the slave device in the second communication period. The first data includes a first data segment, a second data segment, and a third data segment. The first data segment set includes the first data segment, the second data segment set includes the first data segment and the second data segment, and the third data segment set includes the first data segment, the second data segment, and the third data segment. The second data includes a fourth data segment and a fifth data segment. The fourth data segment set includes the second data segment, the third data segment, and the fourth data segment; the fifth data segment set includes the third data segment, the fourth data segment, and the fifth data segment; the sixth data segment set includes the fourth data segment, the fifth data segment, and the sixth data segment; the preset communication period includes the first communication period and the second communication period; both the first and second communication periods include three connection events; the first data segment set, the second data segment set, and the third data segment set are sequentially sent by the master device to the slave device in response to the three connection events of the first communication period; the fourth data segment set, the fifth data segment set, and the sixth data segment set are sequentially sent by the master device to the slave device in response to the three connection events of the second communication period.

9. A main device, characterized in that, include: At least one processor; as well as, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the Bluetooth data transmission method as described in any one of claims 1 to 7.

10. A device, characterized in that, include: At least one processor; as well as, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the Bluetooth data transmission method as described in claim 8.

Citation Information

Patent Citations

  • Method and device for data transmission based on Bluetooth broadcasting and Bluetooth equipment

    CN109831746A

  • Data transmission method and communication equipment

    CN111836308A