Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

rtkbase

> 前端框架
Open source

Your own GNSS base station for RTK localization with a Web GUI

748 stars0 likes0 views
WebsiteGitHub

About

Your own GNSS base station for RTK localization with a Web GUI

RTKBase

An easy to use and easy to install web frontend with bash scripts and services for a simple headless gnss base station.

FrontEnd:

||||

Frontend's main features are:

  • View the satellites signal levels
  • View the base location on a map
  • Detect and configure the Gnss receiver (Ublox F9P, Septentrio Mosaic-X5, Unicore UM980 / UM982)
  • Start/stop various services (Sending data to a Ntrip caster, internal Ntrip caster, Rtcm server, Sending Rtcm stream on a radio link, Log raw data to files)
  • Edit the services settings
  • Convert raw data to Rinex
  • Download/delete raw data

Base example:

  • Enclosure: GentleBOX JE-200 (waterproof, cable glands for antenna and ethernet cable)
  • SBC: Raspberry Pi 3 / Orange Pi Zero (512MB)
  • Gnss Receiver: U-Blox ZED-F9P (from Drotek)
  • Antenna: DA910 (Gps L1/L2, Glonass L1/L2, Beidou B1/B2/B3 and Galileo E1/E5b/E6) + sma (male) to TNC (male) outdoor cable.
  • Power: Trendnet TPE-115GI POE+ injector + Trendnet POE TPE-104GS Extractor/Splitter + DC Barrel to Micro Usb adapter

Other images are available in the ./images folder.

Ready to flash release:

A ready to flash Armbian image is available for Raspberry Pi, Orange Pi Zero, Orange Pi Zero 2, Orange Pi Zero 3 SBC : Armbian_RTKBase

For older Raspberry Pi releases, see here.

Easy installation:

  • Connect your gnss receiver to your raspberry pi/orange pi/....

  • Open a terminal and:

    bash
    cd ~
    wget https://raw.githubusercontent.com/Stefal/rtkbase/master/tools/install.sh -O install.sh
    chmod +x install.sh
    sudo ./install.sh --all release
  • Go grab a coffee, it's gonna take a while. The script will install the needed software, and if you use a supported receiver (U-Blox ZED-F9P, Septentrio Mosaic-X5, Unicore UM980/UM982), it'll be detected and set to work as a base station. If you don't use a supported recevier, you will have to configure your receiver manually (see step 7 in manual installation), and choose the correct port from the settings page.

  • Open a web browser to http://ip_of_your_sbc (the script will try to show you this ip address). Default password is admin. The settings page allows you to enter your own settings for the base coordinates, ntrip credentials and so on...

    If you don't already know your base precise coordinates, it's time to read one of these tutorials:

    • rtklibexplorer - Post-processing RTK - for single and dual frequency receivers
    • rtklibexplorer - PPP - for dual frequency receivers
    • Centipede documentation (in french)
  • To help you find your base ip address, you can use the simple find_rtkase gui tool. It is available for Gnu/Linux and Windows in ./tools/find_rtkbase/dist.

    • Click on the "Find" button, wait, then click on the "Open" button. It will open the RTKBase GUI in your web browser.

Manual installation:

The install.sh script can be used without the --all option to split the installation process into several different steps:

…

So, if you really want it, let's go for a manual installation with some explanations:

  1. Install dependencies with sudo ./install.sh --dependencies, or do it manually with:

    bash
     sudo apt update
     sudo apt install -y  git build-essential pps-tools python3-pip python3-dev python3-setuptools python3-wheel libsystemd-dev bc dos2unix socat zip unzip pkg-config psmisc
  2. Install RTKLIB with sudo ./install.sh --rtklib, or:

    • get RTKlib

      bash
      cd ~
      wget -qO - https://github.com/rtklibexplorer/RTKLIB/archive/refs/tags/b34j.tar.gz | tar -xvz
    • compile and install str2str:

      Optionally, you can edit the CTARGET line in makefile in RTKLIB/app/str2str/gcc

      bash
      cd RTKLIB/app/str2str/gcc
      nano makefile

      For an Orange Pi Zero SBC, i use:

      CTARGET = -mcpu=cortex-a7 -mfpu=neon-vfpv4 -funsafe-math-optimizations

      Then you can compile and install str2str:

      bash
      make
      sudo make install
    • Compile/install rtkrcv and convbin the same way as str2str.

  3. Get latest rtkbase release sudo ./install.sh --rtkbase-release, or:

    bash
    wget https://github.com/stefal/rtkbase/releases/latest/download/rtkbase.tar.gz -O rtkbase.tar.gz
    tar -xvf rtkbase.tar.gz
    

    If you prefer, you can clone this repository to get the latest code.

  4. Install the rtkbase requirements:

…

bash sudo systemctl daemon-reload sudo systemctl enable rtkbase_web sudo systemctl enable str2str_tcp sudo systemctl enable rtkbase_archive.timer

1. Install and configure chrony and gpsd with `sudo ./install.sh --gpsd-chrony`, or:
+ Install chrony with `sudo apt install chrony` then add this parameter in the chrony conf file (/etc/chrony/chrony.conf):

   ```refclock SHM 0 refid GPS precision 1e-1 offset 0.2 delay 0.2```

  Edit the chrony unit file. You should set `After=gpsd.service`
+ Install a gpsd release >= 3.2 or it won't work with a F9P. Its conf file should contains:
  # Devices gpsd should connect to at boot time.
  # They need to be read/writeable, either by user gpsd or the group dialout.
  DEVICES="tcp://localhost:5015"

  # Other options you want to pass to gpsd
  GPSD_OPTIONS="-n -b"
Edit the gpsd unit file. You should have something like this in the "[Unit]" section: 
  [Unit]
  Description=GPS (Global Positioning System) Daemon
  Requires=gpsd.socket
  BindsTo=str2str_tcp.service
  After=str2str_tcp.service
+ Reload the services and enable them:
```bash
   sudo systemctl daemon-reload
   sudo systemctl enable chrony
   sudo systemctl enable gpsd

…

bash
   sudo ./install.sh --detect-gnss --configure-gnss

If you need to use a config tool from another computer (like U-center), you can use socat:

bash
sudo socat tcp-listen:128,reuseaddr /dev/ttyS1,b115200,raw,echo=0

Change the ttyS1 and 115200 value if needed. Then you can use a network connection in U-center with the base station ip address and the port n°128.

  1. Now you can start the services with sudo ./install.sh --start-services, or:
    bash
    sudo systemctl start rtkbase_web
    sudo systemctl start str2str_tcp
    sudo systemctl start gpsd
    sudo systemctl start chrony
    sudo systemctl start rtkbase_archive.timer
…

bash cd ~ wget https://raw.githubusercontent.com/Stefal/rtkbase/dev/tools/install.sh -O install.sh chmod +x install.sh sudo ./install.sh --all repo --rtkbase-repo dev

…

Requirements:

Debian base distro >= 12 (Bookworms) Python >= 3.11

History:

See the changelog

License:

RTKBase is licensed under AGPL 3 (see LICENSE file).

RTKBase uses some parts of other software:

  • RTKLIB-EX (BSD-2-Clause)
  • ReachView (GPL v3)
  • Flask Jinja Werkzeug (BSD-3-Clause)
  • Flask SocketIO (MIT)
  • Bootstrap Bootstrap Flask Bootstrap 4 Toggle Bootstrap Table (MIT)
  • wtforms (BSD-3-Clause) Flask WTF (BSD)
  • pystemd (L-GPL 2.1)
  • gpsd (BSD-2-Clause)

RTKBase uses OpenStreetMap tiles. Thank you to all the contributors!

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonbasecasterf9pfrontend

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架