I've downloaded the wavecom AT-Command from here and now I'm trying to follow the commands, but I want to know what matter caused my modem got NO CARRIER in return?? I've follow the sequence.
thanks
Hi!
I've tried the sequence of at-commands but then I got ERROR return in +CGACT, here is the sequence
Code:
AT+CGDCONT=1,"IP","internet";+CGDCONT=1,"IP","TELKOMSEL"
OK
AT+CGDCONT?
+CGDCONT:1,"IP","TELKOMSEL" , , 0,0
AT+CGQREQ=1,1,4,5,2,14
OK
AT+CGQMIN=1,1,4,5,2,31
OK
AT+CGATT=1
OK
AT+CGACT=1,1
ERROR
AT+CGACT?
+CGACT:0,0
+CGACT:1,0
OK
AT+CGACT=?
+CGACT:(0-1)
OK
Why the +CGACT return is ERROR? I've no idea about it.
And about AT+CSQ? it also return ERROR:?:
thanks.
Hi ckshivaram!
AT+CSQ? isn't working for my modem, but AT+CSQ (without question mark)
Code:
AT+CSQ
+CSQ: 12,0
OK
I got the completed reference to do what I wanted, but it's for SIMCom modem.
Code:
-> AT+CGATT=1 //Attach to GPRS Service
<- OK
-> AT+CGDCONT=1,"IP","<Your APN Name>" //Define PDP Context (cid, PDP type, APN)
<- OK
-> AT+CDNSCFG="xxx.xxx.xxx.xxx","xxx.xxx.xxx.xxx" //Configure primary and secondary Domain Name Servers
<- OK
-> AT+CSTT="<Your APN Name>","<User ID>","<PASSWORD>" //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
<- xxx.xxx.xxx.xxx //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
-> 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 - this command may take time to give this response
-> AT+CIPSEND //Issue Send Command
<- > //wait for module to return '>' prompt to indicate it's ready to receive data
-> GET / HTTP/1.1 //Send data - this example is an HTTP request for the google
-> Host: http://www.google.com
-> Connection: Keep-Alive
-> Accept: */*
-> Accept-Language: en-us
->
<- //data from server returned - Server will return data here
And then I tried to follow it, but of course using wavecom AT+commands
Code:
AT+CGATT=1
OK
AT+CGDCONT=1,"IP","INTERNET";+CGDCONT=1,"IP","3gprs"
OK
AT+WIPCFG=1 //START IP STACK
OK
AT+WIPBR=1,6 // OPEN GPRS BEARER
OK
AT+WIPBR=2,6,11,"3gprs" //SET APN NAME
OK
AT+WIPBR=2,6,0,"3gprs" //SET USERNAME
OK
AT+WIPBR=2,6,1,"3gprs" //SET PASSWORD
OK
AT+WIPBR=4,6,0 //START GPRS BEARER
OK
AT+WIPCREATE=2,1,"www.google.com",80 //CREATE TCP CLIENT
OK
+WIPREADY: 2,1
Then how to send http request now? I haven't found yet the similar AT+CIPSEND in wavecom AT+Command.
I want to send "GET / HTTP/1.1"
Perhaps you can help me.
thank you