Skip to content

Android

harenber edited this page Dec 27, 2021 · 2 revisions

PACTOR connections with Pat on Android

This Wiki page explains how to make HF (Packet radio should work as well) Winlink connections on Android devices using the SCS PACTOR modems. I assume the reader is familiar how to set up Pat.

Initial Setup

To run Pat with PACTOR on Android you need:

Hardware

  1. A PACTOR modem with Bluetooth support (USB may work as well, but it will work differently and I haven't tested it at all!). I tested this with my DR-7800.
  2. A more-or-less recent Android device (I tested in on a Samsung Galaxy Tab 4)

Software on your Android device

  1. Termux - can be easily installed from the F-Droid app store
  2. An Android Bluetooth/IP bridge. There seem to be none on F-Droid, but I successfully tested both of the following apps from Marek Masár which are available on Google Play (one is the free version, I bought the "Pro" one)
  1. Pat compiled on Android. I will provide a detailed guide in the future.

Packages inside of Termux

Inside of termux you need to install at least the socat package with pkg add socat.

Connecting the modem into the Android ecosystem

This will require three steps, as Termux currently has no Bluetooth support, although there is some work in progress.

  1. connecting the modem to your Android device. The PACTOR modem is a normal, serial Bluetooth device. The procedure how to set up Bluetooth on your modem is described in the DR-7X00 installation guide. Once you've set it up, you should be able to pair your modem to your Android device.
  2. Setting up the Bluetooth/IP bridge. Start one of the apps mentioned before. It will show you a 3-folded screen: two "endpoints" on top and some statistics below. We are interested in the endpoints. On the one side, you select Connect to classic Bluetooth device and on the next screen, you select your PACTOR modem. On the other side, you select Start TCP server. On the next screen, change the port to some number above 1024. I used 8899 here. We need the number later.

Tunneling the Bluetooth device into Termux

Inside Termux, start the following command (replace the port number with the one you have chosen above):

socat pty,link=ttyBT tcp:127.0.0.1:8899 &

This will create a socket in the current directory with the name ttyBT. This is our modem device inside of Termux. The portion of your Pat config.json will look like this (add custom_init_script if needed):

"pactor": {
  "path": "/data/data/com.termux/files/home/ttyBT",
  "baudrate": 115200,
  "rig": "",
  "custom_init_script": ""
  },

Congrats. You can use Pat as on other devices now and send and receive HF e-mails from your Android device :-).