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 with connecting to server with SIM300C

Status
Not open for further replies.

hid

Newbie level 6
Joined
Feb 22, 2007
Messages
12
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,283
Activity points
1,378
Hi everybody,

I'm trying to use SIM300C to send data to a server but I don't know if I'm missing something, please help. This is what I'm doing after start-up:


Call Ready

AT
OK

AT+CGDCONT=1,"IP","wap.xxxxxxx.com"
OK

AT+CSTT="wap.xxxxxxx.com","yyyyyyy","zzzzzzzzzzz"
OK

AT+CIICR
OK

AT+CIFSR
172.17.199.182

AT+CIPSTART="TCP","201.108.xx.xxx","2020"
OK

STATE: TCP CONNECTING

CONNECT FAIL


Between "OK" and "STATE: TCP CONNECTING" delays about 1 minute.
My operator give me an IP address as "Gateway" (no DNS) but I don't know wich AT command use this parameter and if I need it.

I've search everywhere and I think this commands are OK but they don't work.

I'll really appreciate your help.
 
at+cipstart

May be hardware related. Check if the antenna connection is ok, and check the power supply with an oscilloscope. During TX bursts you should have voltage drops not greater than ~300mV. Long delays between CIPSTART and STATE: usually means bad signal or poor power supply. What does it say at AT+CSQ?
Also, make sure the peer is reachable from internet on that port (try with telnet).
The commands are ok, if you issue AT+CSTT, then AT+CGDCONT is not necessary.

/pisoiu
 

portalnmms

I don't think is hardware related since I'm using the Evaluation Board. I'm using the power adapter that came with the EVB (output is 6V 2A, should I change it for a 3A adapter?) and antenna connection seems ok. I changed antenna, anyway, just in case.

AT+CSQ?
ERROR

AT+CSQ
+CSQ: 25,0
OK

I think 25,0 is ok, isn't it?

I reach the server with Internet Explorer **broken link removed** and with ftp 201.108.xx.xxx (i didn't use port no. in ftp).

Do you think it could be something about the mentioned IP "Gateway"? Should I "put it" somewhere?

I'm gone to look for an oscilloscope to check the power supply.


Now if I use UDP insead of TCP everithing works as expected but I don't detect anything (no data, no connection request) in my server:

AT+CIPSTART="UDP","201.108.xx.xxx","2020"
CONNECT OK
OK

AT+CIPSEND
> HOLA HOLA HOLA
SEND OK


What else can I do?
 

at+cdnscfg

If you are using devkit, then the problem is not hardware. 25,0 at CSQ looks fine, it should work.
There are some other settings which you have to consider. Simcom modems does not automatically recognize the destination address as being internet name or IP address. You should set this manually using AT+CDNSORIP. Most probably this is correct since the UDP connection works.
If it still does not work, try to connect to a very common address, like www.google.com , on port 80. Of course, you will have to change www.google.com with the actual IP address if you do not want to switch mode to AT+CDNSORIP=1. It is possible that your provider have some filters on that port for TCP protocol.

/pisoiu
 

at+cifsr

I'm trying not to use AT+CDNSORIP because my provider doesn't give me DNS server, they don't use it, I guess is dinamic or something.

I followed your advice and tried AT+CIPSTART="TCP","216.239.39.99","80" (google) but still CONNECT FAIL came up.

My provider, besides APN, user and password, use a Gateway IP and port 9201 for that gateway, I mean, I put the SIM Card in a Cellphone with this parameters (APN, user, password, Gateway's IP and port, DNS:000.000.000.000) and I can reach my server and I can wap all over the web. If I change this Gateway in Cellphone's configuration, I can't connect. Mmmmmm..... Actually, my Motorola V400 show something similar to SIM300, shows "Connecting" in the screen for one minute or so, followed by "Server not available" (in the screen). Should I been setting up this Gateway IP somewhere in SIM300? I guess so, but where? I can't find where. What do you think?
 

cdnscfg

Well, this is tough... I do not know how to set the gateway in the S300, I've never encountered this situation before. Try to connect to the gateway, see what's happening :)
If all this depends on setting up the gateway in the simcom, then again, I'm sorry, but I do not have a clue. Try e-mailing the manufacturer, maybe they have an answer.

/pisoiu
 

cipstart

Wow... I CAN connect to the gateway, port 80. I get SEND OK when sending widh AT+CIPSEND. After 15 seconds I get "CLOSED".

Do you have an idea what could I try from here, before I e-mail SIMCOM?
 

sim300c at command

Sorry, as I've said, not a clue....

/pisoiu
 

at+csq error

FYI. It turns out that my provider use a few diferent APN, I change it in +CSTT ...and viola!... I can wap. For now I connect to IPs only (not url), I'm trying to use DNS using AT+CDNSCFG="xxx.xxx.xxx.xxx" and AT+CDNSORIP=1 but I'm getting ERROR: 4 STATE: IP CLOSE after CIPSTART. I think my DNS is wrong, so I'm cheking with my operator. The funny thing is that AT+CDNSCFG? gives me ERROR... Well, I'm working on it. I'm probably ending up using IPs instead of URLs, anyway.
 

cipsend telnet

CDNSCFG adn CDNSORIP must be issued before CIICR and CIFSR, the order is important.

/pisoiu
 

sim300c

need sim300 interfacing schematics and all possible documentation

Added after 28 seconds:

someone please help!
 

at+cipstart=

Hi
Try connecting to required address with some kind of software like "SOCKET WORKBENCH " and try to send some data with that software and observe the status.

With Regards
Ravi
 

state: tcp connecting

Hello All,

I am trying to use SIM508 to connect to GPRS using Hutch ( India ).

I am able to connect to the GPRS network and get an IP but unable to connect to any IPs :(

Hutch Settings ( No user/pass required):
APN : portalnmms
Gateway: 10.10.1.100 ( or proxy ??? )
Port: 9401

The commands ( in order ) that I am trying to connect

AT+CGATT=1
AT+CSTT="portalnmms"
AT+CGDCONT=1,"IP","portalnmms"
AT+CDNSORIP=0
AT+CIICR ( Results in "Ok" )
AT+CIFSR ( Results in an ip xxx.xxx.xxx.xxx )

at+cipstart="TCP","10.10.1.100","9401"
OK

CONNECT FAIL


The questions that I have are
1) Is there any thing wrong in the commands/ the order ?

2) I am able to connect to the gateway ( or proxy ) using
at+cipstart="TCP","10.10.1.100","9401"
OK

CONNECT OK
at+cipsend=5
> 123456
SEND OK
7
ERROR
at+cipmode?
+CIPMODE: 0

OK
at+cipsend=288
> HTTP/1.1 503 Service Unavailable
Content-Type: text/vnd.wap.wml
Proxy-Connection: close

<wml><card id="error" title="Error">

Service Unavailable, Please try later</


3) How can I specify that the connections should be routed through the gateway/proxy ? ( My service provider doesnot provide DNS option )


Thanks
 

at cdnsorip

rakeshxp said:
AT+CGATT=1
AT+CSTT="portalnmms"
AT+CGDCONT=1,"IP","portalnmms"
AT+CDNSORIP=0
AT+CIICR ( Results in "Ok" )
AT+CIFSR ( Results in an ip xxx.xxx.xxx.xxx )

at+cipstart="TCP","10.10.1.100","9401"
OK

You forget two parameters : Username and Password

The correct command is: AT+CSTT="portalnmms","username","password"

and The correct command steps is:

AT+CGATT=1
AT+CGDCONT=1,"IP","portalnmms"
AT+CSTT="portalnmms","username","password"
AT+CDNSORIP=0
AT+CIICR ( Results in "Ok" )
AT+CIFSR ( Results in an ip xxx.xxx.xxx.xxx )

at+cipstart="TCP","10.10.1.100","9401"
OK
 

csq simcom

AT+CGATT=1 // Activate GPRS
okay
AT+CGDCONT=1,"IP"," IDEA INTERNET GPRS"
okay
AT+CDNSORIP=1 // DNS mode
okay
AT+CIICR
error
Bringing the wireless interface up failed.
Can any body help me how to bring wireless interface up.
 

get service provider at+csq

Shailesh2008 said:
AT+CGATT=1 //
Bringing the wireless interface up failed.
Can any body help me how to bring wireless interface up.

Make clear about your problem
 

at+csq

Vodafone doesnot have any username of password for its fields hence why is it required. I have used the 10 digit phone number given with the SIM.

Q1) What does the following error mean?
"
<wml><card id="error" title="Error">

Service Unavailable, Please try later</p
></card></wml> "

Q2) Where does the local machine get its IP address that we see after issuing the AT+CIFSR query?

Q3) What Hutch/Vodafone (India/Bangalore) IP address can I connect to using AT+CIPSTART if I do not have any proxy setup?

TIA,
Samit
 

at+csq simcom

Please help me what wrong with these commands (SIM508 EVB)


at+cgdcont=1,"IP","m3-world"

OK
at+cstt="m3-world","mms","mms"

OK
at+cdnsorip=0
a
OK
t+cdnsorip=0

OK
at+ciicr

OK
at+cifsr

10.2.5.24
at+cipstart="TCP","10.1.10.46","9201"

OK

STATE: TCP CONNECTING

CONNECT FAIL
 

at+cdnscfg is not working

Hi,

Please answer these related questions:
 

Re: SIM300C CONNECT FAIL

Hi Everyone!
Good news is i m able to connect with a vodafone sim card
but I m trying with TATA DOCOMO(India). I m unable to get a response from the server(google.com)
Kindly help me.
i m sticking my code here:
AT+CGATT=1
AT+CGDCONT=1,"IP","TATA.DOCOMO.INTERNET"
AT+CSTT="TATA.DOCOMO.INTERNET","",""
AT+CIICR
AT+CIFSR >>115.118.93.58
AT+CDNSCFG ="0.0.0.0","0.0.0.0"
AT+CIPHEAD=1
AT+CDNSORIP=1
AT+CIPSTART="TCP","www.google.com","80"
>>OK
>>Connect OK
AT+CIPSEND
>> GET / HTTP/1.1 ^m ^j
Host:www.google.com^m^j
Accept: */*^m ^j
Accept-Language: en-us ^m ^j^m ^j^Z

***************************
I dont get any response thereafter.after ten mins it says CLOSED as i understand timer runs out. But, if i give AT+CIPSTATUS
>>Connect ok
:|
I m stuck here.. i read most the help.. i m unable to solve here.
Kindly help
But i can work with vodafone sim ofcourse there i use proxy ip:10.10.1.100 and proxy port:9401 given in their website

I need some real help!!!
I m unable to get the data. I still have to work for uploading the Data too

Thanks in advance!!!
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top