Adjusting KISS TNC AFSK tx level using an isochronous test packet

This post explains a technique to drive a KISS TNC with a specially constructed packet that contains an ISOCHRONOUS test packet, a packet that will produce equal high and low tone alternation in the transmitted AFSK signal.

F0000TEK

Above is the waveform recovered from a receiver without de-emphasis (a Motorola R2009D communications analyser in this case).

The isochronous test packet comprises a KISS frame byte (0x0c), a command /address byte (0x00), a large number of 0x77 bytes which will result in equal alternations of high and low tone per byte or 150Hz rate (due to the NRZI encoding), and finally another KISS frame byte (0x0c). Some equipment contains the ability to send 600Hz isochronous test signals, but the lower rate of 150Hz was chosen to make measurement of the level of the 1200Hz tone easier as four cycles will be contained in the burst.

The packet used in this article contained 753 characters, and takes 5s to send at 1200bps, allowing a fairly steady signal for display on a scope. The test packet is included in the zip package linked at the bottom of the page.

The video above demonstrates the procedure using a Motorola R2000D communications analyser (which does not have de-emphasis).

kissiso01

Above a still from the video of the recovered modulation.

This can be sent to the TNC from a DOS command shell, or *nix shell after setting the serial port parameters.

The following is a DOS batch file which loops sending the packets. The sleep command is not part of DOS, it is the GNU sleep command ported to W32 and is included in the zip package linked at the bottom of the page. Of course, you must edit the com port setting to suit your TNC connection.

@echo off
set PORT=COM5
echo Hit Ctl-C to break out of this file
mode %PORT%: 9600,n,8,1
:again
echo Copy file...
copy w180.bin %PORT% >nul
echo Wait...
sleep 6
goto again

The following is a bash shell script to do the same thing.


The following is an expect script to do the same thing.


Links

Adjusting KISS TNC AFSK tx level using an improved isochronous test packet