usrp

USRP E312 how to get gps information from internal gps receiver


How would you access gps information (say latitude, longitude) from the internal gps receiver with a gps antenna connected to a USRP E312? I'm using python2 generated by gnuradio for all of my code. I'm thinking maybe there's a command I can call from the uhd.


Solution

  • On the E310 itself, the GPS module is handled by gpsd, which should be part of the image you're running. You should be able to interface with that using libgps. You could use the gpspipe tool to test:

    gpspipe -w