Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>PK</strong>-<strong>232</strong> OPERATING MANUAL<br />
COMMAND SUMMARY<br />
SAmple “n”<br />
Mode: Command<br />
Immediate Command<br />
Host: SA<br />
“n" — 20 to 255 specifies the sampling rate in baud.<br />
This is a new operating mode with the Summer 1991 <strong>PK</strong>-<strong>232</strong> firmware release for<br />
advanced users interested in decoding unknown synchronous data transmissions.<br />
SAMPLE is similar to the SBIT and 6BIT modes, but operates on synchronous data,<br />
whereas 5B1T and 6BIT are used on signals known to be asynchronous.<br />
SAMPLE syncs up on any regularly-paced data transmission and samples the data<br />
once per bit, packaging the data in groups and sending the groups to the user for<br />
further analysis. The user can use SAMPLE to capture data bits from a<br />
synchronous transmission, such as FEC, TDM or an 'unknown model' not identified<br />
by the SIGNAL command. The transmission is actually sampled several times per<br />
data bit. The <strong>PK</strong>-<strong>232</strong> does a majority vote an the last few samples to represent<br />
the value of the data bit.<br />
One use for the SAMPLE command is to record the output to a disk file, then write<br />
a program to analyze the results for synchronous/asynchronous, bit sync patterns,<br />
data decoding, etc.<br />
SAMPLE data is captured in 6-bit units; the order of bit reception is MSB first,<br />
LSB last. The TNC sends the data unit to the user with a constant of hex 30<br />
added to each unit, the same as the 6BIT command. The 6-bit unit is a compromise<br />
between hexadecimal and 8-bit binary output, The 6-bit unit yields shorter disk<br />
files than 4-bit hexadecimal characters, but encounters no interference from<br />
terminal communications programs and the TNC's Converse and Command modes. The<br />
6-bit unit's range of $30-6F falls within the printable ASCII range, allowing the<br />
TNC to insert end-of-line carriage returns that can be ignored by the user's<br />
analysis software.<br />
To use SAMPLE, set ACRDISP to a non-zero value such as 77. This will break up<br />
the recorded disk file into lines. Tune in the signal, set WIDESHFT ON or OFF as<br />
needed, and get the transmission rate from the SIGNAL command. Now type "SAMPLE<br />
(rate)". As an example, SIGNAL may identify a transmission as 96 baud TDM; in<br />
this case type the following:<br />
SAMPLE 96 <br />
Now begin the capture to a disk file with the terminal program. At the end of the<br />
session, edit the disk file and remove any TNC commands that were echoed before<br />
or after the received data.<br />
Occasionally SIGNAL will identify a Baudot transmission at a rate that SAMPLE<br />
cannot sync up on. This would happen if the Baudot signal had a stop bit<br />
duration 1.5 times the data bit duration. In this case, SAMPLE at twice the baud<br />
rate and compensate for the doubled data bits in the analysis software. Note that<br />
it might be more useful to let the TNC do the start/stop bit work by using the<br />
5BIT command rather than SAMPLE. 5BIT uses RBAUD, and adds a constant of hex 40<br />
to each 5-bit character received.<br />
Note:<br />
RXREV does affect the sense of the SAMPLE data.<br />
RXREV should however not be changed while capturing data.<br />
8/91 A-69<br />
From The <strong>N3UJJ</strong>.COM Document Library