Coder Social home page Coder Social logo

Comments (4)

semuadmin avatar semuadmin commented on August 27, 2024

Hi - could I ask you to take a look at the bug report template and fill in as much detail as you can on the problem you're having, including the UBX device type, version of pyubx2 you're using and if possible a binary dump of the input stream. Many thanks.

https://github.com/semuconsulting/pyubx2/blob/master/.github/ISSUE_TEMPLATE/bug_report.md

Also, can you confirm what happens if you instantiate the UBXReader class with the validate flag set to true? i.e.

ubr = UBXReader(stream, True)

If you have an input stream which contains nothing but NMEA data (no UBX data) and you have the validate flag set to 'False' (the default), then - yes - the read() function will block until it receives a UBX data packet. This is expected behaviour. The resolution is either to:

a) ensure that your input stream includes UBX data by setting the message rates appropriately (e.g. set CFG_MSGOUT_UBX_NAV_PVT_UART1 to 1 using the CFG-VALSET command, if it's a G9 device),
b) set the validate flag to 'True', in which case the read() function should output a UBXStreamError if it encounters non-UBX data - e.g.:

pyubx2.exceptions.UBXStreamError: Unknown data header b'$G'. Looks like NMEA data. Set validate to 'False' to ignore.

from pyubx2.

semuadmin avatar semuadmin commented on August 27, 2024

Also, have you tried running the ubxstreamer.py example in the /examples folder? This should poll the device's UBX message rates and respond with a series of CFG-MSG responses.

from pyubx2.

vikram223 avatar vikram223 commented on August 27, 2024

Apologies, I had the validate flag set to false. I thought I tested it with both values for the validate flag, but I must've made a mistake. You're right, my data output is only nmea stream. I am getting UBX messages when I save the ubx file using u-center but I'm not seeing it directly from the serial port I guess.

I will try the ubxsteamer.py today. Thanks a lot fr the support. Please go ahead and close the issue.

from pyubx2.

semuadmin avatar semuadmin commented on August 27, 2024

No worries. FYI you might want to check out PyGPSClient, a cross-platform GUI application which uses pyubx2 and provides some of the u-center functionality. https://pypi.org/project/PyGPSClient/

from pyubx2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.