Multi-Tech Systems iCell GPRS (MTSMC-G2-IP Manuale Utente

Pagina di 119
Part 2 – AT Commands for the SocketEthernet IP  
Chapter 8 – General AT Commands for SocketEthernet IP 
Universal IP AT Commands Reference Guide (Document S000457K) 
50 
 
Chapter 8 – General AT Commands for 
the SocketEthernet IP  
Set Commands 
 
#DHCP – DHCP On or Off 
Description:  
Enables or disables the DHCP client.  If the DHCP client is enabled, the module will take the IP 
address from DHCP server. If DHCP client is disabled, the module will take the static IP address 
configured for the module.
 
 
 
Note:
 The module must be reset to put the command into effect. 
Syntax: 
   
AT#DHCP=<0,1> 
 
AT#DHCP? Read or display the current setting. 
Responses: 
AT#DHCP=0 returns OK 
 
AT#DHCP? returns 0 and OK
 
 
Values:  
AT#DHCP=0     Turn off DHCP (sets IP Address, Netmask, and Gateway back to defaults)   
 
AT#DHCP=1     Turn on DHCP (automatically assigns IP Address, Netmask, and Gateway) 
Default:  
0    
 
 
 
 
 
#IPADDR – Set Static IP Address  
Description:
   Sets the static IP Address. 
 
Note:
 The module must be reset to put the command into effect. 
Syntax:
    
AT#IPADDR="<IP Address value>"  
 
AT#IPADDR? Read or display the current setting. 
Responses: 
AT#IPADDR =192.168.1.10 returns and OK 
 
AT#IPADDR? returns 192.168.1.10 (Manually Configured) and OK
  
Values:
 
IP Address in dotted decimal notation (xxx.xxx.xxx.xxx)   "x" stands for a number between 0-
255. 255 is the maximum value in an xxx group. 
Default: 
 
192.168.2.3 
 
 
 
 
#IPGATEWAY – Set Gateway Address  
Description: 
  Sets the default gateway address. The view of get command shows whether the address is 
statically configured or obtained from the DHCP server. 
 
Note:
 The module must be reset to put the command into effect. 
Syntax:
    
AT#IPGATEWAY="<gateway address value>"  
 
AT#IPGATEWAY? Read or display the current setting. 
Responses: 
AT#IPGATEWAY =192.168.1.11 returns and OK 
 
AT#IPGATEWAY? returns 192.168.1.11 (Manually Configured) and OK
  
Values:
 
IP Address in dotted decimal notation (xxx.xxx.xxx.xxxx). "x" = a number between 0-255.   
Default: 
 
192.168.2.1