Welcome to MattzoBricks › Forums › MattzoTrainController for Bluetooth (MTC4BT) › BT und Esp32 LAN8720
- This topic has 4 replies, 2 voices, and was last updated 3 months ago by
ChrisRey.
-
AuthorPosts
-
-
January 18, 2025 at 21:16 #8112
ChrisRey
ParticipantHallo ich benutze ein espressif modul mit lan modul LAN8720 leider findet er das Modul nicht 🙁
Hier der log:
1] Setup: Starting MattzoTrainController for BLE…
[1] Setup: Loading network configuration…
Config: File is empty
[0000] [1] [INFO] Logging: Configured.
[0001] [1] [INFO] Setup: Loading controller configuration…
Config: File is empty
[0002] [1] [INFO] Config: Read controller name: MTC4BT
[0003] [1] [INFO] Config: Read ESP pin configuration (0).
[0004] [1] [INFO] CTRL: Local channels initialized.
[0005] [1] [INFO] Setup: Controller configuration completed.
[0006] [1] [INFO] Wifi: All wifi log lines may also be Wired!
Ethernet MAC: B0:A7:32:1E:6D:9F
Resetting Wiz W5500 Ethernet Board… Done.
Starting ETHERNET connection…
Ethernet IP is: 0.0.0.0Checking connection………………….
Hardware fault, or cable problem… cannot continue.
Hardware Status: No hardware detected.
Cable Status: Uknown status.
Fallback to wifiStandart mässig sollte das modul eigentlich laufen. Hier ein beispiel dazu : https://github.com/flusflas/esp32-ethernet
-
January 18, 2025 at 23:34 #8113
Hilbert B
KeymasterHallo ChrisRey,
Ehm, not entirely, please read:
Using the W5500 Ethernet module
It is now possible to make a wired network connection using the W5500 module. To enable it in the code, add -DWIRED in my_platformio.ini.
For now the pins should be connected as follows:
W5500 pin ESP32 pin
RESET GPIO 26
CS/SS GPIO 5
MOSI GPIO 23
MISO GPIO 19
SCK GPIO 18
GND and 3V3 are also connected, the other pins are not connected.If the code is compiled with the -DWIRED, it will try and connect to the network using the W5500 module. If there is no network cable connected, it will fall back to wifi. This is only done at the STARTUP of the module, it will NOT FALLBACK to WiFI if you disconnect the cable during normal operation, you have to restart the ESP!
OTA will not work when the network connection is over the cable, disconnect the cable and restart the module so it starts in WiFi mode. This limitation is caused by the ArduinoOTA library being hard wired (pun intended) to Wifi.h (at the time of writing).
The IP address is different for Wifi and cable because an other MAC address is used.
If a status LED is configured, it will turn on solid in network discovery. This will get the other statuses when out of setup and in the regular operation mode.
—
At the moment we only support the W5500 module with this wiring, we are in the process of rewriting the Ethernet/WiFi part to support other wiring schemes of this module.
The board you are using, could work, but we do not support that module because the W5500 chipset does other things than the module mentioned by you.
We are in the process of supporting this board:
Hilbert
-
January 19, 2025 at 11:51 #8119
ChrisRey
ParticipantOk than i use later the w5500 thank you .
-
February 12, 2025 at 12:54 #8218
ChrisRey
ParticipantSo jetzt habe ich mir alles besorgt verkabelt wie ihr geschrieben habt aber der w5550 wird erkannt aber er kriegt keine netzwerk verbindung.
https://www.amazon.de/dp/B07CYVRMPL?th=1 das ist der gekaufte übersehe ich was ? -
February 20, 2025 at 20:52 #8324
ChrisRey
ParticipantEthernet MAC: 2C:BC:BB:0E:1F:BF
Resetting Wiz W5500 Ethernet Board… Done.
Starting ETHERNET connection…
Ethernet IP is: 192.168.178.93Checking connection. OK[0010] [1] [INFO] MQTT: Connecting to 192.168.178.104:1883…
[0011] [1] [INFO] Setup: Initializing BLE…
[0012] [1] [INFO] Setup: MattzoTrainController for BLE running.
[0013] [1] [INFO] Setup: Number of locos to discover hubs for: 1
[0014] [1] [INFO] Setup: Number of remotes to discover hubs for: 1assert failed: tcpip_send_msg_wait_sem IDF/components/lwip/lwip/src/api/tcpip.c:455 (Invalid mbox)
Backtrace: 0x400838e5:0x3ffceb90 0x40094325:0x3ffcebb0 0x4009a0a9:0x3ffcebd0 0x401594a5:0x3ffced00 0x4016b855:0x3ffced30 0x401870c5:0x3ffced70 0x4018417a:0x3ffcedb0 0x4017efd0:0x3ffcedf0 0x4017f060:0x3ffcee20 0x400f43ed:0x3ffcee40 0x400f44b6:0x3ffcee60 0x400f4559:0x3ffcee80 0x400f3b52:0x3ffceea0 0x400f3bec:0x3ffcefc0 0x400de697:0x3ffcefe0 0x400f89a1:0x3ffcf000
ELF file SHA256: 0fd785c02db3696a
Rebooting…
ets Jul 29 2019 12:21:46rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13232
load:0x40080400,len:3028
entry 0x400805e4[1] Setup: Starting MattzoTrainController for BLE…
[1] Setup: Loading network configuration…
Syslog: Server: 192.168.178.104:514
Syslog: Hostname: mtc4bt
Syslog: Appname: MTC4BT1
[0000] [1] [INFO] Logging: Configured.
[0001] [1] [INFO] Setup: Loading controller configuration…
[0002] [1] [INFO] Config: Read controller name: MTC4BT-LOCOS-AND-REMOTES
[0003] [1] [INFO] Config: Read ESP pin configuration (0).
[0004] [1] [DEBUG] Starting reading remotes json
[0005] [1] [DEBUG] Config: number of remotes 1.
[0006] [1] [INFO] CTRL: Local channels initialized.
[0007] [1] [DEBUG] Init remote
[0008] [1] [INFO] Setup: Controller configuration completed.
[0009] [1] [INFO] Wifi: All wifi log lines may also be Wired!
Ethernet MAC: 2C:BC:BB:0E:1F:BF
Resetting Wiz W5500 Ethernet Board… Done.
Starting ETHERNET connection…
Ethernet IP is: 192.168.178.93Checking connection. OK[0010] [1] [INFO] MQTT: Connecting to 192.168.178.104:1883…
[0011] [1] [INFO] Setup: Initializing BLE…
[0012] [1] [INFO] Setup: MattzoTrainController for BLE running.
[0013] [1] [INFO] Setup: Number of locos to discover hubs for: 1
[0014] [1] [INFO] Setup: Number of remotes to discover hubs for: 1assert failed: tcpip_send_msg_wait_sem IDF/components/lwip/lwip/src/api/tcpip.c:455 (Invalid mbox)
Backtrace: 0x400838e5:0x3ffceb90 0x40094325:0x3ffcebb0 0x4009a0a9:0x3ffcebd0 0x401594a5:0x3ffced00 0x4016b855:0x3ffced30 0x401870c5:0x3ffced70 0x4018417a:0x3ffcedb0 0x4017efd0:0x3ffcedf0 0x4017f060:0x3ffcee20 0x400f43ed:0x3ffcee40 0x400f44b6:0x3ffcee60 0x400f4559:0x3ffcee80 0x400f3b52:0x3ffceea0 0x400f3bec:0x3ffcefc0 0x400de697:0x3ffcefe0 0x400f89a1:0x3ffcf000
ELF file SHA256: 0fd785c02db3696a
Rebooting…
ets Jul 29 2019 12:21:46rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13232
load:0x40080400,len:3028
-
-
AuthorPosts
- You must be logged in to reply to this topic.