Position is sent to Thinger. io dashboard with a map view. SMS reply on request with map link and triggered notifications
Project tutorial by tormods
Track ME is a "small" GPS, SD Card, and GSM Shield controlled by an Arduino Mega.
Call me and get my location.
Project tutorial by Hugo Gomes
Hi Js, and thanks for your interest in my project. While it's possible (in theory) to make it work for an Uno board, it's not advisable. The reason for this is that Uno only have one hardware serial line, whereas this project requires two. In theory, you could use the "USB" line (and disconnect the GPS while downloading), but then you will loose all debugging, testing and monitoring capabilities. I don't think I've ever made a project work on first try without any adjustments and testing, so it would make things a lot harder. And you would then need to adjust the code without any means to monitor and test it properly. So I'd say you are better off getting the right board to make this work :)
Having said that, you don't need the Leonardo board though. The code could be adjusted to work with other boards as long as there are two hardware serial lines, like the Mega or others.
Its a little late update on the issue, but I found that the SIM900 chip needed a firmware upgrade to enable the "CONTENT" option for the AT+HTTPPARA command. Without this command the HTTP header will not include "content-type: application/json" which it needs. If it does not, it returns a 400 "bad request". This worked previously, but in May thinger.io changed the API somehow and it stopped working. So I had to update the firmware to make it work again, I have updated this guide with this information too.
However, you have a different chip, so this might not be the issue, but can't hurt to check. An easy way to test this is by using https://requestcatcher.com and not the thinger URL in the code. The HTTP POST request will then be shown in plain text at this site, and what you are looking for is the "content-type" section. If its not there, you have a problem.. maybe look into the firmware issue as mentioned.
Hi Samantha! Glad you found it useful! I try my best :)
I'm not familiar with the sim800 models although I've seen that it is what I should have used as its replacing the older sim900. Are you also posting to thinger.io or just a HTTP post request in general?
The 400 return code just means "bad HTTP request", so the request is rejected. The message basically says that "something is wrong with your request". This can come down to anything really, what you are essentially doing is building the HTTP POST request with all attention commands (AT commands) before sending it with"HTTPACTION=1". So any of the previous AT commands can be wrong in one way or another. The things I struggled with that you can check:
If any one of these things are wrong, you might get that return code (or similar).
If none of that works, I think you are better off posting your code and serial output in the forum section, that way it's easier to see the code and what might be wrong.. it always helps to have some context
Or connect with your social account:
New here? Create an account