Closed jafrado closed 4 years ago
Hi James (@jafrado), Thank you for the very comprehensive Issue report! I am seeing the same issue on a Uno (ATmega328P) plus a NEO-M8T, using software serial. Can you please tell me if: you installed the library through the library manager (and so are using version 1.7.2); or whether you downloaded a zip from GitHub - and if so can you remember what day you downloaded it on? Many thanks, Paul
@PaulZC - thank you for your response. I am using the latest TOT master library (copied into folder). Is there another released version I should use (either in source or library version)? Thank you!
@PaulZC - thank you for the outstanding work here. Just tested (86e78de46cea8fbac9ad35de3d3f3ffccab1b877) and it works great! Closing this issue.
Hi James (@jafrado), Don't worry - I was just trying to understand if you were using the last release (downloaded through the Arduino Library Manager) or whether you had downloaded the latest code of the library direct from GitHub. I have made several changes to the library over the past few hours (I'm on UK time). I wonder if you could download and test the library again please? I'm hoping all of your problems will vanish before your eyes. No rush - whenever is convenient. If you are still having problems, could you please post more debug messages? Best wishes, Paul
Ah, our messages overlapped! Thanks for letting me know. All the best.
Thanks Paul,
No problem :-) I have some changes to send you later for ECEF and NED. Will post a merge request later this week if that is ok .
Best regards -James
On Thu, Apr 16, 2020 at 10:07 AM Paul notifications@github.com wrote:
Ah, our messages overlapped! Thanks for letting me know. All the best.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sparkfun/SparkFun_Ublox_Arduino_Library/issues/85#issuecomment-614778559, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXSUDBVVTTPGYPKJPB2XVDRM43OTANCNFSM4MJANLUQ .
Subject of the issue
SFE_UBLOX_STATUS_CRC_FAIL errors with direct UART connection from NEO-M8P-2 to Feather 32u4 basic TX/RX (null-modem).
Your workbench
Adafruit Feather 32u4 basic proto with TX/RX connected directly to NEO-M8P-2 https://learn.adafruit.com/adafruit-feather-32u4-basic-proto/pinouts
Steps to reproduce
Easy sample here: https://github.com/jafrado/ubxgps, or using the latest master Sparkfun Ublox Arduino Library, and \examples\Example12_UseUart with the HW Serial Port on Atmega32u4 (Arduino Serial1, Pins 0=RX, 1=TX to NEO Pin RX/TX (Null-Modem). This means comment out the lines
now search and replace mySerial with Serial1.
At the bottom of setup() call myGPS.enableDebugging(Serial);
NOTE: Feather 32u4 uses USB console as Serial and the Pins 0/1 UART as Serial1
Upload to Feather and you will get the below with no debug output:
With debug output, you see the CRC Fail message over and over.
Sample
Tell us how to reproduce this issue. Please post stripped down example code demonstrating your issue. Right here, with full output excerpts and other great snippets from examples provided with the library. Sample here: https://github.com/jafrado/ubxgps
Expected behavior
Tell us what should happen
Actual behavior
It is always failing with the return code SFE_UBLOX_STATUS_CRC_FAIL in line 1160. If you comment out the line, the software works as expected. I understand the code is probably adapted primarily for I2C and the checksum may have some pecularities when used as such. Kindly request the UART and checksum work at the same level of functionality. Commenting out the checksum code seems to work fine after over 36hrs of use in a quite dynamic load testing environment.