WT32-ETH01

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
Rub87
Normal user
Posts: 28
Joined: 29 Nov 2020, 22:28
Location: Belgium

Re: WT32-ETH01

#51 Post by Rub87 » 30 Jan 2021, 13:51

How can i attempt to resolve that?

TD-er
Core team member
Posts: 5692
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: WT32-ETH01

#52 Post by TD-er » 30 Jan 2021, 14:53

Not sure, I have to look into the code for this.

Rub87
Normal user
Posts: 28
Joined: 29 Nov 2020, 22:28
Location: Belgium

Re: WT32-ETH01

#53 Post by Rub87 » 31 Jan 2021, 23:06

Code: Select all

217 : Info   : Connect to:
217 : Info   : Ethernet
218 : Info   : Eth Wifi mode: Ethernet ETH: PHY Typee: LAN8710 PHYAddr: 0 Eth Clock mode: External crystal oscillator MDC Pin: 16 MIO Pin: 17 Power Pin: -1
222 : Info   : ETH Started
4223 : Info   : ETH Connected
4224 : Info   : firstLoopConnectionsEstablished
7230 : Info   : ETH MAC: A4:CF:12:64:B3:8F IPv4: 10.0.1.44 (ESP-Easy) GW: 10.0.1.1 SN: 255.255.255.0 FULL_DUPLEX 100Mbps
seems the clock mode has to be set to External osc... :ugeek:

TD-er
Core team member
Posts: 5692
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: WT32-ETH01

#54 Post by TD-er » 01 Feb 2021, 00:50

Ah, so it does have its own crystal oscillator?
Yep, then you should set it to have one external :)

Rub87
Normal user
Posts: 28
Joined: 29 Nov 2020, 22:28
Location: Belgium

Re: WT32-ETH01

#55 Post by Rub87 » 01 Feb 2021, 08:13

Yep. Just spotted it also..


The new lan8720 i put on has quite different look then old one. It is more round off whereas the old was very edgy, alot like these bga memory chips. Wasnt easy to get it on with a paint removal gun
Attachments
6FDBCAAC-9725-49F9-B6A6-7C093D6D4B26.jpeg
6FDBCAAC-9725-49F9-B6A6-7C093D6D4B26.jpeg (2.96 MiB) Viewed 5383 times
9A82A939-5364-4CB8-A70E-73AAB967446B.jpeg
9A82A939-5364-4CB8-A70E-73AAB967446B.jpeg (2.98 MiB) Viewed 5383 times

TD-er
Core team member
Posts: 5692
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: WT32-ETH01

#56 Post by TD-er » 01 Feb 2021, 12:43

Wow, you removed it using a paint removal gun?

The LAN8710A does have 32 pads, while the LAN8720A has only 24 (25 if you count the GND at the bottom)
Difference between both is that the LAN8720A only supports RMII and no longer the older 4 wire version.
But since we only use that one, it doesn't matter to us.

Rub87
Normal user
Posts: 28
Joined: 29 Nov 2020, 22:28
Location: Belgium

Re: WT32-ETH01

#57 Post by Rub87 » 01 Feb 2021, 15:11

Weapon of choice 😎
Attachments
67193D76-B3C3-4EFC-A2CD-C6322B022575.jpeg
67193D76-B3C3-4EFC-A2CD-C6322B022575.jpeg (3.93 MiB) Viewed 5375 times

TD-er
Core team member
Posts: 5692
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: WT32-ETH01

#58 Post by TD-er » 01 Feb 2021, 15:20

Well I don't think I can do that with such a blower myself, so respect :)

Rub87
Normal user
Posts: 28
Joined: 29 Nov 2020, 22:28
Location: Belgium

Re: WT32-ETH01

#59 Post by Rub87 » 03 Feb 2021, 11:57

Now could you aybe add the setting for the wESP32 in the code so there will also be a .bin which has directly the correct settings inside for other users that maybe also like the wESP32? despte its higher price its pretty well made thing with proper PoE power identification and galvnic isolation etc.

TD-er
Core team member
Posts: 5692
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: WT32-ETH01

#60 Post by TD-er » 03 Feb 2021, 13:44

Please show me the settings you now use and I will add them.

Rub87
Normal user
Posts: 28
Joined: 29 Nov 2020, 22:28
Location: Belgium

Re: WT32-ETH01

#61 Post by Rub87 » 03 Feb 2021, 13:50

Code: Select all

 Eth Wifi mode: Ethernet ETH: PHY Typee: LAN8710 PHYAddr: 0 Eth Clock mode: External crystal oscillator MDC Pin: 16 MIO Pin: 17 Power Pin: -1  

Smotek7
Normal user
Posts: 30
Joined: 01 Aug 2020, 16:18
Location: SK

Re: WT32-ETH01

#62 Post by Smotek7 » 03 Feb 2021, 15:48

Hi,
is in the current release for ESP32 .bin which one can flasch to WT32-ETH1?
Or I need to create my own for WT32.

TD-er
Core team member
Posts: 5692
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: WT32-ETH01

#63 Post by TD-er » 03 Feb 2021, 16:36

You can flash any esp32 eth build as long as your board uses LAN8710A or LAN8720A (or the tk<somewhat> board which I forgot the name)

Only thing is, you may need to configure the eth yourself by hand as we don't have a predefined "factory default" setting for it yet.

Smotek7
Normal user
Posts: 30
Joined: 01 Aug 2020, 16:18
Location: SK

Re: WT32-ETH01

#64 Post by Smotek7 » 03 Feb 2021, 22:24

Everything works.
To summarize:
Board WT32-ETH01
USB to RS232 converter
IO0 to GND
Flash: ESP_Easy_mega_20210114_normal_ESP32_4M316k_ETH-factory.bin
Connect to wifi and setting lan.
lan set.JPG
lan set.JPG (53.86 KiB) Viewed 5123 times
Disconnect IO0
Restart and the module will connect to the lan.

User avatar
enesbcs
Normal user
Posts: 578
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: WT32-ETH01

#65 Post by enesbcs » 03 Feb 2021, 22:43

Smotek7 wrote: 03 Feb 2021, 22:24 Flash: ESP_Easy_mega_20210114_normal_ESP32_4M316k_ETH-factory.bin
Connect to wifi and setting lan.
lan set.JPG
Yes, i can confirm. :)
viewtopic.php?p=49536#p49536

User avatar
iron
Normal user
Posts: 147
Joined: 24 Sep 2016, 08:37
Location: Veria, Greece
Contact:

Re: WT32-ETH01

#66 Post by iron » 04 Feb 2021, 20:09

@TD-er perhaps it is safe to assume it is time to set a predefined setting for this ?
-D

hamster
Normal user
Posts: 62
Joined: 27 Sep 2015, 21:01
Location: UK

Re: WT32-ETH01

#67 Post by hamster » 04 Feb 2021, 21:38

I created a nice enclosure for the WT32-ETH01 + Relays
see thingiverse.. https://www.thingiverse.com/thing:4750234

TD-er
Core team member
Posts: 5692
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: WT32-ETH01

#68 Post by TD-er » 04 Feb 2021, 22:35

iron wrote: 04 Feb 2021, 20:09 @TD-er perhaps it is safe to assume it is time to set a predefined setting for this ?
Yep.
Can you make an issue on Github for it, as these things on the forum as next to impossible to find back later when I'm at a computer I can actually code and compile on and the forum doesn't have a mark unread....

TD-er
Core team member
Posts: 5692
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: WT32-ETH01

#69 Post by TD-er » 04 Feb 2021, 22:36

hamster wrote: 04 Feb 2021, 21:38 I created a nice enclosure for the WT32-ETH01 + Relays
see thingiverse.. https://www.thingiverse.com/thing:4750234
Nice enclosure!

Cdzn
Normal user
Posts: 40
Joined: 06 Oct 2020, 18:15

Re: WT32-ETH01

#70 Post by Cdzn » 22 Nov 2021, 08:35

Is there any chance to start lan8720 on esp 32 DevKit V1? I have no GPIO-0!
Attachments
esp32_pinout.png
esp32_pinout.png (93.34 KiB) Viewed 491 times

User avatar
Ath
Normal user
Posts: 1274
Joined: 10 Jun 2018, 12:06
Location: NL

Re: WT32-ETH01

#71 Post by Ath » 22 Nov 2021, 08:43

You should be able to use another unused GPIO pin instead of GPIO0, the configuration for the LAN interface on the _ETH builds is quite flexible.
Might be better to avoid the (few) input-only pins, I assume, those can be used for switches etc.
/Ton

TD-er
Core team member
Posts: 5692
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: WT32-ETH01

#72 Post by TD-er » 22 Nov 2021, 09:03

GPIO-0 is sadly the only one to use when your LAN board has an external crystal, like those boards sold on Ali Express.

But, there is hope, as I am also using those on my board designs :)

There are 2 ways you can make this work:
- Wire a GPIO pin to the enable pin of the crystal (probably need a transistor to make sure it remains low at boot)
- Add one of those "analog switch" chips to toggle between the LAN clock and "normal GPIO-0" mode.

I implemented the latter as it seemed to be easier for me, when designing my own boards. But those chips are quite small so no way to implement it on a breadboard.
See part of my schematics below.
The 2x7 pins pinheader is wired for those boards from Ali.
The NC pin on that header is here labelled for "OSC_EN" just in case I needed to go for option 1, but the analog switch performs fine.

On previous builds I used another chip, but those are out of stock at JLCPCB, so that's why I used this one.

Keep in mind that the clock signal is high frequency (25 or 50 MHz), so keep it as short as possible.
The LAN chip may take quite a lot of current. 50 - 100 mA is not uncommon when enabled.


If your board doesn't have GPIO-0 output to a pin, you may want to look at the "boot" switch, as that one is connected to GPIO-0
But for an external eth board with crystal you must use GPIO-0.
Not sure what may happen if you just short the crystal output by pressing the button, so you may also remove the button and make it into a pin header. In case of emergency you can then disconnect the ETH clock signal and short the pins to enter flash mode (if the onboard transistors can't help you here)
Attachments
2021-11-22 08_59_08-Schematic_Brick4U ESP32 rev7.10 ext. LAN8720A DC-DC onboard_2021-11-20.pdf - Ado.png
2021-11-22 08_59_08-Schematic_Brick4U ESP32 rev7.10 ext. LAN8720A DC-DC onboard_2021-11-20.pdf - Ado.png (119.29 KiB) Viewed 486 times

Cdzn
Normal user
Posts: 40
Joined: 06 Oct 2020, 18:15

Re: WT32-ETH01

#73 Post by Cdzn » 22 Nov 2021, 09:31

TD-er wrote: 22 Nov 2021, 09:03 GPIO-0 is sadly the only one to use when your LAN board has an external crystal, like those boards sold on Ali Express.

But, there is hope, as I am also using those on my board designs :)

There are 2 ways you can make this work:
- Wire a GPIO pin to the enable pin of the crystal (probably need a transistor to make sure it remains low at boot)
- Add one of those "analog switch" chips to toggle between the LAN clock and "normal GPIO-0" mode.

I implemented the latter as it seemed to be easier for me, when designing my own boards. But those chips are quite small so no way to implement it on a breadboard.
See part of my schematics below.
The 2x7 pins pinheader is wired for those boards from Ali.
The NC pin on that header is here labelled for "OSC_EN" just in case I needed to go for option 1, but the analog switch performs fine.

On previous builds I used another chip, but those are out of stock at JLCPCB, so that's why I used this one.

Keep in mind that the clock signal is high frequency (25 or 50 MHz), so keep it as short as possible.
The LAN chip may take quite a lot of current. 50 - 100 mA is not uncommon when enabled.


If your board doesn't have GPIO-0 output to a pin, you may want to look at the "boot" switch, as that one is connected to GPIO-0
But for an external eth board with crystal you must use GPIO-0.
Not sure what may happen if you just short the crystal output by pressing the button, so you may also remove the button and make it into a pin header. In case of emergency you can then disconnect the ETH clock signal and short the pins to enter flash mode (if the onboard transistors can't help you here)
So many manipulation. Easy way is buy new esp32)
I found this solution but it works, i guess, only with custom firmware. can't figure out how starting it with my esp.

TD-er
Core team member
Posts: 5692
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: WT32-ETH01

#74 Post by TD-er » 22 Nov 2021, 09:44

What do you mean by only working with a custom build?

Which eth module do you use?
And what do you mean with "how starting it with my esp."
I assumed it was about the GPIO-0 being toggled at boot.

Another way is to let the ESP32 send the clock to the eth board, but that probably requires modification on the external eth board, if you're using the one I think you are using.

Cdzn
Normal user
Posts: 40
Joined: 06 Oct 2020, 18:15

Re: WT32-ETH01

#75 Post by Cdzn » 22 Nov 2021, 09:57

TD-er wrote: 22 Nov 2021, 09:44 What do you mean by only working with a custom build?

Which eth module do you use?
And what do you mean with "how starting it with my esp."
I assumed it was about the GPIO-0 being toggled at boot.

Another way is to let the ESP32 send the clock to the eth board, but that probably requires modification on the external eth board, if you're using the one I think you are using.
Custom means firmware for arduino. i forget send link http://arduino.ru/forum/apparatnye-vopr ... -devkit-v1
I using lan8720
starting means how can i get this works with esp32.
Td-er please read the link above, maybe You can find out how get this work together.

TD-er
Core team member
Posts: 5692
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: WT32-ETH01

#76 Post by TD-er » 22 Nov 2021, 10:17

If Google translate didn't mess up, then I think this is almost exactly what I described:

Either disable the crystal during boot by connecting the OSC_EN pin with the eth power pin (which can be configured in ESPEasy)
Only you have to probably invert the signal, hence my remark for the transistor.

The other idea they mention, so you don't need to use the clock on GPIO-0 is to use it on GPIO-17 (which is one of the options in ESPEasy if I'm not mistaken) but then you need to keep the OSC_EN pin pulled down.

Just make sure all other pins you need (see my schematic) are present on your board.
If GPIO-0 is missing, what other pins may be missing too?

Cdzn
Normal user
Posts: 40
Joined: 06 Oct 2020, 18:15

Re: WT32-ETH01

#77 Post by Cdzn » 22 Nov 2021, 10:33

TD-er wrote: 22 Nov 2021, 10:17 If Google translate didn't mess up, then I think this is almost exactly what I described:

Either disable the crystal during boot by connecting the OSC_EN pin with the eth power pin (which can be configured in ESPEasy)
Only you have to probably invert the signal, hence my remark for the transistor.

The other idea they mention, so you don't need to use the clock on GPIO-0 is to use it on GPIO-17 (which is one of the options in ESPEasy if I'm not mistaken) but then you need to keep the OSC_EN pin pulled down.

Just make sure all other pins you need (see my schematic) are present on your board.
If GPIO-0 is missing, what other pins may be missing too?
I have all pins needed except GPIO-0. I tryed his wiring but don`t get success.
in second case GPIO-17 i should connect to nINT/RETCLK (lan 8270). NC no need connection so it`s empty.
help with my screenshot please.
2021-11-22 163212.jpg
2021-11-22 163212.jpg (207.96 KiB) Viewed 463 times

User avatar
Ath
Normal user
Posts: 1274
Joined: 10 Jun 2018, 12:06
Location: NL

Re: WT32-ETH01

#78 Post by Ath » 22 Nov 2021, 10:37

Ah, another reason to avoid those 30 pin ESP32-Devkit1 boards, they lack some GPIOs being made available externally :o and especially GPIO0 can be nice to have available...

When using the, rather good available, actual WT32-ETH1 board, this shouldn't be an issue, AFAICS.
/Ton

User avatar
Ath
Normal user
Posts: 1274
Joined: 10 Jun 2018, 12:06
Location: NL

Re: WT32-ETH01

#79 Post by Ath » 22 Nov 2021, 10:38

Not sure how much difference it makes, but selecting the "Ethernet PHY type: LAN8720" could be of help?
/Ton

Cdzn
Normal user
Posts: 40
Joined: 06 Oct 2020, 18:15

Re: WT32-ETH01

#80 Post by Cdzn » 22 Nov 2021, 10:42

Ath wrote: 22 Nov 2021, 10:37 Ah, another reason to avoid those 30 pin ESP32-Devkit1 boards, they lack some GPIOs being made available externally :o and especially GPIO0 can be nice to have available...

When using the, rather good available, actual WT32-ETH1 board, this shouldn't be an issue, AFAICS.
Yep. Now i know.

TD-er
Core team member
Posts: 5692
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: WT32-ETH01

#81 Post by TD-er » 22 Nov 2021, 10:44

Pleae try with I2C address set to 1

Cdzn
Normal user
Posts: 40
Joined: 06 Oct 2020, 18:15

Re: WT32-ETH01

#82 Post by Cdzn » 22 Nov 2021, 10:49

TD-er wrote: 22 Nov 2021, 10:44 Pleae try with I2C address set to 1
Lan blinking bot don`t get addresse.

is it right what i`m doing on screenshot?
InkedWaveshare-LAN8720-modifications_LI.jpg
InkedWaveshare-LAN8720-modifications_LI.jpg (1.63 MiB) Viewed 448 times

TD-er
Core team member
Posts: 5692
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: WT32-ETH01

#83 Post by TD-er » 22 Nov 2021, 11:05

You probably need to pull the enable pin down via a 4k7 resistor.
And how is the clock signal connected to the ESP?

Cdzn
Normal user
Posts: 40
Joined: 06 Oct 2020, 18:15

Re: WT32-ETH01

#84 Post by Cdzn » 22 Nov 2021, 11:07

TD-er wrote: 22 Nov 2021, 11:05 You probably need to pull the enable pin down via a 4k7 resistor.
And how is the clock signal connected to the ESP?
Yep with 4k7 R.
nINT/RETCLK connected to GPIO-17.

TD-er
Core team member
Posts: 5692
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: WT32-ETH01

#85 Post by TD-er » 22 Nov 2021, 11:13

I don't know if the phase of the clock matters here.
GPIO-17 is the inverse signal of GPIO-16 (at least when it is set to be used as clock)
So you may also try GPIO-16.

Does the log suggest the ETH board is found?

Cdzn
Normal user
Posts: 40
Joined: 06 Oct 2020, 18:15

Re: WT32-ETH01

#86 Post by Cdzn » 22 Nov 2021, 11:23

TD-er wrote: 22 Nov 2021, 11:13 I don't know if the phase of the clock matters here.
GPIO-17 is the inverse signal of GPIO-16 (at least when it is set to be used as clock)
So you may also try GPIO-16.

Does the log suggest the ETH board is found?
FOund something
AP Mode: Client connected:Connected devices: 1
213841: UNKNOWN WIFI/ETH EVENT: 18
216695: WD : Uptime 4 ConnectFailures 0 FreeMem 175572 WiFiStatus WL_DISCONNECTED 6 ESPeasy internal wifi status: DISCONNECTED
216702: UNKNOWN WIFI/ETH EVENT: 18

TD-er
Core team member
Posts: 5692
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: WT32-ETH01

#87 Post by TD-er » 22 Nov 2021, 11:28

The summary like "ETH PHY Type: " should even be printed before it attempts to initialize the eth module.
Make sure it is still set to use Ethernet and not WiFi.

Smotek7
Normal user
Posts: 30
Joined: 01 Aug 2020, 16:18
Location: SK

Re: WT32-ETH01

#88 Post by Smotek7 » 22 Nov 2021, 11:29

I did it about a year ago.
It worked, but I don't remember the settings.
Then I bought a WT32.
LAN.JPG
LAN.JPG (31.3 KiB) Viewed 418 times

TD-er
Core team member
Posts: 5692
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: WT32-ETH01

#89 Post by TD-er » 22 Nov 2021, 11:31

Cdzn wrote: 22 Nov 2021, 11:23
TD-er wrote: 22 Nov 2021, 11:13 I don't know if the phase of the clock matters here.
GPIO-17 is the inverse signal of GPIO-16 (at least when it is set to be used as clock)
So you may also try GPIO-16.

Does the log suggest the ETH board is found?
FOund something
AP Mode: Client connected:Connected devices: 1
213841: UNKNOWN WIFI/ETH EVENT: 18
216695: WD : Uptime 4 ConnectFailures 0 FreeMem 175572 WiFiStatus WL_DISCONNECTED 6 ESPeasy internal wifi status: DISCONNECTED
216702: UNKNOWN WIFI/ETH EVENT: 18
What build are you running?
And especially what reported SDK version?

Cdzn
Normal user
Posts: 40
Joined: 06 Oct 2020, 18:15

Re: WT32-ETH01

#90 Post by Cdzn » 22 Nov 2021, 11:32

TD-er wrote: 22 Nov 2021, 11:28 The summary like "ETH PHY Type: " should even be printed before it attempts to initialize the eth module.
Make sure it is still set to use Ethernet and not WiFi.
I guess it will not work properly. I`m done today. almost 8 hours i wasted for it . Thanks all.

Cdzn
Normal user
Posts: 40
Joined: 06 Oct 2020, 18:15

Re: WT32-ETH01

#91 Post by Cdzn » 22 Nov 2021, 11:34

Smotek7 wrote: 22 Nov 2021, 11:29 I did it about a year ago.
It worked, but I don't remember the settings.
Then I bought a WT32.
LAN.JPG
Will try it later. Thank You. Need some rest.

Cdzn
Normal user
Posts: 40
Joined: 06 Oct 2020, 18:15

Re: WT32-ETH01

#92 Post by Cdzn » 22 Nov 2021, 11:38

TD-er wrote: 22 Nov 2021, 11:31
Cdzn wrote: 22 Nov 2021, 11:23
TD-er wrote: 22 Nov 2021, 11:13 I don't know if the phase of the clock matters here.
GPIO-17 is the inverse signal of GPIO-16 (at least when it is set to be used as clock)
So you may also try GPIO-16.

Does the log suggest the ETH board is found?
FOund something
AP Mode: Client connected:Connected devices: 1
213841: UNKNOWN WIFI/ETH EVENT: 18
216695: WD : Uptime 4 ConnectFailures 0 FreeMem 175572 WiFiStatus WL_DISCONNECTED 6 ESPeasy internal wifi status: DISCONNECTED
216702: UNKNOWN WIFI/ETH EVENT: 18
What build are you running?
And especially what reported SDK version?
Безымянный.png
Безымянный.png (77.37 KiB) Viewed 406 times

TD-er
Core team member
Posts: 5692
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: WT32-ETH01

#93 Post by TD-er » 22 Nov 2021, 11:39

If you have another of those modules, maybe you can (later) try it.
The LAN7820 is not as ESD resistant as I would have hoped.
I do have 2 boards here that show symptoms of ESD damage (or maybe bad solder joints?) which are not found anymore by the ESP, but the LED comes to life when you plugin in an ethernet cable.
So it is not entirely dead, but it is unusable.

Post Reply

Who is online

Users browsing this forum: No registered users and 31 guests