Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WT32-ETH01 Support? #33

Open
19leva89 opened this issue Jan 9, 2021 · 29 comments
Open

WT32-ETH01 Support? #33

19leva89 opened this issue Jan 9, 2021 · 29 comments

Comments

@19leva89
Copy link

19leva89 commented Jan 9, 2021

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

@martin-ger
Copy link
Owner

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

@19leva89
Copy link
Author

19leva89 commented Jan 9, 2021

OK, thanks, I will wait with impatience!

@beta-tester
Copy link

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
Copy link

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
Copy link
Author

19leva89 commented Feb 16, 2021 via email

@beta-tester
Copy link

beta-tester commented Feb 16, 2021

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
Copy link
Author

19leva89 commented Feb 17, 2021 via email

@19leva89
Copy link
Author

19leva89 commented Feb 18, 2021 via email

@r32190
Copy link

r32190 commented Feb 18, 2021

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
Copy link

beta-tester commented Feb 18, 2021

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
Copy link
Author

19leva89 commented Feb 18, 2021 via email

@beta-tester
Copy link

beta-tester commented Feb 22, 2021

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
Copy link
Author

19leva89 commented Feb 23, 2021 via email

@ericfont
Copy link

ericfont commented Dec 8, 2021

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
Copy link

ygoe commented Feb 20, 2022

@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
Copy link

@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

@jokerjmv
Copy link

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
Copy link

tifou92 commented Sep 14, 2022

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
Copy link

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
Copy link

jokerjmv commented Sep 15, 2022 via email

@tifou92
Copy link

tifou92 commented Sep 15, 2022

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
Copy link

beta-tester commented Oct 4, 2022

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
Copy link

another candidat with eth:

@olloESP
Copy link

olloESP commented May 11, 2023

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
Copy link

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

Regards,
Jan

@ortegafernando
Copy link

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

@martin-ger
Copy link
Owner

martin-ger commented Feb 22, 2024 via email

@ortegafernando
Copy link

ortegafernando commented Feb 23, 2024

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?

arendst/Tasmota#18207 (reply in thread)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests