Project support

Hi for my final year project I have to make a GPS tracker device and Im using 2 boards Arduino MKRFOX1200 and Adafruit Featherwing GPS board. For this I have establish a connection using Rx and Tx between the two boards. For this I used the following code that was provided on the Adafruit Tutorial page:
void setup() {
Serial.println("GPS echo test");
Serial.begin(9600);
Serial1.begin(9600); // default NMEA GPS baud
}

void loop() {
if (Serial.available()) {
char c = Serial.read();
Serial1.write(c);
}
if (Serial1.available()) {
char c = Serial1.read();
Serial.write(c);
}
}

And it said this was supposed to print a few numbers. In my serial montior It was printing nothing. It was probably because it reads nothing. But i have the rx of Arduino connected to Tx of Feather board and vica versa. Would anyone know if theres anything else to be connected or anythin else to be added on to the code?
Regards

You did connect the grounds together, right?

Paul

gps_tracker:
Hi for my final year project I have to make a GPS tracker device and Im using 2 boards Arduino MKRFOX1200 and Adafruit Featherwing GPS board. For this I have establish a connection using Rx and Tx between the two boards. For this I used the following code that was provided on the Adafruit Tutorial page:
void setup() {
Serial.println("GPS echo test");
Serial.begin(9600);
Serial1.begin(9600); // default NMEA GPS baud
}

void loop() {
if (Serial.available()) {
char c = Serial.read();
Serial1.write(c); ? wrong output device ?
}

no need to guess if Serial buffer is empty

esle
{
print no data received
}

if (Serial1.available()) {
char c = Serial1.read();
Serial.write(c);
}
no need to guess if Serial1 buffer is empty

esle
{
print no data received
}

// may need to stall here to avoid too many "no data " message if there is really no valid connection

}

And it said this was supposed to print a few numbers. In my serial montior It was printing nothing. It was probably because it reads nothing. But i have the rx of Arduino connected to Tx of Feather board and vica versa. Would anyone know if theres anything else to be connected or anythin else to be added on to the code?
Regards

That can't possible compile with "else" spelled as 'ESLE".

Paul

Thank you. I will take all these points and try work with them and see what happens. thanks.

as a note, you really should read how to use this forum.
#1 the subject line gets few looks. why would anyone who is technically inclined, want to to have to try to figure out what you are doing when you cannot state your question in simple way ?

if you think that there are maybe 100 broad topics in arduinos, sensors types, wifi, long distance, high traffic, data logging, electronical circuits, power circurts, ... the list goes on and on.

you want to attract the eyes of someone who has experiance and knowledge.

a subject line of RX TX problem would get a higher hit rate from those who know that area well.

second, if every noob uses noob question or project support, the whole database would be worthless for searching for a subject line.

as for your description, that was much better than many, many first posts. simple enough to understand, and complete enough to show what you are doing. to that bit, well done.

welcome to the forum and it looks like you got some bits to work, you are well on your way to a successful project.