semuconsulting / pygnssutils

Python GNSS CLI utility library for reading, parsing and broadcasting NMEA, UBX, RTCM3, NTRIP and SPARTN protocols
BSD 3-Clause "New" or "Revised" License
81 stars 23 forks source link

Question about gnss ntrip client #51

Closed marcuzz0 closed 7 months ago

marcuzz0 commented 7 months ago

I'm trying to create an ntrip client by connecting it to a ublox zed-f9p gnss receiver to send it to differential correction. The receiver is located on the /dev/ttyACM0 serial port, how do I use the gnssntripclient suite to do this? I tried with:

gnssntripclient --server XXX.XXX.XXX.XXX --ggamode 1 --user XXXXX --password XXXXX -P 8080 -M XXXXX

but I didn't understand how to send him the correction, could you help me? thanks for collaboration

semuadmin commented 7 months ago

Hi @marcuzz0

The gnssntripclient CLI utlity is really only intended as a testing and diagnostic tool - it simply displays NTRIP caster output at the terminal (or another designated writeable output medium); it has no facility to pass this data onto a receiver.

To do that, you'd need to build a script or application around the underlying GNSSNtripClient class. There is an example application in the /examples folder which illustrates one possible approach: rtk_example.py. In essence, this writes the output from gnssntripclient to a queue, while a separate thread reads from this queue and passes the raw data to the receiver's serial port.

Alternatively, you could use the PyGPSClient GUI application, which uses GNSSNtripClient under the covers.

Hope this helps

I'm converting this to a Discussion as it's more a question rather than an issue with the utility itself.