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.

Simcom Sim300 GPRS connection problem

Status
Not open for further replies.

dna

Newbie level 4
Newbie level 4
Joined
Aug 12, 2008
Messages
6
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,350
sim300 gprs

Dear Sirs/Madams,
We are a company that is fond of proces automation. One of our tasks is:
We have a GPRS modem with Simcom Sim300 and we have to connect it with programmable logic controller (PLC), with that device we can send AT commands to the GPRS modem. We have software that can communicates and receives data from the PLC, the communication protocol is different - RS232, modem, TCP, UDP. When we connect with the GPRS network we receive an IP address and here comes the problem, when we try to connect the communication software for the PLC to this IP address , the software indicates that there is no connection. With two GPRS modems we tryed to connect modem1 with modem2 and it worked, but our purpouse is to connect the GPRS modem to the Internet and trough it to access the PLC. To be more accurate and understandable we will apply a principal scheme for what we are trying to do and the two ways (in AT commands) that we tryed to achieve that.

AT commands
Example 1:

AT

OK
AT+CGDCONT=1,"IP","globul"

OK
AT+CGDCONT?

+CGDCONT: 1,"IP","globul","",0,0

OK
ATD*99***1#

CONNECT
<data>
NO CARRIER

Example 2:
AT

OK
AT+CGDCONT?

+CGDCONT: 1,"IP","globul","",0,0

OK
AT+CSTT="globul"

OK
AT+CGATT?

+CGATT: 1

OK
AT+CIICR

OK
AT+CIFSR

10.8.144.163
AT+CLPORT?

TCP: 2020
UDP: 3030

OK
AT+CIPSTART="UDP","10.0.0.1","3030"

CONNECT OK

OK




Best Regards,
Julian Dimitrov
 

simcom sim300

hi
it's just because of your APN ability in your country

for example 1
sim300 just work in PDP mode not ip "when it work as modem for U"


in example 2

you don't need "at+cgatt?" & when U use at+cipstart & give back "connect"

U can establish your sending & receiving & have no problem BUT it's communication port maybe not supported by your APN "check it !!"
and other things that be very important , U must to know that your module in which mode is working "server or client" .
if it's be in client mode U must use server mode for your other module


be success
 
sim300 gprs connection

Thanks for your answer,
We've been able to establish TCP and UDP connection between the two modems (from the figure in my first post). We are able to send data (the problem was as you say - the server, client thing), but when the connection is established I want to be in transparent data mode. I know the command but when I send it to the modems it returns "ERROR". Can anyone knows a possible reason why is that.
The command is AT+CIPMODE=1.

Thank you in advance
Julian Dimitrov

Added after 1 hours 39 minutes:

sabeti_1990 thanks for the help. I read your post in other topic, where you have given some pdf's. Maybe they will help me too to solve my problem.

Best Regards,
Julian Dimitrov

Added after 1 hours 11 minutes:

I've tried this command (AT+CIPMODE=1) before establish TCP connection, but returns ERROR, and I can't understand what is wrong, and why the modem do not go into transparent mode (TCP channel mode). Can anyone knows why. I'm confused :cry:

Best Regards,
 
gprs sim300

hi

give all command that U use to conecction from frist :|
 
simcom at commands

Hi there,

I'm pasting the AT commands that I use:

AT

OK
AT+CGDCONT?

+CGDCONT: 1,"IP","[apn]","",0,0

OK
AT+CSTT="[APN]","[username]","[password]"

OK
AT+CGATT?

+CGATT: 1

OK
AT+CIICR

OK
AT+CIFSR

***.***.***.***
AT+CLPORT?

TCP: 2020
UDP: 3030

AT+CIPDATA?

+CIPDATA:0

AT+CIPDATA=1

ЕRROR

AT+CIPSTART="TCP","***.***.***.***","2020"

CONNECT OK

OK
 

at+ciicr

Will you please guide me to use this SIM300 Module.

I want to use this module for file transfer in between `microcontroller and internet through GPRS.

But I don't what may be sequence of command I should transmit to achive GPRS connectivity and file transfer.


will you suggest me for the same and if not will you please provide me some reference?

maheshsutariya@gmail.com
 

sim300 mms

hi dna
your command is to be correct but attention U don't need at+cgdcont when U use at+cstt because it change cgdcnt by cstt
by the way U true at establish connection so U should use this mode between a micro controler & a server

First check that the apn that U use it can give U a valid IP for your connecion


hi maheshsutariya
check the posts in other forum I let some pdf for that
 

    dna

    Points: 2
    Helpful Answer Positive Rating
sim300 transparent mode

Thank a lot for the help, but I got other solution for the whole problem :).
I'm about to buy a GPRS router :) and all my problem will be sloved :)
 

sim300 at command

hello everyone

actually i hav been trying to establish a GPRS session using this sim300 module and my objective is to use it in one our embedded application . my research on it is till now in evaluation stage and so i m trying to serial terminal utility to communicate.

i tried out the sequences mentioned above . but had some problems .
some of the commands didn't got the correct response . Moreover , i wud need some useful tips on how should i proceed .

i was able to :

1. establish connection using gprs attachment using cgatt command
2. then setting the context succefully where my access point name was www.airtelgprs.com .

3. but after then some of the commands didn't gave the desired response
here are the commands and their responses which i got :

at+ciicr

ERROR

at+clport?

TCP: 2020
UDP: 3030

OK
at+cipstart="UDP","10.0.0.1",3030

OK

STATE: PDP DEACT

at+cipstart="UDP","10.0.0.1",3030

OK

STATE: PDP DEACT

now i m not able to understand why is this "PDP DEACT" message coming since i have been able to access the packet data service same acces point using my mobile set on the sim i hav been using for testing .
wat should i interpret out of this error message ?

may be support from people already using it makes the things working for me .

Regards
Rahul
 

im wanting a gprs router

hi I don't think your IP range is true
for establish connection U need a valid IP that used by a server (a pc or etc) not 10.0. ...
PDP DEACT means connection not done well & it's better U use at+cipshut first & use cipstart again
 

simcom sim300

I use SIM508 EVB but do not know how to connect to wap or send data. Here some test and error :

at+cipmode=0
OK
at+cdnsorip=1
OK
at+cipcsgp=1,"m-wap","mms","mms"
OK
at+cipscont
OK
at+cipscont?
SHOW APPTCPIP CONTEXT
+CDNSORIP:1
+CIPSPRT:1
+CIPHEAD:0
+CIPFLP:1
+CIPSRIP:0
+CIPCSGP:1
Gprs Config APN:m-wap
Gprs Config UserId:mms
Gprs Config Password:mms
Gprs Config inactivityTimeout:0
+CIPDPDP:1
Detect PDP Inerval:10
Detect PDP Timer:3
App Tcpip Mode:0

OK
at+cipstart="TCP","203.162.21.107",9210
OK

CONNECT FAIL

STATE: IP IND

Please help me how to access to wap or send data.
Sep by step please!
 

sim300 + gprs problems

hi all,

I am using SIM 300 in an embedded platform for making contineous gprs connection uind idea SIM, i don,t have any problem in making the connection but if there is a drop in the network the gprs link goes down and re establishment of the connection is taking long time, it may be 2 hours or 5 days and more.

but if i hard reset the entire unit then it establishes th link within minutes.

i am not getting the root cause ot the problem. but if any one has some idea then please suggest.

thanks
 

at command for simcom

If there is anybody that has a need to buy a gprs router I recommend www.adaptivemodules.com they had engineers that could help with what I needed and they also supplied me with a gprs router!

Added after 41 seconds:

I bought it from aaptivemodules.co.uk was easy.
 

TCP connecting

Hi! I hope someone still watching this thread. :) I also have a problem with my GPRS connection. Help would be really appreciated. Where did I go wrong?
The commands: (Vodafone GPRS WAP, Hungary)

at+cgdcont?

+CGDCONT: 1,"IP","wap.vodafone.net","",0,0

OK
AT+CSTT="wap.vodafone.net","vodawap","vodawap"

OK
at+cgatt?

+CGATT: 1

OK
at+ciicr

OK
at+cifsr

10.17.24.172
at+clport?

TCP: 2020
UDP: 3030

OK
at+cipdata?

ERROR
at+cipdata=1

ERROR
at+cipstart="TCP","81.182.53.74",3000

OK

STATE: TCP CONNECTING

CONNECT FAIL
 

There's a couple of things to check:
- What is your setting for "CDNSORIP"; it should be 0 to indicate you are connecting to an IP address (not a domain name)

- Is the server at "81.182.53.74" configured to accept a TCP conneciton on port 3000.

- Before isssuing the "AT+CIPSTART" command check the status using the command "AT+CIPSTATUS " and make sure it's "IP STATUS"

moleotov said:
Hi! I hope someone still watching this thread. :)
Why add your question onto an old thread - it's better to start a new thread.
 

I am student of engineering in thailand. Pls. help me.
I am using sim300cz GPRS module too, so i want to connect to plc about force and monitoring data of plc. the data i want to force are 8 digital input standard and i want to monitor 8 analog input and sending data to website, but i don't know AT Command and way to program of its.
who know this ,pls. give me the command and way to program of this project.

Thank you very much.
Naja
 

Is this really a question? :) There are many AT Command PDF file on the internet, and you also can use the commands written in this topic. They usually work, but unfortunately I can't establish a GPRS connection. Perhaps it is only my problem.
 

Hello,
I am new to this forum interms of sending quaries. however i hv been visiting the site and getting many info. currently i am working on gprs using sim300d and 89c52.The problem i am facing now is. i get connected to the nw and at+cipstart=".........",I get ok. but before getting connect ok, there is a blank line, which i am not able to handle. the uC struck at this line. can any body suggest how to come out of it pl.

Thanks in advance
ramho
 

I am able to connect to the website but I am getting the error 404 file not found I get the web page when I send the GET command using hyperterminal but I dont get the web page when I connect and send GET command using microcontroller 8-O
 

How did you get the web page when you send command using Hyperterminal.Please give the Full setting (Of HyperTerminal) and Command List You Given.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top