一、创建服务器
一般是两种情况:1、直接使用拨号上网 2、使用路由拨号上网
第一种情况下,服务器的IP即本机IP,创建服务器,设定端口号。
服务器设置完成后,打开GPRS模块。
1、at+cgdcont=1,"ip","cmnet"
2、at%etcpip
3、at%etcpip?
4、AT%IPOPEN="TCP","111.164.240.229",1001 //服务器IP和端口
5、at%iomode=0,1,1
6、AT%IPSEND="http://tpytongxin.com" //发送消息,中文不能发送