-
Notifications
You must be signed in to change notification settings - Fork 964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for ATGM336H GPS modules #3610
Support for ATGM336H GPS modules #3610
Conversation
This looks like a good step forward in adding some of the popular CN GNSS receivers that are available on Alli/Amazon/Temu etc. |
@GPSFan, given the comments above this could be updated to more broadly identify
What are your thoughts? |
The code in GPS.cpp mis-represents the L76K as an MTK chip, the real MTK variant from Quectel is the L76B, which is now supported and recognized. Meshtastic "discovers" which type GPS chip it is running with in two ways, First is via the variant.h file where may be a #define GPS_XXXX statement, and the second is in GPS.cpp where an attempt is made to query the chip itself at various baud rates. |
Thanks @GPSFan - i will leave the current proposed PR as is for now and it can always be revised at a later stage with a broader set of improvements. |
🤖 Pull request artifactsempty string
|
Support for ATGM336H GPS modules (GPS module using an AT6558 SOC).
An ATGM336H module will happily current work with the current
GNSS_MODEL_MTK
code, however I found using CASIC commands the module gives a better overall experience.GPS::CASChecksum
to calculate CASIC checksums for message payloadsGPS::makeCASPacket
to construct CASIC packets using the sameUBXscratch
buffer that already existsGPS::getACKCAS
to parse CASIC MSG-ACK/NACK responsesRedirectablePrint::hexDump
for better debugging display of constructed messagesWithout
GPS_DEBUG
enabled:With
GPS_DEBUG
enabled:References: