Skip to content

no socket communication with W5500 ethernet wing and feather m4 express #1800

@gvcp

Description

@gvcp

With a TCP server listening, I get a valid connection from the ethernet wing, but when I try to send or receive data I always get an input/output error when entering the commands via REPL.
When using the same sequence in code.py the feather M4 just hangs and doesn´t react to ctrl-C.
I connected both modules by piggybacking them via headers without additional wires.
it´s not a problem of USB supply, behaves the same with external power supply.
from REPL other commands like .connected, .ifconfig() are working,
.close seems to be ignored, the server side still shows the connection

The code:

import board
import busio
import wiznet
import socket
spi = busio.SPI(clock=board.SCK, MOSI=board.MOSI, MISO=board.MISO)
eth = wiznet.WIZNET5K(spi, board.D10, board.D11)
host = '192.168.1.243'
fam, typ, pro, nam, socketaddr = socket.getaddrinfo(host, 5000)[0]
ss = socket.socket(fam, typ, pro)
ss.connect(socketaddr)
ss.send('Hello')
ss.recv(10)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions