WIZnet Developer Forum

TCP port closed

Hy All,

I initialized my wizfi310 module to TCP server mode. When i try to connect its all ok, the wizfi310 module send back messages to me:
[CONNECT 1]
[DISCONNECT 1]

When i start the Advanced port scanner, scan ports i get a following messages:
[CONNECT 1]
[DISCONNECT 0]
[DISCONNECT 1]

Why i got [DISCONNECT 0]? After that, i cant connect to module. Its port 2020 is closed.
Need to reinitialize and working again.

Here is my initialization:
WizFi310 Version 1.0.3.3 (WIZnet Co.Ltd)
AT+MECHO=0
AT+MECHO=0
[OK]
AT+WSET=0,[SSID],
[OK]
AT+WSEC=0,[password]
[OK]
AT+WNET=1
[OK]
AT+SCON=S,TSN,2020,1
[OK]
AT+WJOIN

[Link-Up Event]
IP Addr : 192.168.0.114
Gateway : 192.168.0.1
[OK]

Best Regards:
ExtSol

Hi

The message [DISCONECT 0] displayed when your server is down.
The messages [CONECT 1] , [DISCONECT 1] displayed when TCP Client is connected/disconnected.

could you please test the TCP Server as Command mode for Advanced port scanner?
because I tested one of port scanner on the internet(https://www.advanced-port-scanner.com/)
that tool tried multiple connection to the Module during the port scan like below.
image

so, as your Data mode of your module, your module can keep only 1 connection because of Data mode.

so please test it again with Command mode.

at+scon=o,tsn,,,2020,0

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