MFJ-1270Pi Raspberry Pi TNC Instruction & Technical Manual
cd /home/pi/pitnc
to move into the new directory. There are two ways to download the zip file containing the two
programs. The first is to type
wget https://cdn.shopify.com/s/files/1/0289/7782/3843/files/params.zip
into the terminal. The second is to navigate the Pi’s web browser to www.mfjenterprises.com
and download the software from the MFJ-1270Pi product page. Once the file is downloaded and
placed in the /home/pi/pitnc directory, the command
unzip params.zip
will unpack the zip archive into two files. If you now enter ls -l, you will see the original zip file
and the two scripts. Note that both are colored white and are preceded by the characters
“-rw-r--r--”. This is Linux shorthand for who has what permissions. The first dash indicates what
type of object is present. In this case, it is a file, so the space is a hyphen. The next three
characters are the user’s permissions. In this case the user can read (r) and write (w), but not
execute (x), these files. The next three are for the user’s group (they can only read), and the final
three are for all users (again, they can only read). We need to give ourselves execute permissions
for these two scripts, and the command to do that is
chmod u+x pitnc*.
This instructs the OS to change mode (chmod) by adding execute permissions for the user (u+x)
to all files beginning with pitnc (pitnc*). Typing ls -l again now shows the two scripts in green
with an “x” now included in the permission string. We can now use these scripts to configure the
TNC-Pi. Your terminal should now look like the one in Figure 8.
If you are not already there, switch to the directory that you placed these programs in by using the
cd command just like earlier. The format for this script is
./pitnc getparams b n
where b is the bus name or number (/dev/serial0 for the serial port, 1 for the I
2
C bus), and n is
the device number (0 if using serial, between hexadecimal values 0x3 and 0x77 for I
2
C). Run the
following command:
./pitnc getparams /dev/serial0 0.
The ./ at the beginning of the line tells the Pi to look in the current directory. If you don’t
prepend this, the Pi will not find the pitnc getparams program. A menu should come up listing
some parameters (Figure 9). If this happens, your Pi and TNC are talking to each other.
If you get a bunch of lines that say
-7-