30.06.2014 Views

MC52i AT Command Set

MC52i AT Command Set

MC52i AT Command Set

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>MC52i</strong> <strong>AT</strong> <strong>Command</strong> <strong>Set</strong><br />

<br />

10.12 Examples of how to Configure and Use Internet Service Profiles<br />

<strong>AT</strong>^SISI=0 Polling for change ("Closing" -><br />

"Down").<br />

^SISI: 0,6,0,20,20,0<br />

The Service is in state "Down" and all data is confirmed<br />

by the remote peer.<br />

OK<br />

<strong>AT</strong>^SISC=0<br />

Closing the Socket service.<br />

OK<br />

10.12.5 Socket client sends data via TCP connection with URCs<br />

The example uses service profile 0 configured for Socket service and TCP.<br />

<strong>AT</strong>^SISO=0 The host opens service profile 0.<br />

OK<br />

^SISW: 0,1<br />

Socket service is ready for upload.<br />

<strong>AT</strong>^SISW=0,10<br />

The host requests to write 10 bytes.<br />

^SISW: 0,10,10<br />

0123456789<br />

OK<br />

^SISW: 0,1<br />

<strong>AT</strong>^SISW=0,10,1<br />

^SISW: 0,10,20<br />

0123456789<br />

OK<br />

------ Waiting for URC.<br />

^SISW: 0,2<br />

<strong>AT</strong>^SISC=0<br />

OK<br />

Response that 10 bytes can be sent and are unacknowledged.<br />

The URC indicates that the Socket service is ready<br />

to transfer more data. Data of the last <strong>AT</strong>^SISW<br />

command are transferred to the remote host.<br />

The host requests to write next 10 bytes and enables<br />

the end-of-data flag to notify that these are the last<br />

10 bytes of the session.<br />

Response that the service accepts 10 bytes and this<br />

data and the previously sent data are unacknowledged.<br />

Data transfer has been finished.<br />

Closing the Socket service.<br />

10.12.6 Configuring and Using FTP Download (URC Mode)<br />

First set up a connection profile as explained in Section 10.1.1 or Section 10.1.2. Enter at least all parameters<br />

which are mandatory for the connection profile.<br />

Configure the service profile 1 for FTP:<br />

at^siss=1,srvType,ftp<br />

Select service type FTP.<br />

OK<br />

at^siss=1,conId,0 Select connection profile 0.<br />

OK<br />

at^siss=1,address,"ftp://<br />

192.168.1.2;type=d"<br />

OK<br />

Make an FTP connection:<br />

Specify FTP address with user and password anonymous.<br />

at^siso=1<br />

OK<br />

^SISR: 1, 1<br />

at^sisr=1,1500<br />

Open the service.<br />

Bearer is established, service is getting started.<br />

Data is available.<br />

Request to read 1500 bytes.<br />

<strong>MC52i</strong>_<strong>AT</strong>C_V01.201 Page 267 of 551 4/16/10<br />

Confidential / Released

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!