WIZnet Developer Forum

The existing connection was forcibly closed by the remote host w5300

I made visual basic app for testing Rx Tx performance with ability to use it as set/get register type communication over the LAN, but when i try to ask large buffers to send and to receive, i get "the existing connection was forcibly closed by the remote host " error

with small packets like 10kx8b it is running fine, but if i make 40kx8b, it will generate this error.

Note that i have only one socket with 64 for Tx, 64 for Tx FIFO size, so i can use 65536 sized massage, and indeed i can if only it is transmitting or receiving.

But even bigger problem, that i could not connect to w5300 with computer, it just say connection was refused by host, while my program on stm32f4 is happily running socket switch program with SOCK_LISTEN register active, just like after restart.

If i make reset and config it again, it start to work.

Question, how can i know that client can’t connect even if i am in SOCK_LISTEN mode, just like it suppose to be ? and how to fix it ?

short video in youtube:

ok, si i get exception that says that SOCKET is not created!. (when i try do LISTEN listen(0))

but at the same time, i can’t create it, it is just stuck at that. Any idea how to solve it ?

Download this document http://www.wiznet.co.kr/wp-content/uploads/wiznethome/Chip/W5100/Document/W5100_Datasheet_v1.2.6.pdf and study page 29 (socket status register) and chapter 5 (functional description). These chapters will give you understanding about socket workflow for W5x00 family, and how to handle chip’s registers.

Copyright © 2017 WIZnet Co., Ltd. All Rights Reserved.