Skip to content

royord/raspiGetPat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 

Repository files navigation

raspiGetPat

Requirements

  • Raspbian Light or Raspbian available through RaspberryPi.org
  • Raspberry Pi computer (Any will do).
  • Inexpensive USB Sound Card
  • Elecraft KX3
  • Elecraft KX3 audio cables
  • Elecraft KX4 USB control cable.

https://www.raspberrypi.org/downloads/raspbian/

Setup

  1. Enable SSH by placing a 'ssh' file in the 'boot' drive before starting up the raspberry pi for the first time. This can be done after the flashing has been done by either mounting '/dev/sdX1' and running touch ssh within the directory. From a mac you can use touch /Volumes/boot/ssh, providing that the boot volume is mounted.

  2. set password so that it's not easily hacked.

passwd
  1. Start by updating expanding filesystem. sudo raspi-config expand filesystem

  2. After Reboot update the raspberry pi.

sudo apt-get update
sudo apt-get dist-upgrade -y
  1. Install screen and VIM
sudo apt-get install vim screen git libhamlib-utils libasound2 libasound2-dev golang -y
  1. Add the following lines to ~/.bashrc, reboot after.
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
  1. Start Screen
screen
  1. Download/Install piardopc
wget http://www.cantab.net/users/john.wiseman/Downloads/Beta/piardopc

Connect an USB sound card and run the command arecord -l

This gives me the output:

...
**** List of CAPTURE Hardware Devices ****
card 1: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
...

Remember the card number and navigate to your home folder and open or create the file .asoundrc. " nano .asoundrc " The . in front of the file name is important.

This file should contain the following lines. Just copy and paste, and replace the card number with the output number from arecord.

pcm.ARDOP {
  type rate
   slave {
    pcm "plughw:1,0"
    rate 48000
  }
}

Reference: http://la4tta.blogspot.com/search/label/ardop

  1. Install Direwolf
cd ~
git clone https://www.github.com/wb2osz/direwolf
cd direwolf
make
sudo make install
make install-conf
  1. Install PAT from getpat.io as suggensted with the following command. Please note that this may take some time please be patient with the install.
go get github.com/la5nta/pat
  1. Configure pat by running pat configure make sure to set the following:
"mycall":"<yourCallsign>",
"secure_login_password":"<yourSecretPassword>",
"locator": "<yourGridSquare>",

also under hamlibrig make it look like this

"hamlib_rigs": {
        "kx3":{"address":"localhost:4532","network":"tcp"}
},

If you need help finding your gridsquare use the following site. http://www.levinecentral.com/ham/grid_square.php

If you plan to use the web interface you may want to also change

"http_addr": "localhost:8080",

to

"http_addr": "0.0.0.0:8080",

so that you can use pat from any connected device. Left off with issue installing hamlib, will need to pick it up here.

  • Installing Direwolf
  • Installing PAT
  • Running needed components as a service.
  • on the KX3 you will need to set the baud rate to get a solid connection to the radio using rigctl

Commands that may be useful, need to document how to work with these commands.

arecord -l
aplay -l
./piardopc 8515 hw:1,0 hw:1,0 -c /dev/ttyUSB0 -- working command
rigctld -m 229 -s 38400 -r /dev/ttyUSB0 -v -- Starts rig control.

commands to start Pat: rigctld -m 229 -s 38400 -r /dev/ttyUSB0 -v ./piardopc 8515 plughw:1,0 plughw:1,0 pat http

Sources:

https://github.com/wb2osz/direwolf/blob/master/doc/Raspberry-Pi-APRS.pdf

install of hamlib falls short on the pdf document above:

http://hamlib.sourceforge.net/manuals/1.2.15/_i_n_s_t_a_l_l.html

http://www.cantab.net/users/john.wiseman/Documents/ARDOPC.html http://hamlib.sourceforge.net/manuals/1.2.15/index.html sudo apt-get install firmware-realtek

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages