-
Notifications
You must be signed in to change notification settings - Fork 34
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 Component not working with W5500 #5781
Comments
I am sorry that no one has responded to this issue yet :-( Shooting in the dark, but in an attempt to narrow down the main issue, I did several more tests and recorded the log files, which are attached. Initial stateAs in my original posting…
Test 1I removed the definition of the interrupt pin, wondering if it is necessary because the ESPHome documentation says it is optional and the AZ-Delivery example with Arduino does not use it. Test 2I removed the definition of the reset pin, wondering if it is necessary because the ESPHome documentation says it is optional, although the AZ-Delivery example with Arduino does use it. Test 3I restored the reset pin, and physically cut the wire to the interrupt pin because the ESPHome documentation says it is optional and the AZ-Delivery example with Arduino does not use it. Test 4I restored the config to the initial state, i.e. all six pins physically connected and configured, no manual IP and default clock frequency. I ran it to get a fresh log of the errors. There are many, and it is hard to see which is the most fundamental error and which are knock-on errors. I checked by doing a manual reset after the initial load but that made no difference -- same errors again. Test 5I previously had the impression that the device connected better when a manual IP was specified. I tried specifying a manual IP, but it made no difference this time. The errors are the same. Test 6I previously noted that the clock speed cannot be set to 80MHz. I verified that by putting it in the config, installing it and keeping the log file. CONCLUSIONS SO FAR
NEXT STEPS?I have cleared up some side issues, and eliminated some causes, but still not found the central problem. If no one has an answer, I would at least like some guidance on how to proceed with further diagnostics. [D][esp-idf:000]: E (679) w5500.mac: w5500_send_command(123): send command timeout So the problem is presumably somewhere in the Ethernet setup. But where?? I would very much appreciate any help an expert may be able to give to determine whether there is a bug in the ESPHome code or something I can do differently in the config. Attachments240513 0850 test 2 log - error when RST not defined.txt |
19 May. I tried a different W5500 component, the USR-E1 (a nice little module), this time with an ESP32-S2, and got the same result -- the program compiles and loads, the device has an IP address, but it does not respond to Ethernet signals. This therefore seems to be a general problem with the ESPHome Ethernet Component for W5500.I guess either there is something missing in the libraries, or in the documentation? This is a shame because W5500 is a widely-used platform in quite cheap products. BTW, between my original posting and this one, I got a WT32-EH01 board working with no problem at all. The Ethernet Component is great when it works! My failed W5500 config below, and log file attached ...
|
Please contact us on the Discord channel linking to this isdue. |
The problem
I am trying to configure an AZDelivery W5500 Ethernet module.
The configuration yaml compiles and loads correctly, but after that all requests are timed out. Attempts to reinstall the code over ethernet, or to access the module from a browser also give timeout errors.
Which version of ESPHome has the issue?
2024.4.1
What type of installation are you using?
Docker
Which version of Home Assistant has the issue?
core-2024.5.3, but I did not get as far as connecting to Home Assistant via Ethernet. It works fine when connected by WiFi.
What platform are you using?
Debian Linux (running natively)
Board
Espressif Devkit v4
AZDelivery W5500 Ethernet module
Component causing the issue
Ethernet W5500 SPI
Example YAML snippet
Anything in the logs that might be useful for us?
[10:11:46]ets Jul 29 2019 12:21:46 [10:11:46] [10:11:46]rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) [10:11:46]configsip: 0, SPIWP:0xee [10:11:46]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 [10:11:46]mode:DIO, clock div:2 [10:11:46]load:0x3fff0030,len:1184 [10:11:46]load:0x40078000,len:13132 [10:11:46]load:0x40080400,len:3036 [10:11:46]entry 0x400805e4 [10:11:46][I][logger:158]: Log initialized [10:11:46][C][ota:483]: There have been 0 suspected unsuccessful boot attempts. [10:11:46][D][esp32.preferences:114]: Saving 1 preferences to flash... [10:11:46][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed [10:11:46][I][app:029]: Running through setup()... [10:11:46][D][binary_sensor:034]: 'Hardwired Alarm Control CCL1': Sending initial state ON [10:11:46][D][binary_sensor:034]: 'Hardwired Alarm Control CCL2': Sending initial state ON [10:11:46][D][binary_sensor:034]: 'Hardwired Alarm Control CCL3': Sending initial state ON [10:11:46][D][binary_sensor:034]: 'Hardwired Alarm Control CCL4': Sending initial state ON [10:11:46][D][binary_sensor:034]: 'Hardwired Alarm Control CCL5': Sending initial state ON [10:11:46][D][binary_sensor:034]: 'Hardwired Alarm Control CCL6': Sending initial state ON [10:11:46][D][binary_sensor:034]: 'Hardwired Alarm Control CCL7': Sending initial state ON [10:11:46][D][binary_sensor:034]: 'Hardwired Alarm Control CCL8': Sending initial state ON [10:11:46][D][binary_sensor:034]: 'Hardwired Alarm Control Global AT': Sending initial state ON [10:11:46][D][binary_sensor:034]: 'Hardwired Alarm Control Sounder TA': Sending initial state ON [10:11:46][C][switch.gpio:011]: Setting up GPIO Switch 'Hardwired Alarm Control Output 1'... [10:11:46][D][switch:016]: 'Hardwired Alarm Control Output 1' Turning OFF. [10:11:46][D][switch:055]: 'Hardwired Alarm Control Output 1': Sending state OFF [10:11:46][D][switch:016]: 'Hardwired Alarm Control Output 1' Turning OFF. [10:11:46][C][switch.gpio:011]: Setting up GPIO Switch 'Hardwired Alarm Control Output 2'... [10:11:46][D][switch:016]: 'Hardwired Alarm Control Output 2' Turning OFF. [10:11:46][D][switch:055]: 'Hardwired Alarm Control Output 2': Sending state OFF [10:11:46][D][switch:016]: 'Hardwired Alarm Control Output 2' Turning OFF. [10:11:46][C][ethernet:034]: Setting up Ethernet... [10:11:46][I][ethernet:220]: Starting ethernet connection [10:11:46][W][component:157]: Component ethernet set Warning flag: unspecified [10:11:46][D][esp-idf:000]: E (1591) w5500.mac: w5500_send_command(123): send command timeout [10:11:46][D][esp-idf:000]: E (1591) w5500.mac: emac_w5500_transmit(534): issue SEND command failed [10:11:46][D][esp-idf:000]: E (1704) w5500.mac: w5500_send_command(123): send command timeout [10:11:46][D][esp-idf:000]: E (1704) w5500.mac: emac_w5500_transmit(534): issue SEND command failed [10:11:46][I][ethernet:231]: Connected via Ethernet! [10:11:46][C][ethernet:467]: IP Address: 192.168.0.42 [10:11:46][C][ethernet:468]: Hostname: 'hardwired-alarm-control' [10:11:46][C][ethernet:469]: Subnet: 255.255.255.0 [10:11:46][C][ethernet:470]: Gateway: 192.168.0.1 [10:11:46][C][ethernet:475]: DNS1: 0.0.0.0 [10:11:46][C][ethernet:476]: DNS2: 0.0.0.0 [10:11:46][C][ethernet:493]: MAC Address: E0:5A:1B:76:61:A3 [10:11:46][C][ethernet:498]: Is Full Duplex: YES [10:11:46][C][ethernet:503]: Link Speed: 10 [10:11:46][W][component:170]: Component ethernet cleared Warning flag [10:11:46][C][ota:096]: Over-The-Air Updates: [10:11:46][C][ota:097]: Address: 192.168.0.42:3232 [10:11:46][C][ota:100]: Using Password. [10:11:46][C][ota:103]: OTA version: 2. [10:11:46][C][api:025]: Setting up Home Assistant API server... [10:11:46][I][app:062]: setup() finished successfully! [10:11:46][W][component:157]: Component api set Warning flag: unspecified [10:11:46][I][app:100]: ESPHome version 2024.4.1 compiled on May 6 2024, 10:08:20 [10:11:46][C][logger:166]: Logger: [10:11:46][C][logger:167]: Level: DEBUG [10:11:46][C][logger:169]: Log Baud Rate: 115200 [10:11:46][C][logger:170]: Hardware UART: UART0 [10:11:46][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Hardwired Alarm Control CCL1' [10:11:46][C][gpio.binary_sensor:016]: Pin: GPIO32 [10:11:46][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Hardwired Alarm Control CCL2' [10:11:46][C][gpio.binary_sensor:016]: Pin: GPIO33 [10:11:46][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Hardwired Alarm Control CCL3' [10:11:46][C][gpio.binary_sensor:016]: Pin: GPIO25 [10:11:46][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Hardwired Alarm Control CCL4' [10:11:46][C][gpio.binary_sensor:016]: Pin: GPIO26 [10:11:46][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Hardwired Alarm Control CCL5' [10:11:46][C][gpio.binary_sensor:016]: Pin: GPIO27 [10:11:46][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Hardwired Alarm Control CCL6' [10:11:46][C][gpio.binary_sensor:016]: Pin: GPIO14 [10:11:46][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Hardwired Alarm Control CCL7' [10:11:46][C][gpio.binary_sensor:016]: Pin: GPIO13 [10:11:46][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Hardwired Alarm Control CCL8' [10:11:46][C][gpio.binary_sensor:016]: Pin: GPIO15 [10:11:46][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Hardwired Alarm Control Global AT' [10:11:46][C][gpio.binary_sensor:016]: Pin: GPIO4 [10:11:46][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Hardwired Alarm Control Sounder TA' [10:11:46][C][gpio.binary_sensor:016]: Pin: GPIO5 [10:11:46][C][switch.gpio:068]: GPIO Switch 'Hardwired Alarm Control Output 1' [10:11:46][C][switch.gpio:091]: Restore Mode: always OFF [10:11:46][C][switch.gpio:031]: Pin: GPIO17 [10:11:46][C][switch.gpio:068]: GPIO Switch 'Hardwired Alarm Control Output 2' [10:11:46][C][switch.gpio:091]: Restore Mode: always OFF [10:11:46][C][switch.gpio:031]: Pin: GPIO16 [10:11:46][C][ethernet:294]: Ethernet: [10:11:46][C][ethernet:467]: IP Address: 192.168.0.42 [10:11:46][C][ethernet:468]: Hostname: 'hardwired-alarm-control' [10:11:46][C][ethernet:469]: Subnet: 255.255.255.0 [10:11:46][C][ethernet:470]: Gateway: 192.168.0.1 [10:11:46][C][ethernet:475]: DNS1: 0.0.0.0 [10:11:46][C][ethernet:476]: DNS2: 0.0.0.0 [10:11:46][C][ethernet:493]: MAC Address: E0:5A:1B:76:61:A3 [10:11:46][C][ethernet:498]: Is Full Duplex: YES [10:11:46][C][ethernet:503]: Link Speed: 10 [10:11:46][C][ethernet:297]: CLK Pin: 19 [10:11:46][C][ethernet:298]: MISO Pin: 23 [10:11:46][C][ethernet:299]: MOSI Pin: 21 [10:11:46][C][ethernet:300]: CS Pin: 18 [10:11:46][C][ethernet:301]: IRQ Pin: 36 [10:11:46][C][ethernet:302]: Reset Pin: 22 [10:11:46][C][ethernet:303]: Clock Speed: 26 MHz [10:11:46][C][ethernet:312]: Type: W5500 [10:11:46][C][mdns:115]: mDNS: [10:11:46][C][mdns:116]: Hostname: hardwired-alarm-control [10:11:46][C][ota:096]: Over-The-Air Updates: [10:11:46][C][ota:097]: Address: 192.168.0.42:3232 [10:11:46][C][ota:100]: Using Password. [10:11:46][C][ota:103]: OTA version: 2. [10:11:46][C][api:139]: API Server: [10:11:46][C][api:140]: Address: 192.168.0.42:6053 [10:11:46][C][api:142]: Using noise encryption: YES [10:11:46][D][esp-idf:000]: E (3070) w5500.mac: w5500_send_command(123): send command timeout [10:11:46][D][esp-idf:000]: E (3070) w5500.mac: emac_w5500_transmit(534): issue SEND command failed [10:11:46][D][esp-idf:000]: E (4271) w5500.mac: w5500_send_command(123): send command timeout [10:11:46][D][esp-idf:000]: E (4271) w5500.mac: emac_w5500_transmit(534): issue SEND command failed [10:11:52][D][esp-idf:000]: E (22658) w5500.mac: w5500_send_command(123): send command timeout [10:11:52][D][esp-idf:000]: E (22658) w5500.mac: emac_w5500_receive(578): issue RECV command failed [10:12:31][D][esp-idf:000]: E (61484) w5500.mac: w5500_send_command(123): send command timeout [10:12:31][D][esp-idf:000]: E (61484) w5500.mac: emac_w5500_transmit(534): issue SEND command failed
Additional information
During set-up I observed the following. I do not know if these are connected issues or just documentation errors.
The text was updated successfully, but these errors were encountered: