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

ESP32 with wired LAN and PoE #8503

Closed
nagyrobi opened this issue May 21, 2020 · 113 comments
Closed

ESP32 with wired LAN and PoE #8503

nagyrobi opened this issue May 21, 2020 · 113 comments
Assignees
Labels
enhancement Type - Enhancement that will be worked on fixed Result - The work on the issue has ended

Comments

@nagyrobi
Copy link
Contributor

nagyrobi commented May 21, 2020

Have you looked for this feature in other issues and in the docs?
The need to run Tasmota on Ethernet-connected devices is obvious. We could finally dump all the issues WiFi may cause in certain cases and build stable and secure systems relying on cables.

Is your feature request related to a problem? Please describe.
wESP32 is a very professional approach to the ESP family. https://wesp32.com/

Basically what it does is that it uses some of the ESP32-WROOM-32 pins connected to an Ethernet PHY module, which is also PoE (supporting IEEE 802.3at standard and passive modes) not only for powering the ESP module itself, but also giving enough power to other accessories like sensors etc.

In the original firmware the module's WiFi part can be still used as a redundant backup connection to the network when wired network fails.

Describe the solution you'd like
Please add support for this wESP32 module, now that ESP32 platform starts to be supported by Tasmota.

Describe alternatives you've considered
There are none so far.

Additional context
kép

I am aware this is not going to happen with two clicks, but it's worth the effort.

@s-hadinger
Copy link
Collaborator

The device costs 50€. That's quite high, especially compared to a regular esp32 and a POE splitter.

@nagyrobi
Copy link
Contributor Author

It's not just an esp32 and a POE splitter. It has an Ethernet PHY module on it, allowing wired LAN connections with the module. How many other such modules are out there?

@Jason2866
Copy link
Collaborator

@s-hadinger this board looks interesting https://www.olimex.com/Products/IoT/ESP32/ESP32-POE/open-source-hardware

@nagyrobi
Copy link
Contributor Author

Good find!
kép
Let's collect all such models in this issue.

@nagyrobi nagyrobi changed the title Wired ESP32 with PoE ESP32 with wired LAN and PoE May 21, 2020
@ascillato2 ascillato2 added Device not Supported Result - Device is not supported feature request (devs?) Action - awaiting response from developers labels May 21, 2020
@ascillato2
Copy link
Collaborator

Have you tested if LAN connection works fine using Arduino core? Do you have any small sketch using that ethernet chip?

@nagyrobi
Copy link
Contributor Author

Look here: https://github.com/OLIMEX/ESP32-POE

@s-hadinger
Copy link
Collaborator

Tasmota, esp32, ble, poe, ethernet, arduino compatible and affordable. I start to like it very much. Nice find!

@hagenbuch
Copy link

hagenbuch commented Jun 3, 2020

I support this feature request strongly: This family of devices need some power supply, running from a battery is mostly impossible due to the relatively high power demand of the Wifi.

Therefor, it is an advantage if we can power it via one cable only, thus Ethernet/LAN.

Also, ESP32 is one of the rare chips able to handle HTTPS / SSL / TLS properly. This is a precondition to maiking things like electrical door locks and the like... WESP32 can even deliver 12 V 1 A, getting its power from PoE - this is what you need for a solenoid!

It would be awesome if you could add LAN support...

@austwhite
Copy link

austwhite commented Jun 4, 2020

Having ESP32 support and LAN support is something very interesting for me too.
Supporting this request.
Given these can be had quite economically now, it would be good to see this support.

@cg089
Copy link

cg089 commented Jun 4, 2020

+1 for ethernet support (esp32-poe works like a charm with ethernet and esphome)

@dweston
Copy link

dweston commented Jun 5, 2020

The device costs 50€. That's quite high, especially compared to a regular esp32 and a POE splitter.

@s-hadinger US$55 for a 1 off wESP32 is expensive, I agree. However it can be purchased in volume with a price as low as US38/unit in quantities >100. At that latter price it is starting to become realistic as a LED driver/sensor board when you take into account the board can deliver circa 13W @ 12V. PoE driven LED lighting becomes feasible when driven from a variety of cost effective PoE switches. I'm using Netgear GS728TP switches, which have a 190W total PoE power budget supplied from 16 PoE 802.3af ports (15W capable) and 8 PoE+ 802.3at (38W capable) ports [can be purchased on eBay for as low as US $169.00]. Averaged out over many ports, taking into account the cost of conventional LED power supply components provision & installation, results in a more manageable cost overall. Furthermore the GS728TP can be monitored and controlled via SNMP, enabling innovation in sector lighting energy management. Quiescent power consumption of many LED drivers can be as high as several watts even with the luminaire (LED) fully turned off. So being able to fully disable the power supply to multiple drivers based on ambient light and body movement is attractive as well.

The dilemma remains with which firmware to implement on these devices. ESPHome on the wESP32 or the Olimex ESP32 PoE boards currently appears to be the way to go, but the prospect of a Tasmota variant becoming available is really the ultimate Holy Grail.

@s-hadinger
Copy link
Collaborator

s-hadinger commented Jun 5, 2020

Interesting perspectives. I believe anything above the $20 limit makes it harder for makers to hack and break. I'm still waiting my Olimex to arrive.

Tasmota on ESP32 is still early stage, but promising. Theo is very active on this front.

In order to drive LEDs at 13W, you will need both the on-board POE power supply to be sized for it (are they?) and some power drivers for the LEDs (MOSFET?). And a nice case to make it pretty.

Edit: according to the FAQ, the Olimex board can only deliver 4W, which leaves ~3W usable.

@nagyrobi
Copy link
Contributor Author

nagyrobi commented Jun 5, 2020

Where do you take this $20 limit from?
As soon as Theo provides a statement that wESP32 can run Tasmota, I'll be sure to order at least 2 pieces. I'm pretty fed up with unreliable chinese pieces, and WiFi coverage issuses in certain cases. wESP32 seems to be a premium quality and I am willing to wire up things as much as possible.
And I bet I'm not the only one thinking like that.

@lbernstone
Copy link

Direct from the manufacturer:
https://www.mouser.com/new/espressif/espressif-esp32-ethernet-kit/

@arendst
Copy link
Owner

arendst commented Jun 6, 2020

Ordered the olimex iso one to play with...

@hagenbuch
Copy link

I can send you one for free, we are in Germany, right?

@arendst
Copy link
Owner

arendst commented Jun 6, 2020

We are in the Netherlands, small province of Germany ;-)

@hagenbuch
Copy link

hagenbuch commented Jun 6, 2020

Not yet :) Well I can send it to the Netherlands too if you like.

@arendst
Copy link
Owner

arendst commented Jun 6, 2020

Pls mail me from the github mainpage

@hagenbuch
Copy link

Done :)

@TrDA-hab
Copy link

TrDA-hab commented Jun 7, 2020

https://norvi.lk/industrial-esp32-norvi-iiot/

@hagenbuch
Copy link

Yeah thanks, close but no LAN / Ethernet. Wifi inside a metal box is not exactly what I need :)

@hagenbuch
Copy link

hagenbuch commented Jun 8, 2020

Thank you. I knew most of them. Now the only question is: Are they all supported by Tasmota and / or how do we make a configuration file for them if they are not yet supported?

@nagyrobi
Copy link
Contributor Author

nagyrobi commented Jun 9, 2020

Well, hopefully soon we will be able to make a config almost the same way as we would do with the ESP8266-based units.

Today I was in a place where I could have instantly suggested to use Tasmota for a small automation task, but was not able to because of the WiFi requirement of ESP8266. Here only Ethernet is available and deploying WiFis just for this reason is simply unacceptable.

@Jason2866
Copy link
Collaborator

@nagyrobi @hagenbuch @TrDA-hab
Since Theo ordered a Olimex ESP32 ISO he will work on (for sure).
Just give him a little time. It is done when it is done 😊

@nagyrobi
Copy link
Contributor Author

nagyrobi commented Jun 9, 2020

I don't mean to rush anyone. I was just emphasizing that the need of LAN without any WiFi is a real need.

@barbudor
Copy link
Contributor

That has already been done
Commands for ESP32 ethernet configuration EthIpAddress, EthGateway, EthSubnetmask, EthDnsServer1 and EthDnsServer2 (#14385)

@thermseekr
Copy link

Awesome! Thank you very much!

@Stonedfield
Copy link

I am successfully using the WT32-ETH01 with Ethernet only and like to know if it is possible to disable WiFi by default already in user_config_override.h as I am never want to use the WiFi option at no time.

@ascillato
Copy link
Contributor

...if it is possible to disable WiFi by default already in user_config_override.h as I am never want to use the WiFi option at no time.

in user_config_override.h you can add:

#define USER_RULE1 "ON system#boot DO wifi 0 ENDON"
#define USER_BACKLOG "Rule1 1"

Remember to erase all flash before flashing (or do reset 1 afterwards) so as to make Tasmota use the defaults you put in user_config_override.h

@smartboart
Copy link

Hi thanks for the ethernet olimex poe tasmota Firmware...since Update to 11.0.0.1 the ethernet Connecticut does not work Anymore..anybody Else with this issue here? Can i get ethernet Version 10.0.0.1 somewhere to download again?

@barbudor
Copy link
Contributor

There is no standard Tasmota build for the Olimex board
If you want Ethernet support you should compile your own build as specified in the docs.

@labmaster
Copy link

labmaster commented Feb 19, 2022

@smartboart
Here is a binary for the Olimex ESP-POE with included Ethernet driver support:
tasmota32.factory.zip

This binary is compiled with the following "my_user_config.h" and "platformio_override.ini"
config.zip

Maybe this is useful for you, but i would highly suggest to get into the compile process on you own, as this offers you a huge amount of options to exactly match your need

@smartboart
Copy link

smartboart commented Feb 19, 2022

Hello i have already installed pre Compiled bin file 10.0.0.1which is fine for olimex.. from jason2866..see link..
https://github.com/Jason2866/Merge/tree/firmware
His old Version 10 Was good...11.0.0.1 from this link does not work ..
I Found his Version 10 again..

@smartboart
Copy link

smartboart commented Feb 19, 2022

Here ist ethernet pre compiled v11 where ethernet not works..https://github.com/Jason2866/Tasmota-specials/blob/firmware/firmware/tasmota32/other/tasmota32-ethernet.bin

@smartboart
Copy link

@barbudor
Copy link
Contributor

If Jason 's ethernet v11 doesn' t work please open a new issue and provide all required informations

@dexterbot80
Copy link

dexterbot80 commented Jun 11, 2022

Hello. Can you help me to enable ethernet port for OLIMEX ESP32-GATEWAY board ? I use Tasmota V10 ethernet pre compiled.
My RJ45 leds blinking but i do not be able to connect the board to the network using the ethernet port.
ESP32-GATEWAY.pdf
Thank you

@sfromis
Copy link
Contributor

sfromis commented Jun 11, 2022

I have no experience with that board, but as a first longshot, I'd be strongly tempted to try if the template for another ESP32 Ethernet device from Olimex "happens" to work.
https://templates.blakadder.com/olimex_ESP32-POE.html

More generally, the config commands EthAddress, EthClockMode and EthType needs to match the hardware.
https://tasmota.github.io/docs/Commands/#ethernet
Default values may work, but not for all boards....

@s-hadinger
Copy link
Collaborator

I will check tomorrow with Olimex POE but I believe that the default values match Olimex Ethernet boards for Eth parameters

@dexterbot80
Copy link

Hello, #ethernet commands not working for OLIMEX ESP32-GATEWAY? I can't set static ip
Can anyone tell me what I'm doing wrong here?
Thanks

04:04:07.171 CMD: Ethernet
04:04:07.183 MQT: stat/SGP30_LIVING/RESULT = {"Ethernet":"ON"}
04:04:20.096 CMD: EthAddress
04:04:20.109 MQT: stat/SGP30_LIVING/RESULT = {"EthAddress":0}
04:04:30.215 CMD: EthClockMode
04:04:30.228 MQT: stat/SGP30_LIVING/RESULT = {"EthClockMode":3}
04:04:42.633 CMD: EthType
04:04:42.647 MQT: stat/SGP30_LIVING/RESULT = {"EthType":0}
04:04:56.206 CMD: EthIpAddress
04:04:56.219 MQT: stat/SGP30_LIVING/RESULT = {"Command":"Unknown"}
04:05:07.877 CMD: EthGateway
04:05:07.891 MQT: stat/SGP30_LIVING/RESULT = {"Command":"Unknown"}
04:05:20.956 CMD: EthSubnetmask
04:05:20.969 MQT: stat/SGP30_LIVING/RESULT = {"Command":"Unknown"}

@sfromis
Copy link
Contributor

sfromis commented Jun 12, 2022

Possibly using a too old Tasmota binary. Docs try to match current binaries, and new features are added often. Of course, you also need to have the pins configured for having Ethernet support.

@dexterbot80
Copy link

Hello, It is posible to use BME680 and SGP30 sensors with OLIMEX ESP32 POE and Tasmota ethernet connected ? Thank you

@sfromis
Copy link
Contributor

sfromis commented Jun 18, 2022

Yes

@dexterbot80
Copy link

Yes
Thanks for the extremely quick response.
You could help me with a bin file

@sfromis
Copy link
Contributor

sfromis commented Jun 18, 2022

Just the standard tasmota32.bin

@dexterbot80
Copy link

I need to use BME680 and SGP30 sensors on I2c

@sfromis
Copy link
Contributor

sfromis commented Jun 18, 2022

Obviously, and that was what my answer covers. Point being that you configure I2C after installing Tasmota, and sensor drivers present in the binary will usually detect if "their" sensor is present.

@dexterbot80
Copy link

dexterbot80 commented Jun 18, 2022

I understand, so in standard tasmota32 bin I activate the i2c pins and the BME680 and SGP30 sensors will be detected automatically. Have Ethernet port activated? Brilliant
Can you help me with the latest version please? Thank you professor :)

@Jason2866
Copy link
Collaborator

There is a big help, our docu ;-) https://tasmota.com

@dexterbot80
Copy link

i see the website but when i install Visual Studio and Platformio my computer crash - esp 32 is more faster than my PC :)

@sfromis
Copy link
Contributor

sfromis commented Jun 18, 2022

Why do you start with Visual studio and all that? The page linked has a bold Install Tasmota using....
No compile or development environment needed. Just a few clicks, after wiring up.
Next step, find and configure the template.... https://templates.blakadder.com/

@dexterbot80
Copy link

Hi, Do you say that the ethernet port can be activated on tasmota32-allsensors.bin for example?

@sfromis
Copy link
Contributor

sfromis commented Jun 21, 2022

Not what I said. You do not need allsensors for what you posted about, just use the default Tasmota build.

Beware that you can have no stable expectation for what the "experimental" builds like allsensors "happens" to include.

@Jason2866
Copy link
Collaborator

Jason2866 commented Jun 21, 2022

Anyway, i will lock this CLOSED issue. If you have questions. Please open in Discussions.

Repository owner locked as off-topic and limited conversation to collaborators Jun 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Type - Enhancement that will be worked on fixed Result - The work on the issue has ended
Projects
None yet
Development

No branches or pull requests