Hi , Im playing ardoun with a ubloc neo7 gps module , this can be configured with an ftdi programmer with the u-center software. If i basicly just echo serial1 to serial and serial to serial1 i can view all the information on the ucenter software how ever the configuration settings wont go the other way maybe because the configuration settings are in hex ?
Does any one have some tips on how to go about this. I ralise there is easier ways like using the ftdi programmer but I know there must be a simple way to do this with serial and serial1.
Im using a teensy 3.1 it is all wired up on a board i have a ftdi programmer and could do it that way but im looking for a way to do it though some sort of serial echo from serial0 ( usb ) and serial1 ( ublox) .
i wont have to rejoin the wires for the ftdi programmer but mostly because im sure there is a way that is resonably simple and id like to know it . data can go from ublox in serial1 and out serial0 to my computer and display perfectly in the u center software . im asuming i just need to do something a little different to get it to go the other way too.
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()) {
Serial.write(Serial1.read());
}
// read from port 0, send to port 1:
if (Serial.available()) {
Serial1.write(Serial.read());
}
}