正在加载今日诗词....

树莓派IGATE DIREWOLF安装步骤 by BG4VRG

本文参考Raspberry-Pi-SDR-IGate.pdf、Raspberry-Pi-APRS.pdf、安裝 Dire Wolf.docx by VR2ZDX三篇教程,结合个人操作总结而来,成文时间2016-11-25。

以上文档可在 QQ群 树莓派APRS实验室 290347330 获取。

初始环境:

  • 系统镜像:2013-09-10-wheezy-raspbian.img

  • 电视棒 :144640真实频点 144.6337

  • 树莓派:1b

1.1 sudo raspi-config

如果是真机,无需输入命令,系统第一次引导会自动运行该命令

设置扩展磁盘分区

设置密码 ######

设置时区 Chongqing

Ip自动获取

选择“Enable Boot to Desktop”

1.2 替换清华大学源

sudo nano /etc/apt/sources.list

deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main non-free contrib

deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main non-free contrib

1.3 系统更新

sudo apt-get update

sudo apt-get dist-upgrade

sudo rpi-update #以上三步非常慢,如果没有耐心可以不升级

sudo reboot

1.4 屏蔽集成声卡

sudo apt-get remove --purge pulseaudio

sudo apt-get autoremove

rm -rf /home/pi/.pulse

sudo reboot

1.5 安装direwolf

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
sudo apt-get install libasound2-dev #首先安装libasound

cd ~

git clone https://www.github.com/wb2osz/direwolf

cd direwolf

git tag

git checkout 1.3

cd ~/direwolf

make

sudo make install

make install-rpi

If this is the first time, you are installing Dire Wolf perform this step:

make install-conf



Go to your home directory and try to run “direwolf.”

cd ~

direwolf #测试是否能运行

运行状态如下

You should see something like this, because we have not yet configured it for using an audio device.

Dire Wolf version …

Audio device for both receive and transmit: default

Could not open audio device default for input

No such file or directory

Pointless to continue without audio device.

报错,缺少电视棒运行环境,不用管,继续按步骤安装

1.6 安装sdr环境

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
sudo apt-get install cmake build-essential libusb-1.0-0-dev

cd ~

git clone git://git.osmocom.org/rtl-sdr.git

cd rtl-sdr

mkdir build

cd build

cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON

make

sudo make install

sudo ldconfig #注意是L的小写

1.7 编辑配置文件

Sudo nano sdr.conf

此文件如果在dw-start.sh里调用的话,aprs.fi看不到图标,不知何故

1
2
3
4
5
6
7
8
9
ADEVICE stdin null

CHANNEL 0

MYCALL BG4VOL-10

IGSERVER china.aprs2.net

IGLOGIN BG4VOL-10 XXXXX

sudo nano direwolf.conf

1
2
3
4
5
6
7
8
9
10
11
12
13
ADEVICE stdin null

CHANNEL 0

MYCALL BG4VOL-10

IGSERVER china.aprs2.net

IGLOGIN BG4VOL-10 XXXX

PBEACON sendto=IG delay=0:30 every=05:00 symbol="igate" overlay=R lat=34^07.63N long=118^46.05E comment="ShuYang IGate 144.640RX-ONLY using RTL-SDR " via=WIDE1-1,WIDE2-1

IGTXVIA 0 WIDE1-1,WIDE2-1

1.9 启动项

​ 在系统第一次启动运行raspi-confi时,必须选择“Enable Boot to Desktop”

​ 修改dw-start.sh 将dwcmd那行“-c sdr.conf”删除,否则图标在apr.fi不显示

chmod +x dw-start.sh

crontab –e

1
* * * * * /home/pi/dw-start.sh >/dev/null 2>&1

Sudo reboot

1.10 时间校准

​ 树莓派没有电池,没法保存时间,必须通过网络校时

sudo nano /etc/ntp.conf

​ 添加

1
2
3
4
5
6
7
8
9
	server ntp.fudan.edu.cn iburst perfer

​ server time.asia.apple.com iburst

​ server asia.pool.ntp.org iburst

​ server ntp.nict.jp iburst

​ server time.nist.gov iburst

sudo /etc/init.d/ntp restart #重启服务

sudo ntpd -s –d #强制校准

date #查看当前时间

树莓派IGATE DIREWOLF安装步骤 by BG4VRG

https://bg4vrg.com/post/20161125204318.html

作者

fei

发布于

2016-11-25

更新于

2024-03-19

许可协议

评论