Discussion in "Embedded GSM Development" started by    mohsin418    May 6, 2014.
Tue May 06 2014, 08:09 AM
#1
Hello, I need to send data strings to a web server using GPRS connected to my PC, I am using huawei GTM900 , please guide me regarding enhanced AT commands for this specific module to access web and deploy data to a webserver.

I tried Different APN's also but no success.
Thu May 08 2014, 12:07 PM
#2
Did you get AT Command manual with this modem? can you post link to its product page?

[Topic moved to Embedded GSM Development Forum]
Fri May 09 2014, 05:18 AM
#3
I am facing the same problem I have got the user manual for AT commands for huawei but do not know how to start the TCP connection as in other huawei modules it is ip^init but its nor supported by my module gtm900c, kindly help me to start the TCP connection for huawei gtm900c module.
Fri May 09 2014, 07:26 AM
#4
Chapter 7 explains all the commands related to TCP/IP or GPRS communication. There is another document with name "TCPIP AT Command User Guide" which can give you better idea on how to use these commands with example. However here is a small snippet that you can try out to see if basic GPRS is working. You can make use of a TCP server to receive data for testing.

  1. AT+CGREG? -> check if module is registered to use GPRS, you should get response as 1 or 5 after this is successful try rest of the commands below.
  2. AT+CGDCONT=1,"IP","[APN]" -> set APN (Access point name) for your network, e.g. in case of vodafone its www
  3. AT%ETCPIP -> enable GPRS and TCPIP. If everything is success, you will get a response something like
    %ETCPIP: 1,[ip address],[gateway],[DNS1],[DNS2]
  4. AT%IPOPEN="TCP",IP,PORT -> open a tcp connection, to a server... e.g.
    AT%IPOPEN="TCP","173.194.36.69","80" this will open connection to google server and if everything is ok you will get a response "CONNECT" or ERROR if failed
  5. AT%IPSEND="test",4 -> send data to TCP server, response will be %IPSEND:15 --> number can be anything, just make sure its not 0
  6. AT%IPCLOSE -> close current connection


You can try these commands, meanwhile look for the document that I mentioned. It will give you in detail info on how to use TCP/IP on GTM900C
Fri May 09 2014, 08:43 AM
#5
its giving me error 1 on AT%IPOPEN="TCP","173.194.36.69","80" , i have tried my area google server ip

how to resolve it
AT+CGATT=1
AT+CGACT=1,1
AT+CGREG=(0-5)
AT+CGREG=1
AT+CGDCONT=1,"IP","[APN]" *APN given ok
AT%ETCPIP *given the results
AT%IPOPEN="TCP","173.194.36.69","80 *Error 1


now how to resolve it, im in trouble

Fri May 09 2014, 09:51 AM
#6
ok, now its giving error 20, The cache for transmitting TCP data is full.

how to clear cache?
Fri May 09 2014, 09:56 AM
#7
you dont have to send following
AT+CGATT=1
AT+CGACT=1,1

all above commands are automatically sent when enabling TCP

AT+CGREG=(0-5)
AT+CGREG=1
you cannot manually set CGREG, coz its set internally by modem depending on your registration status with network.

Error 1 means: not logged into network. please make sure you have inserted card properly and network is registered.
Check signal strength: AT+CSQ
check network registration: at+creg?
and gprs registration: at+cgreg?

after you get success on all these commands, only then try to enable tcp. dont do it before you get CREG and CGREG as 1 or 5. again you cannot set these commands they are set automatically.
Fri May 09 2014, 10:53 AM
#8
AT+CGREG? ..... 1,1
AT+CSQ ...........12,99
AT+CREG ............... 0,1
AT+CGDCONT=1,"IP","Telenor" ... OK
AT%ETCIP? ..... %ETCPIP:1"10.238.195.125",,"202.69.12.33","202.69.12.34"
AT%IPOPEN="TCP","172.194.116.1522","80"
... ERROR : 1

now where lies the problem?

Fri May 09 2014, 11:23 AM
#9
>> AT%ETCIP? ..... %ETCPIP:1"10.238.195.125",,"202.69.12.33","202.69.12.34"
this shows your TCP/IP stack is up and running fine.

AT%IPOPEN="TCP","172.194.116.1522","80"

looks like wrong IP to me.. 1522?? it should not be more than 255
 sanaaaa like this.
Fri May 09 2014, 11:32 AM
#10
sorry it was a typo mistake am using 152

Get Social

Information

Powered by e107 Forum System

Conversation

No messages yet.

Downloads

Comments

Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM

Online

Guests: 152, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123