Hallo zusammen,
für einen kleinen GPS Logger habe ich ein kleines GPS Modul mit einem Nano verbunden.
Das GPS Modul sendet auch fleißig Daten. Leider reagiert das Modul aber auf keine Befehle.
Das Modul sowie der Nano sollen auf TTL Level arbeiten, RX , TX sind direkt an PIN 8,9 angeschlossen.
Hat jemand ein Idee was ich übersehen habe könnte?
Gruß Marcel
#include <AltSoftSerial.h>
AltSoftSerial gps;
void setup() {
// Open serial communications and wait for port to open:
pinMode(10, OUTPUT);
Serial.begin(9600);
delay(1000);
Serial.println("Serial Port is UP");
//Being serial communication witj Arduino and GPS Module //Important rate must be 9600
gps.begin(9600);
delay(1000);
Serial.println("Send PMTK");
gps.print( F("$PMTK314,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29\r\n") );
delay(1000);
Serial.println("Send PMTK again");
gps.println( F("$PMTK314,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29") );
delay(1000);
}
void loop() {
byte byDataByte;
if (gps.available())
{
byDataByte = gps.read();
Serial.write(byDataByte);
}
}
testserial.ino (726 Bytes)
output.txt (458 Bytes)