Configure GPRS module

0

I'm developing a project that aims to get the location of the GPS and send via GPRS to the server. But I want to know how to configure the APN so that it can be accepted chip from any operator in the GPRS module?

 while ( start_GPS() == 0);

while (sendATcommand("AT+CREG?", "+CREG: 0,1", 2000) == 0);

// sets APN , user name and password
sendATcommand("AT+SAPBR=3,1,\"Contype\",\"GPRS\"", "OK", 2000);
sendATcommand("AT+SAPBR=3,1,\"APN\",\"*******\"", "OK", 2000);
sendATcommand("AT+SAPBR=3,1,\"USER\",\"*******\"", "OK", 2000);
sendATcommand("AT+SAPBR=3,1,\"PWD\",\"*******\"", "OK", 2000);

// gets the GPRS bearer
while (sendATcommand("AT+SAPBR=1,1", "OK", 20000) == 0)
{
    delay(5000);
}

delay(1000);
while(Serial.available() != 0)
{
  Serial.read();  
}
    
asked by anonymous 18.06.2016 / 04:02

1 answer

1

One way to do this is to identify the exact model of your GPS module and google to find the pdf datasheet of it. The datasheet is a technical manual that contains all the specifications, usage examples and in this case a list of AT commands available. If you want a more specific answer, also add the model of your GPS module in the question, I hope I have helped.

    
03.10.2016 / 19:59