准备工作
-
更新源及软件
sudo apt-get update sudo apt-get upgrade
-
安装相关依赖文件
sudo apt-get install software-properties-common
sudo apt-get install \
libnuma-dev cmake g++ \
libpython2-dev \
qtbase5-dev libqt5svg5-dev libqt5opengl5-dev libqwt-qt5-dev \
portaudio19-dev libjack-jackd2-dev \
graphviz
sudo add-apt-repository -y ppa:myriadrf/drivers
sudo apt-get update
sudo apt-get install limesuite liblimesuite-dev limesuite-udev
sudo apt-get install soapysdr-tools soapysdr-module-lms7 libsoapysdr-dev
备注:
python-numpy、limesuite-images 在Ubuntu20系统环境下无法安装,
-
开启Ubuntu下的FTP服务
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-b3yiY8TK-1618325535030)(E:\raspberrypi\picture\04 Ubuntu环境下安装FTP.png)]
-
将下载好的文件通过FTP传输至Ubuntu。
#git clone with recursive submodule checkout git clone --recursive https://github.com/pothosware/PothosCore.git cd PothosCore #update to latest master branch git pull origin master #update submodules to latest tracking branch git submodule update --init --recursive --remote
备注:下载完毕后,一定注意是否将子模块下载下来。
下面是我的下载链接:
-
编译并安装
mkdir build cd build cmake .. make -j4 sudo make install sudo ldconfig #needed on debian systems PothosUtil --self-tests PothosFlow #launches GUI designer
-
测试并验证
# 将设备连接值USB口,使用如下命令探测到设备。 SoapySDRUtil --probe # 安装soapyremote-server sudo apt-get install soapyremote-server # 启动设备,推流 SoapySDRServer --bind
注意:下次启动时,很可能会出现‘Server socket bind FAIL: bind(tcp://[::]:55132) [98: Address already in use]’错误,这是因为SoapySDRServer设备默认开机自启动。
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-v81lJs2E-1618325535033)(E:\raspberrypi\picture\05 Server启动失败.png)]
此时采用下列命令,关闭该进程并禁止开机自启动,然后重新启动设备并推流。
sudo systemctl stop soapyremote-server sudo systemctl disable soapyremote-server
参考资源
再次感谢上述资源带给我的帮助,也希望我的经验对您有用!