¿ªÔÆÌåÓý

Re: Help with TNC9k6 setup


Mark Griffith
 

Don,

If you have the latest Raspbian Buster installed, AX.25 is already there and ready to go.? However, you need to edit a couple files to get it setup.? The PiGate software does this for you, but if you want to do it yourself:

Edit /etc/ax25/axports

It should have some lines in there like this:

# The format of this file is:
#portname?????? callsign??????? speed?? paclen? window? description
tnc???????????? KD0QYN-1??????? 19200?? 128???? 2?????? TNC-Pi2 VHF
#uhfdrop??????? N0ONE-3???????? 9600??? 128???? 2?????? 443.425MHz+ 1200baud UHF Drop
#hfdrop???????? N0ONE-5???????? 9600??? 32????? 2?????? 40m HF Drop
#wtrunk???????? N0ONE-11??????? 38400?? 253???? 2?????? UHF Trunk West
#etrunk???????? N0ONE-13??????? 38400?? 253???? 2?????? UHF Trunk East
#axudp????????? N0ONE-8???????? 115200? 253???? 2?????? Linux (AX25<->UDP)

Notice that I changed one to have a port name of tnc, and added my call sign and a speed of 19200.? This is for the TNC-Pi.

Then edit /etc/default/ax25

There are three settings you need to change:

AXPORT=tnc (or whatever you called it)
HBAUD=19200
DEV=/dev/ttyserial0? (you can also try /dev/ttyAMA0)

Save both these files and run the command "sudo service ax25 start"

Then run the command "sudo service ax25 status"

You should see the service status and there should be a line saying it is loaded and active.

You can also run this command to see if kissattach has been successful:

"sudo ps -ef | grep kiss"? and it should return a line of two showing kissattach has been run on the serial port.

Now, pat or APRS will be able to connect to that port,? /dev/serial0, and access the KISS modem.

Let me know if you have any more questions.

NOTE: This is for Raspbian Buster.? Any other version may have the files in a different location, different file names, or different entries in the files.

Mark
KD0QYN



On Friday, June 26, 2020, 11:19:06 AM CDT, Don Poaps <va7dgp@...> wrote:


I got the Pi TNC from John Hanson a few years go. It's been sitting on a PI 3. Theres 2 modes I want to do. APRS and Pat Winlink. I know I have to do a Kissattach /dev/serial0 or something like that. I don't really want to load BPQ. I use vnc to log in via km4ack hotspot. for the vnc. I know how to create ssh before I run a fresh install of Buster etc. I then log in via putty on my Windown?machine and the run raspi-config and setup the PI for SSH, VNC and SERIAL and the Resultion?for getting way from that black screen for desktop display.
I have created the mkdir pitnc in /home/pi directory. I have run the setup.?
It's getting a script for APRS and a Script to run start Pat Winlink.

I'm learning but I'm clueless about how to set this up so when I log in via VNC and have a very small screen while I'm mobile. I can click on a icon and the script starts APRS. If I want Pat Winlink. I click on a Icon and the script fires up and I now can use Pat Winlink.?
As mentioned by Don (forget his USA call) he said the info is outdated. If there was a website created that had the command line where once could create the APRS and Pat Winlink for the PI tnc.?

I'll slip over to the site you mentioned and see If I can get this Pi to work.

73

Don va7dgp

Don Poaps
New Westminster, BC
VA7DGP DATA
VA7QU ? VOICE


Winlink: va7qu@...
Subject://wl2k ? ? ? ? ??



? ? ? ? ? ? ? ? ? ??
??




?


On Fri, Jun 26, 2020 at 8:51 AM Mark Griffith via <mdgriffith2003=[email protected]> wrote:
Don,

When you connect through PuTTY, is is through an SSH or Secure Shell TCP/IP connection port, not serial.? VNC is also through a direct connection at a non-serial port.

Where did you get the TNC-Pi9k6 from?? I've attached the docs from the old Coastal Chipworks site.? The board and procedure to build it is a little different than the other people selling this board, but the firmware configuration docs are still correct.

I'm getting ready to make a change in my website to reflect that the TNC-Pi9k6 is the choice for both the PiGate and PiGate RMS devices.? Is is a drop-in replacement for the TNC-Pi2.? I'm not too happy with the progress MFJ is making with building the new TNC-Pi3 board, and the West Virginia group that is now selling the TNC-Pi9k6 as an assembled board has a great price, which is probably going to be close to what MFJ sells the 1200 baud only board for.

Here's my web site in case you are interested in using your Pi and the TNC for communications with Winlink2000.

Mark
KD0QYN







Let me know if you have any more questions.

Mark
KD0QYN



On Friday, June 26, 2020, 6:58:46 AM CDT, Don Munson <w4gfq@...> wrote:


EXCELLENT!!?

?

So after six tries because it is early and I simply can¡¯t type (and I have learned Linux is very unforgiving on typing!) I got the following:

?

Using Serial Port /dev/serial0?

retrying

?

and a presentation of the parameters.??

?

Now at least I know they are talking to each other ?

?

I am not sure why it worked but it did.? I am going to presume that somehow the putty connection to the pi was using the serial port?? Although how it still connects (as does VNC) confuses me ¨C but no matter.

?

The obvious next question is where do I go from here for reading about how to configure and use this board?

?

Don, W4GFQ

?

From: [email protected] <[email protected]> On Behalf Of Mark Griffith via
Sent: Friday, June 26, 2020 7:10 AM
To: [email protected]
Subject: Re: [RaspberryPi-4-HamRadio] Help with TNC9k6 setup

?

Don,

?

First, you'll also need to use the raspi-config utility to enable the console serial port, but disable console login.

?

Run "sudo raspi-config"

?

Then go to menu 5, Interfacing Options, then menu P6, and disable the login shell over the serial port.

?

On the next screen, keep the serial port enabled.

?

Save these and finish.

?

Now try "sudo pitnc-getparams /dev/serial0 0"

?

This works the same with the TNC-Pi2 or the TNC-Pi9k6 and will be the same with the TNC-Pi3 once MFJ starts selling them.

?

Mark

KD0QYN

?

?

On Friday, June 26, 2020, 1:01:22 AM CDT, Don Munson <w4gfq@...> wrote:

?

?

First I am an operator and not a technician.? I can follow directions and to some extent do enough to get myself in trouble.? Having said that I purchased a TNC9k6 and have it running wiht a Raspberry PI 3B+.? Followed directions at (downloaded the pitnc files, set them in the directory and set permission to execute by owner.? Verified with ls -l that all permissions and owner/group ids as well as my logge din user are all setup per the text.

when I run the ./pitnc_getparams /dev/serial0 0 - I get the notation that RPi is using Serial 0 then Com Open Failed: permission denied.

I'm at a loss.? Searching here provides a slew of comm errors dated years back that are not trying serial but? ./pitnc_getparams 0 0 - when I try that it defaults to a TTY device (AAM0?) and simply repeats "retrying" which purportedly means a configuration issue.? But what configuration it is straight out of the setup - I've tweaked nothing in the RPI configuration.

Help?

Don, W4GFQ

Join [email protected] to automatically receive all group messages.