|
发表于 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. |
|