-
Notifications
You must be signed in to change notification settings - Fork 511
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
[ublox] Do not run AT+COPS=0 when performing warm bootup if already registering/registered #2139
Conversation
// If the set command with <mode>=0 is issued, a further set | ||
// command with <mode>=0 is managed as a user reselection | ||
r = CHECK_PARSER(parser_.execCommand(5 * 60 * 1000, "AT+COPS=0,2")); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One quick thought on this: As written in the attached AT manual, this will trigger a re-selection which we want to avoid for faster bootup times (which is all good). If we have to deal with roaming locations though, is it worth having an AT+COPS=0
setting to in fact trigger a re-selection because otherwise what if it doesn't attach to network as expected. Am I making sense? Should we have a check that tells when to set AT+COPS=0
and when not to set it? I know we have 10 min timeout, but even after 10min when we hit this line, looks like we won't do another AT+COPS=0
in case which we may not register on a given network with edge case roaming scenarios and such?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But after 10 mins and a modem reset the modem on its own will start a new registration process (auto-COPS), right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm.. good point. That's also right. It should. (Reset is supposed to be more powerful than anything else.)
Please note the caveats that were discussed related to errors like
|
76bdbd7
to
0c38666
Compare
Problem
Despite being registered, an
AT+COPS=0
call under some conditions may take substantial amount of time, which will prolong the bootup times.Solution
AT+COPS=0
conditionally. This is only implemented for uBlox-based devices, as Quectel seems to behave correctly and also we cannot reliably tell whether it's attempting to perform registration or not (it may report+COPS: 0
even if it's not attempting to find an operator).AT+CGEREP
) which are useful in debugging connectivity issuesSteps to Test
AT+COPS=0
should not be executedAT+COPS=0
despite being already registeredExample App
N/A
References
N/A
Completeness