树莓派+RTL-SDR 搭建APRS iGATE

最近买了个FT-5DR,准备玩APRS,但是长沙的iGATE少的可怜,为了让自己的呼号显示到APRS.TV,只能自己折腾一个iGATE了。
淘宝上有现成的产品,不过要花几百块钱,有点划不来,本着业余无线电不怕折腾的精神,只能自己搭建了。
记得大概5年前,用树莓派+RTL电视棒搭建APRS iGATE,搭建成功后没几天就拆了,现在完全想不起来怎么弄了,还好搜到大神写的《Updated guide to setting up an APRS RX only iGate using a Raspberry Pi, RTL-SDR dongle and a pre-built image》, 下面把步骤记录一下:
1.下载已经安装好Dire Wolf的树莓派镜像,如果用WINRAR解压报错(我就遇到了,以为是下载问题,又给迅雷充值了15块大洋,哎),换成7-ZIP就可以正常解压
2.把镜像写到TF卡,插到树莓派,并插上RTL-SDR,启动
3.树莓派连接WI-FI
4.树莓派最好连接显示器,如果没有接显示器,也可以SSH远程登录
5. 树莓派用户名pi,密码raspberry
6. 运行sudo raspi-config,更改配置:
(1)7 Advanced Options—>A1 Expand Filesystem
(2)4 Localisation Options 更改时区
TAB键选FINISH退出
7.打开sdr.conf,设置呼号、验证码、服务器、经纬度信息

#
# Sample configuration for SDR read-only IGate.
#

# We might not have an audio output device so set to null.
# We will override the input half on the command line.
ADEVICE null null
CHANNEL 10
MYCALL BG7GF

# First you need to specify the name of a Tier 2 server.  
# The current preferred way is to use one of these regional rotate addresses:

#	noam.aprs2.net 		- for North America
#	soam.aprs2.net		- for South America
#	euro.aprs2.net		- for Europe and Africa
#	asia.aprs2.net 		- for Asia
#	aunz.aprs2.net		- for Oceania 

IGSERVER aprs.tv

# You also need to specify your login name and passcode. 
# Contact the author if you can't figure out how to generate the passcode.
 
IGLOGIN BG7GF-10 16610

# That's all you need for a receive only IGate which relays
# messages from the local radio channel to the global servers.


PBEACON sendto=IG delay=2:00 every=15:00 symbol="igate" overlay=R lat=28.XXXXXX long=112.XXXXXX COMMENT="BG7GF-10 iGate | DireWolf 1.4 on RPi+RTL-SDR using QSO365 image"


8.最后运行如下:

rtl_fm -f 144.640M - | direwolf -c sdr.conf -r 24000 -D 1 -

用对讲机发射APRS,不出意外的话,呼号就可以出现在APRS.TV上了
树莓派+RTL-SDR 搭建APRS iGATE_第1张图片
9.设置开机自动运行
在/home/pi下新建tesh.sh,输入如下内容:

rtl_fm -f 144.640M - | direwolf -c sdr.conf -r 24000 -D 1 -

赋予脚本文件(例:test.sh,路径:./home/pi/test.sh)可执行权限

sudo chmod 777 test.sh

打开/etc/rc.local
在exit 0之前添加如下内容:

sleep 10
cd /home/pi
bash test.sh&

保存,如果保存失败,则需要更改读写权限

你可能感兴趣的:(信息与通信,1024程序员节)