Skip to content
Discussion options

You must be logged in to vote

Hi @duemchen

If only Python socket programming was as simple as that!

Your simple socket client assumes that the incoming GNSS data can be parsed ("decoded") using the decode() method, but that will only work in very limited circumstances:

  1. decode only works for binary-encoded ascii text i.e. NMEA data sent in binary format (it wouldn't work for UBX or RTCM data, for example). As I mentioned earlier, if you use any other format, you need to substitute decode for a method which can parse that format, and that is non-trivial.
  2. your client assumes that individual messages will always be less than 1024 bytes and that the message will always start at byte 0 - that may not necessarily be the case.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@semuadmin
Comment options

Answer selected by duemchen
@duemchen
Comment options

@semuadmin
Comment options

@semuadmin
Comment options

@duemchen
Comment options

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