Hi, I'm using RTK GPS module, the uart port of the module is connected to serial1 of arduino mega and bellw is what I'm using. In this case if i use serial monitor with both NL & CR, It's possible for me to send and revive data from my module.
My aim is to use serial write to send specific cmd at specific time and serial read the received data and display in LCD.
In this process i was testing to send cmd to the module by option "on end line" from serial monitor but there is know response.
void setup() {
Serial.begin(115200);
Serial1.begin(115200);
}
void loop() {
if(Serial1.available())
{
Serial.print((char)Serial1.read());
}
if(Serial.available())
{
Serial1.write(Serial.read());
}
}
Thank You in Advance for your response