Response frame error correction method and device, storage medium and WiFi equipment

By introducing an error correction mechanism of the FCS verification counter and a bit 1 counter in WiFi communication, the bit error of the response frame is corrected, which solves the problem of data frame retransmission caused by the response frame error, and improves communication efficiency and reliability.

CN119583014AActive Publication Date: 2025-03-07ZHUHAI HUGE IC CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411712482.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-03-07
Estimated Expiration
2044-11-27

AI Technical Summary

Technical Problem

In WiFi communication, errors in response frames lead to an increase in the number of data frame retransmissions, reducing communication efficiency and reliability, especially in high load or low bandwidth environments.

Method used

By introducing the FCS verification counter and the bit 1 counter, combined with statistical analysis and error correction processing mechanism, the bit errors in the response frame are corrected to reduce unnecessary data frame retransmission.

Benefits of technology

It effectively reduces data frame retransmission caused by response frame errors, improves communication efficiency and reliability, optimizes communication resource utilization, and enhances the adaptability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119583014A_ABST
    Figure CN119583014A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a response frame error correction method and device, a storage medium and WiFi equipment, and belongs to the field of wireless communication. According to the method, the FCS check counter and the bit 1 counter are introduced, and statistical analysis and error correction processing mechanisms are combined, so that the problem of data frame retransmission caused by response frame errors in WiFi communication is effectively solved, the communication efficiency and reliability are improved, the utilization of communication resources is optimized, and the adaptability of the system is enhanced.
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 response frame error correction method, device, storage medium and WiFi device. Background Art

[0002] In the field of wireless communications, especially WiFi communications, reliable data transmission is crucial. Usually, the data transmission process follows a set of strict protocols to ensure the integrity and accuracy of the data. In this process, the sending and receiving of non-aggregate data frames is a basic and key link.

[0003] Specifically, when the first WiFi device needs to send data to the second WiFi device, it will encapsulate the data to be transmitted into a non-aggregated data frame and send it through the wireless channel. To ensure the successful reception of the data frame, the receiver (i.e., the second WiFi device) will send a confirmation frame to the sender (i.e., the first WiFi device) after receiving the data frame to indicate that the data frame has been successfully received. This mechanism helps the sender confirm the transmission status of the data and take retransmission measures when necessary.

[0004] However, in actual communication, due to the complexity and instability of wireless channels, the transmission of data frames and response frames may be interfered. In particular, during the transmission of response frames, due to their relatively short length (usually 14 bytes), even if the data frame is successfully sent, the response frame may have a small number of bit errors due to air interference and other reasons. When these errors cause the FCS (Frame Check Sequence) check of the response frame to fail, the sender will not be able to confirm the successful reception of the data frame, thereby triggering the retransmission mechanism to resend the relatively long data frame.

[0005] Although this retransmission mechanism guarantees data reliability to a certain extent, it may also have a significant impact on traffic. Especially in high-load or low-bandwidth communication environments, frequent data frame retransmissions will occupy more communication resources, reduce communication efficiency, and may even cause network congestion. Therefore, how to optimize the transmission and verification mechanism of response frames and reduce data frame retransmissions caused by response frame errors has become an urgent problem to be solved in the current WiFi communication field. Summary of the invention

[0006] The embodiments of the present application provide a response frame error correction method, device, storage medium and WiFi device, which can solve the problem of low communication efficiency caused by many response frame retransmission times in the related art. The technical solution is as follows:

[0007] In a first aspect, an embodiment of the present application provides a method for correcting an error of a response frame, the method comprising:

[0008] The first WiFi device sends a non-aggregated frame to the second WiFi device;

[0009] The first WiFi device receives a response frame returned by the second service device based on the non-aggregated frame;

[0010] If the receiving address of the response frame is the MAC address of the first WiFi device and the frame type is the specified type, continue to perform FCS check on the response frame; the length of the response frame is fixed to M bits, M is an integer greater than 1, and each bit is set with a bit 1 counter;

[0011] If the FCS check of the response frame fails, the first WiFi device adds 1 to the count value of the FCS check counter, and parses the bit value of each bit in the response frame. When the bit value is equal to 1, the count value of the bit 1 counter associated with the bit is added by 1; when the bit value is equal to 0, the count value of the bit 1 counter associated with the bit is controlled to remain unchanged;

[0012] When the count value of the FCS check counter is less than N, the first WiFi device retransmits the non-aggregated frame to the second WiFi device;

[0013] When the count value in the FCS check counter is equal to N, the first WiFi device queries the accumulated count value of each bit 1 counter, and when the accumulated count value is greater than or equal to (N+1) / 2, the bit value of the corresponding bit is replaced by 1; when the accumulated count value is less than (N+1) / 2, the bit value of the corresponding bit is replaced by 0, where N is an odd number greater than 1;

[0014] After completing the bit value replacement operation for each bit, a response frame after error correction is obtained;

[0015] If the FCS check of the error-corrected response frame passes, it is determined that the non-aggregate frame is sent successfully, the non-aggregate frame is cleared, the count value of the FCS check counter is reset to 0, and the count value of each bit 1 counter is reset to 0.

[0016] In a second aspect, an embodiment of the present application provides an error correction device for a response frame, wherein the error correction device for a response frame includes:

[0017] A transceiver unit, configured to send a non-aggregated frame to a second WiFi device;

[0018] The transceiver unit is further configured to receive a response frame returned by the second service device based on the non-aggregated frame;

[0019] A checking unit, configured to continue to perform FCS checking on the response frame if the receiving address of the response frame is the MAC address of the first WiFi device and the frame type is a specified type; the length of the response frame is fixed to M bits, M is an integer greater than 1, and a bit 1 counter is set for each bit position;

[0020] a statistical unit, configured to, if the FCS check of the response frame fails, increase the count value of the FCS check counter by 1 by the first WiFi device, and parse the bit value of each bit in the response frame, and when the bit value is equal to 1, increase the count value of the bit 1 counter associated with the bit by 1; when the bit value is equal to 0, control the count value of the bit 1 counter associated with the bit to remain unchanged;

[0021] The transceiver unit is further configured to, when the count value of the FCS check counter is less than N, cause the first WiFi device to retransmit the non-aggregated frame to the second WiFi device;

[0022] a replacing unit, configured to, when the count value in the FCS check counter is equal to N, query, by the first WiFi device, the accumulated count value of each bit 1 counter, and when the accumulated count value is greater than or equal to (N+1) / 2, replace the bit value of the corresponding bit with 1; when the accumulated count value is less than (N+1) / 2, replace the bit value of the corresponding bit with 0, where N is an odd number greater than 1;

[0023] A generating unit, used to obtain an error-corrected response frame after completing a bit value replacement operation on each bit position;

[0024] A reset unit is used to determine that the non-aggregate frame is sent successfully if the FCS check of the error-corrected response frame passes, clear the non-aggregate frame, reset the count value of the FCS check counter to 0, and reset the count value of each bit 1 counter to 0.

[0025] 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.

[0026] In a fifth aspect, an embodiment of the present application provides a WiFi device, 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.

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

[0028] By introducing the FCS check counter and bit 1 counter, combined with statistical analysis and error correction processing mechanism, the problem of data frame retransmission caused by response frame errors in WiFi communication is effectively solved, the communication efficiency and reliability are improved, the communication resource utilization is optimized, and the adaptability of the system is enhanced. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] 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.

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

[0031] Figure 2 It is an interactive schematic diagram of an error correction method for a response frame provided in an embodiment of the present application;

[0032] Figure 3 It is a schematic diagram of the data structure of the frame synchronization header provided in an embodiment of the present application;

[0033] Figure 4 It is a structural schematic diagram of an error correction device for a response frame provided by the present application;

[0034] Figure 5 It is a structural schematic diagram of a WiFi device provided by this application. DETAILED DESCRIPTION

[0035] 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.

[0036] 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 and stations and stations and access points can transmit data frames and receive response frames to the data frames.

[0037] 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.

[0038] The following will be combined with the attached Figure 2 , the error correction method of the response frame provided in the embodiment of the present application is described in detail. Among them, the execution body of the error correction method of the response frame in the embodiment of the present application is Figure 1 stations or access points in the network.

[0039] See also Figure 2 , is a flow chart of a response frame error correction method provided in an embodiment of the present application. The method of the present application may include the following steps:

[0040] S201. A first WiFi device sends a non-aggregated frame to a second WiFi device.

[0041] Among them, in the first WiFi device, the data link layer is responsible for constructing a non-aggregate frame (i.e., a single frame that does not contain multiple data packets). The non-aggregate frame includes a frame control field, a duration / ID field, an address field (such as a source MAC address, a destination MAC address, etc.), a sequence number control field, a data field, and a frame check sequence (FCS) field. After being modulated by the physical layer, the frame is sent to the second WiFi device through a wireless channel.

[0042] S202: The first WiFi device receives a response frame returned by the second service device based on a non-aggregated frame.

[0043] Among them, after receiving the non-aggregate frame, the second WiFi device performs corresponding operations (such as confirming reception, requesting to send, etc.) according to the frame type and content, and then constructs a response frame (such as an ACK frame or a CTS frame). The response frame also contains a frame control field, an address field, and an FCS field. The second WiFi device sends the response frame back to the first WiFi device through the wireless channel. The data link layer of the first WiFi device is responsible for receiving and parsing the response frame. For example: when the response frame is an ACK frame, the value of Frame Control is fixed (the retry bit is fixed to 0), the value of Duration is fixed (generally fixed to 0x0000), and the value of RA is fixed (that is, the MAC address of the sender), so the value of FCS is also fixed, so that the content of the response frame of the same non-aggregate frame is unchanged.

[0044] S203. If the receiving address of the response frame is the MAC address of the first WiFi device and the frame type is the specified type, continue to perform FCS check on the response frame; the length of the response frame is fixed to M bits, M is an integer greater than 1, and a bit 1 counter is set for each bit; the frame type of the response frame is an ACK frame or a CTS frame.

[0045] Among them, after receiving the response frame, the first WiFi device first checks whether the receiving address of the response frame is the MAC address of the device, and whether the frame type is a specified ACK frame or CTS frame. If the conditions are met, an FCS check is performed. The FCS check is implemented by calculating the FCS field of the received frame and comparing it with the recalculated FCS value to detect whether an error occurs during the transmission of the frame. The length of the response frame is fixed to M bits, where M is an integer greater than 1, and each bit is set with a bit 1 counter for subsequent error correction.

[0046] In some embodiments of the present application, if the receiving address of the response frame is not the MAC address of the first WiFi device, or the frame type is not a specified ACK frame or CTS frame, the first WiFi device will perform the following operations:

[0047] Since the response frame does not meet expectations, the first WiFi device will not process it further but will directly discard it. Although the FCS check is not performed at this time, since the response frame does not meet expectations, the first WiFi device still believes that there may be a problem with the current non-aggregate frame transmission. Therefore, the first WiFi device will update its internal retransmission logic and prepare to retransmit the non-aggregate frame. For subsequent analysis and debugging, the first WiFi device can choose to record the error information, including the specific circumstances of the receiving address mismatch or frame type mismatch. After confirming that the response frame does not meet expectations, the first WiFi device will reconstruct and send the non-aggregate frame to the second WiFi device according to the original retransmission logic. At this time, the first WiFi device may add some additional control information, such as a retransmission count mark, so that it can be identified and processed in subsequent response frames.

[0048] In order to avoid the waste of resources caused by infinite retransmission, the first WiFi device usually sets an upper limit on the number of retransmissions. When the upper limit is reached, if the correct response frame is still not received, the first WiFi device will stop retransmission and may take other error handling measures. After retransmitting the non-aggregated frame, the first WiFi device will re-execute steps S202 to S208 to check whether the new response frame meets expectations.

[0049] S204. If the FCS check of the response frame fails, the first WiFi device adds 1 to the count value of the FCS check counter, and parses the bit value of each bit in the response frame. When the bit value is equal to 1, the count value of the bit 1 counter associated with the bit is added by 1; when the bit value is equal to 0, the count value of the bit 1 counter associated with the bit is controlled to remain unchanged.

[0050] If the FCS check fails, it means that an error occurred in the transmission of the response frame. At this time, the first WiFi device adds 1 to the count value of the FCS check counter and records the bit value of the error frame. For each bit, if the bit value is equal to 1, the count value of the bit 1 counter associated with the bit is increased by 1; if the bit value is equal to 0, the count value of the bit 1 counter associated with the bit remains unchanged. In this way, the error condition of each bit is recorded.

[0051] S205: When the count value of the FCS check counter is less than N, the first WiFi device retransmits the non-aggregated frame to the second WiFi device.

[0052] If the count value of the FCS check counter is less than N (N is an odd number greater than 1, indicating the maximum number of retransmissions allowed), the first WiFi device will retransmit the non-aggregated frame and re-execute steps S202 to S204. This is to try to correct possible transmission errors and increase the chance of successfully receiving a correct response frame.

[0053] S206. When the count value in the FCS check counter is equal to N, the first WiFi device queries the accumulated count value of each bit 1 counter. When the accumulated count value is greater than or equal to (N+1) / 2, the bit value of the corresponding bit is replaced by 1; when the accumulated count value is less than (N+1) / 2, the bit value of the corresponding bit is replaced by 0, where N is an odd number greater than 1.

[0054] When the count value of the FCS check counter reaches N, it means that the maximum number of retransmissions has been attempted, but the correct response frame has not been successfully received. At this time, the first WiFi device will execute an error correction algorithm. The algorithm determines the correct value of each bit based on the cumulative count value of the bit 1 counter of each bit. If the cumulative count value of a bit is greater than or equal to (N+1) / 2, the bit value of the bit is replaced with 1; otherwise, it is replaced with 0. In this way, possible erroneous bits can be corrected based on the principle of majority voting.

[0055] S207: After completing the bit value replacement operation for each bit, an error-corrected response frame is obtained.

[0056] After completing the bit value replacement operation for each bit, the first WiFi device obtains a response frame after error correction. The response frame may contain some corrected error bits, but is still a valid frame format.

[0057] S208: If the FCS check of the response frame after error correction passes, it is determined that the non-aggregate frame is sent successfully, the non-aggregate frame is cleared, the count value of the FCS check counter is reset to 0, and the count value of each bit 1 counter is reset to 0.

[0058] The first WiFi device performs an FCS check on the response frame after error correction. If the check passes, it means that the response frame after error correction is correct, so it can be determined that the non-aggregate frame is sent successfully. At this time, the first WiFi device will clear all information related to the non-aggregate frame (including the non-aggregate frame itself, the count value of the FCS check counter, and the count value of each bit 1 counter) and prepare for the next communication. If the check still fails, further error handling measures may need to be taken, such as abandoning the communication or notifying the upper layer protocol to retry.

[0059] For example, see Figure 3 In the error correction principle diagram shown in the figure, the first WiFi device receives FCS check failure response frames three times in a row (only the first 8 bits, i.e., FrameControl[7:0], are listed, and the remaining bits are processed in the same way). The FrameControl[7:0] received three times are respectively erroneous as 0xD5 (1st bit error), 0xD0 (3rd bit error), and 0xC4 (5th bit error), and the bit 1 counters set for each bit are CNT_1 to CNT_7 respectively.

[0060] After three statistical operations, N=3, that is, (N+1) / 2=2. CNT_1=1, less than 2, the first bit after replacement is 0; CNT_2=0, less than 2, the second bit after replacement is 0; CNT_3=2, equal to 2, the third bit after replacement is 1; CNT_4=0, less than 2, the fourth bit after replacement is 0; CNT_5=2, equal to 2, the fifth bit after replacement is 1; CNT_6=0, less than 2, the sixth bit after replacement is 0; CNT_7=3, greater than 2, the seventh bit after replacement is 1; CNT_8=3, greater than 2, the eighth bit after replacement is 1; that is, the value of the response frame after error correction is 0xD4 (1101_0100).

[0061] In some embodiments of the present application, after the first WiFi device obtains the response frame after error correction, the frame is subjected to FCS check. FCS check is achieved by comparing the FCS value at the end of the frame with the frame content check value calculated by a specific algorithm. If the two do not match, it means that the FCS check fails, and the first WiFi device triggers a retransmission mechanism. Once the FCS check failure is confirmed, the first WiFi device immediately starts the retransmission mechanism. This mechanism is usually controlled by the communication protocol stack or hardware layer of the device. Before retransmission, the device will re-prepare the non-aggregate frame to be sent, including recalculating the FCS value and appending it to the end of the frame. The process of retransmitting the non-aggregate frame is similar to the initial transmission, but at this time the device will ensure that the format and content of the frame are correct. The device will send the retransmitted non-aggregate frame to the peer device through a wireless channel. If the retransmission still fails within a certain number of times (such as the maximum number of retransmissions specified by the protocol) (for example, the peer device does not respond or the FCS check of the response frame still fails), the first WiFi device may take further error handling measures, such as recording an error log, trying to switch to other communication channels, or reporting to upper-layer applications.

[0062] In summary, the beneficial effects of implementing the embodiments of the present application include:

[0063] By introducing the FCS check counter and the bit 1 counter, the present application can perform statistical analysis on the bit errors of the response frame when the FCS check of the response frame fails. When the number of FCS check failures does not reach the preset threshold N, the traditional data frame retransmission strategy is adopted. Once the number of failures reaches or exceeds N, the response frame is error corrected according to the statistical results of the bit 1 counter instead of directly retransmitting the data frame. This mechanism effectively reduces unnecessary data frame retransmissions caused by short-term or slight interference, and improves communication efficiency.

[0064] By counting and analyzing the bit errors of the response frame, the present application can identify and correct those bits that frequently err due to air interference. The response frame after error correction is considered to be effectively received if the FCS check passes, thereby ensuring the successful transmission of the data frame. This mechanism enhances the anti-interference ability of WiFi communication and improves the reliability of communication.

[0065] Reducing unnecessary data frame retransmissions means reducing the occupancy time of the wireless channel, thereby optimizing the utilization of communication resources. This optimization is particularly important in high-load or low-bandwidth communication environments, as it can improve the communication performance and user experience of the entire WiFi network.

[0066] The error correction mechanism in the technical solution of the present application is based on the statistical results of the bit errors of the response frame, so it has certain adaptability to different types of bit errors and interference situations. This adaptability enables the present invention to maintain good performance in different communication environments and conditions.

[0067] 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.

[0068] See also Figure 4 , which shows a schematic diagram of the structure of a response frame error correction device provided by an exemplary embodiment of the present application. The device can be implemented as all or part of the terminal through software, hardware or a combination of both. The response frame error correction device 4 (referred to as device 4) includes: a transceiver unit 401, a check unit 402, a statistics unit 403, a replacement unit 404, a generation unit 405 and a reset unit 406.

[0069] The transceiver unit 401 is configured to send a non-aggregated frame to a second WiFi device;

[0070] The transceiver unit 401 is further configured to receive a response frame returned by the second service device based on the non-aggregated frame;

[0071] The checking unit 402 is configured to continue to perform FCS check on the response frame if the receiving address of the response frame is the MAC address of the first WiFi device and the frame type is a specified type; the length of the response frame is fixed to M bits, M is an integer greater than 1, and each bit is provided with a bit 1 counter;

[0072] The statistical unit 403 is configured to, if the FCS check of the response frame fails, increase the count value of the FCS check counter by 1 by the first WiFi device, and parse the bit value of each bit in the response frame, and when the bit value is equal to 1, increase the count value of the bit 1 counter associated with the bit by 1; when the bit value is equal to 0, control the count value of the bit 1 counter associated with the bit to remain unchanged;

[0073] The transceiver unit 401 is further configured to, when the count value of the FCS check counter is less than N, resend the non-aggregated frame by the first WiFi device to the second WiFi device;

[0074] The replacing unit 404 is configured to, when the count value in the FCS check counter is equal to N, query, by the first WiFi device, the accumulated count value of each bit 1 counter, and when the accumulated count value is greater than or equal to (N+1) / 2, replace the bit value of the corresponding bit with 1; when the accumulated count value is less than (N+1) / 2, replace the bit value of the corresponding bit with 0, where N is an odd number greater than 1;

[0075] A generating unit 405 is used to complete the bit value replacement operation of each bit to obtain an error-corrected response frame;

[0076] The reset unit 406 is used to determine that the non-aggregate frame is sent successfully if the FCS check of the error-corrected response frame passes, clear the non-aggregate frame, reset the count value of the FCS check counter to 0, and reset the count value of each bit 1 counter to 0.

[0077] In a possible implementation, N=3.

[0078] In a possible implementation manner, the transceiver unit 401 is further configured to:

[0079] When the receiving address of the response frame is not the MAC address of the first WiFi device, and / or the frame type is not a specified type, the response frame is discarded, and the non-aggregated frame is retransmitted.

[0080] In a possible implementation manner, the frame type of the response frame is an ACK frame or a CTS frame.

[0081] In a possible implementation manner, the transceiver unit 401 is further configured to:

[0082] If the FCS check of the error-corrected response frame fails, the first WiFi device resends the non-aggregated frame.

[0083] It should be noted that the device 4 provided in the above embodiment only uses the division of the above functional modules as an example when executing the error correction method of the response frame. 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.

[0084] 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.

[0085] 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.

[0086] 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 error correction method of the response frame described in the above embodiments.

[0087] See also Figure 5 , which is a schematic diagram of the structure of a WiFi device provided in the embodiment of the present application. Figure 5 As shown, the WiFi device 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 .

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

[0089] 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.

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

[0091] 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.

[0092] 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.

[0093] exist Figure 5 In the WiFi device 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 2 The specific process can be referred to Figure 2 As shown, no further description is given here.

[0094] 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.

[0095] 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 response frame error correction method, characterized in that: The method comprises: The first WiFi device sends a non-aggregated frame to the second WiFi device; The first WiFi device receives a response frame returned by the second service device based on the non-aggregated frame; If the receiving address of the response frame is the MAC address of the first WiFi device and the frame type is the specified type, continue to perform FCS check on the response frame; the length of the response frame is fixed to M bits, M is an integer greater than 1, and each bit is set with a bit 1 counter; If the FCS check of the response frame fails, the first WiFi device adds 1 to the count value of the FCS check counter, and parses the bit value of each bit in the response frame. When the bit value is equal to 1, the count value of the bit 1 counter associated with the bit is added by 1; when the bit value is equal to 0, the count value of the bit 1 counter associated with the bit is controlled to remain unchanged; When the count value of the FCS check counter is less than N, the first WiFi device retransmits the non-aggregated frame to the second WiFi device; When the count value in the FCS check counter is equal to N, the first WiFi device queries the accumulated count value of each bit 1 counter, and when the accumulated count value is greater than or equal to (N+1) / 2, the bit value of the corresponding bit is replaced by 1; when the accumulated count value is less than (N+1) / 2, the bit value of the corresponding bit is replaced by 0, where N is an odd number greater than 1; After completing the bit value replacement operation for each bit, a response frame after error correction is obtained; If the FCS check of the error-corrected response frame passes, it is determined that the non-aggregate frame is sent successfully, the non-aggregate frame is cleared, the count value of the FCS check counter is reset to 0, and the count value of each bit 1 counter is reset to 0.

2. The method according to claim 1, characterized in that N=3。 3. The method according to claim 1, characterized in that Also includes: When the receiving address of the response frame is not the MAC address of the first WiFi device, and / or the frame type is not a specified type, the response frame is discarded, and the non-aggregated frame is retransmitted.

4. The method according to claim 1, characterized in that The frame type of the response frame is an ACK frame or a CTS frame.

5. The method according to claim 1, characterized in that: Also includes: If the FCS check of the error-corrected response frame fails, the first WiFi device resends the non-aggregated frame.

6. A response frame error correction device, characterized in that: include: A transceiver unit, configured to send a non-aggregated frame to a second WiFi device; The transceiver unit is further configured to receive a response frame returned by the second service device based on the non-aggregated frame; A checking unit, configured to continue to perform FCS checking on the response frame if the receiving address of the response frame is the MAC address of the first WiFi device and the frame type is a specified type; the length of the response frame is fixed to M bits, M is an integer greater than 1, and a bit 1 counter is set for each bit position; a statistical unit, configured to, if the FCS check of the response frame fails, increase the count value of the FCS check counter by 1 by the first WiFi device, and parse the bit value of each bit in the response frame, and when the bit value is equal to 1, increase the count value of the bit 1 counter associated with the bit by 1; when the bit value is equal to 0, control the count value of the bit 1 counter associated with the bit to remain unchanged; The transceiver unit is further configured to, when the count value of the FCS check counter is less than N, cause the first WiFi device to retransmit the non-aggregated frame to the second WiFi device; a replacing unit, configured to, when the count value in the FCS check counter is equal to N, query, by the first WiFi device, the accumulated count value of each bit 1 counter, and when the accumulated count value is greater than or equal to (N+1) / 2, replace the bit value of the corresponding bit with 1; when the accumulated count value is less than (N+1) / 2, replace the bit value of the corresponding bit with 0, where N is an odd number greater than 1; A generating unit, used for completing a bit value replacement operation on each bit position to obtain an error-corrected response frame; A reset unit is used to determine that the non-aggregate frame is sent successfully if the FCS check of the error-corrected response frame passes, clear the non-aggregate frame, reset the count value of the FCS check counter to 0, and reset the count value of each bit 1 counter to 0.

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 5.

8. A WiFi device, 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 5.

Citation Information

Patent Citations

  • Method and device for controlling aggregation frame length in wireless network

    CN105306167A

  • A fast circulating CRC verification method used for correcting error bits in data frame

    CN1571284A

  • Wireless communication device and wireless communication method

    US20170078052A1