Skip to content
Martin Hebnes Pedersen edited this page Sep 24, 2017 · 13 revisions

Pat supports the software modem WINMOR TNC for connecting to remote nodes over radio. This documents describes how to set up and use Pat with winmor.

The WINMOR TNC software is not included with Pat. You will need to download and install it separately.

Preparing the TNC

Listen address

The default configuration of winmor only listens for traffic on localhost. If you plan on running Pat and WINMOR on different machines you'll need to ensure that winmor is set up to listen on the correct network interface. A simple solution can be to set it to listen on all interfaces by setting the "TCP Address" to 0.0.0.0 (under WINMOR's "Basic Setup" dialog).

The WINMOR TNC uses port 8500 and 8501 by default.

Audio devices

Configuration of audio devices must be done under WINMOR's "Basic Setup" dialog.

For changes to WINMOR's configuration to take effect, you'll need to restart the application.

Configuring Pat

The next step is to locate the winmor section in Pat's configuration file:

  "winmor": {
    "addr": "localhost:8500",
    "inbound_bandwidth": 1600,
	"ptt_ctrl": false
  },
  ...

Detailed information on each field is described here.

If your radio interface requires PTT control (no vox), make sure you enable rig control.

Usage

You should now be able to connect to a remote winmor station:

$ pat connect winmor:///LA1B

To allow P2P inbound connections, add winmor to the --listen option when running in interactive mode:

$ pat --listen="winmor" interactive
2016/03/09 17:41:29 WINMOR TNC v1.5.7.0 initialized
2016/03/09 17:41:29 Listening for incoming traffic (winmor)...
> _

... or with the web GUI:

$ pat --listen="winmor,ax25,telnet" http
2016/03/09 17:44:04 WINMOR TNC v1.5.7.0 initialized
2016/03/09 17:44:04 Listening for incoming traffic (winmor,ax25,telnet)...
2016/03/09 17:44:04 Starting HTTP service (localhost:8080)...

Running WINMOR under Wine

WINMOR runs great under Wine on x86 32/64-bit Linux.

Users upgrading to wine-1.8 (Debian Stretch) may need to run WINEARCH=win32 wineboot after the upgrade is complete.

The installation process can be somewhat awkward, and the steps may vary with different Wine versions and Linux distros. Here are some tips:

  • Avoid pulseaudio. ALSA works fine.
  • Run it with a 32bit wine prefix. See https://wiki.archlinux.org/index.php/wine#WINEARCH for more info. rm -rf ~/.wine; WINEARCH=win32 wineboot (will delete your current wine installation)
  • You don't need a bleeding edge .NET installation, .NET 2.0 will be sufficient.
  • Winetricks is a great tool for installing .NET 2.0: winetricks dotnet20 (Click cancel if you are prompted to install mono packages)
  • If you're having trouble running the installer, simply copy the installed files from your friend's Windows computer.

Ubuntu/Debian example

# Install wine and winetricks
sudo apt-get install wine winetricks

# Ensure wine is set up with a win32 environment:
rm -rf ~/.wine # Will delete your previously installed wine applications
WINEARCH=win32 wineboot

# Install .NET 2.0
winetricks dotnet20

# Copy a winmor installation into ~/.wine/drive_c/winmor

# Start WINMOR TNC
wine ~/.wine/drive_c/winmor/WINMOR\ TNC.exe

Good luck!