Re: SIM 300 : Can't open internet site on hyperterminal
I am trying to connect to a server to get data via the GPRS network.
I can connect and send and the modem says "send ok" but I dont get the data from the site.
press power off button to clear phone.
NORMAL POWER DOWN
press power on button.
Call Ready
AT+CGDCONT=1,"IP","WWW.VODAFONE.NET.NZ"$0D
OK
AT+CSTT="WWW.VODAFONE.NET.NZ","021678230"$0D
OK
AT+CIICR$0D
OK
AT+CIFSR$0D
121.90.172.138
AT+CIPSTATUS$0D
OK
STATE: IP STATUS
AT+CIPHEAD=1$0D
OK
AT+CDNSORIP=0$0D
OK
AT+CIPSTART="TCP","74.125.127.100","80"$0D
OK
CONNECT OK
AT+CIPSEND$0D
> GET
https://www.google.co.nz/preferences?hi=en HTTP/1.1$0D
$0D
$0D$1A
SEND OK
Where is the data from Google?
I also tryed this next code, with the code before the at+cipstart not shown.
AT+CIPSTART="TCP","74.125.127.100","80"
OK
CONNECT OK
AT+CIPSEND
> GET
https://www.google.co.nz/preferences?hi=en HTTP/1.1^M^J
HOST:WWW.GOOGLE.CO.NZ^M^J^M^J^Z
$0D
$0D$1A
SEND OK
Where is the data from Google?
When I conect to an IP address with a port number using the code below, I get the data streeming in with no problems. See below.
press power off button.
NORMAL POWER DOWN
press power on button.
Call Ready
AT+CIPCSGP=1,"WWW.VODAFONE.NET.NZ"$0d
OK
AT+CGDCONT=1,"IP","WWW.VODAFONE.NET.NZ","202.124.104.43"$0d
OK
AT+CIPMODE=1$0d
OK
AT+CIPCCFG=3,2,256,1$0d
OK
AT+CIPSCONT?$0d
SHOW APPTCPIP CONTEXT
+CDNSORIP:0
+CIPSPRT:1
+CIPHEAD:0
+CIPFLP:1
+CIPSRIP:0
+CIPCSGP:1
Gprs Config APN:
WWW.VODAFONE.NET.NZ
Gprs Config UserId:
Gprs Config Password:
Gprs Config inactivityTimeout:0
+CIPDPDP:1
Detect PDP Inerval:10
Detect PDP Timer:3
App Tcpip Mode:1
Number of Retry:3
Wait Time:2
Send Size:256
esc:1
OK
AT+CIPSTART="TCP","202.124.104.43","4002"$0d
OK
CONNECT
Below is the data streeming in.
A1111111111111111111111111111111111111111111111111111111111111111111
22222222222222222222222222222222222222222222222222222222222222222222
33333333333333333333333333333333333333333333333333333333333333333333
44444444444444444444444444444444444444444444444444444444444444444444
55555555555555555555555555555555555555555555555555555555555555555555
+++
OK
AT+CIPSHUT$0D
SHUT OK
Added after 2 hours 58 minutes:
I am trying to connect to a server to get data via the GPRS network.
I can connect and send and the modem says "send ok" but I dont get the data from the site.
press power off button to clear phone.
NORMAL POWER DOWN
press power on button.
Call Ready
AT+CGDCONT=1,"IP","WWW.VODAFONE.NET.NZ"$0D
OK
AT+CSTT="WWW.VODAFONE.NET.NZ","021678230"$0D
OK
AT+CIICR$0D
OK
AT+CIFSR$0D
121.90.172.138
AT+CIPSTATUS$0D
OK
STATE: IP STATUS
AT+CIPHEAD=1$0D
OK
AT+CDNSORIP=0$0D
OK
AT+CIPSTART="TCP","74.125.127.100","80"$0D
OK
CONNECT OK
AT+CIPSEND$0D
> GET
https://www.google.co.nz/preferences?hi=en HTTP/1.1$0D
$0D
$0D$1A
SEND OK
Where is the data from Google?
I also tryed this next code, with the code before the at+cipstart not shown.
AT+CIPSTART="TCP","74.125.127.100","80"
OK
CONNECT OK
AT+CIPSEND
> GET
https://www.google.co.nz/preferences?hi=en HTTP/1.1^M^J
HOST:WWW.GOOGLE.CO.NZ^M^J^M^J^Z
$0D
$0D$1A
SEND OK
Where is the data from Google?
When I conect to an IP address with a port number using the code below, I get the data streeming in with no problems. See below.
press power off button.
NORMAL POWER DOWN
press power on button.
Call Ready
AT+CIPCSGP=1,"WWW.VODAFONE.NET.NZ"$0d
OK
AT+CGDCONT=1,"IP","WWW.VODAFONE.NET.NZ","202.124.104.43"$0d
OK
AT+CIPMODE=1$0d
OK
AT+CIPCCFG=3,2,256,1$0d
OK
AT+CIPSCONT?$0d
SHOW APPTCPIP CONTEXT
+CDNSORIP:0
+CIPSPRT:1
+CIPHEAD:0
+CIPFLP:1
+CIPSRIP:0
+CIPCSGP:1
Gprs Config APN:
WWW.VODAFONE.NET.NZ
Gprs Config UserId:
Gprs Config Password:
Gprs Config inactivityTimeout:0
+CIPDPDP:1
Detect PDP Inerval:10
Detect PDP Timer:3
App Tcpip Mode:1
Number of Retry:3
Wait Time:2
Send Size:256
esc:1
OK
AT+CIPSTART="TCP","202.124.104.43","4002"$0d
OK
CONNECT
Below is the data streeming in.
A1111111111111111111111111111111111111111111111111111111111111111111
22222222222222222222222222222222222222222222222222222222222222222222
33333333333333333333333333333333333333333333333333333333333333333333
44444444444444444444444444444444444444444444444444444444444444444444
55555555555555555555555555555555555555555555555555555555555555555555
+++
OK
AT+CIPSHUT$0D
SHUT OK