sim900a_send_cmd("AT+CIPCLOSE=1","CLOSE OK",100); //关闭连接
sim900a_send_cmd("AT+CIPSHUT","SHUT OK",100); //关闭移动场景
if(sim900a_send_cmd("AT+CGCLASS="B"","OK",1000))return 1; //设置GPRS移动台类别为B,支持包交换和数据交换
if(sim900a_send_cmd("AT+CGDCONT=1,"IP","CMNET"","OK",1000))return 2;//设置PDP上下文,互联网接协议,接入点等信息
if(sim900a_send_cmd("AT+CGATT=1","OK",500))return 3; //附着GPRS业务
if(sim900a_send_cmd("AT+CIPCSGP=1,"CMNET"","OK",500))return 4; //设置为GPRS连接模式
if(sim900a_send_cmd("AT+CIPHEAD=1","OK",500))return 5; //设置接收数据显示IP头(方便判断数据来源)
就是发这些AT指令的时候回传是ERROR
除了这两条是成功的 while(sim900a_send_cmd("AT","OK",100))//检测是否应答AT指令
while( sim900a_send_cmd("ATE0","OK",200) ) printf("ATK-SIM900A E
");
想问一下这是什么问题
一周热门 更多>