WiFi data transmission method and device, storage medium and WiFi station

By only the response frame type judgment, the reception address matching and the interval time difference comparison of the response frame in WiFi communication, the problems of complexity and misjudgment of traditional FCS verification are solved, and communication efficiency and reliability are improved.

CN119603705APending Publication Date: 2025-03-11ZHUHAI HUGE IC CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411653959.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-19
Publication Date
2025-03-11

Smart Images

  • Figure CN119603705A_ABST
    Figure CN119603705A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a WiFi data transmission method and device, a storage medium and a WiFi station, and belongs to the field of wireless communication. According to the method, frame type judgment, receiving address matching and absolute value comparison of the interval duration difference are only performed on the response frame, so that the step of performing complete FCS (frame check sequence) check on the response frame in a traditional method is avoided. This change significantly reduces the processing time and improves the overall communication efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communications, and in particular to a WiFi data transmission method, device, storage medium and WiFi site. Background Art

[0002] In the current wireless communication field, WiFi technology is a widely used wireless local area network (WLAN) technology, and its communication efficiency and stability have always been the focus of industry attention. In the traditional WiFi communication process, when the first WiFi station sends a data frame to the second WiFi station, it usually waits for and receives a response frame from the second WiFi station to confirm whether the data frame is successfully received. In order to verify the validity of the response frame, the traditional practice is to perform a complete frame check sequence (FCS) check on the response frame to ensure the integrity and accuracy of its data.

[0003] However, with the continuous development of WiFi technology and the continuous expansion of application scenarios, the traditional FCS verification method has gradually exposed some problems. First, the FCS verification process is relatively complex and requires more computing resources, which to some extent affects the performance and battery life of WiFi devices. Secondly, in some special cases, such as network congestion or severe signal interference, FCS verification may cause misjudgment due to data packet damage or delay, thereby affecting the stability and reliability of communication. Summary of the invention

[0004] The embodiments of the present application provide a method, device, storage medium and WiFi site for transmitting WiFi data, which can solve the problem that the FCS check in the related art affects the stability and reliability of communication. The technical solution is as follows:

[0005] In a first aspect, an embodiment of the present application provides a method for transmitting WiFi data, the method comprising:

[0006] The first WiFi site sends a current data frame to the second WiFi site;

[0007] When the first WiFi station receives a response frame from the second WiFi station, parsing the response frame;

[0008] Record the sending time point of the current data frame and the time point of successfully parsing the response frame, and calculate the current interval duration between the two time points;

[0009] Determine whether the absolute value of the difference between the current interval duration and the last interval duration recorded when the last data frame was sent is less than 1 microsecond;

[0010] If yes, determine whether the frame type of the response frame indicates an ACK frame according to the analysis result;

[0011] If yes, determine whether the MAC address carried by the response frame is the same as the MAC address of the first WiFi site according to the analysis result;

[0012] If yes, determine that the response frame is an ACK frame corresponding to the current data frame, and record the current interval duration of the data frame being sent.

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

[0014] A transceiver unit, configured to send a current data frame to a second WiFi station;

[0015] A parsing unit, configured to parse the response frame when receiving the response frame from the second WiFi station;

[0016] A calculation unit, used to record the sending time point of the current data frame and the time point of successfully parsing the response frame, and calculate the current interval duration between the two time points;

[0017] A judging unit, configured to judge whether an absolute value of a difference between the current interval duration and the last interval duration recorded when the last data frame was sent is less than 1 microsecond; if yes, judging whether the frame type of the response frame indicates an ACK frame according to the parsing result; if yes, judging whether a MAC address carried by the response frame is the same as the MAC address of the first WiFi site according to the parsing result; if yes, determining that the response frame is an ACK frame corresponding to the current data frame, and recording a current interval duration of the current data frame sending.

[0018] In a fourth aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.

[0019] In a fifth aspect, an embodiment of the present application provides a WiFi site, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.

[0020] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least:

[0021] By only performing frame type determination, receiving address matching, and absolute value comparison of interval duration difference on the response frame, the traditional method avoids the need to perform a complete FCS (frame check sequence) check on the response frame. This change significantly reduces processing time and improves overall communication efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0023] Figure 1 is an architecture diagram of a WiFi wireless communication system provided in an embodiment of the present application;

[0024] Figure 2 It is an interactive schematic diagram of a WiFi data transmission method provided in an embodiment of the present application;

[0025] Figure 3 is a timing diagram of data transmission between a first site and a second site provided in an embodiment of the present application;

[0026] Figure 4 It is a structural schematic diagram of a WiFi data transmission device provided by the present application;

[0027] Figure 5 This is another structural schematic diagram of a WiFi site provided by this application. DETAILED DESCRIPTION

[0028] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0029] refer to Figure 1 , Figure 1 The network architecture diagram of the wireless fidelity communication system is shown in FIG. The wireless fidelity communication system includes at least one station (station 11 to station 13), an access point 21 and a server 31. Stations can transmit data frames and receive ACK frames of the data frames.

[0030] Among them, the site in the embodiment of the present application can be a smart phone, a tablet computer, a gaming device, an AR (Augmented Reality) device, a car, a data storage device, an audio playback device, a video playback device, a notebook, a desktop computing device, a wearable device such as an electronic watch, an electronic glasses, an electronic helmet, an electronic bracelet, an electronic necklace, electronic clothing and other devices.

[0031] The following will be combined with the attached Figure 2 , the WiFi data transmission method provided in the embodiment of the present application is described in detail. Among them, the WiFi data transmission method in the embodiment of the present application can be Figure 1 Sites in .

[0032] See also Figure 2 , is a flow chart of a WiFi data transmission method provided in an embodiment of the present application, such as Figure 2 As shown, the site 11 includes a master control template 111 and a WiFi module 112. The master control template 111 mainly has a control function for controlling various components in the site, and the WiFi module is used to transmit WiFi signals. The method of the present application may include the following steps:

[0033] S201. A first WiFi site sends a current data frame to a second WiFi site.

[0034] Among them, the first WiFi station constructs a WiFi data frame that complies with the IEEE 802.11 standard based on the data transmitted by the upper layer protocol (such as the IP layer). The data frame includes a frame control field (specifying the frame type and subtype, such as a data frame), a duration / ID field (used for virtual carrier sensing), an address field (source MAC address, destination MAC address, BSSID, etc.), a sequence number field (used for frame retransmission and confirmation), a data field (actually transmitted data), and a frame check sequence (FCS, used for frame integrity check). The data frame is processed by the WiFi physical layer, including modulation, coding, scrambling, etc., and converted into a signal suitable for wireless channel transmission. The first WiFi station competes for the wireless channel through the CSMA / CA (Carrier Sense Multiple Access / Collision Avoidance) mechanism. After confirming that the channel is idle, the station executes a backoff algorithm to avoid conflicts with other stations. Once the transmission opportunity is obtained, the station sends the data frame to the wireless channel through the antenna. At the moment when the data frame starts to be sent, the high-precision timer of the first WiFi station records the sending time point T_send.

[0035] Furthermore, the first WiFi station compresses, encrypts and encapsulates the current data to be sent to generate a current data frame.

[0036] Among them, data compression is a technology that reduces transmission time and storage space by reducing the size of data files. In WiFi communication, compressing data can significantly improve transmission efficiency, especially when bandwidth is limited or signal quality is poor. The principle of data compression is mainly based on the removal of redundant data and the optimization of encoding algorithms. Common encoding algorithms include lossless compression algorithms (such as ZIP, RAR, etc.) and lossy compression algorithms (such as JPEG, MP3, etc.). In WiFi communication, lossless compression algorithms are usually selected to ensure the integrity and accuracy of data.

[0037] Data encryption is a key step to ensure the security of WiFi communications. Before the data frame is sent, the first WiFi station will encrypt the data using a pre-shared key (such as WPA2-PSK) or a certificate-based key (such as WPA3-SAE). The encryption process usually involves complex encryption algorithms and key management protocols to ensure that the data is not eavesdropped or tampered with during transmission. In WiFi networks, the encryption of unicast frames usually uses the PTK (Pairwise Temporal Key) key, which is generated by the 4-Way Handshake process and includes three parts: KCK (Key Confirmation Key), KEK (Key Encryption Key) and TK (Temporal Key). TK is used to encrypt the actual data packet in the data frame to ensure the confidentiality of data transmission.

[0038] Data encapsulation is the process of encapsulating upper layer protocol data (such as IP packets) into a format suitable for transmission in wireless media. In WiFi communication, data encapsulation usually involves the following steps:

[0039] Add Frame Control Field: The Frame Control Field contains key information about the frame type, subtype, version, existence of address fields, and whether it is encrypted. It is located at the beginning of the frame and is the basis for frame parsing and processing.

[0040] Adding Address Fields: WiFi frames usually contain multiple address fields to indicate the sender, receiver, and possibly other related devices (such as access points). These address fields include source address (SA), destination address (DA), receiver address (RA), and transmitter address (TA).

[0041] Add a Sequence Control Field: The Sequence Control Field is used to identify the sequence number of the frame to facilitate frame reassembly and error detection at the receiving end.

[0042] Add Data Field: The data field contains the actual data to be transmitted, which may be compressed and encrypted IP data packets.

[0043] Add a frame check sequence (FCS): FCS is used to check the integrity of the frame at the receiving end to ensure that no errors occur during the transmission of the frame.

[0044] After completing the above steps, the first WiFi station will generate a complete data frame, which contains all necessary header information, data and tail check code. Then, the data frame will be sent to the wireless medium and received and processed by the receiving end (such as the second WiFi station or access point)

[0045] S202: When the first WiFi station receives a response frame from the second WiFi station, the first WiFi station parses the response frame.

[0046] The first WiFi station continuously monitors the wireless channel to receive a response frame (such as an ACK frame) from the second WiFi station. Once the response frame is received, the first WiFi station parses the response frame, including the frame control field, source MAC address, destination MAC address, check field (such as FCS), and any other possible necessary fields. During the parsing process, the first WiFi station verifies the integrity and correctness of the response frame.

[0047] S203, recording the sending time point of the current data frame and the time point of successfully parsing the response frame, and calculating the current interval duration between the two time points.

[0048] The first WiFi station records the sending time point T_send of the data frame (already recorded in S201) and the time point T_parse_success of successfully parsing the response frame. Using a high-precision timer, the first WiFi station calculates the time interval from the sending time point T_send of the data frame to the successful parsing time point T_parse_success of the response frame, recorded as T3_current.

[0049] For example, see Figure 3 In the timing diagram shown, T1 represents SIFS (Short Interframe Space), which is 16us for the 802.11 protocol standard. Different devices may have deviations, and the relative position change may also have deviations (for example, if the relative position becomes longer by S meters, then the sifs will be lengthened by (S / light speed) seconds)

[0050] T2 represents the duration from the start of air interface demodulation to the generation of LTF_SYNC (including STF (short training word) + LTF (long training word) + demodulation delay). Changes in the internal environment of the first WiFi site (such as temperature, clock, etc.) may cause deviations.

[0051] T3 is the time interval, which is the sum of T1+T2. Because the relative positions of the first WiFi station and the second WiFi station and the internal hardware environment are changing over time, it is most accurate to record the last interval as a reference for the next deviation calculation.

[0052] S204: Determine whether the absolute value of the difference between the current interval duration and the last interval duration recorded when the last data frame was sent is less than 1 microsecond.

[0053] The first WiFi station retrieves the interval duration T3_old recorded when the last data frame was sent from the storage. The absolute value of the difference between the current interval duration T3_current and the last interval duration T3_old |T3_current-T3_old| is calculated. It is determined whether the difference is less than 1 microsecond. This step is used to confirm whether the received response frame arrives within the expected time window, thereby reducing the possibility of misjudgment.

[0054] S205: If yes, determine whether the frame type of the response frame indicates an ACK frame according to the analysis result.

[0055] The first WiFi station checks the frame control field of the response frame to determine whether the frame type is an ACK frame.

[0056] Further, the frame control (FC) field is extracted from the parsed response frame. The FC field is usually located at the beginning of the frame and is an important step in the frame parsing process. Pay attention to the lower 8 bits of the FC field (also called the combination of the Frame Type and Subtype fields). In the IEEE 802.11 standard, these 8 bits are divided into two parts: the first 2 bits represent the frame type (Frame Type), and the last 6 bits represent the subtype (Subtype). For the ACK frame, the frame type should be a management frame (Management Frame), and its value is 0x00 (or binary 00). The subtype is specifically an ACK frame, and its value is 0x0D (or binary 1101). Therefore, the lower 8 bits of the FC field are compared with the first preset value (i.e., the binary value 00110100 representing the ACK frame, or the value 0x03 after the hexadecimal 0x0C is shifted right by 2 bits plus the offset of the subtype 0x0D, but it is usually simpler to directly compare the entire 8-bit value).

[0057] It should be noted that since the frame type and subtype are arranged consecutively in the FC field, and the frame type and subtype values ​​of the ACK frame are fixed (type = 0x00, subtype = 0x0D), the lower 8 bits of the FC field can be directly compared with 0x0B (type 0x00 is shifted left 2 bits and then ORed with subtype 0x0D). However, considering the possible subtle differences or specific implementations in the standard, a more general description method is used here.

[0058] If the lower 8 bits of the FC field match the first preset value (i.e., are equal to the binary value representing the ACK frame), the frame type is determined to be an ACK frame. If not, the frame type is determined not to be an ACK frame, but may be other types of management frames, data frames, or control frames.

[0059] According to the judgment result of the frame type, the corresponding subsequent processing flow is executed. If it is determined to be an ACK frame, the step S206 is continued; if it is not an ACK frame, an error processing flow may need to be executed, such as discarding the frame, sending a retransmission request, etc.

[0060] It should be noted that the first preset value in the above step should be determined according to the specific IEEE 802.11 standard version and implementation details. In most cases, the lower 8-bit value of the FC field of the ACK frame is fixed, and the exact definition can be found in the standard document.

[0061] In addition, although the above steps mention comparing the lower 8 bits of the FC field with the first preset value, in actual implementation, a more optimized method, such as bit mask and bit operation, may be used to extract and compare the frame type and subtype fields. Such a method can perform the judgment operation more efficiently and reduce unnecessary calculation overhead.

[0062] S206: If yes, determine whether the MAC address carried in the response frame is the same as the MAC address of the first WiFi site based on the analysis result.

[0063] The first WiFi station compares the destination MAC address in the response frame with its own MAC address to confirm whether the response frame is indeed an ACK response to the current data frame.

[0064] Further, the receiver address (RA) field is extracted from the parsed response frame. The RA field is usually located in the frame header, immediately following the frame control (FC) field, and is used to indicate the receiver of the frame. The MAC address of the first WiFi site is obtained from its configuration or storage. This address is unique and is used to identify the site in the network. The field value of the extracted RA field is compared with the MAC address of the first WiFi site. The comparison should be performed byte by byte to ensure that the two addresses are exactly the same. If the field value of the RA field is the same as the MAC address of the first WiFi site, it is confirmed that the response frame is an acknowledgment (i.e., an ACK frame) for the previously sent data frame. If they are not the same, it may mean that the response frame is not for the current site, which may be a false alarm caused by other communication activities in the network, or an error caused by some reason (such as address conflict, interference, etc.).

[0065] According to the judgment result, the corresponding subsequent processing flow is executed. If the RA field is the same as the MAC address, then continue to execute step S207 to record the interval length of the data frame transmission this time and other information. If they are not the same, it may be necessary to execute the error handling process, such as discarding the frame, recording the error log, sending the error report, etc.

[0066] S207: If yes, determine that the response frame is an ACK frame corresponding to the current data frame, and record the current interval duration of the data frame being sent.

[0067] Among them, the first WiFi station confirms that the response frame is the ACK frame of the current data frame. The first WiFi station updates the last interval duration T3_old in the storage to the interval duration T3_current calculated this time. This provides a benchmark for comparing the interval duration when the next data frame is sent. According to application requirements, the first WiFi station may continue to send the next data frame, perform other communication operations, or enter low power consumption mode.

[0068] In summary, the beneficial effects of implementing the embodiments of the present application include: by only performing frame type judgment, receiving address matching and absolute value comparison of the interval duration difference on the response frame, the step of performing a complete FCS (frame check sequence) check on the response frame in the traditional method is avoided. This change significantly reduces the processing time and improves the overall communication efficiency. The technical solution effectively avoids misjudgment caused by network delay or interference by accurately recording the sending time point of the current data frame and the time point of successfully parsing the response frame, and calculating the interval duration between the two, and then comparing the interval duration recorded when the last data frame was sent. At the same time, the accuracy and relevance of the response frame are ensured by double verification of the frame type and the receiving address. Since complex operations such as FCS verification are avoided, the consumption of hardware and software resources of the technical solution is significantly reduced. This not only helps to extend the battery life of WiFi devices, but also reduces the dependence on high-performance processors, making the technical solution easier to promote and apply in various types of WiFi devices. By accurately identifying and recording ACK frames, the technical solution can more effectively monitor and manage the data transmission status in WiFi communications. Once data transmission anomalies or loss are detected, measures can be taken quickly to retransmit or recover from errors, thereby improving the stability and reliability of communications.

[0069] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0070] See also Figure 4, which shows a schematic diagram of the structure of a WiFi data transmission device provided by an exemplary embodiment of the present application. The device can be implemented as all or part of a terminal through software, hardware, or a combination of both. The WiFi data transmission device 4 (referred to as device 4) includes: a transceiver unit 401, a parsing unit 402, a calculation unit 403, and a judgment unit 404.

[0071] The transceiver unit 401 is used to send the current data frame to the second WiFi station;

[0072] The parsing unit 402 is configured to parse the response frame when receiving the response frame from the second WiFi station;

[0073] The calculation unit 403 is used to record the sending time point of the current data frame and the time point of successfully parsing the response frame, and calculate the current interval duration between the two time points;

[0074] The judging unit 404 is configured to judge whether the absolute value of the difference between the current interval duration and the last interval duration recorded when the last data frame was sent is less than 1 microsecond; if yes, judge whether the frame type of the response frame indicates an ACK frame according to the parsing result; if yes, judge whether the MAC address carried by the response frame is the same as the MAC address of the first WiFi site according to the parsing result; if yes, determine that the response frame is an ACK frame corresponding to the current data frame, and record the current interval duration of the data frame being sent.

[0075] In a possible implementation manner, determining, according to the parsing result, whether the frame type of the response frame indicates an ACK frame includes:

[0076] Determine whether the lower 8-bit field value in the FC field carried by the response frame is a first preset value according to the analysis result. If yes, determine that the frame type is an ACK frame; if not, determine that the frame type is not an ACK frame.

[0077] In a possible implementation, the determining, according to the parsing result, whether the MAC address carried by the response frame is the same as the MAC address of the first WiFi site includes:

[0078] It is determined according to the analysis result that the field value of the RA field carried by the response frame is the same as the MAC address of the first WiFi site.

[0079] In a possible implementation manner, the current data frame is generated after the current data to be sent is compressed, encrypted and encapsulated.

[0080] In a possible implementation, the current time interval duration is equal to the sum of SIFS and parsing duration, and the parsing duration is equal to the interval between the time point when the response frame is received and the time point when the response frame is successfully parsed.

[0081] It should be noted that, when the device 4 provided in the above embodiment executes the WiFi data transmission method, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the touch operation response device provided in the above embodiment and the touch operation response method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

[0082] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0083] The present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figure 2 The method steps of the embodiment shown in the figure can be found in the specific implementation process. Figure 2 The specific description of the illustrated embodiment will not be repeated here.

[0084] The present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the WiFi data transmission method described in the above embodiments.

[0085] See also Figure 5 , which is a schematic diagram of the structure of a WiFi site provided in an embodiment of the present application. Figure 5 As shown, the WiFi station 500 may include: at least one processor 501 , at least one input interface 504 , an output interface 503 , a memory 505 , and at least one communication bus 502 .

[0086] The communication bus 502 is used to realize the connection and communication between these components.

[0087] The output interface 503 may include a display screen (Display) and a camera (Camera), and the optional output interface 503 may also include a standard wired interface and a wireless interface.

[0088] The input interface 504 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0089] The processor 501 may include one or more processing cores. The processor 501 uses various interfaces and lines to connect various parts in the entire terminal 500, and executes various functions of the terminal 500 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 505, and calling data stored in the memory 505.

[0090] Among them, the memory 505 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 505 includes a non-transitory computer-readable storage medium. The memory 505 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 505 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 505 may also be optionally at least one storage device located away from the aforementioned processor 501. As Figure 5 As shown, the memory 505 as a computer storage medium may include an operating system, a network communication module, a user interface module and an application program.

[0091] exist Figure 5 In the WiFi station 500 shown in FIG. 1 , the processor 501 can be used to call the application stored in the memory 505 and specifically execute the following steps: Figure 4 The specific process can be referred to Figure 4 As shown, no further description is given here.

[0092] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0093] What is disclosed above is only a preferred embodiment of the present application, and it certainly cannot be used to limit the scope of rights of the present application. Ordinary technicians in this field can understand that all or part of the processes of the above embodiment and equivalent changes made according to the claims of the present application are still within the scope of the invention.

Claims

1. A method for transmitting WiFi data, characterized in that: The method comprises: The first WiFi site sends a current data frame to the second WiFi site; When the first WiFi station receives a response frame from the second WiFi station, parsing the response frame; Record the sending time point of the current data frame and the time point of successfully parsing the response frame, and calculate the current interval duration between the two time points; Determine whether the absolute value of the difference between the current interval duration and the last interval duration recorded when the last data frame was sent is less than 1 microsecond; If yes, determine whether the frame type of the response frame indicates an ACK frame according to the analysis result; If yes, determine whether the MAC address carried by the response frame is the same as the MAC address of the first WiFi site according to the analysis result; If yes, determine that the response frame is an ACK frame corresponding to the current data frame, and record the current interval duration of the data frame being sent.

2. The method according to claim 1, characterized in that The determining, according to the parsing result, whether the frame type of the response frame indicates an ACK frame comprises: Determine whether the lower 8-bit field value in the FC field carried by the response frame is a first preset value according to the analysis result. If yes, determine that the frame type is an ACK frame; if not, determine that the frame type is not an ACK frame.

3. The method according to claim 1 or 2, characterized in that: The determining, according to the parsing result, whether the MAC address carried by the response frame is the same as the MAC address of the first WiFi site includes: It is determined according to the analysis result that the field value of the RA field carried by the response frame is the same as the MAC address of the first WiFi site.

4. The method according to claim 3, characterized in that The current data frame is generated after compressing, encrypting and encapsulating the current data to be sent.

5. The method according to claim 1, 2 or 4, characterized in that: The current time interval duration is equal to the sum of SIFS and parsing duration. The parsing duration is equal to the interval between the time point when the response frame is received and the time point when the response frame is successfully parsed.

6. A WiFi data transmission device, characterized in that: include: A transceiver unit, configured to send a current data frame to a second WiFi station; A parsing unit, configured to parse the response frame when receiving the response frame from the second WiFi station; A calculation unit, used to record the sending time point of the current data frame and the time point of successfully parsing the response frame, and calculate the current interval duration between the two time points; A judging unit, used to judge whether the absolute value of the difference between the current interval duration and the last interval duration recorded when the last data frame was sent is less than 1 microsecond; If yes, determine whether the frame type of the response frame indicates an ACK frame according to the analysis result; If yes, determine whether the MAC address carried by the response frame is the same as the MAC address of the first WiFi site according to the analysis result; If yes, determine that the response frame is an ACK frame corresponding to the current data frame, and record the current interval duration of the data frame being sent.

7. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 6.

8. A WiFi site, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 6.

Citation Information

Cited By

  • Response packet processing method and device suitable for wireless local area network, equipment and storage medium

    CN122457203A