-
Thank you for this great set of tools. It's helping me work with an ArduSimple simpleRTK2B board on Mac OS X. I'm curious if it is possible to read *.txt configuration files from https://www.ardusimple.com/configuration-files/. In particular, the v1.13 "RAW data (PPK) over UART1 & USB at 1Hz" configuration file. From what I can see, the PyGPIClient UI only allows loading from binary files, but I could be wrong and not looking in the right spots. I've also searched around for tools to convert the *.txt to a *.ubx, but haven't been able to find anything yet. Thanks again for your tools - so helpful! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hi @wdwalker , So, as you can probably see, each line of the *.txt configuration file provided by ArduSimple contains the UBX message class/id as a string, followed by the payload as space-delimited hexadecimals, e.g.
You can convert this format into a binary *.ubx file fairly easily using helper functions provided by the pyubx2 library. Unfortunately, there is an added complication. The *.txt file contains MON-VER and CFG-VALGET messages. These are GET messages i.e. they are sent from the receiver in response to configuration polls. In order to actually configure a receiver, you'd need to discard the MON-VER messages (these are for information only) and convert the CFG-VALGET messages into CFG-VALSET messages before sending these to the u-blox receiver (I'm guessing u-center does this internally). The code example below illustrates how to convert *.txt files to *.ubx files but it doesn't currently do the necessary conversion from CFG-VALGET to CFG-VALSET. I'd need to look into this a little further - please leave it with me for now. Sample code:
Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Hi @wdwalker FYI I've uploaded a modified version of the code snippet above which now does the full conversion to a 'SET' configuration file: https://github.com/semuconsulting/PyGPSClient/blob/RC-1.3.25/examples/txt2ubx.py This utility takes a *.txt configuration file as an input and produces two *.ubx output files:
You can also parse the SET file using PyGPSClient but remember to set the input mode to 'SET' rather than the default 'GET' - the setting for this is hidden in the drop-down serial configuration panel. I've tested this using my own F9P and it all seems to work OK. What I'll probably do in due course is incorporate this conversion functionality into PyGPSClient's existing Load/Save/Record facility, automatically detecting if the config file is in *.txt or *.ubx format. |
Beta Was this translation helpful? Give feedback.
-
Feature now available in v1.3.25 |
Beta Was this translation helpful? Give feedback.
Hi @wdwalker ,
So, as you can probably see, each line of the *.txt configuration file provided by ArduSimple contains the UBX message class/id as a string, followed by the payload as space-delimited hexadecimals, e.g.
CFG-VALGET - 06 8B 44 01 01 00 etc.
You can convert this format into a binary *.ubx file fairly easily using helper functions provided by the pyubx2 library.
Unfortunately, there is an added complication. The *.txt file contains MON-VER and CFG-VALGET messages. These are GET messages i.e. they are sent from the receiver in response to configuration polls. In order to actually configure a receiver, you'd need to discard the MON-VER messages (these are for information only) an…