wfview: headless server (v2.25)

As the build instructions changed with the latest versions of wfview (v2.25+) the previous article was updated and re-released here.

I wanted to control my Icom IC-705 from the local network or over the Internet (using a VPN to connect to my local network).

I’ve made mixed experiences with the Icom RS-BA1 v2 software, that sometimes works perfectly but on other devices or other network "configurations" is unable to connect properly.

So I stumbled upon the software wfview that is an application developed by amateur radio enthusiasts to control modern Icom rigs using either a USB serial or network connection (ethernet or WiFi). Furthermore, it is free and open source software.

As I have a Raspberry Pi device in my shack I wanted to use it also for this purpose. The Raspberry Pi is running Raspberry Pi OS Lite - without a graphical user interface respectively in headless mode.

The specs of the used Raspberry Pi and the OS are:
Model: Raspberry Pi Compute Module 5 Rev 1.0
RAM: 4GB
OS: Raspberry Pi OS Lite (trixie)
OS System: 64-bit
OS Kernel version: 6.18
Debian version: 13 (trixie)

As wfview doesn’t provide downloadable binaries for Linux and Raspberry Pi based devices and I also wanted to run wfview in server mode, I had to compile it on my own. A short guide how to do that can be found under https://wfview.org/download/#source or https://github.com/wf-group/wfview/blob/master/WFSERVER.md.

Basically I had to take the following steps:

# Create directories and set file rights
sudo mkdir -p /opt/wfview/
sudo mkdir -p /opt/wfview/build-wfserver
sudo chown -R pi:pi /opt/wfview

# Install dependencies
sudo apt update
sudo apt install build-essential git qmake6 \
    qt6-base-dev qt6-serialport-dev qt6-multimedia-dev \
    libpulse-dev librtaudio-dev libopus-dev libeigen3-dev

# Install additional dependencies
sudo apt install qt6-websockets-dev qt6-serialport-dev \
    qt6-multimedia-dev libqcustomplot2.1

# Change the directory
cd /opt/wfview/

# Clone the repository
git clone https://github.com/wf-group/wfview.git repository

# Change the directory
cd /opt/wfview/repository/
git checkout v2.25

# Change the directory
cd /opt/wfview/build-wfserver

sudo qmake6 ../repository/wfserver.pro
make -j$(($(nproc)/2))

# Copy compiled binary
sudo cp ./wfserver /usr/local/bin/wfserver

# Test successful compilation and installation
command -v wfserver
# /usr/local/bin/wfserver

/usr/local/bin/wfserver -v
# wfserver version: 2.11 (Git:09856854 on Oct  6 2026 at 22:00:00 by pi@raspberry) (1)
# Operating System: Debian GNU/Linux 13 (trixie) (arm64)
# Build Qt Version 6.8.2. Current Qt Version: 6.8.2
  1. When building wfserver the displayed version may be wrong. Via the displayed git hash one can identify the actual version. To check the hashes have a look at the git repository.

Now the binaries built successfully!

Next step is to connect the Icom radio with the Raspberry Pi: In my setup that is an Icom IC-705 connected via USB cable. The radio provides two serial connections.

To avoid later re-configurations I decided to have this serial connections named related to device. This will be done using custom udev rules. Another advantage is that we’ll be able to restart the wfserver service when a device reconnects later on.

But first we need to find out something more about the device and to use that for the rules:

# The IC-705 connected via USB provides two serial connections
ls -la /dev/ttyACM*
# crw-rw---- 1 root dialout 166, 0 Dec 28 08:00 /dev/ttyACM0
# crw-rw---- 1 root dialout 166, 1 Dec 28 08:00 /dev/ttyACM1
sudo udevadm test /dev/ttyACM0
...
ID_BUS=usb
ID_MODEL=IC-705
ID_MODEL_ENC=IC-705
ID_MODEL_ID=0036 (1)
ID_SERIAL=Icom_Inc._IC-705_IC-705_12345578
ID_SERIAL_SHORT=IC-705_12345578
ID_VENDOR=Icom_Inc.
ID_VENDOR_ENC=Icom\x20Inc.
ID_VENDOR_ID=0c26 (2)
ID_REVISION=0100
...
ID_USB_INTERFACE_NUM=00 (3)
ID_USB_DRIVER=cdc_acm
...

sudo udevadm test /dev/ttyACM1
...
ID_BUS=usb
ID_MODEL=IC-705
ID_MODEL_ENC=IC-705
ID_MODEL_ID=0036 (1)
ID_SERIAL=Icom_Inc._IC-705_IC-705_12345578
ID_SERIAL_SHORT=IC-705_12345578
ID_VENDOR=Icom_Inc.
ID_VENDOR_ENC=Icom\x20Inc.
ID_VENDOR_ID=0c26 (2)
ID_REVISION=0100
...
ID_USB_INTERFACE_NUM=02 (3)
ID_USB_DRIVER=cdc_acm
...
  1. Model identifier

  2. Vendor identifier

  3. Interface number

Now we create a udev rule under /etc/udev/rules.d/90-wfserver.rules

/etc/udev/rules.d/90-wfserver.rules
ACTION=="add", KERNEL=="ttyACM*", SUBSYSTEMS=="usb", ATTRS{idVendor}=="0c26", ATTRS{idProduct}=="0036", ENV{ID_USB_INTERFACE_NUM}=="00", SYMLINK+="icom-ic-705-portA-CI-V", RUN+="service wfserver restart"
ACTION=="add", KERNEL=="ttyACM*", SUBSYSTEMS=="usb", ATTRS{idVendor}=="0c26", ATTRS{idProduct}=="0036", ENV{ID_USB_INTERFACE_NUM}=="02", SYMLINK+="icom-ic-705-portB"

Now disconnect and reconnect the Icom device and check if the rules worked as expected:

# The IC-705 connected via USB provides two serial connections
ls -la /dev/icom*
# lrwxrwxrwx 1 root root 7 Dec 28 08:00 /dev/icom-ic-705-portA-CI-V -> ttyACM0
# lrwxrwxrwx 1 root root 7 Dec 28 08:00 /dev/icom-ic-705-portB -> ttyACM1

Next step is the wfserver configuration - basically the rig itself and the credentials. Change to your needs accordingly:

/opt/wfview/wfserver.conf
[General]
AudioSystem=1
Manufacturer=0

[Radios]
1\AudioInput="USB Audio CODEC: - (hw:2,0)"
1\AudioOutput="USB Audio CODEC: - (hw:2,0)"
1\ForceRTSasPTT=false
1\GUID={8b520db4-2918-4844-a5a3-5d1409b4d136} (1)
1\PTTType=0
1\RigCIVuInt=164 (2)
1\RigName=IC-705
1\SerialPortBaud=115200
1\SerialPortRadio=/dev/icom-ic-705-portA-CI-V (3)
1\WaterfallFormat=0
size=1

[Server]
ServerAudioPort=50003
ServerCivPort=50002
ServerControlPort=50001
ServerEnabled=true
Users\1\Username=username (4)
Users\1\Password=pass1234 (5)
Users\1\UserType=0
Users\size=1
  1. A generic UUID only to separate multiple devices - generate your own at https://www.uuidgenerator.net/version4

  2. The CI-V address of the device. For the IC-705 this is A4 as default (in hexadecimal notation) which corresponds to 164 in decimal notation

  3. The CI-V port we configured in the previous steps

  4. The username used by clients

  5. The password used by clients

Finally, we create a system.d service unit under /opt/wfview/wfserver.service:

/opt/wfview/wfserver.service
[Unit]
Description=wfview Server
After=network.target
StartLimitIntervalSec=0

[Service]
Type=simple
Restart=always
RestartSec=1
User=pi
ExecStart=/usr/local/bin/wfserver --settings /opt/wfview/wfserver.conf --logfile /opt/wfview/wfserver.log

[Install]
WantedBy=multi-user.target

And now we register and start the service unit:

# Register the service
sudo systemctl enable /opt/wfview/wfserver.service
# Created symlink /etc/systemd/system/wfserver.service → /opt/wfview/wfserver.service.
# Created symlink /etc/systemd/system/multi-user.target.wants/wfserver.service → /opt/wfview/wfserver.service.

# Start the service
sudo service wfserver start

# Check if the service is running
sudo service wfserver status

To check for errors you can use the following commands:

sudo journalctl -xef -u wfserver

tail -f /opt/wfview/wfserver.log

On the remote device now install wfview (see https://wfview.org/download/) and use the IP of the Raspberry Pi device, the configured port, username and password (see /opt/wfview/wfserver.conf) to establish a connection.

wfview headless connected
Connected wfview to wfserver running on the Raspberry Pi