WiFi interference source data processing method and device, electronic equipment and storage medium
The WiFi module scans the communication channel for data and sends data packets in Monitor mode, simulating the interference network environment of real application scenarios, solving the problem of inaccurate anti-interference capability detection in the existing technology, and improving the accuracy of the test.
Patent Information
- Application Number
- CN202310232787.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-09
- Publication Date
- 2024-09-10
AI Technical Summary
The existing simulated interference network environment is not accurate enough in detecting the anti-interference ability of wireless electronic devices, and cannot effectively simulate the interference network environment in real application scenarios.
Use the WiFi module to scan the communication channel for a preset time in Monitor mode, record and save the data packets, and when receiving the interference command, send the data packets to the communication channel to simulate the same interference network environment as the real application scenario.
The accuracy of the anti-interference test is improved, making the data transmission capability detection of wireless electronic equipment in an interfering network environment more accurate.
Smart Images

Figure CN118631359A
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of communication technology, and in particular to a method, device, electronic device, and storage medium for processing WiFi interference source data. Background Art
[0002] With the continuous development of electronic technology, the ways of data transmission between electronic devices are becoming more and more diverse, the types of data that can be transmitted are becoming more and more abundant, and the transmission operation is becoming more and more convenient. The communication basis for realizing such rich and convenient data transmission is a variety of wireless transmission methods. Existing electronic devices can, for example, perform file transfer, picture transfer, screen sharing, etc. through Bluetooth, NFC, WiFi (wireless fidelity), etc.
[0003] While wireless communication is obviously convenient to use, as more and more wireless electronic devices are used, wireless communication interference also increases. The ability of wireless electronic devices to transmit data in an interference network environment is an important indicator for evaluating the performance of wireless electronic devices. In order to evaluate the ability of wireless electronic devices to transmit data in an interference network environment, wireless electronic devices are usually placed in an interference network environment to test their data transmission capabilities before the product is finalized or shipped. The interference network environment in the existing test process is mainly based on radio frequency signals, and broadband interference or narrowband swept frequency interference is simulated. Compared with the energy detection and virtual carrier monitoring in the WiFi communication process, this simulated interference network environment has obvious deviations in the actual signal content, and the detection results in the deviated interference network environment are not accurate enough. Summary of the invention
[0004] The present invention provides a WiFi interference source data processing method, device, electronic device and storage medium to solve the technical problem that the existing simulated interference network environment cannot accurately detect the anti-interference ability of wireless electronic devices.
[0005] In a first aspect, an embodiment of the present invention provides a method for processing WiFi interference source data, including:
[0006] receiving a data scanning instruction, the data scanning instruction being used to instruct a communication channel to perform a data scan for a preset time period;
[0007] In response to the data scanning instruction, the WiFi module is controlled to perform data scanning on the communication channel for a preset time in the Monitor mode, and the data packets obtained by the data scanning within the preset time are saved in the corresponding data set;
[0008] When an interference instruction specifying at least one data set is received, data packets in the specified data set are sent to a corresponding communication channel through a WiFi module.
[0009] In a second aspect, an embodiment of the present invention further provides a WiFi interference source data processing device, including:
[0010] An instruction receiving unit, used for receiving a data scanning instruction, wherein the data scanning instruction is used for instructing to perform a data scan of a communication channel for a preset time period;
[0011] The instruction response unit is used to respond to the data scanning instruction, control the WiFi module to perform data scanning on the communication channel for a preset time in the Monitor mode, and save the data packets obtained by the data scanning within the preset time to the corresponding data set;
[0012] The data sending unit is used to send the data packets in the specified data set to the corresponding communication channel through the WiFi module when receiving the interference instruction specifying at least one data set.
[0013] In a third aspect, an embodiment of the present invention further provides an electronic device, including:
[0014] one or more processors;
[0015] a memory for storing one or more computer programs;
[0016] When one or more computer programs are executed by one or more processors, the electronic device implements the WiFi interference source data processing method of the first aspect.
[0017] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for processing WiFi interference source data according to the first aspect is implemented.
[0018] In the above-mentioned WiFi interference source data processing method, device, electronic device and storage medium, a data scanning instruction is received, and the data scanning instruction is used to instruct to perform data scanning of a communication channel for a preset time; in response to the data scanning instruction, the WiFi module is controlled to perform data scanning of the communication channel for a preset time in Monitor mode, and the data packets obtained by the data scanning within the preset time are saved to the corresponding data set; when an interference instruction specifying at least one data set is received, the data packets in the specified data set are sent to the corresponding communication channel through the WiFi module. The channel is scanned in Monitor mode by the WiFi module, and the scanned data packets are recorded. When the wireless electronic device is subjected to an anti-interference test, the data packets are sent through the WiFi module, thereby simulating an interference network environment that is the same as the actual application scenario for the wireless electronic device to be tested, thereby improving the accuracy of the anti-interference test. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1A method flow chart of a method for processing WiFi interference source data provided by an embodiment of the present invention.
[0020] Figure 2 A schematic diagram of the structure of a WiFi interference source data processing device provided by an embodiment of the present invention.
[0021] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0022] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only the parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0023] It should be noted that the present application specification does not enumerate all optional implementation modes. After reading the present application specification, those skilled in the art should be able to understand that as long as the technical features do not contradict each other, any combination of the technical features can constitute an optional implementation mode.
[0024] With the development of technology, the types of wireless electronic devices (hereinafter referred to as electronic devices) are constantly enriched and widely involved in various fields of people's daily life, such as mobile phones suitable for communication and routine information processing when the body is moving, tablet computers suitable for learning and entertainment, laptops suitable for comprehensive information processing when the body is stationary, interactive tablets suitable for information display when multiple people communicate, routers used to support various electronic devices to access the network, etc. Each user may carry multiple electronic devices at the same time. Electronic devices communicate through different channels during use. The ideal communication state is that each electronic device uses a dedicated channel for communication, but channel resources are limited and cannot satisfy any number of electronic devices to have dedicated channels. For example, in public places, there are a large number of electronic devices, and there may be channel sharing. Electronic devices become interference sources to each other. Whether the channel itself is interfered with or the electronic devices interfere with each other, it will affect the stability of data transmission of electronic devices, increase the delay of data transmission, and even cause disconnection in severe cases. In order to ensure that electronic equipment can be used normally in a conventional interference network environment after being delivered to users, it is necessary to actively place the electronic equipment in an interference network environment to test the data transmission capability during the design or production stage. The existing methods of broadband interference or narrowband frequency sweep interference based on radio frequency signals, since the WiFi communication process is not a simple excitation to emit radio waves, but a communication process of sending and receiving substantial content based on a communication protocol, there is also an interaction and negotiation process beyond the sending and receiving of substantial content, and there is energy detection and virtual carrier monitoring in the communication process. The broadband or narrowband frequency sweep interference based solely on radio frequency signals has no interaction and negotiation process with the electronic equipment. The radio frequency signal does not actually cause interference to the electronic equipment close to the actual scenario during the test, and the result of the anti-interference test is not accurate enough.
[0025] In response to the above technical problems, this solution proposes a WiFi interference source data processing method, which can simulate the interference network environment that may exist during normal use for the anti-interference test of electronic equipment, thereby obtaining accurate anti-interference test results.
[0026] The following is a detailed description of the various embodiments of the present invention.
[0027] Figure 1 This is a method flow chart of a method for processing WiFi interference source data provided by an embodiment of the present invention. The WiFi interference source data processing method is implemented by a test device, and the test device can be any electronic device with wireless communication (WiFI communication) function. Please refer to Figure 1 The WiFi interference source data processing method includes steps S110 to S130:
[0028] Step S110: receiving a data scanning instruction, where the data scanning instruction is used to instruct to perform a data scan of a communication channel for a preset time period.
[0029] The data processing method in this scheme is mainly used to form an interference network environment that can be used to perform anti-interference tests on the object under test. In the initial stage of setting up the interference network environment, the user can actively operate the test equipment to trigger data scanning. For the test equipment, the user's active operation will receive a data scanning instruction accordingly. When the user actively operates, the duration of the data scan can be configured, and the duration is recorded as a preset duration in the data scanning instruction.
[0030] Before actively operating, the user can actively adjust the wireless network environment status of the test site. For example, the test site originally has only one possible interference source. Although this is a possible real wireless network state, the object under test cannot be tested to its anti-interference limit or near-limit ability in this scenario. At this time, the user can add multiple interference sources (such as multiple electronic devices). For another example, the test site originally has a large number of interference sources. Although this is also a possible real wireless network state, no matter which object is tested, the anti-interference ability reflected in the detection under this state is relatively close, and it cannot reflect the normal anti-interference ability. At this time, a certain number of interference sources can be cancelled.
[0031] Step S120: In response to the data scanning instruction, the WiFi module is controlled to perform data scanning on the communication channel for a preset time period in the Monitor mode, and the data packets obtained by the data scanning within the preset time period are saved in the corresponding data set.
[0032] The wireless communication in the electronic device mentioned in this scheme is mainly for wireless communication based on WiFi module. The WiFi module may support one or more working modes according to the actual product type, and common working modes include Monitor mode, Managed mode, Master mode, etc. In Monitor mode, data can be sent in the form of broadcast, and other electronic devices within the communication range can receive the data; or data can be stopped and the data in the environment can be monitored to obtain the status parameters of each channel. Not all WiFi modules support Monitor mode, which is related to the type and driver of the WiFi module. The electronic device used as a test device for this scheme is provided with at least one WiFi module that supports Monitor mode. In Managed mode, the electronic device can connect to the wireless hotspot provided by other routers (or other electronic devices with router functions, such as mobile phones in personal hotspot mode) through the WiFi module. In Master mode, the electronic device can provide a wireless hotspot through the WiFi module, and other electronic devices in Managed mode can access the electronic device, thereby realizing communication with the electronic device or accessing the wireless network through the electronic device. The WiFi module in the router and the WiFi module in the mobile phone in personal hotspot mode are both in Master mode. The electronic device for this scheme is provided with at least one WiFi module that supports Monitor mode. It can be understood that if an electronic device is only provided with one WiFi module and the WiFi module supports the Monitor mode, then the electronic device can implement this solution.
[0033] After receiving the data scanning instruction, the electronic device controls the WiFi module to perform data scanning on the communication channel for a preset duration in the Monitor mode. The electronic device can record channel information through a preset channel list. The channel list contains channels in the commonly used 2.4GHz frequency band and 5GHz frequency band. At the same time, different channel lists are preset according to the 20MHz / 40MHz / 80MHz bandwidth. The electronic device scans the channels recorded in the channel list based on the channel list and saves the scanned data packets to the data set. When saving, the corresponding channel information can be set for each data packet to represent the source of the data packet, or the data packets from the same channel can be saved to the same subset in the data set. Each data set records the relevant information of the data packet, such as the specific time period corresponding to the preset duration, the scene attributes entered when saving before or after the scan is completed, etc., so that the user can select the data set adapted to the specific time period and scene attributes according to the test needs later.
[0034] The number of WiFi modules in the electronic device used as the test equipment can be one, and one WiFi module performs data scanning on all communication channels in time-sharing, so as to scan the data packets at the lowest cost. The number of WiFi modules can also be multiple, and each WiFi module corresponds to at least one communication channel. The communication channels corresponding to each WiFi module are different, and at most each communication channel can correspond to one WiFi module respectively. By scanning multiple communication channels through multiple WiFi modules, the integrity of the data packet scanning can be effectively improved. When the data scanned by multiple WiFi modules are saved, because some data packets between the communication channels may be cross-scanned, that is, the data packet of a communication channel may be scanned by the WiFi module corresponding to the communication channel, and may also be scanned by the WiFi module corresponding to another communication channel, it is necessary to perform deduplication processing at this time, that is, the data packet obtained by data scanning within the preset time length is saved to the corresponding data set, including deduplication of the data packets obtained by data scanning by different WiFi modules within the preset time length, and the deduplication data packet is saved to the data set corresponding to the preset time length. Specifically, when deduplication is performed, only the data packet scanned by the WiFi module corresponding to the communication channel where the data packet is located is retained, and the same data packet scanned by other WiFi modules is deleted.
[0035] In the specific saving process, no matter the data packet is obtained by scanning through one WiFi module or multiple WiFi modules, the time when the data packet is obtained can be recorded, that is, the data packet obtained by data scanning within a preset time period is saved to the corresponding data set, including: adding a timestamp to the data packet obtained by data packet scanning within the preset time period according to the time of obtaining, and associating the data packet with the corresponding timestamp and saving it to the corresponding data set. The timestamp can be based on the system timeline as a reference, that is, recording the year, month, day, hour, minute, and second, or it can be based on the relative timeline as a reference, that is, recording from 0 within a preset time period. Both methods can reflect the time sequence of obtaining the data packets.
[0036] Step S130: When receiving an interference instruction specifying at least one data set, sending data packets in the specified data set to a corresponding communication channel through the WiFi module.
[0037] As an electronic device for testing equipment, its WiFi module can not only scan and obtain data packets, but also send data packets. For the testing equipment, the main function is to make the environment have wireless signals carrying the substantive content of the data packets. When the object under test needs to be tested for anti-interference, the testing equipment can be operated to generate interference instructions, which are used to instruct the testing equipment to send data packets to form an interference network environment. When sending an interference instruction specifying at least one data set, the WiFi module sends the data packet in the form of a broadcast. When sending, the data packet is sent to the corresponding communication channel when the data packet is received through the WiFi module. The testing equipment does not pay attention to the reception result of the data packet when sending the data packet. It only needs to send the data packet to the communication channel. The object under test and the specified communication device perform data transmission. The anti-interference test tests the network parameters when the object under test performs data transmission with the specified communication device in the interference network environment, such as packet loss rate, etc. The specific test is not an improvement point of this solution, and will not be described in detail here.
[0038] In the actual testing process, there can be specific ways to construct an interference network environment, such as playback testing, random testing, and specified testing. Playback testing refers to sending the scanned data packets in the order in which they were received to reproduce the interference network environment at the time of reception; random testing is to randomly extract data packets from a data set and send them; specified testing is to specify several data packets, such as a certain type of data packet or data packets in several data sets to send to form an interference network environment.
[0039] Corresponding to the playback test, when receiving an interference instruction specifying at least one data set, the data packets in the specified data set are sent to the corresponding communication channel through the WiFi module, including: when receiving an interference instruction specifying at least one data set, confirming the sending order of the data packets in the specified data set according to the timestamp; sending the data packets in the specified data set to the corresponding communication channel according to the corresponding sending order through the WiFi module. Through this test method, a real network environment can be presented and test results that fit the real environment can be obtained.
[0040] Corresponding to random testing, the WiFi interference source data processing method may also include: when receiving an interference instruction that specifies the interference duration and target channel, randomly extracting data packets from the data set; sending the extracted data packets to the target channel until the interference duration is reached. For random testing, the sent data packets and the sending order can be synchronously recorded during the test process, so that when the test results of the object under test are poor, the previous anti-interference test is reviewed based on the records of the previous test, and the results of the anti-interference test are verified. Only reviewing is also a kind of playback test. Through random testing, unpredictable network environments can be tested, improving the comprehensiveness of anti-interference testing.
[0041] Corresponding to the specified test, the WiFi interference source data processing method also includes: when receiving an interference instruction specifying the interference duration, target channel and target data packet information, reading the corresponding data packet from the data set according to the target data packet information; sending the read data packet to the specified target channel within the specified interference duration. Through the specified test, accurate user-defined anti-interference test can be achieved, and the test is more targeted.
[0042] The data packet is finally sent by the WiFi module. When the software implementing this solution sends the data packet, it will add the relevant configuration information to the data packet, such as the type of data packet, rate, signal, WiFi module (Monitor mode), etc., which is equivalent to adding several frame segments to record the relevant configuration information when the actual data to be sent is the main body of the data frame structure. The software implementing this solution sends the data packet with the relevant configuration information added to the WiFi module. The WiFi module parses the data packet and other relevant configuration information from it, and sends the main body of the data frame structure according to the relevant configuration information, such as sending at a specified rate in Monitor mode. The data packet type is mainly divided into data frames, control frames, management frames, etc. based on the WiFi (IEEE802.11) standard. Data frames include Data, Data+CF-Ack, CF-ACK, etc., control frames include RTS, CTS, ACK, etc., and management frames include Beacon, Authentication, Deauthentication, etc.
[0043] In summary, the electronic device used for anti-interference testing receives a data scanning instruction, which is used to instruct a data scan of a communication channel for a preset time; in response to the data scanning instruction, the WiFi module is controlled to perform a data scan of the communication channel for a preset time in the Monitor mode, and the data packets obtained by the data scan within the preset time are saved to the corresponding data set; when receiving an interference instruction specifying at least one data set, the data packets in the specified data set are sent to the corresponding communication channel through the WiFi module. The channel is scanned in the Monitor mode through the WiFi module, and the scanned data packets are recorded. When the wireless electronic device is subjected to an anti-interference test, the data packets are sent through the WiFi module, thereby simulating an interference network environment that is the same as the actual application scenario for the wireless electronic device to be tested, thereby improving the accuracy of the anti-interference test.
[0044] Figure 2 This is a schematic diagram of the structure of a WiFi interference source data processing device provided by an embodiment of the present invention. Figure 2 The WiFi interference source data processing device includes: an instruction receiving unit 210, an instruction responding unit 220 and a data sending unit 230.
[0045] The instruction receiving unit 210 is used to receive a data scanning instruction, which is used to instruct to perform a data scan on the communication channel for a preset time; the instruction response unit 220 is used to control the WiFi module to perform a data scan on the communication channel for a preset time in the Monitor mode in response to the data scanning instruction, and save the data packets obtained through the data scan within the preset time to the corresponding data set; the data sending unit 230 is used to send the data packets in the specified data set to the corresponding communication channel through the WiFi module when receiving an interference instruction specifying at least one data set.
[0046] On the basis of the above embodiment, the data packets obtained by data scanning within a preset time period are saved in the corresponding data set, including:
[0047] Adding a timestamp to the data packets obtained by data packet scanning within a preset time period according to the time of obtaining the data packets, and associating the data packets with the corresponding timestamps and saving them in the corresponding data set;
[0048] Accordingly, when receiving an interference instruction specifying at least one data set, sending a data packet in the specified data set to a corresponding communication channel through a WiFi module includes:
[0049] Upon receiving an interference instruction specifying at least one data set, confirming the sending order of data packets in the specified data set according to the timestamp;
[0050] The data packets in the specified data set are sent to the corresponding communication channel in the corresponding sending order through the WiFi module.
[0051] Based on the above embodiment, the WiFi interference source data processing method further includes:
[0052] When receiving a jamming instruction specifying the jamming duration and target channel, a data packet is randomly extracted from the data set;
[0053] The extracted data packets are sent to the target channel until the interference duration is reached.
[0054] Based on the above embodiment, the WiFi interference source data processing method further includes:
[0055] When receiving an interference instruction specifying the interference duration, target channel and target data packet information, reading a corresponding data packet from the data set according to the target data packet information;
[0056] Send the read data packets to the specified target channel within the specified interference duration.
[0057] Based on the above embodiment, the WiFi module sends the data packet in the form of broadcast.
[0058] On the basis of the above embodiment, there are multiple WiFi modules, each WiFi module corresponds to at least one communication channel, and each WiFi module corresponds to a different communication channel.
[0059] On the basis of the above embodiment, the data packets obtained by data scanning within a preset time period are saved in the corresponding data set, including:
[0060] The data packets obtained by data scanning of different WiFi modules within a preset time period are deduplicated, and the deduplicated data packets are saved in a data set corresponding to the preset time period.
[0061] The WiFi interference source data processing device provided in an embodiment of the present invention is included in an electronic device and can be used to execute any WiFi interference source data processing method provided in the above embodiments, and has corresponding functions and beneficial effects.
[0062] It is worth noting that in the embodiment of the above-mentioned WiFi interference source data processing device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0063] Figure 3 FIG. 1 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 3 As shown, the electronic device includes a processor 310 and a memory 320, and may also include an input device 330, an output device 340 and a communication device 350; the number of the processor 310 in the electronic device may be one or more, Figure 3 A processor 310 is taken as an example; the processor 310, the memory 320, the input device 330, the output device 340 and the communication device 350 in the electronic device can be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.
[0064] The memory 320, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the WiFi interference source data processing method in the embodiment of the present invention. The processor 310 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 320, that is, realizing the above-mentioned WiFi interference source data processing method.
[0065] The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 320 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 320 may further include a memory remotely arranged relative to the processor 310, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0066] The input device 330 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device. The output device 340 may include a display device such as a display screen.
[0067] An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it is used to perform relevant operations in the WiFi interference source data processing method provided in any embodiment of the present application, and has corresponding functions and beneficial effects.
[0068] Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products.
[0069] Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the functions in the process. Figure 1 A process or multiple processes and / or boxes Figure 1These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0070] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory. The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0071] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0072] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0073] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for processing WiFi interference source data, characterized in that: include: receiving a data scanning instruction, wherein the data scanning instruction is used to instruct to perform a data scan of a communication channel for a preset time period; In response to the data scanning instruction, control the WiFi module to perform data scanning on the communication channel for the preset time period in the Monitor mode, and save the data packets obtained by the data scanning within the preset time period into the corresponding data set; When an interference instruction specifying at least one of the data sets is received, the data packets in the specified data set are sent to the corresponding communication channel through the WiFi module.
2. The WiFi interference source data processing method according to claim 1, characterized in that: The step of saving the data packets obtained by data scanning within the preset time period to the corresponding data set includes: Adding a timestamp to the data packets obtained by scanning the data packets within the preset time period according to the obtained time, and associating the data packets with the corresponding timestamps and saving them in the corresponding data set; Correspondingly, when receiving the interference instruction specifying at least one of the data sets, sending the data packets in the specified data set to the corresponding communication channel through the WiFi module includes: Upon receiving an interference instruction specifying at least one of the data sets, confirming the sending order of the data packets in the specified data set according to the timestamp; The WiFi module sends the data packets in the specified data set to the corresponding communication channel in the corresponding sending order.
3. The WiFi interference source data processing method according to claim 1, characterized in that: Also includes: When receiving an interference instruction specifying an interference duration and a target channel, randomly extracting a data packet from the data set; The extracted data packets are sent to the target channel until the interference duration is reached.
4. The WiFi interference source data processing method according to claim 1, characterized in that: Also includes: When receiving an interference instruction specifying an interference duration, a target channel and target data packet information, reading a corresponding data packet from the data set according to the target data packet information; Send the read data packets to the specified target channel within the specified interference duration.
5. The WiFi interference source data processing method according to any one of claims 1 to 4, characterized in that: The WiFi module sends data packets in the form of broadcast.
6. The WiFi interference source data processing method according to claim 1, characterized in that: There are multiple WiFi modules, each of which corresponds to at least one communication channel, and each WiFi module corresponds to a different communication channel.
7. The WiFi interference source data processing method according to claim 6, characterized in that: The step of saving the data packets obtained by data scanning within the preset time period to the corresponding data set includes: The data packets obtained by data scanning of different WiFi modules within a preset time period are deduplicated, and the deduplicated data packets are saved in a data set corresponding to the preset time period.
8. A WiFi interference source data processing device, characterized in that: include: An instruction receiving unit, used for receiving a data scanning instruction, wherein the data scanning instruction is used for instructing to perform a data scan of a communication channel for a preset time period; An instruction response unit, configured to respond to the data scanning instruction, control the WiFi module to perform data scanning on the communication channel for the preset time period in the Monitor mode, and save the data packets obtained by the data scanning within the preset time period into the corresponding data set; The data sending unit is used to send the data packets in the specified data set to the corresponding communication channel through the WiFi module when receiving the interference instruction specifying at least one of the data sets.
9. An electronic device, characterized in that: include: one or more processors; a memory for storing one or more computer programs; When the one or more computer programs are executed by the one or more processors, the electronic device implements the WiFi interference source data processing method as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the WiFi interference source data processing method as described in any one of claims 1 to 7 is implemented.
