Portable Packet Station - Mobilinkd TNC

October 27, 2021 (WORKING DRAFT)

In this article we'll focus on installing and configuring a Raspberry Pi as an offline portable packet station using a Mobilinkd TNC. This is be no means the only way to set this up, but this is the exact approach that I use for my Raspberry Pi 3B+ and Mobilinkd TNC2 deployments.

It will have the ability to:

  • Send and receive email through the Winlink email system.
  • Use all APRS capabilities offered by YAAC.
  • Use the AX.25 tools to perform basic packet operations such connecting to a BBS.

Important Notes

  • You have an external WiFi USB adapter installed and followed the base installation described in Offgrid Raspberry Pi Setup. The onboard WiFi and Bluetooth do not play well together, so the external WiFi adapter is strongly recommended.

  • You need to connect your Pi to an ethernet network as we need temporary access to the Internet for this installation.

  • Your OK with my philosophy of only installing what is required. No more, no less.

  1. (Optional) Connect your GPS dongle.

  2. Log into your Pi using a VNC client.

  3. Open a terminal and run the following command to start the Build a Pi installer. Build-A-Pi 3.1.2 was used at the time of this writing.

$ git clone https://github.com/km4ack/pi-build.git \
  $HOME/pi-build && bash $HOME/pi-build/build-a-pi
  1. Enter your call sign when prompted.

  2. Under Base Applications, select:

    • GPS
    • AX25
  3. Configure your GPS.

  4. Skip the FLDIGI Suit. There will be a future article where we add this suite to our packet station.

  5. Under Ham Applications, select:

    • PAT
    • YAAC
  6. Provide your Winlink details.

  7. Skip the Utilities. There will be a future article where we install BPQ.

  8. After the install, click the "Exit" button.

  9. Open a web browser on the Pi and visit Pat at http://localhost:8080. This is needed so that Pat can fetch the latest RMS gateways. You should see a message in the console when the RMS gateway list is downloaded. This is also a good time to test a quick Telnet session to ensure you have basic connectivity to Winlink without using RF.

  10. Disconnect your ethernet cable and reboot. Internet access is no longer required.

Post Installation Configuration and Testing

Note: No Internet access is required for this section.

Perquisites

  1. Ensure that your radio has already been configured to work with your Mobilinkd TNC.

  2. Ensure that your radio is turned on.

  3. Ensure that your Mobilinkd is turned on and is not paired to any other device such as your phone.

  4. Tune your radio to the appropriate frequency (145.710) Remember, there is no CAT control

Bluetooth Paring

In general, you should only need to pair the Moblink TNC once with your Pi.

  1. Log into the Pi via VNC.

  2. Click the Bluetooth icon in the toolbar and select "Add Device..."

  3. Select "Mobilinkd TNC", then click "Pair". Enter "1234" as the pin.

You will receive this message: “Paired successfully, but this device has no services which can be used with the Raspberry Pi.” This is not a problem and a sign that things are working correctly.

Create a KISS Port

Any time you wish to perform packet work you will need to create a KISS port. These steps should be run on every startup.

I have not yet created a startup script to do this, so it's a manual process for now.

  1. Open a terminal and scan for the available Bluetooth devices.
$ hcitool scan
Scanning ...
20:19:09:24:06:09 Mobilinkd TNC2
  1. Copy the MAC address (i.e. 20:19:09:24:06:09) for your Mobilinkd and paste it as the last argument to the rfcomm command.

    $ sudo rfcomm connect /dev/rfcomm0 20:19:09:24:06:09
    Connected /dev/rfcomm0 to 20:19:09:24:06:09 on channel 1
    Press CTRL-C for hangup
  2. Open a new terminal and attach the KISS device.

$ sudo kissattach /dev/rfcomm0 wl2k