mogenson opened a new issue, #6683: URL: https://github.com/apache/incubator-nuttx/issues/6683
Hello, I have a board with an esp32 WROVER module. My board is connected to my WiFi router and has obtained an IP address from DHCP. I can ping my board. However, I'm having some trouble getting the tcpecho example app to accept a connection and echo received data. Netcat will immediately terminate: ``` $ nc 192.168.86.38 80 -v Connection to 192.168.86.38 port 80 [tcp/http] succeeded! ``` Below is a Python TCP client: ```python import socket HOST = "192.168.86.38" # The server's hostname or IP address PORT = 80 # The port used by the server with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.connect((HOST, PORT)) s.sendall(b"Hello, world") data = s.recv(1024) print(f"Received {data!r}") ``` It fails with the following traceback: ``` Traceback (most recent call last): File "tcp-echo-client.py", line 11, in <module> data = s.recv(1024) ConnectionResetError: [Errno 54] Connection reset by peer ``` I've attached the [defconfig](https://github.com/apache/incubator-nuttx/files/9163725/defconfig.txt) for my nuttx build. I'm using the master branch for nuttx and apps. I've enabled INFO debug logs for network and wireless. The `tcpecho` app does not print anything besides "Start echo server". I kill it with `Ctrl-C` after a minute. Here's a terminal output from NSH: ``` dmesg esp32_rng_initialize: Initializing RNG I (15) wifi:wifi driver task: 4, prio:253, stack:6656, core=0 I (16) wifi:wifi firmware version: b27fd2e I (16) wifi:wifi certification version: v7.0 I (16) wifi:config NVS flash: disabled I (16) wifi:config nano formating: disabled I (17) wifi:Init data frame dynamic rx buffer num: 32 I (17) wifi:Init management frame dynamic rx buffer num: 32 I (17) wifi:Init management short buffer num: 32 I (17) wifi:Init dynamic tx buffer num: 32 I (17) wifi:Init static rx buffer size: 1600 I (18) wifi:Init static rx buffer num: 10 I (18) wifi:Init dynamic rx buffer num: 32 esp_wifi_adapter_init: OK to initialize Wi-Fi adapter esp32_wlan_sta_initialize: Wi-Fi station MAC: 30:AE:A4:E0:1F:68 netdev_register: Registered MAC: 30:ae:a4:e0:1f:68 as dev: wlan0 esp32_net_initialize: INFO: Initialize Wi-Fi adapter No.0 success esp32_wlan_sta_initialize: INFO: Initialize Wi-Fi station success net netdev_ifr_ioctl: cmd: 1794 netdev_ifr_ioctl: cmd: 1796 netdev_ifr_ioctl: cmd: 1800 netdev_ifr_insh> ifconfig wlan0 Link encap:Ethernet HWaddr 30:ae:a4:e0:1f:68 at UP inet addr:192.168.86.38 DRaddr:192.168.86.1 Mask:255.255.255.0 nsh> tcpecho Start echo server nsh> dmesg wlan_rxpoll: INFO: Dropped, Unknown type: 0000 wlan_rxpoll: ARP frame arp_arpin: ARP request for IP 156a8c0 wlan_rxpoll: ARP frame arp_arpin: ARP request for IP 156a8c0 wlan_rxpoll: ARP frame arp_arpin: ARP request for IP 156a8c0 wlan_rxpoll: INFO: Dropped, Unknown type: 0000 wlan_rxpoll: ARP frame arp_arpin: ARP request for IP 2756a8c0 wlan_rxpoll: ARP frame arp_arpin: ARP request for IP 156a8c0 wlan_rxpoll: ARP frame arp_arpin: ARP request for IP 156a8c0 wlan_rxpoll: ARP frame arp_arpin: ARP request for IP 156a8c0 wlan_rxpoll: IPv4 frame udp_input: WARNING: No listener on UDP port wlan_rxpoll: INFO: Dropped, Unknown type: 0000 wlan_rxpoll: ARP frame arp_arpin: ARP request for IP 156a8c0 wlan_rxpoll: ARP frame arp_arpin: ARP request for IP 156a8c0 wlan_rxpoll: INFO: Dropped, Unknown type: dd86 wlan_rxpoll: IPv4 frame ipv4_input: WARNING: Not destined for us; not forwardable... Dropping! wlan_rxpoll: IPv4 frame ipv4_input: WARNING: Not destined for us; not forwardable... Dropping! wlan_rxpoll: ARP frame ``` There may just be some config I need to enable. I'm pretty new to networking. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org