Optional Steps for Advanced Setup

此页介绍了PiAware高级功能的可选安装说明。 点此查看如何构建一个新的PiAware设备。

1PiAware设置步骤番外篇

更改设备密码

您的PiAware与互联网相连,所以虽然挂载在您的家用路由器后面,还是将 pi 用户默认密码 (flightaware) 更改一下比较靠谱。.

  • 使用以下用户名 "pi" 密码 "flightaware" 登陆设备。
  • 键入"passwd",并按照提示更改帐户的密码。

Enable SSH access

  • For security reasons, SSH access is disabled by default on new PiAware SD card installs, starting with version 3.3. To enable SSH, create an empty file on the /boot partition of the SD card with the filename of “ssh” only (no file extension). When this file is present, SSH will be automatically enabled.

为较大容量的SD卡扩展文件系统

    如果你的SD卡较大,为了扩展可用空间,你可以登陆你的设备,输入:
    
    sudo raspi-config
    
    
    接着,选择目录上的 "Expand file system" 并回车确认。 完成后,退出目录并输入:
    
    sudo reboot
    
    
    操作完成,设备将立即重启。

通过命令行访问PiAware

    你可以登陆PiAware后键入以下命令检查系统状态:
    
    sudo piaware-status
    
    
    You can restart PiAware by typing:
    
    sudo systemctl restart piaware
    
    

2配置您的PiAware 3 (包括WiFi)

概况

The fully pre-configured FlightAware PiAware 3 SD card includes a default configuration that can be edited or overriden by the user.

Configuration File Options

The configuration file allows the user to configure and set the following:

  • Wired network
  • Wireless (WiFi) network
  • Automatic or manual updates
  • Multilateration (MLAT) output
  • Receiver type (RTL-SDR, Beast, Radarcape or other Mode S/ADS-B source)
  • RTL-SDR gain, PPM and device index
Configuration File Format

The configuration file is a simple plain text format file. You may find it helpful to view the sample piaware-config.txt.

Lines beginning with a "#" are comment lines and are ignored. Blank lines are also ignored. All other lines specify configuration settings.

如果没有使用(上述)其他配置方法,则配置文件的位置应为“/etc/piaware.conf”。该文件是专为不想使用“/boot”的基于套装的安装而提供的。

For most users: After writing the PiAware image to a SD card, place the SD card in your computer and edit the "piaware-config.txt" file using a text editor (such as Notepad on Windows). Save your changes and eject the SD Card before physically removing it. Place the SD card in your Pi and it will use the new configuration when powered on.

Editing the configuration from the command line

For advanced users: Log in to your Pi by attaching keyboard and screen or by using ssh, then either:

  • Use the "piaware-config" utility to view and change settings. Run "piaware-config <setting> <value>" to make changes. Run "piaware-config" to show the current configuration settings.
  • Edit /boot/piaware-config.txt to make configuration changes, using an editor of your choice (e.g. "sudo nano /boot/piaware-config.txt").
  • For package-based installs, use piaware-config or edit /etc/piaware.conf.

If it is not convenient to remove the SD card and command line access is not possible. an external USB flash drive containing a piaware-config.txt file can be attached to the Pi. Settings in that file override any settings on the SD card. The flash drive should be attached before powering on the Pi and should remain connected while the Pi is running.

To ensure that all configuration changes take effect, please restart/reboot the Raspberry Pi after making changes.

有关所有可用配置选项的详细信息,请参阅我们的高级配置文档。

3室外天线

针对天线的设置,FlightAware建议如下。

    Equipment

  • 需要1090MHz的天线。如需了解您所在国家/地区的购买地点,请参阅可选下的PiAware购物清单部分的here
  • 我们建议使用低损耗同轴电缆连接天线与接收器。理想情况下,电缆衰减(信号损耗)应低于6dB。如果电缆连接的损耗超过6dB,将导致收到的飞机消息较少,无法达到最大接收效果。同轴电缆的长度应尽可能短,最好小于15米(50英尺)。
    • 对于长度小于50英尺(15米)的连接,应至少使用LMR-240电缆或同等电缆
    • 对于长度超过50英尺(15米)的连接,应至少使用LMR-400电缆或同等电缆
    • 大多数室外天线都带有一个N型母头连接器。如果购买的是这种天线,请记住,同轴电缆需要一个N型公头连接器与天线连接。为防止连接器安装在户外时由于进水而导致腐蚀,可以使用绝缘胶带、防水胶泥或自粘胶带将连接器包裹起来(https://en.wikipedia.org/wiki/Self-amalgamating_tape)。
    • FlightAware Pro Stick和Pro Stick Plus(其他DVB-T SDR接收器可能带有不同的连接器)带有一个SMA母头连接器,因此需要一个SMA公头连接器与其连接。您需要准备一根带SMA公头连接器或适配器的电缆,对于其他DVB-T SDR接收器,请参阅其技术规格进行确认。
For more information on cables see https://en.wikipedia.org/wiki/Coaxial_cable
    Antenna location

  • The aircraft signal (1090MHz) is sent from a vertical antenna and the best way to receive the signal is to also have your antenna installed vertically.
  • For optimum reception, the antenna should be installed where it has an unobstructed view of the sky. Buildings, tall trees and high ground can block some of the signal.
  • The longer the antenna cable run, the more signal you will lose.
  • Locating your receiver close to the antenna can minimize the cable length but bear in mind that your Raspberry Pi may need to be physically accessed for upgrades or resolving failures.
    Antenna Mounting Suggestions

    在室外安装时,应确保天线固定牢靠,以免由于大风或其他影响而导致脱落。垂直安装天线有很多不同的方式,以下是其他用户在室外安装天线时所采用的几种方式:

  • Drill a hole in the wall and seal around the cable with flexible sealant.
  • Using a tripod
  • Chimney mount
  • Clamp
  • TV tripod with foot mast
  • Hung by string
  • Taped to wall (scotch, duct, packing, etc.)
  • Wire or metal straps holding a 90° shelving brace to a pipe, metal or wooden extension added then antenna attached
  • Zip tied the mounting plate\; example to a trellis, a pole, etc.
  • Straps holding a PVC pipe to an object, such as a chimney
  • Base made out of PVC pipe, mounting attached to piping with U-bolts
  • Suction cups
  • 使用2-4块木材固定在房屋上
  • J pole antenna mount
    Different ways to run the cable from the antenna to the receiver

    Low loss cable, especially for long cable runs, can be up to 15mm in diameter and inflexible. Bear this in mind when planning its route, especially entering a building.

  • Drill a hole in the ceiling/roof/attic/loft and seal around with flexible sealant.
  • Drill a hole in a wooden window sill
  • Run through a wall or roof vent
  • Run through a pipe that leads to the roof (If you drill a hole into the pipe be careful of sharp edges)
  • 通过窗户并让窗户留一个小缝,然后用泡沫/布条等隔热保温
  • Not recommended: Flat coax cable
    • Flat coax cables typically use an F-type connector and are designed to function with a satellite signal and are not optimized for usage with the 1090MHz frequency. Adapters would need to be purchased to connect with the N-type and SMA type connector.

For images of other setups checkout this discussion post that inspired the above list.
Some users even explain how they avoid Home Owner Associations often found in the USA.

相关链接 (PiAware, Raspberry Pi, dump1090, and more)