does anybody knows how to get an esp32 board with 2xLAN? I would like to use WLED with LAN connection, but i need the LAN port also for different things. I want to avoid a dedicated minihub or use Y-kabels to split up the line.
thanks,
Tom
Please more information (more specific)
kilrah
October 9, 2023, 10:16am
3
Never seen one, but why could you not use the same connection? It’s not like you can run 2 firmwares on the same board at the same time anyway.
divsys
October 9, 2023, 12:39pm
4
That’s not how physical ethernet connections work.
You need a hub or a switch port for every physical connection to your network.
The “dual port LAN” version ESP32 you’re looking for would just be a board with a 2-port switch built-in.
Either use WiFi or put in a switch, honestly an 8 port gigabit switch is what - $25 now?
That’s just the cost of expanding your network.
# KSZ8863 Ethernet Driver (beta)
## Overview
The KSZ8863MLL/FLL/RLL are highly integrated 3-port switch ICs in a small footprint.
They are designed to enable a new generation of low port count, cost-sensitive and power efficient 10/100Mbps switch systems. Low power consumption, advanced power management and sophisticated QoS features (e.g., IPv6 priority classification support) make these devices ideal for IPTV, IP-STB, VoIP, automotive and industrial applications. See [KSZ8863 product page](https://www.microchip.com/en-us/product/KSZ8863) for more information.
From IOT use cases point of view, one of the advantages of usage of this chip is to enable ring topology of Ethernet connected devices which would otherwise needed to be connected in tree topology. Tree topology usually requires extensive wiring since each device is connected to the central point (switch/router) by separate cable. On the opposite, ring topology can save wiring since the devices can be "daisy-chained" (each device in path can pass the traffic further to the final destination). Note that the ring may not be "closed".
## Driver Architecture
The KSZ8863 Espressif driver can be utilized in three modes of operation:
- simple switch
- managed switch
- to act as two separate endpoints
## KSZ8863 as Simple Switch
This is the simplest way of use the KSZ8863 driver. It is completely transparent from user point of view since the KSZ8863 is initialized and used like any other Ethernet device currently supported by the ESP-IDF. The system behaves the same as the ESP32 Ethernet interface was connected to external switch. You have no tail tagging option, i.e. you cannot specifically define where to send Ethernet frame and all routing is performed in KSZ8863 based on its internal MAC lookup tables. On the other hand, you still have an option to configure the KSZ8863, if you need so. To be able to control the configuration of P1 and P2 ports (MACs or PHYs), ESP Ethernet handles associated with these ports need to be initialized. You get also an access to the port state (link status, speed, etc.).
This file has been truncated. show original
Can do both, it can work as dumb switch or you can have 2 interfaces in esp-idf
Ethernet can be connected in parallel without a switch. Ethernet is designed with csma/cd. Thats how it worked via coax, still can work like that via twisted pairs.