![Gemalto Cinterion EHS6 Command Manual Download Page 278](http://html.mh-extra.com/html/gemalto/cinterion-ehs6/cinterion-ehs6_command-manual_2206684278.webp)
Cinterion
®
EHS6 AT Command Set
10.15 Examples of how to Configure and Use Internet Service Profiles
EHS6_ATC_V03.001
15/12/3
Confidential / Released
Page 278 of 513
10.15.15
FTP Upload Single File (URC Mode)
Configure the service profile 2 for FTP:
Make an FTP connection:
AT^SISO=1
Open the service.
OK
Bearer is established, service is getting started.
^SIS: 1,0,2100,"Ftp open(ftp.heise.de:21)"
" URC with
2100 (FTP) indi-
cates download status.
^SIS: 1,0,2100,"220 Hallo auf ftp.heise.de."
^SIS: 1,0,2100,"FTP Login OK"
^SIS: 1,0,2100,"fget INDEX"
^SIS: 1,0,2100,"FGET : INDEX 225 bytes"
^SISR: 1,2
Download complete.
AT^SISO?
Request service state.
^SISO:
1,"Ftp",4,1,225,0,"37.80.21.126:4113","193.
99.144.79:21"
AT^SISC=1
Close the service.
OK
AT^SISO?
Request service state.
^SISO:
1,"Ftp",2,1,0,0,"0.0.0.0:0","0.0.0.0:0"
Service is closed and reset.
AT^SISS=2,"srvType","Ftp"
Select service type FTP.
OK
AT^SISS=2,conId,"0"
Select connection profile 0.
OK
AT^SISS=2,"address","ftp://
myname:mypasswd@testnetwork/upload"
Specify FTP address with individual user name and
password.
OK
AT^SISS=2,"cmd","put"
Select command type upload for single file.
OK
AT^SISS=2,"files","newdata.txt"
File "newdata.txt" shall be put on FFTP server.
OK
AT^SISO=2
Open the service.
OK
Bearer is established, service is getting started.
^SIS: 2,0,2100,"Ftp open(testnetwork:21)"
" URC with
2100 (FTP) status
information from FTP server.
^SIS: 2,0,2100,"220 FTP server (Version 6.4/OpenBSD/Linux-ftpd-0.17) ready."
^SIS: 2,0,2100,"FTP Login OK"
^SIS: 2,0,2100,"put newdata.txt"
^SISW: 2,1
URC indicates that FTP service is ready for upload.
AT^SISW=2,40
Client requests to send 40 bytes.
^SISW: 2,40,0
The write command response confirms that 40 bytes
must be transferred now.
01234567890123456789012345678901234567890
User data is transferred.
OK
^SISW: 2,1
URC indicates that the FTP service is ready to trans-
fer more data.
AT^SISW=2,40
Client requests to send 40 bytes.
^SISW: 2,40,0
The write command response confirms that 40 bytes
must be transferred now.
01234567890123456789012345678901234567890
User data is transferred.