Discussion in "Embedded GSM Development" started by    amitcg    Jan 7, 2012.
Sat Jan 07 2012, 12:33 PM
#1
Hello ,

I am trying to connect to internet with SIM300 MODEM , i am able to access websites like Google.com , by sending command to sim300 through hyperterminal , but i want to transmit data from SIM300 to some server etc on internet , so to verify it , i used SERVER.EXE , and followed the procedure to set up port etc , and then i tried to connect with My PC , through GPRS on SIM300 modem , but it can not connect ,


AT+CGATT=1
OK

AT+CGDCONT=1,"IP","airtelgprs.com"
OK

AT+CSTT="airtelgprs.com","",""
OK

AT+CIICR
OK

AT+CIFSR


117.98.170.110

AT+CIPSTATUS


OK



STATE: IP STATUS

AT+CIPHEAD=1


OK

AT+CDNSORIP=0


OK

AT+CIPSTART="TCP","<MY PUBLIC IP>","2020"


OK



STATE: TCP CONNECTING



CONNECT FAIL


AT+CIPCLOSE


CLOSE OK


it does not work ,or there any other method to verify and see the Data sent from SIM300 over gprs network , in case i don't own a website or server space.
Sat Jan 07 2012, 04:37 PM
#2
I need to Verify that I can send and receive Data over GPRS THROUGH SIM300 modem , so far i have used tcpserve , server.exe on my pc, to check if sim300 can make a connection with My PC through GPRS , but everytime same message "CONNECT FAIL " , while connection to otherwebsites like google is working ,

I have no experience in server programming etc , so what can be easiest method to see the data sent from SIM300 GPRS at other END ,
Sat Jan 07 2012, 10:05 PM
#3
most probably its the IP issue... either you;re not entering correct IP or if your IP is right then you might be using a router which is preventing connection to your local PC. login to your router to do port forwarding and you will be able to connect.
Sun Jan 08 2012, 10:26 AM
#4
Hello Ajay ,

I am using my public ip shown on google etc when u search for "My IP " , i am not using Router ,its only an ADSL modem and my PC ,
Wed Jan 18 2012, 01:28 PM
#5
sorry for late reply.. did you configure your router as a bridge or pppoe connection? to be more clear did you create a DSL dialup in your PC or internet is on when you turn on ur router?
Tue May 01 2012, 08:37 PM
#6
Hello Amit sir
i m trying to setup an internet connection using GSM modem SIM300 but facing some difficulties.... it will be great if u help me to do this..........
here is wht i hv tried so far


at
OK
at+cmgf=1
OK
at+cgatt=1
OK
at+cgdcont=1
OK
at+cstt="airtelgprs.com","guest","guest"
OK
at+ciicr
OK
at+cifsr
223.179.181.72
at+cipstatus
OK

STATE: IP STATUS
at+ciphead=1
OK
at+cdnsorip=1
OK
at+cipstart="tcp","www.google.com","80"
OK

CONNECT OK
at+cipsend
> get/http/1.1
SEND OK
at+cipsend
> get/http/1.1
SEND OK

//(after about 5 mins it reply )

CLOSED


i m referring this link

http://www.8051projects.info/forum/gsm/2256-open-webpage-using-commands-via-gprs.html

i have no idea what is going wrong, i m not familiar with ip address n all, search a lot related to this topic bt still no where......
plz help me with ur ideas


thanks and regards


[ Edited Tue May 01 2012, 08:39 PM ]
Tue May 01 2012, 09:19 PM
#7
first.. your GET request is wrong... here is the right way...

GET /index.html HTTP/1.1 [cr][lf]
Host: www.example.com[cr][lf]
[cr][lf]


[cr] = carriage return = enter key
[lf] = line feed = shift + enter key

you can try again.
 sumitdby like this.
Wed May 02 2012, 08:53 AM
#8
Hi sumit ,
look at http://madeeasykits.com/faqs.asp " How do I make a GPRS connection and send an HTTP Request?"

This works perfectly for me ,

after TCP connection is established ,

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 (home) page of Google
Host: www.google.com
Accept: */*
Accept-Language: en-us
- Send a blank-line and then a Ctrl-Z
- Data from the remote server will be sent by the module
 sumitdby like this.
Wed May 02 2012, 09:43 AM
#9
Sending a " Ctrl-Z" is necessary after a GET Request , or SMS , or DATA to TCP /UDP , this perhaps Signals END OF MESSAGE to Modem , then only your GET Request or SMS is Sent
Thu May 03 2012, 07:13 PM
#10
at
OK
at+cgatt=1
OK
at+cgdcont=1,"IP","airtelgprs.com"
OK
at+cdnscfg="0.0.0.0","0.0.0.0"
OK
at+cstt="airtelgprs.com","",""
OK
at+ciicr
OK
at+cifsr
223.191.220.9
at+cipstatus
OK
STATE: IP STATUS
at+cdnsorip=1
OK
at+cipstart="tcp","www.google.com","80"
OK
CONNECT OK
at+cipsend
> GET /index.html HTTP/1.1

SEND OK
HTTP/1.1 302 FoundLocation: http://www.google.co.in/Cache-Control: privateContent-Type: text/html; charset=UTF-8Set-Cookie: PREF=ID=b09de108aee4fe30:FF=0:TM=1336071660:LM=1336071660:S=yaYDa2a6DtNrStne; expires=Sat, 03-May-2014 19:01:00 GMT; path=/; domain=.google.comSet-Cookie: NID=59=h7SJwuCKpACzaDjQaWxSFbYNLrVsYa-m1x2p-wneLYlYgjMS6BUmK_ZvZG_7SmYrQQsK3nrTe2hGx54V7lhkHufiZfT_Sc-fJNPRVkEUH9qIfNy6_UZZwq5sMypeZ_9F; expires=Fri, 02-Nov-2012 19:01:00 GMT; path=/; domain=.google.com; HttpOnlyP3P: CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info."Date: Thu, 03 May 2012 19:01:00 GMTServer: gwsContent-Length: 221X-XSS-Protection: 1; mode=blockX-Frame-Options: SAMEORIGIN##SANITISED##><HEAD>##SANITISED## http-equiv="content-type" content="text/html;charset=utf-8"> <TITLE>302 Moved</TITLE></HEAD>##SANITISED##> <H1>302 Moved</H1> The document has moved <A HREF="http://www.google.co.in/">here</A>.##SANITISED##>##SANITISED##>


[ Edited Thu May 03 2012, 07:28 PM ]

Get Social

Information

Powered by e107 Forum System

Conversation

Mon Mar 01 2021, 10:00 PM
Olivia Johnson
Citibank expects Bitcoin to hit USD$300,000 by end of this year.

Downloads

Comments

Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM

Online

Guests: 89, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123