Closed johnboiles closed 8 years ago
Which GPS module are you using? I have a few here, but I believe they're all 4800 baud. If I'm ever going to investigate and fix this, first I need to get the right hardware setup to reproduce the problem.
I'm using a 5V uBlox-6 GPS from SparkFun I had left over from a past project. Switched the GPS to Serial3 and it's been working great for the past day so unlikely to be an issue with the GPS.
BTW, really love that the Teensy 3.1 pins are 5V tolerant!
I ordered one of those GPS modules from Sparkfun.
Awesome, look forward to hearing if you hit the same thing.
On Mon, Nov 3, 2014 at 8:40 AM, Paul Stoffregen notifications@github.com wrote:
I ordered one of those GPS modules from Sparkfun.
— Reply to this email directly or view it on GitHub https://github.com/PaulStoffregen/AltSoftSerial/issues/10#issuecomment-61506451 .
I've fixed several subtle bugs and added support for slower baud rates.
Please give the latest code a try and let me know if it resolves this issue for you?
I'm pretty sure the recent fixes solve this problem, so I'm closing this issue.
If there's still a problem, please open a new issue. Remember to always post code & hardware details necessary to reproduce the problem.
@PaulStoffregen sounds good. I don't have the same project put together anymore (or rather, I rev'd the pcb to use Serial3). Not sure if I'll have need of 9600 baud with AltSoftSerial again :) Thanks for all your work on Teensy
Running a super simple sketch that receives from the AltSoftSerial and outputs over Serial on Teensy3.1, I consistently get garbage data after 30-45s of use. Using AltSoftSerial 1.2 that came with the latest version of Teensyduino. Building the sketch in the Arduino IDE. Here's the sketch:
Everything looks fine for anywhere from 15s to 1m 30s, then all the sudden I start to get garbage data (this line starts as valid NMEA data then explodes into garbage).
Rebooting the device by reprogramming it or hitting reboot in the Teensy UI solves the problem temporarily, so it's definitely not an issue with the GPS.