Replies: 1 comment
-
Hi @jadebirds I'm afraid your code snippet above is somewhat garbled so I'm having a hard time working out what you're trying to do here, but an But |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm experiencing an issue with receiving RTCM data and publishing it to window pc.
Currently, I'm using the pygpsclient and pyrtcm package to receive RTCM data
But there is some problem.
i can't connect to rtcm server by this code.
Can you give me some solution for this?
""" rtcmsocket.pyA simple example implementation of a GNSS socket reader
using the pyrtcm.RTCMReader iterator functions.
Created on 05 May 2022
@author: semuadmin
"""
import socket
from datetime import datetime
from pyrtcm.rtcmreader import RTCMReader
def read(stream: socket.socket):
"""
Reads and parses RTCM3 message data from socket stream.
"""
if name == "main":
SERVER = "192.168.0.72"
PORT = 2101
Illustration of RTCM3 NTRIP Client using GNSSNTRIPClient
class from pygnssutils library. Can be used with any
NTRIP caster.
NB: requires a valid userid and password. These can be set as
environment variables PYGPSCLIENT_USER and PYGPSCLIENT_PASSWORD,
or passed as keyword arguments user and password.
Usage:
python3 rtcm_ntrip_client.py server="yourcaster" mountpoint="yourmountpoint" user="youruser" password="yourpassword" outfile="rtcmntrip.log"
Run from /examples folder.
Created on 12 Feb 2023
:author: semuadmin
©️ SEMU Consulting © 2023
:license: BSD 3-Clause
"""
from os import getenv
from sys import argv
from time import sleep
from pygnssutils import GNSSNTRIPClient
PORT = 2101
HTTPS = 0
if PORT == 443:
HTTPS = 1
def main(**kwargs):
"""
Main routine.
"""
if name == "main":
Beta Was this translation helpful? Give feedback.
All reactions