I posted this on Reddit six years ago. I’m reposting it here in case Reddit gets locked behind a login because I want to repeat the project and thought it would be useful to more than just me.

Original Reddit link


So I’ve been at this for about an hour so far with no luck. I have looked through several man pages. So far, I’ve paired the TNC (Kenwood TH-D74a) with the pi via bluetooth, added a port to /etc/ax25/axports and attempted to bring the port up using kissattach. I keep getting port not found in axports error.

I’m guessing I’ve skipped a step somewhere. Of note is that, even though all the AX.25 ancillary files are present, there’s no AX.25 service running. I’m not sure if that’s something that starts at boot or is brought up manually.

So what am I missing?

Update for future googlers/myself when I inevitably forget:

I switched from HamPi to Raspbian per the advice of commenters below. With a fresh install of the OS, here’s what I did:

  1. Do an apt search ax25 and download everything that comes up. However, from my research I think the only things you actually need are libax25 , ax25-tools, and ax25-apps. Note that some of the programs have been renamed vs their names given in man pages, i.e. call becomes axcall, listen becomes axlisten etc. I did a dpkg -L search to see exactly what files were named and where they were saved. Also, the libax25 package did not install the /etc/default/ax25 config file, and did not set up a systemd service. The config file is necesary for the AX.25 interface to run, and the systemd scripts are good for convenience. I got those two things via this page: www.f4fxl.org/ax25-as-a-systemd-service/ . They’re available as a github repo.
  2. Connect the HT to the pi via USB. For some reason when I tried bluetooth it kept saying no services were offered by the radio even though it should use Serial Port Profile and show up accordingly in /dev. This was also the case on Ubuntu running on a desktop. Notably, however, Windows seems to prefer Bluetooth. Make sure the radio is set up correctly, particularly that it is in KISS mode, and that all the data is set to be sent over USB rather than Bluetooth. Also, in my case, there’s a ton of QRM from the USB port and cable on the pi, but since it doesn’t like Bluetooth, that’s my only option.
  3. Create an entry in /etc/ax25/axports according to the comments in the config file. The port name is an arbitrary string, not an interface label like ax0. That label will be created when you run kissattach (hopefully via systemd from the link above). Some programs will want the arbitrary name, and others will want the interface label you would normally expect from ifconfig.
  4. Edit /etc/default/ax25. This is where you set up the baud rates for the TNC connection and the on-air data, as well as the serial port you’ll be using.
  5. Start the systemd service with sudo systemctl start ax25. At this point you should be able to send and receive packets. However, my setup is still flaky, but I did manage to connect to a node near me. Sorry to the owner, I’ve been banging down your door for the last two days.