martin-ger / esp32_nat_router

A simple NAT Router for the ESP32
1.37k stars 286 forks source link

WT32-ETH01 Support? #33

Open 19leva89 opened 3 years ago

19leva89 commented 3 years ago

Good afternoon, can you make a NAT Router from the WT32-ETH01 board using your firmware? wt32-eth01

martin-ger commented 3 years ago

I'm sure, it can be done easily, but the current software has no Ethernet support. Interesting board - will try to get one...

19leva89 commented 3 years ago

OK, thanks, I will wait with impatience!

beta-tester commented 3 years ago

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

grewhit25 commented 3 years ago

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.

19leva89 commented 3 years ago

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 notifications@github.com:

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 .

beta-tester commented 3 years ago

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 support@wireless-tag.com and asked what GPIOs they used to SMI signals and PHY reset. when i get an answer i will write it down here.

19leva89 commented 3 years ago

Bit setting menuconfig, wi-fi work, but does not want to receive IP. I will continue to investigate.

вт, 16 февр. 2021 г. в 17:53, beta-tester notifications@github.com:

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 .

19leva89 commented 3 years ago

I suffered for two days, but I could not get IP.

ср, 17 февр. 2021 г. в 10:19, Дмитрий С 19leva89@gmail.com:

Bit setting menuconfig, wi-fi work, but does not want to receive IP. I will continue to investigate.

вт, 16 февр. 2021 г. в 17:53, beta-tester notifications@github.com:

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 .

r32190 commented 3 years ago

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.

beta-tester commented 3 years ago

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.

19leva89 commented 3 years ago

The device that is connected to the AP dont get IP.

beta-tester commented 3 years ago

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.

19leva89 commented 3 years ago

Oh thank you, I'll keep myself!

пн, 22 февр. 2021 г. в 23:39, beta-tester notifications@github.com:

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 .

ericfont commented 2 years ago

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
ygoe commented 2 years ago

@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.

beta-tester commented 2 years ago

@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:

i would be happy when i am wrong and the ETH part is implemented and working already

jokerjmv commented 2 years ago

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.

tifou92 commented 2 years ago

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?

jokerjmv commented 2 years ago

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.

jokerjmv commented 2 years ago

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: @.***>

tifou92 commented 2 years ago

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...

beta-tester commented 2 years ago

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.

rrwakc commented 1 year ago

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

beta-tester commented 1 year ago

another candidat with eth:

olloESP commented 1 year ago

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.

jano1276 commented 11 months ago

Hello, next one who is interested to ethernet support :)

Regards, Jan

ortegafernando commented 8 months ago

Hi, any option to also work with a W5500 module? Thanks

martin-ger commented 8 months ago

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.= w3.org/TR/html4/loose.dtd">

Sorry, not so far.

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.3D""Message ID: <martin-ger/esp32_nat_router/issues= /33/1957811439@github.c= om>


--18dcf9df1843ec727ae69b14b0--

ortegafernando commented 8 months ago

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

FulvioSpelta commented 2 months ago

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.

Any news about wifi-eth support ? I'm available for testing if help is needed. Thanks