The example sends an Ethernet frame that carries "Hello world" payload with a custom EtherType to the host PC. You can capture the frame by using a program called "Wireshark":
- Flash the board, and ensure the target's USB is plugged into the PC.
- Use
dmesg -w
linux command to determine address of the USB CDC Ethernet device. - Use
ifconfig
linux command to determine interface related to the the USB CDC Ethernet device. - Open Wireshark.
- Click Capture > Options to select the correct capture interface.
- Click Capture > Start.
- Click captured packet from source address 12:34:56:78:9a:bc to see the "Hello world" payload.
Note: Because Windows doesn't provide native support for the USB CDC-ECM model, you must use third party drivers to use this class on Windows. It is suggested to run this example on Linux.
MIRRORED FROM MASTER EXAMPLE SNIPPETS REPOSITORY: mbed-os-examples-docs_only. ANY CHANGES MADE DIRECTLY TO THIS REPOSITORY WILL BE AUTOMATICALLY OVERWRITTEN.