You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ArduPilot can capture on-target network traffic for troubleshooting Ethernet and PPP links. Captures are written in standard ``pcap`` format and can be opened in tools such as Wireshark or tcpdump.
8
+
9
+
Overview
10
+
--------
11
+
12
+
When enabled, packets handled by the networking stack are written to capture files on the microSD card:
13
+
14
+
- **Ethernet:** ``eth0.cap``
15
+
- **PPP:** ``pppN.cap`` (e.g. ``ppp0.cap`` for the first PPP interface)
16
+
17
+
Capture can be enabled or disabled at runtime by toggling a bit in the :ref:`NETWORK_OPTIONS <parameter-NETWORK_OPTIONS>` parameter — no reboot required.
18
+
19
+
Build Requirement
20
+
-----------------
21
+
22
+
This feature must be included in your firmware build:
23
+
24
+
1. Use the `ArduPilot Custom Build Server <https://custom.ardupilot.org/>`__.
25
+
2. Under **Networking**, enable **NetworkCapture**.
26
+
3. Download and flash the resulting firmware to your flight controller.
27
+
28
+
Enabling Capture
29
+
----------------
30
+
31
+
1. Confirm your firmware was built with **NetworkCapture** enabled.
32
+
2. Set bit **7** of the :ref:`NETWORK_OPTIONS<NETWORK_OPTIONS>` bitmask.
33
+
3. Capture starts immediately; **no reboot is required**.
34
+
4. To stop capture, **unset** bit 7.
35
+
36
+
Files & Formats
37
+
---------------
38
+
39
+
- **Location:** Root of the flight controller’s microSD card (e.g. ``eth0.cap``, ``ppp0.cap``).
40
+
- **Format:** ``pcap`` (compatible with Wireshark/tcpdump).
41
+
42
+
Notes & Caveats
43
+
---------------
44
+
45
+
- Capturing can increase CPU and I/O load; enable only when debugging.
46
+
- Ensure the microSD card has sufficient free space and is functioning reliably.
47
+
- PPP captures are per-interface (``ppp0.cap``, ``ppp1.cap``, …).
0 commit comments