5 at^siso internet service open, At^siso, Tivated via – Siemens Brodersen MC55 AT User Manual
Page 239: Write command
MC55_ATC_V04.00
Page 239 of 475
3/17/06
Confidential / Released
10.5
AT^SISO Internet Service Open
The
write command starts the Internet session configured by the service profile. All further steps
needed to control the session depend on whether you are using URC mode or polling mode. The
read
command returns the current status of all services.
URC mode:
If the service opens successfully, the URCs "
" will trigger the action to follow, either writing
data with
or reading data with
. To terminate an upload data stream set the
within the last
command. If the URCs notify that a data transfer has been successful ("
: x, 2" or
: x, 2"), the service can be closed with
. If a special event occurs, e.g. an error or a warning,
after opening or while using a service then the URC type "
" will be delivered.
Polling mode:
After opening the service, all progress information needed to control the session shall be explicitly requested by
the host application. The particular sequence of AT commands varies depending on the service used. The fol-
lowing list summarizes, by way of an example, the steps normally involved in managing an upload or download
job.
• Upload (Socket, FTP, HTTP, SMTP):
- Enter the
command, e.g. AT^SISO=9.
, specify
, e.g. AT^SISW=9,20. Check resulting response for
. Optionally, check error with
, e.g. AT^SISE=9. If necessary, repeat the
sequence several times.
- Enter last
command and enable
1)
If Socket service: Query available data with
, e.g. AT^SISR=9,1430.
, e.g. AT^SISI=9, if necessary several times until
=6
("Down").
- Check error with
- Close service with
, e.g. AT^SISC=9.
• Download (Socket, FTP, HTTP, POP3):
- Enter the
command, e.g. AT^SISO=9.
- Enter
, specify
, e.g. AT^SISR=9,1000. Check resulting response for
. If necessary, repeat the sequence several times until
= -2 (end
of data) or ERROR.
- Check error with
- Close service with
, e.g. AT^SISC=9.
• Socket service (upload and download possible in one session):
- Recommended: Set
=2 to enable extended error text.
- Enter the
command, e.g. AT^SISO=9.
- Enter
or
AT^SISR=9,20 or AT^SISW=9,20. Check resulting response for
. If necessary, repeat the sequence several times.
- Check error with
- If write action: Enter last
command and enable
1)
If Socket service: Query available data with
, e.g. AT^SISR=9,1430.
- Close service with
, e.g. AT^SISC=9.
1)
Please note that in MC55 04.00 the
does not work properly for the Socket service. Therefore, if
the Socket service is configured for TCP, check with
that the transmission buffer is empty, before
. See Release Notes related to MC55 04.00.