Previous video 1: • Arduino + GSM module (... Previous video 2: • Controlling Arduino vi... Sketches: www.iforce2d.net/sketches/gsm_...
КОМЕНТАРІ: 216
@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.
@iantcroft7 років тому
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.
@aswahd5 років тому
Your gsm series is very helpful, thanks.
@fabiomusmeci6 років тому
This is only example working for this case! Congratulation and many thanks!
@charlesbaker44 роки тому
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!
@iforce2d4 роки тому
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.
@jeffmorris98938 років тому
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.
@jeffmorris98938 років тому
Actually the previous clip.
@nguyencanh16516 років тому
Thanks iforce2d very much
@MrAlexisalexis6 років тому
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.
@TNG885 років тому
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.
@iantcroft7 місяців тому
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 🙏👍
@iforce2d7 місяців тому
Isn't it just a case of adding another state?
@iantcroft7 місяців тому
@@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
@deepakvarade83234 роки тому
Very Helpful Video. Thanks For Sharing 👍
@waelmokhtar31767 років тому
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 ?
@manusholm35365 років тому
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
@rosenbrauns4 роки тому
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?
@mdkamruzzamanrussel6127 років тому
This is good projects for me.
@giuseppefanuzzi6 років тому
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
@iforce2d6 років тому
never heard of mqtt sorry... maybe there are forums you can ask in
@tokitazwar83016 років тому
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
@ToyotaMHFan5 років тому
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.
@iforce2d5 років тому
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.
@asraralbishri47875 років тому
Thanks bro for this helpful video.. bro i want to store the content in a variable .. how i can do this ?
@matiknik6 років тому
Thanks! mamen, you f*cking rock! Cheers mate :D
@cirofusco35728 років тому
purtroppo non capisco l'inglese ma i suoi video sono mooooltoo interessanti!!! e divertenti
@IgnatGorazd8 років тому
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
@iforce2d8 років тому
+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.
@IgnatGorazd8 років тому
thank you for reply. local shop like tokyu hands or something similar near Tamagawa?
@iforce2d8 років тому
+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
@IgnatGorazd8 років тому
thank you a lot!
@johnnyperez75507 років тому
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.
@iforce2d7 років тому
Please don't spam the same question everywhere, I just answered on your other comment.
@johnnyperez75507 років тому
iforce2d ok, thank you very much
@humamramadan13283 роки тому
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
@ElvisMaganga8 місяців тому
may you please post the code again.. I cannot open the link
@TECHUSK4 роки тому
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
@MrPranav16017 років тому
Hi Awesome video Thank you for sharing that tutorial....i need a help how do i send sensor data on webserver using GSM sim900.
@riteshkakkar92745 років тому
hello very good project
@indergida36758 років тому
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.
@zenniz19926 років тому
Can the Sim900 work with 3/4G sim card?
@almorawaka3 роки тому
life saver! thanks..
@JayPatel-ho4oc6 років тому
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.
@damianescobedo41436 років тому
Thanks a lot.
@babarmuaz58727 років тому
Sir , when i m typing AT or any command in serial monitor it is not showing anything
@HungNguyen-ji9wx6 років тому
Thanks
@snehshrivastava2836 років тому
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??
@iforce2d6 років тому
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.
@riteshkakkar92745 років тому
hello sir what sim800 module how it work
@kousar_rahman7 років тому
The connection of sim900 and sim900A is same or not ?
@ayoubthechallenger15687 років тому
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) ...
@iforce2d7 років тому
Well, first thing I would do is check the documentation for your specific module.
@mdkamruzzamanrussel6126 років тому
You forget me.
@iforce2d6 років тому
what? Please reply on the previous comment so I know what you're talking about.
@mdkamruzzamanrussel6126 років тому
How are you? What do you make now?
@iforce2d6 років тому
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...
@Pacioreczekk5 років тому
these commands will work on sim800c I have a big problem with my module
@akshayshan6 років тому
Hello, can you please help me with the code to store the HTTP GET data in a string for further processing.
@iforce2d6 років тому
The get data is already in a string. Look at my very long discussion with Joy Hoddy here in these comments.
@akshayshan6 років тому
iforce2d thanks man. This was very helpful. God bless you.
@jogetcaiyyaihwal6 років тому
can the signal power be generated? I want to analysis that value(signal power) Tq.
@iforce2d6 років тому
Yes, search for 'signal' in the AT command manual.
@ajitem1004 роки тому
in my case api format is json and i want only some portion of that content how to achieve that ?
@iforce2d4 роки тому
I have no idea. Try reading the API documentation.
@jameslamb45738 років тому
0416, in the AM, or are you still running on Tokyo time?
@iforce2d8 років тому
+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)
@mdkamruzzamanrussel6127 років тому
wouid you mind plz give me your mail address.
@metedu3292 роки тому
Hi, i m applying and always getting +httpaction: 0,200,0 … any idea???(thank you)
@AmolGautam8 років тому
AMAZING, thanks a lot :)
@riteshkakkar92745 років тому
hello very nice project
@ireshanmadumadawa83956 років тому
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
@iforce2d6 років тому
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.
@JohnFAlmost6 років тому
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)
@iforce2d6 років тому
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....
@JohnFAlmost6 років тому
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.
@iforce2d6 років тому
So when you do HTTPACTION it just says ok and then nothing further happens at all?? That doesn't sound right...
@kirankanukollu15247 років тому
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 ?
@iforce2d7 років тому
Yeah, I made three videos about it..... watch them. Previous videos are linked to in the description. Read the other video descriptions too.
@mdkamruzzamanrussel6127 років тому
If you interested I can give you some development project.
@chattingbirds7 років тому
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
@ahmedimtinan10927 років тому
Hello brother. I am trying to achieve a similar work as yours. I need some suggestions. Can you please give me your email.
@MahathirAmirudin6 років тому
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?
@mathewssunny56736 років тому
masp203@gmail.com
@muhamadahmadin55264 роки тому
can someone help me to make the parameter in the url is filled from variable ? plz i need help
@isaachlengani95475 років тому
Nice video, so how do we use it on real-time systems? I need to connect to real-time database on firebase with GSM.
@keppu26614 роки тому
mine is cloud firestore... just sharing
@ramazanayten37582 роки тому
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.
@iforce2d2 роки тому
ukposts.info/have/v-deo/h5N1d5iLn4Rm2qs.html
@ramazanayten37582 роки тому
@@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.
@ramazanayten37582 роки тому
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
@iforce2d2 роки тому
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.
@faradayutomi39966 років тому
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.
@iforce2d6 років тому
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.
@andresc59517 років тому
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
@iforce2d7 років тому
I don't think you can. But check the documentation for your module, there may be some setting you can change.
@andresc59517 років тому
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.
@chattingbirds7 років тому
start listening and execute commands after 30 seconds and you will be fine :)
@kristonranasinghe73247 років тому
thank you vary much ......
@alexanderchele89782 роки тому
buen video like XD :v
@saimikram2026 років тому
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 ????
@iforce2d6 років тому
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?
@GhettoRanger016 років тому
He's supposed to be a teacher?
@mdkamruzzamanrussel6127 років тому
Hi Boss, How are you?
@juanclopgar973 роки тому
I'm getting a 603 "DNS error", can someone help to fix this?
@nihanthmanyam40535 років тому
im getting httpaction 0,603,0 so what could be the problem?
@iforce2d5 років тому
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.
@FLYBYMEable8 років тому
Yeah you smack that mosquito
@subhamdas24912 роки тому
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
@minhnguyen16 років тому
Hi where can i buy one of those board
@iforce2d6 років тому
goo.gl/B2uCJR
@janmaijaysinghbisen87996 років тому
I AM GEETING 603 ERROR IT IS DNS SERVER ERROR WHAT TO DO
@juanclopgar973 роки тому
same, did you fix it?
@ziobit51774 роки тому
does it also connect to the internet? thanks
@iforce2d4 роки тому
yes, that's what HTTP GET means, and in this video I demonstrated internet connection....
@rvnt55613 роки тому
my guy said SIMP 900
@rohitchaudhari26727 років тому
My program is compile bt my GSM is not sending massege through arduino now what to do ? can you pls help me ?
@iforce2d7 років тому
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.
@mdkamruzzamanrussel6127 років тому
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.
@iforce2d7 років тому
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.
@mdkamruzzamanrussel6127 років тому
You right. Every body should try
@mdkamruzzamanrussel6127 років тому
Plz you don't take other wise.
@Mahmudulhasan-ts5hm4 роки тому
i have Arduino mega 2560 and sim808. i don't have any response, please help
@iforce2d4 роки тому
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
@mmahamutha6 років тому
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?
@iforce2d6 років тому
What do you mean by "ans of the HTTPREAD content"?
@mmahamutha6 років тому
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"}] .
@piitechn6 років тому
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
@iforce2d6 років тому
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.
@IkhlasRondo7 років тому
Can you send HTTP POST request?
@ankurgokhale55647 років тому
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()); }
@IkhlasRondo7 років тому
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 😊
@indrajeetjaveri37 років тому
Thank You Soooo Much..I have been trying to do this since a very long time.....This is very helpful...:)
@ricardocallejo74225 років тому
Your www.iforced2d.net links are down
@iforce2d5 років тому
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.
@iforce2d5 років тому
Site is up again now.
@olegs5426 років тому
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 :)
@iforce2d6 років тому
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.
@olegs5426 років тому
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.
@iforce2d6 років тому
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
@olegs5426 років тому
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.
@iforce2d6 років тому
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.
@israelalvarado34077 років тому
amigo me pasas el programa php test.php please
@iforce2d7 років тому
@MrJohnletti5 років тому
@@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
@MrJohnletti5 років тому
i mean, to show lat and long on a google maps page
@MrJohnletti5 років тому
this shows the UTC time and data
@TECHUSK4 роки тому
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
@marvellousmusademba7946 років тому
Thanks ,may i have your email i need your assistance *****************urgently******************
@mathewssunny56736 років тому
masp203@gmail.com
@alhazan8 років тому
Car tracker? Booooo. Autonomous quadcopter with GSM command please :)
@jameslamb45738 років тому
+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.
@iforce2d8 років тому
+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.
@mdkamruzzamanrussel6127 років тому
Hi......
@willfox15097 років тому
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!
@iforce2d7 років тому
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 :)
@willfox15097 років тому
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.
@willfox15097 років тому
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.
@kaizartariq95314 роки тому
Hi, Thanks for the video... I need a little help... How can I store HTTPREAD content In a string? Can you please assist?