john30 / ebusd-esp32

Firmware for ESP32-C3 allowing eBUS communication for ebusd (https://github.com/john30/ebusd)
https://adapter.ebusd.eu/v5
24 stars 1 forks source link

Adapter v5: W5500 Ethernet adapter not recognized #40

Closed olli-r closed 7 months ago

olli-r commented 11 months ago

Moved from https://github.com/john30/ebusd/issues/1081 to this place as it's not an ebusd issue.

I added the proposed ethernet adapter W5500 to the Ebus Adapter V5 as described. Ethernet port shows link and other LED is flashing when network traffic is recieved/transmitted.

However, the Ethernet Module is not loaded during startup:

17:34:49Info execute: isio -l 9 17:34:49 IO 9 level 1 is unmet 17:34:49 Info execute: io -iu 6 17:34:49 IO 6 direction set to 01 17:34:49 IO 6 pull set to 00 17:34:49 IO 6 = 1 17:34:49 Info execute: var rpi 0 17:34:49 Info execute: if "isio -l 6" "var rpi 1" 17:34:49 Info execute: isio -l 6 17:34:49 IO 6 level 1 is unmet 17:34:49 Info execute: var isnew 1 17:34:49 Info execute: if "§isnvs ebus.host" "var isnew 0" 17:34:49 Info execute: isnvs ebus.host 17:34:49 Info execute: var isnew 0 17:34:49 Info execute: if "§isnvs sta.on" "var isnew 0" 17:34:49 Info execute: isnvs sta.on 17:34:49 Info execute: var isnew 0 17:34:49 Info execute: if "§isnvs eth.on" "var isnew 0" 17:34:49 Info execute: isnvs eth.on 17:34:49 Warning execute: command failed: isnvs eth.on = 1 17:34:49 Info execute: on -lo iol 9 "led 0 255" "led 1 255" "led 2 255" "sleep 500" restart 17:34:49 io trigger installed 17:34:49 Info execute: on iol 9 "led 2 50 0" 17:34:49 io trigger installed 17:34:49 Info execute: if "var skipstart" "led 0 255 0 5000" "led 2 50" "ap EBUS" server exit 17:34:49 Info execute: var skipstart 17:34:49 variable skipstart = 0 17:34:49 Info execute: function start server "led 0 10" 17:34:49 function installed 17:34:49 Info execute: on wifi 1 start 17:34:49 network trigger installed 17:34:49 Info execute: on eth 1 start 17:34:49 network trigger installed 17:34:49 Info execute: if "isnvs sta.on" "led 0 10 255 5000" "sleep 100" sta 17:34:49 Info execute: isnvs sta.on 17:34:49 Info execute: led 0 10 255 5000 17:34:49 Info execute: sleep 100 17:34:49 Info statusLedTimerFn: duty set to 10 17:34:49 Info execute: sta 17:34:49 Info pp: pp rom version: 9387209 17:34:49 Info net80211: net80211 rom version: 9387209 17:34:49 Info wifi_init: tcpip mbox: 32 17:34:49 Info wifi_init: udp mbox: 6 17:34:49 Info wifi_init: tcp mbox: 6 17:34:49 Info wifi_init: tcp tx win: 5744 17:34:49 Info wifi_init: tcp rx win: 5744 17:34:49 Info wifi_init: tcp mss: 1440 17:34:49 Info wifi_init: WiFi IRAM OP enabled 17:34:49 Info wifi_init: WiFi RX IRAM OP enabled 17:34:49 Info wifi_init: LWIP IRAM OP enabled 17:34:49 Info phy_init: phy_version 1130,b4e4b80,Sep 5 2023,11:09:30 17:34:49 sta connecting to 'IoT' 17:34:52 Info cmd_wifi: sta connect 17:34:53 Info esp_netif_handlers: sta ip: 192.168.42.143, mask: 255.255.255.0, gw: 192.168.42.1 17:34:53 Info cmd_wifi: sta got ip 17:34:53 Info repl_event_task: wifi event: 1 17:34:53 Info execute: led 0 50 17:34:53 Info execute: start 17:34:53 Info execute: server 17:34:53 Info esp-rest: Starting HTTP Server 17:34:53 server started 17:34:53 Info execute: led 0 10 17:34:53 Info execute: if "var isnew" "ap EBUS" else "if "isnvs ap.on" ap" 17:34:53 Info execute: var isnew 17:34:53 variable isnew = 0 17:34:53 Info execute: if "isnvs ap.on" ap 17:34:53 Info execute: isnvs ap.on 17:34:53 Info execute: var eth 0 17:34:53 Info execute: if "eth -t" "var eth 1" else "if "eth -wt" "var eth 2"" 17:34:53 Info execute: eth -t 17:34:53 Error w5500.mac: W5500 version mismatched, expected 0x04, got 0x00 17:34:53 Error w5500.mac: emac_w5500_init(795): vefiry chip ID failed 17:34:53 Error esp_eth: esp_eth_driver_install(228): init mac failed 17:34:53 Error eth: initialise_ethernet(250): install driver 17:34:53 Ethernet on USR-ES1 not available 17:34:53 Warning execute: command failed: eth -t = 1 17:34:53 Info execute: if "eth -wt" "var eth 2" 17:34:53 Info execute: eth -wt 17:34:53 Error w5500.mac: W5500 version mismatched, expected 0x04, got 0x00 17:34:53 Error w5500.mac: emac_w5500_init(795): vefiry chip ID failed 17:34:53 Error esp_eth: esp_eth_driver_install(228): init mac failed 17:34:53 Error eth: initialise_ethernet(250): install driver 17:34:53 Ethernet on W5500 module not available 17:34:53 Warning execute: command failed: eth -wt = 1

john30 commented 11 months ago

which version are you running? if the device does not respond with the expected version number, there is not much to do here. are you sure you plugged it in correctly (i.e. as shown in the web UI)?

olli-r commented 11 months ago

Apologies, I forgot.

Build 20231015 (the previous version had the same issue) ESP32-C3 rev 4

I just saw that a new firmware (20231223) is available, I'll update that one later...

I assume it's plugged in correctly, as the module itself reacts as expected (link indication, packet xmit led).

olli-r commented 10 months ago

Same behaviour with newest firmware.

john30 commented 10 months ago

you can follow the instructions for checking the pins: https://github.com/john30/ebusd-esp32/issues/21#issuecomment-1751938229 I'm close to 100% sure the Ethernet module is broken. we had many of those in the past and this is the reason why we don't send them anymore in the first place

john30 commented 7 months ago

closing thise due to inactivity for now