Skip to content

πŸ›°οΈ πŸ“‘ Broadcasting the RTCM3 correction from the nearest RTK base πŸ“

License

Notifications You must be signed in to change notification settings

CentipedeRTK/RtkBaseVar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

82 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›°οΈ πŸ›°οΈ πŸ›°οΈ πŸ›°οΈ RtkBaseVar

πŸ“‘ πŸ“‘ πŸ“‘ Broadcasting the RTCM3 correction from the nearest Centipede RTK GNSS base station πŸ“

DOI

Description

GNSS station networks, also called CORS (Continuously Operating Reference Station), such as the CentipedeRTK network, use a point-to-point connection method. In short, a user must connect to a caster and choose the GNSS station (Mount point) in the network closest to his position. This method is restrictive because if the station is not available or if the user is travelling, such as by car, he/she has to change the Mount Point manually.

RtkBaseVar is a personal RTCM3 correction caster for high precision RTK geolocation in mobility. It is an assistant that automatically connects you to the Mount Point closest to your position.

RtkBaseVar is written in Python, its deployment is done by Docker container. It can be orchestrated for multiple sessions for multi-user use.

Features:

  • Connect to the nearest operating GNSS station.
  • Continuously check that the GNSS station is still active.
  • Change GNSS station:
    • in case of power failure
    • If a station is closer but with configurable rules.
  • Use a personal Telegram bot to communicate with it.
  • Communicates station changes by sending notifications to his smartphone.
  • Records these changes to make them available for download and use with GIS software like Qgis.
  • Can be dynamically configured and queried by asking questions to the Telegram bot.
    • Exclusion of stations
    • Maximum distance to search for a station
    • Maximum distance before changing station
    • Hysteresis on the maximum distance and between two distant stations
    • Visualisation of the last coordinates sent by the Rover:
      • Data
      • Map
    • Download of logs in .csv format
    • Ability to purge logs
    • Restart of services

Telegram

Telegram is a messaging application focused on speed and security, it is ultra-fast, simple and free. It is essential to have Telegram to set up your RtkBaseVar session and receive notifications of station changes, it replaces an web interface.

Connect the Rover Ntripclient to your RtkBaseVar session

Your Rover or NTRIP client must be able to send an NMEA GGA frame to the Caster to retrieve your position.

Connect your Rover's NTRIPclient to your RtkBaseVar session:

  • Adresse: IP or DNS
  • Port: 9999 or other
  • Mount name: ME
  • No login & password

Parameters

  • When the service is started (first time or in case of update) a message is sent, it allows to check that the parameters to exchange with the bot are good.

bot_start

  • All parameters are editable by the Telegram bot, type any word or letter to access the parameter menu of RtkBaseVar. You can also write directly the action to ask the bot.

bot_info

  • /excl : List of GNSS stations to exclude from the search. Always in uppercase and a space between the stations. ex: CT LIENSS SLP NOVA

bot_excl

  • /dist : Maximum search distance of a base. Enter a integer number in kilometres.

bot_dist

  • /crit : Maximum distance before changing stations. In the case of several stations close together, RtkBaseVar will remain on the same base as long as this distance is not crossed and this even if the user is closer to a new base. Enter an integer number in kilometres.

bot_crit

  • /htrs : Hysteresis, Distance to be added to /crit or if exceeded, to the distance between 2 bases. This allows you to avoid changing stations if you are working at equal distance between 2 stations. Enter an integer number in kilometres.

bot_htrs

  • /map : Displays the last coordinates sent by the rover, the date, fix quality, HDOP, altitude, station id (when there is one) and on which base you are connected. A map allows to visualize this information easily.

bot_map

  • /log : Download the station change log file for use as metadata with its collected data.

bot_move&log

  • /clear : Clears the data from the log file for new data collection.

  • /restart : Restarts the service, this is useful if the service crashes due to a bug.

Installation

How it works

  • Socat creates two virtual ports /dev/pts/1 and /dev/pts/2
  • Two data streams are created with rtklib str2str:
    • between the caster centipede ntrip://:@caster.centipede.fr:80/ + Mountpoint variable and the port pts/1
    • between the pts/2 port and your personal caster ntripc://@:9999/ME
  • A loop check continuously:
    • the status of stations within a defined distance
    • location data sent by the rover
    • the distance between the rover and the stations according to the defined parameters
  • RtkBaseVar chooses the most suitable station to work with and modifies the first data stream.
  • Messages and interactions are possible between the user and the program through a Telegram bot

Create a personal Telegram bot.

  • Creating a Telegram bot account

    • First, we need to have a telegram account (bot) to access. Talk to @Botfather, a telegram bot by telegram to create telegram bots, to create a bot. Copy and paste the HTTP API somewhere

    botfather

    • You will also need to know your own telegram user ID, so the bot knows who to send messages to. Talk to @userinfobot to get this information. Once again, copy this information down somewhere.

    userid

  • Save in a file your acess token :APIKEY= and user id USERID=

  • Connect to Telegram account, search and connect to the bot:

    • Click to start
    • Bot send you /start
    • It's Ok, you will receive a notification and send messages.

Install docker

The installation is possible without Docker by following the procedure in the Dockerfile, attention to the integration of Telegram bot APIKEY and your USERID in ./pybasevar/run.sh.

Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly.

Install Docker et Docker-compose :

sudo apt-get update
sudo apt-get install curl
curl -fsSL https://get.docker.com/ | sh
sudo systemctl enable docker
sudo service docker start
sudo groupadd docker
sudo usermod -aG docker $USER

sudo apt-get install python-pip
sudo pip install docker-compose

https://docs.docker.com/get-docker/

First Build & Run:

  • Check that your server, router or PC has port 9999 open. It is possible to change the output port in the docker-compose.yml
  • Clone RtkBaseVar repo
git clone https://github.com/jancelin/RtkBaseVar.git
cd ./RtkBaseVar
  • Edit the docker-compose.yml with the Telegram bot APIKEY and your USERID

  • Build RtkBaseVar docker-compose build

  • First start-up to see the logs and potential errors: docker-compose up

  • Connect your ntripclient to:

    • Your ip or DNS
    • Port: 9999
    • Mount name: ME

Now RtkBaseVar get NMEA data from Rover every X seconds, check lon lat, research nearest Base GNSS on the caster Centipede and create a connexion.

  • Run as deamon docker-compose up -d

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

About

πŸ›°οΈ πŸ“‘ Broadcasting the RTCM3 correction from the nearest RTK base πŸ“

Resources

License

Stars

Watchers

Forks

Packages

No packages published