Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

GSM Module, GPRS conncetion through AT Commands problem

Status
Not open for further replies.

pappu_sam

Member level 1
Joined
Dec 31, 2009
Messages
39
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
HYDERABAD
Activity points
1,559
Hi all,

I am using SIM300 GSM Module,
trying to configure GPRS through AT Commands like this

Code:
>>AT
<<OK

>>AT+CGATT=1
<<OK

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

>>AT+CDNSCFG="0.0.0.0","0.0.0.0"
<<OK

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

>>AT+CIICR
<<OK

>>AT+CIFSR
<<Getting some IP and OK

>>AT+CIPSTATUS
<<OK and STATUS: IP STATUS

>>AT+CIPHEAD=1
<<OK

>>AT+CDNSORIP=0   // am giving my IP address to connect
<<OK

>>AT+CIPSTART="TCP","61.12.35.117","80"
<<OK
<<CONNECT OK

>>AT+CIPSEND
<< > it is promting to receive data
[SIZE=4]when I give data it is hanging up and after some time am getting reply as[/SIZE]
<<CLOSED
please suggest me how to receive data from my server
 
Last edited by a moderator:

CIPSEND is to send data from module to server ip and port
there is no need of any at command to recv data from server in GPRS mode
 

Hi akvii,

am not sending AT commands after CIPSEND

am sending GET/HTTP/1.1 Host: www.google.com Connection: Keep-Alive

nothing am receiving from server
after 3 minutes its giving response as CLOSED...
 

hi

module automatically disconnects from GPRS when there is no activity for 3 or more m

two files are attached....portpeeker is to make your pc/laptop server...if you are using router or switch then you have forward a port in it....if your machine is directly connected to the internet then skip that step


client is to send data to the specfic ip and port....you can use two PCs instead of module for understanding the procedure
 

Attachments

  • TCP Client.rar
    23.1 KB · Views: 74
  • PortPeeker.exe
    766.4 KB · Views: 67

hi akvii,

Thanx for ur suggestion .... its working between two pcs.
but how to connect through GSM module using AT commands
 

1: "AT+CMGF=1",13
module respond "OK"

2: "AT+CIPSTART=",34,"TCP",34,",",34,"ip of server",34,",",34,"port",34,13]
module respond "CONNECT OK"

3: "AT+CIPSEND",13
WAIT FOR ">" THEN SEND/type ANY DATA

open portpeeker and configure it as your requirement in your PC....now this is your server....enter its IP and port in step2...you will see all the activity in it
if you want to receive data in GPRS module then use TCPclient and send data
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top