electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Simcom Sim300 GPRS connection problem


Post new topic  Reply to topic    EDAboard.com Forum Index -> Professional Hardware and Electronics Design -> Simcom Sim300 GPRS connection problem
Author Message
dna



Joined: 12 Aug 2008
Posts: 6


Post20 Aug 2008 12:47   

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


Simcom Sim300 GPRS connection problem

Best Regards,
Julian Dimitrov



Sorry, but you need login in to view this attachment

Back to top
sabeti_1990



Joined: 16 Nov 2007
Posts: 178
Helped: 11


Post28 Aug 2008 5:50   

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
Back to top
dna



Joined: 12 Aug 2008
Posts: 6


Post28 Aug 2008 8:57   

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 Crying or Very sad

Best Regards,
Back to top
sabeti_1990



Joined: 16 Nov 2007
Posts: 178
Helped: 11


Post02 Sep 2008 12:35   

gprs sim300


hi

give all command that U use to conecction from frist Neutral
Back to top
Google
AdSense
Google Adsense




Post02 Sep 2008 12:35   

Ads




Back to top
dna



Joined: 12 Aug 2008
Posts: 6


Post04 Sep 2008 9:42   

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
Back to top
maheshsutariya



Joined: 25 Sep 2008
Posts: 5
Location: India


Post13 Oct 2008 16:40   

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(at)gmail.com
Back to top
sabeti_1990



Joined: 16 Nov 2007
Posts: 178
Helped: 11


Post04 Nov 2008 7:41   

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
Back to top
dna



Joined: 12 Aug 2008
Posts: 6


Post06 Nov 2008 12:41   

sim300 transparent mode


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



Joined: 01 Dec 2008
Posts: 3


Post01 Dec 2008 16:19   

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
Back to top
sabeti_1990



Joined: 16 Nov 2007
Posts: 178
Helped: 11


Post11 Dec 2008 10:50   

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
Back to top
hamvui2005



Joined: 07 Jul 2006
Posts: 10
Helped: 1


Post30 Dec 2008 8:09   

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!
Back to top
htiple



Joined: 27 Aug 2009
Posts: 1
Location: pune


Post27 Aug 2009 5:38   

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
Back to top
jonstringer



Joined: 12 Sep 2009
Posts: 1


Post13 Sep 2009 10:21   

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.
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Professional Hardware and Electronics Design -> Simcom Sim300 GPRS connection problem
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Simcom Sim300 GPRS connection problem (14)
simcom GPRS connection (2)
connection to GPRS using SIM300 (2)
sim300 connection problem (1)
Simcom SIM300 PIN configuration (manual, pinout, ...) ?? (2)
GPRS connection problem: Can't data from a server (1)
HELP: SIM300 AND GPRS AND TCP STACK PROBLEM (9)
GPRS ppp problem during connection ,IPCP does not started (2)
SIMCOM serial connection qestion?? (4)
GPRS Connection From One GPRS Modem to another ??? (11)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS