SIM900 GPRS HTTP AT Commands

  Переглядів 61,313

Ravi Pujar

Ravi Pujar

День тому

www.raviyp.com/embedded/194-si...
This video shows you how to use SIM900 modules HTTP GET commands to retrieve the contents of a webpage and HTTP POST commands to upload a file to a webserver, using HTTP AT Commands on a GPRS network.
Downloads:
Socket test - sourceforge.net/projects/socke...
TMFT - www.dropbox.com/s/8bxs3f9i9ou...
Send me a mail to ravi@valetron.com

КОМЕНТАРІ: 191
@chansokongkeo8268
@chansokongkeo8268 8 років тому
Thank you very much for spending time for me :) :) :)
@RaviPujar
@RaviPujar 8 років тому
+chansokong keo My pleasure
@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.
@devaditya25
@devaditya25 8 років тому
hello ravi ji...great video...I am using Energia to use the gprs in sim900, can i use the c code in energia or i have to write up a sketch code for this?
@AbdulMannan-px3nn
@AbdulMannan-px3nn 6 років тому
Hi Ravi,,!!!! Awesome work,
@RaviPujar
@RaviPujar 6 років тому
Abdul Mannan Thank you :) Don't forget to subscribe...
@JrSflor
@JrSflor 2 роки тому
Hello Ravi. Are you tested the redir function? I enable it(redir=1) but it never return after post.
@freeflaminginfinite917
@freeflaminginfinite917 8 років тому
Hi Ravi! Are these HTTP commands the same for most GSM modules (eg. ublox)? As I have the GPRS connection protocol commands, but can't find much on the HTTP GET side of things? Great video by the way. Very helpful in understanding the flow.
@RaviPujar
@RaviPujar 8 років тому
+FreeFlamingInfinite Hi , Thank you for the appreciation. Most of the commands or the flow you remain same, But there are some differences. I am working on Telit GL865 DUAL V3 module and it has significant difference in HTTP commands syntax
@freeflaminginfinite917
@freeflaminginfinite917 8 років тому
Ravi Pujar Hi, yes, from sending emails via SMTP/FTP protocols I have completely different set of commands for the GPRS connectivity, though because I am working with u-blox's SARA-G340 module I expected this, but I'm not sure if the HTTP will be the same as I've heard they are very similar to the simcom architecture.
@CopperMasud
@CopperMasud 8 років тому
+Ravi Pujar hello brother . i tried the code from this video with arduino compiler for an arduino due , whatever after doing everything else when i press my after AT+HTTPDATA=192,30000 i get ERROR in back .. the error comes right after my setup time(30000 in this case but i've tried more that that . same result) then the code is given below >>>>> ERROR AT+HTTPACTION=1 OK +HTTPACTION:1,200,14 AT+HTTPREAD +HTTPREAD:14 Saved Failed ! OK i think im not being able to download data in the sim900...........i can upload my whole code . please help me out brother .
@RaviPujar
@RaviPujar 8 років тому
+Copper MasudI dont know which server you are uploading to. What does saved failed mean here?
@CopperMasud
@CopperMasud 8 років тому
+Ravi Pujar showing you my code ........ >Serial.print("AT+HTTPPARA=");Serial.print('"');Serial.print("CONTENT");Serial.print('"');Serial.print(',');Serial.print('"');Serial.print("multipart/form-data; boundary=------WebKitFormBoundaryvZ0ZHShNAcBABWFy");Serial.print('"');Serial.print(' ');Serial.print(' '); >delay(1000); >Serial.print("AT+HTTPDATA=192,20000");Serial.print(' ');Serial.print(' '); >delay(500); >Serial.print("------WebKitFormBoundaryvZ0ZHShNAcBABWFy");Serial.print(' '); >Serial.print("Content-Disposition: form-data; name=");Serial.print('"');Serial.print("fileToUpload");Serial.print('"');Serial.print("; filename=");Serial.print('"');Serial.print("data.txt");Serial.print('"');Serial.print(' '); >Serial.print("Content-Type: text/plain");Serial.print(' ');Serial.print(' '); >Serial.print("Hello Ravi");Serial.print(' ');//Serial.print(' '); >Serial.print("------WebKitFormBoundaryvZ0ZHShNAcBABWFy");Serial.print(' ');Serial.print(' ');//Serial.print(' ');
@SrinivasRao1993
@SrinivasRao1993 7 років тому
Hi Ravi, I'm trying to post data with Arduino connected to SIM900. i'm able to make the post call, but I'm not able to write the body. the setup is such that my commands are read from Arduino serial monitor and executed by SIM900 and its response is printed back on the serial monitor. so when i give a AT+HTTPDATA , i get a response DOWNLOAD. Then i type in a string in the serial monitor and press enter. I get no Response. after the timeout , i get an error response. I anway continue with HTTPACTION and make the post. but that won't have the body. So i guess its not reading that string from serial monitor. Can you suggest a solution? Thanks
@spothogarfuneslora5908
@spothogarfuneslora5908 4 роки тому
hi Ravi, How should i set the path to send emails with attachments using at comands by terminal, thanks...
@3g2970
@3g2970 3 роки тому
Ravi, Thanks. Very informative video. I am trying to experiment with the same. Can you share the link of C code you have used? The link you have provided are not working.
@chinthalaharitha8628
@chinthalaharitha8628 7 років тому
can anyone describe what are AT commands required for building http server?
@ah.gamestory1200
@ah.gamestory1200 6 років тому
Hi there, if you please can help So what we need is once our customer inserted our SIM card in his mobile phone. the sim card automatically set and save the APN settings on our customer mobile phone, so he will not need either a APN configuration message or set it manually. He just enable the Mobile data and just like this he is online.
@manohar9855
@manohar9855 4 роки тому
hello ravi, the website link is broken.(the one you are using for http get) are there any websites to get http response from?
@ismailerenayhan6089
@ismailerenayhan6089 2 роки тому
Thanks, I'm going to have a question http read i get 601 and the "AT+ sapbr = 1,1" command gives Error
@sree_status
@sree_status 7 років тому
Bro... Could you please help me how to send data into a web by using SIM800 GSM module. please help me its place very important rule in my project..
@bhseshu
@bhseshu 7 років тому
is there any example implementing ssl at commands
@carolinemaul
@carolinemaul 8 років тому
Where can I find this TMFT software or do you know DOS commands for communication with serial port? I'm using the SIM800L with the FTDI module.
@RaviPujar
@RaviPujar 8 років тому
+Caroline Maul Download link is in description
@CopperMasud
@CopperMasud 8 років тому
+Ravi Pujar it's not there !!!!!!!!!!!!!!
@RaviPujar
@RaviPujar 8 років тому
+Copper Masud Sorry link was broken . Try now. Its in description
@chuckwilcox6997
@chuckwilcox6997 6 років тому
Hi Ravi, Thank you for your sharing your knowledge and the video presentation, much appreciated. I am wondering if there is a size limit on the text file . I'm wish to send 2,000 bytes, would this be a problem? Thank you for your consideration, regards charlie
@RaviPujar
@RaviPujar 6 років тому
Hi Charlie, Thank you :) I have successfully sent upto 4000 bytes without any problems. Again it depends on network speed. If network is good you could go even more. But i suggest not to go more than 4K. Dont forget to Subscribe. :)
@chuckwilcox6997
@chuckwilcox6997 6 років тому
Brilliant Ravi, thank you for the quick response. I'll get back to work on my project given your feedback. Thank you for your help and I have subscribed :) Regards Charlie
@greig123
@greig123 7 років тому
Hi, do you know how I can write an arduino sketch that sends the AT commands to the sim900 module without having to open the serial monitor? I can write a program that does everything I want, but I have to open the serial monitor before it runs the program.
@RaviPujar
@RaviPujar 7 років тому
Hi, Just upload the file to Arduino and connect SIM900 to UART and reset it. It should start functioning. No need of Serial monitor.
@greig123
@greig123 7 років тому
Ravi Pujar Thanks a lot, that was my problem. I just need to reset the arduino once the GSM module is connected to the network, because I don't use power up procedure code.
@RaviPujar
@RaviPujar 7 років тому
Glad it worked :)
@raghutumati5178
@raghutumati5178 6 років тому
Hey Ravi! Did you ever get MMS to work in these modules?
@RaviPujar
@RaviPujar 6 років тому
Hi Raghu, No, i have never tried it.
@gauravshinde837
@gauravshinde837 3 роки тому
Hey Ravi , I want to do Mqtt+tls or mqtt+ssl is it possible on sim900 ?
@ganeshck2202
@ganeshck2202 7 років тому
Hi Ravi, this video is good. but i am sending a simple text as "hello " to server..i am trying but i am not able to do it. plz help me out
@pankajrai2591
@pankajrai2591 4 роки тому
Hi Ravi, Awesome tutorial! I need a help regarding http post using wifi for image data type . Can you make a tutorial for that also? or if it is already there , please let us know. Thanks btw!
@pankajrai2591
@pankajrai2591 4 роки тому
and also i need to do this same thing with SIM808 module for my another project. Can we use these same command for that also ?? please help me regarding that also. thanks!
@hogishim.
@hogishim. 7 років тому
Hi, first of all thanks a lot for this helpful video. I have been trying to work with AT commands. Everything before AT+HTTPINIT works fine for me. I'm getting an error with HTTPINIT. Even HTTPPARA is giving an error. Could you tell me the possible reasons for this? Thanks!
@RaviPujar
@RaviPujar 7 років тому
Thanks for the appreciation. Glad it helped you. You need to update the firmware.
@hogishim.
@hogishim. 7 років тому
+Ravi Pujar Thank you for your prompt response. I am using SIM900A. Will the AT commands remain same for this version? And how should I go about with updating the firmware? Thanks! :)
@RaviPujar
@RaviPujar 7 років тому
The HTTP commands remain same for SIM900 and SIM800 family. Here is the link to video showing Firmware update. ukposts.info/have/v-deo/g56oppWeaa5oqnU.html
@maryjoyleanda3835
@maryjoyleanda3835 7 років тому
Hi Rave, thanks for the video. I am doing a project using SIM900 but have error in command AT+HTTPPARA="CONTENT","CONTENT". i'm using 1137B07SIM900A32_ST_NENGRUI. Do I need to upgrade the firmware of my sim900? thanks
@RaviPujar
@RaviPujar 7 років тому
Hi Mary, The HTTPPARA command is used like this , AT+HTTPPARA="CONTENT","application/json" where you say that the data following next is of application/json type. If its giving error for AT+HTTPINIT commnd also then you need to update firmware.
@AmolGautam
@AmolGautam 8 років тому
First of all, a great tutorial. I am using a SIGSM module that is interfaced with arduino. I have a web server that accepts GET/POST requests but doesn't give any response. can you make a tutorial for that as well?
@RaviPujar
@RaviPujar 8 років тому
+Amol Gautam Thanks. What response do you want from server. You need to write some server side script for getting custom responses.
@chandanabsuresh5977
@chandanabsuresh5977 7 років тому
i m not able to send the content data . i have to send name and age value how can i do it
@bhseshu
@bhseshu 7 років тому
hi, first of all video is very descriptive thanks for that, how to implement MQTT on SIM808
@RaviPujar
@RaviPujar 7 років тому
Hi bh.seshu raju, Thanks you, You need to implement a MQTT client using any available open source C code on you micrcontroller and write one wrapper which takes care of maintaining continuous TCP connection to server. The MQTT client code takes care of the rest. You will need a MQTT server to test the code though.
@bhseshu
@bhseshu 7 років тому
thanks, any examples or blog to describe the process
@RaviPujar
@RaviPujar 7 років тому
Not on my channel/blog yet, Planning to. Stay tuned. Will update you.
@FiR3Dr4g0n
@FiR3Dr4g0n 8 років тому
exelent video, a noob question, do i need to upload any sketch to arduino in order to have this communication?
@RaviPujar
@RaviPujar 8 років тому
+FiR3Dr4g0n Thanks. These are just basic AT commands which you can execute using any terminal software. Here i am using TMFT software. If you want to communicate using Arduino then you need to write a sketch which sends these commands to SIM900
@FiR3Dr4g0n
@FiR3Dr4g0n 8 років тому
+Ravi Pujar thanks for the reply, i have downloaded a txt file on my arduino uno ram [using your guide], how can i send that file to my computer? thank you for your time.
@RaviPujar
@RaviPujar 8 років тому
You can send it to your computer using serial port or Bluetooth or WiFi or again through Internet. Which one would you prefer?
@RaviPujar
@RaviPujar 8 років тому
You can send it to your computer using serial port or Bluetooth or WiFi or again through Internet. Which one would you prefer?
@FiR3Dr4g0n
@FiR3Dr4g0n 8 років тому
i would like to send it via serial port, but am not sure of wich commands i need to you
@kitewavers
@kitewavers 6 років тому
Hi Ravi, if during data transfer arrive a call to the phone it writes on uart RING or phone number and this compromise what my program expects on the serial comunication. Is possible to disable the incoming calls during this phases? Or which solution you suggest Thanks a lot
@RaviPujar
@RaviPujar 6 років тому
Hi Roberto, Thank you for watching and Dont forget to Subscribe :) I guess you need to do it on network side, The network providers give support for barring incoming calls. May be you need to execute some USSD codes for activating incoming call barring service. Please post your query here, www.embeddedadvice.com/ We can discuss
@jyothis9350
@jyothis9350 4 роки тому
How to setup the TLS connection with pre shared keys? what is the parameter to send the pre shared key?
@RaviPujar
@RaviPujar 4 роки тому
Will make a video on TLS usage with GCP soon. Don't forget to like share and subscribe :)
@saisharan5537
@saisharan5537 7 років тому
hi! Thanks for the video.I am doing a project using SIM900 to receive data but this is not happening.I have to receive data and to do this it's saying that I have to but the IP from the service provider but I can do that because it's costly.So, is there any other wat to receive data using sim900.Please help!
@RaviPujar
@RaviPujar 7 років тому
There is no other way the you can send unsolicited data to SIMCOM module unless you make it a server. Only option is to make module poll a server continously or use SMS since you have a static number to send SMS to.
@shashankmore321
@shashankmore321 6 років тому
what is difference in using AT Commands for TCPIP (like AT+CIPSEND) and AT Commands for HTTP? I am confused both look like same to me. can u please explain?
@RaviPujar
@RaviPujar 6 років тому
Both are very different. Where did you find them same?
@shashankmore321
@shashankmore321 6 років тому
my knowledge on networking is poor.Can u please explain me when to use TCPIP and when to use HTTP??
@shashankmore321
@shashankmore321 6 років тому
hey .....when i try to access GOOGLE by http get method i got DNS error (603). What is the solution?
@shashankmore321
@shashankmore321 6 років тому
at+sapbr=3,1,"Contype","gprs" at+sapbr=3,1,"APN","airtelgprs.com" at+sapbr=1,1 at+sapbr=2,1 at+httpinit at+httppara="cid",1 at+httppara="url","api.thingspeak.com/update?api_key=3YC03C2UJKCE2VM9&field1&field1=300" at+httpaction=0 When i did this i got (0,603,0) an DNS error. Can u please help me with this??
@RaviPujar
@RaviPujar 6 років тому
I think you cannot access HTTPS on SIM900. Make it
@akilaniroshan4655
@akilaniroshan4655 8 років тому
Hi, I want to upload a jpg image to a server using sim908. And I couldn't find any AT commands which can do that. Is uploading a jpg image using sim908 is impossible?
@RaviPujar
@RaviPujar 8 років тому
Hi is very much possible. Just instead of typing in the text, send the contents of jpeg file that's all
@akilaniroshan4655
@akilaniroshan4655 8 років тому
Can I have a sample code. For an example I want to send AT+HTTPDATA=213,40000 ------WebKitFormBoundaryvZ0ZHShNAcBABWFy Content-Disposition: form-data; name="fileToUpload"; filename="image.jpg" Content-Type: text/plain IMAGE CONTENT????????? ------WebKitFormBoundaryvZ0ZHShNAcBABWFy
@RaviPujar
@RaviPujar 8 років тому
+Akila Niroshan It should be the same except that the content type might change to binary type. I am not sure about the exact mime type. Please research on internet on the content type variable.
@antoniolara2584
@antoniolara2584 7 років тому
Friend, a question, I send data to a web server making GET requests, however, the command AT + SAPBR = 1,1 often answers me with error, does not always answer me with OK, what can I do ?. I hope you can help me.
@RaviPujar
@RaviPujar 7 років тому
Hi Antonio, Most probably the SIM card is not yet registered on network. Check what the command AT+CREG? gives. And if it gives 0,1 or 0,5 as reply then most probably its network problem , may be there is no sufficient balance or credit on SIM card or network not recognizing the module as valid IMEI.
@antoniolara2584
@antoniolara2584 7 років тому
Friend, thanks for the comment, however observing a few examples on the web, note that first use the command AT + CMGF = 1, then the AT + CGATT = 1 and finally all the configuration commands of the sapbr, for the moment I am Testing the system, the sim is registered in the network and also has credit. Thanks. Thank you again.
@shashankmore321
@shashankmore321 6 років тому
hey, I wanted to receive data from the web server unsolicitedly like I get SMS unsolicitedly when i send SMS to my GSM module. If i update data in the web server then that data will send automatically to the GPRS module without any need of GET or HTTPPARA command.So,by this I can get my data using USART interrupt. I want something like this.Can u help me with this?
@RaviPujar
@RaviPujar 6 років тому
Yes, Stay tuned for my next tutorial on MQTT. I will show how.
@shashankmore321
@shashankmore321 6 років тому
I am waiting.....please try to make it ASAP.
@JayPatel-ho4oc
@JayPatel-ho4oc 6 років тому
hi ravi, i am using arduino uno and gsmsim900 module. now i have an issue. if arduino connected with usb or start the serial monitor of arduino software the program run which have loaded in controller. but when i will remove usb cable from laptop and connect the arduino board with external source the loaded program don't get started. no any blinking on RX and TX pin of arduino uno. can you pls tell what is the reason behind this??
@RaviPujar
@RaviPujar 6 років тому
Jay Patel Check if you are connecting the reset line anywhere, may be your external circuit is holding the mcu in reset . I don't have much experience with Arduino though.
@JayPatel-ho4oc
@JayPatel-ho4oc 6 років тому
thanks for reply, not any issue with reset. i think without serial connection between pc n controller, the controller looking for serial client when external source is connected and usb is not. but dont know how to get reed of it.
@user-ih5hv
@user-ih5hv 7 років тому
Hi i have downloaded notepad++, where do i get the library for writing a script as you have shown(for posting data). Also is there a method to post just a single string of data to cloud without writing it into a file Thanks a lot for this tutorial av
@RaviPujar
@RaviPujar 7 років тому
Hi, Glad it helped you. I had given the link for downloading those files in my blog. Please check. Dont forget to subscribe.. :)
@user-ih5hv
@user-ih5hv 7 років тому
Hi the link says "Serial Port programming in Linux using C - Working code" , can i use this if i am using windows. Just to make sure that i understood this right..if i have rs232.c and rs232.h and my script, i should be able to compile my script on a windows machine? Thanks av
@RaviPujar
@RaviPujar 7 років тому
I haven't tried it on Windows. But you should be able to use them with some modifications. Please check on Library owners site for more info. If you are on windows you could easily write a simple program for COM port using .net or C#.
@user-ih5hv
@user-ih5hv 7 років тому
Ok, Thank you Update:: to use in window we only need to add the required header:#include and change usleep() to Sleep() .
@kaushikx
@kaushikx 6 років тому
hi ravi. great tutorial. can you please tell if there is any way of getting the APN automatically without manually providing it to the module?
@RaviPujar
@RaviPujar 6 років тому
Hi Kaushik, I have seen some phones download download settings automatically, not sure how to do it in module though.
@antoniolara2584
@antoniolara2584 8 років тому
Hi Ravi, very good information of the video, but I hope you can help me, I'm working with a SIM900 module EFCom GPRS / GSM Shield, try to make a GET request to a page, but each that sending an AT + CIPSEND and after the code with the GET request, the arduino mega is restarted, the same happens if I use the command aT + HTTPPARA in some cases the sim 900 not answer me when I send the aT command + SAPBR = 1.1. thanks in advance.
@RaviPujar
@RaviPujar 8 років тому
+Edgar Antonio Lara Hi Might be you are having power issues. Please make sure you are supplying the module from a power source capable of supplying of upto 2A of surge current. If you want to find the exact problem, hook up a serial port on TX line of SIM900 and watch what response the module is giving when you issue the commands from Arduino.
@emavles
@emavles 8 років тому
Hi +Ravi Pujar , He knows, in fact the energy I provide to Arduino is 12V and 6A as feed Arduino USB cable with me did not work, but to send the command Command: AT + CIPSEND Response:> get /page.com/data.php?data1=value1;data2=value2;data3=value3 get HTTP / 1.1 ctrl + z Arduino after restarts and I have to rewrite the script, but I can not send the GET request that every time I try restarts and I can not send data. Thanks in advance. I just want to make a GET request. Help..
@JayPatel-ho4oc
@JayPatel-ho4oc 6 років тому
hello, i am using sim900 and arduino board. By using web hosting i have successfully upload the data using http post where the response from AT+HTTPACTION=1 is 600 but data posted successfully. now i tried it using local host and when AT+HTTPACTION= 1 command executed there is not any response appeared on serial, like +HTTPACTION =1,200,.. if you have any idea regarding it pls reply me.
@RaviPujar
@RaviPujar 6 років тому
Jay Patel how can it work on local host. ? Are you accessing through a static public ip?
@JayPatel-ho4oc
@JayPatel-ho4oc 6 років тому
no, i am not using static public ip. but same thing by using postman(POST method) software the data can be posted on local web ip. can you tell me in briefly regarding this concept?
@RaviPujar
@RaviPujar 6 років тому
Postman also needs a public IP i think.. On local host you can only implement local LAN limited requests. Watch my video on SIM900 TCP server, its somewhat related. Any server or client needs a publicly accessible IP address to send data to, No local or LAN IP/URL will work.
@amithbg967
@amithbg967 7 років тому
Hi! Thanks for the tutorial. We are using sim900a and arduino to post data on to a server. We are not able to figure out how to post data which we are retrieving from arduino on to server. Can we do this? Please help!
@RaviPujar
@RaviPujar 7 років тому
Yes you can do it. What exact problem are you facing.
@amithbg967
@amithbg967 7 років тому
We are using AT commands such as AT+CNETSCAN, AT+CENG=2,0 to get Network Operator, CellId, Mobile Country Code, Location area code and much more. How do we extract this data from arduino's serial monitor and upload it to a server?
@RaviPujar
@RaviPujar 7 років тому
Once you get the response of this data you need to store the data in buffer of Arduino MCU and write some code to decode or parse the fields that have been received. Once you parse them and store in different variables, You can easily upload them using HTTP or TCP commands as i have shown in tutorials using AT commands.
@tommysherlock8083
@tommysherlock8083 5 років тому
does it matter if you use sim800l instead will it work ?
@RaviPujar
@RaviPujar 5 років тому
Its compatible. it should work. Dont forget to share and subscribe :)
@vishaalvishaal2118
@vishaalvishaal2118 3 роки тому
Hello ravi I am using sim7600Ei will the same process works? For http postfile to server
@RaviPujar
@RaviPujar 3 роки тому
No, SIM7600x uses Socket commands format. The commands are different. Check the AT command manual or HTTP application note of SIM7600x
@vishaalvishaal2118
@vishaalvishaal2118 3 роки тому
@@RaviPujar thankyou i have checked http manual and i tried http request sending simple data it's done but for sending file to server theres a command AT+HTTPPOSTFILE and i tried AT+HTTPPOSTFILE="data.txt",2 where 2 is path of sdcard(D:\) and default header is zero and default method is post but I am getting bad request 400.
@vishaalvishaal2118
@vishaalvishaal2118 3 роки тому
@@RaviPujar ?
@RaviPujar
@RaviPujar 3 роки тому
@@vishaalvishaal2118 you mean you are able to get the HTTP commands I showed in video working on SIM7600?
@vishaalvishaal2118
@vishaalvishaal2118 3 роки тому
@@RaviPujar no for http post request i.e AT+HTTPDATA and AT+HTTPACTION=1 by using this am able to send data but for posting file using AT+HTTPPOSTFILE command I am getting 714 error which is connect socket failed
@priyankajadav7421
@priyankajadav7421 7 років тому
Hello RAVI,, Thanks for the video..I get an error while performing HTTPACTION command it gave error 603 ..it is DNS error how can I solve this error?
@shashankmore321
@shashankmore321 6 років тому
replace HTTPS with HTTP then send it
@GOWTHAMKRISHGowthamShanmugaraj
@GOWTHAMKRISHGowthamShanmugaraj 7 років тому
how to access HTTPS sites?
@JayPatel-ho4oc
@JayPatel-ho4oc 6 років тому
Hi ravi, very helpful video, In http post method i m using arduino + sim900 module. after executing the code AT+HTTPDATA=" + String(reading.length()) + ",100000", There are on serial monitor got the "Download" respond. But after that it won't execute the At+HTTPACTION=1 command. It stopped after download response. can u pls tell me the mistake? How to write code for the string of data?
@RaviPujar
@RaviPujar 6 років тому
Jay Patel Try entering extra dummy characters at the end. The length might be less than what is told to the module. It won't echo whatever you send in httpdata command. Don't forget to subscribe :)
@JayPatel-ho4oc
@JayPatel-ho4oc 6 років тому
Thanks It works now got another problem. Error 404 came during arduino+sim900. But HTTP post working ok using POSTMAN software. The serial monitor data is give below. Please AT+HTTPPARA="URL","aiil2.cloud.cms500.com/DisplayServlet AT+HTTPPARA="CONTENT","application/json" OK AT+HTTPDATA=59,10000 DOWNLOAD OK AT+HTTPACTION=1 OK +HTTPACTION:1,404,1072 AT+HTTPREAD +HTTPREAD:1072 Apache Tomcatudj
@RaviPujar
@RaviPujar 6 років тому
Jay Patel it's a error from server. It will tell what is the error in that 1072 bytes received. Read through it. Most of the time it's data we are sending is not in correct format
@mihirapremadasa993
@mihirapremadasa993 5 років тому
Hi, can you give me your tcp service php code? I can modify to my application. I'm doing realtime tracking system for my final year project. Thank you.
@RaviPujar
@RaviPujar 5 років тому
Which service code. ? If you have technical questions, you can ask here, www.embeddedadvice.com Dont forget to share and subscribe :)
@Themiistt
@Themiistt 7 років тому
Hi, I have a big question... Why the APN is "www"? The APN depends on the company that are you using for the connection, doesn't it? Like if I'm using an AT&T simcard or a Movistar simcard... EDIT: Forget it, I already read your webpage where you use it depends on the company we are using, sorry :D
@RaviPujar
@RaviPujar 7 років тому
Hi, You are right, www APN is for Vodafone and Airtel. It works for most sims in India because they are not password protected. You need to use your SIM card provider or network provided APN, Like epc.t-mobile.com for T-Mobile in USA.
@Themiistt
@Themiistt 7 років тому
Yes, I have one simcard from Movistar but I got the error "Registration Denied" CREG:0,3 and I don't know why because I was working fine with the SIM808, I left it and I took it over and It doesn't work anymore. Do you know something about "CREG=0,3"?
@RaviPujar
@RaviPujar 7 років тому
Yes it means the network operator doesnt want to provide service to your module. Call and talk to customer care. But before that make sure the SIM card is enabled for 2G network. And also check for AT+CBAND? command, You can set appropriate bands for your country. Where are you from?
@Themiistt
@Themiistt 7 років тому
I'm from Mexico, and I tried the band for my country and still doesn't work. I already talked to costumer care from Movistar, and they told me that they cannot register the IMEI into their network. First, I tought that the SIM808 (I use SIM808 instead of SIM900) was defective and I bought another one. I already used two different SIM808 modules, 1 module from Adafruit and both were working perfectly fine for a short period of time and after 1 month the sim couldn't upload information into the server. They can track my actual position but they cannot upload information (http commands) and still is telling us "Registration Denied". We bought a SIM808 Shield, pretty new because we need it for our project and that shield is actually working well now, but I don't understand why the others sims, including Adafruit Module, doesn't work anymore. I'll be glad if you can help me with this problem.
@RaviPujar
@RaviPujar 7 років тому
Hi, Strange problem. Same thing happened when i had sent SIM808 to USA. It didnt get network. Then i changed the AT+CBAND and it started working. What all options did you try in CBAND?
@JunaidAhmad-kl2xw
@JunaidAhmad-kl2xw 7 років тому
Hi Ravi! Thanks for the video. Can you please tell me if I have to upload image instead of text, how can i do it? I am using it with raspberry pi 3B and I am unable to write this part to the serial: ------WebKitFormBoundaryvZ0ZHShNAcBABWFy Content-Disposition: form-data; name="fileToUpload"; filename="i.png" Content-Type: image/png ------WebKitFormBoundaryvZ0ZHShNAcBABWFy
@RaviPujar
@RaviPujar 7 років тому
Hi Junaid, Glad it helped you :) The procedure remains the same, but you cannot send binary data directly. You need to encode it to base64 before sending. Look at multipart form data upload protocol for binary data. I didnt try it though. You can experiment. Dont forget to subscribe..
@JunaidAhmad-kl2xw
@JunaidAhmad-kl2xw 7 років тому
I tried it using base64 but it did not work. Anyway! thanx a lot
@khaledabdo1616
@khaledabdo1616 8 років тому
hi i want to know what is the command to get my public ip and how can i make port forward on my public ip
@RaviPujar
@RaviPujar 8 років тому
+khaled abdo Hi Khaled, I am not sure command to know public IP exists.!
@khaledabdo1616
@khaledabdo1616 8 років тому
Thank you
@JAGANNATHSAHOOtheraw
@JAGANNATHSAHOOtheraw 6 років тому
Will these commands work with sim808?
@RaviPujar
@RaviPujar 6 років тому
Yes, they will work.
@JAGANNATHSAHOOtheraw
@JAGANNATHSAHOOtheraw 6 років тому
Ravi Pujar thank you
@jamesterkimbi3948
@jamesterkimbi3948 6 років тому
PLEASE I NEED GPRS HTTP AT COMMAND FOR A6..
@AmitSharma-bm2qj
@AmitSharma-bm2qj 2 роки тому
Hi how can we send more than 2000bytes of data using http post request......
@RaviPujar
@RaviPujar 2 роки тому
Send it in chunks. Check Multi part file format or just use your own custom protocol
@AmitSharma-bm2qj
@AmitSharma-bm2qj 2 роки тому
@@RaviPujar i don't know how to do it....could you give me your video link of that 😅?
@RaviPujar
@RaviPujar 2 роки тому
@@AmitSharma-bm2qj I don't have a separate video for it 😅
@AmitSharma-bm2qj
@AmitSharma-bm2qj 2 роки тому
@@RaviPujar oh!..
@edsonxavier302
@edsonxavier302 6 років тому
Hello my friend. Can I use the HTTPPARA ip server function instead of marsinnovations.in/testout.php? how i can do this? tks
@RaviPujar
@RaviPujar 6 років тому
Hi, You can replace URL with IP address and port number like, 100.22.33.155 Provided a HTTP server is listening on that IP.
@edsonxavier302
@edsonxavier302 6 років тому
Ravi Pujar tks
@RaviPujar
@RaviPujar 6 років тому
Welcome , Don't forget to Subscribe :)
@edsonxavier302
@edsonxavier302 6 років тому
Ravi Pujar ok kkk. done
@aneesrasheed9276
@aneesrasheed9276 Рік тому
Sir, my gsm module is restarting time after 7 blinks. Solution plz😢😢😢
@RaviPujar
@RaviPujar Рік тому
Probably current not enough
@s.husain6125
@s.husain6125 3 роки тому
How to send data to firebase realtime database using at commands sir need tutorial
@RaviPujar
@RaviPujar 3 роки тому
I will make one soon
@s.husain6125
@s.husain6125 3 роки тому
@@RaviPujarmany thanx sir......love your all tutorials and guidance.....
@prohorsleng3464
@prohorsleng3464 8 років тому
please , May you send me a manual of SIM900 modules ?
@RaviPujar
@RaviPujar 8 років тому
www.espruino.com/datasheets/SIM900_AT.pdf www.amuroboclub.in/downloads/ebooks/GSM_MANUAL_SIM900_Hardware%20Design_V2.00.pdf
@prohorsleng3464
@prohorsleng3464 7 років тому
thank u
@chansokongkeo8268
@chansokongkeo8268 8 років тому
i can't login to your server "ftp.marsinnovations.in". could you tell me how i login ?
@RaviPujar
@RaviPujar 8 років тому
+chansokong keo :D You need to get your own server for uploading. I used mine for demonstration and blocked access.
@ganeshck2202
@ganeshck2202 7 років тому
HI RAVI.. Now itz working when i send it to "http: " but itz not working with "https: " ...plz help me
@RaviPujar
@RaviPujar 7 років тому
Hi Ganesh, It will not work with HTTPS as you need to encrypt it and send for HTTPS server to accept it.
@ganeshck2202
@ganeshck2202 7 років тому
OKAY got it...thank you
@RaviPujar
@RaviPujar 7 років тому
Welcome , And dont forget to Subscribe :)
@ganeshck2202
@ganeshck2202 7 років тому
Okay sure...
@minhcuongtran8504
@minhcuongtran8504 3 роки тому
please help HTTP sim7600
@thesidd19
@thesidd19 6 років тому
These commands are not working in sim800l
@RaviPujar
@RaviPujar 6 років тому
You might need to update to the right firmware .
@dahake1984
@dahake1984 8 років тому
Hi Ravi, Excellent video's. I've been trying to send the following POST Commands to my windows azure service. Was wondering how this could be done using an SIM900. Would be a big help if you could guide me on this. The format for the HTTP POST Request is POST /tables/ HTTP/1.1HOST: .azure-mobile.netContent-Type: Application/JSONx-zumo-application: Content-Length: Connection: Close{"DateTimeStamp": 20150926T083214Z,"SensorID":1000,"Temperature":29.3256}
@RaviPujar
@RaviPujar 8 років тому
+dahake1984 Hi, Thanks. You should do it using the same method except change the url and the content type and content length variables. email me for if you have any further questions.
@rajeshkannan4921
@rajeshkannan4921 8 років тому
+Ravi Pujar sIR I M TRYING THIS..BUT NOT WORKING
@RaviPujar
@RaviPujar 8 років тому
+Rajesh Kannan What part is not working?
@Colors-of-world
@Colors-of-world 8 років тому
hello siricant findthe site marsinnovations.in/testout.php...i want to test my gsm module for gprs .how should i do it
@RaviPujar
@RaviPujar 8 років тому
+arun r You should use your own website, i used mine for demo.
@Colors-of-world
@Colors-of-world 8 років тому
+arun r thnqu sir for the reply i have also seen ur tcp ip seesion using socket tester .but i was unable to communicate with socket tester..why cud that be
@8655662316
@8655662316 8 років тому
HTTPINIT command getting error everything ok above code before HTTPINIT
@RaviPujar
@RaviPujar 8 років тому
+rakesh lakhan HTTPPARA command works?
@8655662316
@8655662316 8 років тому
not working getting error ..ftp are working
@8655662316
@8655662316 8 років тому
i want to access my website plz help me ..BE final year project,,any another change so i want access my site
@hogishim.
@hogishim. 7 років тому
Did you find a solution to this problem?
@sumitkumar-nv7ox
@sumitkumar-nv7ox 7 років тому
UPDATE THE FIRMWARE
SIM900 GPRS TCP/IP AT Commands
5:51
Ravi Pujar
Переглядів 70 тис.
Introduction to AT Commands
39:03
emnify
Переглядів 19 тис.
Getting Started with A9G Board | GSM + GPRS + GPS 🔥🔥
25:49
techiesms
Переглядів 93 тис.
They Enabled Postgres Partitioning and their Backend fell apart
31:52
Hussein Nasser
Переглядів 36 тис.
SIM900 EMAIL AT COMMANDS - Sending email via GPRS
8:42
Ravi Pujar
Переглядів 19 тис.
Best OS for programming? Mac vs Windows vs Linux debate settled
8:41
GSM with Arduino - HTTP GET REQUEST - Retrieve Data from Webpage
8:31
Saravanan AL
Переглядів 34 тис.
САМЫЙ дешевый ПК с OZON на RTX 4070
16:16
Мой Компьютер
Переглядів 103 тис.
Нужно ли чистить ПК от пыли?
0:59
CompShop Shorts
Переглядів 176 тис.
На iPhone можно фоткать даже ночью😳
0:30
GStore Mobile
Переглядів 768 тис.