ESP32-Ethernet-Kit and Laptop Communication over Ethernet

Yuvaraj1867
Posts: 63
Joined: Wed Mar 06, 2019 4:39 am
Contact:

ESP32-Ethernet-Kit and Laptop Communication over Ethernet

Postby Yuvaraj1867 » Wed Aug 19, 2020 6:11 am

Hi,

Anybody has example code for sending and receiving data between ESP32-Ethernet-Kit and laptop using Ethernet cable.

lbernstone
Posts: 828
Joined: Mon Jul 22, 2019 3:20 pm

Re: ESP32-Ethernet-Kit and Laptop Communication over Ethernet

Postby lbernstone » Wed Aug 19, 2020 3:41 pm

Ethernet is based on a hub and spoke model, where a switch/hub is expected to be in the middle. To directly connect two devices you would need a null cable where the TX and RX lines are swapped. This would also require static IPs on both sides.
Or, just buy a 2/4 port switch for $10. This is also much easier to troubleshoot since you will get lights for link & activity.

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-Ethernet-Kit and Laptop Communication over Ethernet

Postby ESP_Sprite » Thu Aug 20, 2020 8:29 am

From what I can tell, the transceiver on the ESP-Ethernet-Kit has auto-MDIX, so you don't need a crossover cable; just using a normal patchcable to connect the two boards should work fine.

Who is online

Users browsing this forum: Basalt and 54 guests