|
发表于 2013-3-7 16:43:29
|
显示全部楼层
1 AT+CIPSHUT //make sure the link is shut down shut ok
2 AT+CGATT=1 //set gprs service attach ok/error
3 AT+CGDCONT=1,"IP","CMNET" //Define PDP context ok/error
4 AT+CGATT=1 //PDP context activate or deactivate ok/error
5 AT+CIPSTATUS //check current IP status ,three status IP_INITIAL、IP_CLOSE、IP_STATUS
//can esteblish the TCP connection
6 AT+CIPSTART="TCP","202.114.85.145","2020" //Start up TCP or UDP connection failed--connect fail,succeed--connect ok
7 AT+CIFSR //aquire the local IP address, failed----ERROR; succeed----"address"
8 AT+CIPCLOSE //close the TCP or UDP connection closed
9 AT+CIPSHUT //Disconnect wireless connection, Close Moving Scene shut ok |
|