CN116827833B - Packet grabbing method and device based on RTOS - Google Patents

Packet grabbing method and device based on RTOS Download PDF

Info

Publication number
CN116827833B
CN116827833B CN202311106491.3A CN202311106491A CN116827833B CN 116827833 B CN116827833 B CN 116827833B CN 202311106491 A CN202311106491 A CN 202311106491A CN 116827833 B CN116827833 B CN 116827833B
Authority
CN
China
Prior art keywords
packet
rtos
target
equipment end
target packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311106491.3A
Other languages
Chinese (zh)
Other versions
CN116827833A (en
Inventor
梁柏昌
林娴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Nanfang Silicon Valley Semiconductor Co ltd
Original Assignee
Shenzhen Nanfang Silicon Valley Semiconductor Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Nanfang Silicon Valley Semiconductor Co ltd filed Critical Shenzhen Nanfang Silicon Valley Semiconductor Co ltd
Priority to CN202311106491.3A priority Critical patent/CN116827833B/en
Publication of CN116827833A publication Critical patent/CN116827833A/en
Application granted granted Critical
Publication of CN116827833B publication Critical patent/CN116827833B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application relates to the technical field of network detection, in particular to a packet grabbing method based on RTOS, which comprises the following steps: acquiring a target packet when the RTOS equipment end is in a connection state established with the target equipment end, wherein the target packet is a WiFi6 protocol packet, and an operating system of the target equipment end comprises a Windows operating system or an IOS operating system; performing head adjustment processing on the target packet to obtain an adjusted target packet; and transmitting the adjusted target packet to the target equipment through a universal channel and a USB public port of the RTOS equipment, so that the packet analysis software of the target equipment receives the adjusted target packet and then performs data analysis on the adjusted target packet. According to the method, the rapid and convenient packet capturing operation under the WiFi6 protocol is realized through the RTOS operating system, the packet capturing efficiency is improved, and the operating system of the personal computer is not required to be additionally processed.

Description

Packet grabbing method and device based on RTOS
Technical Field
The application relates to the technical field of network detection, in particular to a packet grabbing method and device based on RTOS.
Background
The WiFi packet analysis tool is a tool that developers use to diagnose, debug, and monitor network performance. In the traditional WiFi4 protocol, the personal computer only needs to add a specified external network card tool, and the corresponding analysis software can be used for capturing the package.
However, in the WiFi6 field, the WiFi6 network card cannot capture packets in the Windows operating system due to the limitation of the Windows operating system. The WiFi6 network card only supports the analysis of the grabbing package by using analysis software under the Linux operating system. Currently, in the WiFi6 protocol, developers can only use the following two packet capturing methods:
first, a Linux operating system and a Windows operating system, i.e., a dual system, are installed in a personal computer. When the package is required to be grabbed, switching to the Linux operating system, and restarting to switch to the Windows operating system after finishing. The bag grabbing method has the problems of inconvenient operation and low bag grabbing efficiency.
Secondly, the package is grabbed by professional small-sized test equipment embedded with a Linux operating system, and a personal computer remotely logs in the test equipment to perform corresponding operation. The bag grabbing method is high in cost, cannot be carried about, and cannot be tested in a mobile environment.
Therefore, the existing packet grabbing method has the problems of inconvenient packet grabbing, complex operation and high cost in the packet grabbing process under the WiFi6 protocol.
Disclosure of Invention
The embodiment of the application solves the technical problems of inconvenient packet grabbing, complicated operation and high cost in the packet grabbing process under the WiFi6 protocol in the prior art by providing the packet grabbing method and device based on the RTOS, and achieves the technical effects of improving the packet grabbing efficiency, needing no additional processing to the operating system of the personal computer, being convenient to use, reducing the cost and the like by realizing the rapid and convenient packet grabbing operation under the WiFi6 protocol through the RTOS operating system.
In a first aspect, an embodiment of the present application provides a packet grabbing method based on an RTOS, which is applied to an RTOS device side, and includes:
acquiring a target packet when the RTOS equipment end is in a connection state established with a target equipment end, wherein the target packet is a WiFi6 protocol packet, and an operating system of the target equipment end comprises a Windows operating system or an IOS operating system;
performing head adjustment processing on the target packet to obtain an adjusted target packet;
and transmitting the adjusted target packet to the target equipment through a universal channel and a USB (universal serial bus) male port of the RTOS equipment, so that the packet analysis software of the target equipment receives the adjusted target packet and then performs data analysis on the adjusted target packet.
Preferably, the RTOS device side is in a connection state established with the target device side, and includes:
the USB male port is connected with the USB female port of the target equipment end in a matching way, and the USB male port and the USB female port are controlled to be connected in a communication way through a USB driver of the RTOS equipment end.
Preferably, the method further comprises:
acquiring the target packet when the RTOS equipment end is in an offline state, wherein the offline state is a state that the RTOS equipment end and the target equipment end are not connected;
performing the head adjustment processing on the target packet to obtain the adjusted target packet;
and transmitting the adjusted target packet to a network disk through a private channel of the RTOS equipment end so that the network disk stores the target packet.
Preferably, the acquiring the target packet includes:
and acquiring the target packet through the WiFi6 network card of the RTOS equipment end.
Preferably, before the RTOS device side is in an offline state, the method further includes:
and under the condition that the RTOS equipment end establishes connection with the appointed equipment end through an appointed network interface of the appointed equipment end, acquiring configuration information of the network disk sent by the appointed equipment end, wherein the configuration information comprises a network address of the network disk, data compression configuration information and packet grabbing configuration information.
Preferably, the connection between the RTOS device and the designated device is established through a designated network interface of the designated device, including:
and establishing connection between the RTOS equipment end and the appointed equipment end through an mDNS protocol.
Preferably, the performing header adjustment processing on the target packet to obtain an adjusted target packet includes:
and adding specified header information to the target packet to obtain an adjusted target packet, wherein the specified header information is the header information identified by the packet analysis software.
Based on the same inventive concept, the present application also provides a wrapping device based on an RTOS, applied to an RTOS device side, the device comprising:
the acquisition module is used for acquiring a target packet when the RTOS equipment end is in a connection state established with a target equipment end, wherein the target packet is a WiFi6 protocol packet, and an operating system of the target equipment end comprises a Windows operating system or an IOS operating system;
the adjusting module is used for carrying out head adjustment processing on the target packet to obtain an adjusted target packet;
and the transmission module is used for transmitting the adjusted target packet to the target equipment end through a universal channel and a USB male port of the RTOS equipment end, so that the packet analysis software of the target equipment end performs data analysis on the adjusted target packet after receiving the adjusted target packet.
Based on the same inventive concept, in a third aspect, the application provides an RTOS device, which comprises a processor, a memory connected with the processor, a WiFi driver, a USB male port, a WiFi6 network card connected with the WiFi driver, and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of an RTOS-based packet grabbing method.
Based on the same inventive concept, in a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of an RTOS-based packet grabbing method.
One or more technical solutions in the embodiments of the present application at least have the following technical effects or advantages:
the embodiment of the application provides a packet grabbing method based on an RTOS, which is applied to an RTOS equipment end. The method comprises the specific steps that a target packet is obtained when an RTOS device end is in a connection state established with a target device end, wherein the target packet is a WiFi6 protocol packet, and an operating system of the target device end comprises a Windows operating system. And performing head adjustment processing on the target packet to obtain an adjusted target packet.
And then, transmitting the adjusted target packet to the target equipment through a universal channel and a USB male port of the RTOS equipment, so that the packet analysis software of the target equipment receives the adjusted target packet and then performs data analysis on the adjusted target packet. Here, the rapid and convenient packet grabbing operation under the WiFi6 protocol is realized through the RTOS operating system, the packet grabbing efficiency is improved, the operating system of the personal computer is not required to be additionally processed, the use is convenient, the cost is reduced, the plug-and-play is realized, and the limitation of the operating system of the target equipment is avoided. The dual system is not required to be installed at the target equipment end, so that time consumption caused by system switching is avoided, data cannot be transmitted due to inconsistent dual-system file systems, and the condition that a USB flash disk is required to be used for data transmission is avoided.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also throughout the drawings, like reference numerals are used to designate like parts. In the drawings:
FIG. 1 is a schematic flow chart of steps of an RTOS-based packet grabbing method according to an embodiment of the application;
FIG. 2 is a schematic diagram of an RTOS device according to an embodiment of the application;
FIG. 3 is a schematic structural diagram showing information interaction between an RTOS device and a target device and information interaction between the RTOS device and a designated device in an embodiment of the present application;
fig. 4 shows a schematic block diagram of an RTOS-based packet grabbing device in an embodiment of the application.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Embodiment one: a first embodiment of the present application provides a packet grabbing method based on an RTOS (Real Time Operating System, real-time operating system), as shown in fig. 1, the method includes:
s101, acquiring a target packet when an RTOS device end is in a connection state established with a target device end, wherein the target packet is a WiFi6 protocol packet, and an operating system of the target device end comprises a Windows operating system or an IOS operating system;
s102, performing head adjustment processing on the target packet to obtain an adjusted target packet;
s103, the adjusted target packet is transmitted to the target equipment through the universal channel and the USB male port of the RTOS equipment, so that the packet analysis software of the target equipment receives the adjusted target packet and then performs data analysis on the adjusted target packet.
The packet grabbing method of the embodiment is applied to an RTOS device end, and the specific structure of the RTOS device end is shown in fig. 2. The RTOS device side includes a processor 201, a memory 202 connected to the processor 201, a WiFi (WIreless Fidelity ) driver 203, a USB (Universal Serial Bus ) male port 204, and a WiFi6 network card 205 connected to the WiFi driver 203. The memory 202 is used for storing a related program of the steps of the packet capturing method of the present embodiment, and the processor 201 is used for executing the related program stored in the memory 202. The WiFi driver 203 is configured to drive the WiFi6 network card 205, support the WiFi6 network card 205 to enter the promiscuous listening mode, and support the control/inquiry command of the general channel and the private channel established by the processor 201. The USB male port 204 is configured to perform communication connection with a USB female port of the target device, so that USB interface communication is performed between the RTOS device and the target device.
The following describes in detail the specific implementation steps of the RTOS-based packet capturing method provided in this embodiment with reference to fig. 1 and 2:
before executing step S101, after the RTOS device side starts, it needs to identify whether a connection is established with the target device side. If a USB interface connection request sent by the target equipment end is received, controlling the RTOS equipment end to establish connection with the target equipment end, and identifying that the RTOS equipment end is in a connection state established with the target equipment end. The process of establishing connection between the RTOS equipment end and the target equipment end is that the USB male port of the RTOS equipment end is in physical matching connection with the USB female port of the target equipment end, and then the USB male port 204 and the USB female port are controlled to be in communication connection through a USB driver of the RTOS equipment end. Here, the RTOS equipment end establishes connection with the target equipment end through the USB interface, so that the RTOS equipment end is plug and play, the use is convenient, the response speed is high, and the RTOS equipment end can be powered through the USB interface, namely, the RTOS equipment end has a power supply function.
If the USB interface connection request sent by the target equipment end is not received, the RTOS equipment end is controlled to be in an offline state, and the offline state is a state that the RTOS equipment end and the target equipment end are not connected. It should be noted that the target device includes, but is not limited to, a personal computer and a tablet computer.
After determining that the RTOS device is in the connection state, step S101 is executed, where the RTOS device is in the connection state established with the target device, and a target packet is obtained, where the target packet is a WiFi6 protocol packet, and an operating system of the target device includes a Windows operating system.
Specifically, in the case that it is determined that the RTOS device side is in the connected state, as shown in fig. 3, under the action of the WiFi driver 203, the WiFi6 network card 205 of the RTOS device side acquires the target packet, that is, the WiFi6 network card 205 captures the packet of the 802.11AX protocol in the air in the hybrid interception mode. An operating system is arranged in the target equipment end, and the operating system comprises but is not limited to a Windows operating system or an IOS operating system.
Next, step 102 is executed to perform header adjustment processing on the target packet, so as to obtain an adjusted target packet.
Specifically, the specified header information is added to the target packet to obtain the adjusted target packet, and the specified header information is the header information identified by the packet analysis software. For example, the packet analysis software is wirereshark or tcpdump, and the packet analysis software can identify the target packet through the radio head information, then the radio head information is added to the target packet, so as to obtain an adjusted target packet, and the adjusted target packet is the target packet added with the radio head information. The radio header information includes information such as signal strength, frequency information, noise strength, channel and time stamp. The head adjusting processing enables the target packet to be smoothly transmitted to the packet analysis software of the target equipment end, bypasses the limit of an operating system of the target equipment end, improves the packet grabbing and transmitting efficiency, and has the advantages of convenience in use, convenience in packet processing and the like.
Then, step 103 is executed, and the adjusted target packet is transmitted to the target device through the universal channel and the USB port 204 of the RTOS device, so that the packet analysis software of the target device performs data analysis on the adjusted target packet after receiving the adjusted target packet.
Specifically, after the adjusted target packet is obtained, as shown in fig. 3, the adjusted target packet is transmitted to the target device through a universal channel established by the RTOS device and communicating with the target device and a USB serial port between the RTOS device and the target device under the action of the WiFi6 driver and the driving of the USB port 204.
Under the action of a USB driver of the target equipment end, the target equipment end performs data exchange with the RTOS equipment end, and the control target equipment end receives the adjusted target packet sent by the RTOS equipment end. After receiving the adjusted target packet, the target device transmits the adjusted target packet to packet analysis software installed at the target device under the driving of a network device driver of the target device. The network device driver is a network device driver of an operating system of the target device, for example, the operating system of the target device is a Windows operating system, and the network device driver is a Windows network device driver. After receiving the adjusted target packet, the packet analysis software performs decompression analysis and analysis processing on the adjusted target packet, so that network performance is diagnosed, debugged and monitored rapidly and efficiently.
The principle of the packet grabbing method in this embodiment is that the target device side is usually installed with a Windows operating system, and the Windows operating system only supports related development interfaces for providing the 802.11 BGN protocol, but does not have related development interfaces for the 802.11AX protocol, so that the 802.11AX packet cannot be input into the packet analysis software of the Windows operating system. According to the packet grabbing method, rapid and convenient packet grabbing operation under the WiFi6 protocol is realized through the RTOS operating system, the packet grabbing efficiency is improved, additional processing is not required to be carried out on the operating system of the personal computer, the use is convenient, the cost is reduced, the plug-and-play is realized, the limitation of the operating system of the target equipment end is avoided, the dependence of 802.11AX packet grabbing on the operating system is eliminated, and the packet grabbing and packet transmission can be carried out under any operating system. Therefore, the target equipment end is not required to be provided with the double systems, time consumption caused by system switching is avoided, data cannot be transmitted due to inconsistency of the double-system file systems, and the situation that the U disk is required to be used for data transmission is avoided.
In the offline state of the RTOS device, as shown in fig. 3, the target packet is acquired through the WiFi6 network card 205 of the RTOS device. And performing head adjustment processing on the target packet to obtain an adjusted target packet, wherein the head adjustment processing process is consistent with the head adjustment processing process under the condition that the RTOS equipment end is determined to be in a connection state. And then, transmitting the adjusted target packet to the network disk through a private channel of the RTOS equipment end so as to enable the network disk to store the target packet. The network disk comprises a NAS network disk.
In addition, for the operation steps executed by the RTOS device end in the offline state, the operation steps of the RTOS device end in the offline state need to be configured in advance by the designated device end, so that the RTOS device end can execute the operation steps in the offline state after being configured. The configuration process specifically includes that firstly, connection is established between an RTOS device end and a designated device end through an mDNS (multicast DNS) protocol. The designated equipment end comprises a personal computer or a tablet personal computer. The designated device side is the device side with application software for configuring the RTOS device side to operate in an offline state. The specific process of establishing connection between the RTOS equipment end and the designated equipment end is that, as shown in fig. 3, the RTOS equipment end is searched and connected with the RTOS equipment end based on the mDNS protocol through a controller and a Windows network interface of the designated equipment end.
And under the condition that the RTOS equipment end establishes connection with the appointed equipment end through the appointed network interface of the appointed equipment end, the RTOS equipment end acquires the configuration information of the network disk sent by the appointed equipment end. The configuration information comprises network addresses of network disks, data compression configuration information and packet grabbing configuration information. The data compression configuration information is related information for judging whether the adjusted target packet needs to be compressed or not, and if the adjusted target packet is compressed and retransmitted, the transmission quantity of data can be reduced, and the space of the NAS network disk can be saved. The packet capturing configuration information is 802.11 packet capturing configuration information, and the packet capturing configuration information is used for configuring the RTOS equipment end to only acquire the related information of the target packet, so that other packets which do not meet the conditions can be filtered out. The packet-grabbing configuration information includes, but is not limited to: channel configuration information, MAC address filtering rules, packet type, protocol type, and port information.
According to the method for grabbing the package, the function of grabbing the package under the WiFi6 protocol is supported in an offline state, so that the package grabbing efficiency is improved, the operating system of the personal computer is not required to be additionally processed, the use is convenient, the power consumption is reduced, and the cost is reduced. The RTOS equipment end supports USB power supply, and the requirements of additional power supply are not needed, so that the RTOS equipment end has the advantages of reducing power consumption, production cost, hardware cost and the like no matter in an offline state or a connection state. The RTOS equipment end supports offline packet capturing data, and sends the data to the network disk for network attached storage in an offline state, and also supports the offline packet capturing data. The packet grabbing method or the RTOS equipment end supports 802.11 n mode and the mcs 0-mcs 9 rate of WiFi. n is any version of the 802.11 mode.
It should be noted that, the general channel is a channel for processing an instruction of the operating system of the target device side, and the private channel is a channel for processing a private instruction of the RTOS device side. For example, if the adjusted target packet needs to be sent to the target device, the adjusted target packet may include a Windows standard command. And the adjusted target packet is sent to the target equipment end through a universal channel by analyzing the Windows standard instruction in the header information of the adjusted target packet. Similarly, if the adjusted target packet needs to be sent to the network disk, the adjusted target packet will include a private instruction. And sending the adjusted target packet to the network disk through a private channel by analyzing the private instruction in the header information of the adjusted target packet.
One or more technical solutions in the embodiments of the present application at least have the following technical effects or advantages:
the embodiment of the application provides a packet grabbing method based on an RTOS, which is applied to an RTOS equipment end. The method comprises the specific steps that a target packet is obtained when an RTOS device end is in a connection state established with a target device end, wherein the target packet is a WiFi6 protocol packet, and an operating system of the target device end comprises a Windows operating system. And performing head adjustment processing on the target packet to obtain an adjusted target packet.
And then, transmitting the adjusted target packet to the target equipment through a universal channel and a USB male port of the RTOS equipment, so that the packet analysis software of the target equipment receives the adjusted target packet and then performs data analysis on the adjusted target packet. Here, the rapid and convenient packet grabbing operation under the WiFi6 protocol is realized through the RTOS operating system, the packet grabbing efficiency is improved, the operating system of the personal computer is not required to be additionally processed, the use is convenient, the cost is reduced, the plug-and-play is realized, and the limitation of the operating system of the target equipment is avoided. The dual system is not required to be installed at the target equipment end, so that time consumption caused by system switching is avoided, data cannot be transmitted due to inconsistent dual-system file systems, and the condition that a USB flash disk is required to be used for data transmission is avoided.
Embodiment two: based on the same inventive concept, the second embodiment of the present application further provides a packet grabbing device based on RTOS, as shown in fig. 4, including:
the obtaining module 301 is configured to obtain a target packet when the RTOS device end is in a connection state established with a target device end, where the target packet is a WiFi6 protocol packet, and an operating system of the target device end includes a Windows operating system or an IOS operating system;
the adjusting module 302 is configured to perform header adjustment processing on the target packet to obtain an adjusted target packet;
and a transmission module 303, configured to transmit the adjusted target packet to the target device through the universal channel and the USB port of the RTOS device, so that the packet analysis software of the target device performs data analysis on the adjusted target packet after receiving the adjusted target packet.
As an optional embodiment, the RTOS device side is in a connection state established with the target device side, and includes:
the USB male port is connected with the USB female port of the target equipment end in a matching way, and the USB male port and the USB female port are controlled to be connected in a communication way through a USB driver of the RTOS equipment end.
As an alternative embodiment, the obtaining module 301 is configured to: acquiring the target packet when the RTOS equipment end is in an offline state, wherein the offline state is a state that the RTOS equipment end and the target equipment end are not connected;
an adjustment module 302, configured to: performing the head adjustment processing on the target packet to obtain the adjusted target packet;
a transmission module 303, configured to: and transmitting the adjusted target packet to a network disk through a private channel of the RTOS equipment end so that the network disk stores the target packet.
As an alternative embodiment, the acquiring the target packet includes:
and acquiring the target packet through the WiFi6 network card of the RTOS equipment end.
As an alternative embodiment, the obtaining module 301 is configured to: before the RTOS equipment end is in an offline state, under the condition that the RTOS equipment end establishes connection with the appointed equipment end through an appointed network interface of the appointed equipment end, acquiring configuration information of the network disk sent by the appointed equipment end, wherein the configuration information comprises a network address of the network disk, data compression configuration information and packet grabbing configuration information.
As an optional embodiment, the RTOS device side establishes a connection with a specified device side through a specified network interface of the specified device side, and includes:
and establishing connection between the RTOS equipment end and the appointed equipment end through an mDNS protocol.
As an optional embodiment, the performing header adjustment processing on the target packet to obtain an adjusted target packet includes:
and adding specified header information to the target packet to obtain an adjusted target packet, wherein the specified header information is the header information identified by the packet analysis software.
Since the RTOS-based packet capturing device described in this embodiment is a device for implementing the RTOS-based packet capturing method described in the first embodiment of the present application, those skilled in the art will be able to understand the specific implementation of the RTOS-based packet capturing device and various modifications thereof, so how the RTOS-based packet capturing device implements the method described in the first embodiment of the present application will not be described in detail herein. The device used by those skilled in the art to implement the RTOS-based packet capturing method in the first embodiment of the present application is within the scope of the present application.
Embodiment III: based on the same inventive concept, the third embodiment of the present application further provides a computer device, as shown in fig. 2, including a processor 201, a memory 202 connected to the processor 201, a WiFi driver 203, a USB port 204, a WiFi6 network card 205 connected to the WiFi driver 203, and a computer program stored on the memory 202 and executable on the processor 201, where the processor 201 implements the steps of any one of the above-mentioned RTOS-based packet capturing methods when executing the program.
Embodiment four: based on the same inventive concept, the fourth embodiment of the present application further provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of any one of the methods of the RTOS-based packet grabbing method described in the previous embodiment.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. The utility model provides a packet grabbing method based on RTOS, which is characterized in that the method is applied to an RTOS equipment end, and comprises the following steps:
acquiring a target packet when the RTOS equipment end is in a connection state established with a target equipment end, wherein the target packet is a WiFi6 protocol packet, and an operating system of the target equipment end comprises a Windows operating system or an IOS operating system;
performing head adjustment processing on the target packet to obtain an adjusted target packet;
and transmitting the adjusted target packet to the target equipment through a universal channel and a USB (universal serial bus) male port of the RTOS equipment, so that the packet analysis software of the target equipment receives the adjusted target packet and then performs data analysis on the adjusted target packet.
2. The method of claim 1, wherein the RTOS device side is in a connected state established with a target device side, comprising:
the USB male port is connected with the USB female port of the target equipment end in a matching way, and the USB male port and the USB female port are controlled to be connected in a communication way through a USB driver of the RTOS equipment end.
3. The method of claim 1, wherein the method further comprises:
acquiring the target packet when the RTOS equipment end is in an offline state, wherein the offline state is a state that the RTOS equipment end and the target equipment end are not connected;
performing the head adjustment processing on the target packet to obtain the adjusted target packet;
and transmitting the adjusted target packet to a network disk through a private channel of the RTOS equipment end so that the network disk stores the target packet.
4. A method according to claim 1 or 3, wherein the obtaining the target packet comprises:
and acquiring the target packet through the WiFi6 network card of the RTOS equipment end.
5. The method of claim 3, further comprising, before the RTOS device side is in an offline state:
and under the condition that the RTOS equipment end establishes connection with the appointed equipment end through an appointed network interface of the appointed equipment end, acquiring configuration information of the network disk sent by the appointed equipment end, wherein the configuration information comprises a network address of the network disk, data compression configuration information and packet grabbing configuration information.
6. The method of claim 5, wherein the RTOS device side establishing a connection with a designated device side through a designated network interface of the designated device side, comprising:
and establishing connection between the RTOS equipment end and the appointed equipment end through an mDNS protocol.
7. A method according to claim 1 or 3, wherein performing header adjustment processing on the target packet to obtain an adjusted target packet comprises:
and adding specified header information to the target packet to obtain an adjusted target packet, wherein the specified header information is the header information identified by the packet analysis software.
8. An RTOS-based packet grabbing device, which is applied to an RTOS device side, comprising:
the acquisition module is used for acquiring a target packet when the RTOS equipment end is in a connection state established with a target equipment end, wherein the target packet is a WiFi6 protocol packet, and an operating system of the target equipment end comprises a Windows operating system or an IOS operating system;
the adjusting module is used for carrying out head adjustment processing on the target packet to obtain an adjusted target packet;
and the transmission module is used for transmitting the adjusted target packet to the target equipment end through a universal channel and a USB male port of the RTOS equipment end, so that the packet analysis software of the target equipment end performs data analysis on the adjusted target packet after receiving the adjusted target packet.
9. An RTOS device comprising a processor, a memory coupled to the processor, a WiFi driver, a USB port, a WiFi6 network card coupled to the WiFi driver, and a computer program stored on the memory and executable on the processor, the processor executing the program to implement the RTOS-based packet-grabbing method steps of any of claims 1-7.
10. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the RTOS-based packetization method steps of any of claims 1 to 7.
CN202311106491.3A 2023-08-30 2023-08-30 Packet grabbing method and device based on RTOS Active CN116827833B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311106491.3A CN116827833B (en) 2023-08-30 2023-08-30 Packet grabbing method and device based on RTOS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311106491.3A CN116827833B (en) 2023-08-30 2023-08-30 Packet grabbing method and device based on RTOS

Publications (2)

Publication Number Publication Date
CN116827833A CN116827833A (en) 2023-09-29
CN116827833B true CN116827833B (en) 2023-11-07

Family

ID=88143261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311106491.3A Active CN116827833B (en) 2023-08-30 2023-08-30 Packet grabbing method and device based on RTOS

Country Status (1)

Country Link
CN (1) CN116827833B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1724684A1 (en) * 2005-05-17 2006-11-22 BUSI Incubateur d'entreprises d'AUVEFGNE System and method for task scheduling, signal analysis and remote sensor
CN110073301A (en) * 2017-08-02 2019-07-30 强力物联网投资组合2016有限公司 The detection method and system under data collection environment in industrial Internet of Things with large data sets
CN114184835A (en) * 2021-11-15 2022-03-15 国网湖北省电力有限公司营销服务中心(计量中心) Electric energy meter based on 5G changes WIFI communication technology

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080056139A1 (en) * 2006-09-06 2008-03-06 Mentor Graphics Corporation Network traffic monitoring using embedded target-side analyzer during embedded software development

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1724684A1 (en) * 2005-05-17 2006-11-22 BUSI Incubateur d'entreprises d'AUVEFGNE System and method for task scheduling, signal analysis and remote sensor
CN110073301A (en) * 2017-08-02 2019-07-30 强力物联网投资组合2016有限公司 The detection method and system under data collection environment in industrial Internet of Things with large data sets
CN114184835A (en) * 2021-11-15 2022-03-15 国网湖北省电力有限公司营销服务中心(计量中心) Electric energy meter based on 5G changes WIFI communication technology

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
开源低端设备物联网操作系统研究;郝继锋;李运喜;徐晓光;;信息通信(04);全文 *

Also Published As

Publication number Publication date
CN116827833A (en) 2023-09-29

Similar Documents

Publication Publication Date Title
CN101764809B (en) Satellite test data collection framework system
US20150127124A1 (en) Information processing system, information processing method, information processing apparatus, portable terminal, and control method and control program thereof
WO2019174504A1 (en) Method and device for establishing a logical channel, and vehicle communication interface (vci)
CN109918306B (en) Audio processing device, system, method, apparatus and storage medium
CN113141281B (en) FPGA accelerator, network parameter measurement system, method and medium
CN111224903B (en) Data transmission method, data transmission equipment and computer readable storage medium
CN109347965B (en) Communication method, device and related equipment
CN111263377B (en) Network configuration method, device, equipment and system and distribution network testing method and system
CN106533823B (en) Automatic test system and method and recyclable sending device thereof
CN116827833B (en) Packet grabbing method and device based on RTOS
CN109451095B (en) Remote controller detection method and device, storage medium and terminal
CN110519736B (en) Bluetooth device switch connection method and device and computer readable storage medium
CN114360096A (en) Data transmission method, device, communication equipment and storage medium
WO2016119623A1 (en) Method and device for realizing network sharing
CN111726406A (en) Data transmission method and related equipment
CN110753363A (en) Intelligent device wireless debugging system and method
CN114338270B (en) Data communication method, device, electronic equipment and storage medium
CN112165715B (en) Equipment detection method and device, storage medium and electronic device
CN114442590A (en) Vehicle diagnosis method, apparatus, diagnosis communication device, server, and storage medium
CN112423068A (en) Smart television debugging method and device, mobile terminal and readable storage medium
CN111209718B (en) Verification environment platform, verification method, computer device and readable storage medium
CN112153144B (en) Method, system and storage medium for remotely debugging intelligent household equipment
CN114503041B (en) Vehicle diagnosis method, diagnosis connector and diagnosis device
JP7378336B2 (en) Air conditioner controller, control system, and control method
CN110581878A (en) Voice data transmission method, device and storage medium

Legal Events

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