解決方案
執行uhd_usrp_probe
時,輸出的debug資訊會告訴您目前跑在USPR上執行的 bitfile版本:
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
在下面的資訊中,可以看到這台USRP N310燒的image是 HG (參考第二個 [INFO] 輸出)。
您也可以使用uhd_find_devices
獲取此資訊:
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