8000 ESP32C3 with W5500 in V1.25.0, driver is ok but not connected · micropython · Discussion #17299 · GitHub
[go: up one dir, main page]

Skip to content

ESP32C3 with W5500 in V1.25.0, driver is ok but not connected #17299

Answered by shariltumin
kenjican asked this question in ESP32
Discussion options

You must be logged in to vote

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:

>>> from machine import Pin, SPI
>>> import network
>>> spi = SPI(1,500000)
>>> sta_if = network.LAN(phy_type=network.PHY_W5500,phy_addr =0,cs=Pin(1),spi=spi,int = Pin(0))
>>> sta_if.active(1)
True
>>> sta_if.ifconfig()
('192.168.5.8', '255.255.252.0', '192.168.4.1', '192.168.4.1')
>>> sta_if.status()
5
>>> sta_if.isconnected()
True
>>> sta_if.config('mac')
b'`U\xf9t<\x0f'

Ping from Linux PC:

$ ping 192.168.5.8
PING 192.168.5.8 (192.168.5.8) 56(84) bytes of data.
64 bytes…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@kenjican
Comment options

Answer selected by kenjican
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
3 participants
0