HTTP/GET Request using AT Command - SIM800L Internet Connection Tutorial (Part 1)

Поділитися
Вставка
  • Опубліковано 21 жов 2024

КОМЕНТАРІ • 91

  • @samharmonies
    @samharmonies 4 роки тому +7

    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

  • @pratiksoni2354
    @pratiksoni2354 2 роки тому

    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?

  • @zidanrafifpratama
    @zidanrafifpratama 2 роки тому

    hi i have problem when get request command the link is not fully printed how to fix it ?

  • @speedtnt7591
    @speedtnt7591 3 роки тому +1

    could you please make a toturial using a flutter application for communication?

  • @jutf1284
    @jutf1284 2 роки тому

    Did you use a data sim card or a voice sim card?

  • @82jimrock
    @82jimrock 3 роки тому

    Hi..is this product reliable for industrial applications? Have u ever tested it continuously for days, weeks or months?

    • @AhmadFirdausIdris_AFNAN
      @AhmadFirdausIdris_AFNAN 3 роки тому

      we have been using SIMCom 800L for industrial and Oil&Gas use for more than 5 years now. Reliable and cheap.

  • @chameerawijethunga8786
    @chameerawijethunga8786 3 роки тому

    Thank you very much, you saved my day

  • @jaozinasd
    @jaozinasd 4 роки тому +4

    Excelent! just turn down the background music a little

  • @fernandohood5542
    @fernandohood5542 Рік тому

    What do you you do when AT+SAPBR=1,1 is not okay?

  • @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.
    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

  • @prspedro1
    @prspedro1 4 роки тому

    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?

    • @miliohm
      @miliohm  4 роки тому +1

      I don't think that it will end in years

    • @prspedro1
      @prspedro1 4 роки тому

      @@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

    • @miliohm
      @miliohm  4 роки тому

      @@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.

    • @prspedro1
      @prspedro1 4 роки тому

      ​@@miliohm Unfortunately. This will make our projects more expensive. I wonder if there are cheaper 3G modules.

  • @mucip_ilbuga
    @mucip_ilbuga 2 роки тому

    Hi,
    Thanks for video.
    What about HTTPS connection with POST request?
    Regards,
    Mucip:)

  • @marceloosorio525
    @marceloosorio525 3 роки тому

    In which part you get the connection to APN??? name of APN user and pass?

  • @MrMrLolu
    @MrMrLolu 3 роки тому

    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
      @miliohm  3 роки тому

      What's the response of SIM800L?

    • @MrMrLolu
      @MrMrLolu 3 роки тому

      @@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)

    • @nurhana35
      @nurhana35 3 роки тому

      @@miliohm same problem with me.. how to solve this problem

  • @j4mm3r61
    @j4mm3r61 4 роки тому

    after i type AT in serial monitor, and press send, serial monitor stays completely blank, please help me!

  • @vishaalvishaal2118
    @vishaalvishaal2118 4 роки тому

    Can you please tel me when to use tcp and http ?Doesn't it require tcp for http get request?

  • @bertolomeouzbezozdiaz152
    @bertolomeouzbezozdiaz152 3 роки тому +1

    Bang, pas type AT+SAPBR= 1,1 di serial monitor, muncul +CME ERROR: Operation not allowed.. Itu kenapa ya? Padahal pake Tri juga

  • @ismailerenayhan6089
    @ismailerenayhan6089 3 роки тому +1

    Can you share the source code of the website you are using, please?

  • @VaishnavShinde-cp6jb
    @VaishnavShinde-cp6jb Рік тому

    how can i store this informatin in variable (congtrtulation ! your sim800l http request.......)

  • @ais_robotic
    @ais_robotic 2 роки тому

    Error on sub title --------------> "AT+SAPBR=1 " right ="AT+SAPBR=1,1"

  • @ИностранныйАгент-ф1й

    Nice all work! Thanks

  • @Rizal-ir1pt
    @Rizal-ir1pt 4 роки тому

    for this module can't use 3.7v ?? for spec Working Voltage: 3.5 ~ 4.2V

    • @miliohm
      @miliohm  4 роки тому

      It doesn't recommended. Sometimes you don't get enough current if you use 3,7v from arduino.

  • @riskizoldyck8063
    @riskizoldyck8063 3 роки тому

    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?

  • @aGGreSSiv
    @aGGreSSiv 4 роки тому

    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?

    • @aGGreSSiv
      @aGGreSSiv 4 роки тому

      I just realized what I was missing. Now I am responding to commands.

    • @miliohm
      @miliohm  4 роки тому +1

      @@aGGreSSiv congratulation

    • @harundemirtas8854
      @harundemirtas8854 4 роки тому

      @@aGGreSSiv Merhaba AT Komutlarından bende cevap alamıyorum.Sorunu nasıl çözdün yardımcı olursan sevinirim. hdemirtasus@gmail.com

    • @aGGreSSiv
      @aGGreSSiv 4 роки тому

      @@harundemirtas8854 mail attim

    • @aGGreSSiv
      @aGGreSSiv 4 роки тому

      @@harundemirtas8854 bu arada gönderdiğim kod mesajımda belirrttiğim kart için geçerli

  • @riskizoldyck8063
    @riskizoldyck8063 3 роки тому

    Mas, mau nanya.. Kira" bisa akses https ga ya pake sim800l ini?

  • @Aulak1000
    @Aulak1000 3 роки тому

    I get ERROR in response when i use AT+HTTPPATA="CID",1

    • @koma839
      @koma839 3 роки тому

      you should write AT+HTTPPARA="CID",1

  • @fingerprint8479
    @fingerprint8479 4 роки тому

    Hi, I tried to follow your instructions but AT+HTTPINIT always return ERROR. Any suggestions? Thanks

    • @miliohm
      @miliohm  4 роки тому +1

      is AT+SAPBR=1,1 answer OK?

    • @fingerprint8479
      @fingerprint8479 4 роки тому

      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

    • @fingerprint8479
      @fingerprint8479 4 роки тому

      @@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

    • @miliohm
      @miliohm  4 роки тому

      @@fingerprint8479 try AT+SAPBR=2,1 before http init. Did you get the IP address?

    • @fingerprint8479
      @fingerprint8479 4 роки тому

      ​@@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

  • @diyk-h-m2423
    @diyk-h-m2423 4 роки тому +1

    can we use sim 4g ?

    • @miliohm
      @miliohm  4 роки тому +1

      you can use the sim, but you cannot use 4G network. This module can only use GPRS signal

    • @diyk-h-m2423
      @diyk-h-m2423 4 роки тому

      @miliohm yes thank you so much for in formation

  • @kyoteecasey
    @kyoteecasey 3 роки тому

    Hi, Good video! Can you please share your .php scripts and database configuration. Thanks!

  • @gudvin2001
    @gudvin2001 4 роки тому

    how download 300kb or more ?

  • @jumbo999614
    @jumbo999614 11 місяців тому

    Any link to part 2?

    • @miliohm
      @miliohm  11 місяців тому +1

      It's not created yet 😂

    • @jumbo999614
      @jumbo999614 11 місяців тому

      @@miliohm oh, ok, I'll wait. Thank you for replying.

  • @raindzunnurain3588
    @raindzunnurain3588 5 років тому

    thank you very much!!

    • @miliohm
      @miliohm  5 років тому

      you are welcome, don't forget to subscribe :)

  • @ujjalchowdhury9950
    @ujjalchowdhury9950 3 роки тому

    I am getting + HTTPACTION 0 603 0 RESPONSE WHICH MEANS DNS SERVER ERROR

  • @axelmartinez5561
    @axelmartinez5561 4 роки тому

    Good afternon, i can't find the next video , the part 2

  • @wisnueepis3593
    @wisnueepis3593 4 роки тому

    Mas kalo pake http post trus dikasih message body kayak json bisa ga ya

    • @miliohm
      @miliohm  4 роки тому

      Maksudnya request post ke web dengan balasan format json? Bisa

    • @wisnueepis3593
      @wisnueepis3593 4 роки тому

      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

  • @tarunbn
    @tarunbn 4 роки тому

    Can i get your PHP File ?

  • @samuelsouza9079
    @samuelsouza9079 4 роки тому +1

    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.

    • @danielalejandrorobayo4630
      @danielalejandrorobayo4630 3 роки тому

      I'm getting the same error (in my case it works with my website but no miliohm...), how did you fix it?

    • @danielalejandrorobayo4630
      @danielalejandrorobayo4630 3 роки тому

      ohh i got it, it was because of the httpS protocol, solved, thanks anyway

    • @miliohm
      @miliohm  3 роки тому +1

      Congratulations on that

    • @MrMrLolu
      @MrMrLolu 3 роки тому

      @@danielalejandrorobayo4630 hey, how you solved it? I am getting the same error. Thanks!

    • @danielalejandrorobayo4630
      @danielalejandrorobayo4630 3 роки тому +1

      @@MrMrLolu you have to turn on the SSL protocol using AT+HTTPSSL=1

  • @youssefvideotube
    @youssefvideotube 4 роки тому

    WHY THE MUSIC WHY ?

    • @miliohm
      @miliohm  4 роки тому

      Ok, Will do better next time

    • @youssefvideotube
      @youssefvideotube 4 роки тому

      @@miliohm Thank you, you're the best !

    • @_a.z
      @_a.z 3 роки тому

      @@miliohm It's OK!

  • @nlnchary
    @nlnchary 4 роки тому

    :)

  • @cumahobiarduino4724
    @cumahobiarduino4724 3 роки тому

    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?

    • @miliohm
      @miliohm  3 роки тому

      saya belum pernah ngalamin, tapi coba direset aja setelah agak lama itu

    • @cumahobiarduino4724
      @cumahobiarduino4724 3 роки тому

      Sudah saya tambah perintah reset Bang, tapi masih tetap mode standby seperti saat mode sms,

    • @AhmadFirdausIdris_AFNAN
      @AhmadFirdausIdris_AFNAN 3 роки тому

      tambah hardware WDT kalau ada feature itu. saya set 180sec, else reset. selepas reset, sudah ok semula