# Ethernet Testing

## **Send Testing**

#### Requirements

- STM32
- Ethernet Cable
- Wireshark

#### Testing

Send testing is easy. The only thing you have to do is upload the setup and sending code to your STM32 and connect it to your PC/laptop using an Ethernet cable. Then you can go into Wireshark, look at the activity on you ethernet periphial, to see if it sends something. It also logs to the terminal if you send, if you have turned logging on.

---

## **Receive Testing**

### Requirements

- Linux laptop 🫠
- <span style="white-space: pre-wrap;">STM32 </span>
- <span style="white-space: pre-wrap;">Ethernet Cable </span>  
    Connect the Ethernet cable between the STM and the laptop that is sending you packets.
- Any pcap packet sender  
    We recommend packeth, installation manual will be below.
- Wireshark (optional)

### Installation of Packeth

<p class="callout danger">**NOTE:**<span style="white-space: pre-wrap;"> you need a Linux laptop for this</span></p>

#### Testing

Receive testing is done by sending packets, saved in test/networking, to the STM32 using a pcap packet sender. If you want to use new packets, I advise to send the packet you want from the STM32. Then use wireshark to save the packet such that you can send it back. In wireshark you can see, when you send a package, to which IP and MAC it is being send, and it should match with your IP and MAC.

To see if the messages are received, make sure you print messages in your receive function. Then check the serial

#### <span style="white-space: pre-wrap;"></span>