In stock
View Purchasing OptionsProject update 5 of 7
In this post, we’ll explore the capabilities of RTKLIB, learn how to use it on your PC or Raspberry Pi, guide you through installing RTKLIB tools on your Pi, configuring the LC29H for RTCM, and even logging your first GPS data file. Let’s dive in!
RTKLIB is an open-source software suite that allows you to achieve centimeter-level accuracy in your GPS positioning. RTKLIB can be harnessed on both your PC and the Raspberry Pi. Whether you prefer a desktop or the compact efficiency of a Pi, RTKLIB has you covered. RTKLIB consists of a portable program library and several APs (application programs) utilizing the library.
For those who prefer the comfort of a PC, RTKLIB extends its capabilities to that platform as well. To get started:
First, visit the official RTKLIB website: https://rtklib.com/
From here, you have two options:
Let’s walk through the installation process step by step:
sudo apt update
to update your package list and ensure you have the latest information about available software.sudo apt install git
to install Git.mkdir rtklib
cd rtklib
git clone https://github.com/rtklibexplorer/RTKLIB.git
.cd RTKLIB/app/consapp/str2str/gcc
make
sudo cp str2str /usr/local/bin/str2str
.cd ../../rtkrcv/gcc
.make
.sudo cp rtkrcv /usr/local/bin/rtkrcv
.RTKLIB is now installed on your Raspberry Pi! You can execute the str2str and rtkrcv utilities from any terminal window.
These applications offer an array of functionalities, from data conversion and processing to real-time positioning and analysis. Navigate to the directory where the RTKLIB binaries are located on your PC. This could be the directory where you cloned the repository or the installation location of the pre-compiled binaries.
Within this directory, you’ll find various executable files for RTKLIB applications, each serving a distinct purpose. Examples include rtkconv for data conversion, rtkplot for real-time plotting, and rtkpost for post-processing.
The LC29H module can achieve impressive accuracy when configured for Real-Time Kinematic (RTK) operation using RTCM correction data. Proper configuration involves enabling RTCM. We have developed a python script that can be used to enable RTCM.
python lc29h_script.py
Sample screenshot:
RTCM will be enabled after you see the success message in the outputted response.
Here is an example of how to log your file for the first time using the Raspberrypi and rtklib.
Sample command: str2str -in serial://dev/ttyAMA0:115200 -out file://test.log
In this example, -in
represents the data coming in from the com port and -out
represents where the data will be output. In this case it is going to a file called test.log
.
Example output:
Contents of generated test.log:
The information shown here may be different for you when using str2str in your environment.