[aprssig] Arduino

Andrew Rich vk4tec at tech-software.net
Tue Jun 14 21:38:57 CDT 2016


//
// VK4TEC APRS GPS ARDUINO
//
#include <Adafruit_GPS.h>
#include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3);
#define PMTK_SET_NMEA_UPDATE_1HZ "$PMTK220,1000*1F"
#define PMTK_SET_NMEA_UPDATE_5HZ "$PMTK220,200*2C"
#define PMTK_SET_NMEA_UPDATE_10HZ "$PMTK220,100*2F"
#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,0*29"
#define PMTK_SET_NMEA_OUTPUT_RMCGGA "$PMTK314,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*28"
#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"
#define PMTK_SET_NMEA_OUTPUT_OFF "$PMTK314,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*28"
#define PMTK_Q_RELEASE "$PMTK605*31"
void setup() {
while (!Serial); // wait for leo to be ready
Serial.begin(4800); // this baud rate doesn't actually matter!
mySerial.begin(9600);
delay(2000);
Serial.println("VK4TEC APRS GPS TX ARDUINO");
//mySerial.println(PMTK_Q_RELEASE);
mySerial.println(PMTK_SET_NMEA_OUTPUT_RMCONLY);
//mySerial.println(PMTK_SET_NMEA_OUTPUT_ALLDATA);
mySerial.println(PMTK_SET_NMEA_UPDATE_1HZ);
}
// Serial.println("MVK4TEC");
// Serial.println("PWIDE1-1");

void loop() {
if (Serial.available()) {
char c = Serial.read();
Serial.write(c);
mySerial.write(c);
}
if (mySerial.available()) {
char c = mySerial.read();
Serial.write(c);
}
}

-----------------------------
Sent from my iPhone
Andrew Rich
vk4tec at tech-software.net
www.tech-software.net
0419 738 223

> On 15 Jun 2016, at 12:25, Andrew Rich via aprssig <aprssig at tapr.org> wrote:
> 
> Hello 
> 
> I have the Arduino extracting GPRMC
> 
> I need to now look for a "*" and then get ready to send a packet
> 
> Does APRS need the two digit checksum ?
> 
> Andrew
> 
> -----------------------------
> Sent from my iPhone
> Andrew Rich
> vk4tec at tech-software.net
> www.tech-software.net
> 0419 738 223
> _______________________________________________
> aprssig mailing list
> aprssig at tapr.org
> http://www.tapr.org/mailman/listinfo/aprssig



More information about the aprssig mailing list