Neo_M590E V1 GPRS Module AT Command Set
Copyright © Neoway Technology Co., Ltd
3.10 Querying TCP/UDP Connection Status: +IPSTATUS
To query the TCP/UDP connection status
<n>: Socket number, ranging from 0 to 5
<CR><LF>+IPSTATUS:<n>,<CONNECT or DISCONNECT>,<TCP or UDP>,
<send-buffer-size><CR><LF>
<CONNECT or DISCONNECT>:Socket status, value: CONNECT or DISCONNECT
<TCP or UDP>:Connection type, value: TCP or UDP
<send-buffer-size>:The size of the available send buffer on the module, in decimal ASCII
mode, unit: byte
+IPSTATUS:0,CONNECT,TCP,2047
A TCP connection has been set up on
socket 0 and the buffer size is 2047 bytes.
No TCP or UDP connection is set up on
socket 1.
The AT command is not complete.
The socket number in the command is
incorrect.
The command format is incorrect. An "S"
is omitted.
3.11 Setting Local UDP Port: +UDPLPORT
To set the local UDP port
AT+UDPLPORT=<socket>,<port><CR>
<socket>: Socket ID, ranging from 0 to 5
<port>: Port ID, ranging from 1 to 65535
Set the local port ID of socket 0 to 6800.
The local port ID of socket 0 is allocated by default.
The first UDP port is 4096 while the second is 4097.
This command should have been executed before the
AT+UDPSETUP
command is
executed.
If you do not use this command, the local port ID will be allocated by default, that is,
the first one is 4096, the second one is 4097, …