6 Replies Latest reply on Feb 22, 2017 11:52 AM by Intel Corporation

    connecting Intel Galileo Gen 2 to internet through GPRS commands

    Sreevardhan

      Hello Sir/Ma'am,

      I am trying to post data on cloud through GPRS. I am using AT commnads for http connection and got stuck in one command i.e., AT+SAPBR, kindly help me out. Is there any  alternative command that I can use instead of AT+SAPBR.

      My code is

       

       

      void setup()

      {

        Serial1.begin(115200);

        Serial.begin(9600);

       

         Serial.println("Config SIM900...");

        delay(2000);

        Serial.println("Done!...");

        //gprsSerial.flush();

        Serial.flush();

       

      //   Serial1.println("AT");

        //delay(2000);

        //ShowSerialData();

      }

       

       

        void ShowSerialData()

      {

      while(Serial1.available()!=0)

      Serial.write(Serial1.read());

      }

       

      void loop()

      {

       

        Serial1.println("AT");

        delay(2000);

        ShowSerialData();

       

       

      Serial1.println("AT+CGATT?");

        delay(2000);

        ShowSerialData();

       

        //bearer settings

      Serial1.println("AT+SAPBR=3,1,\"contype\",\"GPRS\"");

        delay(2000);

        ShowSerialData();

       

      Serial1.println("AT+SAPBR=3,1,\"APN\",\"airtelgprs.com\"");

        delay(100);

        ShowSerialData();

       

       

      //bearer settings

      Serial1.println("AT+SAPBR=1,1");

        delay(100);

        ShowSerialData();

      }

       

       

      The Response of above commands is as follows:

       

       

      Config SIM900...

       

      Done!...

      AT

      OK

      AT+CGATT?

      +CGATT: 1

      OK

      AT+SAPBR=3,1,"contype","GPRS"

      ERROR

      AT

      OK

      AT+CGATT?

      +CGATT: 1

      OK

      AT+SAPBR=3,1,"contype","GPRS"

      ERROR