Hello sir! Nice tutorial was great. I want to stabilize connection to firebase on sim800l I have followed all steps for our tutorial and added AT+SSLSETCERT=cert.cer but I got error for response+SSL SETCERT:1?
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. 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. 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
@@miliohm How can we know that? that's my question. Some people are saying that a date has already been set. See: www.oliviawireless.com/learn-overview/2g-shutdown
@@prspedro1 yeah, maybe you are right. So we have to prepare with new kind of SIM module. But they are not so different. Still has same AT command. And more expensive of course.
Hello, when I type the AT commands I can't see them in the serial monitor. Just a blank spot and then the response of the SIM800L. Checked the wiring and it's powered from a power supply. Please help. Thanks!
@@miliohm Everything works fine, but I can't see what I have written. For example when I type the the "AT" command I get a blank spot and only the response "OK". (sorry for the late response)
Mau nanya juga gmn cara supaya sim800l yg terhubung dgn arduino lgsung terkoneksi ke internet tanpa bikin perintah di serial monitor? Perintah apa yg ditambahin di program ya?
Hello there. I bought the product "LILYGO® TTGO T-Call V1.3". It has a SIM800 integrated on it. I am using the same code correcting TX / RX GPIO numbers. But when I type AT in Serial monitor, I cannot get a response. Can you help me with what I am doing wrong?
Hi, thanks for taking the time to respond to my question. Please see console output below: AT+SAPBR=3,1,"Contype","GPRS" AT+CSTT="claro.claro.com","claro","claro" OK AT+SAPBR=1,1 OK AT+HTTPINIT ERROR
@@miliohm Hi, I reviewed the code and added the the above command. Now it runs but HTTPREAD only returns OK but not the contents of the web page. Please see below: AT+SAPBR=2,1 Resposta: +SAPBR: 1,1,"100.73.53.89" OK OK AT+HTTPINIT Resposta: OK OK AT+HTTPPARA="URL","iot.hidroflux.com/upload/chkfsize.php?filename=acid.jpg" Resposta: OK OK AT+HTTPACTION=0 Resposta: OK OK AT+HTTPREAD Resposta: OK The end. If you run the URL you will see that it returns the size in bytes of the indicated filename but HTTPREAD only says OK. The size of that file is what I need. Thanks in advance for your help Paulo
Aku liat di datasheet gada buat naruh message body nya. Ya kalo ada tutorial nya mas coba dibuat hehe. Soalnya biasanya kan server ambil data dari message body http request
Excellent Tutorial!! Only one thing, this works fine when I use your site (miliohm.com/miliohmSIM800L.php) to read the data. But when I change to another site (casadoeletronico.000webhostapp.com/t1.php) do not work. I receive an Error (+HTTPACTION: 0,603,0) that is DNS ERROR. Please, do you know what happens? Thanks very much.
Bang mau tanya, sim800l setelah agak lama kirim data ke Thingspeak dia malah berenti dan AT command AT+CIPSEND nya ERROR, nunggu ke sambung lagi bisa 30 menitan, ngatasinnya gimana yaa Bang?
I think twice before buying the expensive 4G module. then I came across this video. you saved me a lot of money for using sim800l. Thank you
Hello sir! Nice tutorial was great. I want to stabilize connection to firebase on sim800l I have followed all steps for our tutorial and added AT+SSLSETCERT=cert.cer but I got error for response+SSL SETCERT:1?
hi i have problem when get request command the link is not fully printed how to fix it ?
could you please make a toturial using a flutter application for communication?
Did you use a data sim card or a voice sim card?
Hi..is this product reliable for industrial applications? Have u ever tested it continuously for days, weeks or months?
we have been using SIMCom 800L for industrial and Oil&Gas use for more than 5 years now. Reliable and cheap.
Thank you very much, you saved my day
Excelent! just turn down the background music a little
What do you you do when AT+SAPBR=1,1 is not okay?
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.
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.
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
Hi. Thanks for the class. One doubt: the SIM800L is only 2G? won't the 2G system end? therefore, can using this module be a problem?
I don't think that it will end in years
@@miliohm
How can we know that? that's my question. Some people are saying that a date has already been set. See: www.oliviawireless.com/learn-overview/2g-shutdown
@@prspedro1 yeah, maybe you are right. So we have to prepare with new kind of SIM module. But they are not so different. Still has same AT command. And more expensive of course.
@@miliohm Unfortunately. This will make our projects more expensive. I wonder if there are cheaper 3G modules.
Hi,
Thanks for video.
What about HTTPS connection with POST request?
Regards,
Mucip:)
In which part you get the connection to APN??? name of APN user and pass?
Hello, when I type the AT commands I can't see them in the serial monitor. Just a blank spot and then the response of the SIM800L. Checked the wiring and it's powered from a power supply. Please help. Thanks!
What's the response of SIM800L?
@@miliohm Everything works fine, but I can't see what I have written. For example when I type the the "AT" command I get a blank spot and only the response "OK". (sorry for the late response)
@@miliohm same problem with me.. how to solve this problem
after i type AT in serial monitor, and press send, serial monitor stays completely blank, please help me!
Can you please tel me when to use tcp and http ?Doesn't it require tcp for http get request?
Bang, pas type AT+SAPBR= 1,1 di serial monitor, muncul +CME ERROR: Operation not allowed.. Itu kenapa ya? Padahal pake Tri juga
Can you share the source code of the website you are using, please?
how can i store this informatin in variable (congtrtulation ! your sim800l http request.......)
Error on sub title --------------> "AT+SAPBR=1 " right ="AT+SAPBR=1,1"
Nice all work! Thanks
You are welcome, don't forget to subscribe
@@miliohm sure
for this module can't use 3.7v ?? for spec Working Voltage: 3.5 ~ 4.2V
It doesn't recommended. Sometimes you don't get enough current if you use 3,7v from arduino.
Mau nanya juga gmn cara supaya sim800l yg terhubung dgn arduino lgsung terkoneksi ke internet tanpa bikin perintah di serial monitor? Perintah apa yg ditambahin di program ya?
Hello there. I bought the product "LILYGO® TTGO T-Call V1.3". It has a SIM800 integrated on it. I am using the same code correcting TX / RX GPIO numbers. But when I type AT in Serial monitor, I cannot get a response. Can you help me with what I am doing wrong?
I just realized what I was missing. Now I am responding to commands.
@@aGGreSSiv congratulation
@@aGGreSSiv Merhaba AT Komutlarından bende cevap alamıyorum.Sorunu nasıl çözdün yardımcı olursan sevinirim. hdemirtasus@gmail.com
@@harundemirtas8854 mail attim
@@harundemirtas8854 bu arada gönderdiğim kod mesajımda belirrttiğim kart için geçerli
Mas, mau nanya.. Kira" bisa akses https ga ya pake sim800l ini?
I get ERROR in response when i use AT+HTTPPATA="CID",1
you should write AT+HTTPPARA="CID",1
Hi, I tried to follow your instructions but AT+HTTPINIT always return ERROR. Any suggestions? Thanks
is AT+SAPBR=1,1 answer OK?
Hi, thanks for taking the time to respond to my question. Please see console output below:
AT+SAPBR=3,1,"Contype","GPRS"
AT+CSTT="claro.claro.com","claro","claro"
OK
AT+SAPBR=1,1
OK
AT+HTTPINIT
ERROR
@@miliohm Hi, my code is as below:
#define SerialAT Serial1
// TTGO T-Call pins
#define MODEM_RST 5
#define MODEM_PWKEY 4
#define MODEM_POWER_ON 23
#define MODEM_TX 27
#define MODEM_RX 26
void setup() {
Serial.begin(115200);
// Set modem reset, enable, power pins
pinMode(MODEM_PWKEY, OUTPUT);
pinMode(MODEM_RST, OUTPUT);
pinMode(MODEM_POWER_ON, OUTPUT);
digitalWrite(MODEM_PWKEY, LOW);
digitalWrite(MODEM_RST, HIGH);
digitalWrite(MODEM_POWER_ON, HIGH);
// Set GSM module baud rate and UART pins
SerialAT.begin(9600, SERIAL_8N1, MODEM_RX, MODEM_TX);
}
void loop() {
Serial.println("Init modem ");
chkSerial("AT+CFUN?");
chkSerial("AT+SAPBR=3,1,\"Contype\",\"GPRS\"");
chkSerial("AT+SAPBR=3,1,\"APN\",\"claro.claro.com\"");
chkSerial("AT+SAPBR=1,1");
chkSerial("AT+HTTPINIT");
chkSerial("AT+HTTPPARA=\"CID\",1");
chkSerial("AT+HTTPPARA=\"URL\",\"miliohm.com/miliohmSIM800L.php\"");
chkSerial("AT+HTTPACTION=0");
chkSerial("AT+HTTPREAD");
chkSerial("AT+HTTPTERM");
Serial.println("Delay...");
delay(20000);
}
void chkSerial(String ATcommand){
String content = "";
byte reply = 1;
int timeout = 30000;
char character;
while(SerialAT.available()>0) SerialAT.read();
//Send the atcommand to the modem
SerialAT.println(ATcommand);
delay(100);
unsigned int timeprevious = millis();
while((reply == 1) && ((millis() - timeprevious) < timeout)){
while(SerialAT.available()>0) {
character = SerialAT.read();
content.concat(character);
//Serial.print(character);
delay(10);
}
//Stop reading conditions
if (content.indexOf("OK") != -1){
reply = 0;
}else if(content.indexOf("ERROR") != -1){
reply = 2;
}else{
//Nothing to do...
}
}
Serial.print(ATcommand);
Serial.println(content);
}
OUTPUT:
Init modem
AT+CFUN?
AT+SAPBR=3,1,"Contype","GPRS"
OK
AT+CSTT="claro.claro.com","claro","claro"
OK
AT+SAPBR=1,1
OK
AT+HTTPINIT
ERROR
AT+HTTPPARA="CID",1
ERROR
AT+HTTPPARA="URL","miliohm.com/miliohmSIM800L.php"
ERROR
AT+HTTPACTION=0
ERROR
AT+HTTPREAD
ERROR
AT+HTTPTERM
ERROR
Delay...
Thanks in advance for your help.
Paulo
@@fingerprint8479 try AT+SAPBR=2,1 before http init. Did you get the IP address?
@@miliohm Hi, I reviewed the code and added the the above command. Now it runs but HTTPREAD only returns OK but not the contents of the web page.
Please see below:
AT+SAPBR=2,1 Resposta:
+SAPBR: 1,1,"100.73.53.89"
OK
OK
AT+HTTPINIT Resposta:
OK
OK
AT+HTTPPARA="URL","iot.hidroflux.com/upload/chkfsize.php?filename=acid.jpg" Resposta:
OK
OK
AT+HTTPACTION=0 Resposta:
OK
OK
AT+HTTPREAD Resposta:
OK
The end.
If you run the URL you will see that it returns the size in bytes of the indicated filename but HTTPREAD only says OK.
The size of that file is what I need.
Thanks in advance for your help
Paulo
can we use sim 4g ?
you can use the sim, but you cannot use 4G network. This module can only use GPRS signal
@miliohm yes thank you so much for in formation
Hi, Good video! Can you please share your .php scripts and database configuration. Thanks!
how download 300kb or more ?
Any link to part 2?
It's not created yet 😂
@@miliohm oh, ok, I'll wait. Thank you for replying.
thank you very much!!
you are welcome, don't forget to subscribe :)
I am getting + HTTPACTION 0 603 0 RESPONSE WHICH MEANS DNS SERVER ERROR
Hey bro , do you fixed the problem because i have the same
Good afternon, i can't find the next video , the part 2
Mas kalo pake http post trus dikasih message body kayak json bisa ga ya
Maksudnya request post ke web dengan balasan format json? Bisa
Aku liat di datasheet gada buat naruh message body nya. Ya kalo ada tutorial nya mas coba dibuat hehe. Soalnya biasanya kan server ambil data dari message body http request
Can i get your PHP File ?
Excellent Tutorial!! Only one thing, this works fine when I use your site (miliohm.com/miliohmSIM800L.php) to read the data. But when I change to another site (casadoeletronico.000webhostapp.com/t1.php) do not work. I receive an Error (+HTTPACTION: 0,603,0) that is DNS ERROR. Please, do you know what happens? Thanks very much.
I'm getting the same error (in my case it works with my website but no miliohm...), how did you fix it?
ohh i got it, it was because of the httpS protocol, solved, thanks anyway
Congratulations on that
@@danielalejandrorobayo4630 hey, how you solved it? I am getting the same error. Thanks!
@@MrMrLolu you have to turn on the SSL protocol using AT+HTTPSSL=1
WHY THE MUSIC WHY ?
Ok, Will do better next time
@@miliohm Thank you, you're the best !
@@miliohm It's OK!
:)
Bang mau tanya, sim800l setelah agak lama kirim data ke Thingspeak dia malah berenti dan AT command AT+CIPSEND nya ERROR, nunggu ke sambung lagi bisa 30 menitan, ngatasinnya gimana yaa Bang?
saya belum pernah ngalamin, tapi coba direset aja setelah agak lama itu
Sudah saya tambah perintah reset Bang, tapi masih tetap mode standby seperti saat mode sms,
tambah hardware WDT kalau ada feature itu. saya set 180sec, else reset. selepas reset, sudah ok semula