我现在用的是sim300 gprs at命令上网,命令发送过程如下:
AT+CGATT=1
OK
AT+CGATT?
+CGATT:1
OK
AT+CGDCONT=1,"IP","CMNET"
OK
AT+CGDCONT?
+CGDCONT:1,"IP","CMNET",0,0
OK
AT+CGACT=1,1 AT+CGACT?
OK
++CGACT:1,0
OK
AT+CIPSTART="TCP","116.205.45.1107","80"
OK
STATE: TCP CONNECTING
CONNECT FAIL
如果把AT+CIPSTART="TCP","116.205.45.1107","80" 改成 AT+CIPSTART="UDP","116.205.45.1107","80" 的话
就显示:
AT+CIPSTART="TCP","116.205.45.1107","80"
OK
CONNECT OK
请问,这是为什么呀?我用的是中国移动的SIM卡,已经打电话问电信公司了,支持CMNET的。我在网上找了好久,也没有找到原因,请高手指教啊!!!
AT+CIPSTART="TCP","116.205.45.1107","80"
OK
STATE: TCP CONNECTING
CONNECT FAIL
如果把AT+CIPSTART="TCP","116.205.45.1107","80" 改成 AT+CIPSTART="UDP","116.205.45.1107","80" 的话
就显示:
AT+CIPSTART="TCP","116.205.45.1107","80"
OK
CONNECT OK
你这个关键问题不是SIM卡的问题,也不是什么CMNET的问题吧。
这个是你协议的问题,使用TCP/IP还是UDP?
你116.205.45.1107 是什么?
你中心IP的80的UDP端口是否开放?