Comments (4)
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.
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.
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.
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)
- Getting CFG-PRT to change UART speed HOT 6
- Value of "dyn" field in CFG-NAV5 HOT 1
- pyubx2 stop processing when there is a broken data in the ubx file. HOT 3
- I think this could become slightly more higher level. HOT 1
- Meta-data for "MON-RF.group.flags.jammingState" is incorrect. It is specified as U1 when it should be U2.
- my get stuck in SocketStream.read() HOT 10
- Typo in UBX-ESF-INS message
- UBX-MGA-GPS-EPH size mismatch
- Trying to set configuration from configuration file HOT 1
- Configuration Interface error CFG_UART1_BAUDRATE HOT 1
- UBXReader(stream) fails silently if stream.read(n) returns < n bytes HOT 10
- Correct is diffSoln, no difSoln HOT 1
- rinex output HOT 4
- Enabling RTCM Corrections on the ZED-F9K receivers via serial communication HOT 2
- Parsing .ubx files HOT 1
- quitonerror option doesn't work for nmeamessage.py _do_attributes errors HOT 2
- pynmeagps>=1.0.17 Not found HOT 4
- Getting ACK/NAK response from command HOT 4
- Serialization of messages into bytes sometimes gives non-hex values HOT 2
- Add sigId to RXM-RAWX message in ubxtypes_get.py
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyubx2.