搜索
bottom↓
回复: 5

基于MC52i模块的FTP功能开发 求取!

[复制链接]

出0入0汤圆

发表于 2012-7-26 14:12:38 | 显示全部楼层 |阅读模式
你好 我现在用MC52i模块进行ftp功能的开发,用的AT指令,不知道怎么弄,能提供一些资料或是代码吗? 在此先谢了!

阿莫论坛20周年了!感谢大家的支持与爱护!!

你熬了10碗粥,别人一桶水倒进去,淘走90碗,剩下10碗给你,你看似没亏,其实你那10碗已经没有之前的裹腹了,人家的一桶水换90碗,继续卖。说白了,通货膨胀就是,你的钱是挣来的,他的钱是印来的,掺和在一起,你的钱就贬值了。

出0入0汤圆

发表于 2012-7-27 23:04:36 | 显示全部楼层
http://www.amobbs.com/thread-3739943-1-1.html   看这个上有吗?
没用过MC52I的FTP..用过其它的.  手册上应该有的吧.

出0入0汤圆

发表于 2012-7-27 23:06:27 | 显示全部楼层
10.2.4 Example: Configuring and Using FTP Upload
First set up a connection profile as explained in Section 10.1.1 or Section 10.1.2. Enter at least all parameters
which are mandatory for the connection profile.
Configure the service profile 1 for FTP:
Make an FTP connection:
OK
at^siss=1,address,"socktcp://
10.10.0.187:65534"
The service profile of the client contains the IP
address and the TCP port of the remote host.
OK
at^siss=1,srvType,ftp Select service type FTP.
OK
at^siss=1,conId,0 Select connection profile 0.
OK
at^siss=1,address,"ftp://
192.168.1.2;type=d"
Specify FTP address with user and password anonymous.
OK
at^siso=1 Open the service.
OK Bearer is established, service is getting started.
^SISR: 1, 1 Data are available.
at^sisr=1,1500 Request to read 1500 bytes.
^SISR: 1, 50 50 bytes are now available.
hardware
inttest
software
support
systemtest
OK
^SISR: 1, 2 Data transfer finished. No more data available. The
connection to the FTP server is closed.
at^sisc=1 Close the service.
OK
at^siss=1,srvType,ftp Select service type FTP.
OK
at^siss=1,conId,0 Select connection profile 0.
OK
at^siss=1,address,"ftpput://
myname:mypasswd@192.168.1.2/upload/example.
txt"
Specify FTP address with individual user name and
password. The file "example.txt" shall be created on
the FTP server.
OK
at^siso=1 Open the service.
OK Bearer is established, service is getting started.
MC56 AT Command Set
10.2 AT^SISS
s
MC56_ATC_V03.03 Page 235 of 460 9/9/05
Confidential / Released
10.2.5 Example: Sending Email over GPRS
First set up a connection profile as explained in Section 10.1.2. Enter at least all parameters which are mandatory
for a GPRS profile. The example uses the connection profile ID 0 and the service profile ID 9.
^SISW: 1, 1 FTP service is ready for upload.
at^sisw=1,100 Client requests to send 100 bytes.
^SISW: 1, 100 The write command response confirms that 100
bytes must be transferred now.
0123456789012345678901234567890123456789012
3456789012345678901234567890123456789012345
67890123456789
User data are transferred.
OK
^SISW: 1, 1 URC indicates that the FTP service is ready to transfer
more data. Data of the last AT^SISW command
are transferred to the remote host.
at^sisc=1,0 No more data available. The file "example.txt" shall
OK be closed on the FTP server.
^SISW: 1, 2 Data transfer finished. The connection to the FTP
server is closed.

出0入0汤圆

 楼主| 发表于 2012-8-14 21:08:22 | 显示全部楼层
楼上的哥们 先谢谢了!  还有点不太明白的,方便留个QQ号联系吗?

出0入0汤圆

 楼主| 发表于 2012-8-16 21:11:01 | 显示全部楼层
有个问题呀 进行FTP上传文件时,文件名是如何定义呀! 比如我想把电脑里面 D:\test1.txt 文件,怎么上传到服务器呀?

出0入0汤圆

发表于 2012-8-18 22:19:52 | 显示全部楼层
没有那么智能..在使用模块的FTP时文件名都是先要设置好.然后真正的文件数据就是数据透传过过的.  (比如我想把电脑里面 D:\test1.txt 文件,怎么上传到服务器呀?)
有指令会让你配置文件名.进入数据传输后把\test1.txt 的内容像发数据一样发到串口就可以了.
加我QQ:362790644
如果你的模块支持FTP.试一下就知道了.
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片。注意:要连续压缩2次才能满足要求!!】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-10-3 08:24

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表