开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Raspberry Pi 3+B and TNC install....... Problems


Lorin Tremblay
 

HI!

Due a defective SD Card I had to re-install everything from scratch.......

But after a couple of days of struggling with the TNC, I have yet to get it to work. I have read pretty much all the tutorial under the sun, and yet still no success....

Where does someone start or looks when everything fails.

Raspeberry Pi 3+B with TNC
All the latest sorftware as of 08-30-2023, no update are available.
Reinstalled to OS about 6 times so far and tried different approaches.

Is there a 2023 updated tutorial on enabling the TNC on the raspberry PI?
So far, from what I understood is that you need to enable the serial port and disable serial login
modify the config.txt with the 3 lines that's need to be added and also the cmdline.txt file

Verify the the TNC with an oscillating scope and meter, the tnc is good.

So any help or insight would be great!


 

开云体育


Hello Lorin,

You need to share some more information:

?? - What OS are you using on the Raspberry Pi?? I would recommend the newest Raspberry Pi OS (Bullseye)

?? - What TNC are you using?


Is there a 2023 updated tutorial on enabling the TNC on the raspberry PI?

There is mine where I recommend the use of the sound-device enabled Direwolf software TNC at:

??

Please note that in the Appendix, I do also cover using hardware TNCs like a TNC-X / TNC-Pi as well as a Kenwood D10 as well.

--David
KI6ZHD


 

Manually editing the files isn't needed.
From a console window type sudo raspi-config
Go to interfaces, then serial port.? First option is if you want to allow logins. Select no, second is if you want the hardware to be enabled, select yes.? Exit out and reboot

Get
On Aug 30, 2023, at 10:13, "Lorin Tremblay via " <me.com@groups.io target=_blank>[email protected]> wrote:

HI!

Due a defective SD Card I had to re-install everything from scratch.......

But after a couple of days of struggling with the TNC, I have yet to get it to work. I have read pretty much all the tutorial under the sun, and yet still no success....

Where does someone start or looks when everything fails.

Raspeberry Pi 3+B with TNC
All the latest sorftware as of 08-30-2023, no update are available.
Reinstalled to OS about 6 times so far and tried different approaches.

Is there a 2023 updated tutorial on enabling the TNC on the raspberry PI?
So far, from what I understood is that you need to enable the serial port and disable serial login
modify the config.txt with the 3 lines that's need to be added and also the cmdline.txt file

Verify the the TNC with an oscillating scope and meter, the tnc is good.

So any help or insight would be great!


Lorin Tremblay
 

开云体育


On 30 Aug 23, at 13:57, David Ranch <rpi4hamradio-groupsio@...> wrote:


Hello Lorin,

You need to share some more information:

?? - What OS are you using on the Raspberry Pi?? I would recommend the newest Raspberry Pi OS (Bullseye)
Running bullseye?

?? - What TNC are you using?
Coastal TNC



Is there a 2023 updated tutorial on enabling the TNC on the raspberry PI?

There is mine where I recommend the use of the sound-device enabled Direwolf software TNC at:

??
Followed it to the letter section 90.a

Please note that in the Appendix, I do also cover using hardware TNCs like a TNC-X / TNC-Pi as well as a Kenwood D10 as well.

--David
KI6ZHD


 

开云体育


Hello Lorin,

?? - What TNC are you using?
Coastal TNC

Which one?? TNC-X or TNC-Pi??? If you're using a TNC-X, what are you using to connect the Pi to the external TNC?? A USB to serial adapter?? Maybe you're trying to use one of the RS232 ports off the 40pin GPIO header?



??
Followed it to the letter section 90.a


So are you getting any errors when you run the AX.25 startup scripts?? Can you tell us what does and doesn't work?

--David
KI6ZHD


Lorin Tremblay
 

开云体育


On 30 Aug 23, at 17:45, David Ranch <rpi4hamradio-groupsio@...> wrote:


Hello Lorin,

?? - What TNC are you using?
Coastal TNC

Which one?? TNC-X or TNC-Pi??? If you're using a TNC-X, what are you using to connect the Pi to the external TNC?? A USB to serial adapter?? Maybe you're trying to use one of the RS232 ports off the 40pin GPIO header?

Not sure the one that adds on top pf the raspberry pi…..



??
Followed it to the letter section 90.a


So are you getting any errors when you run the AX.25 startup scripts?? Can you tell us what does and doesn't work?

From what I’m understanding, the rasp is simply not seing the tnc.


pi@WeeWx-APRS:/usr/src/pitncgetset $ sudo ./pitnc_getparams /dev/serial0 0

pitnc_getparams Version 0.0.0.5


Using Serial port /dev/serial0

retrying...

retrying...

?Tried several diff devices like, ttys0, serial2, AMA and so on...

--David
KI6ZHD



 

开云体育

I *think* it defaults to I2C on the TNC-pi I stead of serial

Get
On Aug 30, 2023, at 16:35, "Lorin Tremblay via " <me.com@groups.io target=_blank>[email protected]> wrote:


On 30 Aug 23, at 17:45, David Ranch <rpi4hamradio-groupsio@...> wrote:


Hello Lorin,

?? - What TNC are you using?
Coastal TNC

Which one?? TNC-X or TNC-Pi??? If you're using a TNC-X, what are you using to connect the Pi to the external TNC?? A USB to serial adapter?? Maybe you're trying to use one of the RS232 ports off the 40pin GPIO header?

Not sure the one that adds on top pf the raspberry pi…..



??
Followed it to the letter section 90.a


So are you getting any errors when you run the AX.25 startup scripts?? Can you tell us what does and doesn't work?

From what I’m understanding, the rasp is simply not seing the tnc.


pi@WeeWx-APRS:/usr/src/pitncgetset $ sudo ./pitnc_getparams /dev/serial0 0

pitnc_getparams Version 0.0.0.5


Using Serial port /dev/serial0

retrying...

retrying...

?Tried several diff devices like, ttys0, serial2, AMA and so on...

--David
KI6ZHD



 

Couple things you might try. Turn the TXD(R6) pot CCW(zero) with the power off.?
Apply power for a few seconds. Turn the pot up CW 1/4-1/2.
Apply power, this will reset the NVRAM on the pitnc to factory defaults.

Also make sure no kissattach is running (no ax.25 or such)

Rerun 'sudo ./pitnc_getparams 0 0'?

Not sure if this will help, but it is a place to start.

73,
Jim


 

开云体育


Hello Lorin,


Not sure the one that adds on top pf the raspberry pi…..

Details like this can matter a lot but regardless, you have a TNC-Pi.? Can you look at the board and see if you have a version 1 or version 2 of the board?? Next question, which Raspberry Pi model do you have?? A few different PI's have different quirks around serial ports that you need to be aware of.


pi@WeeWx-APRS:/usr/src/pitncgetset $ sudo ./pitnc_getparams /dev/serial0 0

pitnc_getparams Version 0.0.0.5


Using Serial port /dev/serial0

retrying...

retrying...

?Tried several diff devices like, ttys0, serial2, AMA and so on...

Like N5XMT mentioned, the TNC-Pi also supports and uses I2C communications depending on how you configured the TNC-Pi.? You might want to reset your TNC-Pi's config per the instructions on page 28

??

Your TNC-Pi might be also be in I2C mode.? Assuming you did follow the instructions to enabled the I2C bus on your Raspberry Pi AND installed the required packages, what does the command "i2cdetect 1" or "i2cdetect 0" show?? For example, below shows a TNC-Pi on I2C address "15":

??????? --
??????? sudo i2cdetect 1

??????? WARNING! This program can confuse your I2C bus, cause data loss and worse!
??????? I will probe file /dev/i2c-1.
??????? I will probe address range 0x03-0x77.
??????? Continue? [Y/n]
???????????? 0? 1? 2? 3? 4? 5? 6? 7? 8? 9? a? b? c? d? e? f
??????? 00:????????? -- -- -- -- -- -- -- -- -- -- -- -- --
??????? 10: -- -- -- -- -- 15 -- -- -- -- -- -- -- -- -- --
??????? 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
??????? 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
??????? 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
??????? 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
??????? 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
??????? 70: -- -- -- -- -- -- -- --
??????? --

--David
KI6ZHD


Lorin Tremblay
 

开云体育

That worked, thank you so much! I’m back online!!!



On 31 Aug 23, at 18:12, Jim Hudson <wb9qpm@...> wrote:

Couple things you might try. Turn the TXD(R6) pot CCW(zero) with the power off.?
Apply power for a few seconds. Turn the pot up CW 1/4-1/2.
Apply power, this will reset the NVRAM on the pitnc to factory defaults.

Also make sure no kissattach is running (no ax.25 or such)

Rerun 'sudo ./pitnc_getparams 0 0'?

Not sure if this will help, but it is a place to start.

73,
Jim