This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

multiple serial communication in TM4C1294.

Other Parts Discussed in Thread: ENERGIA

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);
  }