How to check my USRP N310 FPGA image version?

Updated May 26, 2023

Issue Details

I'd like to know which version of image is it on my N310 - whether it's XG, HG or others.
Since I found the FPGA image flavors would affect some of the SPF+ ports configuration as shown below in this link, I'd like to firstly check the FPGA image flavor on it before I start my development using N310:
fpga_flavors.png

Solution

When running uhd_usrp_probe the debug info on top of the output will tell you which bitfiles version you are running:
 

lamsel@dre-s156:~/uhddev/host/build$ uhd_usrp_probe --args addr=10.2.135.54
[INFO] [UHD] linux; GNU C++ version 9.4.0; Boost_107100; UHD_
[INFO] [MPMD] Initializing 1 device(s) in parallel with args: mgmt_addr=10.2.135.54,type=n3xx,product=n310,serial=31A365E,name=ni-n3xx-31A365E,fpga=HG,claimed=False,addr=10.2.135.54

In this case the device is an N310 running an HG image (see second [INFO] printout).

You might also use uhd_find_devices to get this information:

lamsel@dre-s156:~/uhddev/host/build$ uhd_find_devices --args addr=10.2.135.54
[INFO] [UHD] linux; GNU C++ version 9.4.0; Boost_107100; UHD_
--------------------------------------------------
-- UHD Device 0
--------------------------------------------------
Device Address:
    serial: 31A365E
    claimed: False
    fpga: HG
    mgmt_addr: 10.2.135.54
    name: ni-n3xx-31A365E
    product: n310
    type: n3xx

Additional Information

If you've also tried to enter either the
 

$ uhd_find_devices
or
$ uhd_usrp_porbe

but you didint' see related FPGA flavor information like the screenshot below:
no_fpga.png
it might be that your device is in a bad state (maybe the MPM did not start properly), please follow the steps in this article to update the file system of your USRP firstly.