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.

Problem in establishing GPRS connection to server

Status
Not open for further replies.

sunny_saha007

Newbie level 1
Newbie level 1
Joined
May 9, 2017
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
12
Hi,
Basically am trying to establish the GPRS connection to send data to my server and also receive data to my server. Programming it through a Raspberry pi. While I was in India the Airtel connection would work and data being sent and received, as I moved to Australia, I tried the same with Airtel on roaming but gives me AT + CIIR *PDP : DEACT, what does this mean ?? All the data and roaming are on. Apart from that, I did try the connection with Vodafone on the sim900 but it gets connected but fails to send and receive data. Keeping the codes below , help would be appreciated.
Code:
def Gprs_Init_comm():
	ser.write("AT+CIPSHUT\r")
	sleep(2)
	ser.write("AT+CMGF=1\r")
	sleep(5)
	ser.write("AT+CIPMUX=0\r")
	sleep(5)
	ser.write("AT+CSTT=\"www.airtelgprs.com\",\"\",\"\"\r")
	sleep(7)
	ser.write("AT+CIICR\r")
	sleep(5)
	ser.write("AT+CIFSR\r")
	sleep(5)
	ser.write("AT+CIPSTART=\"TCP\",\"52.11.214.114\",\"85\"\r")
	sleep(8)

Subsequently changed the code to live.vodafone.com ... Gets connected but does not send data.
 

Hi,
Basically am trying to establish the GPRS connection to send data to my server and also receive data to my server. Programming it through a Raspberry pi. While I was in India the Airtel connection would work and data being sent and received, as I moved to Australia, I tried the same with Airtel on roaming but gives me AT + CIIR *PDP : DEACT, what does this mean ?? All the data and roaming are on. Apart from that, I did try the connection with Vodafone on the sim900 but it gets connected but fails to send and receive data. Keeping the codes below , help would be appreciated.
Code:
def Gprs_Init_comm():
	ser.write("AT+CIPSHUT\r")
	sleep(2)
	ser.write("AT+CMGF=1\r")
	sleep(5)
	ser.write("AT+CIPMUX=0\r")
	sleep(5)
	ser.write("AT+CSTT=\"www.airtelgprs.com\",\"\",\"\"\r")
	sleep(7)
	ser.write("AT+CIICR\r")
	sleep(5)
	ser.write("AT+CIFSR\r")
	sleep(5)
	ser.write("AT+CIPSTART=\"TCP\",\"52.11.214.114\",\"85\"\r")
	sleep(8)

Subsequently changed the code to live.vodafone.com ... Gets connected but does not send data.

5/9/2017 16:18:34.592 [TX] - AT<CR>

5/9/2017 16:18:34.601 [RX] - AT<CR>
<CR><LF>
OK<CR><LF>

5/9/2017 16:18:47.040 [TX] - AT+SAPBR=3,1,"Contype","GPRS"<CR>

5/9/2017 16:18:47.078 [RX] - AT+SAPBR=3,1,"Contype","GPRS"<CR>
<CR><LF>
OK<CR><LF>
<CR><LF>
Call Ready<CR><LF>

5/9/2017 16:18:48.960 [TX] - AT+SAPBR=3,1,"APN","www"<CR>

5/9/2017 16:18:48.993 [RX] - AT+SAPBR=3,1,"APN","www"<CR>
<CR><LF>
OK<CR><LF>
<CR><LF>
SMS Ready<CR><LF>

5/9/2017 16:18:52.440 [TX] - AT+SAPBR =1,1<CR>

5/9/2017 16:18:52.461 [RX] - AT+SAPBR =1,1<CR>
<CR><LF>
OK<CR><LF>

5/9/2017 16:20:22.872 [TX] - AT+SAPBR=2,1<CR>

5/9/2017 16:20:22.892 [RX] - AT+SAPBR=2,1<CR>
<CR><LF>
+SAPBR: 1,1,"10.32.154.195"<CR><LF>
<CR><LF>
OK<CR><LF>

Change www to Airtel APN.
I posted Command alsong with Response.
Try it, Surely it will works for SIM800/900.
All the Best :)
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top