Cross Country Wireless APRS TNC Digi Tracker project history

CCW TNC Digi Tracker

Back in October 2008 at the UK RAYNET National Convention at Liverpool I was part of a small group (Jack G8HIK, Ross G6GVI and myself Chris, G4HYG) giving a presentation on the latest developments in APRS (Automatic Position Reporting System.

APRS is an international network of amateur radio stations providing real-time GPS based vehicle or event position reporting, weather reporting and simple message handling for educational, experimental or emergency use. APRS uses a common radio frequency of 144.800 MHz throughout Europe. In addition to the radio network internet gateways provide a two-way port to the internet so that stations local to the gateway can be seen worldwide on APRS viewing programs such as Xastir or UI-View.

As always at events such as the Convention the feedback from those attending the presentation was invaluable. Many RAYNET members have simple APRS trackers but would like to upgrade to the next level where they could use APRS with a computer using Xastir or UI-View or operate an in-fill digipeater from home or from the car. At present the only hardware option is to buy an old packet radio TNC (rarely available these days) or buy a new product like the Tracker 2. The Tracker 2 is a fine product (I have one myself) but it's price in the UK is now approaching £100. The feedback from RAYNET members was that a cheaper unit with basic TNC, digipeater and tracker facilities would be welcomed.

After the Convention I researched the possibility of producing an APRS TNC with digipeater and tracker facilities. I came across an article "An Inexpensive Terminal Node Controller for Packet Radio" by Bob Ball WB8WGA in the ARRL magazine QEX where he describes a simple TNC using a PIC microprocessor IC based on previous work by Mike Berg N0QBH on modem-less receiver design using an external comparator. I made contact with Bob and Mike and gained their permission to further develop the original TNC concept for amateur radio use.

I'm including the following features in the TNC:

Use D type connectors for radio and GPS ports for power and audio inputs (compatible with Kantronics TNC, Tiny Trak and Open Tracker)...Done
Use DIL switches for power on/off, GPS/PC, PTT on/off, PTT for HT, 5V feeds to pins 4 and 9 on the GPS port to power GPS receivers...Done
Additional low pass and high pass filtering on the audio input to improve performance on noisy VHF signals and 300 bd HF signals...Done
Additional LEDs displaying activity on the serial inputs and outputs...Done
Add a FSK output for 300 bd HF transmitters in addition to audio tone output

In the firmware I plan to add the following features:

Add additional digipeater options (superdigi)
Add an FSK output on pin 3 of the PIC16F88 for 300 bd HF transmitters
Add a 300 bd speed option for HF use
Add a status packet every five position packets when using GPS NMEA input...Done
Make changes to allow use with UI-View and Xastir and 4800 bd NMEA GPS receivers...Done

Latest news of the project

22 December 2008
One prototype built undergoing tests.
The PCB design has been finalised and the first prototype batch of boards have been ordered and are due for delivery after Christmas.
Firmware development based on version 2 supplied by Bob Ball WB8WGA is continuing.

3 January 2009
In the firmware I've removed the temperature sensor routines from Bob Ball's original version 2 firmware to make space for more APRS routines. The first major firmware change is to output a status packet every fifth packet during GPS operation. It uses the BTEXT data so the status packet has to include an initial ">" character.
For example: BTEXT >Chris, Bolton RAYNET

The $GPRMC NMEA data string is now used as default. It's relatively long at 60 bytes but does include a datestamp, timestamp, latitude and longitude to four decimal places rather than two, speed, true course bearing and magnetic variation. It's also a known uncoded format so is acceptable for amateur radio use in many countries that do not allow coded messages.
In APRS symbols can be included in the destination packet as well as the more commonly used information packet and SSID.
For example: GPSC86,WIDE1-1,WIDE2-2 where GPSC86 is the symbol for a van.

CCW TNC Digi Tracker

18 January 2009
The beta batch of PCBs has arrived and the first board has been built for test (see above). The receive audio filtering has been changed from the original plan to two low pass Bessel filters in series and has been optimised for the correct gain distribution and group delay performance.
In a quick comparison test against the Kantronics KAM Plus TNC used in the MB7UBN igate the prototype TNC could decode packets 100% on noisy signals that the KAM Plus could only occasionally decode. Severely distorted off frequency signals were also decoded correctly which will be useful in decoding APRS from doppler shifted signals from the ISS and PAC-SAT. I'll run more detailed tests with a modulated signal generator and receiver later.

28 January 2009
After an enquiry by Tony ZS1APB and Dorian ZR1DAS I've run some tests with the prototype TNC using the packet radio program Winpack. The TNC works well with the program in Converse mode and I've made a zip file containing two screen shots that show the Winpack TNC set-up and the TNC set-up.
Click here to download the WinPack setup zip file.
As the test was run on the APRS frequency the screen shots show the test packets digipeated via MB7UBN and some local APRS activity.
I used 4800 bd to connect to the PC to demonstrate that you could use the TNC as a mobile tracker in a vehicle and easily convert to mobile or portable packet operation by just replacing the GPS with a laptop and changing a few TNC settings.
The main difference with other TNCs is that you have to type the full word converse rather than conv to place the TNC in Converse mode.

Following on from this I took another look at UI-View. I found an option deep within UI-View that once selected allowed the TNC data output to be displayed. I then revised the TNC configuration file to enable it to transmit packets from UI-View.
Click here to download a zip file containing the UI-View configuration file and text document explaining how to set-up UI-View to work with the TNC.
The original WB8WBA TNCs will work on receive but the revised CCW firmware is needed for transmitting. There are still a few issues to sort out in the firmware but these are now relatively minor.

10 February 2009
This firmware version has a change to the Converse command to speed up Converse mode with UI-View. The command has been changed from converse to conv. Minor changes to the Help file and Disp mode reflect this change. A restart command has been added to reset the TNC to it's original settings when UI-View is closed. The UI-View set-up file has also been modified. Operation with UI-View at 4800 bd is much improved.

24 February 2009
The firmware now has the logic included for the superdigi feature. More details on this in the operation manual currectly being prepared.
A bug in the digipeater timing has been fixed.

15 March 2009
The superdigi option is now complete and a test is being run using the prototype TNC to make the MB7UBN station a "superdigi" digipeater. It's a severe test as the incoming APRS traffic level is high and includes selective internet to RF feeds from two other igate stations. So far three hours into the test everything looks OK with several mobile stations being tracked successfully.

21 March 2009
The superdigi test has run successfully over the last week with only two short breaks to load updated firmware.
I've put some work into making the firmware more reliable. I had noted that if the power supply was poor or interrupted during boot-up it could very occasionally corrupt the eeprom data storing callsign, myalias1 and 2 etc. This was only really a problem when I used it in my old Land Rover where the APRS radio is fed from a radio accessory switch on the ignition key that switched the power on and off several times while starting the engine. I've enabled the on-chip power up timer and brown out timer and also added a 2 second delay on start up before reading the eeprom data to make sure that the power supply is stable. Despite giving the prototype some serious electrical abuse it will not corrupt the data now!

2 April 2009
I've contacted Bob Bruninga WB4APR, the inventor of APRS, who has kindly reviewed the project so far and offered some valuable advice and also agreed to license APRS to Cross Country Wireless (2009) Ltd so that the TNC/Digi/Tracker can be offered as a commercial product.
The first modification suggested by Bob is to transmit the GPS position and status packets alternately so that the status information can be read on Kenwood radios. They have a software bug where position packets following the status packet over-write the status information.
The other modification made is to change the superdigi option to a "digi all" option where all APRS packets received with a valid alias are digipeated with callsign substitution.
Following feedback from Dorian ZR1DAS I've also updated the firmware to a version that can digipeat while in GPS mode for emergency mobile digipeating.
The good news is that the firmware is nearly ready and the beta versions of the TNC/Digi/Tracker should be ready for test next month.

17 April 2009
After a discussion with Paul G8SJA at the recent Norbreck Rally and email feedback from Dorian ZR1DAS I've added an additional switch to control the digipeater function. It's now possible to program the digipeater and leave it switched off in normal operation with the option to switch on without PC programming just by flicking a switch.

4 May 2009
I've changed the GPS beacon timing to send a status beacon after 5 positions beacons. If the beacon timing is set to three minutes then the status is sent every fifteen minutes. This meets the APRS timing protocol. The beacon timing has also been calibrated.

The firmware is now ready and over the next month additional testing of beta hardware versions will continue.

9 May 2009
The Operating Manual is now finished and can be downloaded as a 801 kB PDF file here.

29 May 2009
Work on the 300 bd HF version of the firmware is nearly completed. The transmit tones are correct and the data speed has been coded and tested. Tests on the receive performance are very promising. The TNC will read clean AFSK generated by a PC running Mix-W at 300 bd over a tuning range of 134 Hz. Most existing TNC's typically only accept a 40 Hz range so this will allow reception of off frequency HF APRS signals. Tests are continuing...

22 July 2009
Production of the first batch of Trackers is underway and will be available for sale very soon!

Assembler and hex files for the original WB8WGA version 2 firmware follow:

WB8WGA's original Version 2 Assembler source code
WB8WGA's original Version 2 Hex code for 4800 bd operation

The latest 1200 bd firmware version is v 3.34.
The latest 300 bd firmware version is v 4.06.

Contact Chris G4HYG via info@crosscountrywireless.net for more details.
Any comments or suggestions will be gratefully received!

Click here to see the prototype under test on the APRS network.

Click here to see where Chris is using APRS on 144.800 or 145.825 MHz!

Click here to see where Chris is using HF APRS on 10.1492 MHz!

APRS is a registered trademark of Bob Bruninga WB4APR. Click here to view Bob's website.

Standard Guidelines for APRS in IARU Region 1

Latest APRS guidelines for IARU Region 1 from the recent Conference...please check that your APRS set-up is upto date...
Use WIDE1-1,WIDE2-2 for mobile trackers; WIDE2-2 for fixed stations and WIDE2-1 for Igates




Back to Index