Installing Direwolf on Raspberry Pi 3 Model B+
https://orari.or.id/index.php/2019/09/0 ... ham-radio/
Hamlib needs to be built and installed first:-
Code: Select all
cd Downloads
wget https://sourceforge.net/projects/hamlib/files/hamlib/3.3/hamlib-3.3.tar.gz
tar -zxvf hamlib-3.3.tar.gz
cd hamlib-3.3
./configure --prefix=/usr/local --enable-static
make
sudo make install
sudo ldconfig
reboot
Then Direwolf needs to be built and installed:-
Code: Select all
su
cd /usr/src (actually this can be Downloads as well)
git clone http://github.com/wb2osz/direwolf
cd direwolf
apt install cmake hamlib-utils libhamlib-utils libgps-dev libusb-dev libasound2-dev
mkdir build
cd build
cmake ..
make -j4
sudo make install
make install-conf
This should see hamlib and direwolf install, albeit with some minor warnings (hamlib snprintf especially). Plug the IC-705 into the Raspberry or Rock64 and check if the radio is recognized as a sound device:-
Note the card and device number for the device association with the IC-705. This can be card 3, device 0, for instance. It should be the same for both aplay and arecord listing. Note that the card number may change with reboots. This is quite inconvenient and I'll have to look into how to prevent this or find out what conditions are leading to this change.
Also find out which are your COM ports:-
In my case, this is ttyACM0 and ttyACM1. To gain access to this device, you probably need to add your user to the dialout group as follows:-
Code: Select all
sudo usermod -a -G dialout $USER
sudo reboot
There should now be a direwolf.conf in your home directory. We will need to edit this:-
The basic changes you will have to make are as follows:-
Code: Select all
ADEVICE plughw:3,0 (card 3, device 0 in my case)
MYCALL 9V1ZV-2
PTT /dev/ttyACM0 RTS
TXDELAY 30
TXTAIL 10
FIX_BITS 1
CDIGIPEAT 0 0
CBEACON dest="BEACON" sendto=0
Note that your may want to append a suffix to your callsign here (called an SSID) so that Direwolf can be addressed separately from your terminal callsign. In my case, I tend to use -1 for the mailbox so I will use -2 for the Digipeater.
You should have the IC-705 plugged into the SBC (Raspberry Pi or Rock64) and reboot the board. You can then start the Direwolf server:-
If there are no errors, you should see something like this:-
Code: Select all
Dire Wolf version 1.6
Includes optional support for: hamlib cm108-ptt
Reading config file direwolf.conf
Audio device for both receive and transmit: plughw:3,0 (channel 0)
Channel 0: 1200 baud, AFSK 1200 & 2200 Hz, E+, 44100 sample rate / 3.
Ready to accept KISS TCP client application 0 on port 8001 ...
Ready to accept AGW client application 0 on port 8000 ...
Attached to AGW client application 0...
Ready to accept AGW client application 1 on port 8000 ...
If the SBC has an IP of 192.168.0.20 you can enter this IP address into your terminal program. In my case, I am using the UZ7HO EasyTerm so I put this into the "Station Setup" -> "TNC Setup" -> "Host" and it should work if you're on the same sub-net.
To start Direwolf at boot, follow the instructions in this page:-
https://www.marrold.co.uk/2019/04/insta ... ry-pi.html
If making Direwolf a service, remember to change the "User" parameter in the script to reflect your user (rock64 in my case).
Note that the Direwolf screen will report the audio level of the received signal.
This should ideally be in the 45-55 region.
On Linux machines, the device number for your soundcard may sometimes change, thus leading to a failed start. If you have it working and then suddenly stop working, do an "aplay -l" to ensure that the device number for the sound card is still the same.