println() question

if (Serial.available()>0)
  {
    id1=Serial.read();
    id2=Serial.read();
    rsv=Serial.read();

If there is one byte available, it is NOT OK to read three.

      id1, id2, rsv=false;

What do you think this is doing? It isn't, but the only way to fix it is to know what you were thinking. If you were.

    if (id1=='A')
    {
      test1=true;
    }

And, if id1 isn't 'A'?

Simpler would be

test1 = (id1 == 'A');
      int inByte = Serial1.read();
      Serial.println(inByte);

int? Did you SEND ints?