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.

Full Specification of SIMCOM SIM300CZ

Status
Not open for further replies.

b_esk

Junior Member level 2
Joined
May 20, 2009
Messages
22
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,480
irancell apn

hi
i work with sim300c,i want send data with gprs to website as below:
wwww.gps.golzaci.com/default.aspx?s1=......data....
s1 is my data
i dont send data with sim300c
can you help me?
 

cipsend carriage return

Here's the commands you need to send. 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

[/code]
 
  • Like
Reactions: shamyr

    shamyr

    Points: 2
    Helpful Answer Positive Rating
state: ip status

hello
i received your email, thank you very much but i have problem yet
i send these commands as below :
>> 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
:arrow:i receiving this:
ERROR

+PDP: DEACT
i dont know why?:?:?
after this error most commands that you say ,have an error
why??
i have not sufficient time for solving the problem
:cry:
thanks
 

simcom error 517

In my example, the APN, User ID and Password that I show are for the AT&T/Cingular network. You have to obtain these values for Your Service Provider and substitute them for the values I gave you.
 

at+cipsend doesnt shows response of page

hello
You said to me that i need to get the APN, user name and password for the network i am using.
but i dont know how can obtain these values :?:
i don have good information from the network
please help me in this problem
i want open this url for sending data >>>>
"www.gps.golzarci.com/default.aspx?s1=1*2*3*4*5*6*7*8*9*10"
thanks
 

invalid data when response sim508

You have to get them from the company that provides your cell phone service. These are associated with the phone network your GSM modem is connecting to - nothing to do with the Internet domain.
 

+9891100500

hello
you say, i must go to cell phone company and give apn , username and password from there ??
if your anwser is ok ,i have one question that it is
why i can send data with opening url via my mobile ??
my cell card work via <nokia n73> and send my data to web site but not work with gsm sim300c??
why??
please more explaine to me
and please explaine to me about Configure Domain Name Server (primary DNS, secondary DNS)
how to obtain two value primary DNS and secondary DNS ???
are these my destination ip address :?:
thanks
 

gprs dns irancell

b_esk said:
hello
you say, i must go to cell phone company and give apn , username and password from there ??
if your anwser is ok ,i have one question that it is
why i can send data with opening url via my mobile ??
my cell card work via <nokia n73> and send my data to web site but not work with gsm sim300c??
why??
Because you phone was provisioned by your cell company to have that information stored in it.

please more explaine to me
and please explaine to me about Configure Domain Name Server (primary DNS, secondary DNS)
how to obtain two value primary DNS and secondary DNS ???
are these my destination ip address
When you make a request for a domain name (i.e google.com), a DNS server converts that URL into an IP address. When you set the DNS servers using the "CDNSCFG" command you are indicating which DNS servers you want to use. It doesn't much matter what DNS servers you use. A lot of people use the "Open DNS" servers that are at; 208.67.222.222 and 208.67.220.220.
 

at+cgdcont irancell

hello
i can answer from gsm and i can connect to web site as below:
AT+CGATT=1
OK
AT+CGDCONT=1,"IP","MTN IRAN CELL"
OK
AT+CDNSCFG="208.67.222.222","208.67.220.220"
OK
AT+CSTT="MTN IRAN CELL","",""
OK
AT+CIICR
OK
AT+CIFSR
10.12.32.38
AT+CIPSTATUS
OK

STATE: IP STATUS
AT+CIPHEAD=1
OK
AT+CDNSORIP=1
OK
AT+CIPSTART="TCP","www.gps.golzarci.com","80"
OK

CONNECT OK

:arrow:
but i cant my data<www.gps.golzarci.com/default.aspx?s1=1*2*3*.....10*> via "AT+CIPSEND"
my data is value of "s1" as above format
can you help me:?:

Added after 4 minutes:

but i can not send my data :arrow: <www.gps.golzarci.com/default.aspx?s1=1*2*3*.....10*> via "AT+CIPSEND"

my data is value of "s1" as above format

can you help me:?:
 

sim300 url at+ciphead

I don't understand what your problem is. What is it doing, or not doing?
 

irancell gprs dns

ok ,i want send any data via open url , for example : >>www.gps.golzarci.com/default.aspx?s1=[1*1*1*1*1*1*1*1*1*1*]<<
you can examine it with internet explorer and see data<1*1*1* ...> in my data base
if i work with computer , i can use internet explorer software for opening url and tarnsfering data
but i am working with microcontroller there for i must imitate as internet explorer.
with your helping i connect to "www.gps.golzarci.com" as below:

AT+CGATT=1
OK
AT+CGDCONT=1,"IP","MTN IRAN CELL"
OK
AT+CDNSCFG="208.67.222.222","208.67.220.220"
OK
AT+CSTT="MTN IRAN CELL","",""
OK
AT+CIICR
OK
AT+CIFSR
10.12.32.38
AT+CIPSTATUS
OK

STATE: IP STATUS
AT+CIPHEAD=1
OK
AT+CDNSORIP=1
OK
AT+CIPSTART="TCP","www.gps.golzarci.com","80" OK

CONNECT OK :idea:


but, i dont know how i can send data as internet explorer via microcontroller??
please say to me some command that insert <1*1*1* ...> in my data base after connect to "www.gps.golzarci.com" web site
thanks
 

cipstart domain

After you receive the "connect" status send the following:
AT+CIPSEND

Then wait for module to return'>' to indicate it's ready to receive data and send the following:
GET /default.aspx?s1=[1*1*1*1*1*1*1*1*1*1*] HTTP/1.1
Accept: */*
Accept-Language: en -us
Host: **broken link removed**

^z
[/quote]
Each line of data you send must have carriage return/line feed after it. Also, you must have one blank line after your data - it indicates the end-of-header. Finally, you need to send the '^z' (that's a control-Z) to the module to indicate the end of your data.

You should get a response from the module "SEND OK", and then the data from the server.
 

at command csca: +9891100500,145

hello
i applied commands as below:

AT+CGATT=1
...
AT+CIPSTART="TCP","www.gps.golzarci.com","80"
OK

CONNECT OK
AT+CIPSEND
> GET /default.aspx?s1=[1*1*1*1*1*1*1*1*1*1*] HTTP/1.1
Accept: */*
Accept-Language: en -us
Host: **broken link removed**

:arrow::?:
SEND OK
+IPD171:HTTP/1.1 400 Bad Request
Content-Type: text/html
Date: Sun, 12 Jul 2009 09:10:37 GMT
Connection: close
Content-Length: 42

<h1>Bad Request (Invalid Header Name)</h1>
CLOSED

i applied <LF(^J)> and <CR(^M)> after each line and i applied two <LF(^J)> and <CR(^M)> after "Host: http://www.gps.golzarci.com/" and <^z> finally
i received <send ok> but i dont have any data in my web sit
the connection is closing and i have this message {Bad Request (Invalid Header Name)</h1>}
why???
 

at+cgdcont, mtn

hello
i applied commands as below:

AT+CGATT=1
...
AT+CIPSTART="TCP","www.gps.golzarci.com","80"
OK

CONNECT OK
AT+CIPSEND
> GET /default.aspx?s1=[1*1*1*1*1*1*1*1*1*1*] HTTP/1.1
Accept: */*
Accept-Language: en -us
Host: **broken link removed**

:arrow:i received it
SEND OK
+IPD171:HTTP/1.1 400 Bad Request
Content-Type: text/html
Date: Sun, 12 Jul 2009 09:10:37 GMT
Connection: close
Content-Length: 42

<h1>Bad Request (Invalid Header Name)</h1>
CLOSED






i applied <LF(^J)> and <CR(^M)> after each line and i have one blank line after "Host: http://www.gps.golzarci.com/"
i received <send ok> but i dont have any data in my web site
the connection is closing and i have this message {Bad Request (Invalid Header Name)</h1>}
why???
 

sim300c web based

When I try it from my system I get the following:
+IPD260:HTTP/1.0 302 Found
Location: **broken link removed**
Content-type: text/html
Connection: close
Date: Mon, 13 Jul 2009 16:49:02 GMT
Server: OpenDNS Guide


CLOSED

The '302' response indicates that the "The requested resource resides temporarily under a different URI". Are you using a virtual host? I would check the host settings.
 

+cms error: 517

thank you very much
i can send data in my web site :D
 

cipsend return close

hello my friend
i can send data in my web site but i have one problem that it is
i saied that i am working with microcontroller and my data
is long ,about 120 charachter when i send my data as below ,gsm response is "closed"
AT+CIPSEND
> GET /default.aspx?s1=[ÓæÇÑí*Ñíæ*ÓÝíÏ_ÑæÛäí*866 È 55 - ÇíÑÇä 63*1388/04/24*22:2
7:34*05224.17733,E*2945.53046,N*0.015*9*]HTTP/1.1
Accept: */*
Accept-Language: en -us
Host: www.gps.golzarci.com


CLOSED
but when i reduce lenght of data so that this command terminate in one line
for example as below:
AT+CIPSEND
<GET /default.aspx?s1=[1*1*1*1*1*1*1*1*1*1*] HTTP/1.1>
Accept: */*
Accept-Language: en -us
Host: www.gps.golzarci.com


send ok
now , data is sending
why???
do you have any solution for this problem??
i say!
i can change web program so that receive 2 parameter ,for example:
www.gps.golzarci.com/default.aspx?s1=[1*1*1*1*1*]&s2=[1*1*1*1*1*]
if it is helping!!!
 

sim300c

Try adding the line "Connection: Keep-Alive" to the HTTP Header. This will tell the server to keepyour connection open.
 

Re: sim300c

HELLO MY FRIEND
i try to adding the line "Connection: Keep-Alive" as below:
AT+CIPSTART="TCP","www.gps.golzarci.com","80"
OK

CONNECT OK
AT+CIPSEND
> GET /default.aspx?s1=[TEST OK*TEST OK*TEST OK*TEST OK*TEST OK*TEST OK*TEST OK*TEST OK*TEST OK*TEST OK*] HTTP/1.1
Host: www.gps.golzarci.com
Connection: Keep-Alive
Accept: */*
Accept-Language: en-us


CLOSED

but after i apply "ctrl z"then gsm tell me "closed"
response reason is lenght of my data
in above commands if i reduce value of s1 then data is sending!!!
why i terminate this :arrow:"GET /default.aspx?s1=[TEST OK*TEST OK*TEST OK*TEST OK*TEST OK*TEST OK*TEST OK*TEST OK*TEST OK*TEST OK*] HTTP/1.1" in one line then data is sending:!:
but, my data don't terminate in one line :cry: it's long
what do you think of it?
please more explaine to me
thanks alot
 

Re: sim300c

i am sorry for simcom company
i worded with tc35i and no any problem
but with simcom.......
i have another problem that it is
i can read sms but i can't send sms
i occur with this error <+CMS ERROR: 517>
please see this commands:
AT+CMGF=1 <text mode>
OK
AT+CSCS="GSM"
OK
AT+CSCA="+9891100500",145 <+9891100500 = msg centre number>
+CMS ERROR: 517
AT+CMGS="09360410831"
+CMS ERROR: 517

YOU CAN TELL TO ME necessary COMMANDS???
i search 4 hours in internet but ...

i am awkwardly situated
excuse me :cry:
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top