Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

Quectel M95 GSM/GPRS modem

$
0
0

Hi

        i want to access UART port 6 or 7 to connect my  Quectel M95 GSM/GPRS modem by Energia. but my code didn't  work for AT commands, Plz guide me how can i interface with these UART ports.  my code is given below.

void setup() {
  // initialize both serial ports:
  Serial.begin(9600);
  Serial6.begin(9600);
}

void loop() {
      Serial6.println("AT"); delay(1000);
      if (Serial6.available()) {
    int inByte = Serial6.read();
    
    Serial.println(inByte);
  }
      Serial6.println("ATE1"); delay(1000);

  // read from port 6, send to port 0:
  if (Serial6.available()) {
    int inByte = Serial6.read();
    Serial.println(inByte);
  }

Viewing all articles
Browse latest Browse all 2077

Trending Articles