![GOSUNCN ME3630 Series Command Reference Manual Download Page 126](http://html.mh-extra.com/html/gosuncn/me3630-series/me3630-series_command-reference-manual_2247368126.webp)
All Rights reserved, No Spreading without GOSUNCN Permission
125
AT Command Reference Guide of Module Product
ME3630
0:Socket connection is closed.
1:Socket connection is open, both send data and receive data normally.
2:Socket connection is open, receive data normal, but send buffer is full.
3:Socket connection is opening.
4:Socket connection is closing.
e.g.
AT+ZIPOPEN=1,0,125.55.143.92,6000
OK
+ZIPSTAT: 1,1
AT+ZIPOPEN?
+ZIPOPEN: 1,0,125.55.143.92,6000
OK
11.4.
AT+ZIPCLOSE Close TCP/UDP Connection
Extensible AT command, this command is used to Close TCP/UDP connection. it will ZIPSTAT automatically
to indicate the socket state.
Command
Possible response
+ZIPCLOSE =<Socket id>
<CR><LF>OK<CR><LF>
+ZIPSTAT: <Socket id>,<Status> <CR><LF>
or
<CR><LF>+CME ERROR: <err><CR><LF>
+ZIPCLOSE?
<CR><LF>+ZIPCLOSE: [(Socket1, <Status>)[,(Socket2, <Status>)[,( Socket3, <Status>)[,(Socket4,
<Status>)[,(Socket5, <Status>)]]]]]<CR><LF>
<CR><LF>OK<CR><LF>
OR
<CR><LF>+ZIPCLOSE: 0<CR><LF>
<CR><LF>OK<CR><LF>
+ZIPCLOSE=?
<CR><LF>+ZIPCLOSE: (list of supported <Socket id>s)<CR><LF>
<CR><LF>OK<CR><LF>
Defined values
<Socket id>: Socket Connection indication
0:Invalid Socket id
1
~
5:Valid Socket id
<Status>: State of Socket Connection
0:Socket connection closed.
1:Socket connection open, both send data and receive data normally.
2:Socket connection open, receive data normal, but send buffer is full.
3:Socket connection opening.
4:Socket connection closing.
e.g.
AT+ZIPCLOSE?
+ZIPCLOSE: (Socket1,0),(Socket2,0),(Socket3,0),(Socket4,0),(Socket5,0)