hne573
Junior Member level 1
- Joined
- Feb 26, 2009
- Messages
- 18
- Helped
- 6
- Reputation
- 12
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,430
First you need to open a PDP context.
>> AT+CGATT=1 - Attach to GPRS Service
<< OK
>> AT+CGDCONT=1,"IP","wap.cingular" - Define PDP Context (cid, PDP type, APN)
<< OK
>> AT+CDNSCFG="208.67.222.222","208.67.220.220" - Configure Domain Name Server (primary DNS, secondary DNS)
<< OK
>> AT+CSTT="wap.cingular","wap(at)cingulargprs.com","cingular1" - Start Task & set APN, User ID, and password
<< OK
>> AT+CIICR - Bring up wireless connection with GPRS - THIS MAY TAKE A WHILE
<< OK
>> AT+CIFSR - Get Local IP address
<< 10.190.245.172 - returns IP address assigned to your module
<< OK
>> AT+CIPSTATUS - Get Connection Status
<< OK
<< STATE: IP STATUS - returns status of connection, needs to be 'IP STATUS' before you can connect to a server
>> AT+CIPHEAD=1 - Tells module to add an 'IP Header' to receive data
<< OK
>> AT+CDNSORIP=1 - Indicates whether connection request will be IP address (0), or domain name (1)
<< OK
>> AT+CIPSTART="TCP","www.google.com","80" - Start up TCP connection (mode, IP address/name, port)
<< OK
<< CONNECT OK - Indicates you've connected to the server - IT MAKE TAKE A WHILE FOR THIS TO BE RETURNED
>> AT+CIPSEND - Issue Send Command
<< > - wait for module to return'>' to indicate it's ready to receive data
>> GET / HTTP/1.1 - Send data - this example is an HTTP request for the default page
>> Host: [url]www.google.com[/url]
>> Connection: Keep-Alive
>> Accept: */*
>> Accept-Language: en-us
>>
<< data from server returned - Server will return data here
hne573 said:But I want send email (for example to xxx(at)gmail.com) or send data through GPRS to a client or server or other GSM module and I can monitor this data on email , client, or server.
Please help me what I do?
Telnet mail.example.com 25
helo example.com
mail from:<xxxxxxxxxx>
rcpt to:<xxxxxxxxxx.x xxx@xxx.xxx>
data
from:xxxxxx
subject:xxxxxx
test mail
...............
.[Enter]
at+cipshut
SHUT OK
AT+CGATT=1
OK
AT+CGDCONT=1,"IP","HotCell"
OK
AT+CDNSCFG="208.67.222.222","208.67.220.220"
OK
AT+CSTT="HotCell","",""
OK
AT+CIICR
OK
AT+CIFSR
10.13.26.20
AT+CIPSTATUS
OK
STATE: IP STATUS
AT+CIPHEAD=1
OK
AT+CDNSORIP=1
OK
at+cipstart="TCP","example.mail.com","25"
OK
+IPD43:220 *************************************
Telnet mail.example.com 25
helo example.com
mail from:<xxxxxxxxxx>
rcpt to:<xxxxxxxxxx.x xxx(at)xxx.xxx>
data
from:xxxxxx
subject:xxxxxx
test mail
...............
.[Enter]
at+cipstart="TCP","example.mail.com","25"
OK
+IPD43:220 *************************************
AT+CIPSEND[enter]
>helo example.com[ctrl+z]
send ok
AT+CIPSEND[enter]
>mail from:<xxxxxxxxxx>[ctrl+z]
send ok
AT+CIPSEND[enter]
>rcpt to:<xxxxxxxxxx.x xxx(at)xxx.xxx> [ctrl+z]
send ok
....
Similarly to the other end
AT+CIPSEND[enter]
>quit[ctrl+z]
send ok
The 'Send OK' means the module has sent the command. If you are not receiving a response from the sever, then it is not see the 'end-of-line'. I don't know what program you are using to send the commands, but it should be sending a carriage return and line feed when you press the Enter key.hne573 said:but any answer wasn't received.
so I send smtp commands in the series
at+cipsend
>helo example.com[enter]
[ctrl+z]
send ok
.
.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?