Skip to content

Trying to set configuration from configuration file #145

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

You must be logged in to vote

I can't help you with firmware updates, but here's a simple pyubx2 code snippet you could run at the Ubuntu command line which uploads the contents of a u-center *.txt configuration file to a u-blox receiver at a designated serial port:

python3 load_txt_config.py port="/dev/ttyACM0" baud=38400 infile="ucenter.txt"
"""
load_txt_config.py

Loads contents of u-center *.txt configuration file into u-blox
receiver via designed serial port.

Usage:

   python3 load_txt_config.py port="/dev/ttyACM0" baud=38400 infile="ucenter.txt"

or, for dry run without updating receiver:

   python3 load_txt_config.py infile="ucenter.txt" dryrun=1

"""

from sys import argv

from serial import Serial

from py…

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@MelvinWarnet
Comment options

@semuadmin
Comment options

@MelvinWarnet
Comment options

Comment options

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

Comment options

You must be logged in to vote
3 replies
@MelvinWarnet
Comment options

@semuadmin
Comment options

@MelvinWarnet
Comment options

Answer selected by MelvinWarnet
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
Converted from issue

This discussion was converted from issue #144 on April 23, 2024 08:40.