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

Closing the Socket service.

AT^SISC=0

OK

 

 

 

10.11.5Socket client sends data via TCP connection with URCs

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

AT^SISO=0

The host opens service profile 0.

OK

Socket service is ready for upload.

^SISW: 0,1

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

The URC indicates that the Socket service is ready

^SISW: 0,1

 

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

 

 

 

10.11.6Configuring 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:

 

 

 

 

 

 

 

 

 

 

 

at^siss=1,srvType,ftp

 

Select service type FTP.

 

 

 

OK

 

Select connection profile 0.

 

 

 

at^siss=1,conId,0

 

 

 

 

OK

 

Specify FTP address with user and password anon-

 

at^siss=1,address,"ftp://

 

 

192.168.1.2;type=d"

 

ymous.

 

 

 

OK

 

 

 

 

Make an FTP connection:

 

 

 

 

 

 

 

 

 

 

 

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.

 

 

 

 

 

 

 

 

MC55_ATC_V04.00

Page 258 of 475

3/17/06

Confidential / Released

 

 

 

 

Page 258
Image 258
Siemens MC55 AT manual Socket client sends data via TCP connection with URCs, Configuring and Using FTP Download URC Mode