bigboystoys13
Published

DIYmall GPRS/GPS SIM5320E 3G Module - AT Commands

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

BeginnerProtip11,396
DIYmall GPRS/GPS SIM5320E 3G Module - AT Commands

Things used in this project

Hardware components

DIYmall UNO Compatible Board
×1
DIYmall GPRS/GPS SIM5320E 3G Module
×1

Story

Read more

Code

UNO Code

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

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

  mySerial.begin(115200); // Default for the board
  mySerial.println("AT+IPR=57600");  // Set baud to 57600
  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();
  }
  mySerial.println("AT");
}

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 • 33 followers

Comments