esp32_nat_router icon indicating copy to clipboard operation
esp32_nat_router copied to clipboard

WT32-ETH01 Support?

Open 19leva89 opened this issue 4 years ago • 30 comments

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

19leva89 avatar Jan 09 '21 13:01 19leva89

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

martin-ger avatar Jan 09 '21 16:01 martin-ger

OK, thanks, I will wait with impatience!

19leva89 avatar Jan 09 '21 17:01 19leva89

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

beta-tester avatar Feb 16 '21 06:02 beta-tester

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.

grewhit25 avatar Feb 16 '21 11:02 grewhit25

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 .

19leva89 avatar Feb 16 '21 12:02 19leva89

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.

beta-tester avatar Feb 16 '21 15:02 beta-tester

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 .

19leva89 avatar Feb 17 '21 08:02 19leva89

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 .

19leva89 avatar Feb 18 '21 11:02 19leva89

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.

r32190 avatar Feb 18 '21 13:02 r32190

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.

beta-tester avatar Feb 18 '21 13:02 beta-tester

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

19leva89 avatar Feb 18 '21 14:02 19leva89

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.

beta-tester avatar Feb 22 '21 21:02 beta-tester

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 .

19leva89 avatar Feb 23 '21 07:02 19leva89

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 avatar Dec 08 '21 01:12 ericfont

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

ygoe avatar Feb 20 '22 22:02 ygoe

@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 run make menuconfig or idf.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

beta-tester avatar Feb 21 '22 08:02 beta-tester

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.

jokerjmv avatar Aug 30 '22 17:08 jokerjmv

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?

tifou92 avatar Sep 14 '22 17:09 tifou92

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 avatar Sep 14 '22 17:09 jokerjmv

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

jokerjmv avatar Sep 15 '22 18:09 jokerjmv

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

tifou92 avatar Sep 15 '22 18:09 tifou92

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.

beta-tester avatar Oct 04 '22 00:10 beta-tester

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

rrwakc avatar Feb 13 '23 18:02 rrwakc

another candidat with eth:

beta-tester avatar Feb 13 '23 18:02 beta-tester

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.

olloESP avatar May 11 '23 14:05 olloESP

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

Regards, Jan

jano1276 avatar Nov 19 '23 17:11 jano1276

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

ortegafernando avatar Feb 21 '24 20:02 ortegafernando

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

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


--18dcf9df1843ec727ae69b14b0--

martin-ger avatar Feb 22 '24 07:02 martin-ger

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

ortegafernando avatar Feb 23 '24 21:02 ortegafernando