¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

How to set up TNC-Pi9k6


 

I got a TNC-Pi9k6 from WVCARC.? I tried it with PiGate and it worked so I believe the hardware is OK.? Now I want to use it with YAAC.? How do I configure it on s port as a TNC?? I tried to use? /dev/ttyAMA0 at 19200 baud which was the only port offered by YAAC when I added a serial-TNC port but that doesn't seem to work.? When I click Test Port, I see nothing.? What is the correct way to configure a TNC-Pi9K6 for YAAC?


 

I'm not familiar with the TNC-Pi9k6; is it an upgraded copy of the TNC-Pi? In any case, what serial port and baud rate did you use with PiGate? It should be the same.

Andrew, KA2DDO
author of YAAC

________________________________________
From: [email protected] <[email protected]> on behalf of Bill AA6BD <bill@...>
Sent: Tuesday, September 22, 2020 5:09 PM
To: [email protected]
Subject: [yaac-users] How to set up TNC-Pi9k6

I got a TNC-Pi9k6 from WVCARC. I tried it with PiGate and it worked so I believe the hardware is OK. Now I want to use it with YAAC. How do I configure it on s port as a TNC? I tried to use /dev/ttyAMA0 at 19200 baud which was the only port offered by YAAC when I added a serial-TNC port but that doesn't seem to work. When I click Test Port, I see nothing. What is the correct way to configure a TNC-Pi9K6 for YAAC?


 

With the PiGate, it assumes the TNC-Pi or TNC-Pi9k6 so you just plug it in.? I haven't been able to dig into the software to find out.


 

Make sure you have the PiGate plugged in and recognised by the OS, BEFORE starting YAAC...

(Same holds true for other "things" that appear as a serial port, and not only for YAAC.)

73.

Dave G8KBV


--
Created on and sent from a Unix like PC running and using free and open source software:


 

I have a running PiGate RMS gateway that uses the TNC-Pi and when I checked its configuration, it uses port /dev/serial0.? I verified that the TNC-PI9k6 works with PiGateRMS by plugging it in to the same system running the TNC-Pi, and it worked fine.? Then I used the Pi where I want to run YAAC, and used the same SD card for PiGate RMS and it worked there, too.

When I try to use this same port on the YAAC system, it reports an exception when I try to configure port serial-TNC to use /dev/serial0.?
"unable to open Serial_TNC connection /dev/serial0"
I verified that librxtx-java is installed.? I tried to run
sudo usermod -G tty,lock -a pi
and get the response
usermod: group 'lock' does not exist.
So I did
sudo usermod -G tty -a pi

I also did
sudo usermod -G dialout -a pi
and that succeeded.
What else might be the problem?
?


 

Dave G8KBV,
How do I make sure the TNC-Pi9k6 is recognized by the OS?? It ran successfully when I used the SD card from PiGateRMS which was also running Buster, although a different kernel version.
When I type
$ ls /dev/serial0
I get a response
/dev/serial0

What else can I try to verify that the TNC-Pi9k6 is recognized by Pi OS?


 

First off, YAAC isn't using librxtx any more. Due to support issues, YAAC has switched to JSSC instead.

Secondly, if the PiGate software is running, then /dev/serial0 is locked by PiGate and therefore the device can't be used by YAAC.

As said many times before, "SERIAL DEVICES CANNOT BE SHARED!" Only one program at a time can directly use a serial port successfully. That's one of the reasons why GPSD was invented: so multiple applications could share the data coming in from a single GPS receiver, and one of the reasons why YAAC no longer uses RXTX (because RXTX used an obsolete means of locking serial device access that wasn't supported or recognized by other applications).

On the other hand, if PiGate is I-gate software, does it have a client port that YAAC could connect to with the APRS-IS port driver?

Andrew, KA2DDO
author of YAAC

________________________________________
From: [email protected] <[email protected]> on behalf of Bill AA6BD <bill@...>
Sent: Wednesday, September 23, 2020 1:11 PM
To: [email protected]
Subject: Re: [yaac-users] How to set up TNC-Pi9k6

I have a running PiGate RMS gateway that uses the TNC-Pi and when I checked its configuration, it uses port /dev/serial0. I verified that the TNC-PI9k6 works with PiGateRMS by plugging it in to the same system running the TNC-Pi, and it worked fine. Then I used the Pi where I want to run YAAC, and used the same SD card for PiGate RMS and it worked there, too.

When I try to use this same port on the YAAC system, it reports an exception when I try to configure port serial-TNC to use /dev/serial0.
"unable to open Serial_TNC connection /dev/serial0"
I verified that librxtx-java is installed. I tried to run
sudo usermod -G tty,lock -a pi
and get the response
usermod: group 'lock' does not exist.
So I did
sudo usermod -G tty -a pi

I also did
sudo usermod -G dialout -a pi
and that succeeded.
What else might be the problem?


 

I used the FAQ to determine that I should check librxtx.? Perhaps the FAQ need updated.

I did not say that I used the PiGate at the same time as YAAC.? I tested the TNC-Pi9k6 using PiGate to be sure it worked.? Then I switched to a different copy of PiOS where the only application installed is YAAC. So the device is not being shared by any other application.? I am still stuck with being unable to access /dev/serial0 with YAAC which is the only application running.


 

Ah, your user account on the Pi (such as "pi") is a member of whatever group owns the /dev/serial0 device (or whatever real device is behind it if it is a symbolic link), right? YAAC isn't good with symbolic links; it wants to open the real device file.

Also, where did you see the FAQ? In the built-in Help in your copy of YAAC? On my website? On SourceForge? Or somewhere else? There are lots of websites who have cached stale copies of my program and documentation.

Andrew, KA2DDO
author of YAAC
________________________________________
From: [email protected] <[email protected]> on behalf of Bill AA6BD <bill@...>
Sent: Wednesday, September 23, 2020 1:45 PM
To: [email protected]
Subject: Re: [yaac-users] How to set up TNC-Pi9k6

I used the FAQ to determine that I should check librxtx. Perhaps the FAQ need updated.

I did not say that I used the PiGate at the same time as YAAC. I tested the TNC-Pi9k6 using PiGate to be sure it worked. Then I switched to a different copy of PiOS where the only application installed is YAAC. So the device is not being shared by any other application. I am still stuck with being unable to access /dev/serial0 with YAAC which is the only application running.


 

Andrew, Here is the FAQ I used:?

"it wants to open the real device file" Please help me out here. I thought I was following the notes in the FAQ but if I need to do something else to open the real device file, can you help me with what that might be?


 

Yep, I need to update my website to match the latest built-in Help. Will do that when the next build comes out.

________________________________________
From: [email protected] <[email protected]> on behalf of Bill AA6BD <bill@...>
Sent: Wednesday, September 23, 2020 2:05 PM
To: [email protected]
Subject: Re: [yaac-users] How to set up TNC-Pi9k6

Andrew, Here is the FAQ I used:

"it wants to open the real device file" Please help me out here. I thought I was following the notes in the FAQ but if I need to do something else to open the real device file, can you help me with what that might be?


 

¿ªÔÆÌåÓý

Hi.

Under Linux (running Mint 19.3 64 bit here) first start dmesg from a command line terminal, thus...

??? dmesg -wH

Where it will instantly fill that terminal with a load of stuff, then stop updating, unless you've got trouble with some background process....?? (Hint, make that terminal window as wide as you can, to stop lines wrapping.

Next, plug in your device, and you will see dmesg report what the OS saw, and did with it.

For example, on this Mint 19.3 machine, when I plug in one of the nefarious Prolific serial devices (old but genuine) this is seen...

[Sep24 14:23] usb 2-1.2: new full-speed USB device number 6 using ehci-pci
[? +0.109438] usb 2-1.2: New USB device found, idVendor=067b, idProduct=2303
[? +0.000008] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[? +0.000003] usb 2-1.2: Product: USB-Serial Controller
[? +0.000004] usb 2-1.2: Manufacturer: Prolific Technology Inc.

??? (Some irrelevant stuff about WiFi removed...)

[? +0.259574] usbcore: registered new interface driver usbserial_generic
[? +0.000010] usbserial: USB Serial support registered for generic
[? +0.020230] usbcore: registered new interface driver pl2303
[? +0.000024] usbserial: USB Serial support registered for pl2303
[? +0.000055] pl2303 2-1.2:1.0: pl2303 converter detected
[? +0.001761] usb 2-1.2: pl2303 converter now attached to ttyUSB0

That shows the date/time when the device was seen, how it connected, the identity information (such as it is) and what the OS did with it.

In this case, make it available as?? /dev/ttyUSB0

And this happens, when it is disconnected...

[Sep24 14:28] usb 2-1.2: USB disconnect, device number 6
[? +0.000560] pl2303 ttyUSB0: pl2303 converter now disconnected from ttyUSB0
[? +0.000065] pl2303 2-1.2:1.0: device disconnected


If your system doesn't allow the '-wH' on the end of the dmesg invocation, then just issue??? dmesg?? on it's own, immediately after you connect the device.?? Crude, but it works.? (but doesn't auto update.)


(Now, if there is a way to change that product serial number, that would be very useful, as currently Prolific devices do not have any unique identifier you can reliably use with udev rules.)

73 Bill

Dave G0WBX.



From: Bill AA6BD
Date: Wed, 23 Sep 2020 10:15:32 PDT

Dave G8KBV,
How do I make sure the TNC-Pi9k6 is recognized by the OS?? It ran successfully when I used the SD card from PiGateRMS which was also running Buster, although a different kernel version.
When I type
$ ls /dev/serial0
I get a response
/dev/serial0

What else can I try to verify that the TNC-Pi9k6 is recognized by Pi OS?

-- 
Created on and sent from a Unix like PC running and using free and open source software:


 

Dave,?
This is not a USB device.? It is connected to the Raspberry Pi as a HAT module plugged into the GPIO pins of the Raspberry Pi.? I suppose I could remove it and install it to see how dmesg reports it.

I configured the serial port to be enabled and the serial console to be disabled.? I tried?
ls -l /dev/ser*
and see?
lrwxrwxrwx 1 root root 7 Sep 24 11:09 /dev/serial0 -> ttyAMA0
lrwxrwxrwx 1 root root 5 Sep 24 11:09 /dev/serial1 -> ttyS0

when I type?
ls -l /dev/ttyS0
I get?
crw-rw-rw- 1 root dialout 4, 64 Sep 24 11:09 /dev/ttyS0

I checked that the user pi is in the dialout group by typing
groups pi

In YAAC, I tried using each of these 4 devices.? I am able to click on Test Port and a window comes up but nothing appears in the window.? I connected a radio to the TNC-Pi9k6 and tuned it to 144.390MHz.? I see APRS messages, and the receive light on the radio and the TNC light up, but nothing appears in the Test Port window.? When I click Enable Port, I get "unable to open Serial_TNC connection /dev/ttyS0" for example.

I had a prior version of YAAC about 18 months old which was running under Buster, and it works fine with the same hardware.? So it appears that something is different between the two versions of either YAAC or Raspberry Pi OS.


 

Dave_G0WBX,
When I ran dmesg, I found
[? +0.000126] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 81, base_baud = 0) is a PL011 rev2
[? +0.002579] 3f215040.serial: ttyS0 at MMIO 0x0 (irq = 53, base_baud = 50000000) is a 16550
?
so I assume these are my serial devices and one is the TNC-Pi9k6.? the 16550 is a UART so I assume this is the one.

I tried to use /dev/ttyS0 but YAAC responds with an error "unable to open Serial_TNC connection /dev/ttyS0"
Same for /dev/ttyAMA0 which I recall is Bluetooth, right?


 

I installed Xastir on the same Raspberry Pi.? I prefer YAAC because it is more intuitive to me, and the maps are nicer.??
I configured an interface (xastir port) and chose Serial KISS TNC with the port of /dev/ttyS0 and it was marked as "UP."? I was able to use Xastir to transmit on the port, and I saw the red LED flash on the TNC, so I believe it worked.

What do I need to change on YAAC so it will use the serial KISS TNC /dev/ttyS0?


 

I loaded YAAC-157 onto my Raspberry Pi running Buster to replace YAAC-152 and without changing anything, it nicely connected with the TNC-Pi9k6 including receiving and transmitting.? Therefore, I would guess that there is something in Raspberry Pi OS Stretch that interferes with it supporting YAAC to connect with the serial port /dev/ttyS0.? Note that in Buster, the serial port shows as /dev/ttyAMA0 but the user notes I found from WVCARC who makes the TNC-Pi9k6, and from John Hansen who had made it before he retired, all working with John Wiseman who designed the card, said that this change had occurred with Stretch.

If there is anything I can to to help with this, including testing, please let me know.


 

¿ªÔÆÌåÓý

Hi Again.

Well, that would seem to point to something OS or settings related that's getting in the way.

Sadly not having that hardware (hat) I can't hope to replicate the same issue to help debug it.? Sorry.

I do notice from reading the TNC-Pi9k6 manual ? ?? that you do not use regular TNC type commands to control it.? (I presume you have downloaded and are using the two configuration manipulation software tools that come in the zipfile??? ? )

In fact, other than a few configuration notes, the overall command structure and usage is somewhat undocumented.? I cant even tell if it is supposed to be a KISS type of TNC!

That and YAAC 1.0-beta157 doesn't list the TNC-Pi9k6 as a serial port TNC option, or the TNC-x that it appears to have been derived from.

It also appears to be verging on being an abandoned product, as MFJ cloned the TNC-x, while the prospect of new kits etc are unlikely due (it seems, a bit of a lame excuse) to the need to use SMD parts for any future versions.)

You could try asking at:-?? /search?q=RaspberryPi-4-HamRadio

Or reaching out to it's creator:-? John Hansen, W2FS at john@...? As mentioned at the end of the document above.

Hope you find a solution, when you do, I suspect others would like to know.? Me too, just out of curiosity.

73.

Dave G8KBV



From: Bill AA6BD
Date: Thu, 24 Sep 2020 14:42:08 PDT

I installed Xastir on the same Raspberry Pi.? I prefer YAAC because it is more intuitive to me, and the maps are nicer.??
I configured an interface (xastir port) and chose Serial KISS TNC with the port of /dev/ttyS0 and it was marked as "UP."? I was able to use Xastir to transmit on the port, and I saw the red LED flash on the TNC, so I believe it worked.

What do I need to change on YAAC so it will use the serial KISS TNC /dev/ttyS0?

-- 
Created on and sent from a Unix like PC running and using free and open source software:


 

After trying a lot of options, I believe I know where the problem is: The TNC-Pi9k6 as it communicates with YAAC.? I finally got it to be accepted by YAAC as a serial device on /dev/ttyS0.? But with YAAC, there was no communication.? That is, no packets were sent or received.? I switched the TNC-Pi for the TNC-Pi9k6, and it worked.? Frustratingly, either TNC works fine with PiGate RMS or XASTIR.? There must be something awry with the communication protocols of the TNC-Pi9k6 that prevents it from working with YAAC.

Since my motivation for getting the TNC-Pi9k6 was as a backup for the TNC-Pi as used with PiGate RMS, I will leave my arrangement of the parts so that everything works as they are configured.? Not ideal, but I can live with it.