bigboystoys13
Published

DIYmall GPRS/GPS SIM908 Module - AT Commands

Directions on how to setup your DIYmall GPRS/GPS SIM908 Module so that you can issue AT commands from your computer.

BeginnerProtip10,307
DIYmall GPRS/GPS SIM908 Module - AT Commands

Things used in this project

Story

Read more

Code

Arduino UNO Code

C/C++
Use for option 2
#include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3); // RX, TX

void setup()
{
  // Open serial communications to computer
  Serial.begin(57600);

  mySerial.begin(115200); // Default for the board
  mySerial.println("AT+IPR=0");  // Set baud to auto connect
  delay(100); // Let the command run
  mySerial.begin(57600); // Reconnect at lower baud, 115200 had issues with SoftwareSerial
  
  //Clear out any waiting serial data
  while (mySerial.available())
  {
    mySerial.read();
  }  
}

void loop()
{
  /*
   * This loop just takes whatever comes in from the console and sends it to the board
   */
  if (Serial.available())
  {
    mySerial.write(Serial.read());
  }
  if (mySerial.available())
  {
    Serial.write(mySerial.read());
  }
}

Credits

bigboystoys13

bigboystoys13

10 projects • 35 followers

Comments