Hello!
i'm trying to read gps(global sat et-332) tx output using arduino mega 2560
i've connected gps tx to arduino rx1
gps configured to work in nmea mode, if i connect it to pc - i get perfect nmea output
but when i when i run this code on arduino
void setup() {
// initialize both serial ports:
Serial.begin(9600);
Serial1.begin(9600);
}
void loop() {
// read from port 1, send to port 0:
if (Serial1.available()) {
char inByte = Serial1.read();
Serial.write(inByte);
}
}
i get this
é9óæÌ¦&¦f³¦&æssssóæóææssS9ófóæS9sóæææfM=æÌ¦æ&f³¦&æS¦&æÌÓ:>6NÆN>2"26F:>2NêN:N>2N2F&N6>FNÊN:.F*NÊNN>>>>V*ÊÖùé9óæÌ¦æ¦Ì³¦&æS¦&æÌÓ>NÆN>2"26F:>"NêN:N>2N2F&N6>FNÊN:.F*NÊNN>>>>V*:ÊÖ
instead of NMEA
none of googled gps reading solutions are worked, i'm stuck
