Arduino + GSM (HTTP GET requests)

  Переглядів 114,852

iforce2d

iforce2d

8 років тому

Previous video 1: • Arduino + GSM module (...
Previous video 2: • Controlling Arduino vi...
Sketches: www.iforce2d.net/sketches/gsm_...

КОМЕНТАРІ: 216
@daviddempster8979
@daviddempster8979 Рік тому
Really interesting video - thanks. I love the way you have used a Finite State Machine(FSM) to move to the various states - makes the code much easier to understand.
@aswahd
@aswahd 5 років тому
Your gsm series is very helpful, thanks.
@fabiomusmeci
@fabiomusmeci 6 років тому
This is only example working for this case! Congratulation and many thanks!
@jeffmorris9893
@jeffmorris9893 8 років тому
Good stuff! Ordered the parts and a card so I'm bookmarking this. To begin with, going to set up intrusion alarms for my 2 workshops. Unreal what security companies charge for that.
@jeffmorris9893
@jeffmorris9893 8 років тому
Actually the previous clip.
@nguyencanh1651
@nguyencanh1651 6 років тому
Thanks iforce2d very much
@iantcroft
@iantcroft 7 років тому
Hi, im not sure if this has been posted before, but one thing i have found during my testing (as a stand alone battery powered project) is, if you disconnect the power to sim module and arduino and connect up to battery the sim module will not send the sms when the state changes. This is because arduino enters "GPRS.println("AT+CMGF=1");" in the VOID SETUP function. I found if arduino enters this command in the "VOID sendSMS" function in "VOID LOOP" (as in the video) it works perfectly if you disconnect then re-connect the power supply to both modules.
@deepakvarade8323
@deepakvarade8323 4 роки тому
Very Helpful Video. Thanks For Sharing 👍
@charlesbaker4
@charlesbaker4 4 роки тому
Thank you for this tutorial. I have changed it a bit to implement POST instead of GET and added power down and power up to the loop to save battery. FYI, using WEMOS D1 mini Pros and the red SIM800L modules. I found the blue SIM800L EVB modules never got enough current no matter how I tried!
@iforce2d
@iforce2d 4 роки тому
If you feel like giving a link to your code I'll pin it here, I get a lot of questions about how to do POST but I have not looked into it myself to be able to answer. Make a new thread if you do, not a reply to this one.
@cirofusco3572
@cirofusco3572 8 років тому
purtroppo non capisco l'inglese ma i suoi video sono mooooltoo interessanti!!! e divertenti
@mdkamruzzamanrussel612
@mdkamruzzamanrussel612 7 років тому
This is good projects for me.
@matiknik
@matiknik 6 років тому
Thanks! mamen, you f*cking rock! Cheers mate :D
@MrAlexisalexis
@MrAlexisalexis 6 років тому
hi I have a question about how to send data to a server, do you know how to do post request or for example as you said, how to send the location in real time from the gps module to a server? thank you.
@almorawaka
@almorawaka 3 роки тому
life saver! thanks..
@iantcroft
@iantcroft 7 місяців тому
Hi @iforce2d this state machine (and gsm one!) is great and I use it a lot. Is there any way of checking the final response code (OK, ERROR etc) before moving to the next state or to confirm the message was actually sent? Would really like to try to error check. I understand you read bytes in until the new line character then parse the line and then do stuff but how would you incorporate checking for the OK final response? Hope you can help 🙏👍
@iforce2d
@iforce2d 7 місяців тому
Isn't it just a case of adding another state?
@iantcroft
@iantcroft 7 місяців тому
@@iforce2dThanks for the reply. So I could create an end state where it tests the final response code then goes back to detecting message type. In not sure how I would handle it when sending an sms and waiting for the > prompt. I am also trying to remove the delays after sending commands so it doesn’t block the code. Any suggestions I would really appreciate. Have been struggling with this for years
@AmolGautam
@AmolGautam 8 років тому
AMAZING, thanks a lot :)
@riteshkakkar9274
@riteshkakkar9274 5 років тому
hello very nice project
@damianescobedo4143
@damianescobedo4143 6 років тому
Thanks a lot.
@alexanderchele8978
@alexanderchele8978 2 роки тому
buen video like XD :v
@giuseppefanuzzi
@giuseppefanuzzi 6 років тому
Hi, Nice video! But what about MQTT? In your opinion, is it possible to use together mqtt and gps? Both on same or different softwareserial? Thank you
@iforce2d
@iforce2d 6 років тому
never heard of mqtt sorry... maybe there are forums you can ask in
@ElvisMaganga
@ElvisMaganga 8 місяців тому
may you please post the code again.. I cannot open the link
@TNG88
@TNG88 5 років тому
thanks very much, limit buffersize in serial (arduino uno) and asynchronous give me headache (can only read around 15 characters). Your smart code can handle big txt/html (i had tried 6kB) without issues.
@waelmokhtar3176
@waelmokhtar3176 7 років тому
Hi , Really your video is the best one explained this subject , I tried to make some project based on your tutorial , In my project I didn't use the built in serial connection , I used instead pins 10 , 11 for controlling my device & pins 2,3 for connecting to GSM , I have noticed that the arduino does not work when I remove the usb connection !! , I'm using another power source for arduino , So there is no need for the usb , do you have any explanation for this ?
@manusholm3536
@manusholm3536 5 років тому
i see this video is 2years old. did you make your gps tracker? i nead to build one for a project my brother is working on. im a bit of a novice with code. need some help
@ToyotaMHFan
@ToyotaMHFan 5 років тому
hello, thanks for your videos, really usefull to get in touch with this devices, just a question, have you tested this sim devices with other NZ carrier companies =? I ve tested with Vodafone and works,but with spark doesnt connect to the network, actually I ve tested with sim5320E, and it works with 2degrees but Spark nop!. thanks again to share your knowledge. greetings from Auckland.
@iforce2d
@iforce2d 5 років тому
no, I've only tried with Vodafone. Most likely the access point number/code will need changing, I think I looked at that in the first video.
@HungNguyen-ji9wx
@HungNguyen-ji9wx 6 років тому
Thanks
@tokitazwar8301
@tokitazwar8301 6 років тому
Hello , very nice video. I want to send voltage value using your code but having trouble where to put the voltage equation to send the value to website? Your cooperation is appreciated. Thanks
@rosenbrauns
@rosenbrauns 4 роки тому
Hello from Chile!, Your video helped me a lot! Now I'm now try to work with external power source (more powerful than USB I guess, 1 Amp) but it doesn't work until I press reset button in the Arduino module, then it can work for hours perfectly...Can you help me with this issue?
@johnnyperez7550
@johnnyperez7550 7 років тому
Thank you for the tutorial. I have a question, connection tpc from client to server is aprox 4 seconds, how i can do it faster? Thank you por reply.
@iforce2d
@iforce2d 7 років тому
Please don't spam the same question everywhere, I just answered on your other comment.
@johnnyperez7550
@johnnyperez7550 7 років тому
iforce2d ok, thank you very much
@babarmuaz5872
@babarmuaz5872 7 років тому
Sir , when i m typing AT or any command in serial monitor it is not showing anything
@asraralbishri4787
@asraralbishri4787 5 років тому
Thanks bro for this helpful video.. bro i want to store the content in a variable .. how i can do this ?
@humamramadan1328
@humamramadan1328 3 роки тому
I believe it is 2g internet connection which will be phased out soon . Does an umts or lte sim module exist to connect with arduino
@zenniz1992
@zenniz1992 6 років тому
Can the Sim900 work with 3/4G sim card?
@TECHUSK
@TECHUSK 4 роки тому
Even when I send AT commands 1 by 1 to the serial monitor, It doesn't show anything As your first sketch in the video sir. Also, I tried changing Arduino. and gsm module too. all the connections and power is okay. checked a thousand times. Please help
@IgnatGorazd
@IgnatGorazd 8 років тому
Hi! Sorry for off topic question. Where do buy electronic components in Japan, if you do so? Parts like small quantities of Japan made solid capacitors. Cheers
@iforce2d
@iforce2d 8 років тому
+Ignat Gorazd I'm not in Japan any more, but I used to get them from a local shop that had everything you could ever need. These days I would probably just try the Chinese made ones and order them online.
@IgnatGorazd
@IgnatGorazd 8 років тому
thank you for reply. local shop like tokyu hands or something similar near Tamagawa?
@iforce2d
@iforce2d 8 років тому
+Ignat Gorazd no, in Akihabara. There are quite a few shops that sell this kind of stuff but I found the best is 秋月電子 (Akizuki Denshi) located here: goo.gl/akOfDS (most of the other shops in that street have similar stuff so well worth a visit). They also do online sales but only to ship within Japan and they don't take PayPal - looks like they do credit card or bank transfer. akizukidenshi.com/catalog/default.aspx
@IgnatGorazd
@IgnatGorazd 8 років тому
thank you a lot!
@MrPranav1601
@MrPranav1601 7 років тому
Hi Awesome video Thank you for sharing that tutorial....i need a help how do i send sensor data on webserver using GSM sim900.
@riteshkakkar9274
@riteshkakkar9274 5 років тому
hello very good project
@faradayutomi3996
@faradayutomi3996 6 років тому
Thanks for the nice and informative video.I am a newbie and I am using an Arduino Uno and SIM900 GSM/GPRS shield. I have been able to use the codes in this tutorial in a little project I am working on and it works for a secure site with SSL. I will like to make a call with the response I get from the web site. This is the response I am getting Ignoring echo: AT+SAPBR=3,1,"Contype","GPRS" Ignoring echo: AT+SAPBR=3,1,"APN","APN" Ignoring echo: AT+SAPBR=3,1,"USER","FLAT" Ignoring echo: AT+SAPBR=3,1,"PWD","FLAT" Ignoring echo: AT+SAPBR=1,1 Ignoring echo: AT+SAPBR=2,1 Ignoring echo: AT+HTTPINIT Ignoring echo: AT+HTTPSSL=1 Ignoring echo: AT+CGATT? Ignoring echo: AT+HTTPPARA="CID",1 Ignoring echo: Received HTTPACTION HTTPACTION type is 0, HTTPACTION result is 200, HTTPACTION length is 12 Ignoring echo: AT+HTTPREAD=0,12 Received HTTPREAD HTTPREAD length is 12 HTTPREAD content: 23470XXXXXXX Please I will like to make a call with this returned value which I got from MySQL database using a SELECT statement. the phone number is the only data returned. Any help will be highly appreciated.. Thanks.
@iforce2d
@iforce2d 6 років тому
I don't understand the problem. You have the phone number, what stops you from using it? Maybe you just need to learn more about handling strings in C programming.
@snehshrivastava283
@snehshrivastava283 6 років тому
How to send data to a server?? As you explained to use httppara command in loop with long and latt values. Don't we need to set httpaction to post??
@iforce2d
@iforce2d 6 років тому
I have never used POST so I don't know. But for a few small parameters you can just do a GET and put them in the URL string.
@JayPatel-ho4oc
@JayPatel-ho4oc 6 років тому
nice video. Everything works perfectly fine in the arduino uno but when I switch to my external power supply or connect it to my pc without the serial monitor open it doesn't work anymore. the program is already loaded but still it doesn't work. please reply me if anybody knows.
@kousar_rahman
@kousar_rahman 7 років тому
The connection of sim900 and sim900A is same or not ?
@indergida3675
@indergida3675 8 років тому
This is great work! I work for a company that is looking to get a few projects build with Arduino. Can we hire you to build these projects for us? If so, could you please send me an email or phone we can contact you at? Thanks.
@riteshkakkar9274
@riteshkakkar9274 5 років тому
hello sir what sim800 module how it work
@akshayshan
@akshayshan 6 років тому
Hello, can you please help me with the code to store the HTTP GET data in a string for further processing.
@iforce2d
@iforce2d 6 років тому
The get data is already in a string. Look at my very long discussion with Joy Hoddy here in these comments.
@akshayshan
@akshayshan 6 років тому
iforce2d thanks man. This was very helpful. God bless you.
@metedu329
@metedu329 2 роки тому
Hi, i m applying and always getting +httpaction: 0,200,0 … any idea???(thank you)
@kristonranasinghe7324
@kristonranasinghe7324 7 років тому
thank you vary much ......
@Pacioreczekk
@Pacioreczekk 5 років тому
these commands will work on sim800c I have a big problem with my module
@ajitem100
@ajitem100 4 роки тому
in my case api format is json and i want only some portion of that content how to achieve that ?
@iforce2d
@iforce2d 4 роки тому
I have no idea. Try reading the API documentation.
@ayoubthechallenger1568
@ayoubthechallenger1568 7 років тому
Hello, thanks for your tutorials, they are really helpful. I am working on the sim800l with GPRS and when I want to switch to the gprs mode it says : operation not allowedn (when I writing the AT+SAPBR command) ...
@iforce2d
@iforce2d 7 років тому
Well, first thing I would do is check the documentation for your specific module.
@mdkamruzzamanrussel612
@mdkamruzzamanrussel612 6 років тому
You forget me.
@iforce2d
@iforce2d 6 років тому
what? Please reply on the previous comment so I know what you're talking about.
@mdkamruzzamanrussel612
@mdkamruzzamanrussel612 6 років тому
How are you? What do you make now?
@iforce2d
@iforce2d 6 років тому
Are you talking to me? If you subscribe to the channel you can see what I'm doing anytime, eg. I just uploaded two videos today...
@muhamadahmadin5526
@muhamadahmadin5526 4 роки тому
can someone help me to make the parameter in the url is filled from variable ? plz i need help
@FLYBYMEable
@FLYBYMEable 8 років тому
Yeah you smack that mosquito
@kirankanukollu1524
@kirankanukollu1524 7 років тому
hello ! my project is soldier health monitoring system , i need the code related to interfacing both gsm and gps with arduino .. can u help me out ?
@iforce2d
@iforce2d 7 років тому
Yeah, I made three videos about it..... watch them. Previous videos are linked to in the description. Read the other video descriptions too.
@mdkamruzzamanrussel612
@mdkamruzzamanrussel612 7 років тому
If you interested I can give you some development project.
@chattingbirds
@chattingbirds 7 років тому
I have sim800 I use GPRS I use http GET command I call a phpfile that uploads voltage in MySql database when the comand is executed I get no response like "+HTTPACTION:0,200,15" or anything like +HTTPACTION: But after continious tries i got it once but every time the command is executed the voltage is saved but the problem is i don't get to use HTTPREAD comand The same was working fine in sim900A
@ahmedimtinan1092
@ahmedimtinan1092 7 років тому
Hello brother. I am trying to achieve a similar work as yours. I need some suggestions. Can you please give me your email.
@MahathirAmirudin
@MahathirAmirudin 6 років тому
Hello there, are you using Arduino with sim900A ? I need to come out with a project that read voltage too. But I dont know where to start. Mind share your email for some few question please?
@mathewssunny5673
@mathewssunny5673 6 років тому
masp203@gmail.com
@jogetcaiyyaihwal
@jogetcaiyyaihwal 6 років тому
can the signal power be generated? I want to analysis that value(signal power) Tq.
@iforce2d
@iforce2d 6 років тому
Yes, search for 'signal' in the AT command manual.
@ramazanayten3758
@ramazanayten3758 2 роки тому
So how can we process the incoming data? For example, I want to turn on the led with the incoming data, but I could not do it.
@iforce2d
@iforce2d 2 роки тому
ukposts.info/have/v-deo/h5N1d5iLn4Rm2qs.html
@ramazanayten3758
@ramazanayten3758 2 роки тому
@@iforce2d No, I do not want to make transactions via sms, I want to evaluate the data received from the web and make transactions mySerial.println("AT+HTTPREAD"); After this command, I want to read the "on" and "off" information from the web address and act accordingly. if (Serial.find("on")) { Serial.println("LED ON"); digitalWrite(ledPin, HIGH); } else if (Serial.find("off")) { Serial.println("LED OFF"); digitalWrite(ledPin, LOW); } I tried to find("on") this code, but it didn't work, the led didn't turn on.
@ramazanayten3758
@ramazanayten3758 2 роки тому
incoming data in quotation marks on out monitor "on" and "off" google firebase .json if else led control =="on" , =="off" I tried so hard but I couldn't string parser On off information is coming from google firebase and how can we parse it I want to perform an action by checking the incoming on and off information
@iforce2d
@iforce2d 2 роки тому
You either get a string from SMS, or you get a string from HTTP. After that, there is no difference in how you process that information.
@ireshanmadumadawa8395
@ireshanmadumadawa8395 6 років тому
I am trying to access web server my sql database to check whether some value (send by arduino ) exists or not in the database. I am Using SIM900A Gsm module to do that. Your code and lesson is awesome and I used it it's working fine. but not always. some times it stuck in middle of the operation. when i use gsmHTTPGet_looped.ino it is not working as a loop it's getting stuck. Is that a GPRS signal problem or hardware problem? I used 2 GSM modules for do that but it gives same output. Please help me
@iforce2d
@iforce2d 6 років тому
I have no idea. Print out some debugging info so you can see what it is doing. Try using longer delays been events to give it more time maybe.
@rvnt5561
@rvnt5561 3 роки тому
my guy said SIMP 900
@juanclopgar97
@juanclopgar97 3 роки тому
I'm getting a 603 "DNS error", can someone help to fix this?
@janmaijaysinghbisen8799
@janmaijaysinghbisen8799 6 років тому
I AM GEETING 603 ERROR IT IS DNS SERVER ERROR WHAT TO DO
@juanclopgar97
@juanclopgar97 3 роки тому
same, did you fix it?
@saimikram202
@saimikram202 6 років тому
Sir please help me. i want to develop RFID attendance system. now to i want to send http request to the server using GSM. and when student enter in the school they w,ll scan sard to RFID and using GSM module i want to send that RFID to the server ????
@iforce2d
@iforce2d 6 років тому
This video is not about RFID. I don't see why you would need GSM for that because the card scanner is in a fixed location at the school right?
@GhettoRanger01
@GhettoRanger01 6 років тому
He's supposed to be a teacher?
@nihanthmanyam4053
@nihanthmanyam4053 5 років тому
im getting httpaction 0,603,0 so what could be the problem?
@iforce2d
@iforce2d 5 років тому
Click on the "previous video 1" link in the description, then click on the AT command manual link in the description of that video, then search for 603 in the manual.
@JohnFAlmost
@JohnFAlmost 6 років тому
Hi, nice tutorial, its made some this topic nice and clear. But I have some questions. Firstly, you've said how you plan to build your long/lat into the URL, but are you still going to keep it as a "GET" (HTTPACTION=0), surely you should be doing this a post ? I've used the echo program to do GET commands successfully, but I havent got POST to work. Following your example i've done the following commands...(after the SAPBR stuff). AT+HTTPINIT AT+HTTPPARA="CID",1 AT+HTTPPARA="PROIP","212.183.137.12" (vodafone uk have a proxy to be used) AT+HTTPPARA="PROPORT","8799" ( ditto } AT+HTTPPARA="URL","mywebsite.co.uk/api/obs" AT+HTTPACTION=1 (my post command) AT+HTTPDATA=83, 10000 (telling it i'm sending 83 characters) up to here everything goes fine. I get the "DOWNLOAD" prompt and send... {"SensorName": "TestSensor", "ObsValue": 31, "ObsDateTime": "2017-10-01T03:30:00"} (with two carriage returns). I then get an "OK" response, but its obviously not ok, because I dont get an HTTPACTION response with a 201 that I would expect, and if I do a read (AT+HTTPREAD=0,94), i just get back the string I've put in and the data has not been added to the database. It occurs to me that I've not really given a statement to say - "Do it" just downloaded a string. Any thoughts on where I'm going wrong? and have you managed to get POST working. Obviously i'm working against ASP instead of PHP which probably makes some differences, but all thoughts welcome. Good work on the videos (though your link to the sketches didnt work for me - I was still able to find them - just not through the link)
@iforce2d
@iforce2d 6 років тому
Actually I've never tried POST with this. It sounds like you're way ahead of me already :) Just looking at your sequence of commands, I would expect HTTPACTION to be the last one, to kick off the actual request using the data you gave it in previous steps, ie. the HTTPDATA might need to come before the HTTPACTION, not after it. So this link doesn't work for you? www.iforce2d.net/sketches/gsm_HTTPGet.zip Works ok for me....
@JohnFAlmost
@JohnFAlmost 6 років тому
I think you're right about the Action coming after, but I've tried that and I'm still not getting any joy. Ah yes It does download the zip file. i was expecting another page to pop up, my bad.
@iforce2d
@iforce2d 6 років тому
So when you do HTTPACTION it just says ok and then nothing further happens at all?? That doesn't sound right...
@jameslamb4573
@jameslamb4573 8 років тому
0416, in the AM, or are you still running on Tokyo time?
@iforce2d
@iforce2d 8 років тому
+James Lamb night is the quietest time for this where I'm living at the moment (half-deaf family member has the TV going all day)
@mdkamruzzamanrussel612
@mdkamruzzamanrussel612 7 років тому
wouid you mind plz give me your mail address.
@andresc5951
@andresc5951 7 років тому
Im working with the sim800l. Always get reply like: OK SIM READY CALL READY CPIN:OK How can I avoid that and just have an OK
@iforce2d
@iforce2d 7 років тому
I don't think you can. But check the documentation for your module, there may be some setting you can change.
@andresc5951
@andresc5951 7 років тому
The source voltage was 5 Vdc and 1 diode, that is not enough it always has to be 100% 4Vdc totally acurrate. I finally just get ok responds.
@chattingbirds
@chattingbirds 7 років тому
start listening and execute commands after 30 seconds and you will be fine :)
@isaachlengani9547
@isaachlengani9547 5 років тому
Nice video, so how do we use it on real-time systems? I need to connect to real-time database on firebase with GSM.
@keppu2661
@keppu2661 4 роки тому
mine is cloud firestore... just sharing
@minhnguyen1
@minhnguyen1 6 років тому
Hi where can i buy one of those board
@iforce2d
@iforce2d 6 років тому
goo.gl/B2uCJR
@Mahmudulhasan-ts5hm
@Mahmudulhasan-ts5hm 4 роки тому
i have Arduino mega 2560 and sim808. i don't have any response, please help
@iforce2d
@iforce2d 4 роки тому
Please watch the previous videos and progress step by step instead of just copying some code and expecting it to work. Some serial pins are different on mega2560 www.arduino.cc/reference/en/language/functions/communication/serial/ You should also have noticed that this is not a sim808. This might be useful: ukposts.info/have/v-deo/pH2Ja62th2mepIk.html
@ziobit5177
@ziobit5177 4 роки тому
does it also connect to the internet? thanks
@iforce2d
@iforce2d 4 роки тому
yes, that's what HTTP GET means, and in this video I demonstrated internet connection....
@rohitchaudhari2672
@rohitchaudhari2672 7 років тому
My program is compile bt my GSM is not sending massege through arduino now what to do ? can you pls help me ?
@iforce2d
@iforce2d 7 років тому
Do everything manually using the serial monitor before you try to make the program do it. There are many many places that problems can occur. You have given my nothing useful to help you with. Follow all the steps EXACTLY as I did and try to find the first place where you get a different result.
@mdkamruzzamanrussel612
@mdkamruzzamanrussel612 7 років тому
Rohit Chaudhari, You Don't mind. You should try your self. You should not take his help. If you take his help you don't feel better.
@iforce2d
@iforce2d 7 років тому
kamruzzaman russel I am not a mind reader. This is quite a complex project, there is no way I can help when the question only says "GSM is not sending message". I spent many many hours making these videos and I show every step in detail. This is not my job, nobody pays me and I am not responsible for helping anyone, especially when they are using different modules, in different countries with different cellphone networks, how can I possibly know all the problems that can happen? Also keep in mind that my videos are not the only source of information about this, there are hundreds of other websites and tutorials out there for you to use. In fact I learned all this stuff from other sources, so technically there is no reason you even need my videos at all! The best help is what I already gave Rohit: follow all the steps exactly and find out where the problem first shows up. That is the obvious analytical method to find problems in cases like this. If you think you can be a successful programmer by simply copying and pasting things from the internet, you will fail.
@mdkamruzzamanrussel612
@mdkamruzzamanrussel612 7 років тому
You right. Every body should try
@mdkamruzzamanrussel612
@mdkamruzzamanrussel612 7 років тому
Plz you don't take other wise.
@subhamdas2491
@subhamdas2491 2 роки тому
Sir I have implemented all the AT commands & its works good for me I have used 000webhost api ....& make sure that in the URL somewhere it works with https & somewhere http
@mdkamruzzamanrussel612
@mdkamruzzamanrussel612 7 років тому
Hi Boss, How are you?
@TECHUSK
@TECHUSK 4 роки тому
Please help me with this question, similar to your video sir. I put it on StackOverflow here is the link - stackoverflow.com/questions/61803348/program-is-executing-but-at-commands-not-showing-in-serial-monitor
@mmahamutha
@mmahamutha 6 років тому
Well structured flow and demonstration, Awesome...!!! I have few doubts regarding the output, following are the response which i have obtain , Ignoring echo: AT+SAPBR=3,1,"APN","airtelgprs.com" Ignoring echo: AT+SAPBR=1,1 Ignoring echo: AT+HTTPINIT Ignoring echo: AT+HTTPPARA="CID",1 Ignoring echo: Received HTTPACTION HTTPACTION type is 0, HTTPACTION result is 200, HTTPACTION length is 23 Ignoring echo: AT+HTTPREAD=0,23 Received HTTPREAD HTTPREAD length is 23 HTTPREAD content: [{"fc_st_price":"150"}] If you look into the output, which variable is printing the ans of HTTPREAD content: ? Can you please tell me the same?
@iforce2d
@iforce2d 6 років тому
What do you mean by "ans of the HTTPREAD content"?
@mmahamutha
@mmahamutha 6 років тому
My URL (xxx.xxx.xxx.xxx/RRT/rest/Billing_info?id=2) returns a response. Which variable is handling those functionalities ? Received HTTPREAD HTTPREAD length is 23 HTTPREAD content: [{"fc_st_price":"150"}] Here the response of my url is [{"fc_st_price":"150"}] .
@piitechn
@piitechn 6 років тому
Hello, how are u? were you able to know which variable is handling the functionalities ? is it contentLength or b or any variable ? Thanks for your reply
@iforce2d
@iforce2d 6 років тому
Please read the source code: Serial.write(b); That line prints out one character of the response. There is no 'handling' in my example, I only print it to the serial monitor. If you want to do something else with the bytes as they come in, you'll have to write that yourself.
@IkhlasRondo
@IkhlasRondo 7 років тому
Can you send HTTP POST request?
@ankurgokhale5564
@ankurgokhale5564 7 років тому
Ikhlas, this is what I used, you need to change it as per your requirement. char message[40]; /* Download POSTMAN chrome app, send sample POST commands to your web server and click Get Code */ Serial.println(SIM900.println("AT+SAPBR=3,1,\"Contype\",\"GPRS\"")); ShowSerialData(); delay(1000); Serial.println(SIM900.println("AT+SAPBR=3,1,\"APN\",\"xxyyzz\"")); ShowSerialData(); delay(1000); Serial.println(SIM900.println("AT+SAPBR=1,1")); ShowSerialData(); delay(3500); Serial.println(SIM900.println("AT+SAPBR=2,1")); ShowSerialData(); delay(3500); Serial.println(SIM900.println( F("AT+HTTPINIT") )); ShowSerialData(); delay(1000); Serial.println(SIM900.println("AT+HTTPSSL=1")); // this is optional ShowSerialData(); delay(1000); Serial.println(SIM900.println( F("AT+HTTPPARA=\"CID\",1") )); ShowSerialData(); delay(1000); Serial.println(SIM900.println( F("AT+HTTPPARA=\"URL\",\"yourDomainNameHere.tld:PortNumber/optionalPath\"") )); ShowSerialData(); delay(1000); Serial.println(SIM900.println( F("AT+HTTPPARA=\"CONTENT\",\"application/x-www-form-urlencoded\"") )); ShowSerialData(); delay(1000); Serial.println(SIM900.print ( F( "AT+HTTPDATA=") )); SIM900.print ( strlen(msg) ); ShowSerialData(); delay(1000); Serial.println( SIM900.println(msg) ); delay(1000); Serial.println(SIM900.println( F("AT+HTTPACTION=1") )); ShowSerialData(); delay(5000); void ShowSerialData() { while(SIM900.available()!=0) Serial.write(SIM900.read()); }
@IkhlasRondo
@IkhlasRondo 7 років тому
Thank you Ankur, but i want to send a picture from VC0706 camera module. Can this code send it? I have succeed with use ethernet client to send it. But I cannot send it use gsm module. Sorry for my english 😊
@indrajeetjaveri3
@indrajeetjaveri3 7 років тому
Thank You Soooo Much..I have been trying to do this since a very long time.....This is very helpful...:)
@israelalvarado3407
@israelalvarado3407 7 років тому
amigo me pasas el programa php test.php please
@iforce2d
@iforce2d 7 років тому
@MrJohnletti
@MrJohnletti 5 років тому
@@iforce2d hello , is this code what you wrote in the php page on the web server to receive GPS lat and long? thanks in advance
@MrJohnletti
@MrJohnletti 5 років тому
i mean, to show lat and long on a google maps page
@MrJohnletti
@MrJohnletti 5 років тому
this shows the UTC time and data
@olegs542
@olegs542 6 років тому
Hello, great videos, very informative.The Best.... Was wondering if anyone know how to use this and send dweets to dweet.io? I have a float variable that contains one of the gps coordinates and I need to get it out to dweet.io....Thank you :)
@iforce2d
@iforce2d 6 років тому
I have no idea what dweet is, but according to their front page it says: "To dweet from your thing, simply call a URL like: dweet.io/dweet/for/my-thing-name?hello=world" Maybe if you could be more specific about what part of that you're getting stuck on you'd get better help.
@olegs542
@olegs542 6 років тому
Yes, thank you for your response, I am currently trying to get to work and as well looking on their website:) // Reading Long and Lad float h=gForceX; float t=gForceZ; This what i use to dweet via wifi, works well. Not sure how to use this via gsm.. client.print(String("GET /dweet/for/MYTHINGNAME?Oleg=") +"&4=" + String(h) +"&5=" + String(t)+ " HTTP/1.1 " + "Host: " + dweet.io + " " + "Connection: close "); delay(100); Thank you.
@iforce2d
@iforce2d 6 років тому
I still don't understand where you're stuck. What is the URL that your device needs to send? For example, if you want to include lat and lon I guess you will have something like this right? dweet.io/dweet/for/my-thing-name?lat=12.345&lon=12.345
@olegs542
@olegs542 6 років тому
Yes, precisely. Well my lat and long are changing as the gps shield is moving around, so in my wifi code its in my code and I dweet these values every second or so. On the gsm I can even send request for a given thing name. I go to read dweets and nothing. Simply requesting a url i guess. I am using your code for AT-commands and a loop example for http request.
@iforce2d
@iforce2d 6 років тому
Are you reading back the response from the server when you send the request. That is the first obvious place to look for info. As I think I mentioned in the video, you should try doing everything manually (using the serial monitor) first before trying to get the arduino to do it. And print out lots of debugging info to check that all the variables you're dealing with are really what you think they are.
@ricardocallejo7422
@ricardocallejo7422 5 років тому
Your www.iforced2d.net links are down
@iforce2d
@iforce2d 5 років тому
Yeah, my whole site has been down since about Dec 29 because my hosting company made some really bad fuckup and they still haven't figured it out. I'll let you know when the site is back online.
@iforce2d
@iforce2d 5 років тому
Site is up again now.
@marvellousmusademba794
@marvellousmusademba794 6 років тому
Thanks ,may i have your email i need your assistance *****************urgently******************
@mathewssunny5673
@mathewssunny5673 6 років тому
masp203@gmail.com
@willfox1509
@willfox1509 7 років тому
Hi there, I really like your vids, they are great. I'm trying to interface with thingspeak. Using an atmega2560 and hardware serial and a serial pass through program (serial0 to 1) I can replicate your results, getting the time data from your web server. I don't trust SW serial. However, when I change the URL to "api.thingspeak.com/update?key=CV5EV6QS1FWAKDC2&field1=30&field2=20&field3=50” I get "ERROR" in the terminal and I just can't figure why. If I paste that URL into my browser it works. If I paste www.google.com into the URL it works. So there is something about that URL that it doesn't like. Do I need to escape any characters? Is it too long? It's driving me nuts. Thanks for looking!
@iforce2d
@iforce2d 7 років тому
I would suggest starting with a simpler, shorter URL and adding the extras to it bit by bit until something triggers the error. Think analytically :)
@willfox1509
@willfox1509 7 років тому
Wow, thanks for the fast response! Had to check to make sure it wasn't middle of the night in NZ as you are so far ahead of GMT. I've managed to "chunk it down" as you suggest. It now accepts the fields 1 and 2 and have managed to update them. WooHoo, a quantum leap better than before. Thx. It's not a string length issue as when I "stuck" at field 1 & 2, but increased the string length by making the values 20000000000 it still accepts it. So it's "field3" that's the issue. So with the api key and the 2 fields that's 3 user passed variables, what's the max number you've managed to pass in your projects? Thanks again Will.
@willfox1509
@willfox1509 7 років тому
I think I've solved it... It was something to do with the final quote mark, copying and pasting it from a text editor seemed to have changed it/corrupted it or whatever. Deleting the final quote mark that I pasted from my clipboard and typing a new one made it work. Wierd, not had that before... Thx again. Keep up the good work.
@alhazan
@alhazan 8 років тому
Car tracker? Booooo. Autonomous quadcopter with GSM command please :)
@jameslamb4573
@jameslamb4573 8 років тому
+alhazan I think we say a brief foray into servo control in the second video. Could be a start down the autonomous control route. IIRC though, iforce has made quads fly, autonomously, to a given position and back.
@iforce2d
@iforce2d 8 років тому
+James Lamb Those lines I deleted are all you need to run a servo if you want to try it :) I sold some stuff recently including a nice servo, now I only have those tacky 9 grams ones that twitch all the time and it didn't make a very good demo.
@mdkamruzzamanrussel612
@mdkamruzzamanrussel612 7 років тому
Hi......
@kaizartariq9531
@kaizartariq9531 4 роки тому
Hi, Thanks for the video... I need a little help... How can I store HTTPREAD content In a string? Can you please assist?
Cellular IoT |  Send Data to Thingspeak Server using SIM800/900 GSM/GPRS Module
8:45
Эффект Карбонаро и пончики
01:01
История одного вокалиста
Переглядів 7 млн
Эта Мама Испортила Гендер-Пати 😂
00:40
Глеб Рандалайнен
Переглядів 2,6 млн
ДРУГА РЕПЕТИЦІЯ alyona alyona та Jerry Heil на сцені Євробачення-2024
00:34
Євробачення Україна | Eurovision Ukraine official
Переглядів 265 тис.
Rutgers University Confirmed: Meshtastic and LoRa are dangerous
13:27
Andreas Spiess
Переглядів 727 тис.
SIM900 GPRS HTTP AT Commands
14:03
Ravi Pujar
Переглядів 61 тис.
The ARM chip race is getting wild… Apple M4 unveiled
4:07
Fireship
Переглядів 448 тис.
Connecting to an API using an ESP8266 (Or any Arduino)
9:17
Brian Lough
Переглядів 47 тис.
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
44:13
Rachel De Barros
Переглядів 363 тис.
Which radio module? NRF24, LoRa, CC1101, HC12, 433MHz, HC05
17:00
Electronoobs
Переглядів 445 тис.
SIM900 GPRS TCP/IP AT Commands
5:51
Ravi Pujar
Переглядів 70 тис.
GSM TCP/IP - How to send Data to Server using SIM900A
10:27
Saravanan AL
Переглядів 149 тис.
Батя и муравьи 😂 #shorts
0:40
Julia Fun
Переглядів 809 тис.
Поцелуй от бомбы 😘
0:33
nare304ka
Переглядів 3,4 млн
ВРОДЕ ВСЕ ВЗЯЛ😂😂😂
0:38
СЕМЬЯ СТАРОВОЙТОВЫХ 💖 Starovoitov.family
Переглядів 1,4 млн