Hey there. I have a little problem with my current communication project. I have a Dragino LoRa/GPS shield I got from RobotShop. The LoRa communication seems to be working fine. Will need to test more with some data. I am trying to get the GPS to work to send that data. The Dragino GitHub code wasn't much help and neither were the examples from TinyGPS, TinyGPS++ and Adafruit GPS libraries. Eventual goal of this project is to have GPS data live sent to PC for storage on PC using LoRa and Store on SD card connected to the Arduino the Shield is connected to as backup.
I am using an Arduino Mega with this shield. The Wiki Dragino provides for this shield has all the examples using the Uno. So that might be an issue with connections.
Currently I can receive NMEA GPS output displaying on the serial monitor IFF I use the blank example code, at BAUD rate 9600, and with the RX/TX pins from the board connected to D0/1 pins as explained in the Adafruit Ultimate GPS Guide.
Because of the goal of the project I need to integrate the code that works for the GPS data logging with the LoRa code which I will try to figure out later. So I have tried using the HardwareSerial example codes provided by Adafruit and connected RX/TX to the Serial1 19/18 on the Mega. This prints everything except for the NMEA that I want.
I have tried reading the libraries to see if I can change anything and I do not think there is anything there to change. Only thing is to work with the code and make sure connections are proper. So any guidance from any of you would be appreciated. If you need more information, please tell me what I need to provide to get this fixed properly.
GPS_HardwareSerial_Parsing.ino (4.26 KB)
blank.pde (310 Bytes)
GPS_HardwareSerial_LOCUS_Status.ino (3.48 KB)
rf95_payload.ino (1.8 KB)
rf95_base.ino (1.72 KB)