<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Soundmodem on Andrew's Memory Blog</title><link>https://andrewmemory.acornwall.net/tags/soundmodem/</link><description>Recent content in Soundmodem on Andrew's Memory Blog</description><generator>Hugo -- gohugo.io</generator><image><url>https://andrewmemory.acornwall.net/img/rss_image.png</url><title>Soundmodem on Andrew's Memory Blog</title><link>https://andrewmemory.acornwall.net/</link></image><language>en</language><managingEditor>andrewmemoryblog@gmail.com (Andrew's Memory Blog)</managingEditor><webMaster>andrewmemoryblog@gmail.com (Andrew's Memory Blog)</webMaster><copyright>Copyright 2009--2025</copyright><lastBuildDate>Sun, 22 Mar 2015 19:55:50 -0700</lastBuildDate><atom:link href="https://andrewmemory.acornwall.net/tags/soundmodem/index.xml" rel="self" type="application/rss+xml"/><item><title>Setting up Direwolf/Xastir on a Raspberry Pi</title><link>https://andrewmemory.acornwall.net/blog/2015-03-22-setting-up-direwolfxastir-on-a-raspberry-pi/</link><pubDate>Sun, 22 Mar 2015 19:55:50 -0700</pubDate><author>andrewmemoryblog@gmail.com (Andrew's Memory Blog)</author><guid>https://andrewmemory.acornwall.net/blog/2015-03-22-setting-up-direwolfxastir-on-a-raspberry-pi/</guid><description>&lt;p&gt;A long time ago I &lt;a href="https://andrewmemory.acornwall.net/tags/soundmodem/" &gt;set up Soundmodem&lt;/a&gt; for Ubuntu. Recently, I tried setting up an igate using WB2OSZ&amp;rsquo;s &lt;a href="https://github.com/wb2osz/direwolf/" target="_blank" rel="noreferrer"&gt;Direwolf&lt;/a&gt; instead. Things are much nicer these days.&lt;/p&gt;
&lt;p&gt;The Direwolf site includes a very nice guide to &lt;a href="https://github.com/wb2osz/direwolf/blob/master/doc/Raspberry-Pi-APRS.pdf" target="_blank" rel="noreferrer"&gt;setting up a Raspberry Pi as an igate&lt;/a&gt;, so I won&amp;rsquo;t go over it here. Instead, this is just to record the steps I took to set up my Raspberry Pi v2 as an igate server.&lt;/p&gt;
&lt;p&gt;1. &lt;a href="https://andrewmemory.acornwall.net/blog/2015-02-26-setting-up-raspbian-on-a-pi/" &gt;Set up the Raspberry Pi to run Raspbian&lt;/a&gt;&lt;/p&gt;
&lt;ol start="2"&gt;
&lt;li&gt;Follow along with the setup guide:&lt;/li&gt;
&lt;/ol&gt;
&lt;figure class="highlight"&gt;
&lt;pre tabindex="0"&gt;&lt;code class="language-" data-lang=""&gt;sudo apt-get remove --purge pulseaudio # I didn&amp;#39;t need to do this since it wasn&amp;#39;t installed, but better safe than sorry
sudo apt-get install libasound2-dev xastir # Note that I&amp;#39;m installing xastir at the same time - this is different from the direwolf guide
cd ~
git clone https://www.github.com/wb2osz/direwolf
cd direwolf
git checkout 1.2
make
sudo make install
make install-rpi
make install-conf&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Next, make sure the sound card is plugged into USB (I used the bottom slot). When I plugged it in, the system rebooted, so it&amp;rsquo;s probably smart to shut down before plugging the sound card in. For a sound card, I used the &lt;a href="www.amazon.com/Syba-SD-CM-UAUD-Adapter-C-Media-Chipset/dp/B001MSS6CS" &gt;Syba SD-CM-UAUD USB Stereo Audio Adapter, C-Media Chipset from Amazon&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;From there, run &lt;code&gt;aplay -l&lt;/code&gt; to see: &lt;code&gt;card 1: Device [C-Media USB Audio Device], device 0: USB Audio [USB Audio]&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Now I know the device is card 1 device 0. We&amp;rsquo;re almost ready to edit direwolf.conf. First, though - something that wasn&amp;rsquo;t documented on the Direwolf site. Igates need a secret code so they can log into the tier 2 servers. It&amp;rsquo;s based on your callsign, and there&amp;rsquo;s a utility called callpass in Xastir that will compute it for you. &lt;code&gt;callpass {my-real-call}&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This gives you a 5 or 6 digit integer that you should remember. I&amp;rsquo;ll call it {my-code}.&lt;/p&gt;
&lt;p&gt;Now edit direwolf.conf:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;uncomment ADEVICE plughw:1,0 - if you got a different number from aplay above, you might have to modify it.&lt;/li&gt;
&lt;li&gt;change MYCALL NOCALL to MYCALL {my-real-call}-10. I used -10 because that&amp;rsquo;s the APRS SSID for igates. (&lt;a href="http://aprs.org/aprs11/SSIDs.txt" target="_blank" rel="noreferrer"&gt;APRS SSIDs are documented here&lt;/a&gt;.) In the direwolf.conf that I got, the NOCALL had a ^J after it; I had to take that out&lt;/li&gt;
&lt;li&gt;uncomment IGSERVER noam.aprs2.net (maybe use a different server if you&amp;rsquo;re not in North America)&lt;/li&gt;
&lt;li&gt;uncomment IGLOGIN and change it to IGLOGIN {my-real-call} {my code}&lt;/li&gt;
&lt;li&gt;direwolf&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Yay, you&amp;rsquo;re igating. But what&amp;rsquo;s around? Set up Xastir for that:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;xastir&lt;/li&gt;
&lt;li&gt;In the first menu that comes up, set your callsign to {my-real-call}-10 and (if desired) set your lat/long/position ambiguity&lt;/li&gt;
&lt;li&gt;Interface -&amp;gt; Interface Control, Add, Networked AGWPE, Add. Leave Pass-code blank, save and Start. Now you&amp;rsquo;re getting APRS from over the air displayed on your Xastir maps.&lt;/li&gt;
&lt;li&gt;Not enough for you? Interface -&amp;gt; Interface Control, Add, Internet Server, Add. Set Pass-code to {my-code}, save and Start. Now you&amp;rsquo;re getting APRS from the network as well.&lt;/li&gt;
&lt;li&gt;Want to see it on maps? I wasn&amp;rsquo;t able to get all the maps going, but things worked when I picked Maps -&amp;gt; Map Chooser and selected only Online/osm_tiled_mapnik.geo and worldhi.map.&lt;/li&gt;
&lt;/ol&gt;</description></item><item><title>Setting up soundmodem on Ubuntu 10.04</title><link>https://andrewmemory.acornwall.net/blog/2011-06-29-setting-up-soundmodem-on-ubuntu-10-04/</link><pubDate>Wed, 29 Jun 2011 22:23:42 -0700</pubDate><author>andrewmemoryblog@gmail.com (Andrew's Memory Blog)</author><guid>https://andrewmemory.acornwall.net/blog/2011-06-29-setting-up-soundmodem-on-ubuntu-10-04/</guid><description>&lt;p&gt;After a long delay, I finally decided to upgrade to 10.04 LTS and get soundmodem running again.&lt;/p&gt;
&lt;p&gt;Luckily, there was help this time. I started with my config, and merged with this post: &lt;a href="http://ubuntuforums.org/showthread.php?p=10864691" target="_blank" rel="noreferrer"&gt;ubuntuforums.org/showthread.php?p=10864691&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;rsquo;s the config I ended up using:&lt;/p&gt;
&lt;p&gt;Configuration: AX.25 IO: Mode: soundcard Audio Driver: /dev/dsp Half Duplex: selected PTT Driver: none&lt;/p&gt;
&lt;p&gt;Channel Access: TxDelay: 150 Slot Time: 100 P-Persistence: 40 Full Duplex: not selected TxTail: 10&lt;/p&gt;
&lt;p&gt;Channel 0: Modulator: Mode: afsk Bits/s: 1200 Freq 0: 1200 Freq 1: 2200 Differential: selected&lt;/p&gt;
&lt;p&gt;Demodulator: Mode: afsk Bits/s: 1200 Freq 0: 1200 Freq 1: 2200 Differential: selected&lt;/p&gt;
&lt;p&gt;Packet IO: Mode: MKISS Interface: sm0 Callsign: mycall IP address: 10.0.0.1 Network mask: 255.255.255.0 Broadcast addr: 10.0.0.255&lt;/p&gt;
&lt;p&gt;I also set up /etc/ax25/axports to have:&lt;/p&gt;
&lt;figure class="highlight"&gt;
&lt;pre tabindex="0"&gt;&lt;code class="language-" data-lang=""&gt;sm0 mycall 1200 255 7 144.39 APRS (1200 bps)&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Finally, I made sure Avahi was set to ignore sm0. This is easier than it was &lt;a href="https://andrewmemory.acornwall.net/blog/2009-10-17-radio-packet-soundmodem-losing-the-squeaks/" &gt;prevously&lt;/a&gt; - now you just add:&lt;/p&gt;
&lt;figure class="highlight"&gt;
&lt;pre tabindex="0"&gt;&lt;code class="language-" data-lang=""&gt;deny-interfaces=sm0&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;to /etc/avahi/avahi-daemon.conf&lt;/p&gt;
&lt;p&gt;Once that&amp;rsquo;s done, don&amp;rsquo;t forget to chmod 4755 /usr/bin/xastir so it can open sm0 and things are good.&lt;/p&gt;</description></item><item><title>Compiling soundmodem-0.14 on Ubuntu 9.10</title><link>https://andrewmemory.acornwall.net/blog/2009-11-21-compiling-soundmodem-0-14-on-ubuntu-9-10/</link><pubDate>Sat, 21 Nov 2009 00:00:47 -0700</pubDate><author>andrewmemoryblog@gmail.com (Andrew's Memory Blog)</author><guid>https://andrewmemory.acornwall.net/blog/2009-11-21-compiling-soundmodem-0-14-on-ubuntu-9-10/</guid><description>&lt;p&gt;The soundmodem that ships with Ubuntu 9.10 is not the latest. The latest is available here:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.baycom.org/~tom/ham/soundmodem/" target="_blank" rel="noreferrer"&gt;http://www.baycom.org/~tom/ham/soundmodem/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In order to compile it, you need to install a bunch of development packages. Here&amp;rsquo;s what I did:&lt;/p&gt;
&lt;figure class="highlight"&gt;
&lt;pre tabindex="0"&gt;&lt;code class="language-" data-lang=""&gt;sudo aptitude install libasound2-dev
sudo aptitude install libxml2-dev
sudo aptitude install libgtk2.0-dev
sudo aptitude install libaudiofile-dev&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Also, if you don&amp;rsquo;t have the compiler already you&amp;rsquo;ll need:&lt;/p&gt;
&lt;figure class="highlight"&gt;
&lt;pre tabindex="0"&gt;&lt;code class="language-" data-lang=""&gt;sudo aptitude install g&amp;#43;&amp;#43;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Then:&lt;/p&gt;
&lt;figure class="highlight"&gt;
&lt;pre tabindex="0"&gt;&lt;code class="language-" data-lang=""&gt;tar xzvf soundmodem-0.14.tar.gz
cd soundmodem-0.14
sh ./configure
make&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;To test it, go to the configapp/src directory and run&lt;/p&gt;
&lt;figure class="highlight"&gt;
&lt;pre tabindex="0"&gt;&lt;code class="language-" data-lang=""&gt;sudo ./soundmodemconfig&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;to set up the configuration. Finally, go to the soundcard directory and run:&lt;/p&gt;
&lt;figure class="highlight"&gt;
&lt;pre tabindex="0"&gt;&lt;code class="language-" data-lang=""&gt;sudo ./soundmodem -v5&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;Assuming you&amp;rsquo;ve configured everything correctly, you should see something like:&lt;/p&gt;
&lt;figure class="highlight"&gt;
&lt;pre tabindex="0"&gt;&lt;code class="language-" data-lang=""&gt;sm[10093]: mkiss: ifname sm0 mtu 256 hwaddr CALLSIGN-0 ipaddr 10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255
sm[10093]: unknown node &amp;#34;text&amp;#34;
ALSA: Using sample rate 9600, sample format 2, significant bits 16, buffer size 4800, period size 150
ALSA: Using sample rate 9600, sample format 2, significant bits 16, buffer size 4800, period size 150
sm[10093]: audio: starting &amp;#34;plughw:0,0&amp;#34;&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;In a different terminal, you can then ifconfig sm0 to see that it&amp;rsquo;s there.&lt;/p&gt;</description></item><item><title>Stopping the squeaks with soundmodem as ax.25</title><link>https://andrewmemory.acornwall.net/blog/2009-10-17-radio-packet-soundmodem-losing-the-squeaks/</link><pubDate>Sat, 17 Oct 2009 07:23:59 -0700</pubDate><author>andrewmemoryblog@gmail.com (Andrew's Memory Blog)</author><guid>https://andrewmemory.acornwall.net/blog/2009-10-17-radio-packet-soundmodem-losing-the-squeaks/</guid><description>&lt;p&gt;I tried to set up soundmodem as an AX.25 device in order to run xastir on my machine. Unfortunately, Ubuntu by default has a bunch of services installed that prevent this. (Not so much prevent it as try to shove 100k of data through the 1200-baud soundmodem, which kills it and drives you nutty if the audio is turned up.)&lt;/p&gt;
&lt;p&gt;Here&amp;rsquo;s what I did to get around this:&lt;/p&gt;
&lt;p&gt;1. Change /etc/samba/smb.conf to include only the eth0 interface.&lt;/p&gt;
&lt;figure class="highlight"&gt;
&lt;pre tabindex="0"&gt;&lt;code class="language-" data-lang=""&gt;interface = eth0&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;2. Go into /etc/cups/cupsd.conf and turn off broadcasting (instructions &lt;a href="http://lists.pdxlinux.org/pipermail/plug/2007-February/052881.html" target="_blank" rel="noreferrer"&gt;here&lt;/a&gt;):&lt;/p&gt;
&lt;figure class="highlight"&gt;
&lt;pre tabindex="0"&gt;&lt;code class="language-" data-lang=""&gt;# Browsing was on.
#Browsing On
Browsing Off
BrowseInterval 0
# end trying to get around sm0 problem&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;3. Stop the AVAHI daemon by moving /etc/rc5.d/S18avahi-daemon to /etc/rc5.d/K18avahi-daemon and running /etc/rc5.d/K18avahi-daemon stop&lt;/p&gt;
&lt;p&gt;Note that on Ubuntu 9.10, avahi has been moved into Upstart. Stop it with&lt;/p&gt;
&lt;figure class="highlight"&gt;
&lt;pre tabindex="0"&gt;&lt;code class="language-" data-lang=""&gt;sudo stop avahi-daemon&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;then edit /etc/init/avahi-daemon.conf and comment out the&lt;/p&gt;
&lt;figure class="highlight"&gt;
&lt;pre tabindex="0"&gt;&lt;code class="language-" data-lang=""&gt;#start on (filesystem
# and started dbus)&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;figure class="highlight"&gt;
&lt;pre tabindex="0"&gt;&lt;code class="language-" data-lang=""&gt;#respawn&lt;/code&gt;&lt;/pre&gt;
&lt;/figure&gt;</description></item></channel></rss>