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.

why I have a PDP DEACT ??? SIM300C

Status
Not open for further replies.

litham

Newbie level 6
Joined
Jun 17, 2009
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,376
pdp deact

Hi all,
I use sim300c to try sending data.

But, I don't know how to proiceed
My goal is to find a file containing lines of data on my host or something like that.
so can anyone help?


I try diffrents AT command without success.

Code:
AT+CGATT?         
+CGATT: 1

OK
AT+CIPCCON?
+CIPCCON: 1

OK
AT+CLIP?
+CLIP: 1,0

OK
AT+CIPSTART="tcp","213.202.225.39","21"
OK

CONNECT FAIL

STATE: IP IND

+PDP: DEACT
AT+CIPSTART="tcp","213.202.225.39","21"
OK

STATE: PDP DEACT
AT+CGACT?
+CGACT: 1,0

OK
AT+CIPSTART="tcp","213.202.225.39","21"
OK

STATE: PDP DEACT

Code:
at
OK
at+cpin?
+CPIN: READY

OK
at+cgatt?
+CGATT: 1

OK
at+cstt
ERROR
at+cstt
ERROR
at+ciicr
ERROR
at+cipserver
ERROR
Realy I have no idea, on how to establish a conection.

thank you for your help

best regarts
 

+pdp: deact

When I try to activate the PDP context I got an error.
really I don't understand how that works

Code:
at+cipshut
STATE: PDP DEACT

SHUT OK
at+cipstatus
OK

STATE: IP INITIAL
at+cgact=?
+CGACT: (0-1)

OK
at+cgact?
OK
at+cgact=1
+CME ERROR: 596
 

state: pdp deact

First, make sure you can connect to a remote server on the internet using HTTP on port 80. Your service provider may be blocking ports other than 80.

In the example below '>>' indicates data you send to the module, while'<<' indicates data returned from the module. This example is for connecting through the AT&T/Cingular network. You'll need to get the APN, user name and password for the network you are using. Also, you'll need to add your data to the request.
Code:
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

After you have context, you need to make a connection to the server and then send your data.
Code:
>> 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

If you get this working you can try connecting via the FTP Port. The problem with FTP'ing is that you need two simulataneous connections - one for commnds and one for the data transfer.
 

cme error 596

thanks for replay
I think I m sur.
heir is my providers informations:
SFR (name of provider - from France)

Wap GSM

* Profil name : WAP SFR GSM
* connection number : +33613000010
* principal IP / annexe : 195.115.025.129
* Principal Port / annexe : 9201
* USER : "none" //no user
* PASS : "none" //no pass
* homepage : **broken link removed**

Wap GPRS

* Profil name : WAP SFR GPRS
* accès Point: wapsfr
* USER : "none" //no user
* PASS : "none" //no pass
* principal IP Adresse : 195.115.025.129
* port number : 9201
* homepage : **broken link removed**

MMS SFR

* Profil name : MMS SFR GPRS
* accès Point : mmssfr
* USER :"none" // no user
* PASS : "none" //no pass
* Passerelle (gatway !!) : 010.151.000.001
* Message Serveur : **broken link removed**

Web SFR

* name: WEB SFR GPRS
* accès Point : websfr
* USER : "none" // no user
* pass : "none" //no pass
* network Protocole used : TCP/IP
* IP Adress : Attribuée par le serveur
* DNS primary : 172.20.2.10
* DNS secondar : 194.6.128.4

So all is heir: if I want to connect to google.com what the argument of at commands chould I set:

note when I try cipstart I got:
Code:
at+cipstart="tcp","207.210.244.11","9201"
OK
CONNECT FAIL
STATE: IP IND
+PDP: DEACT

What about IP IND ???? meaning?
thanks a lot for your time
 

sim300 pdp deact

Try connecting to Google using the following CIPSTART command:
Code:
 AT+CIPSTART="TCP","www.google.com","80" - TCP connection to Google.com on Port 80

Make sure that you set the IP address to use the Domain name:
Code:
AT+CDNSORIP=1

The Port value in the CIPSTART command is the port on the server that you want to connect to - 9201 is a port related to your serv ice provider.
 

at+ciicr

thanks, for replay
but conection fail
this is a history of my at commands: please take a look:
Code:
Call Ready          
at+cipstatus            
OK  

STATE: IP INITIAL                 

at+cgdcont=?            
+CGDCONT: (1-10),"IP",,,(0,1),(0,1)                                   

OK  
at+cgdcont=1,"IP","websfr",                           
OK  
at+cstt=?         
+CSTT: "APN","USER","PWD"                         

OK  
at+cstt="websfr"                
OK  
at+cstt?        
+CSTT: "websfr","",""                     

OK  
    
at+cdnsorip?            
+CDNSORIP: 0            

OK  

at+cdnsorip=?             
+CDNSORIP: (0-IP ADDR,1-DOMAIN NAME)                                    

OK  
AT+CDNSORIP=1             
OK  
at+cipstart="TCP","www.google.fr","9201"                                        
ERROR     
AT+CIPSTART="TCP","www.google.com","9201"                                         
ERROR     
AT+CIPSTART="TCP","www.google.com",9201                                       
ERROR     
at+cipstatus            
OK  

STATE: IP START               
   
at+cipshut          
SHUT OK       
at+cdnsorip?            
+CDNSORIP: 1            

OK  
at+cipstart="TCP","www.google.fr","9201"                                        
OK  

CONNECT FAIL            

STATE: IP IND             

+PDP: DEACT 

at+ciicr        
ERROR     
at+cipshut          
STATE: PDP DEACT                

SHUT OK       
    
AT+CIICR        
ERROR     
   
at+cipstatus            
OK  

STATE: IP INITIAL 
AT+CIPSTART="TCP","www.google.fr","9201"                                        
OK  

CONNECT FAIL            

STATE: IP IND             

+PDP: DEACT         
at+cstt?        
+CSTT: "websfr","",""                     

OK  
at+cgdcont?           
+CGDCONT: 1,"IP","websfr","",0,0                                

OK  
at+cgact?         
+CGACT: 1,0           

OK  
at+cgatt?         
+CGATT: 1         

OK  
at+cdnsorip?            
+CDNSORIP: 1            

OK  
at+creg?        
+CREG: 0,1          

OK  
at+creg=1         
OK  
at+creg?        
+CREG: 1,1          

OK  
at+cipstatus            
OK  

STATE: PDP DEACT                
at+cipshut          
STATE: PDP DEACT

SHUT OK
at+cipstart="tcp","www.google.fr","9201"
OK

CONNECT FAIL

STATE: IP IND

+PDP: DEACT
at+cipshut
STATE: PDP DEACT

SHUT OK
at+cipstart="tcp","www.google.fr","80"
OK

CONNECT FAIL

STATE: IP IND

+PDP: DEACT
 

at+ciicr error

Code:
at+cipstart="TCP","www.google.fr","9201"
You're trying to connect to the Google web server on its port 9201. That server doesn't have a open port at 9201. You MUST CONNECT ON PORT 80

Change your command to:
Code:
at+cipstart="TCP","www.google.fr","80"
 

+33613000010

Dear litham: you forgot to ask for SIM300 local ip, this step is madatory. Take a look to this example.

// Set APN
AT+CSTT="APN","USERNAME","PASWORD"<CR>

// Bring Up Wireless Connection
AT+CIICR<CR>

// Get Local Ip (Mandatory Step, Check SIM300 AT Commands)
AT+CIFSR<CR>

// Connect with domain name server
AT+CDNSORIP=1<CR>

// Configure Domain Name Server
AT+CDNSCFG="PRIMARY_DNS","SECONDARY_DNS"<CR>

// Connect to Server Example
AT+CIPSTART="TCP","www.google.cl","80"<CR>

Good Luck
Andres Sendra P.

Ps: <CR>= Carriage Return (0x0D or Enter)
 

at+cdnsorip

pepin82 said:
Dear litham: you forgot to ask for SIM300 local ip, this step is madatory.)
Sorry, but this isn't true - there is no requirement that you query the local IP address! This is simply an 'infomrational' command - provides information only.
 

sim300c pdp: deact

Hi all
thanks , but the problème stiil
pepin82, AT+CIICR, returns ERROR .
when I try port 80 for google I got the same IP IND error.

I try to activate PDP like the follows, but it returns NO CARRIER.
//-----------------
at+cgdcont?
+CGDCONT: 1,"IP","","",0,0
+CGDCONT: 4,"IP","websfr","",0,0

OK
at+cgact=1,4
NO CARRIER
OK

//--------------------

tnx
 

pdp: deact

If you follow the sequence I gave you earlier, after the 'AT+CIICR ' comnmand is issued you should receive a reply from the module of 'OK'. If you don't, then the network is not recognizing you. If your plan supports GPRS, then the most likely cause is that the APN, User or password is not correct.
 

+pdp deact

Hi all,
I call my provider s and tell theme what was wrong, annnnd, in my first call they gave me a wrong APN. so finally I get the exact one. and it works fine I get a CONNECT OK.

BUT, no it's Okey :lol:
 

at+cipstart connect with domain name

GSM Man said:
First, make sure you can connect to a remote server on the internet using HTTP on port 80. Your service provider may be blocking ports other than 80.

In the example below '>>' indicates data you send to the module, while'<<' indicates data returned from the module. This example is for connecting through the AT&T/Cingular network. You'll need to get the APN, user name and password for the network you are using. Also, you'll need to add your data to the request.
Code:
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

After you have context, you need to make a connection to the server and then send your data.
Code:
>> 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

If you get this working you can try connecting via the FTP Port. The problem with FTP'ing is that you need two simulataneous connections - one for commnds and one for the data transfer.

Thanks a lot,
I tried the solution as u mentioned ,
Iam able to send data to my static ip,
regards,
Aravind
 

state: ip initial

Kejuqeju, please don't post your question on multiple threads.
 

Re: pdp deact

Hi frnd, Now I am having this same problem. I dont know that where is problem Occur?.
supposing you know the answer send to me. I am using SIM300 Module in Linux, Aircel Network.

my mail id: 09mca17study@gmail.com
 

Re: sim300 pdp deact

sir,
I am using SIM900D, But I am getting error during command AT+CDNSORIP=1
plz help me out
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top