AT Response on Serial (RX0,TX0)

Hello. I’m here again.Another Newbie question. I manage to send mms with the GSM shield connected to Serial1(RX1,TX1). Now i want to connect the GSM shield to Serial(RX0,TX0) since I’m going to use Serial1 for my serial camera.

Here is the code that I used in Serial1:

#include <SoftwareSerial.h>
void setup() {

Serial.begin(19200);

Serial1.begin(19200);
delay(1000);
Serial.println(“Start”);
sendTextMessage();
}
void loop() {
}
void sendTextMessage() {
Serial1.println(“AT”);
delay(100);
readSerial();
delay(100);

Serial1.println(“AT+CSQ”);
delay(100);
readSerial();
delay(100);
}

void readSerial()
{
while(Serial1.available()!=0)
Serial.write(Serial1.read());
delay(100);
}

I got this on my serial monitor and It works fine.

Start
AT

OK
AT+CSQ

+CSQ: 17,4

OK

When I connected the gsm shield to Serial. I used this code:

#include <SoftwareSerial.h> 
void setup() {
  
Serial.begin(19200);

//Serial.begin(19200);
delay(1000);
Serial.println("Start");
sendTextMessage();
}
void loop() {
}
void sendTextMessage() {
Serial.println("AT");
delay(100);
readSerial();
delay(100);

Serial.println("AT+CSQ");
delay(100);
readSerial();
delay(100);
}

void readSerial()
{
 while(Serial.available()!=0)
   Serial.write(Serial.read());
   delay(100);
}

The output in my serial monitor is this:

Start
AT
Start
AT

OK
AT+CSQ
Start
AT

OK

OK
AT+CSQ

+CSQ: 19,0

OK

What is wrong.I’m confused. =( Please help

Why are you including SoftwareSerial.h?

If you intend to use Serial to talk to the GSM shield, you can forget about using it to talk to the Serial Monitor application. So, anything that appears there is useless information.

PaulS:
Why are you including SoftwareSerial.h?

If you intend to use Serial to talk to the GSM shield, you can forget about using it to talk to the Serial Monitor application. So, anything that appears there is useless information.

Sorry for including SoftwareSerial.h.

So,there is no other way to see the response when using the Serial?

So,there is no other way to see the response when using the Serial?

Use an LCD.
Use a FTDI cable and SoftwareSerial.
Get a Mega with 4 hardware serial ports and don't use Serial for the GSM shield or camera.