ESP32C3 with W5500 in V1.25.0, driver is ok but not connected #17299
-
W5500 with ESP32C3 is initialized successfully, but not connected. code as below:
test |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I am using phys_addr=1 even thought I can't recall the reason. What is the IP address of the computer you're using to ping your W5500? Are you connecting everything with a home wifi router? Are you sure the router permits traffic between ethernet ports and your computer that might be on WiFi. You can put a second computer on ethernet and ping the second computer with the first computer. If you get ping, then you CAN ping an ethernet port device with a wifi. Otherwise you can't. Also, you didn't set mac address before activating your W5500. I don't believe W5500 has an assigned MAC address. You need to derive one from your ESP32C3. On traditional ESP32, it is base address +3 (base address is for wifi). |
Beta Was this translation helpful? Give feedback.
-
Thaks for the reply. I've tried ,but not working. any successful example could offer? |
Beta Was this translation helpful? Give feedback.
-
Why do you need to set addresses specifically in your I am running MicroPython v1.26.0-preview.82.gae6062a45 on ESP32-C3 and here is my run log:
Ping from Linux PC:
Now with the LAN disabled
As expected, there will be no response to the ping:
If you need to set the address manually, first verify that the IP address is not already in use by another device. Then, ensure that you are using the correct netmask value. |
Beta Was this translation helpful? Give feedback.
Why do you need to set addresses specifically in your
sta_if.ifconfig()
? Why not let your router set these values automatically?I am running MicroPython v1.26.0-preview.82.gae6062a45 on ESP32-C3 and here is my run log:
Ping from Linux PC: