Reading Geographical Position from a USRP Device

Updated Apr 7, 2023

Reported In

Hardware

  • USRP-2930
  • USRP-2932
  • USRP-2950
  • USRP-2952
  • USRP-2953
  • USRP-2954
  • USRP-2955

Driver

  • NI-USRP

Programming Language

  • LabVIEW G

Issue Details

I'm using a NI USRP device with a built-on GPS receiver like USRP-2932, and I'm interested in reading the geographical position using the device. How can I accomplish it?

Solution

You can use the RMC (Recommended Minimum) sentence using the NI USRP driver, it is provided using the GPS Sentence RMC  property, then you  parse the content to get the Latitude and Longitude. 

The Recommended Minimum, which will look similar to: $GPRMC,123519,A,4807.038,N,01131.000,E,022.4,084.4,230394,003.1,W*6A 
Where:
 
RMCRecommended Minimum sentence C
123519Fix taken at 12:35:19 UTC
AStatus A=active or V=Void.
4807.038,N Latitude 48 deg 07.038' N
01131.000,ELongitude 11 deg 31.000' E
 022.4Speed over the ground in knots
084.4Track angle in degrees True
230394  Date - 23rd of March 1994
003.1,WMagnetic Variation
*6AThe checksum data, always begins with *
       
You can refer to the following community page for an example Plotting Geographical Position on Google Maps using NI USRP-293x and NI LabVIEW.