Skip to content

How to turn off / stop / set to stand by the GNSS #154

Answered by semuadmin
JosanV asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @JosanV,

You can use the UBX CFG-RST and/or CFG-PWR commands to stop or start the GNSS module in your device, e.g.

from pyubx2 import UBXMessage, SET

# power-down GNSS using CFG-PWR
msg = UBXMessage("CFG", "CFG-PWR", SET, state=0x53544F50)
print(msg)

# restart GNSS using CFG-RST
msg = UBXMessage("CFG", "CFG-RST", SET, resetMode=0x09)
print(msg)

Refer to your device's Interface Specification for further details and the appropriate values for the state and resetMode attributes for each of the various reset or power modes e.g.

You could add these commands as User Presets in PyGPSClient if you envisage using them frequently.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JosanV
Comment options

Answer selected by JosanV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants