Command set for SIM300 to send data to tcp server via gprs
Discussion in "Embedded GSM Development" started by Shailesh NAYAK Feb 16, 2009.
Mon Feb 16 2009, 02:44 pm
command set in order it is required:
- AT+CSTT="apn","username","password" //START TASK AND SET APN, USER NAME, PASSWORD (in India username and /pwd not required so you can give blank qoutes only)
- AT+CIICR //BRING UP WIRELESS CONNECTION WITH GPRS OR CSD
- AT+CIFSR //GET LOCAL IP ADDRESS
- AT+CIPSTART="TCP","IP","PORT" // START UP TCP OR UDP CONNECTION
- AT+CIPSEND[enter]
your data strings to be send (upto 1024 bytes are allowed //SEND DATA THROUGH TCP OR UDP CONNECTION
Ctrl-Z (in micon 0x1A). to send the data - AT+CIPSHUT //close all active connections
[ Edited Tue Mar 12 2013, 06:34 pm ]
rearthur2003 like this.
Fri Sep 25 2009, 02:20 pm
hi,
what is the apn for airtel sim...as i am new to gprs communication need to know a lot before working on.
what is the apn for airtel sim...as i am new to gprs communication need to know a lot before working on.
praveen.accet like this.
Fri Sep 25 2009, 03:03 pm
hi started and found this error
at
OK
at+cstt="airtelgprs.com",","
OK
at+ciicr
ERROR
at+cifsr
ERROR
wat might be the wrong in this
at
OK
at+cstt="airtelgprs.com",","
OK
at+ciicr
ERROR
at+cifsr
ERROR
wat might be the wrong in this
Fri Sep 25 2009, 06:08 pm
Hi GPRS experts.....
i used above set of commands and found the result below...please help me in solving the problem i am attaching my TCP test tool window and Hypertermial screenshots.awaiting response
at
OK
at+cstt="airtelgprs.com",","
OK
at+ciicr
OK
at+cifsr
117.97.37.90
at+cipstart="TCP","192.168.1.26","12345"
OK
at+cipsend=srikanth Happy Dussera
ERROR
at+cipsend=srikanth Happy Dussera
ERROR
STATE: TCP CONNECTING
CONNECT FAIL
i used above set of commands and found the result below...please help me in solving the problem i am attaching my TCP test tool window and Hypertermial screenshots.awaiting response
at
OK
at+cstt="airtelgprs.com",","
OK
at+ciicr
OK
at+cifsr
117.97.37.90
at+cipstart="TCP","192.168.1.26","12345"
OK
at+cipsend=srikanth Happy Dussera
ERROR
at+cipsend=srikanth Happy Dussera
ERROR
STATE: TCP CONNECTING
CONNECT FAIL
Sat Sep 26 2009, 08:02 pm
you first have to wait for TCP connection to establish to send data.
after the connection is established you will get "CONNECT OK" on display.
for sending data try this way
at+cipsend="srikanth Happy Dussera" [ctr+z]
after the connection is established you will get "CONNECT OK" on display.
for sending data try this way
at+cipsend="srikanth Happy Dussera" [ctr+z]
[ Edited Sat Sep 26 2009, 08:02 pm ]
Mon Oct 05 2009, 12:29 pm
hi ajay,
sorry for late response i was in vacation....i fallowed ur stated steps and found the same result repeadtedly i.e....
at
OK
at+cstt="airtelgprs.com",","
OK
at+ciicr
OK
at+cifsr
117.97.28.135
Call Ready
at+cipstart="tcp","192.168.1.26","12345"
OK
STATE: TCP CONNECTING
CONNECT FAIL
mine is a LAN based PC (IP as above) and modem with airtel broadband connection.
checking the data over TCP Test tool V2.3
Please help me in solving ....is there any port farwarding or anything else required for connecting successfully.
sorry for late response i was in vacation....i fallowed ur stated steps and found the same result repeadtedly i.e....
at
OK
at+cstt="airtelgprs.com",","
OK
at+ciicr
OK
at+cifsr
117.97.28.135
Call Ready
at+cipstart="tcp","192.168.1.26","12345"
OK
STATE: TCP CONNECTING
CONNECT FAIL
mine is a LAN based PC (IP as above) and modem with airtel broadband connection.
checking the data over TCP Test tool V2.3
Please help me in solving ....is there any port farwarding or anything else required for connecting successfully.
Tue Oct 06 2009, 04:50 pm
BEEP
at+cipstart="tcp","192.168.1.26","12345"
that ip is local ip, your server need to be online so that everyone can connect.
check your IP with whatismyip.com
at+cipstart="tcp","192.168.1.26","12345"
that ip is local ip, your server need to be online so that everyone can connect.
check your IP with whatismyip.com
Tue Oct 06 2009, 09:25 pm
Once you have got your proper IP from whatismyip.com
you need to use it instead of "192.168.1.26" in
at+cipstart="tcp","192.168.1.26","12345"
Then you will need to setup port forwarding in your router,
to port "12345".
Or whatever port your PC software is listening to.
you need to use it instead of "192.168.1.26" in
at+cipstart="tcp","192.168.1.26","12345"
Then you will need to setup port forwarding in your router,
to port "12345".
Or whatever port your PC software is listening to.
[ Edited Tue Oct 06 2009, 09:29 pm ]
Fri Oct 09 2009, 06:41 pm
Thanks ajay,experimentorUK,
i am studying and working on port forwarding....will come back after completing.
i am studying and working on port forwarding....will come back after completing.
Powered by e107 Forum System