12:20 am

July 28, 2019

Hi there, i'm a very new to Thingspeak API. I'm working on Sim800A and try to sending data to Thingspeak from it using UART protocol. I followed this tutorial https://www.instructables.com/id/Thingspeak-Upload-Data-Using-Gsm-Module-sim900/
Everything works fine except that nothing happend on my channel, although i received SEND OK response. I've also checked that my APN is "internet" for my simcard. I think that the problem is when i receive SEND OK response, there is no something like "12" response (as you can see in the video which is embedded in the tut) but it comes CLOSED response after about 15-20 secs. One more thing that makes me dizzy is that sometimes it works - data was sent to the channel, and sometimes not (both have only SEND OK, then CLOSED, nothing between).
Can anybody give me some advices. Thanks a lot.
3:53 pm


Moderators
March 7, 2017

The ThingSpeak Communication library has examples for using AT commands to communicate with the server. Its in the Examples, under ESP8266, 'via AT commands'
It might not work directly for the sim900 - I haven't tested it - but it should give you some ideas. Many of the older examples that disconnect before waiting for a response from the server do not work any more.
8:52 pm

July 28, 2019

11:33 am


Moderators
March 7, 2017

Definitely not. I've heard from a lot of people here on the forum who have successfully connected a sim900 module to ThinkSpeak. It is a nice, flexible option. Just having to wait for server acknowledgement is a slight change in the code, that may not have been completed in the demo you posted. A slight tweak and you should be working in no time.
9:58 pm

July 28, 2019

10:08 pm

July 28, 2019

3:59 am

March 30, 2020

Hi @DummyGeek,
I had the same problem that you comment. I must tell you that he carries out the project with the sim800l module with arduino and also with an NXP MCU (freedom kl46z).
* In the arduino program it went smoothly.
* With the micro kl46z it presents the problem that you mentioned with CIPSEND, whose answer is SEND OK but nothing else. In this case, what I did and I have worked is to add the characters "\ r \ n" after writing the data I want to send to the server and before "(char) 26".
Here I leave the line where he explains what I mentioned.
I hope I have been clear and that I can be useful to you.
Cheers
8:41 pm

July 4, 2018

3:28 pm


Moderators
March 7, 2017

The ThingSpeak documentation has several examples on reading from different devices, and will show you the common syntax or workflow for reading from a channel.
https://www.mathworks.com/help/thingspeak/read-data-from-channel.html
There are some posts in this forum dealing with sim8001, and I've seen several partial examples in a google search.
FYI, MATLAB answers is the preferred location for ThingSpeak Community support.
Most Users Ever Online: 166
Currently Online:
25 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
rw950431: 272
Vinod: 240
piajola: 95
turgo: 70
vespapierre: 63
Adarsh_Murthy: 62
Member Stats:
Guest Posters: 1
Members: 8665
Moderators: 1
Admins: 2
Forum Stats:
Groups: 3
Forums: 14
Topics: 1600
Posts: 5760
Newest Members:
huldacormier, bogart, estebanmateo93, mikewrite, onlinebusiness, winzy99Moderators: cstapels: 460
Administrators: Hans: 405, lee: 457