ACK Messages #170
Replies: 1 comment 4 replies
-
In short, your code is far too simplistic. The UBX protocol does not implement synchronous ACK responses so you can't assume that commands and their responses will occur in strict linear sequence. In order to reliably process commands (or polls) and their responses concurrently, your code needs to implement some kind of Python concurrency model, which in practical terms means either As stated in the README, there are plenty of examples of suitable code in the pyubx2 \examples folder e.g. look here or here. Alternatively, you could look into the pygnssutils library, which supports a wide variety of concurrent command line operations with UBX devices. Also bear in mind that there are various circumstances in which a UBX device will fail to send ACK responses (at least in a timely manner) e.g. if the TX buffer is full ( Refer to the F9P Integration and Interface Manuals for further details. If you have general queries on the UBX protocol, please refer to the u-blox support forum in the first instance. |
Beta Was this translation helpful? Give feedback.
-
With reference to #169 (no need to re-open the issue), I have done some tests and in general I can say that everything works (sort of). The main thing that I have noticed, it's that sometimes I don't get any ACK message after
config_set
. The piece of code that I wrote to do this operation is this one:What I am observing is that every time I am looking at the
parsed_data
then no ACK messages appear. The sensor seems to be configured correctly (I can see the corrected data out).Beta Was this translation helpful? Give feedback.
All reactions