- 易迪拓培训,专注于微波、射频、天线设计工程师的培养
SIM300与上位机的TCP通讯问题(UDP能正常使用的情况下)
录入:edatop.com 点击:
网络调试助手有:TCP/UDP Socket 调试工具V2.3和NetAssist(网络调试助手(CM精装版 V3.7))系统:win7
发送的AT指令代码为:
- AT+CSQ
- +CSQ: 25,6
- OK
- AT+CGATT?
- +CGATT: 1
- OK
- AT+CGDCONT?
- +CGDCONT: 1,"IP","CMNET","010.190.149.141",0,0
- OK
- AT+CGACT?
- +CGACT: 1,0
- OK
- AT+CIPHEAD?
- +CIPHEAD: 1
- OK
- AT+CIPSTATUS
- OK
- STATE: TCP CONNECTING
- AT+CIPCLOSE
- CLOSE OK
- AT+CIPSTATUS
- OK
- STATE: IP CLOSE
- AT+CIPSTART="UDP","202.116.167.217","80"
- CONNECT OK
- OK
- AT+CIPSEND
- > TEST
- SEND OK
- AT+CIPCLOSE
- CLOSE OK
- AT+CDNSORIP=1
- OK
- AT+CIPSTATUS
- OK
- STATE: IP CLOSE
- AT+CIPSTART="TCP","www.google.com","80"
- OK
- CONNECT OK
- AT+CIPSTATUS
- OK
- STATE: CONNECT OK
- AT+CIPCLOSE
- CLOSE OK
- AT+CDNSORIP=0
- OK
- AT+CIPSTATUS
- OK
- STATE: IP CLOSE
- AT+CIPSTART="TCP","202.116.167.217","80"
- OK
- STATE: TCP CONNECTING
- CONNECT FAIL
- AT+CIPSTATUS
- OK
- STATE: TCP CONNECTING
- AT+CIPCLOSE
- CLOSE OK
百度“STATE: TCP CONNECTING CONNECT FAIL”最多的结果是“防火墙未关闭”,不知道是谁弄得这么不负责任的答案,我已经关闭了防火墙。请问我忽略了什么细节吗?
求指教
补充一点,我在两台PC机间试过TCP/UDP通讯,结果都没问题。
问题已经解决了。上述步骤并没有问题,问题出在网络方面。校园网中心的防火墙阻止了TCP、UDP协议,校内可以正常访问,但连接到外网(Internet)就被阻止了。
利用ADSL申请一个帐号和端口,能够进行正常的使用。
请问我这用tcp协议的为啥gsm也连不上呢
上一篇:315,433MHz模块的接收灵敏度怎么测?
下一篇:安卓系统ROOT教程