SIM900A到货小试一下,苦于没有公网IP,想用HTTP功能下载个网页
看了下貌似不是那么简单 跟http有关的指令有好多啊怎么样把那个www.baidu.com的网页下载下来呢?多谢了 本帖最后由 casterbn 于 2013-7-3 12:18 编辑
Step Description AT commands or response
1 Contype config AT+SAPBR=3,1, "Contype","GPRS"
2 APN config AT+SAPBR=3,1,"APN","CMNET"
3 Active AT+SAPBR=1,1
4 Init HTTP AT+HTTPINIT
5 Set CID 1 AT+HTTPPARA="CID",1
6 Config HTTP server address AT+HTTPPARA="URL","http://www.baidu.com"
7 GET file AT+HTTPACTION=0
8 HTTP URC indication +HTTPACTION:0,200,276480 楼上牛逼!!!! casterbn 发表于 2013-7-3 09:09 static/image/common/back.gif
Step Description AT commands or response
1 Contype config AT+SAPBR=3,1, "Contype","GPRS"
2 APN confi ...
多谢了 http://www.csgsm.com/uploadfile/attachment/201305/1369277174_3744_9991.jpghttp://www.csgsm.com/uploadfile/attachment/201305/1369277174_3744_9991.jpg步骤 sim900a最近测试,通信效果没西门子mc37i好。 多谢2楼了,最近刚好要用到 casterbn 发表于 2013-7-3 09:09
Step Description AT commands or response
1 Contype config AT+SAPBR=3,1, "Contype","GPRS"
2 APN confi ...
大神,请问如果要下载的网页地址为:
http://www.baidu.com/s?wd=%E9%98%BF%E8%8E%AB&ie=utf-8&f=8&tn=baidu&oq=ping%20c&rsv_bp=1&rsv_enter=0&rsv_sug3=137&rsv_sug4=8577&rsv_sug2=0&inputT=16621&rsv_sug1=110&rsp=3
就是域名后面带参数的该怎么发送指令 casterbn 发表于 2013-7-3 09:09
Step Description AT commands or response
1 Contype config AT+SAPBR=3,1, "Contype","GPRS"
2 APN confi ...
如果中途网络断掉了,怎么重新连接呢?我试过 “AT+HTTPTERM" 和 “AT+CIPSHUT” ,好像都不管用 pixiu 发表于 2014-9-1 21:28
大神,请问如果要下载的网页地址为:
http://www.baidu.com/s?wd=%E9%98%BF%E8%8E%AB&ie=utf-8&f=8&tn=ba ...
这个HTTP的操作就只有两个,GET 和 POST,分别对应 AT+HTTPACTION=0 和 AT+HTTPACTION=1,我用GET可以实现带参数的 AATT++SSAAPPBBRR==33,,11,,""ccoonnttyyppee"",,""GGPPRRSS""
OK
AATT++SSAAPPBBRR==33,,11,,""AAPPNN"",,""CCMMNNEETT""
OK
AATT++SSAAPPBBRR==11,,11
OK
AATT++SSAAPPBBRR==22,,11
+SAPBR: 1,1,"10.238.47.218"
OK
AATT++HHTTTTPPIINNIITT
OK
AATT++HHTTTTPPPPAARRAA==""CCIIDD"",,11
OK
AATT++HHTTTTPPPPAARRAA==""UURRLL"",,""hhttttpp::////wwwwww..bbaaiidduu..ccoomm""
OK
aatt++HHTTTTPPAACCTTIIOONN==00
OK
+HTTPACTION:0,600,0
AATT++HHTTTTPPRREEAADD
OK
AATT++HHTTTTPPPPAARRAA==""UURRLL"",,""WWWWWW..SSIIMM..CCOOMM""
OK
AATT++HHTTTTPPAACCTTIIOONN==00
OK
+HTTPACTION:0,200,69
AATT++HHTTTTPPRREEAADD
+HTTPREAD:69
<script language=javascript>location.href='espcms/index.php'</script>
OK 兄弟们帮忙看下,这是问题 AT+SAPBR=1,这个是彩信必须用的,直接HTTP,你不用该命令试一试。
页:
[1]