CN117596633A - WiFi data transmission method and device, storage medium and terminal equipment - Google Patents

WiFi data transmission method and device, storage medium and terminal equipment Download PDF

Info

Publication number
CN117596633A
CN117596633A CN202311548112.6A CN202311548112A CN117596633A CN 117596633 A CN117596633 A CN 117596633A CN 202311548112 A CN202311548112 A CN 202311548112A CN 117596633 A CN117596633 A CN 117596633A
Authority
CN
China
Prior art keywords
wifi
data packet
current
wifi data
duration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311548112.6A
Other languages
Chinese (zh)
Inventor
凌德坤
施奕洲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Huge Ic Co ltd
Original Assignee
Zhuhai Huge Ic Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Huge Ic Co ltd filed Critical Zhuhai Huge Ic Co ltd
Priority to CN202311548112.6A priority Critical patent/CN117596633A/en
Publication of CN117596633A publication Critical patent/CN117596633A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application discloses a WiFi data transmission method, a WiFi data transmission device, a storage medium and terminal equipment, and belongs to the field of wireless communication. The method and the device prejudge the sending time of the WIFI data packet, control the aggregation length and the modulation and coding strategy and ensure the flow on the WIFI sending channel to the maximum extent; the receiving duration is prejudged according to the packet header of the WiFi data packet, and the flow on the WIFI receiving channel is ensured to the maximum; and on the premise of delaying the slave equipment of the BLE to add the judgment condition and ensuring the connection stability of the BLE, the channel bandwidth is allocated to the WIFI for use as much as possible, and the speed and the continuity of WiFi data transmission can be improved through a control method.

Description

WiFi data transmission method and device, storage medium and terminal equipment
Technical Field
The present disclosure relates to the field of wireless communications, and in particular, to a method and apparatus for transmitting WiFi data, a storage medium, and a terminal device.
Background
For a chip supporting both the WIFI4 (Wireless Fidelity, wireless guaranteed 4 th edition) protocol and the BLE (Bluetooth Low Energy ) protocol, only one 2.4G radio frequency module is set in the channel, and referring to the structural schematic diagram shown in fig. 2, the WIFI4 controller and the BLE controller share one 2.4G radio frequency module, and the 2.4G radio frequency module is used by the two controllers in a time division multiplexing manner.
In practical application, through the condition that can appear the chip and connect WIFI host computer and BLE host computer simultaneously, the majority data of transmission all is in WIFI data this moment, and the data volume of BLE data is very little, does not have BLE data to need to transmit even in most time, only need with BLE host computer keep connecting can. Referring to the timing chart of WiFi data and BLE data transmission shown in fig. 3, in order to maintain connection with the BLE host, the chip periodically triggers a BLE connection event, and conventionally, when each BLE connection event (one BLE transmission completed per connection interval, for a slave device, data is received first and then data) is about to arrive, the transmission of the current WiFi data is stopped, the WiFi transmission channel and the WiFi reception channel are closed, and the transmission of the BLE data is switched to. However, the BLE connection interval is often in the order of 10ms, and such a time interval is relatively short for WIFI data transmission, so that there is often a small amount of WIFI data transmission between two BLE connection events, and when the BLE connection event arrives, the transmission of WIFI data is interrupted, which has a relatively obvious effect on WIFI traffic.
Disclosure of Invention
The WiFi data transmission method, device, system, storage medium and WiFi device can solve the problems of low WiFi data transmission rate and frequent interruption in the related technology. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for transmitting WiFi data, where the method includes:
when the current WiFi judgment point is detected, determining the type of the current WiFi judgment point;
if the type is TX judgment point, calculating first sending time length of a first WiFi data packet to be sent, judging whether the first transmission is smaller than time length from the current WiFi judgment point to a time point of a next BLE connection event, if so, sending the first WiFi data packet, if not, calculating second sending time length when the first WiFi data packet uses minimum aggregation length and the highest modulation coding strategy, judging whether the second sending time length is smaller than time length from the current WiFi judgment point to the time point of the next BLE connection event, if so, reducing the current aggregation length of the first WiFi data packet, increasing the current modulation coding strategy, and sending the second WiFi data packet after finishing adjustment; if not, judging whether the current delay count value is smaller than a preset delay threshold, if so, sending the first WiFi data packet, and stopping generating the next BLE connection event; if not, generating a first EXIT signal, and closing a WiFi transmitting channel based on the first EXIT signal;
if the type is an RX judgment point, calculating the receiving time length of a second WiFi data packet, judging whether the receiving time length is smaller than the time length from the current WiFi judgment point to the time point of the next BLE connection event, and if so, receiving the second WiFi data packet; if not, judging whether the current delay count value is smaller than a preset delay threshold, and if so, receiving the second WiFi data packet; if not, generating a second EXIT signal, and closing the WiFi receiving channel based on the second EXIT signal;
if the type is the IDLE judgment point, judging that the WiFi state is the non-IDLE state, if yes, generating a third EXIT signal, and closing the WiFi receiving channel based on the third EXIT signal.
In a second aspect, an embodiment of the present application provides a device for transmitting WiFi data, including:
the detection unit is used for determining the type of the current WiFi judgment point when the current WiFi judgment point is detected;
a transmission control unit, configured to calculate a first transmission duration according to a current aggregation length and a current modulation and coding strategy of a first WiFi data packet to be transmitted if the type is a TX decision point, determine whether the first transmission is smaller than a duration between the current WiFi decision point and a time point of a next BLE connection event, if yes, transmit the first WiFi data packet, if not, calculate a second transmission duration when the first WiFi data packet uses a minimum aggregation length and a highest modulation and coding strategy, determine whether the second transmission duration is smaller than a duration between the current WiFi decision point and a time point of the next BLE connection event, if yes, reduce the current aggregation length and increase the current modulation and coding strategy of the first WiFi data packet, and transmit the second WiFi data packet after finishing adjustment; if not, judging whether the current delay count value is smaller than a preset delay threshold, if so, sending the first WiFi data packet, and stopping generating the next BLE connection event; if not, generating a first EXIT signal, and closing a WiFi transmitting channel based on the first EXIT signal;
the receiving control unit is used for calculating the receiving duration of a second WiFi data packet if the type is an RX judgment point, judging whether the receiving duration is smaller than the duration from the current WiFi judgment point to the time point of the next BLE connection event, and if so, receiving the second WiFi data packet; if not, judging whether the current delay count value is smaller than a preset delay threshold, and if so, receiving the second WiFi data packet; if not, generating a second EXIT signal, and closing the wifi receiving channel based on the second EXIT signal;
and the IDLE control unit is used for judging whether the WiFi state is a non-IDLE state or not if the type is an IDLE judgment point, generating a third EXIT signal if the WiFi state is the non-IDLE state, and closing the WiFi receiving channel based on the third EXIT signal.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-described method steps.
In a fourth aspect, an embodiment of the present application provides a terminal device, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The technical scheme provided by some embodiments of the present application has the beneficial effects that at least includes:
the sending duration of the WIFI data packet is pre-judged, the aggregation length and the modulation and coding strategy are controlled, and the flow on the WIFI sending channel is ensured to the maximum extent; the receiving duration is prejudged according to the packet header of the WiFi data packet, and the flow on the WIFI receiving channel is ensured to the maximum; and on the premise of delaying the slave equipment of the BLE to add the judgment condition and ensuring the connection stability of the BLE, the channel bandwidth is allocated to the WIFI for use as much as possible, and the speed and the continuity of WiFi data transmission can be improved through a control method.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an architecture diagram of a wireless communication system provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a chip in a terminal device according to an embodiment of the present application;
fig. 3 is a timing chart of WiFi data and BLE data transmission in the related art provided in the embodiments of the present application;
fig. 4 is an interaction schematic diagram of a transmission method of WiFi data provided in an embodiment of the present application;
fig. 5 is a timing diagram of a WiFi state provided in an embodiment of the present application;
fig. 6 is a schematic diagram of WiFi data transmission timing at TX decision points provided in an embodiment of the present application;
fig. 7 is a schematic diagram of WiFi data transmission timing at an RX decision point according to an embodiment of the present application;
fig. 8 is a schematic diagram of WiFi data transmission timing at IDLE decision point provided in the embodiments of the present application;
fig. 9 is a schematic structural diagram of a WiFi data transmission device provided in the present application;
fig. 10 is a schematic structural diagram of a terminal device provided in the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a network architecture diagram of a wireless communication system. The wireless communication system includes: the terminal device 21, the terminal device 22 and the access point AP1, where the terminal device 22 is provided with a chip supporting both WiFi4 protocol and BLE protocol, and as shown in fig. 2, the chip includes a WiFi4 controller, a BLE controller and a 2.4G radio frequency module, and the two controllers use the same 2.4G radio frequency module in a time division multiplexing manner. A WiFi link is adopted between the terminal device 22 and the AP1 for transmitting WiFi data, and a BLE link is adopted between the terminal device 22 and the terminal device 21 for transmitting BLE data.
The connection relationship between the devices and the number of the devices in this embodiment are not limited to those shown in fig. 1, and may be adjusted according to actual requirements.
The terminal device in the embodiment of the application may be a smart phone, a tablet computer, a game device, an AR (Augmented Reality ) device, an automobile, a data storage device, an audio playing device, a video playing device, a notebook, a desktop computing device, a wearable device such as an electronic watch, electronic glasses, an electronic helmet, an electronic bracelet, an electronic necklace, an electronic article of clothing, and the like.
The method for transmitting WiFi data provided in the embodiments of the present application will be described in detail with reference to fig. 4. The transmission method of the WiFi data in the embodiment of the present application may be the terminal device 22 in fig. 1.
Referring to fig. 4, a flowchart of a method for transmitting WiFi data according to an embodiment of the present application may include the following steps:
s401, when the WiFi judgment point is detected, determining the current WiFi judgment point.
The WiFi decision point refers to a time point, and the type of the WiFi decision point may be: TX decision point, RX decision point and IDLE decision point, TX decision point represents the time point when WiFi4 controller is ready to send WiFi data packet after competing to channel through EDCA mechanism; the RX decision point indicates a time point when the WiFi4 controller receives the packet header of the WiFi data packet and successfully parses the rx_sig (see PPDU frame structure) and the frame header (A1 address of the MAC header), and obtains length information of the WiFi data packet to be received, a modulation coding policy MCS (Modulation and Coding Scheme) and whether to reply to confirm the data packet ACK after parsing, so as to calculate the receiving duration of the WiFi data packet. The IDLE decision point represents a time point of a preset duration before a time point of one BLE connection event, i.e., a time point earlier than the BLE connection event by a little.
S402, calculating a first sending duration according to the current aggregation length of the first WiFi data packet to be sent and the current modulation and coding strategy.
If the detection result in S401 is determined to be the TX decision point, the first transmission duration of the first WiFi data packet is calculated according to the current aggregation length of the first WiFi data packet to be transmitted, the current modulation and coding strategy, and the duration of receiving the acknowledgement data packet using the minimum modulation and coding strategy (MCS 0).
For example, referring to the schematic diagram of the TX decision point shown in fig. 6, the WiFi4 controller detects the current TX decision points T1, T2 and T3, calculates the first transmission duration of the first WiFi data packet corresponding to the current TX decision point T1, the decision point T2 and the decision point T3, where the first transmission duration refers to the duration of the TX interval in the WiFi state (before adjustment).
S403, judging whether the first sending duration is smaller than the duration from the current WiFi decision point to the time point of the next BLE connection event.
The BLE controller periodically generates a BLE connection event, which is used for maintaining communication connection with the BLE host, calculating a duration from a current WiFi decision point to a time point of a next BLE connection event, and determining whether the first transmission duration is less than the calculated duration, if yes, executing S405, and if no, executing S404.
Referring to fig. 6, BLE SLAVE (i.e., BLE controller) periodically generates a BLE connection event, and the duration from the TX decision point T1 to the time point of the next BLE connection event is the duration of the P1 interval, and determines that the first transmission duration (the duration of the 1 st TX interval before WiFi state adjustment) is greater than the duration of the P1 interval; the duration from the TX decision point T2 to the time point of the next BLE connection event is the duration of a P2 time interval, and the first sending duration (the duration of the 2 nd TX interval before WiFi state adjustment) is determined to be smaller than the duration of the P2 interval; the duration between the TX decision point T3 and the time point of the next BLE connection event is the duration of the P3 interval, and it is determined that the first transmission duration (the duration of the 3 rd TX interval before WiFi state adjustment) is less than the duration of the P3 interval.
S404, calculating a second sending duration of the first WiFi data packet by using the minimum aggregation length and the highest modulation and coding strategy.
If the judgment result in S403 is no, the WiFi controller calculates the second transmission duration according to the minimum aggregation length (only one aggregation subframe), the highest modulation and coding strategy (the highest order MCS) and the duration of receiving the response data packet ACK with MCS 0.
S405, a first WiFi data packet is sent.
If the judgment result in S403 is yes, a first WiFi packet is sent, and the next WiFi judgment point is continued to be waited.
S406, judging whether the second sending duration is smaller than the duration from the current WiFi decision point to the time point of the next BLE connection event.
If the determination result of S406 is yes, S407 is executed; if the determination in S406 is negative, S408 is executed.
S407, adjusting the current aggregation length and the current modulation coding strategy.
The current aggregation length and the current modulation and coding strategy of the first WiFi data packet enable the adjusted first sending duration of the first WiFi data packet to meet the requirement of being smaller than the duration from the current WiFi decision point to the time point of the next BLE connection event. And then, sending the first WiFi data packet according to the adjusted parameter value, and waiting for the arrival of the next WiFi judgment point.
For example, referring to fig. 6, the duration of the first TX interval after WiFi status adjustment is smaller than the length of the P1 interval.
S408, judging whether the current delay count value is smaller than a preset delay threshold.
Wherein the preset latency threshold (slave_latency) represents the slave latency, for example: as shown in fig. 6, slave_latency=9 indicates that the BLE controller (BLE slave) can ignore 9 BLE connection events, but must generate the 10 th BLE connection event, and if the connection interval of the BLE connection event is 10ms, it means that the BLE connection event must be listened to every 100 ms. The terminal device is provided with a counter for counting, and the current delay count value is equal to slave_latency, and is reset to 0 to restart counting. If the determination result is yes, execution S409 is performed, and if the determination result is no, execution S410 is performed
And S409, sending the first WiFi data packet and stopping generating the next BLE connection event.
If the result of the determination is yes, it is indicated that the next BLE connection event has little influence on the BLE to keep the communication connection, and to ensure the WiFi traffic, the first WiFi data packet is continuously sent, and the generation of the next BLE connection event is stopped, if the WiFi device at the opposite end does not reply with the MCS0 to confirm the data packet ACK, the side may still complete the next BLE connection event, and continues to wait for the next WiFi decision point.
S410, generating a first EXIT signal, and closing a WiFi transmission channel based on the first EXIT signal.
If the determination result is no, referring to the TX decision point T3 in fig. 6, it is indicated that the current delay count value of the terminal device has reached the maximum value (delay threshold), which may affect the BLE to maintain the connection state, at this time, a first EXIT signal is generated to notify the WiFi transmission channel of operation, and the wifi_tx_en signal is set to a low level.
S411, calculating the receiving time of the second WiFi data packet.
If the detection result of S401 is determined to be an RX decision point, when the packet header of the second WiFi packet is received, the packet header is parsed to obtain an aggregate length and a modulation and coding strategy, and then the aggregate length, the modulation and coding strategy, and the duration of the second WiFi packet is calculated according to the duration of the acknowledgement packet ACK replied by the peer device using a specific MCS.
And S412, judging whether the receiving time length is smaller than the time length from the current WiFi judgment point to the time point of the next BLE connection event.
And the BLE controller periodically generates a BLE connection event for maintaining communication connection between the BLE slave and the BLE host, calculates a duration from a current WiFi decision point to a time point of a next BLE connection event, determines whether the received duration is less than the calculated duration, if yes, executes S413, and if no, executes S414.
Referring to fig. 7, BLE SLAVE (i.e., BLE controller) periodically generates a BLE connection event, and the duration from the RX decision point T1 to the time point of the next BLE connection event is the duration of the P1 interval, and determines that the reception duration (the duration of the 1 st RX interval) is less than the duration of the P1 interval; the time length from the RX decision point T2 to the time point of the next BLE connection event is the time length of a P2 time interval, and the time length of the reception time (the time length of the 2 nd RX interval) is determined to be longer than the time length of the P2 interval; the duration between the RX decision point T3 and the time point of the next BLE connection event is the duration of the P3 interval, and it is determined that the reception duration (duration of the 3 rd TX interval) is smaller than the duration of the P3 interval.
S413, receiving the second WiFi data packet.
If the determination result of S412 is yes, it is indicated that the currently received second WiFi packet does not affect the generation of the next BLE connection event, then the receiving of the second WiFi packet is continuously completed, and the arrival of the next WiFi decision point is waited.
S414, judging whether the current delay count value is smaller than a preset delay threshold.
The definition of the current delay count value and the delay threshold may be referred to above, if the determination result is yes, S413 is executed, which indicates that the connection of the BLE is not affected by the next BLE connection event, and in order to ensure the flow of WiFi, the second WiFi packet is continuously received, and the arrival of the next WiFi decision point is waited.
S415, generating a second EXIT signal, closing the transmitting channel based on the second EXIT signal,
If the determination result in S412 is no, for example: referring to RX decision point T3 of fig. 7, it is illustrated that the delay of the terminal device has reached a maximum value, which may affect the keep-connected state of BLE, and at this time, a second EXIT signal is generated, and the WiFi reception channel is turned off based on the second EXIT signal, and the wifi_rx_en signal is set to a low level.
S416, judging whether the WiFi state is a non-IDLE state.
S417, generating a third EXIT signal, the third EXIT signal closing the transmit channel.
If the detection result in S401 is determined to be an IDLE decision point, the current WiFi state is detected.
Referring to the schematic diagram of the WiFi states shown in fig. 5, the WiFi states include: TX state (transmit state), RX state (receive state) and IDLE state (IDLE state). The TX status indicates a transmission packet (TXDATA), a frame spacing SIFS (16 us, the same applies hereinafter), and a reception acknowledgement packet ACK (RXACK). And (3) injection: if the packet is a broadcast packet or a multicast packet, only TXDATA is included, and RXACK (acknowledgement packet returned by the receiver) is not included. The RX state indicates that a WiFi packet (RXDATA) is received, a frame spacing SIFS, and an acknowledgement packet ACK (TXACK) is transmitted. And (3) injection: if it is a broadcast packet or a multicast packet, it contains only RXDATA and does not use TXACK. IDLE state: two possibilities are included, one is wifi_tx_en=0 and wifi_rx_en=1, as in the IDLE state of fig. 4, WIFI turns on the received but not received data packet (rx_sync=0), which switches wifi_rx_en off before switching to BLE transmission; the other is wifi_tx_en=0 and wifi_rx_en=0, where WIFI is in an inactive state, as in fig. 6, 7, and 8 during BLE transmission (i.e., BLE connection event).
If the determination result is negative, S417 is executed. The WiFi state is a non-IDLE state (i.e. TX state or RC state), if the judging condition of S416 is satisfied, referring to IDLE decision point T2 in fig. 8, explaining the previous TX decision point or RX decision point, and deciding to ignore the BLE connection event to ensure that the current WFFI transmission is completed; if the conditions are not satisfied, see ID decision points T1 and T3 in fig. 8 and point T1 in fig. 7, which indicates that WIFI is in IDLE state (wifi_tx_en=0 and wifi_rx_en=1), at this time, a third EXIT signal is generated, and the WIFI receiving channel is controlled to be closed, so as to prepare to enter BLE transmission.
In summary, the beneficial effects of implementing embodiments of the present application include: the sending duration of the WIFI data packet is pre-judged, the aggregation length and the modulation and coding strategy are controlled, and the flow on the WIFI sending channel is ensured to the maximum extent; the receiving duration is prejudged according to the packet header of the WiFi data packet, and the flow on the WIFI receiving channel is ensured to the maximum; and on the premise of delaying the slave equipment of the BLE to add the judgment condition and ensuring the connection stability of the BLE, the channel bandwidth is allocated to the WIFI for use as much as possible, and the speed and the continuity of WiFi data transmission can be improved through a control method.
The following are device embodiments of the present application, which may be used to perform method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
Fig. 9 is a schematic structural diagram of a WiFi data transmission device according to an exemplary embodiment of the present application. The apparatus may be implemented as all or part of a terminal device by software, hardware or a combination of both. The transmission device 9 of WiFi data includes a detection unit 901, a transmission control unit 902, a reception control unit 903, and an idle control unit 904.
The detecting unit 901 is configured to determine a type of a current WiFi decision point when the current WiFi decision point is detected;
a transmission control unit 902, configured to calculate a first transmission duration according to a current aggregation length and a current modulation and coding strategy of a first WiFi data packet to be transmitted if the type is a TX decision point, determine whether the first transmission is less than a duration between the current WiFi decision point and a time point of a next BLE connection event, if yes, transmit the first WiFi data packet, if not, calculate a second transmission duration when the first WiFi data packet uses a minimum aggregation length and a highest modulation and coding strategy, determine whether the second transmission duration is less than a duration between the current WiFi decision point and a time point of a next BLE connection event, if yes, reduce the current aggregation length of the first WiFi data packet and increase the current modulation and coding strategy, and transmit the second WiFi data packet after finishing adjustment; if not, judging whether the current delay count value is smaller than a preset delay threshold, if so, sending the first WiFi data packet, and stopping generating the next BLE connection event; if not, generating a first EXIT signal, and closing a WiFi transmitting channel based on the first EXIT signal;
the receiving control unit 903 is configured to calculate a receiving duration of a second WiFi packet if the type is an RX decision point, determine whether the receiving duration is less than a duration between the current WiFi decision point and a time point of a next BLE connection event, and if so, receive the second WiFi packet; if not, judging whether the current delay count value is smaller than a preset delay threshold, and if so, receiving the second WiFi data packet; if not, generating a second EXIT signal, and closing the wifi receiving channel based on the second EXIT signal;
and the IDLE control unit 904 is configured to determine that the WiFi state is a non-IDLE state if the type is an IDLE decision point, and if yes, generate a third EXIT signal, and close the WiFi receiving channel based on the third EXIT signal.
In one or more embodiments, the calculating a first transmission duration of the first WiFi data packet to be transmitted includes:
and calculating the first sending duration of the first WiFi data packet according to the current aggregation length and the current modulation coding mode of the first WiFi data packet to be sent and the modulation coding mode used for receiving the response data packet aiming at the first WiFi data packet.
In one or more embodiments, the calculating the receiving duration of the second WiFi packet includes:
when a packet header of a second WiFi data packet is received, continuing the current aggregation length and the current modulation coding mode used by the second WiFi data packet in the packet header;
and calculating the receiving time of the second WiFi data packet according to the current aggregation length, the current modulation coding mode of each module and the modulation coding mode used by the response data packet corresponding to the second WiFi data packet.
It should be noted that, when the WiFi data transmission apparatus 9 provided in the foregoing embodiment performs the WiFi data transmission method, only the division of the foregoing functional modules is used as an example, in practical application, the foregoing functional allocation may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the touch operation response device and the touch operation response method embodiment provided in the foregoing embodiments belong to the same concept, which embody the detailed implementation process in the method embodiment, and are not repeated here.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
The embodiments of the present application further provide a computer storage medium, where a plurality of instructions may be stored, where the instructions are adapted to be loaded by a processor and execute the method steps of the embodiments shown in fig. 4 to 8, and the specific execution process may refer to the specific description of the embodiments shown in fig. 5 to 8, which is not repeated herein.
The present application also provides a computer program product storing at least one instruction that is loaded and executed by the processor to implement the method of WiFi data transmission as described in the various embodiments above.
Referring to fig. 10, a schematic structural diagram of a terminal device is provided in an embodiment of the present application. As shown in fig. 10, the terminal device 1000 may include: at least one processor 1001, at least one network interface 1004, a user interface 1003, a memory 1005, at least one communication bus 1002.
Wherein the communication bus 1002 is used to enable connected communication between these components.
The user interface 1003 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1003 may further include a standard wired interface and a wireless interface.
The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as WI-FI interface), and the corresponding terminal device includes a WiFi module (not shown in fig. 10).
Wherein the processor 1001 may include one or more processing cores. Processor 1001 connects various parts within the overall terminal device 1000 using various interfaces and lines, performs various functions of terminal device 1000 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in memory 1005, and invoking data stored in memory 1005. Alternatively, the processor 1001 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field-Programmable gate array (FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 1001 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 1001 and may be implemented by a single chip.
The Memory 1005 may include a random access Memory (RandomAccess Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). The memory 1005 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 1005 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described respective method embodiments, etc.; the storage data area may store data or the like referred to in the above respective method embodiments. The memory 1005 may also optionally be at least one storage device located remotely from the processor 1001. As shown in fig. 10, an operating system, a network communication module, a user interface module, and application programs may be included in the memory 1005, which is one type of computer storage medium.
In the terminal device 1000 shown in fig. 10, a user interface 1003 is mainly used for providing an input interface for a user, and acquiring data input by the user; the processor 1001 may be configured to invoke an application program stored in the memory 1005 and specifically execute the method shown in fig. 4, and the specific process may be shown in fig. 4, which is not described herein.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, or the like.
The above disclosure is illustrative of a preferred embodiment of the present application and, of course, should not be taken as limiting the scope of the invention, and those skilled in the art will recognize that all or part of the above embodiments can be practiced with modification within the spirit and scope of the appended claims.

Claims (6)

1. A method for transmitting WiFi data, the method comprising:
when the current WiFi judgment point is detected, determining the type of the current WiFi judgment point;
if the type is TX judgment point, calculating first sending time length of a first WiFi data packet to be sent, judging whether the first transmission is smaller than time length from the current WiFi judgment point to a time point of a next BLE connection event, if so, sending the first WiFi data packet, if not, calculating second sending time length when the first WiFi data packet uses minimum aggregation length and the highest modulation coding strategy, judging whether the second sending time length is smaller than time length from the current WiFi judgment point to the time point of the next BLE connection event, if so, reducing the current aggregation length of the first WiFi data packet, increasing the current modulation coding strategy, and sending the second WiFi data packet after finishing adjustment; if not, judging whether the current delay count value is smaller than a preset delay threshold, if so, sending the first WiFi data packet, and stopping generating the next BLE connection event; if not, generating a first EXIT signal, and closing a WiFi transmitting channel based on the first EXIT signal;
if the type is an RX judgment point, calculating the receiving time length of a second WiFi data packet, judging whether the receiving time length is smaller than the time length from the current WiFi judgment point to the time point of the next BLE connection event, and if so, receiving the second WiFi data packet; if not, judging whether the current delay count value is smaller than a preset delay threshold, and if so, receiving the second WiFi data packet; if not, generating a second EXIT signal, and closing the WiFi receiving channel based on the second EXIT signal;
if the type is the IDLE judgment point, judging that the WiFi state is the non-IDLE state, if yes, generating a third EXIT signal, and closing the WiFi receiving channel based on the third EXIT signal.
2. The method of claim 1, wherein the calculating a first transmission duration of the first WiFi packet to be transmitted comprises:
and calculating the first sending duration of the first WiFi data packet according to the current aggregation length and the current modulation coding mode of the first WiFi data packet to be sent and the modulation coding mode used for receiving the response data packet aiming at the first WiFi data packet.
3. The method according to claim 1 or 2, wherein the calculating the reception duration of the second WiFi packet includes:
when a packet header of a second WiFi data packet is received, continuing the current aggregation length and the current modulation coding mode used by the second WiFi data packet in the packet header;
and calculating the receiving time of the second WiFi data packet according to the current aggregation length, the current modulation coding mode of each module and the modulation coding mode used by the response data packet corresponding to the second WiFi data packet.
4. A WiFi data transmission device, comprising:
the detection unit is used for determining the type of the current WiFi judgment point when the current WiFi judgment point is detected;
a transmission control unit, configured to calculate a first transmission duration according to a current aggregation length and a current modulation and coding strategy of a first WiFi data packet to be transmitted if the type is a TX decision point, determine whether the first transmission is smaller than a duration between the current WiFi decision point and a time point of a next BLE connection event, if yes, transmit the first WiFi data packet, if not, calculate a second transmission duration when the first WiFi data packet uses a minimum aggregation length and a highest modulation and coding strategy, determine whether the second transmission duration is smaller than a duration between the current WiFi decision point and a time point of the next BLE connection event, if yes, reduce the current aggregation length and increase the current modulation and coding strategy of the first WiFi data packet, and transmit the second WiFi data packet after finishing adjustment; if not, judging whether the current delay count value is smaller than a preset delay threshold, if so, sending the first WiFi data packet, and stopping generating the next BLE connection event; if not, generating a first EXIT signal, and closing a WiFi transmitting channel based on the first EXIT signal;
the receiving control unit is used for calculating the receiving duration of a second WiFi data packet if the type is an RX judgment point, judging whether the receiving duration is smaller than the duration from the current WiFi judgment point to the time point of the next BLE connection event, and if so, receiving the second WiFi data packet; if not, judging whether the current delay count value is smaller than a preset delay threshold, and if so, receiving the second WiFi data packet; if not, generating a second EXIT signal, and closing the wifi receiving channel based on the second EXIT signal;
and the IDLE control unit is used for judging whether the WiFi state is a non-IDLE state or not if the type is an IDLE judgment point, generating a third EXIT signal if the WiFi state is the non-IDLE state, and closing the WiFi receiving channel based on the third EXIT signal.
5. A computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the method steps of any one of claims 1 to 3.
6. A terminal device, comprising: the WiFi module, the processor and the memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1-3.
CN202311548112.6A 2023-11-20 2023-11-20 WiFi data transmission method and device, storage medium and terminal equipment Pending CN117596633A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311548112.6A CN117596633A (en) 2023-11-20 2023-11-20 WiFi data transmission method and device, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311548112.6A CN117596633A (en) 2023-11-20 2023-11-20 WiFi data transmission method and device, storage medium and terminal equipment

Publications (1)

Publication Number Publication Date
CN117596633A true CN117596633A (en) 2024-02-23

Family

ID=89919381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311548112.6A Pending CN117596633A (en) 2023-11-20 2023-11-20 WiFi data transmission method and device, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN117596633A (en)

Similar Documents

Publication Publication Date Title
US10207183B2 (en) Wireless gaming protocol
CN107637125B (en) Method and apparatus for managing buffer in wireless communication system
CN110300404B (en) Network control method and mobile terminal
CN106559738B (en) Prioritizing short-range wireless packets for time-sensitive applications
US11109395B2 (en) Data transmission preemption
WO2022037664A1 (en) Discontinuous reception (drx) configuration method and apparatus, and device
US11950066B2 (en) TWS earphone interaction method and system using residual slots
CN111818659B (en) sidelink information sending method, receiving method, terminal and control node
CN107041170B (en) Data sending method, device and terminal
CN104703288A (en) Transmission method based on quasi-random back-off strategy in wireless distributed network
US20230051346A1 (en) Downlink reception triggering method, terminal, and network side device
CN109314630B (en) Link processing method, device and storage medium
CN117596633A (en) WiFi data transmission method and device, storage medium and terminal equipment
CN112994848B (en) MCS (modulation and coding scheme) adjusting method and device, storage medium and wireless node
US11917543B2 (en) Bluetooth-based data transmission method and data receiving method, communicating apparatus and computer storage medium
WO2022199095A1 (en) Data transmission method and apparatus, storage medium, and wireless node
CN112905358A (en) Software distribution method, device and system of distributed system
CN116055790B (en) Video playing method and system and electronic equipment
CN113207114B (en) Bluetooth audio master device, bluetooth audio slave device, bluetooth communication method and Bluetooth communication system
WO2021004488A1 (en) Data transmission method and apparatus
CN115988006A (en) Parameter configuration method and device and audio equipment group
CN112911639A (en) Uplink transmission method, configuration method, terminal and network side equipment
CN114666742A (en) Bluetooth data packet broadcasting method, device, terminal and storage medium
CN117082603A (en) Beacon frame sending method and device, storage medium and access point equipment
CN115038116A (en) Data transmission method, device, electronic equipment, storage medium and product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination