Hi,
I have written a small sketch to allow the ttl gps to pass through the arduino:
#define GPS_BAUD 9600 // GP-735 default baud rate
#include <TinyGPS++.h>
#include <SoftwareSerial.h>
TinyGPSPlus gps;
#define RX_PIN 4 // GPS TX
#define TX_PIN 5 // GPS RX
#define LED_PIN 7 // GPS Fix LED
SoftwareSerial ss(RX_PIN,TX_PIN);
void setup() {
Serial.begin(GPS_BAUD);
ss.begin(GPS_BAUD);
pinMode(LED_PIN,OUTPUT); // on board pin
}
void loop() {
if(gps.location.isValid()){
digitalWrite(LED_PIN,HIGH);
}else{
digitalWrite(LED_PIN,LOW);
}
while(Serial.available()>0){
ss.write(Serial.read());
}
while(ss.available()>0){
byte g= ss.read();
Serial.write(g);
gps.encode(g);
}
}
Once uploaded the arduino ide must be closed to allow the u-center-GNSS software access to the arduino comport.
With this I can use all the u-center fuctions.
Without battery backup, it appears any uploaded gps settings are lost after power removal. I note that backup battery connections are present on the mini gps shield.
I used this method to upload settings in a sketch:
const byte twoHz[]= {
0xB5,0x62,0x06,0x08,0x06,0x00, 0xF4,0x01, 0x01,0x00,0x01,0x00, 0x0B,0x77,
0xB5,0x62,0x06,0x08,0x00,0x00,0x0E,0x30,
0xB5, 0x62, 0x06, 0x09, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF,0x00, 0x00, 0x00,0x00,
0x00, 0x00, 0x03, 0x1D, 0xAB
};
// the last 2 byte lines of twoHz save the configuration ( if required).
#include <SoftwareSerial.h>
#define RX_PIN 4 // GPS TX
#define TX_PIN 5 // GPS RX
#define GPS_BAUD 9600 // GP-735 default baud rate
SoftwareSerial ss(RX_PIN,TX_PIN);
ss.begin(GPS_BAUD); // Begin serial communication with GPS
for (byte i=0; i <sizeof(twoHz); i++) {
ss.write(twoHz[i]);
}
Others may find this helpful. (Particulary in the hookup guide)
Feel free to use it as you want.
David