Pygpsclient config for base stn

Hi support, can you provide settings for the quacktel phat to make it a base station.
Little info from googling

What is the port? Default is 2101
How do we know port?

Is Host IP the address of the Pi?

Yes and yes, as far as I know :smiley:

We just have the basic instructions here, though Software Overview - SparkFun GNSS Flex System Hookup Guide

I got it. You have to connect first, then check the caster box to get it going

1 Like

has anyone tried collecting the data for a base station location?
pygpsclient seems to stop and make a file every few minutes creating MANY files for a 24 hour data collection.
I didn’t see how to change the file size.
has anyone successfully used this data in the app for this instead of using the service?

I see you haven’t received a reply yet.

If you have determined the base station position via RTK (ntrip client), it will be in the USA in the NAD83 (2011) system.

Apparently, to configure Quectel LG290P as an NTRIP server via TCP/IP, i.e. a base station with an address, you need to do the following:

  1. Activate base station mode
    $PQTMCFGRCVRMODE,W,2*29

  2. Enter the base station coordinates in the NAD83 (2011) system
    $PQTMCFGBASEPOS,W,<Latitude>,<Longitude>,<Height>
    Save configuration
    $PQTMSAVECFG
    Check the recorded coordinates
    $PQTMCFGBASEPOS,R
    The receiver will return the currently stored coordinates.

  3. Configure RTCM stream
    $PQTMCFGMSGRATE,W,1005,10
    $PQTMCFGMSGRATE,W,1077,1
    $PQTMCFGMSGRATE,W,1087,1
    $PQTMCFGMSGRATE,W,1230,10

  4. Configure a TCP/IP connection so that the base station can send data over the network
    $PQTMCFGNET,W,<SERVER_IP>,<PORT>
    For example, if you want to send data to the NTRIP server on 192.168.1.100 and port 2101
    $PQTMCFGNET,W,192.168.1.100,2101

  5. Set NTRIP authorization if access is to be authorized
    $PQTMCFGNTRIP,W,<USER>,<PASSWORD>
    Example
    $PQTMCFGNTRIP,W,user,password

  6. Connection Test
    You can check if the receiver is sending data correctly using the STRSVR tool from the RTKLIB demo5 package.

Rover will report results in NAD83 (2011)

yes I got it setup as a base no problem with pygpsclient
it has a nice gui that sends commands to the quacktel or other gps chip.

1 Like

pygpsclient seems to stop and make a file every few minutes creating MANY files for a 24 hour data collection.
I didn’t see how to change the file size.

Hi @steve1428 - apologies for the hugely belated reply :flushed_face:, but in relation to PyGPSClient’s log files, in common with most data logging tools it cycles files to ensure no single file gets too big and to mitigate against data loss, but for future reference if you want the data in a single file you can simply concatenate the individual datalogs e.g.

On Windows:

copy /B pygpsdata-*.log pygpsdata-combined.log

On MacOS/Linux:

cat pygpsdata-*.log > pygpsdata-combined.log
1 Like

For the record, the very latest version of PyGPSClient (v1.5.22) has a minor update to data logging which allows the user to manually configure the maximum size of individual log files before they cycle. The default is now 10MB, but you can amend that if required using the “logsize_n” setting in the json configuration file.

Bear in mind that if you’re doing extended data logging using PyGPSClient, you may have to adjust your machine’s ‘sleep’ or ‘power’ settings to ensure the hard drive etc remains active. If you want a non-GUI alternative, you can use pygnssutils.gnssstreamer.

FYI PyGPSClient currently supports automatic base station configuration for the following GNSS receiver models:

  1. u-blox F9 series
  2. u-blox X20 series
  3. septentrio X3/X5 series
  4. quectel LG29/580 series
  5. quectel LC29 series (rtk variants only e.g. ‘H’)

but if there’s another model you’d like support for, feel free to raise a feature request.

1 Like