background image

TNC-Pi User Guide 

-7- 

6/25/2017 

 

Next install the two LEDs.   

Ensure the shorter leads on the LEDs go through the holes closest to the flat 
side of the LED outline.

 

The LEDs can be installed with bent legs so the LEDs point toward the front 
of the board.  This makes them easier to see when TNC-Pis are stacked one 
on top of the other. 

 

Install the transistor. 
Ensure 

you are installing the transistor rather than the voltage regulator… 

they look a lot alike.  

 

 

Now install the voltage regulator.   
It goes in the three holes above C1.  Install it so that the flat side of the 
regulator faces away from U3.

 

 

 

Now install the 9 pin D-Sub connector.   

Ensure that you push it all the way in so that it is flush against the board.  In 

addition to soldering the pins, you’ll gain mechanical stability by soldering 

the pins that go into the large round holes on the sides of the connector.  

 

 

Note: The D-Sub connector is optional.  You can install the Radio 
header to connect your radio to the TNC-Pi instead.  See the section, 
Connecting the Radio, for more information. 

 

 

Solder in the 2 x13 header. With the TNC-Pi 2 kit this is a 2 x 20 header.  

This part is somewhat tricky. It is the only part that is installed through the 
bottom of the board.  

 

a.

 

Start by installing this jumper on your Raspberry Pi and then 

 

b.

 

Lower the TNC-Pi board onto the connector so that the body of the 
connector is on the BOTTOM of the TNC-Pi board.  

 

c.

 

Now you’ll need to solder the board about a half millimeter from all the 

way down in order to prevent the board from bumping into the USB 
connector on the Pi.  It is not necessary to solder all of the pins.  You 

should at least solder the 4 pins in the corners (for stability) and the 
first five pins on each row (pins 1 

 10).

 

Your best bet is to carefully trim the solder leads on the part of the TNC-Pi 

board that will be on the USB connector side of the Pi to get as much 
clearance as possible.  You might also want to put a piece of insulating tape 

Содержание TNC-Pi

Страница 1: ...bly Instructions Operating Tips By John Hansen W2FS Portions by John Wiseman G8BPQ Linux configuration Jim Whiteside M0HPJ Xastir Paul Fischer KC9RGZ Headless iGate Document editing support by Ed Slingland N2WD Website http tnc x com TNCPi htm ...

Страница 2: ...Connections 15 Support 16 Application Notes 17 Using Xastir 17 Update the package list 17 Then install Xastir 17 Kill kissattach 17 Start Xastir 18 Running Xastir 18 More information 18 Configuring TNC Pi for Use with the I2C Protocol 19 Setup 19 Get and set parameters 19 Running Applications other than LinBPQ with TNC Pi in I2C mode 20 Steps to create an APRS receive only igate using the Raspberr...

Страница 3: ... 2017 Introduction Thank you for purchasing a TNC Pi TNC X for Raspberry Pi or TNC Pi 2 Figure 1 Two TNC Pi s stacked on one Raspberry Pi Figure 2 TNC Pi mounted on a Raspberry Pi Figure 3 TNC Pi 2 mounted on a Raspberry Pi 2 ...

Страница 4: ...t a checkmark in the second column Inventoried Installed Designation Description Notes C1 4 7 uf or 10 µf electrolytic Polarized C2 C4 C5 C6 C11 C14 C15 C21 0 1 µf monocap C7 C8 0 01 µf 2 5 Red and yellow or grey if grey marked 10 nF C9 C10 18 pf ceramic disk C12 C13 22 pf ceramic disk C3 100 pf ceramic disk R1 R2 R3 100K resistor Brown black yellow R4 R17 R19 1K resistor Brown black red R5 R11 R1...

Страница 5: ... LED DCD Polarized Q1 PN2222 transistor 3 pin flat side don t confuse with U1 U1 MCP1700 33 or MCP1700 30 Regulator 3 pin flat side U2 CML MX 614 Modem 16 pin IC U3 PIC16F1847 microcontroller 18 pin IC U4 MCP6023 Op Amp 8 pin IC U5 23K640 Memory 8 pin IC IC Sockets For U2 U3 U4 U5 One 16 pin one 18 pin and two 8 pin sockets JP3 JP4 2 pin header Not included in newer kits Combined into one 2x2 pin ...

Страница 6: ...lder bridge between them Note that all of the components except for the 26 or 40 in TNC Pi 2 pin header are installed on the side of the board with the silk screen Next install the two crystals Ensure that the 20 MHz crystal is the one nearest the 18 pin IC Next install the IC sockets Ensure that the notch on the socket lines up with the notch on the IC outline on the PC board Do not plug the chip...

Страница 7: ...The D Sub connector is optional You can install the Radio header to connect your radio to the TNC Pi instead See the section Connecting the Radio for more information Solder in the 2 x13 header With the TNC Pi 2 kit this is a 2 x 20 header This part is somewhat tricky It is the only part that is installed through the bottom of the board a Start by installing this jumper on your Raspberry Pi and th...

Страница 8: ...are not needed There will be plenty of mechanical support from the extra USB jacks on the Pi board but you will want to use insulating tape on these jacks to keep them from shorting the TNC board If you are stacking 2 or more TNC s you might also find it preferable to use a spacer that is a male to female rather than female to female These male to female spacers are available on the TNC Pi website...

Страница 9: ...hey can be stacked to make a taller header First trim one of Then put the two the headers so parts together it is half height The only problem with this approach is that when mounted on the Pi the distance is a bit too tall so the spacer shipped with the kit no longer fits properly To solve this problem I have included a 4 40 nut that will make up the distance Here is how to mount the TNC Pi on th...

Страница 10: ...TNC Pi User Guide 10 6 25 2017 Schematic Diagram see next page for parts layout diagram ...

Страница 11: ...TNC Pi User Guide 11 6 25 2017 Parts Layout for TNC Pi ...

Страница 12: ...use the four holes below R7 labeled Radio to hard wire a radio connection No header is provided in the kit for this If you use the 9 pin D Sub connection it should be wired as follows Pin 1 the square pad TX Audio Pin 3 Push to Talk PTT Pin 5 Receive Audio Pin 6 Ground If you are using the holes marked Radio the connections should be Pin 1 the square pad Receive Audio Pin 2 Ground ...

Страница 13: ...he monitor receiver 5 When you reach this point back it off just a little and you should have it about right Set the transmit delay The transmit delay TXDelay can be set either in software or using R6 The default is to set it in software To change the TXDelay parameter you ll need to use the pitnc_setparams program as explained below in the section Using Xastir If you set the value of TXDelay to 0...

Страница 14: ...owing lines to boot config txt dtoverlay pi3 miniuart bt core_freq 250 Add the following lines to lib systemd system hciattach service Note this file does not exist in the most recent version of the OS In that case create the file in the directory listed above and copy these lines into it Unit ConditionPathIsDirectory proc device tree soc gpio 7e200000 bt_pins Before bluetooth service After dev tt...

Страница 15: ...low Note For the following steps the Raspberry Pi must be connected to the internet You can use the Linux AX 25 routines to do connected mode packet To do this you need to install the ax25 apps and tools From the command line enter the following sudo apt get install ax25 tools sudo apt get install ax25 apps You ll need to configure it for your callsign by editing the etc ax25 axports file You ll f...

Страница 16: ...o be a bug in the axcall routine The first time you use it after calling kissattach it will take significantly longer for the Pi to send a valid connect string to the TNC than it does in subsequent attempts You may have to wait 10 15 seconds Further attempts occur instantaneously You can abort this first try by issuing a Ctrl C and then issuing the axcall command again It will then connect immedia...

Страница 17: ... kissattach If you have been using the AX25 apps you ll need to unload kissattach before Xastir will work You can do this by simply rebooting the Pi or you can kill the kissattach process from the command line To do the latter first find out what process number it is by using a ps command to list running processes ps A grep kissattach Inspect the list to see the process number of the kissattach pr...

Страница 18: ...lect Maps and the Map Chooser to select a better set of maps than the default If you currently have internet connectivity one of the cloud map options is probably best If you select a new map option you should deselect the old one I haven t yet explored the option of caching the maps to the local SD card so that I don t need an Internet connection but I expect to look into that soon More informati...

Страница 19: ...changes to the following files 1 In the etc modprobe d raspi blacklist conf file remove the line blacklist I2C bcm2708 2 In the etc modules file add the line i2c dev Get and set parameters Note Before running the getparams and setparams programs ensure that kissattach is not running The pitnc_getparams program lists the values for all of the user settable parameters Its syntax is pitnc_getparams b...

Страница 20: ... www tnc x com InstallingLINBPQ htm If you ever need to reset these parameters to their original factory values this can be done by powering down turning the TXDelay potentiometer all the way to minimum and then powering back up You should see the yellow LED flash once per second When you see it flash you ll know that the parameters have all been reset The power the device back down move the TXDel...

Страница 21: ...e a symlink to com1 The application would then be configured to use port com1 Note On Version 1 Pi boards without mounting holes the I2C bus number is zero for the Version 2 boards it is 1 Steps to create an APRS receive only igate using the Raspberry Pi and TNC Pi by Paul Fischer KC9RGZ Equipment needed a Raspberry Pi model B b TNC Pi from Coastal ChipWorks at http tnc x com c Power Supply d Blan...

Страница 22: ...nutes 4 Put the SD card in the Rpi connect the network cable monitor and keyboard Then the power supply and it should boot into the raspi config application This application can be run again once logged in by running sudo raspi config 5 In the raspi config program set these things a Internationalisation Options Change_locale choose en_US UTF 8 UTF 8 b Internationalisation Options Change_timezone A...

Страница 23: ...erid and password listed above and upgrade to root privileges again 13 Get the aprx digi igate software cd usr src wget http ham zmailer org oh2mqk aprx aprx 2 05 svn485 tar gz Note This version of aprx was current at the time these instructions were originally written There is almost certainly a more recent version available now To find out what the number of the current version is go to ham zmai...

Страница 24: ...og var log aprx aprx log logging interface serial device dev ttyAMA0 19200 8n1 KISS interface beacon beaconmode aprsis cycle size 10m beacon symbol lat 4124 57N lon 09041 26W comment RasPi Rx only iGate beacon 16 Verify the serial port is available chmod 666 dev ttyAMA0 17 Add the following lines to the end of the etc rc local file to start the aprx program printf Start the igate daemon n aprx 18 ...

Страница 25: ...n the program HDDRAWCopy1 02Portable exe available from http hddguru com software HDD Raw Copy Tool Select the SD card as the SOURCE and hit Continue Double Click the File line to specify the name and location of the backup file ex 2013 07 03 wheezy raspbian backup Use a file type of Raw image dd image img Hit Continue then Start 3 Restore is done by reversing the source and destination use the fi...

Отзывы: