
中山市博安通通信技术有限公司
ZHONGSHAN B&T TECHNOLOGYCo., Ltd
Page 11 of 34
3.7
ATPH-set DHCP mode
ATPH=<mode>,<enable>
Description
Set DHCP mode
Response
[ATPH] OK
[ATPH] ERROR:<error_no>
Parameter
Mode:1:AP Mode
2:STA mode
Enable:1:DHCP mode
2: Static IP mode
Error
Code
1: The Command format is invalid.
2: Parameter error
Note
1.
By default, both AP and STA are in DHCP mode.
2.
Use ATPE to set static IP addresses for STA mode
3.
Use ATPF to set static IP addresses for AP mode
Example
# ATPH=2,2
[ATPH] OK
3.8
ATPE-set DHCP rules in STA mode
ATPE=<ip>[,<gateway>,<mask>]
Depai
nt
Set DHCP rules in STA mode
Respo
nse
[ATPE] OK
[ATPE] ERROR:<error_no>
Param
eter
ip: The IP address to be set. For example,
192.168.1.100 [gateway]: the ip address of
the gateway.
[mask]:IP mask
Error
Code
1: The Command format is invalid.
2: Parameter error
Note
1. The default IP address is 192.168.1.80.
2. To use static IP, you need to disable DHCP (ATPH = 2,2)
Exam
ple
# ATWD
[ATWD] OK
# ATPH=2,2 // Set sta to use static
IP [ATPH] OK
# ATPE=192.168.20.7,192.168.20.1,255.255.255.0 // Set the static IP
address of sta [ATPE] OK
ATPN= B &T-1,test123456