Multi-Tech Systems iCell GPRS (MTSMC-G2-IP Manual Do Utilizador

Página de 119
Part 1 – AT Commands for All Universal IP Devices
   
Chapter 6 – UDP AT Commands 
Universal IP AT Commands Reference Guide (Document S000457K) 
43 
 
#UDPIGNORESRCPORT – Ignore Send Source Port 
Description:
    Allows the UDP client to ignore the remote IP's source port. 
 
Note: 
This command is for all devices except the SocketWireless Wi-Fi (MT810SWM-IP)
Syntax: 
AT#UDPIGNORESRCPORT=<parameter1> 
 
AT#UDPIGNORESRCPORT? Read or display the current setting. 
Values: 
parameter 1  
 
0 Remote source port is respected; all packets not matching the first received source port are 
rejected 
1 Remote source port is ignored; all packets matching the remote IP address are accepted 
Responses: 
\r\n#UDPIGNORESRCPORT: VALUE\r\n 
\r\nOK\r\n 
\r\nERROR\r\n 
Examples: 
send: AT#UDPIGNORESRCPORT=0\r 
reply: \r\nOK\r\n 
send: AT#UDPIGNORESRCPORT?\r 
reply: \r\n#UDPIGNORESRCPORT: 0\r\n 
reply: \r\nOK\r\n 
  
 
 
 
#UDPREMOTEPORT – Remote Port Number 
Description:
    Configure the UDP remote port.  
Notes:  
When the UDP session is initiated in listen mode (#LUDPSTART), this value will override the 
return port derived from the first incoming packet.  
Syntax: 
AT#UDPREMOTEPORT=<parameter1>  
 
AT#UDPREMOTEPORT? Read or display the current setting. 
Values:
  
Parameter 1  
      0 (disabled) - 65535 
Default: 
0  
Responses: 
\r\n#UDPREMOTEPORT: VALUE\r\n  
\r\nOK\r\n  
\r\nERROR\r\n  
Examples: 
send: AT#UDPREMOTEPORT=300\r  
 
reply: \r\nOK\r\n  
send: AT#UDPREMOTEPORT?\r  
 
reply: \r\n#UDPREMOTEPORT: 300\r\n  
 
reply: \r\nOK\r\n  
 
 
 
 
 
 
#UDPPORT – UDP Port Number 
Description:  
If the UDP session is initiated in listen mode, use the local UDP port number.  
 
 
If the UDP session is initiated in active mode, use the remote UDP port number.  
Syntax:  
AT#UDPPORT=<Port Number Value> 
AT#UDPPORT? Read or display the current setting. 
Values
:  
From 1 to 5 numeric digits (0 to 9).  
 
 
Notes:
 Numbers above 65,535 are illegal as the port identification fields are 16-bits long in the IP 
header. Port number 0 is illegal. 
Default
: