Configure GPRS module

Asked

Viewed 100 times

0

I am developing a project that aims to take the location of the GPS and send via GPRS to the server. However I want to know how to configure the APN so that it can be accepted chip of any carrier 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();  
}

1 answer

1


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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.