I can make connection to a server using sim300c/gprs. (I get CONNECT OK status)
But, I have some trouble.
when I want to get data from google , with at+cipsend command, I recieve nothing.
these are the commande I use
at+cipshut
SHUT OK
at+cstt="m2minternet"
OK
at+ciicr
OK
at+cifsr
10.230.44.165
at+cipstart="tcp","209.85.229.104","80"
OK
CONNECT OK
at+cipsend
> GET / HTTP/1.1
SEND OK
Also, when I use APPE to create file. it's only says send ok, and I can't find this file.
You need to include the HTTP header data: (>> indicates what you send to GSM, << indicates what GSM sends to you)
>> AT+CIPSEND - Issue Send Command
<< > - wait for module to return'>' to indicate it's ready to receive data
>> GET / HTTP/1.1 - Send data - this example is an HTTP request for the default page
>> Host: www.google.com
>> Connection: Keep-Alive
>> Accept: */*
>> Accept-Language: en-us
>>
>> CTL-Z
<< data from server returned - Server will return data here
No, they are not the same thing. You are not sending a "well formed" header, so when the Google server receives your request it is discarding it - without responding to you.
At the very least, you need to terminate the "GET/HTTP/1.1" with 2 CR/LF pairs. The blank line indicates the end-of-header. However, I would advise you to include all of the lines I showed in my previous post, or you may experience problems with some other servers.
If you don't want to keep to connection alive you can omit that line
Thanks, GSM man the CR/LF pairs can be done with both <Ctrl+ENTER> keys.
I must type <Ctrl+ENTER> key after each line.
and it works,
My next step is to send user and pass over gprs, I try this:
Code:
220 (vsFTPd 2.0.1)
at+cipsend
> USER pep.edbox103
SEND OK
331 Please specify the password.
530 Please login with USER and PASS.
at+cipsend
> PASS pervaya
SEND OK
230 Login successful. //
at+cipsend
> APPE blabla.txt
SEND OK
500 Unknown command. // why?
at+cipsend
> mkd FFTTPP
SEND OK
257 "/FFTTPP" created // OK the directory was created.
AT+CIPSEND
> cwd FFTTPP
SEND OK
500 Unknown command. // ??
what command do I need to create, write file and create directory ?
Thanks
Added after 2 hours 30 minutes:
I foud it, I can create file after etering passiv mode with PASV.