6 configuring and using ftp download (urc mode) – Siemens AC75 User Manual

Page 300

Advertising
background image

AC75 AT Command Set

10.14 Examples of how to Configure and Use Internet Service Profiles

s

AC75_ATC_V01.002

Page 300 of 569

10/30/06

Confidential / Released

10.14.5

Socket client sends data via TCP connection with URCs

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

10.14.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

<srvState>

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.

Advertising