Configure the agent
Service address. The QSP service is at
qspradio.top. It is not open to the public yet (see the status).
The agent reads /etc/qsp-agent/config.toml. Edit it as root:
sudoedit /etc/qsp-agent/config.toml
Name and description
name = "My Station"
description = "Remote HF station"
Connection to the QSP service
Put the service address, and the agent ID and secret from Register your station, in the [signaling_server] section:
[signaling_server]
url = "wss://qspradio.top/signaling/server/session"
agentId = "YOUR_AGENT_ID"
agentSecret = "YOUR_AGENT_SECRET"
For another QSP service, such as your own instance, replace qspradio.top with its address.
TLS. The agent does not support
wss://yet, only plainws://. Until it does, an agent can only reach a service overws://, which the TLS-only address above does not offer. This page shows the URL of the hosted service as it will be once the agent supports it.
If the agent loses its connection, it retries by itself with growing delays, so you do not need to restart it.
Your transceiver
[transceiver]
model = 1
[transceiver.port]
rig_pathname = "/dev/ttyUSB0"
serial_speed = "115200"
modelis the Hamlib model number of your radio (rigctl --listshows them, aftersudo apt install libhamlib-utils; or see the list of supported radios). The value1is Hamlib’s dummy radio, which is handy to test the connection without a real rig.rig_pathnameis the serial device of your CAT cable andserial_speedits speed. These entries are passed straight to Hamlib, so use the parameters Hamlib documents for your radio and connection type.
Audio
The agent uses the system’s default audio input device.
Permissions for the serial port
The service runs as the qsp-agent user. If your radio shows up as /dev/ttyUSB0 or under /dev/serial/, that user may need to be in the dialout group to open it, and in the audio group to capture sound:
sudo usermod -aG dialout,audio qsp-agent
Then continue with Run as a service.