<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Packet on Andrew's Memory Blog</title><link>https://andrewmemory.acornwall.net/tags/packet/</link><description>Recent content in Packet on Andrew's Memory Blog</description><generator>Hugo -- gohugo.io</generator><image><url>https://andrewmemory.acornwall.net/img/rss_image.png</url><title>Packet 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>Thu, 31 Mar 2016 23:25:27 -0700</lastBuildDate><atom:link href="https://andrewmemory.acornwall.net/tags/packet/index.xml" rel="self" type="application/rss+xml"/><item><title>Turning a Raspberry Pi 2 into a packet station</title><link>https://andrewmemory.acornwall.net/blog/2016-03-31-turning-a-raspberry-pi-2-into-a-packet-station/</link><pubDate>Thu, 31 Mar 2016 23:25:27 -0700</pubDate><author>andrewmemoryblog@gmail.com (Andrew's Memory Blog)</author><guid>https://andrewmemory.acornwall.net/blog/2016-03-31-turning-a-raspberry-pi-2-into-a-packet-station/</guid><description>&lt;p&gt;I keep thinking it&amp;rsquo;s a good idea for emergency communications to have a packet station. Since I&amp;rsquo;m cheap, I didn&amp;rsquo;t want to get extra hardware - instead I wanted to use what I had. Luckily, Dire Wolf is better than any hardware packet decoder out there. Here&amp;rsquo;s how I got a working packet station on a Pi 2 running Raspbian Jessie Lite.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Connect the radio to the Pi. In my case, I had a spare Signalink SL1+ hanging around which made things easier. I  bought a &lt;a href="http://www.amazon.com/external-Adapter-Windows-Microphone-SD-CM-UAUD/dp/B001MSS6CS" target="_blank" rel="noreferrer"&gt;Syba CMedia USB sound card&lt;/a&gt; to talk from the Pi to the Signalink, and a &lt;a href="http://www.ebay.com/itm/371536438103" target="_blank" rel="noreferrer"&gt;Kenwood speaker mic cable&lt;/a&gt; to talk from the Signalink to the radio. Here&amp;rsquo;s a useful hint: the diameter of the wires in the speaker mic cable are roughly the same as the diameter of the wires in regular Ethernet cable - meaning that you can (if you&amp;rsquo;re careful) strip the outer jacket, put the inner wires in the right places of an RJ-45 connector and crimp direct to them with no soldering at all.&lt;/li&gt;
&lt;li&gt;Download and build Dire Wolf. Instructions for doing so on a Pi are &lt;a href="https://github.com/wb2osz/direwolf/blob/master/doc/Raspberry-Pi-APRS.pdf" target="_blank" rel="noreferrer"&gt;here&lt;/a&gt;. I mounted my home directory on a networked drive to make life easier.&lt;/li&gt;
&lt;li&gt;Configure Dire Wolf with your callsign (I used the SSID -15 after my call) and sound card. Be sure to avoid the &amp;ldquo;# ADEVICE - plughw:1,0&amp;rdquo; line - it looks a lot like the correct &amp;ldquo;ADEVICE  plughw:1,0&amp;rdquo; line, but takes input from stdin instead of the sound card.&lt;/li&gt;
&lt;li&gt;Run &amp;ldquo;direwolf&amp;rdquo; and tune the radio to 144.390 (APRS). Make sure you&amp;rsquo;re decoding packets. You might have to go to alsamixer and adjust input/output. Mine ended up being 51 for speaker, 29 and 12 for mic. Also adjust the radio volume so it&amp;rsquo;s not too high or too low. (Hit F6 to get your sound card, then F5 to see all devices. I&amp;rsquo;m not sure which mic I was using; I had two - a stereo and a mono one. The mono one was 29, the stereo one was 12.) It&amp;rsquo;s probably a good idea to turn off the squelch on the radio as well.&lt;/li&gt;
&lt;li&gt;sudo apt-get install ax25-tools ax25-apps&lt;/li&gt;
&lt;li&gt;Edit /etc/ax25/axports and set one line to: vhf   &lt;em&gt;mycall&lt;/em&gt;-15 1200 255 2 VHF link (1200 bps)&lt;/li&gt;
&lt;li&gt;Make sure all the other lines in axports have # in front of them (it doesn&amp;rsquo;t like blank lines).&lt;/li&gt;
&lt;li&gt;Run &amp;ldquo;direwolf -p&amp;rdquo; to get the KISS port. It will show up as something like /dev/pts/2. Once it&amp;rsquo;s running, move to another terminal window.&lt;/li&gt;
&lt;li&gt;Change frequency to the freq that you&amp;rsquo;re going to use.&lt;/li&gt;
&lt;li&gt;sudo /usr/sbin/kissattach /dev/pts/2 vhf &lt;em&gt;(your IP address in AMPR 44.0.0.0)&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;sudo /usr/sbin/kissparms -p vhf -t 200 -s 20 -r 64 -l 50 -f n These parameters took a little tweaking. If the transmit delay (-t) was too big, things timed out. If it was too small, things stepped on each other. I had to adjust transmit tail delay as well (-l). I found &lt;a href="http://www.choisser.com/packet/part14.html" target="_blank" rel="noreferrer"&gt;this page&lt;/a&gt; useful for some values.&lt;/li&gt;
&lt;li&gt;sudo route del -net 44.0.0.0 netmask 255.0.0.0 (because I&amp;rsquo;d set up a route beforehand and needed to nuke it)&lt;/li&gt;
&lt;li&gt;sudo /sbin/route add -net 44.0.0.0 netmask 255.0.0.0 dev ax0&lt;/li&gt;
&lt;li&gt;ping -i 10 &lt;em&gt;(someone else&amp;rsquo;s IP who also has a machine on the AMPR 44.0.0.0 net)&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Assuming that works, you might want to apt-get install telnet telnetd talk talkd and try to log into your friend&amp;rsquo;s machine or have your friend log into yours.&lt;/li&gt;
&lt;li&gt;Last but not least: I ran into problems with arp. I increased the arp timeout in /etc/sysctl.d/local.conf:&lt;code&gt;net.ipv4.neigh.default.base_reachable_time_ms=1200000&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;</description></item></channel></rss>