5 example: sending email over gprs, Tc63 at command set – Siemens TC63 User Manual
Page 252
TC63 AT Command Set
10.2 AT^SISS
s
TC63_ATC_V00.490
Page 252 of 501
5/24/05
Confidential / Draft - Do not copy
10.2.5 Example: Sending Email over GPRS
First set up a connection profile as explained in Section
. Enter at least all parameters which are mandatory
for a GPRS profile. The example uses the connection profile ID 0 and the service profile ID 9.
^SISW: 1, 1
FTP service is ready for upload.
at^sisw=1,100
Client requests to send 100 bytes.
^SISW: 1, 100
The write command response confirms that 100
bytes must be transferred now.
0123456789012345678901234567890123456789012
3456789012345678901234567890123456789012345
67890123456789
User data are transferred.
OK
^SISW: 1, 1
URC indicates that the FTP service is ready to trans-
fer more data. Data of the last at^sisw command are
transferred to the remote host.
at^sisc=1,0
No more data available. The file "example.txt" shall
be closed on the FTP server.
OK
^SISW: 1, 2
Data transfer finished. The connection to the FTP
server is closed.
at^siss=9,srvType,"SMTP"
Select service type SMTP.
OK
at^siss=9,alphabet,"1"
Choose ASCII alphabet.
OK
at^siss=9,conId,"1"
Select connection profile 1.
OK
at^siss=9,address,"192.168.1.2"
Specify SMTP server address.
OK
at^siss=9,user,"subscriber1"
Specify sender's user name required for SMTP
authentication.
OK
at^siss=9,passwd,"subscr1"
Specify password used by the sender for SMTP
authentication.
OK
at^siss=9,smFrom,"subscriber1@testdo-
main.com"
Sender's email address.
OK
at^siss=9,smRcpt,"subscriber2@testdo-
main.com"
Recipient's email address.
OK
at^siss=9,smSubj,"Meeting Request Sunday
Morning"
Enter text for subject field.
OK
at^siss=9,smAuth,"1"
Sender name and password can be used for SMTP
authentication.
OK
at^siss?
To check the profile enter the
read com-
mand. The response includes the values of all 10
connection profiles. In this example, no values are
set for the profiles 0 through 8.
^SISS: 0, "svrType", ""
^SISS: 1, "svrType", ""
^SISS: 2, "svrType", ""
^SISS: 3, "svrType", ""
^SISS: 4, "svrType", ""
^SISS: 6, "svrType", ""
^SISS: 7, "svrType", ""
^SISS: 8, "svrType", ""
^SISS: 9, "svrType", "Smtp"
^SISS: 9, "conId", "0"
^SISS: 9, "alphabet", "1"
^SISS: 9, "address", "192.168.1.2"