What is GPS RTK?
Real Time Kinematics
RTK is short for real time kinematics. A GPS receiver capable of RTK takes in the normal signals from the Global Navigation Satellite Systems along with a correction stream to achieve 2.5cm positional accuracy. GNSS includes satellites from GPS (USA), Glonass (Russia), Beidou (China), and Galileo (Europe). On top of these signals an RTK receiver takes in an RTCM correction stream and then calculates your location with 2.5cm accuracy in real time. The rate varies between receivers but most will output a solution at least once per second; some receivers can output this higher precision solution up to 4 times a second. RTK capable GPS receivers used to be thousands of dollars and were limited to professional surveyors and government groups. Thanks to science, math, and economics, RTK receivers are now less than $200.
On the left we have a extremely high quality GPS receiver (the NEO-M8P-2 seen above) with no correction data. The position wanders greatly over 1.5 meters and beyond. On the right the same receiver, with the same antenna, with RTCM correction data brings the position under 25cm with tight groupings under 10cm.
Did You Say 2.5 cm? Zomg How Do I Get 2.5 cm Accuracy!?
You’ll need a GPS receiver capable of receiving and incorporating the RTCM correction data into its location solution. You’ll also need a source of RTCM correction data. This usually comes from an internet connection or a long distance radio capable of approximately 500 bytes per second. LoRa and LTE-CAT M1 are superb choices for this backhaul.
Once it’s all setup and working, the rover GPS module will output normal NMEA sentences but with really accurate lat and long. To be clear, it’s not 2.5cm precision; it’s 2.5cm (1 inch) accuracy. The precision is 0.1mm!
2.5cm accuracy is possible with lower cost receivers (such as the NEO-M8T) by capturing raw streams from the GPS satellites and then post processing the logs with an open source program called RTKLIB. This is handy for applications like aerial photography and agricultural inspection were alignment is important after the fact. It’s also possible to tether a lower cost receiver (such as the NEO-M8T) to a laptop and run RTKLIB in unison and achieve real time solutions but this is a rather large, power hungry setup that is not ideal for embedded mobile applications. In these tutorials we will be focusing on real time (RTK) capable receivers.
What is RTCM?
RTCM is an acronym for Radio Technical Commission for Maritime. This governmental body came up with a way to communicate positions for boats and other vessels many decades ago. Technically, RTCM is just a protocol. We, however, will be using the term RTCM to mean the bytes of correction data related to GPS timing anomalies.
The contents of RTCM frames can be decoded but you, the user, rarely need to. Instead you simply pass the bytes to the GPS receiver and it will parse the correction data.
There are a few different types of messages but the ones we care about are numbers 1005, 1077, 1087, and 1230. Each message type has a different length but as a rule of thumb it’s a couple hundred bytes every second. Each RTCM message contains details about the GPS/GNSS network, and perturbations in the ionosphere and troposphere.
Remember, the GPS satellites are very far away; about 20,000km or 12,000 miles away. A lot can happen to the signal from the GPS satellites to you across that distance. Geomagnetic storms cause slight timing delays increasing the location error. Earth’s gravitational field is not uniform so relativistic effects can add inaccuracies. If we know the second to second issues within our local vicinity, a RTCM capable receiver can correct the location solution with great precision.
Where Do I Get RTCM Corrections?
If you’re lucky there’s a station within 10km (6 miles) of you that is broadcasting RTCM 3.x data over the internet. We located one a little more than 10 km from SparkFun HQ that works really well.
Here’s a list of stations we’ve found. If there are more that you know of, please let us know:
- UNAVCO - Mostly USA
- NTRIP Listing - Global
- European Reference Stations
- RTK2go and SNIP - Runs a server where a few dozen stations can be accessed (see comments section)
Many of the stations that broadcast real time RTCM correction data require registration. It’s a wild hodge-podge of scientific and non-profit civil organizations across the globe. It feels very internet-circa-1995. If anyone has a more straightforward way of discovering and connecting to RTCM providers, please let us know in the comments section.
We recommend using RTKLIB to subscribe to the feed and output the stream over a serial port to a GPS RTK capable module. For the best accuracy, your GPS receiver will need to be within 10km (6 miles) of the broadcast station. If you are greater than 10km, the NEO-M8P can still create a location fixed but the accuracy is degraded and the receiver will output the following:
WARNING: DGNSS baseline big: 10km
Another option for RTCM data is to create your own station! You’ll need a GPS module capable of generating RTCM correction data, a sensitive antenna, and computer or Single Board Computer (like a Raspberry Pi) to take the RTCM data and serve it over the internet. You’ll need a clear view of the sky and probably a very long SMA extension cable to get from your desk to the antenna. There are some very expensive receivers capable of base station RTCM. Luckily, there is also the NEO-M8P-2 module that is lower cost and just as capable. We will be focusing on how to use the NEO-M8P-2 in the following tutorials.
How Do I Get the RTCM Messages to the GPS Receiver?
It depends on your end application. If you need maximum portability, then the best solution is a radio link between base station you’ve created and mobile GPS RTK receiver. SparkFun offers a variety of LoRa radios and antennas to enable this backhaul like some of the products listed below.
If your end application already requires an Internet connection such as GSM or LTE-CAT, then a serial connection to the GPS-RTK receiver may be the easiest way to go.
If your application has a cell phone nearby then a third option is to create a serial bridge from a cell phone to a serial Bluetooth device like the Bluetooth Mate Silver that then connects to the serial port on the GPS-RTK. There are a few Ntrip compatible mobile apps. We’ve been pleased with Lefebure for Android.
Resources and Going Further
We hope this tutorial helps you understand a bit more about GPS RTK. This is just the beginning! For more information, check out the resources below:
- RTKLIB: An Open Source Program Package for GNSS Positioning
- ResearchGate: Review of GNSS Formats for Real-Time Positioning
- Geo++: Real-Time GNSS Data Transmission Standard RTCM 3.0 (PDF)
- UNAVCO: All Real-time Networks & Stations Monitoring - Mostly USA
- BKG’s GNSS Data Center: Global List of Real-Time GNSS Data Streams From Ntrip Broadcasters - Global
- EUREF Permanent GNSS Network: Real-Time Map
- SNIP: the Simple NTRIP Caster - Runs a server where a few dozen stations can be accessed
- Android App: Lefebure NTRIP Client
Looking for more information related to GPS RTK? Check out the tutorials below: