Data transmission method and device, equipment and storage medium

By dynamically adjusting the transmission window of protocol data during the Bluetooth transmission cycle, the problem of protocol data transmission delay and insufficient throughput in multiple business scenarios is solved according to the priority and transmission period of service data, and the reliability of information transmission is improved.

CN119967475APending Publication Date: 2025-05-09SPREADTRUM SEMICON(CHENGDU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510123121.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-24
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

In multiple business scenarios, the transmission delay and throughput of protocol data, including object push configuration files, cannot be effectively guaranteed, resulting in low reliability of information transmission.

Method used

By determining the initial transmission window corresponding to the protocol data during the transmission cycle, and determining whether there is service data with a priority higher than the protocol data in the window, if there is, the initial transmission window is updated according to the transmission period of the service data to obtain the target transmission window, and the protocol data is transmitted in the target window; if it does not exist, the protocol data is transmitted in the initial transmission window.

Benefits of technology

In the complex scenario of multi-service coexistence, the priority of protocol data in Bluetooth service transmission is increased, and the initial transmission window is dynamically adjusted, ensuring the timeliness and throughput of protocol data transmission is improved, and the reliability of information transmission is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119967475A_ABST
    Figure CN119967475A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data transmission method and device, equipment and a storage medium, and the method comprises the steps: determining an initial transmission window corresponding to protocol data in a transmission period, enabling the starting time of the initial transmission window to coincide with the starting time of the transmission period, determining whether to-be-transmitted service data exists in the initial transmission window, and transmitting the to-be-transmitted service data to the initial transmission window; the priority of the service data is higher than that of the protocol data, if yes, updating the initial transmission window according to the transmission time period of the service data to obtain at least one target transmission window, and transmitting the protocol data in the at least one target transmission window, and if not, transmitting the protocol data in the initial transmission window. According to the method, the reliability of information transmission is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of data processing, and specifically relates to a data transmission method, device, equipment and storage medium. Background Art

[0002] As Bluetooth technology continues to develop, the business scenarios of Bluetooth transmission are becoming more and more diverse, including True Wireless Stereo (TWS) headphones, low-power audio, and spatial audio.

[0003] At present, terminal devices can transmit multiple service data in multi-service scenarios by reusing antennas, increasing the number of Bluetooth links or the amount of data carried by each link. Multiple service data may include Bluetooth Low Energy (BLE) audio service data, Object Push Profile (OPP), Wireless Fidelity (WiFi) service data, BLE scanning service data, etc. In multi-service scenarios, multiple service data are usually transmitted in order of priority. For example, the BLE audio service has a higher priority and has a regular sending and receiving interval. The BLE audio service data is transmitted once in each cycle. The OPP is transmitted through an asynchronous connectionless link (ACL). The ACL has a lower priority and is transmitted after the higher priority data is transmitted.

[0004] During the above transmission process, the transmission delay and throughput of protocol data including object push configuration files in multiple business scenarios cannot be effectively guaranteed, resulting in low reliability of information transmission. Summary of the invention

[0005] Embodiments of the present application relate to a data transmission method, apparatus, device and storage medium, which are used to solve the defect in the prior art that the transmission delay and throughput of protocol data including object push configuration files in multiple business scenarios cannot be effectively guaranteed, resulting in low reliability of information transmission.

[0006] In a first aspect, an embodiment of the present application provides a data transmission method, the method comprising:

[0007] Determine an initial transmission window corresponding to the protocol data in a transmission cycle, wherein a start time of the initial transmission window coincides with a start time of the transmission cycle;

[0008] Determine whether there is service data to be transmitted in the initial transmission window, the priority of the service data being higher than the priority of the protocol data;

[0009] If yes, then updating the initial transmission window to obtain at least one target transmission window according to the transmission period of the service data, and transmitting the protocol data in the at least one target transmission window;

[0010] If not, transmitting the protocol data in the initial transmission window.

[0011] In a possible implementation, updating the initial transmission window to obtain at least one target transmission window according to the transmission period of the service data includes:

[0012] Determining whether the start time of the transmission period exists in the initial transmission window;

[0013] If yes, then updating the initial transmission window according to the start time of the transmission period and the transmission period to obtain a plurality of target transmission windows;

[0014] If not, then the start time of the initial transmission window is updated according to the end time of the transmission period to obtain a target transmission window.

[0015] In a possible implementation, the initial transmission window is updated according to the start time of the transmission period and the transmission period to obtain multiple target transmission windows, including:

[0016] Determine the period between the start time of the initial transmission window and the start time of the transmission period as the first target transmission window corresponding to the protocol data;

[0017] Determining a second target transmission window corresponding to the protocol data according to the first target transmission window and the initial transmission window;

[0018] The multiple target transmission windows include the first target transmission window and the second target transmission window.

[0019] In a possible implementation, determining an initial transmission window corresponding to protocol data in a transmission period includes:

[0020] Determine the transmission duration corresponding to the protocol data to be transmitted;

[0021] Determine whether the transmission duration is greater than a preset duration;

[0022] If so, determining an initial transmission window corresponding to the protocol data in the transmission period according to the preset duration;

[0023] If not, an initial transmission window corresponding to the protocol data is determined in the transmission period according to the transmission duration.

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

[0025] Determining an idle transmission window of a transmission cycle according to the target transmission window or the initial transmission window;

[0026] Acquire at least one piece of data to be transmitted, wherein the data to be transmitted includes service data and / or protocol data;

[0027] At least one datum to be transmitted is transmitted in sequence in the idle transmission window according to the priorities respectively corresponding to the at least one datum to be transmitted, until the idle transmission window no longer exists.

[0028] In a possible implementation, according to the priorities respectively corresponding to the at least one data to be transmitted, sequentially transmitting the at least one data to be transmitted in the idle transmission window until the idle transmission window no longer exists, includes:

[0029] Determine the transmission order corresponding to the at least one data to be transmitted in descending order of priority;

[0030] Determining target data in the at least one data to be transmitted according to the transmission order;

[0031] Determine whether the transmission duration corresponding to the target data is less than the idle transmission window;

[0032] If yes, transmit the target data in the idle transmission window, update the idle transmission window and the transmission order, and transmit at least one to-be-transmitted data according to the updated idle transmission window and the updated transmission order until there is no idle transmission window or no to-be-transmitted data;

[0033] If not, determine the transmission data corresponding to the target data according to the idle transmission window, and transmit the transmission data in the idle transmission window.

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

[0035] The service data is transmitted in a transmission period of the service data.

[0036] In a second aspect, an embodiment of the present application provides a data transmission device, the device comprising:

[0037] A first determining module, configured to determine an initial transmission window corresponding to the protocol data in a transmission period, wherein a start time of the initial transmission window coincides with a start time of the transmission period;

[0038] A second determination module is used to determine whether there is business data to be transmitted in the initial transmission window, and the priority of the business data is higher than the priority of the protocol data;

[0039] A processing module is used to update the initial transmission window to obtain at least one target transmission window according to the transmission period of the business data, and transmit the protocol data in the at least one target transmission window; if not, transmit the protocol data in the initial transmission window.

[0040] In a possible implementation manner, the processing module is specifically used for:

[0041] Determining whether the start time of the transmission period exists in the initial transmission window;

[0042] If yes, then updating the initial transmission window according to the start time of the transmission period and the transmission period to obtain a plurality of target transmission windows;

[0043] If not, then the start time of the initial transmission window is updated according to the end time of the transmission period to obtain a target transmission window.

[0044] In a possible implementation manner, the processing module is specifically used for:

[0045] Determine the period between the start time of the initial transmission window and the start time of the transmission period as the first target transmission window corresponding to the protocol data;

[0046] Determining a second target transmission window corresponding to the protocol data according to the first target transmission window and the initial transmission window;

[0047] The multiple target transmission windows include the first target transmission window and the second target transmission window.

[0048] In a possible implementation manner, the first determining module is specifically configured to:

[0049] Determine the transmission duration corresponding to the protocol data to be transmitted;

[0050] Determine whether the transmission duration is greater than a preset duration;

[0051] If so, determining an initial transmission window corresponding to the protocol data in the transmission period according to the preset duration;

[0052] If not, an initial transmission window corresponding to the protocol data is determined in the transmission period according to the transmission duration.

[0053] In a possible implementation manner, the processing module is further configured to:

[0054] Determining an idle transmission window of a transmission cycle according to the target transmission window or the initial transmission window;

[0055] Acquire at least one piece of data to be transmitted, wherein the data to be transmitted includes service data and / or protocol data;

[0056] At least one datum to be transmitted is transmitted in sequence in the idle transmission window according to the priorities respectively corresponding to the at least one datum to be transmitted, until the idle transmission window no longer exists.

[0057] In a possible implementation manner, the processing module is specifically used for:

[0058] Determine the transmission order corresponding to the at least one data to be transmitted in descending order of priority;

[0059] Determining target data in the at least one data to be transmitted according to the transmission order;

[0060] Determine whether the transmission duration corresponding to the target data is less than the idle transmission window;

[0061] If yes, transmit the target data in the idle transmission window, update the idle transmission window and the transmission order, and transmit at least one to-be-transmitted data according to the updated idle transmission window and the updated transmission order until there is no idle transmission window or no to-be-transmitted data;

[0062] If not, determine the transmission data corresponding to the target data according to the idle transmission window, and transmit the transmission data in the idle transmission window.

[0063] In a possible implementation manner, the processing module is further configured to:

[0064] The service data is transmitted in a transmission period of the service data.

[0065] In a third aspect, the present application provides a chip having a computer program stored thereon, wherein when the computer program is executed by the chip, the data transmission method as described in any one of the first aspects is implemented.

[0066] In a fourth aspect, the present application provides a chip module having a computer program stored thereon, wherein when the computer program is executed by the chip module, the data transmission method as described in any one of the first aspects is implemented.

[0067] In a fifth aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor, and a transceiver;

[0068] The memory stores computer-executable instructions;

[0069] The processor executes the computer-executable instructions stored in the memory to implement the data transmission method as described in any one of the first aspects.

[0070] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the data transmission method described in any one of the first aspects.

[0071] In a seventh aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the data transmission method described in any one of the first aspects.

[0072] The embodiment of the present application provides a data transmission method, apparatus, device and storage medium. In the method, by determining the initial transmission window corresponding to the protocol data in the transmission cycle, the starting time of the initial transmission window coincides with the starting time of the transmission cycle, and determining whether there is business data to be transmitted in the initial transmission window, the priority of the business data is higher than the priority of the protocol data, if so, then according to the transmission period of the business data, the initial transmission window is updated to obtain at least one target transmission window, and the protocol data is transmitted in at least one target transmission window, if not, the protocol data is transmitted in the initial transmission window. In this way, in a complex scenario where multiple services coexist, the priority of the protocol data in the Bluetooth service transmission is improved, the initial transmission window is dynamically adjusted according to the business data, the timeliness and throughput of the protocol data transmission are guaranteed, and the reliability of information transmission is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] In order to more clearly illustrate the technical solutions in the present application, a brief introduction will be given below to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0074] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0075] Figure 2 A flowchart of a data transmission method provided in an embodiment of the present application;

[0076] Figure 3 A schematic diagram of a transmission cycle provided in an embodiment of the present application;

[0077] Figure 4 A schematic diagram of another transmission cycle provided in an embodiment of the present application;

[0078] Figure 5 A flowchart of another data transmission method provided in an embodiment of the present application;

[0079] Figure 6 A schematic diagram of another transmission cycle provided in an embodiment of the present application;

[0080] Figure 7 A flowchart of another data transmission method provided in an embodiment of the present application;

[0081] Figure 8 A schematic diagram of another transmission cycle provided in an embodiment of the present application;

[0082] Fig. 9 A schematic diagram of the structure of a data transmission device provided in an embodiment of the present application;

[0083] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0084] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0085] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0086] It should be noted that, although the terms "first", "second", etc. are used to describe various information in the embodiments of the present application, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. Optionally, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information.

[0087] It should be understood that the terms "comprises" and "includes" indicate the presence of the previously mentioned features, steps, operations, but do not exclude the presence, occurrence or addition of one or at least one other feature, step, operation. The terms "and / or" and the like used in this application may be interpreted as inclusive, or mean any one or any combination. Optionally, "A and / or B" means "any of the following: A; B; A and B". In addition, the character " / " in this article generally indicates that the objects associated before and after are in an "or" relationship.

[0088] As Bluetooth technology continues to develop, the business scenarios of Bluetooth transmission are becoming more and more diverse, including True Wireless Stereo (TWS) headphones, low-power audio, and spatial audio.

[0089] In related technologies, terminal devices can transmit multiple services in a multi-service scenario by reusing antennas, increasing the number of Bluetooth links or the amount of data carried by each link. In a multi-service scenario, multiple service data are usually transmitted in order of priority.

[0090] Next, combine Figure 1 , explaining the transmission process of multiple business data in existing multi-business scenarios.

[0091] Figure 1 This is a schematic diagram of an application scenario provided by the embodiment of this application. Figure 1 , Figure 1 It may be a scheduling process for transmitting and receiving antennas to transmit multiple service data. The multiple service data may include BLE audio service data, object push profile (OPP), mobile hotspot (Wireless Fidelity, WiFi) service data, BLE scanning service data, etc.

[0092] Among them, the BLE audio service has a higher priority and a large amount of data. It can be transmitted through at least two links (left and right ears) at the same time, and has regular sending and receiving intervals, such as trigger point 1, trigger point 2, and trigger point 3, etc.

[0093] OPP is transmitted through an asynchronous connectionless link (ACL), and the priority of ACL is low.

[0094] In each transmission cycle, after transmitting the higher priority BLE audio service data, the OPP and BLE scanning service data with lower priority are transmitted. The latency and throughput of OPP transmission also depend on the number of low priority services and the time-sharing ratio between them.

[0095] At the same time, in each cycle, there may also be time division multiplexing of receiving antenna resources by WiFi services.

[0096] During the above transmission process, the transmission delay and throughput of protocol data including object push configuration files in multiple business scenarios cannot be effectively guaranteed, resulting in low reliability of information transmission.

[0097] In order to solve the above technical problems, the embodiment of the present application provides a data transmission method, which determines the initial transmission window corresponding to the protocol data in the transmission cycle, determines whether there is business data to be transmitted in the initial transmission window, and if so, updates the initial transmission window according to the transmission period of the business data to obtain at least one target transmission window, and transmits the protocol data in at least one target transmission window. If not, transmit the protocol data in the initial transmission window. In this way, in a complex scenario where multiple services coexist, the priority of the protocol data in the Bluetooth service transmission is improved, and the initial transmission window is dynamically adjusted according to the business data, which ensures the timeliness and throughput of the protocol data transmission and improves the reliability of information transmission.

[0098] The technical solution shown in the present application is described in detail below through specific embodiments. It should be noted that the following embodiments can exist independently or in combination with each other, and the same or similar contents will not be described repeatedly in different embodiments.

[0099] Figure 2 A flowchart of a data transmission method provided by an embodiment of the present application. The execution subject of the embodiment of the present application can be a terminal device or a processor in the terminal device. The terminal device can include a Bluetooth component. Figure 2 , the method comprising:

[0100] S201. Determine an initial transmission window corresponding to protocol data in a transmission cycle.

[0101] The transmission cycle may be a cycle formed with the start time of the protocol data as a trigger point and at intervals of a preset time under an ideal condition.

[0102] Next, combine Figure 3 , an example is given to illustrate the transmission cycle.

[0103] Figure 3 A schematic diagram of a transmission cycle provided in an embodiment of the present application. Figure 3 , Figure 3 It includes multiple transmission cycles, each of which includes trigger points, such as trigger point 1, trigger point 2, trigger point 3 and trigger point 4. The trigger point is the starting time of transmitting the protocol data in the initial transmission window under ideal conditions. Under ideal conditions, the data in the initial transmission window can be transmitted first in each transmission cycle.

[0104] The protocol data may include data such as object push configuration files, which are not limited here.

[0105] The start time of the initial transmission window coincides with the start time of the transmission period.

[0106] The initial transmission window can be dynamically determined according to the amount of protocol data.

[0107] For example, the initial transmission window may occupy 6 time slots according to the data volume of the protocol data, or may occupy 4 time slots according to the data volume of the protocol data.

[0108] Next, combine Figure 4 , an example is given for the initial transmission window.

[0109] Figure 4 A schematic diagram of another transmission cycle provided in an embodiment of the present application. Figure 4 , Figure 4 It can include 3 transmission cycles. Under ideal conditions, assuming that each transmission cycle is 100 time slots, the initial transmission window occupies 6 time slots, and the starting time of the initial transmission window coincides with the starting time of the transmission cycle. The 6 time slots in the initial transmission window include sending time slots and receiving time slots. The sending time slots and receiving time slots are arranged at intervals. The sending time slots can be used to send protocol data, and the receiving time slots can be used to receive response data sent by the opposite end. The response data is used to indicate that the opposite end has received the protocol data sent in the previous time slot.

[0110] The protocol data may be obtained, and according to the protocol data, an initial transmission window corresponding to the protocol data may be determined in a transmission cycle.

[0111] Optionally, the initial transmission window corresponding to the protocol data can be determined in the transmission cycle in the following manner: determine the transmission duration corresponding to the protocol data to be transmitted; determine whether the transmission duration is greater than a preset duration; if so, determine the initial transmission window corresponding to the protocol data in the transmission cycle based on the preset duration; if not, determine the initial transmission window corresponding to the protocol data in the transmission cycle based on the transmission duration.

[0112] For example, assuming that the preset duration is 6 time slots, if the transmission duration corresponding to the protocol data is 15 time slots, then according to the preset duration, the initial transmission window is determined to be 6 time slots; if the transmission duration corresponding to the protocol data is 4 time slots, then according to the transmission duration, the initial transmission window is determined to be 4 time slots.

[0113] S202: Determine whether there is business data to be transmitted in the initial transmission window.

[0114] The priority of business data is higher than that of protocol data.

[0115] The priorities may be pre-set, and the order of priorities is not limited here.

[0116] The service data may include BLE audio service data, WiFi service data, etc., which are not limited here.

[0117] Whether there is service data to be transmitted may be detected at intervals of a first duration within a duration corresponding to the initial transmission window.

[0118] S203: If yes, then update the initial transmission window to obtain at least one target transmission window according to the transmission period of the service data, and transmit the protocol data in the at least one target transmission window.

[0119] The transmission period can be used to indicate the period corresponding to the transmission of business data.

[0120] The target transmission window may be used to represent the transmission window after the initial transmission window is dynamically adjusted.

[0121] If there is business data to be transmitted in the initial transmission window, the transmission time period corresponding to the business data can be determined. According to the start time of the transmission time period, the initial transmission window is updated to obtain at least one target transmission window. According to the at least one target transmission window, the protocol data is transmitted.

[0122] Optionally, the initial transmission window can be updated according to the transmission period of the business data to obtain at least one target transmission window in the following manner: determine whether the starting time of the transmission period exists in the initial transmission window; if so, update the initial transmission window according to the starting time of the transmission period and the transmission period to obtain multiple target transmission windows; if not, determine the end time of the transmission period according to the starting time of the transmission period and the transmission period, update the end time to the starting time of the initial transmission window, and obtain a target transmission window.

[0123] Optionally, the data transmission method further includes transmitting business data, and the business data may be transmitted in the following manner: transmitting the business data in a transmission period of the business data.

[0124] S204: If not, transmit the protocol data in the initial transmission window.

[0125] If there is no service data to be transmitted in the initial transmission window, target protocol data to be transmitted may be determined according to the initial transmission window and the protocol data, and the target protocol data may be transmitted in the initial transmission window.

[0126] Optionally, the target protocol data to be transmitted may be determined according to the initial transmission window and the protocol data in the following manner: first data corresponding to the initial transmission window is determined in the protocol data, and the first data is determined as the target protocol data to be transmitted.

[0127] The data transmission method provided in this embodiment determines the initial transmission window corresponding to the protocol data in the transmission cycle, and the starting time of the initial transmission window coincides with the starting time of the transmission cycle, and determines whether there is business data to be transmitted in the initial transmission window, and the priority of the business data is higher than the priority of the protocol data. If so, the initial transmission window is updated according to the transmission period of the business data to obtain at least one target transmission window, and the protocol data is transmitted in at least one target transmission window. If not, the protocol data is transmitted in the initial transmission window. In this way, in a complex scenario where multiple services coexist, the priority of the protocol data in the Bluetooth service transmission is improved, and the initial transmission window is dynamically adjusted according to the business data, which ensures the timeliness and throughput of the protocol data transmission and improves the reliability of information transmission.

[0128] Next, combine Figure 5 , the process (S203) of updating the initial transmission window to obtain at least one target transmission window according to the transmission period of the business data is explained.

[0129] Figure 5 A flowchart of another data transmission method provided by an embodiment of the present application. Based on the above embodiment, see Figure 5 , the method comprising:

[0130] S501: Determine whether the start time of the transmission period exists in the initial transmission window.

[0131] If yes, execute S502;

[0132] If not, execute S504.

[0133] The starting time of the transmission period can be used to indicate the starting time corresponding to the transmission of service data.

[0134] The start time of the transmission period may be determined, and it may be determined whether the start time of the transmission period exists in the initial transmission window.

[0135] S502: Determine a period between a start time of an initial transmission window and a start time of a transmission period as a first target transmission window corresponding to the protocol data.

[0136] A period between a start time of the initial transmission window and a start time of the transmission period may be determined, and the period may be determined as a first target transmission window corresponding to the protocol data.

[0137] S503: Determine a second target transmission window corresponding to the protocol data according to the first target transmission window and the initial transmission window.

[0138] The multiple target transmission windows include a first target transmission window and a second target transmission window.

[0139] The time period corresponding to the first target transmission window may be subtracted from the time period corresponding to the initial transmission window to obtain a second time period. At the end of the transmission time period, the second target transmission window corresponding to the protocol data is determined according to the second time period.

[0140] S504: Update the start time of the initial transmission window according to the end time of the transmission period to obtain a target transmission window.

[0141] The end time of the transmission period can be determined according to the start time of the transmission period and the transmission period, and the start time of the initial transmission window can be updated according to the end time of the transmission period to obtain a target transmission window.

[0142] Next, combine Figure 6 , an example is given of a process of updating an initial transmission window to obtain at least one target transmission window according to a transmission period of business data.

[0143] Figure 6 A schematic diagram of another transmission cycle provided in an embodiment of the present application. Figure 6 , Figure 6 Three transmission cycles may be included.

[0144] Assuming that there is WiFi service data to be transmitted in the first transmission cycle, the start time corresponding to the WiFi service data is determined, and it is determined that the start time does not exist in the initial transmission window, and the start time of the initial transmission window is updated according to the end time of the transmission period to obtain the first target transmission window. The first target transmission window may include 2 transmission time slots and 2 reception time slots.

[0145] Assuming that there is BLE audio service data to be transmitted in the second transmission cycle, the start time corresponding to the BLE audio service data is determined, and it is determined that the start time exists in the initial transmission window, and the period between the start time of the initial transmission window and the start time of the transmission period is determined as the first target transmission window corresponding to the protocol data, and the second target transmission window corresponding to the protocol data is determined according to the first target transmission window and the initial transmission window, and the multiple target transmission windows include the first target transmission window and the second target transmission window. Among them, the second target transmission window can include 1 sending time slot and 1 receiving time slot.

[0146] The implementation content of each step in the embodiment of the present application can refer to the description of the corresponding steps or operations in the above method embodiment, and repeated content will not be repeated.

[0147] The data transmission method provided in this embodiment determines whether the starting time of the transmission period exists in the initial transmission window; if so, the period between the starting time of the initial transmission window and the starting time of the transmission period is determined as the first target transmission window corresponding to the protocol data; according to the first target transmission window and the initial transmission window, the second target transmission window corresponding to the protocol data is determined; wherein the multiple target transmission windows include the first target transmission window and the second target transmission window; if not, according to the starting time of the transmission period and the transmission period, the end time of the transmission period is determined, and the end time is updated to the starting time of the initial transmission window to obtain a target transmission window. In this way, in a complex scenario where multiple services coexist, the priority of protocol data in Bluetooth service transmission is improved, the initial transmission window is dynamically adjusted according to the service data, the timeliness and throughput of protocol data transmission are guaranteed, and the reliability of information transmission is improved.

[0148] In a possible implementation, the transmission cycle may include a target transmission window or an initial transmission window, and an idle transmission window. The data transmission method further includes dynamically transmitting the data to be transmitted within the idle transmission window of the transmission cycle, and the data to be transmitted may include service data or protocol data.

[0149] Next, combine Figure 7 , the process of dynamically transmitting the data to be transmitted within the idle transmission window of the transmission cycle is explained.

[0150] Figure 7 A flowchart of another data transmission method provided in an embodiment of the present application. Based on the above embodiment, see Figure 7 , the method comprising:

[0151] S701. Determine an idle transmission window of a transmission cycle according to a target transmission window or an initial transmission window.

[0152] The idle transmission window may be used to indicate a transmission window corresponding to a period other than an initial transmission window within a transmission cycle.

[0153] When there is business data to be transmitted in the initial transmission window, the idle transmission window of the transmission cycle can be determined according to the target transmission window; when there is no business data to be transmitted in the initial transmission window, the idle transmission window of the transmission cycle can be determined according to the initial transmission window.

[0154] S702: Obtain at least one piece of data to be transmitted.

[0155] The data to be transmitted includes business data and / or protocol data.

[0156] For example, the data to be transmitted may include service data and protocol data corresponding to the BLE audio service.

[0157] S703: Determine a transmission order corresponding to at least one data to be transmitted in descending order of priority.

[0158] The priority of the data to be transmitted may be pre-set.

[0159] The priority level corresponding to at least one piece of data to be transmitted may be determined, and the transmission order corresponding to at least one piece of data to be transmitted may be determined in descending order of priority level.

[0160] For example, the service data corresponding to the BLE audio service has a higher priority than the protocol data.

[0161] S704: Determine target data in at least one piece of data to be transmitted according to the transmission order.

[0162] The target data may be used to indicate data that is preferentially transmitted in an idle transmission window.

[0163] In the transmission order, the candidate data that is at the front of the order may be the target data.

[0164] S705: Determine whether the transmission duration corresponding to the target data is less than the idle transmission window.

[0165] If yes, execute S706;

[0166] If not, execute S707.

[0167] The transmission duration corresponding to the target data may be determined according to the data volume of the target data, and it may be determined whether the transmission duration corresponding to the target data is less than the idle transmission window.

[0168] S706: Transmit the target data in the idle transmission window, and update the idle transmission window and the transmission order. According to the updated idle transmission window and the updated transmission order, transmit at least one data to be transmitted until there is no idle transmission window.

[0169] The target data can be transmitted in an idle transmission window, and the idle transmission window can be updated according to the transmission duration corresponding to the target data. The target data can be deleted from at least one data to be transmitted, and it can be determined whether there is at least one data to be transmitted. If so, the transmission order can be updated according to the current at least one data to be transmitted, and at least one data to be transmitted can be transmitted according to the updated idle transmission window and the updated transmission order, until there is no idle transmission window or no data to be transmitted.

[0170] S707. Determine transmission data corresponding to the target data according to the idle transmission window, and transmit the transmission data in the idle transmission window.

[0171] It can be determined whether the transmission duration corresponding to the target data is equal to the idle transmission window. If so, the target data is transmitted in the idle transmission window. If not, the transmission data corresponding to the target data is determined and the transmission data is transmitted in the idle transmission window.

[0172] Next, combine Figure 8 , an example is given to illustrate the dynamic transmission of the data to be transmitted within the idle transmission window of the transmission cycle.

[0173] Figure 8 A schematic diagram of another transmission cycle provided in an embodiment of the present application. Figure 8 , Figure 8 Three transmission cycles may be included.

[0174] Assume that in the first transmission cycle, the data to be transmitted includes WiFi service data and protocol data, and the priority corresponding to WiFi service data is higher than that of protocol data. First determine the idle transmission window; determine the transmission order corresponding to the data to be transmitted as: WiFi service data, protocol data; determine that the target data is WiFi service data, determine whether the transmission duration corresponding to the target data is less than the idle transmission window, assume that the transmission duration corresponding to the target data is less than the idle transmission window, transmit the WiFi service data, and update the idle transmission window and transmission order. The updated transmission order is: protocol data, determine the protocol data as the target data, determine whether the transmission duration corresponding to the target data is less than the idle transmission window, assume that the transmission duration corresponding to the target data is equal to the idle transmission window, and transmit the protocol data.

[0175] Based on the steps described in S701-S707, it is determined that the transmission data in the second transmission cycle is BLE scanning service data and protocol data in sequence, and it is determined that the transmission data in the third transmission cycle is WiFi service data and BLE scanning service data in sequence.

[0176] The implementation content of each step in the embodiment of the present application can refer to the description of the corresponding steps or operations in the above method embodiment, and repeated content will not be repeated.

[0177] The data transmission method provided in this embodiment determines the idle transmission window of the transmission cycle according to the target transmission window or the initial transmission window; obtains at least one data to be transmitted, which includes business data or protocol data; determines the transmission order corresponding to at least one data to be transmitted in order of priority from high to low; determines the target data in at least one data to be transmitted according to the transmission order; determines whether the transmission duration corresponding to the target data is less than the idle transmission window; if so, transmits the target data in the idle transmission window, and updates the idle transmission window and the transmission order, and transmits at least one data to be transmitted according to the updated idle transmission window and the updated transmission order until there is no idle transmission window; if not, determines the transmission data corresponding to the target data according to the idle transmission window, and transmits the transmission data in the idle transmission window. In this way, in a complex scenario where multiple services coexist, the priority of protocol data in Bluetooth service transmission is improved, the initial transmission window is dynamically adjusted according to the business data, and the idle transmission window is determined according to the priority of the data to be transmitted, which ensures the timeliness and throughput of protocol data transmission and improves the reliability of information transmission.

[0178] Fig. 9 This is a structural diagram of a data transmission device provided in an embodiment of the present application. Fig. 9 The data transmission device 900 includes a first determination module 901, a second determination module 902 and a processing module 903, wherein:

[0179] A first determining module 901 is used to determine an initial transmission window corresponding to the protocol data in a transmission period, wherein a start time of the initial transmission window coincides with a start time of the transmission period;

[0180] A second determination module 902 is used to determine whether there is service data to be transmitted in the initial transmission window, and the priority of the service data is higher than the priority of the protocol data;

[0181] Processing module 903 is used to update the initial transmission window to obtain at least one target transmission window according to the transmission period of the business data, and transmit the protocol data in the at least one target transmission window; if not, transmit the protocol data in the initial transmission window.

[0182] In a possible implementation, the processing module 903 is specifically configured to:

[0183] Determining whether the start time of the transmission period exists in the initial transmission window;

[0184] If yes, then updating the initial transmission window according to the start time of the transmission period and the transmission period to obtain a plurality of target transmission windows;

[0185] If not, then the start time of the initial transmission window is updated according to the end time of the transmission period to obtain a target transmission window.

[0186] In a possible implementation, the processing module 903 is specifically configured to:

[0187] Determine the period between the start time of the initial transmission window and the start time of the transmission period as the first target transmission window corresponding to the protocol data;

[0188] Determining a second target transmission window corresponding to the protocol data according to the first target transmission window and the initial transmission window;

[0189] The multiple target transmission windows include the first target transmission window and the second target transmission window.

[0190] In a possible implementation manner, the first determining module 901 is specifically configured to:

[0191] Determine the transmission duration corresponding to the protocol data to be transmitted;

[0192] Determine whether the transmission duration is greater than a preset duration;

[0193] If so, determining an initial transmission window corresponding to the protocol data in the transmission period according to the preset duration;

[0194] If not, an initial transmission window corresponding to the protocol data is determined in the transmission period according to the transmission duration.

[0195] In a possible implementation manner, the processing module 903 is further configured to:

[0196] Determining an idle transmission window of a transmission cycle according to the target transmission window or the initial transmission window;

[0197] Acquire at least one piece of data to be transmitted, wherein the data to be transmitted includes service data and / or protocol data;

[0198] At least one datum to be transmitted is transmitted in sequence in the idle transmission window according to the priorities respectively corresponding to the at least one datum to be transmitted, until the idle transmission window no longer exists.

[0199] In a possible implementation, the processing module 903 is specifically configured to:

[0200] Determine the transmission order corresponding to the at least one data to be transmitted in descending order of priority;

[0201] Determining target data in the at least one data to be transmitted according to the transmission order;

[0202] Determine whether the transmission duration corresponding to the target data is less than the idle transmission window;

[0203] If yes, transmit the target data in the idle transmission window, update the idle transmission window and the transmission order, and transmit at least one to-be-transmitted data according to the updated idle transmission window and the updated transmission order until there is no idle transmission window or no to-be-transmitted data;

[0204] If not, determine the transmission data corresponding to the target data according to the idle transmission window, and transmit the transmission data in the idle transmission window.

[0205] In a possible implementation manner, the processing module 903 is further configured to:

[0206] The service data is transmitted in a transmission period of the service data.

[0207] Fig.10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.10 , the electronic device 1000 may include: a memory 1001 , a processor 1002 , and a transceiver 1003 .

[0208] The memory 1001 is used to store program instructions;

[0209] The processor 1002 is used to execute the program instructions stored in the memory, so as to enable the electronic device 1000 to execute any of the above-mentioned data transmission methods.

[0210] The transceiver 1003 may include: a transmitter and / or a receiver. The transmitter may also be referred to as a transmitter, a transmitter, a transmission port, a transmission interface, or the like, and the receiver may also be referred to as a receiver, a reception port, a reception interface, or the like. Exemplarily, the memory 1001, the processor 1002, and the transceiver 1003 are interconnected via a bus 1004.

[0211] The present application also provides a chip having a computer program stored thereon. When the computer program is executed by the chip, the above-mentioned data transmission method is implemented. The corresponding content and effects can be referred to in the method embodiment part, which will not be described in detail.

[0212] The present application also provides a chip module, on which a computer program is stored. When the computer program is executed by the chip module, the above-mentioned data transmission method is implemented. The corresponding content and effects can be referred to the method embodiment part, which will not be described in detail.

[0213] The embodiment of the present application also provides a computer program product, which can be executed by a processor. When the computer program product is executed, the above-mentioned data transmission method can be implemented.

[0214] The data transmission device, electronic device, computer-readable storage medium and computer program product of the embodiments of the present application can execute the technical solutions shown in the above-mentioned data transmission method embodiments. Their implementation principles and beneficial effects are similar and will not be repeated here.

[0215] All or part of the steps of the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned memory (storage medium) includes: read-only memory (ROM), random access memory (RAM), flash memory, hard disk, solid state drive, magnetic tape, floppy disk, optical disc and any combination thereof.

[0216] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer-executable instructions. These computer-executable instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data transmission device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data transmission device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0217] These computer executable instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data transmission device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0218] These computer executable instructions may also be loaded onto a computer or other programmable data transmission device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0219] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A data transmission method, characterized in that: The method comprises: Determine an initial transmission window corresponding to the protocol data in a transmission cycle, wherein a start time of the initial transmission window coincides with a start time of the transmission cycle; Determine whether there is service data to be transmitted in the initial transmission window, the priority of the service data being higher than the priority of the protocol data; If yes, then updating the initial transmission window to obtain at least one target transmission window according to the transmission period of the service data, and transmitting the protocol data in the at least one target transmission window; If not, transmitting the protocol data in the initial transmission window.

2. The method according to claim 1, characterized in that According to the transmission period of the service data, updating the initial transmission window to obtain at least one target transmission window includes: Determining whether the start time of the transmission period exists in the initial transmission window; If yes, then updating the initial transmission window according to the start time of the transmission period and the transmission period to obtain a plurality of target transmission windows; If not, then the start time of the initial transmission window is updated according to the end time of the transmission period to obtain a target transmission window.

3. The method according to claim 2, characterized in that According to the start time of the transmission period and the transmission period, the initial transmission window is updated to obtain multiple target transmission windows, including: Determine the period between the start time of the initial transmission window and the start time of the transmission period as the first target transmission window corresponding to the protocol data; Determining a second target transmission window corresponding to the protocol data according to the first target transmission window and the initial transmission window; The multiple target transmission windows include the first target transmission window and the second target transmission window.

4. The method according to any one of claims 1 to 3, characterized in that: Determine the initial transmission window corresponding to the protocol data in the transmission cycle, including: Determine the transmission duration corresponding to the protocol data to be transmitted; Determine whether the transmission duration is greater than a preset duration; If so, determining an initial transmission window corresponding to the protocol data in the transmission period according to the preset duration; If not, an initial transmission window corresponding to the protocol data is determined in the transmission period according to the transmission duration.

5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Determining an idle transmission window of a transmission cycle according to the target transmission window or the initial transmission window; Acquire at least one piece of data to be transmitted, wherein the data to be transmitted includes service data and / or protocol data; At least one datum to be transmitted is transmitted in sequence in the idle transmission window according to the priorities respectively corresponding to the at least one datum to be transmitted, until the idle transmission window no longer exists.

6. The method according to claim 5, characterized in that According to the priorities respectively corresponding to the at least one data to be transmitted, sequentially transmitting the at least one data to be transmitted in the idle transmission window until the idle transmission window no longer exists, comprising: Determine the transmission order corresponding to the at least one data to be transmitted in descending order of priority; Determining target data in the at least one data to be transmitted according to the transmission order; Determine whether the transmission duration corresponding to the target data is less than the idle transmission window; If yes, transmit the target data in the idle transmission window, update the idle transmission window and the transmission order, and transmit at least one to-be-transmitted data according to the updated idle transmission window and the updated transmission order until there is no idle transmission window or no to-be-transmitted data; If not, determine the transmission data corresponding to the target data according to the idle transmission window, and transmit the transmission data in the idle transmission window.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: The service data is transmitted in a transmission period of the service data.

8. A data transmission device, characterized in that: The device comprises: A first determining module, configured to determine an initial transmission window corresponding to the protocol data in a transmission period, wherein a start time of the initial transmission window coincides with a start time of the transmission period; A second determination module is used to determine whether there is business data to be transmitted in the initial transmission window, and the priority of the business data is higher than the priority of the protocol data; A processing module is used to update the initial transmission window to obtain at least one target transmission window according to the transmission period of the business data, and transmit the protocol data in the at least one target transmission window; if not, transmit the protocol data in the initial transmission window.

9. An electronic device, characterized in that: include: memory, processors, and transceivers; Wherein, the memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.