Wireless data packet monitoring method and computer equipment

By automatically switching the monitoring equipment to monitoring mode, it independently captures packets of WiFi device channel and bandwidth information, and selects the storage method according to the network status. This solves the problems of poor flexibility and low data acquisition efficiency in existing technologies, and realizes efficient wireless network monitoring and diagnosis.

CN121586012APending Publication Date: 2026-02-27GUANGZHOU V-SOLUTION TELECOMM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511718171.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2025-11-20
Filing Date
2025-11-21
Publication Date
2026-02-27

AI Technical Summary

Technical Problem

Existing methods for monitoring the operation of WiFi devices rely on wired connections and external tools, which are inflexible and lack real-time data collection and unified storage mechanisms, resulting in data loss and high maintenance costs.

Method used

The monitoring equipment receives a command to enter monitoring mode, automatically switches to monitoring mode, independently captures packet information of the channel and bandwidth of surrounding WiFi devices, and selects to periodically upload to the server or local storage according to the network status. It also supports external storage media such as USB flash drives or Flash memory.

Benefits of technology

It improves the flexibility of packet capture and the efficiency of air interface data acquisition, ensures the flexibility of data storage under different network conditions, and improves the response speed and accuracy of wireless network diagnosis and optimization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121586012A_ABST
    Figure CN121586012A_ABST
Patent Text Reader

Abstract

The invention provides a wireless data packet monitoring method and computer equipment, relates to the technical field of data monitoring, and solves the problems of poor packet capture flexibility, low air interface data acquisition efficiency and inflexible data storage mode in the existing data monitoring technology. The method comprises the following steps: a monitoring device receives an instruction of entering a monitoring mode, switches the monitoring device to the monitoring mode, and performs packet capture processing on channel and bandwidth information of WiFi devices around the monitoring device by using the monitoring device to obtain packet capture data; judging whether the monitoring equipment is networked or not, and if the monitoring equipment is networked, periodically storing or uploading the packet capture data to a server; and if not, regularly storing or uploading the packet capture data to the local. According to the invention, the automation and intelligentization of the wireless data monitoring process are realized, the dependence on external auxiliary equipment is reduced, the air interface data acquisition efficiency is improved, and the data storage flexibility is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data monitoring, in particular to a wireless data packet monitoring method and a computer device. BACKGROUND

[0002] With the rapid development of wireless communication technology and intelligent terminals, WiFi (Wireless Fidelity) network has become one of the most important wireless access methods in people's daily life and industrial applications. In order to ensure the stability of wireless network and user experience, the operation state monitoring, channel interference analysis and fault diagnosis of WiFi device are particularly important. Especially in complex wireless environment, channel overlap between devices, bandwidth conflict and signal interference frequently occur. If the air interface communication state cannot be monitored and analyzed in time, it will lead to network performance degradation, unstable connection and even disconnection.

[0003] In the prior art, the operation monitoring of WiFi device mainly relies on the upper computer packet capture tool or external test instrument. Although this kind of method can obtain air interface data, it has the following problems: on the one hand, the traditional packet capture method usually relies on wired connection between external computer and WiFi device, and captures data packets through special software. The device deployment is complex, the flexibility is poor, and it is not suitable for on-site rapid analysis or remote diagnosis. On the other hand, although some devices have remote log or diagnosis function, they cannot directly perform air interface packet capture operation on the terminal side, and lack the real-time acquisition ability of surrounding wireless channel, bandwidth and other parameters, resulting in low air interface data acquisition efficiency. In addition, the existing WiFi device lacks a unified local storage and uploading mechanism, and the packet capture data mainly relies on manual export, which not only increases the maintenance cost, but also easily causes data loss due to insufficient storage space. SUMMARY

[0004] The present application provides a wireless data packet monitoring method and a computer device, which aims to solve the problems of poor packet capture flexibility, low air interface data acquisition efficiency and inflexible data storage mode of the existing data monitoring technology.

[0005] In order to achieve the above technical effects, the technical scheme of the present application is as follows: A wireless data packet monitoring method, comprising: S1. The monitoring device receives an instruction to enter the monitoring mode, switches the monitoring device to the monitoring mode, and uses the monitoring device to capture the channel and bandwidth information of the WiFi device around the monitoring device, to obtain the captured data; S2. Determine whether the monitoring device is connected to the network. If yes, store or upload the captured data to the server regularly; if not, store or upload the captured data to the local regularly.

[0006] Preferably, the instruction of entering the monitoring mode is triggered by a key input or a remote control signal of the monitoring device.

[0007] Preferably, the channel and bandwidth information of the WiFi device around the monitoring device is captured by the monitoring device, including: S11. The monitoring device broadcasts an air interface packet with a private protocol to the WiFi device around the monitoring device. S12. The monitoring device receives a return packet sent by the WiFi device according to the air interface packet, and the return packet includes the channel and bandwidth information of the WiFi device.

[0008] S13. The monitoring device captures the WiFi device according to the channel and bandwidth information to obtain the capture data.

[0009] Preferably, the server includes a local server and a cloud server.

[0010] Preferably, the capture data is stored or uploaded to the local regularly, including: If the monitoring device is externally connected to a storage medium, the capture data is stored or uploaded to the external storage medium regularly; if not, the capture data is stored or uploaded to a local storage unit regularly.

[0011] Preferably, the external storage medium is a USB flash disk.

[0012] Preferably, the local storage unit is a flash memory.

[0013] Preferably, the method further includes: when the monitoring device receives an instruction of exiting the monitoring mode, the monitoring device returns to a normal WiFi working mode.

[0014] Preferably, the instruction of exiting the monitoring mode is triggered by a long press of a key, a remote command or a preset time.

[0015] The application also provides a computer device, including: a processor, a memory, a communication interface and a communication bus, the processor, the memory and the communication interface complete communication with each other through the communication bus. The memory is used to store at least one executable instruction, and the executable instruction makes the processor execute the operation of the wireless data packet monitoring method.

[0016] Compared with the prior art, the technical scheme of the application has the beneficial effects that: The application provides a wireless data packet monitoring method and a computer device. First, a monitoring device receives an instruction to enter a monitoring mode and automatically switches to the monitoring mode, so that the monitoring device can independently complete the packet capturing operation on the channel and bandwidth information of the surrounding WiFi device, without the need of an external special packet capturing terminal, thereby improving the flexibility of packet capturing, reducing manual intervention, and improving the air interface data collection efficiency. Then, the networking state of the monitoring device is judged to realize the flexible selection of regularly uploading the captured data to a server or locally storing the captured data, so that the data storage mode can be adaptively adjusted according to the network environment, thereby ensuring the storage flexibility of the captured data under different network conditions, and significantly improving the response speed and accuracy of wireless network anomaly diagnosis and optimization. BRIEF DESCRIPTION OF DRAWINGS

[0017] Figure 1 A flowchart of the wireless data packet monitoring method in the embodiment of the application is shown in the figure. Figure 2 A flowchart of the wireless data packet monitoring method in the embodiment of the application is shown in the figure. Figure 3 An internal structure diagram of the computer device in the embodiment of the application is shown in the figure.

[0018] 31. processor; 32. memory; 33. communication interface; 34. communication bus; 35. executable instructions. DETAILED DESCRIPTION

[0019] The accompanying drawings are only used for illustrative description and cannot be understood as a limitation to the patent; In order to better illustrate the embodiment, some parts of the drawings may be omitted, enlarged or reduced, and the description of the directions such as "up", "down", etc. is not a limitation to the patent; For those skilled in the art, it is understandable that some well-known descriptions in the drawings may be omitted; The position relationship described in the drawings is only used for illustrative description and cannot be understood as a limitation to the patent; In order to make the purpose, technical scheme and advantages of the present application clearer, the present application is further described in detail below in combination with the drawings and embodiments.

[0020] Embodiment 1 As shown in the figure, the embodiment provides a wireless data packet monitoring method, which comprises: Figure 1 S1. The monitoring device receives an instruction to enter a monitoring mode and switches the monitoring device to the monitoring mode, so as to capture the channel and bandwidth information of the surrounding WiFi device by using the monitoring device, and obtain the captured data. S1. The monitoring device receives an instruction to enter a monitoring mode and switches the monitoring device to the monitoring mode, so as to capture the channel and bandwidth information of the surrounding WiFi device by using the monitoring device, and obtain the captured data. In S1, the monitoring device performs packet capturing on the channel and bandwidth information of the WiFi devices around the monitoring device, including: S11. The monitoring device broadcasts an air interface packet with a private protocol to the WiFi devices around the monitoring device. S12. The monitoring device receives a return packet sent by the WiFi devices according to the air interface packet, and the return packet includes the channel and bandwidth information of the WiFi devices.

[0021] S13. The monitoring device performs packet capturing on the WiFi devices according to the channel and bandwidth information to obtain the packet capturing data.

[0022] Specifically, in S11, the air interface packet is a probe request frame with a device identification field and a time identification field. The device identification is used to distinguish different monitoring devices, and the time identification is convenient for subsequent data synchronization and comparison. The broadcast frequency can be set according to system configuration, generally once every 2 seconds for each channel to ensure coverage of all available channels. In S12, after the monitoring device analyzes the return packet, a channel information table is generated, which includes the MAC address, channel number, bandwidth, RSSI signal strength and other parameters of the WiFi devices. The table is dynamically updated, and the corresponding record is refreshed when a new device is found or the parameters of an existing device change. In S13, the monitoring device uses a priority packet capturing strategy according to the channel information table: it preferentially captures packets from WiFi devices with high signal strength or frequent communication to improve data efficiency. Each packet capturing can last for a preset period of time, and the captured data is saved in pcap format, with a timestamp and device ID in the file name to facilitate later analysis and tracing.

[0023] S2. Determine whether the monitoring device is connected to a network. If yes, store or upload the packet capturing data to a server regularly; if no, store or upload the packet capturing data to a local device regularly.

[0024] In S2, the monitoring device regularly saves the packet capturing file: If the monitoring device is connected to a network, it regularly uploads the packet capturing file to the cloud for technical personnel to download, view and analyze.

[0025] If the monitoring device is not connected to a network but has a USB port connected to a USB flash drive, it regularly saves the packet capturing file to the USB flash drive, and later uploads the packet capturing file to the cloud or directly sends it to technical personnel.

[0026] If the monitoring device is neither connected to a network nor connected to a USB flash drive, it regularly saves the packet capturing file to the flash memory. However, the flash memory has limited space, and exceeding a certain storage capacity will delete the previous packet capturing file, only keeping the latest file. Later, the packet capturing file still needs to be exported, which has a large limitation.

[0027] Specifically, the monitoring device records a packet capture log file in addition to uploading or storing according to the network connection state, for identifying packet capture time, file path, upload state and possible error information.

[0028] After the packet capture is completed, the WPS button of the monitoring device is pressed for 5 seconds to exit the WiFi monitor mode and become a normal WiFi device.

[0029] The embodiment proposes a wireless data packet monitoring method. First, the monitoring device receives an instruction to enter a monitoring mode and automatically switches to the monitoring mode, so that the monitoring device itself can independently complete the packet capture operation on the channel and bandwidth information of the surrounding WiFi devices, without the need for an external dedicated packet capture terminal, thereby improving the flexibility of packet capture, reducing manual intervention and improving the air interface data collection efficiency. Then, the network connection state of the monitoring device is judged to realize the flexible selection of periodically uploading the captured data to a server or locally storing the captured data, so that the data storage mode can be adaptively adjusted according to the network environment, thereby ensuring the flexibility of storing the captured data under different network conditions and significantly improving the response speed and accuracy of wireless network anomaly diagnosis and optimization.

[0030] Embodiment 2 The embodiment further describes the wireless data packet monitoring method by taking the networking process of a WiFi device wireless mesh as an example. At present, most WiFi devices on the market are used in combination of two or three, and after meshing, one device is negotiated as the master routing device and the others are the slave routing devices. However, wireless mesh networking may occur abnormally, and the networking may not be successful, and the master and slave devices may not be negotiated. At this time, it is necessary to capture the air interface packet for analysis. In this case, it is particularly troublesome for ordinary users to capture the air interface packet of a specific channel and bandwidth. First, the user does not understand the deep meaning, and second, the user does not have a packet capture tool.

[0031] In this embodiment, first monitor the device power on, after starting long press WPS button 10 seconds, enter WiFi monitor mode, WPS light long bright, for red light, and broadcast with private protocol air interface package, get the channel and bandwidth information of the nearby WiFi device work. WiFi device received with private protocol air interface package, will respond to the monitoring device in time, will send their own channel, bandwidth information to the monitoring device. Monitoring device received the WiFi device packet, will be based on the channel and bandwidth to capture, capture WPS light with 0.5Hz frequency flashing, that is, 2 seconds flash once, for green, and with time to speed up, capture 10 minutes after WPS long bright green light. If the monitoring device networking, will regularly upload the capture file to the cloud. If the monitoring device is not connected but the USB port connected with U disk, will regularly save the capture file to the U disk. The user sees WPS long bright green light, that is, the capture time as long as 10 minutes, can stop capture, long press WPS button 5 seconds, exit WiFi monitor mode. Monitoring device before exiting the monitoring mode, will automatically save the current capture task state, to ensure that the data is not lost. Exit after the wireless module back to normal work mode, that is, AP or STA mode, the monitoring device has normal networking and communication function again.

[0032] In this embodiment, the monitoring device enters WiFi monitoring mode by long-pressing the WPS button, fully utilizing existing hardware resources without requiring a dedicated packet capture button or software configuration interface, simplifying the user operation process and lowering the barrier to entry. Through the color and flashing frequency changes of the WPS indicator light, users can intuitively understand the device's operating status, including different stages such as entering monitoring mode, packet capture in progress, and packet capture completion, enhancing the visualization and controllability of the operation and improving the user experience. After entering WiFi monitoring mode, the monitoring device actively broadcasts air interface packets with a proprietary protocol, enabling automatic discovery and information exchange between the monitoring device and surrounding WiFi devices. It can quickly obtain key parameter information such as channel and bandwidth of surrounding WiFi devices without manual configuration. Upon receiving the proprietary protocol air interface packet, the surrounding WiFi devices automatically respond and provide their own parameters, allowing the monitoring device to dynamically select the channel and bandwidth for packet capture based on the actual network environment, thereby ensuring the targeting and effectiveness of packet capture and improving the accuracy and efficiency of air interface data acquisition. Meanwhile, the monitoring equipment provides intuitive progress indicators during packet capture by varying the flashing frequency of the WPS indicator light over time. Upon completion of the capture, a solid green light indicates the task is finished, further optimizing the user experience and task visibility. The combination of physical interaction signals (buttons and indicator lights) with wireless signaling interaction (proprietary protocol air interface packets and return packets) automates, visualizes, and intelligently monitors wireless data, significantly improving air interface data acquisition efficiency, reducing the complexity of packet capture operations for ordinary users, and enhancing the system's practical value in real-world wireless network diagnostics and optimization scenarios.

[0033] Example 3 This embodiment also proposes a computer device, such as... Figure 3 As shown, it includes: processor 31, memory 32, communication interface 33 and communication bus 34, wherein the processor 31, the memory 32 and the communication interface 33 communicate with each other through the communication bus 34; The processor 31, the memory 32 and the communication interface 33 complete the communication with each other through the communication bus 34. The communication interface 33 is used for the communication with network elements such as clients or other servers. The processor 31 is used for executing the executable instructions 35, and specifically can execute the operations of the fusion reactor base region turbulent flow behavior prediction method. Specifically, the executable instructions 35 can include program codes. The processor 31 can be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the computer device can be processors of the same type, such as one or more CPUs; or can be processors of different types, such as one or more CPUs and one or more ASICs.

[0034] The memory 32 is used for storing the executable instructions 35. The memory 32 can include a high-speed RAM memory, and can also include a non-volatile memory, for example, at least one disk memory.

[0035] The executable instructions 35 can specifically be invoked by the processor 31 to enable the computer device to perform the following operations: S1. The monitoring device receives an instruction to enter a monitoring mode, switches the monitoring device to the monitoring mode, and uses the monitoring device to perform packet capturing on the channel and bandwidth information of the WiFi devices around the monitoring device, to obtain captured packet data. S2. It is judged whether the monitoring device is connected to a network. If yes, the captured packet data is stored or uploaded to a server regularly. If no, the captured packet data is stored or uploaded to a local device regularly.

[0036] The computer device for wireless data packet monitoring provided by the present application first receives an instruction to enter a monitoring mode through a monitoring device and automatically switches to the monitoring mode, so that the monitoring device itself can independently complete the packet capturing operation on the channel and bandwidth information of the surrounding WiFi devices, without the need of an external dedicated packet capturing terminal, thereby improving the flexibility of packet capturing, reducing manual intervention, and improving the air interface data collection efficiency. Then, by judging the networking state of the monitoring device, the flexible selection of regularly uploading the captured packet data to a server or storing the captured packet data locally is realized, the data storage mode can be adaptively adjusted according to the network environment, thereby ensuring the storage flexibility of the captured packet data under different network conditions, and significantly improving the response speed and accuracy of wireless network anomaly diagnosis and optimization.

[0037] Obviously, the above embodiments of the present application are merely exemplary for clearly illustrating the present application, and are not intended to limit the implementation modes of the present application. Based on the above description, other different forms of changes or variations can be made by those skilled in the art, and here, all the implementation modes cannot be exhausted, and any obvious changes or variations derived from the technical solutions of the present application are still within the protection scope of the present application.

Claims

1. A method for monitoring wireless data packets, characterized in that, include: S1. The monitoring device receives an instruction to enter the monitoring mode, switches the monitoring device to the monitoring mode, and uses the monitoring device to capture packets of the channel and bandwidth information of the WiFi devices around the monitoring device to obtain packet capture data; S2. Determine whether the monitoring device is connected to the network. If yes, periodically store or upload the packet capture data to the server; otherwise, periodically store or upload the packet capture data to the local machine.

2. The wireless data packet monitoring method according to claim 1, characterized in that, The command to enter monitoring mode is triggered by key input on the monitoring device or by remote control signals.

3. The wireless data packet monitoring method according to claim 1, characterized in that, The monitoring equipment is used to capture packets of channel and bandwidth information of WiFi devices in the vicinity of the monitoring equipment, including: S11. The monitoring device broadcasts an air interface packet with a proprietary protocol to WiFi devices around the monitoring device; S12. The monitoring device receives a response packet sent by the WiFi device based on the air interface packet, the response packet including the channel and bandwidth information of the WiFi device; S13. The monitoring device performs packet capture processing on the WiFi device based on the channel and bandwidth information to obtain the packet capture data.

4. The wireless data packet monitoring method according to claim 1, characterized in that, The servers include local servers and cloud servers.

5. The wireless data packet monitoring method according to claim 1, characterized in that, The step of periodically storing or uploading the captured packet data to the local machine includes: Determine whether the monitoring device is connected to an external storage medium. If so, periodically store or upload the captured packet data to the external storage medium; otherwise, periodically store or upload the captured packet data to the local storage unit.

6. The wireless data packet monitoring method according to claim 5, characterized in that, The external storage medium is a USB flash drive.

7. The wireless data packet monitoring method according to claim 5, characterized in that, The local storage unit is a Flash memory.

8. The wireless data packet monitoring method according to any one of claims 1-7, characterized in that, Also includes: When the monitoring device receives a command to exit monitoring mode, it reverts to normal WiFi working mode.

9. The wireless data packet monitoring method according to claim 8, characterized in that, The command to exit monitoring mode is triggered by long-pressing a button, remote command, or a preset time.

10. A computer device, characterized in that, include: The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction that causes the processor to perform the operation of the wireless packet monitoring method as described in any one of claims 1 to 9.