beautypg.com

6 configuring and using ftp download (urc mode) – Siemens Brodersen MC55 AT User Manual

Page 258

background image

MC55_ATC_V04.00

Page 258 of 475

3/17/06

Confidential / Released

10.11.5

Socket client sends data via TCP connection with URCs

The example uses service profile 0 configured for Socket service and TCP.

10.11.6

Configuring and Using FTP Download (URC Mode)

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:

AT^SISI=0

Polling for

change ("Closing" ->

"Down").

^SISI: 0,6,0,20,20,0

The Service is in state "Down" and all data is con-

firmed by the remote peer.

OK

AT^SISC=0

Closing the Socket service.

OK

AT^SISO=0

The host opens service profile 0.

OK

^SISW: 0,1

Socket service is ready for upload.

AT^SISW=0,10

The host requests to write 10 bytes.

^SISW: 0,10,10

Response that 10 bytes can be sent and are unac-

knowledged.

0123456789

OK

^SISW: 0,1

The URC indicates that the Socket service is ready

to transfer more data. Data of the last AT^SISW

command are transferred to the remote host.

AT^SISW=0,10,1

The host requests to write next 10 bytes and enables

the end-of-data flag to notify that these are the last

10 bytes of the session.

^SISW: 0,10,20

Response that the service accepts 10 bytes and this

data and the previously sent data are unacknowl-

edged.

0123456789

OK

------

Waiting for URC.

^SISW: 0,2

Data transfer has been finished.

AT^SISC=0

Closing the Socket 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,"ftp://
192.168.1.2;type=d"

Specify FTP address with user and password anon-

ymous.

OK

at^siso=1

Open the service.

OK

Bearer is established, service is getting started.

^SISR: 1, 1

Data is available.

at^sisr=1,1500

Request to read 1500 bytes.