Hi,
I bough a couples of Wio RP2040 Mini dev board modules and cannot make it work with TCP sockets.
I use the 1.5.3 firmware (the latest available on the Seeed Wiki):
sudo ./picotool info
Program Information
name: MicroPython
version: v1.15.3-dirty
It’s easy to connect to the Access Point. I am able to send TCP packet to the server (I see the Wireshark traces proving this), and the response is sent to the WIO module (still see this using Wireshark) but the module fails to receive it.
I tested bot usocket and socket library.
def sendViaSocket():
addr_info = usocket.getaddrinfo(‘192.168.1.12’,8000)
addr = addr_info[0][-1]
print(’>dst-addr:’, addr)
s=usocket.socket()
s.connect(addr)
s.send(bytes(‘GET / HTTP/1.0\r\n\r\n’, ‘utf8’))
s.settimeout(10)
data = s.read(1000)
s.close()
print(’>got:’, data)
def sendViaStandardSocket():
import socket
addr_info = socket.getaddrinfo(‘192.168.1.12’,8000)
addr = addr_info[0][-1]
print(’>dst-addr:’, addr)
s=socket.socket()
s.connect(addr)
s.send(bytes(‘GET / HTTP/1.0\r\n\r\n’, ‘utf8’))
s.settimeout(10)
data = s.read(1000)
s.close()
print(’>got:’, data)
sendViaStandardSocket()
sendViaSocket()
Both approches give a timeout related error:
Traceback (most recent call last):
File “”, line 15, in
File “”, line 10, in sendViaStandardSocket
ValueError: Socket timeout (no server return message received)
Could you help me out?
-
I would like the Seeed Support to share any example where someone can send and receive packets through the TCP using MicroPython.
-
Could you share some details how the board is wired internally - I mean the connections between the RP2040 and the ESP8285 module. I am particularly interested if UART of the RP2040 is wired to the ESP8285 UART - if this connection exists I would switch to AT command to handle WIFI / socket connection myself.