This page permanently redirects to gemini://gemini.complete.org/using-the-kenwood-th-d72a-with-pc-aprs-software/.
The TH-D72A is a very nice handheld Amateur Radio Transceiver[1]. Among other things, it has an integrated GPS, built-in APRS[2] functionality, full AX.25 Packet Radio[3] TNC, and a USB port (which shows up as a serial device) to a computer -- all built in.
=> 1: /amateur-radio-transceivers/ | 2: /aprs/ | 3: /packet-radio/
While it is perfectly useful in a standalone configuration, sometimes the larger screen and full keyboard of a real computer are beneficial. Software such as Xastir[4] can present APRS information on a map.
I am writing this page because there is a lot of misinformation about the TH-D72A out there -- and also a lot about it that is under-documented.
While I personally use Xastir, this information should also be relevant to users of UI-View and other APRS software as well. Also, the TH-D72 is very similar to the TM-D710/TM-D710A, so much of what is said here may also apply to that mobile rig.
I intend do demonstrate how to:
Use the TH-D72A as the transceiver for a program like Xastir, with full access to the APRS data stream and full simultaneous access to its internal GPS;
Use the PC with it without disabling its internal APRS interface
Before beginning, you need to make sure the TH-D72A has at least firmware version 1.03. You can find the firmware version by holding the ENT/# key while you turn the unit on. You should see "Main Firmware 1.03" (or above). If you need an upgrade, find it from Kenwood's website[5].
=> 5: http://www.kenwoodusa.com/
Next, configure the TH-D72A to send relevant information to the PC or laptop. The appropriate places are:
1 Set menu 202 to ON (Menu -> GPS -> Int. GPS -> PC Output)
1 Set menu 350 to ON (Menu -> APRS -> PC Port -> Output -> On)
Pressing the TNC button on the radio switches between three modes: TNC off, APRS mode, and PACKET mode. Let me describe them, and how they interact with the PC.
With the TNC completely off, APRS packets will not be decoded and no data will be passed to the APRS network from the PC. The GPS can still be enabled if desired, however, and GPS sentences will be happily delivered to the PC. This can be a nice feature to use with mapping software if you have no need for APRS.
In "APRS" mode, the TNC is enabled, and the radio's built-in APRS user interface is also enabled. This permits the radio to perform APRS tasks without a PC. It can beacon its position, send and receive APRS messages, show nearby stations (LIST button), etc.
In "PACKET" mode, the TNC is enabled, but the built-in APRS interface is disabled. This mode can be used to give a PC full control over the APRS mode, or to use it for more general packet radio (AX.25) tasks such as connecting to a packet BBS.
Crucially, so long as menu 202 is set to on and the GPS is enabled, GPS sentences are sent to the PC via the USB cable in all three modes. This is exactly what we want for PC APRS software, though it might not be for some other things.
I have configured two Xastir interfaces for use with the TH-D72A: one for the unit's APRS mode, which is a read-only interface; and the other for its PACKET mode, which is a read-write interface. Why two? Well, sometimes it might be nice to have the laptop as a passive receiver of APRS data; for instance, feeding it onto APRS-IS via a tethered cell phone, or simply available in case I want to look at it, but not required all the time.
You'll need these initialization scripts. They are lightly modified from the D710 scripts I found on the web.
Copy and paste them into files in your Xastir configuration area. On my system, it's /usr/share/xastir/config
. You're found the right spot if you see files with names like tnc-startup.sys in there.
Here are the files:
tnc-startup.d72
# From https://www.complete.org/amateur-radio # modified from http://lists.xastir.org/pipermail/xastir/2011-July/020111.html #Don't send CONTROL-C before this line ##META#TC 1 ##Pause for one second ##META ##META #Put the TNC in packet mode since this is where we want to end up # Change the 1 to 0 to go to normal radio mode ##META #TN 2,0 # Pause for two seconds ##META ##META ##META ##META HID off AWlen 8 BBSMsgs ON B E 0 LOC E 0 Echo off FLow off AUTOLF off MCOM off MON ON MRPt on PACLen 128 PASSALL off HBAUD 1200 TXDELAY 25 HEADERLN off # Delete following lines if without GPS #GBAUD 4800 GPSTEXT $GPRMC #LTMH OFF
tnc-startup.d72-packet
# from https://www.complete.org/amateur-radio # modified from http://lists.xastir.org/pipermail/xastir/2011-July/020111.html #Don't send CONTROL-C before this line ##META#TC 1 ##Pause for one second ##META ##META #Put the TNC in packet mode since this is where we want to end up # Change the 1 to 0 to go to normal radio mode ##META TN 2,0 # Pause for two seconds ##META ##META ##META ##META HID off AWlen 8 BBSMsgs ON B E 0 LOC E 0 Echo off FLow off AUTOLF off MCOM off MON ON MRPt on PACLen 128 PASSALL off HBAUD 1200 TXDELAY 25 HEADERLN off # Delete following lines if without GPS # GBAUD 4800 GPSTEXT $GPRMC LTMH LTM 10 LOC E 0 GPSTEXT $GPRMC
tnc-stop.d72
STOP FILE # Undo any settings make in tnc-startup.sys # Edit this file for your tnc! UNPROTO CQ AUTOLF ON ECHO ON #Don't send CONTROL-C before this line ##METATC 1 ##Pause for one second ##META ##META ##META #Put the TNC in internal mode since this is where we want to end up # Change the 1 to 0 to go to normal radio mode ##META TN 0,0 # Pause for two seconds ##META ##META ##META ##META #Turn off Terminal Control ##META TC 0 # Pause for two seconds just in case ##META ##META ##META ##META #
Now, open Xastir. Go to the Interfaces menu and select Interface Control. You're going to click Add to add an interface, and do it twice.
Configure the first one like this:
Configure the second one the same, except with these differences:
Allow transmitting: checked
Comment: PACKET mode rw
Igate -> RF path: WIDE2-1
TNC setup filename: tnc-startup.d72-packet
Now it's ready to use. Before beginning, you'll of course plug in your USB cable. You'll also want to make sure the menu options 202 and 350 are configured as listed above. Now, press TNC until APRS shows up on the radio's display.
Next, in Xastir, go to Interface -> Interface Control. Select the mode you want ("APRS mode ro" for Xastir to have a read-only interface and leave the APRS interface active on the radio, or "PACKET mode rw" for Xastir to be able to transmit but disable the radio's packet interface). Click Start, wait a few seconds, and you're set. If you selected Xastir's PACKET mode, you should see the display on the radio change from APRS to PACKET12. If you selected Xastir's APRS mode, the radio display should continue showing APRS.
All done!
After some discussion on the Xastir list, the above steps didn't work out for everyone. Tom Hayward KD7LXL reported this:
I was able to test with a dumb terminal. I sent each of the TNC mode commands and watched the output for NMEA strings. TH-D72 v1.02: TNC off: GPS output works TNC APRS12: GPS output works TNC PACKET12: no GPS output TH-D72 v1.03: TNC off: GPS output works TNC APRS12: GPS output works TNC PACKET12: no GPS output This seems to confirm the bug we've been seeing all along is also present in 1.03.
It seems that as of 1.05, there is no firmware version with GPS output works in PACKET12 mode.
Amateur radio is a radio service in which people are allowed and encouraged to build their own radios, antennas, and so forth. It can be used to communicate all around the globe without any intervening infrastructure such as satellites or cables.
=> Homepage
=> Interesting Topics
=> How This Site is Built
=> About John Goerzen
=> Web version of this site
(c) 2022-2024 John Goerzen
text/gemini; charset=utf-8; lang=en; size=10055
This content has been proxied by September (3851b).