[New User] Using Minicom and a USB/Serial cable to talk to your KPC 3+

Over the weekend, I was showing Linux and Packet radio and for some reason I could not talk to my TNC, a KPC 3+. It was at this point that I realized I had forgotten more about Linux (and minicom) than I had about the commands needed to control the TNC. So, in the interest of helping save you some time, here is a quick write up on using minicom with a USB/Serial adapter to talk to your TNC, specifically, a KPC.

Minicom is an old school program that is available for most of the distributions but may not be installed by default. The good news: it is in all the repositories, so you can pull it down and install it quickly.

It is a serial terminal program that runs from the command line, but can sometimes be a little fussy to get working, and I will admit that I have not used minicom with a USB/Serial converter.

First, you have to know what tty port your USB/Serial converter is
on. So, plug it in, give it a minute and then type at a console port:

dmesg | grep tty

You should get something like this back:


kg4giy@kauai:/$ dmesg | grep tty
[ 0.001982] console [tty0] enabled
[ 686.529224] usb 2-2: pl2303 converter now attached to ttyUSB0

In this case, the converter is attached to ttyUSB0, you when you
configure minicom, you want to use /dev/ttyUSB0 as the serial port
setting.

To start minicom then (assuming you have not configured it, but you
know the modem speed of the TNC) type:

$ sudo minicom -s

Note that minicom requires root privileges. You will be prompted for
your password.

Select "Serial port set up" from the list with the cursor keys and set
the serial device and the Bps/par/bits (8/N/1 and whatever the speed
of your TNC is). Press , Save setup as dfl to save your
settings and then select Exit to enter minicom.

Turn on the TNC. Press once or twice if you do not get the
TNC cmd: prompt and you should now have control of the TNC.

When you are done, A then Z will bring up the help menu and you
can exit by pressing Q or A Q to exit.

One thing to note. Minicom has a much smaller set of connection speeds. For overall interoperability, it is best to set the baud rate of your TNC to 9600, with 8-n-1 for parity. This will facilitate connectivity with a multitude of devices, including a simple VT220.

I hope this saves you all a few minutes!

Idea for writing amateur radio software

KB2YUI's picture

Although I do not know a lot about writing code (I took Computer Programming with C++ a few years ago back in college.) I would like to find some interested people in writing a new Linux program-a collaberated effort if you will. Some one smater than me would have to sort of Elmer me through it.

I am wondering if it is possible to write a program that will control the XCVR and TNC as well as run the software and do logging all in one package. In other words do every thing through the computer like an SDR with data link. It sounds half baked and crazy I know, but it is something that I have thought a lot about lately as to if is feasible as well as possible.

If this sounds like anything that can be done and some one is interested in please let me know. THANKS and 73's!

White Paper
Linux Management with Red Hat Satellite: Measuring Business Impact and ROI

Linux has become a key foundation for supporting today's rapidly growing IT environments. Linux is being used to deploy business applications and databases, trading on its reputation as a low-cost operating environment. For many IT organizations, Linux is a mainstay for deploying Web servers and has evolved from handling basic file, print, and utility workloads to running mission-critical applications and databases, physically, virtually, and in the cloud. As Linux grows in importance in terms of value to the business, managing Linux environments to high standards of service quality — availability, security, and performance — becomes an essential requirement for business success.

Learn More

Sponsored by Red Hat

White Paper
Private PaaS for the Agile Enterprise

If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.

Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.

Learn More

Sponsored by ActiveState