Skip to content
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

L76K GPS locking up #210

Open
Wellco opened this issue Dec 1, 2024 · 3 comments
Open

L76K GPS locking up #210

Wellco opened this issue Dec 1, 2024 · 3 comments

Comments

@Wellco
Copy link

Wellco commented Dec 1, 2024

I have a T-Beam Supreme version 3.

I am writing an application to create an autonomous GPS data logger that will run unattended in my vehicle. testing so far has been good apart from one issue where the GPS appears to lock up when recording. If go out with the T-Beam it records for around 20 mins, then it hangs for 10 mins before it recovers; and it more-or-less repeats this behaviour for the remainder of my travels. The satellite count is good, as is HDOP (0.9 - 0.8 much or the time). I even tried the device walking and the same happens. I'm on open countryside.

Here's a code snippet if it helps..

// L76K-specific configuration commands
const char* gpsCommands[] = {
    "$PMTK251,115200*1F",     // Set baud rate to 115200
    "$PMTK314,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*28",  // Enable RMC & GGA
    "$PMTK220,200*2C",        // Set update rate to 5Hz (200ms)
    "$PMTK397,0*23",          // Disable nav speed threshold
    "$PMTK386,0*23",          // Disable position pinning
    "$PMTK447,1*37",          // Enable EASY function
    "$PMTK225,0*2B",          // Disable periodic mode
    "$PMTK869,1,1*35"         // Enable EASY function
    "$PCAS04,7*33"            // Set constellation mode to GPS + BeiDou + GLONASS

Is anything strange here?

I'm struggling to find documentation for the L76K, so much of this is cobbled together from other code examples I could find.

I am writing a position in my GPX file every second. Do you thing the is overwhelming the T-Beam?

Many thanks

@lewisxhe
Copy link
Contributor

lewisxhe commented Dec 2, 2024

"$PMTK? L76K is a CASIC proprietary protocol, PMTK is a MediaTek proprietary protocol, so your PMTK fields are invalid. I uploaded the correct L76K document, please check it here

@Wellco
Copy link
Author

Wellco commented Dec 2, 2024

Many thanks for the documentation, is there a version available in English? It's interesting that you say the PMTK fields are invalid, since at least the one that produces the NMEA sentences does actually work. However I will convert my code to PCAS, but would really appreciate an version English of the documentation if you have one..

@lewisxhe
Copy link
Contributor

lewisxhe commented Dec 2, 2024

There is no L76K on the English website, it can only be found on the Chinese website, so I don’t have an English version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants