Pages: [1]   Go Down
Author Topic: SIM300 GPRS Connection CLOSED problem  (Read 987 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello Everyone,

I need to make a TCP connection to send Data to a Web server, everything is okay except my big problem smiley-sad

The problem is After I sent
AT+CIPSTART="TCP","spreadsheets.google.com","443"
I got
OK
CONNECT OK
then I sent
at+cipsend
> GET /formResponse?formkey=dFlabUV1Vk1qU1NZcFlMb1ZZY25MQ nc6MQ&entry.0.single=8.255&entry.1.single=32.11&su bmit=Submit HTTP/1.1
Host: spreadsheets.google.com
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en
Accept-Encoding: gzip, deflate
Connection: keep-alive

^Z
----------------
I get CLOSED & the modem stops responding smiley-sad

CLOSED

I actually have to physically restart the MODEM at this point

Any help please smiley-sad
Logged

Rome, Italy
Offline Offline
Sr. Member
****
Karma: 20
Posts: 442
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
I don't know the module you are using, but google docs requires encryption which should be negotiated using a STARTTLS command. Consult your documentation for the details. Can you try connecting to an unencrypted service just to check that the rest of your commands are Ok?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, the problem was in google docs, I've tested Google.com successfully  smiley
I have send data successfully  in the URL, my inquiry now, How can I control my Arduino from my website?
Logged

Rome, Italy
Offline Offline
Sr. Member
****
Karma: 20
Posts: 442
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

... my inquiry now, How can I control my Arduino from my website?

Warning: such generic, unfocussed, context-not-provided questions may receive sarcastic replies smiley-cool.

You can write a sizeable book (didn't say a good book) collecting all the threads in this forum about this topic. The principle is: the server sits waiting for periodic HTTP requests from the Arduino (sensor updates and commands to execute, if any); from a browser you connect to the server, read the updates in an HTML page and send the commands through a form. The optimal route is to understand the basic request/response messages of the HTTP protocol (google for it), which are the same whether you use Ethernet or GPRS to access the Internet, then look for code that implements this basic protocol and adapt it to the GPRS way of establishing an Internet connection.

You may want to think in advance of how to prevent unauthorized access to your server and thus your Arduino, just in case your project includes an automatic door opener or a noisy alarm.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm working on that smiley

Thanks a lot for your reply, really it's helpful.

Logged

Pages: [1]   Go Up
Jump to: