Unable to transfer data to ThingSpeak server using SIM800

Goura Pani on 12 Sep 2021 (Edited on 12 Sep 2021)
Latest activity Edit by Christopher Stapels on 16 Sep 2021

Hi, I am using SIM800 for transferring data to the ThingSpeak server. After send OK, I am not getting acknowledgment from ThingSpeak. Also, the field is not getting updated in ThingSpeak. Let me know what has gone wrong. The commands and response in teraterm is as below.

AT+CIPSHUT

SHUT OK

AT

OK

AT+CIPMUX=0

OK

AT+CGATT=1

OK

AT+CSTT="airtelgprs.com","",""

OK

AT+CIICR

OK

AT+CIFSR

100.67.75.225

AT+CIPSTART="TCP","184.106.153.149","80"

OK

CONNECT OK

AT+CIPSEND

> GET /update?api_key=81XXXXXXXXXXXXX4&field1=32

SEND OK

CLOSED

Christopher Stapels
Christopher Stapels on 13 Sep 2021

Often the problem is the length of the send command after you build the URL. Can you share the part of your code where you determine the message length and send it?

Goura Pani
Goura Pani on 14 Sep 2021 (Edited on 14 Sep 2021)

Hi,

Thanks for the reply.

1) After AT+CIPSEND, I don't give the length of "GET /update?api_key=81XXXXXXXXXXXXX4&field1=32". Rather after "GET /update?api_key=81XXXXXXXXXXXXX4&field1=32" I give Ctrl+Z.

2) Here, I am using teraterm and I have connected SIM800 module to the serial port of my PC. I am sending the commands manually. Once, the concept works, I will write my code to do the same using microcontroller.

Christopher Stapels
Christopher Stapels on 14 Sep 2021 (Edited on 16 Sep 2021)

You might need to wait for a response from the server before disconnecting at the end.