>> 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@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
<%@ LANGUAGE=VBSCRIPT %>
<% Option Explicit%>
<%
If Err.Number <> 0 then
Response.Write(Err.Description)
Error.Clear
End If
Dim data_string, file_System, file_path, file
data_string = Request.QueryString("Data")
if data_string <> "" then
Set file_System = CreateObject("Scripting.FileSystemObject")
file_path = Server.MapPath("Data\LogData.txt")
Set file = file_System.OpenTextFile(file_path, 8, True) ' Open File for appending (8)
file.WriteLine (data_string & vbCrLf)
file.Close
Set file = Nothing
Set file_System = Nothing
response.write("OK")
else
response.write("No Data")
end if
%>
GET /LogGprs.asp?Data=123456 HTTP/1.1
Yes, you can do that - we have several commercial applications on both Ethernet and GSM that use that technique.kejuqeju said:how bout this.. if i send data via GPRS to a real IP, can i pull back some information or anything from the application that runs in the server? because i see in your previous post there is command GET .... and after that the server give back some information. maybe i can put or set something in the server's application that can be collected by SIM300?
Did you include a blank line and the CTRL-Z? You may need to send the entire header - not just the "GET" line. Many servers will reject a simple request like that as being invalid.kejuqeju said:btw i tried the command GET / HTTP/1.1, but there was no response at all. in the server side i got just "GET / HTTP/1.1" string.
why is that?
GET /index.html HTTP/1.0CRLF
Host: [url]www.yahoo.comCRLF[/url]
CRLF^Z
This is the APN. GSM networks use an APN (Access Point Name) to determine how the carrier network passes IP traffic from the device to the host network. It determines what IP addresses are assigned to the device, which security methods are utilized and how the GSM data network connects to the customer’s network. APNs can be general-purpose (available to multiple customers) or can be specific to a customer. You can get the APN for your network and plan from your service provider.raja.krishnan3 said:AT+CGDCONT=1,"IP","internet"
In the above AT command what is the word internet specifies? Is it mandatory to specify only as 'internet'.
You can use the DNS Servers provided by your service provider, or a public DNS. You may find the performance is improved if you use servers that are located near you. You can search the internet for lists of public DNS servers.raja.krishnan3 said:AT+CDNSCFG="62.40.32.33","62.40.32.34"
in the above AT command , how did you choose these DNS addresses?
I'm sorry, but I don't know what you mean by that. Do you mean "get" data fom the server and receive it at the modem?vivekraju said:One more doubt... Is it possible read any data in the server... Is there any command to read data in the server... Pls reply...
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?