-
Hi all, I am using the pyubx2 library to communicate with an EVK-M9DR device and I would like to know if it is possible to put the GNSS in standby mode or stop it directly from the library. Of course, I would also be interested in knowing how to turn it back on. I've been going through the documentation and available configuration options, such as power management (PM) keys and other hardware settings, but I'm not sure what would be the right way to do it. From u-center it can be done from UBX - CFG - PWR or also from UBX - CFG - RST, but I can't find the command in: If anyone has had experience with this or knows how this can be accomplished, could you share any examples or provide guidance on how to configure the device to go into standby mode or stop GNSS? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 ![]() You could add these commands as User Presets in PyGPSClient if you envisage using them frequently. |
Beta Was this translation helpful? Give feedback.
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.
Refer to your device's Interface Specification for further details and the appropriate values for the
state
andresetMode
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.