ECOM Digital Station – Part 4 ARDOP and PAT WinLink Client
I’ll start with ARDOP I’m using LA4TTA’s procedure and the procedure on LA5NTA’s GIT Hub page as a guide but will detail the exact steps I used here.
1 2 3 4 |
mkdir piadropc cd piadropc wget http://www.cantab.net/users/john.wiseman/Downloads/Beta/piardopc chmod +x piardopc |
Find audio device with arecord -l and aplay -l Looking for card number. With mine it says card 1 yours may be different
Run in terminal with
1 |
./piardopc 8515 plughw:1,0 plughw:1,0 |
plughw:1,0 plughw:1,0 is the capture device and the playback device change it to yours. In my case since I’m using a homebrew version of a signal link I have to add a -R at the end to make it send a tone on the right channel to key the radio.
The next step is to install the linux rig control daemon that will allow PAT and ARDOP to control the radio.
1 |
sudo apt install libhamlib-utils |
Let’s assume for a minute that you’re going to control a Icom IC-706MKIIg connected via usb on /dev/ttyUSB0
, 9600 baud.
Get a list of radio identifiers:
1 |
rigctl -l |
The ic-706mkiig is listed with id 311.
Start the daemon: -r /dev/ttyUSB0 is the port your radio is connected to and -s is the serial port speed
1 |
rigctld -m 311 -r /dev/ttyUSB0 -s 9600 |
That’s it, just leave the daemon running, we will make a script later that will start everything up with one command for simplicity.
Now onto PAT. Get the download link from the Git page and down load either through the browser or using wget like we did with piardopc I would suggest you download it to the Downloads directory to keep every thing in the same spot. Then install it.
1 |
sudo dpkg -i pat_0.6.1_linux_armhf.deb |
Once it has installed we can start configuring PAT.
1 |
pat configure |
Now starting with the top stanza fill in your callsign, winlink password, and locator. The locator isn’t required.
1 2 3 4 |
"mycall": "n0call", "secure_login_password": "PaSsWoRd", "auxiliary_addresses": [], "locator": "ZZ99zz", |
Next add your radio
1 2 |
"hamlib_rigs": { "ic-706": {"address": "localhost:4532", "network": "tcp"} }, } |
Now to configure ARDOP in PAT add your radio name you defined above to the ARDOP stanza.
1 2 3 4 5 6 7 8 9 10 11 |
"ardop": { "addr": "localhost:8515", "arq_bandwidth": { "Forced": false, "Max": 500 }, "rig": "ic-706", "ptt_ctrl": false, "beacon_interval": 0, "cwid_enabled": true }, |
To save the configuration hit CTRL-X then Y
Now the script to start it all up.
1 |
nano start_winlink.sh |
Paste this into the editor and change the values to match your radio and sound card.
1 2 3 4 5 6 7 8 9 10 11 12 |
#!/bin/bash #This script starts up all the various pieces of software we #need to start up our Winlink ARDOP gateway. # Start the Rig Control daemon and send it to the background nohup rigctld -m 311 -r /dev/ttyUSB0 -s 9600 &>/dev/null & #Start the ARDOP modem and send it to the background nohup ./piardopc/piardopc 8515 plughw:1,0 plughw:1,0 &>/dev/null & #Start the PAT http interface pat http |
Now save it with CTRL-X and Y then make it executable
1 |
chmod +x start_winlink.sh |
To run it type the following then in your web browser go to http://localhost:8080 if your on the PI otherwise it will be the PI’s IP address instead of “localhost”. You should see the PAT web interface come up.
0 Comments on “ECOM Digital Station – Part 4 ARDOP and PAT WinLink Client”