esp32_nat_router
esp32_nat_router copied to clipboard
WT32-ETH01 Support?
Good afternoon, can you make a NAT Router from the WT32-ETH01 board using your firmware?
I'm sure, it can be done easily, but the current software has no Ethernet support. Interesting board - will try to get one...
OK, thanks, I will wait with impatience!
i am also interested in that board and combining with your nat project. i still waiting for the shippment of that board. in the meanwhile i found the following example, maybe that is a starting point... https://github.com/espressif/esp-idf/tree/master/examples/ethernet/eth2ap
I'm in, watching this thread with interest.
My WT32-ETH01 board is still a month or so off delivery; but if you are impatient like me and want to get a bit of a head start, then the ENC28J60 available on quick turnaround example code may give a bit of space to do some prototyping in the meantime if you have an ESP32 lying around.
The downside is (it seems) the SPI interface can only be clocked at about 6 Mhz for stable results.
Good afternoon, an interesting example eth2ap! I flashed my WT32-ETH01, there is a LAN8720 chip, but it did not want to work.
вт, 16 февр. 2021 г. в 13:28, Greg White [email protected]:
I'm in, watching this thread with interest.
My WT32-ETH01 board is still a month or so off delivery; but if you are impatient like me and want to get a bit of a head start, then the ENC28J60 available on quick turnaround example code https://github.com/espressif/esp-idf/tree/master/examples/ethernet/enc28j60 may give a bit of space to do some prototyping in the meantime if you have an ESP32 lying around.
The downside is (it seems) the SPI interface can only be clocked at about 6 Mhz for stable results.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/martin-ger/esp32_nat_router/issues/33#issuecomment-779775940, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ7TCQYTVVKFMZHIJPCIKGDS7JJGRANCNFSM4V3TFBXA .
Good afternoon, an interesting example eth2ap! I flashed my WT32-ETH01, there is a LAN8720 chip, but it did not want to work
it doesn't work?! that's not good to hear! maybe there are differences in GPIO usage: https://github.com/espressif/esp-idf/blob/master/examples/ethernet/README.md#common-pin-assignments
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/network/esp_eth.html#configure-mac-and-phy
i send an email to [email protected] and asked what GPIOs they used to SMI signals and PHY reset. when i get an answer i will write it down here.
Bit setting menuconfig, wi-fi work, but does not want to receive IP. I will continue to investigate.
вт, 16 февр. 2021 г. в 17:53, beta-tester [email protected]:
Good afternoon, an interesting example eth2ap! I flashed my WT32-ETH01, there is a LAN8720 chip, but it did not want to work
it doesn't work?! that's not good to hear! maybe there are differences in GPIO usage:
https://github.com/espressif/esp-idf/blob/master/examples/ethernet/README.md#common-pin-assignments
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/martin-ger/esp32_nat_router/issues/33#issuecomment-779928159, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ7TCQ3XYBOAXKGGWFOJBLTS7KIIPANCNFSM4V3TFBXA .
I suffered for two days, but I could not get IP.
ср, 17 февр. 2021 г. в 10:19, Дмитрий С [email protected]:
Bit setting menuconfig, wi-fi work, but does not want to receive IP. I will continue to investigate.
вт, 16 февр. 2021 г. в 17:53, beta-tester [email protected]:
Good afternoon, an interesting example eth2ap! I flashed my WT32-ETH01, there is a LAN8720 chip, but it did not want to work
it doesn't work?! that's not good to hear! maybe there are differences in GPIO usage:
https://github.com/espressif/esp-idf/blob/master/examples/ethernet/README.md#common-pin-assignments
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/martin-ger/esp32_nat_router/issues/33#issuecomment-779928159, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ7TCQ3XYBOAXKGGWFOJBLTS7KIIPANCNFSM4V3TFBXA .
It is as expected and listed:
Wi-Fi station doesn't receive any IP via DHCP? All Layer 3 (TCP/IP functions) on the ESP32 are disabled, including the SoftAP DHCP server. This means that devices must be able to access another DHCP server (for example on a Wi-Fi router connected via ethernet) or should use statically assigned IP addresses.
do you mean the WT32-ETH01 does not get an IP or the device that is connected to the AP? as far as i understrood, in this eth2ap example, the WT32-ETH01 itself only forward the traffic between ETH and AP (like a virtual cable). so no IP for the WT32-ETH01 at both ends. only the connected device at AP end should get an IP, as far the router at the ETH end is serving DHCP.
The device that is connected to the AP dont get IP.
this is the schematics i got: WT32_ETH01_V2 schematic.pdf
it looks like, there are no differences in the use of GPIO for RMII Signals and SMI Signals. the PHY reset line seems to be not connected to any GPIO - only to an RC
so i have no idea, why the ap2eth example is not working.
Oh thank you, I'll keep myself!
пн, 22 февр. 2021 г. в 23:39, beta-tester [email protected]:
this is the schematics i got: WT32_ETH01_V2 schematic.pdf https://github.com/martin-ger/esp32_nat_router/files/6025280/WT32_ETH01_V2.schematic.pdf
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/martin-ger/esp32_nat_router/issues/33#issuecomment-783692307, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ7TCQ7K4HQLGRKKXPIZQNDTALFIFANCNFSM4V3TFBXA .
FYI, at the bottom of https://esphome.io/components/ethernet.html#configuration-for-wireless-tag-wt32-eth01 you will see the configuration settings for WT32-ETH01:
Configuration for Wireless Tag WT32-ETH01 ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
clk_mode: GPIO0_IN
phy_addr: 1
power_pin: GPIO16
@ericfont Where would I put this in a regular esp-idf project? I have an "sdkconfig" file but it looks different from the code above.
@ericfont Where would I put this in a regular esp-idf project? I have an "sdkconfig" file but it looks different from the code above.
i hope i don't tell just absolute bullshit, but i think:
- this format of config parameters are not made for
sdkconfig
. i guess you have to runmake menuconfig
oridf.py menuconfig
, find and navigate to those options and set them there. for possible names of options, maybe take a look to eth2ap, enc28j60#pin-assignment or eth2wifi#rmii-phy-wiring - but even then, i don't think that there is the ETH part implemented in this project code at all, yet.
i would be happy when i am wrong and the ETH part is implemented and working already
FYI, at the bottom of https://esphome.io/components/ethernet.html#configuration-for-wireless-tag-wt32-eth01 you will see the configuration settings for WT32-ETH01:
Configuration for Wireless Tag WT32-ETH01 ethernet: type: LAN8720 mdc_pin: GPIO23 mdio_pin: GPIO18 clk_mode: GPIO0_IN phy_addr: 1 power_pin: GPIO16
Hello, I spend several hours trying to connect the board to the internet using the ETH. Be aware that the GPIO0 is used for the ETH interface and to select the Boot mode, so after programming the module, leave this pin disconnected.
FYI, at the bottom of https://esphome.io/components/ethernet.html#configuration-for-wireless-tag-wt32-eth01 you will see the configuration settings for WT32-ETH01:
Configuration for Wireless Tag WT32-ETH01 ethernet: type: LAN8720 mdc_pin: GPIO23 mdio_pin: GPIO18 clk_mode: GPIO0_IN phy_addr: 1 power_pin: GPIO16
Hello, I spend several hours trying to connect the board to the internet using the ETH. Be aware that the GPIO0 is used for the ETH interface and to select the Boot mode, so after programming the module, leave this pin disconnected.
Hello, So, we the GPIO0 pin disconnected, you have the ap2eth working?
Yes, once I download the code to the WT32-ETH01 I disconnect the GPIO0 from the programmer board and it works. Don't forget to restart the module after programming.
I'm using Arduino framework and the first test was with the examples in the Arduino IDE, and later I developed my custom application using Platformio and Arduino framework as well.I never used the ESP32 configuration tool.
On Thu, Sep 15, 2022 at 12:31 PM, @.***> wrote:
What do you put in the "Support ESP32 internal EMAC controller" submenu config? It doesn't work for me and I don't understand why now...
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
Yes, once I download the code to the WT32-ETH01 I disconnect the GPIO0 from the programmer board and it works. Don't forget to restart the module after programming.
Something strange with mine... After I connect my phone to the AP, when I scan my network, I just find 4 on 26 devices... And I can't access to Internet... I can't uderstand why...
only for information: there is a similar device available to the WT32-ETH01. the PoESP32. with the different, it can be powered over ethernet and uses a different interface chip.
Olimex also has 2 ESP32 POE boards and can be ordered at mouser or similar distributors
https://eu.mouser.com/ProductDetail/Olimex-Ltd/ESP32-POE-ISO?qs=sGAEpiMZZMuqBwn8WqcFUj2aNd7i9W7uc087HzBKguU1UBkflb3j3w%3D%3D
https://eu.mouser.com/ProductDetail/Olimex-Ltd/ESP32-POE?qs=sGAEpiMZZMuqBwn8WqcFUj2aNd7i9W7u96Xy%252Be9XGB1dNrI6ppx4Mg%3D%3D
Hi,
I'd be interested in using the WT32-ETH01 as a NAT router - any progress on the implementation of the ETH support?
I do have the need to run the WiFi in Client mode on a different subnet than the eth. Eth is connecting as a client to the Internet router, getting IP through DHCP. All data from ETH shall be routed to the WiFi and vice versa.
I hope the project can be extended to support the ETH port.
Hello, next one who is interested to ethernet support :)
Regards, Jan
Hi, any option to also work with a W5500 module? Thanks
Sorry, not so far.
Am 21. Februar 2024 22:05:05 schrieb ortegafernando @.***>:
Hi, any option to also work with a W5500 module? Thanks — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
--18dcf9df1843ec727ae69b14b0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Am 21. Februar 2024 22:05:05 schrieb ortegafernando <notificati= ***@***.***>:
Hi, any option to also work with a W5500 module? Thanks
=E2= =80=94
Reply to this email directly, view it on GitHub= , or unsubscribe.
You are receiving this because yo= u commented.Message ID: <martin-ger/esp32_nat_router/issues= /33/1957811439@github.c= om>
--18dcf9df1843ec727ae69b14b0--
Sorry, not so far. Am 21. Februar 2024 22:05:05 schrieb ortegafernando @.***>: … Hi, any option to also work with a W5500 module? Thanks — Reply to this email directly, view it on GitHub, or unsubscribe.
Hi @martin-ger , I have just read here that with Arduino Core 3.0.0. W5500 is natively supported. Does it change anything for getting a nat router with W5500 module?
https://github.com/arendst/Tasmota/discussions/18207#discussioncomment-8565056