
中山市博安通通信技术有限公司
ZHONGSHAN B&T TECHNOLOGYCo., Ltd
Page 12 of 34
3.9
ATPF-set DHCP rules in AP mode
ATPF=<start_ip>,<end_ip>,<gateway>
Description
Set DHCP rules in AP mode
Response
[ATPF] OK
[ATPF] ERROR:<error_no>
Parameter
start_ip:DHCP start IP, for example, 192.168.1.100
end_ip:DHCP end IP (note that the end IP and the start IP must belong to the same
CIDR block and not the gateway IP, and cannot be 255)
gateway: The gateway IP address, which must belong to the same CIDR block as
the start and end IP addresses.
Error
Code
1: The Command format is invalid.
2: Parameter error
Note
3. The default gateway IP address is 192.168.43.1.
4.
To start DHCP, you need to enable the DHCP function (ATPH = 1,1).
5.
If DHCP is disabled, you need to set it to static IP mode (ATPH = 1,2).
Example
# ATPH=1,1
[ATPH] OK
# ATPF=192.168.55.100,192.168.55.199,192.168.55.1
[ATPF] OK
# ATPW=3
[ATPW] OK
# ATPA="SSID",,11,0
[ATPA] OK
# ATW?
STA,,1,OPEN,,00:e0:4c:87:20:28,192.168.1.80,192.168.1.1
AP,SSID,11,OPEN,,00:e0:4c:87:20:29,192.168.55.1,192.168.55.1
[ATW?] OK
3.10
ATPG-configure automatic connection
ATPG=<enable>
Description
Configure automatic connection
Response
Success
[ATPG] OK
Fail
[ATPG] ERROR:<error_no>
Parameter
enable:
0: disable automatic connection
1: enable automatic connection
Error
Code
1: The Command format error
2: Parameter error
Example
# ATPG=0