A time domain resource application method and device, chip, medium and module equipment
By dynamically adjusting the duration of time-domain resources in the terminal device, the problem of bandwidth waste when WiFi and BT work simultaneously is solved, achieving more efficient time resource allocation and system efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SPREADTRUM SEMICON(CHENGDU) CO LTD
- Filing Date
- 2022-11-09
- Publication Date
- 2026-06-23
AI Technical Summary
In terminal devices, when WiFi and BT work simultaneously, they interfere with each other due to overlapping frequency bands. Existing TDM methods suffer from bandwidth waste and low RF resource utilization.
By dynamically adjusting the duration of time-domain resources during data packet reception, the allocation of time resources is optimized based on the transmission duration of data packets, reducing bandwidth waste and improving system efficiency.
The system optimized time resource allocation, improved bandwidth utilization, reduced bandwidth waste, and increased system efficiency.
Smart Images

Figure CN115767628B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of wireless communication technology, and in particular to a time-domain resource application method, apparatus, chip, medium, and module device. Background Technology
[0002] With the development of communication technology, most terminal devices now support both Wireless Fidelity (WiFi) and Bluetooth (BT) functions. WiFi is a high-frequency radio signal that enables terminal devices, such as personal computers, tablets, and mobile phones, to connect wirelessly and transmit and exchange data. BT is a wireless technology standard that enables short-range data exchange between fixed devices, mobile devices, and personal area networks.
[0003] In existing technologies, many scenarios in terminal devices require simultaneous operation of WiFi and BitTorrent (BT). When WiFi and BT operate simultaneously, since both operate in the 2.4GHz ISM band and their operating channels almost completely overlap, mutual interference occurs. Furthermore, many products on the market use the same antenna for WiFi and BT to reduce costs. To avoid interference during simultaneous operation and to achieve multiplexing of the same antenna, WiFi and BT need to stagger their antenna usage in time, i.e., using the Time Division Multiplexing (TDM) method, such as... Figure 1 As shown.
[0004] Using the TDM method presents the challenge of coexisting and scheduling WiFi and BitTorrent (BT) events. The effective utilization of antenna radio frequency (RF) is a key metric for evaluating the quality of this coexistence scheduling. Typically, coexistence scheduling arbitrates WiFi and BT events, allocating RF resources based on their respective event priorities. Taking BT as an example, treating it as a separate event for coexistence arbitration to obtain RF resources has the drawback that while the data receiver allocates time resources to BT, it does so at the maximum allocated time length, resulting in bandwidth waste. Summary of the Invention
[0005] This application provides a time-domain resource allocation method that helps optimize time resource allocation and reduce bandwidth waste.
[0006] In a first aspect, this application provides a time-domain resource allocation method, comprising: during the reception of a first data packet of a first communication mode, allocating a first time-domain resource for receiving a second data packet of the first communication mode, wherein the second data packet is the next data packet after the first data packet, and the duration of the first time-domain resource is greater than or equal to the header transmission duration of the second data packet; after receiving the first data packet, receiving a data packet of the second communication mode; after receiving the data packet of the second communication mode, receiving the second data packet in the first time-domain resource; parsing the header of the second data packet to determine the data transmission duration of the second data packet; and if the transmission duration of the second data packet is greater than the duration of the first time-domain resource, allocating an extension of the duration of the first time-domain resource based on the data transmission duration of the second data packet, wherein the transmission duration of the second data packet is the sum of the header transmission duration of the second data packet and the data transmission duration of the second data packet.
[0007] Based on the method described in the first aspect, time resource allocation can be optimized during communication transmission, reducing bandwidth waste and effectively improving bandwidth utilization. Furthermore, when the duration of the first time domain resource is longer than the header transmission duration of the second data packet, the number of requests to extend the duration of the first time domain resource can be reduced, thus improving system efficiency.
[0008] In one possible implementation, the duration of the first time domain resource is the sum of the header transmission duration of the second data packet and the first preset duration, and the extension of the duration of the first time domain resource is the difference between the data transmission duration of the second data packet and the first preset duration.
[0009] In one possible implementation, the method further includes: determining the average transmission duration of data packets of a first communication mode within a first preset time period; updating the first preset duration based on the average transmission duration, wherein the updated first preset duration is the difference between the average transmission duration and the packet header transmission duration of data packets of the first communication mode.
[0010] In one possible implementation, the method further includes: detecting whether the first count within a second preset time period is greater than a preset number, where the first count is the number of times the duration of the time domain resources for continuously requesting extension of the data packets used to transmit the first communication mode is extended; if the first count within the second preset time period is greater than the preset number, then the first preset duration is increased.
[0011] In one possible implementation, the method further includes: detecting whether an extension of the duration of the time-domain resources used for transmitting data packets of the first communication mode is requested within a third preset time period; if no extension of the duration of the time-domain resources used for transmitting data packets of the first communication mode is requested within the third preset time period, then reducing the first preset time period.
[0012] Based on these possible implementation methods, time resources can be requested more accurately, bandwidth waste can be reduced, the number of interactions required to request time resources can be reduced, and system efficiency can be improved.
[0013] In one possible implementation, the starting position of the first time-domain resource is determined based on the starting reception time of the first data packet and the event interval, which is either the connection event interval or the broadcast event interval.
[0014] In one possible implementation, the first communication mode is Bluetooth mode, and the second communication mode is Wi-Fi mode.
[0015] Based on these possible implementation methods, transmission time resources can be requested according to the corresponding events of the corresponding communication mode, allowing for more precise request of time resources and reducing bandwidth waste.
[0016] Secondly, this application provides a communication device, which includes a receiving unit, a switching unit, an interaction unit, and a determining unit, for performing the method described in the first aspect.
[0017] Thirdly, this application provides a communication device including a receiver, a memory, and a processor. The receiver is used to receive wireless signals, the memory stores program instructions, and the processor is configured to invoke the program instructions to execute the method described in the first aspect.
[0018] Fourthly, this application provides a module device, which includes a power module, a storage module, a communication module, and a chip, wherein: the power module is used to provide power to the module device; the storage module is used to store data and instructions; the communication module is used for internal communication within the module device or for communication between the module device and external devices; and the chip is used to execute the method described in the first aspect.
[0019] Fifthly, this application provides a chip including a processor and a communication interface, the processor being configured to cause the chip to perform the method described in the first aspect.
[0020] In a sixth aspect, this application provides a computer-readable storage medium storing computer-readable instructions that, when executed on an electronic device, cause the electronic device to perform the method described in the first aspect. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 This is a schematic diagram illustrating the time resource allocation for operation using TDM in WiFi and BT modes;
[0023] Figure 2 This is a flowchart illustrating the time-domain resource request method provided in an embodiment of this application;
[0024] Figure 3 This is a schematic diagram of a time-domain resource application provided in an embodiment of this application;
[0025] Figure 4 This is a schematic diagram of a time-domain resource application provided in an embodiment of this application;
[0026] Figure 5 This is a schematic diagram of the structure of the communication device provided in the embodiments of this application;
[0027] Figure 6 This is a schematic diagram of the structure of the communication device provided in the embodiments of this application;
[0028] Figure 7 This is a schematic diagram of the structure of the communication module device provided in the embodiments of this application;
[0029] Figure 8 This is a schematic diagram of the chip structure for executing the time-domain resource allocation method provided in the embodiments of this application;
[0030] Figure 9 This is a schematic diagram of a computer-readable storage medium provided in an embodiment of this application. Detailed Implementation
[0031] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0032] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in this application refers to and includes any or all possible combinations of one or more of the listed items.
[0033] It should be noted that the terms "first," "second," "third," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the term "comprising" and any variations thereof are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or devices.
[0034] This application provides a time-domain resource application method, apparatus, chip, medium, and module device. The method can be executed by an electronic device that communicates in multiple modes using TDM. Optionally, the electronic device may include a terminal, such as a mobile phone, tablet computer, computer with wireless transceiver capabilities, virtual reality (VR) user equipment, augmented reality (AR) user equipment, wireless terminal in industrial control, vehicle-mounted user equipment, wireless terminal in autonomous driving, wireless terminal in telemedicine, wireless terminal in smart grids, wireless terminal in transportation safety, wireless terminal in smart cities, wireless terminal in smart homes, wearable user equipment, etc. The embodiments of this application do not limit the application scenario. The electronic device may also be referred to as a terminal, user equipment, access user equipment, vehicle-mounted terminal, industrial control terminal, UE unit, UE station, mobile station, mobile station, remote station, remote user equipment, mobile device, UE user equipment, user equipment, wireless communication device, UE agent, or UE device, etc. The electronic device can also be any fixed or mobile device with multi-mode communication capabilities. Alternatively, the method can be executed by a chip in the electronic device. Alternatively, the method can be implemented by a software module loaded in the terminal.
[0035] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating the time-domain resource allocation method provided in this application embodiment. Wherein:
[0036] 201. During the reception of a first data packet in a first communication mode, the electronic device requests a first time-domain resource for receiving a second data packet in the first communication mode. The second data packet is the next data packet after the first data packet, and the duration of the first time-domain resource is greater than or equal to the header transmission duration of the second data packet.
[0037] 202. After receiving the first data packet, the electronic device receives a data packet of the second communication mode.
[0038] 203. After receiving the data packet of the second communication mode, the electronic device receives the second data packet in the first time domain resource.
[0039] In other words, electronic devices transmit data in both the first and second communication modes using TDM.
[0040] In one possible implementation, the first communication mode can be BT mode, and the second communication mode can be WiFi mode. For example, as... Figure 1 As shown, the transmission in BT mode and WiFi mode are staggered in time.
[0041] In one possible implementation, the starting position of the first time-domain resource is determined based on the starting reception time of the first data packet and the event interval, which is either the connection event interval or the broadcast event interval. For example, the starting position of the first time-domain resource is the starting reception time of the first data packet plus the event interval.
[0042] 204. The electronic device parses the header of the second data packet to determine the data transmission duration of the second data packet.
[0043] In one possible implementation, the data packet includes a header and a data portion. By parsing the information carried in the header of the second data packet, the length of the data in the second data packet (Payload Length) can be determined. Based on the transmission rate, the transmission duration of the data in the second data packet (Payload Duration) can be determined. For example, PayloadDuration = Payload Length / Rate.
[0044] 205. If the transmission duration of the second data packet is greater than the duration of the first time domain resource, the electronic device requests an extension of the duration of the first time domain resource based on the data transmission duration of the second data packet. The transmission duration of the second data packet is the sum of the header transmission duration of the second data packet and the data transmission duration of the second data packet.
[0045] Scenario 1: The duration of the first time domain resource is equal to the header transmission duration of the second data packet. In this case, the transmission duration of the second data packet must be greater than the duration of the first time domain resource. Therefore, after determining the data transmission duration of the second data packet, the electronic device can directly request an extension of the duration of the first time domain resource based on the data transmission duration of the second data packet.
[0046] For example, such as Figure 3As shown, assuming the duration of the first time domain resource and the header transmission duration of the second data packet are both T1, and the data transmission duration of the second data packet is Payload Duration, the electronic device can request to extend the duration of the first time domain resource to T2, where T2 = T1 + Payload Duration.
[0047] Scenario 2: The duration of the first time domain resource is greater than the header transmission duration of the second data packet. In this case, the electronic device can first determine whether the transmission duration of the second data packet is greater than the duration of the first time domain resource; if the transmission duration of the second data packet is greater than the duration of the first time domain resource, the electronic device requests an extension of the duration of the first time domain resource based on the data transmission duration of the second data packet.
[0048] In one possible implementation, if the duration of the first time-domain resource is greater than the header transmission duration of the second data packet, the duration of the first time-domain resource is the sum of the header transmission duration of the second data packet and a first preset duration. The electronic device can first determine whether the transmission duration of the second data packet is greater than the duration of the first time-domain resource. If the transmission duration of the second data packet is greater than the duration of the first time-domain resource, the electronic device requests an extension of the duration of the first time-domain resource based on the data transmission duration of the second data packet. Alternatively, the electronic device can first determine whether the first preset duration is less than the data transmission duration of the second data packet. If the first preset duration is less than the data transmission duration of the second data packet, it indicates that the transmission duration of the second data packet is greater than the duration of the first time-domain resource, and the electronic device needs to request an extension of the duration of the first time-domain resource based on the data transmission duration of the second data packet. The extension amount of the duration of the first time-domain resource is the difference between the data transmission duration of the second data packet and the first preset duration.
[0049] For example, such as Figure 4 As shown, the duration T1 of the first time-domain resource is the sum of the header transmission duration (Header Duration) of the second data packet and the preset duration N. The data transmission duration of the second data packet is the payload duration. The extended duration T2 of the first time-domain resource satisfies the transmission duration of the second data packet, i.e., T2 = Header Duration + Payload Duration. Therefore, the electronic device can request an extension of the duration of the first time-domain resource by the difference between Payload Duration and N, i.e., Δ = T2 – T1.
[0050] In one possible implementation, if the transmission duration of the second data packet is less than or equal to the duration of the first time domain resource, the electronic device does not need to request an extension of the duration of the first time domain resource, and the electronic device can complete the reception of the second data packet within the duration of the first time domain resource.
[0051] In one possible implementation, the electronic device may further determine the average transmission duration of data packets of the first communication mode within a first preset time period, and update the first preset duration based on the average transmission duration. The updated first preset duration is the difference between the average transmission duration and the packet header transmission duration of the data packets of the first communication mode.
[0052] Optionally, the determined average transmission duration can be the arithmetic mean, geometric mean, or any other suitable average of the transmission durations of BT communication mode data packets within a pre-set time period.
[0053] In this embodiment, the time-domain resource request method can dynamically adjust the duration of the first time-domain resource as the reception duration of the next data packet, which can further improve the accuracy of each requested time-domain resource, reduce bandwidth waste, and effectively reduce the number of times time-domain resources are requested, thereby improving system efficiency.
[0054] In one possible implementation, the electronic device may also detect whether the first count within the second preset time period is greater than a preset number, where the first count is the number of times the duration of the time domain resources for continuously requesting extension of the data packets used to transmit the first communication mode is extended; if the first count within the second preset time period is greater than the preset number, the electronic device increases the first preset duration.
[0055] For example, an electronic device can detect whether the number of times it continuously requests to extend the duration of time-domain resources used for transmitting data packets in BT mode within a preset time period exceeds a threshold (preset number of times). If it exceeds the threshold, it indicates that the first preset duration is too short or the data transmission volume is too large. The electronic device can increase the first preset duration to ensure data transmission and reduce the number of times it requests to extend the duration of time-domain resources used for transmitting data packets in BT mode.
[0056] In one possible implementation, the electronic device may also detect whether an extension of the duration of the time domain resources used for transmitting data packets of the first communication mode is requested within a third preset time period; if no extension of the duration of the time domain resources used for transmitting data packets of the first communication mode is requested within the third preset time period, the electronic device reduces the first preset time period.
[0057] For example, the electronic device can detect whether there is an application to extend the duration of time domain resources used for transmitting data packets in BT mode within a preset time period. If there is no application to extend the duration of time domain resources used for transmitting data packets in BT mode within the preset time period, it indicates that the first preset duration may be too long or the data transmission volume is too small. The electronic device can reduce the first preset duration to further optimize time resources and reduce bandwidth waste.
[0058] In this embodiment, the time-domain resource request method can dynamically adjust the duration of the first time-domain resource as the reception duration of the next data packet, which can further improve the accuracy of each requested time-domain resource, reduce bandwidth waste, and effectively reduce the number of times time-domain resources are requested, thereby improving system efficiency.
[0059] Please see Figure 5 , Figure 5 This is a schematic diagram of the communication device 500 provided in an embodiment of this application. The communication device 500 can be used to perform some or all of the functions described in the method embodiments above. For example... Figure 5 As shown, the communication device 500 includes a processing unit 501 and a communication unit 502. Wherein:
[0060] Processing unit 501 is configured to request a first time domain resource for receiving a second data packet of the first communication mode during the reception of a first data packet of the first communication mode, wherein the second data packet is the next data packet of the first data packet, and the duration of the first time domain resource is greater than or equal to the header transmission duration of the second data packet.
[0061] The communication unit 502 is used to receive data packets of the second communication mode after receiving the first data packet;
[0062] The communication unit 502 is also configured to receive the second data packet in the first time domain resource after receiving the data packet of the second communication mode;
[0063] The processing unit 501 is also used to parse the header of the second data packet and determine the data transmission duration of the second data packet;
[0064] The processing unit 501 is further configured to, if the transmission duration of the second data packet is greater than the duration of the first time domain resource, apply to extend the duration of the first time domain resource based on the data transmission duration of the second data packet, wherein the transmission duration of the second data packet is the sum of the header transmission duration of the second data packet and the data transmission duration of the second data packet.
[0065] In one possible implementation, the duration of the first time domain resource is the sum of the header transmission duration of the second data packet and the first preset duration, and the extension of the duration of the first time domain resource is the difference between the data transmission duration of the second data packet and the first preset duration.
[0066] In one possible implementation, the processing unit 501 is further configured to determine the average transmission duration of data packets of the first communication mode within a first preset time period; and the processing unit 501 is further configured to update the first preset duration based on the average transmission duration, wherein the updated first preset duration is the difference between the average transmission duration and the packet header transmission duration of data packets of the first communication mode.
[0067] In one possible implementation, the processing unit 501 is further configured to increase the first preset duration if the first number within the second preset time period is greater than the preset number, where the first number is the number of times the duration of the time domain resources for continuously requesting extension of the data packets used to transmit the first communication mode is extended.
[0068] In one possible implementation, the processing unit 501 is further configured to reduce the first preset duration if no application is made within the third preset time period to extend the duration of the time domain resources used to transmit the data packets of the first communication mode.
[0069] In one possible implementation, the processing unit 501 is further configured to determine the starting position of the first time domain resource based on the starting reception time of the first data packet and the event interval, wherein the event interval is a connection event interval or a broadcast event interval.
[0070] In one possible implementation, the processing unit 501 is also used to switch between BT mode and WiFi mode.
[0071] Figure 6 This is a schematic diagram of the structure of the communication device 600 provided in the embodiments of this application.
[0072] The communication device 600 may include a communicator 601, a memory 602, and a processor 603. The communicator 601, the memory 602, and the processor 603 are connected via one or more buses 604.
[0073] The communicator 601 is used to receive wireless signals.
[0074] Memory 602 is used to store program instructions. Memory 602 may include read-only memory and random access memory, and provides instructions and data to processor 603. A portion of memory 602 may also include non-volatile random access memory.
[0075] Processor 603 may be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor; optionally, processor 603 may also be any conventional processor. Processor 603 calls program instructions stored in memory 602, causing device 600 to execute referenced instructions. Figure 2 and Figure 3 The time-domain resource allocation method in the described method embodiments.
[0076] Figure 7 This is a schematic diagram of the structure of the communication module device 700 provided in the embodiments of this application.
[0077] The communication module device 700 can execute the relevant steps of the time-domain resource request method in the aforementioned method embodiments. The communication module device 700 includes: a power module 701, a storage module 702, a communication module 703, and a chip 704.
[0078] The power supply module 701 provides power to the module device; the storage module 702 stores data and instructions; the communication module 703 enables internal communication within the module device or communication between the module device and external devices; and the chip 704 executes reference... Figure 2 and Figure 3 The time-domain resource allocation method in the described method embodiments.
[0079] Figure 8 This is a schematic diagram of the structure of the chip 800 for executing the time-domain resource allocation method provided in the embodiments of this application.
[0080] Chip 800 includes a processor 801 and a communication interface 802. Processor 801 is configured to cause chip 800 to execute reference... Figure 2 and Figure 3 The time-domain resource allocation method in the described method embodiments.
[0081] Figure 9 This is a schematic diagram of a computer-readable storage medium 900 provided in an embodiment of this application.
[0082] like Figure 9 As shown, the computer-readable storage medium 900 stores computer-readable instructions 901. When the instructions are executed on the processor, the method flow of the above method embodiment is implemented. The computer-readable storage medium 900 includes, but is not limited to, volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc.
[0083] This application also provides a computer program product, which, when run on a processor, enables the implementation of the method flow described in the above method embodiments.
[0084] Regarding the modules / units included in the various devices and products described in the above embodiments, they can be software modules / units, hardware modules / units, or a combination of both. For example, for various devices and products applied to or integrated into a chip, all of their modules / units can be implemented using hardware methods such as circuits, or at least some modules / units can be implemented using software programs that run on the chip's integrated processor, while the remaining (if any) modules / units can be implemented using hardware methods such as circuits. For various devices and products applied to or integrated into a chip module, all of their modules / units can be implemented using hardware methods such as circuits. Different modules / units can be located in the same part (e.g., chip, circuit module, etc.) or different components of the chip module, or at least some modules / units... It can be implemented using software programs that run on the processor integrated within the chip module. The remaining (if any) modules / units can be implemented using hardware methods such as circuits. For various devices and products applied to or integrated into the terminal, the modules / units they contain can all be implemented using hardware methods such as circuits. Different modules / units can be located in the same component (e.g., chip, circuit module, etc.) or different components within the terminal. Alternatively, at least some modules / units can be implemented using software programs that run on the processor integrated within the terminal, while the remaining (if any) modules / units can be implemented using hardware methods such as circuits.
[0085] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some operations can be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0086] The descriptions of the various embodiments provided in this application can be referenced mutually. Each embodiment has its own emphasis, and parts not described in detail in a certain embodiment can be referred to the relevant descriptions of other embodiments. For the sake of convenience and brevity, for example, the functions and operations of the various devices and equipment provided in the embodiments of this application can be referred to the relevant descriptions of the method embodiments of this application. The method embodiments and the device embodiments can also be referenced, combined or cited from each other.
[0087] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A method for requesting time-domain resources, characterized in that, The method includes: During the reception of a first data packet of a first communication mode, a first time domain resource is requested for receiving a second data packet of the first communication mode, wherein the second data packet is the next data packet of the first data packet, and the duration of the first time domain resource is greater than or equal to the header transmission duration of the second data packet. After receiving the first data packet, a data packet of the second communication mode is received; the first communication mode is Bluetooth mode, and the second communication mode is Wi-Fi mode. After receiving the data packet of the second communication mode, the second data packet is received in the first time domain resource; Parse the header of the second data packet to determine the data transmission duration of the second data packet; If the transmission duration of the second data packet is greater than the duration of the first time domain resource, then an application is made to extend the duration of the first time domain resource based on the data transmission duration of the second data packet. The transmission duration of the second data packet is the sum of the header transmission duration of the second data packet and the data transmission duration of the second data packet.
2. The method according to claim 1, characterized in that, The duration of the first time domain resource is the sum of the header transmission duration of the second data packet and the first preset duration, and the extension of the duration of the first time domain resource is the difference between the data transmission duration of the second data packet and the first preset duration.
3. The method according to claim 2, characterized in that, The method further includes: Determine the average transmission time of data packets for the first communication mode within a first preset time period; The first preset duration is updated based on the average transmission duration, and the updated first preset duration is the difference between the average transmission duration and the packet header transmission duration of the data packet in the first communication mode.
4. The method according to claim 2, characterized in that, The method further includes: The first count within the second preset time period is checked to see if it is greater than a preset number, where the first number is the number of times the duration of the time domain resources used to transmit data packets in the first communication mode are continuously requested to be extended. If the first count within the second preset time period is greater than the preset number of times, then the first preset time period is increased.
5. The method according to claim 2, characterized in that, The method further includes: Detect whether an extension of the duration of time-domain resources used for transmitting data packets in the first communication mode is requested within a third preset time period; If no extension of the duration of the time domain resources used to transmit data packets in the first communication mode is requested within the third preset time period, then the first preset time period is reduced.
6. The method according to any one of claims 1-5, characterized in that, The starting position of the first time domain resource is determined based on the starting reception time of the first data packet and the event interval, wherein the event interval is the connection event interval or the broadcast event interval.
7. A communication device, characterized in that, The communication device includes: The processing unit is configured to request a first time-domain resource for receiving a second data packet of the first communication mode during the reception of a first data packet of the first communication mode, wherein the second data packet is the next data packet of the first data packet, and the duration of the first time-domain resource is greater than or equal to the header transmission duration of the second data packet. The communication unit is configured to receive data packets of a second communication mode after receiving the first data packet; the first communication mode is Bluetooth mode and the second communication mode is WiFi mode. The communication unit is further configured to receive the second data packet in the first time domain resource after receiving the data packet of the second communication mode; The processing unit is also used to parse the header of the second data packet and determine the data transmission duration of the second data packet; The processing unit is further configured to, if the transmission duration of the second data packet is greater than the duration of the first time domain resource, apply to extend the duration of the first time domain resource based on the data transmission duration of the second data packet, wherein the transmission duration of the second data packet is the sum of the packet header transmission duration of the second data packet and the data transmission duration of the second data packet.
8. A communication device, characterized in that, The communication device includes a receiver, a memory, and a processor. The receiver is used to receive wireless signals, the memory stores program instructions, and the processor is configured to invoke the program instructions to cause the device to perform the method as described in any one of claims 1 to 6.
9. A module device, characterized in that, The module device includes a power module, a storage module, a communication module, and a chip, wherein: The power module is used to provide electrical energy to the module device; The storage module is used to store data and instructions; The communication module is used for internal communication within the module device, or for communication between the module device and external devices; The chip is used to perform the method as described in any one of claims 1 to 6.
10. A chip, characterized in that, The chip includes a processor and a communication interface, the processor being configured to cause the chip to perform the method as described in any one of claims 1 to 6.
11. A computer-readable storage medium storing computer-readable instructions that, when executed by an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 6.