So hab es jetzt mit diesem code hier versucht:
// tested on an Arduino Mega 2560 using pins 11 for RXd & 12 for TXd
// Connect the GPS Power pin to 3.3V
// Connect the GPS Ground pin to ground
// Connect the GPS VBAT pin to 3.3V if no battery is used
// Connect the GPS TX (transmit) pin to Digital 11
// Connect the GPS RX (receive) pin to Digital 12
// For 3.3V only modules such as the UP501, connect a 10K
// resistor between digital 12 and GPS RX and a 10K resistor
// from GPS RX to ground. (Must divide voltage into module as it only takes 3.3V)#include <SoftwareSerial.h>;
#define PMTK_SET_NMEA_UPDATE_1HZ "$PMTK220,10001F"
#define PMTK_SET_NMEA_UPDATE_5HZ "$PMTK220,2002C"
#define PMTK_SET_NMEA_UPDATE_10HZ "$PMTK220,1002F"
#define PMTK_SET_NMEA_OUTPUT_RMCONLY "$PMTK314,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,029"
#define PMTK_SET_NMEA_OUTPUT_ALLDATA "$PMTK314,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0*28"int rxPin = 2;
int txPin = 3;SoftwareSerial mySerial = SoftwareSerial(rxPin, txPin);
void setup()
{
Serial.begin(57600);
Serial.println("UP501 NMEA test!");pinMode(rxPin, INPUT);
pinMode(txPin, OUTPUT);mySerial.begin(9600);
// uncomment this line to turn on only the "minimum recommended" data for high update rates!
//mySerial.println(PMTK_SET_NMEA_OUTPUT_RMCONLY);// uncomment this line to turn on all the available data - for 9600 baud you'll want 1 Hz rate
mySerial.println(PMTK_SET_NMEA_OUTPUT_ALLDATA);// Set the update rate
// 1 Hz update rate
mySerial.println(PMTK_SET_NMEA_UPDATE_1HZ);// 5 Hz update rate- for 9600 baud you'll have to set the output to RMC only (see above)
//mySerial.println(PMTK_SET_NMEA_UPDATE_5HZ);//10 Hz update rate - for 9600 baud you'll have to set the output to RMC only (see above)
//mySerial.println(PMTK_SET_NMEA_UPDATE_10HZ);}
void loop()
{if (mySerial.available())
Serial.print((char)mySerial.read());if (Serial.available())
mySerial.print((char)Serial.read());
}
und bekomme bei einer boundrate von 57600 nur "UP501 NMEA test!" mehr nicht