-
Notifications
You must be signed in to change notification settings - Fork 7
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
Ethernet Interface #47
Comments
If we find someone we may be able to do it, but because of the EMI aspects, this is currently out of scope. Too risky to create distortion of audio/video on the bus. Closed, until we find someone willing to work on this |
POE support would be a nice to have but not critical since a POE to RJ45 and USB C splitter could be used or the ESP32 board be fed via a USB C power supply. If the risk for basic Ethernet to create a ground loop is too high, that's a different story. Possible Ethernet chipsets could be:
Those seem to be pretty common, especially the W5500 is available in the tens of thousands. |
I do have limited experience with the ENC28J60 from Microchip and more experience with the W5500 from WizNet (both connected via SPI), however on the RP2040, not on the ESP32. For MQTT, there will be no bandwidth problem. Audio might work as well. Raw video might bring us to some limits but encoding the video on a microcontroller would also be a problem. MJPEG could work |
Hello I have already dealt with exactly the same topic. The issue of separating the potential can be easily solved with the right hardware: ESP32-POE-ISO by OLIMEX It separates the electrical potential between the network and the ESP chip and uses the supported network controller LAN8710A (LAN8720 compatible) and runs on PoE (or USB power supply). I just had to include LAN support and change the pins for IO. I've already gotten the software to run on the LAN with small adjustments, but I'm faced with the problem that the GDOOR routines only run when the WLAN is connected. If the wifi is not connected but the wired network is connected, the actual GDOOR application does not run. As far as I understand it, it has a logic that checks the wifi connection and the actual software only runs when wifi is active and connected. Unfortunately, I'm not a software developer and I'm not making much progress in adapting the software. Can someone maybe support me with the needed adjustments? |
Hey, that sounds very good! Adapting it "cleanly" is a bit of work, because of the WiFiManager library we use :-/ Are you able to compile the software yourself? My idea would be a rather "hacky / hard coded" variant for your needs. |
Hi Yes, I downloaded the Git repository and then adjusted the configuration (ESP32 library, IO pins, Ethernet). As I said, I'm not a software developer, so nothing pretty but rather quick and dirty with the help of Google and same trial and error... :-) I was able to connect the ESP to Ehernet and an IP was obtained via DHCP. When connected via WiFi, the ESP32-POE-ISO runs and receives data from the Gira bus. I failed so far with the configuration or disable or whatever of the WifiManager. |
Did you change the code to get the wired ethernet working? I read it that way. In that case: https://github.com/gdoor-org/gdoor/blob/main/firmware/esp32/gdoor/main.cpp Disable all "WIFI_HELPER" related stuff, in case variables are read, just use hard coded content (most settings examples can be seen in https://github.com/gdoor-org/gdoor/blob/main/firmware/esp32/gdoor/src/defines.h) Now we need to convince MQTT that you have a valid connection: Disable the WiFi connection state check:
(remove the if case) You may want to change the code to monitor the wired connection, so that MQTT reconnects, if the wired connection is lost and established later on again. Hope this helps you 👍 |
Often times wiring for the Gira Bus is installed / terminated in metal cabinets (Unterverteilung) which prevent WIFI signals from reaching access points.
Space permitting, it might be helpful to have an Ethernet interface with an RJ45 connector on the gdoor board. That way, an Ethernet cable can be plugged in and no wifi needs to be used. An ESP32 board with an integrated Ethernet interface could be an alternative.
The cherry on the cake would be POE so that only one Ethernet cable is sufficient to power the gdoor assembly. Galvanic isolation and available ports at the board manufacturer could be an issue here.
The text was updated successfully, but these errors were encountered: