SlideShare a Scribd company logo
1 of 81
Download to read offline
Virginia Tech Ground Station
TNC Interfacing Tutorial
Zach Leffke, MSEE (zleffke@vt.edu)
Research Associate
Aerospace Systems Lab
Ted & Karyn Hume Center for National Security and Technology
3/23/2018
Agenda
• TNC Connection Overview
• KISS Protocol
• AX.25/HDLC Protocol
• AFSK/FSK/GMSK Modulation
• ….System Review….
• OSI Stack
• Remote Connection
• VTGS Remote Interface
• Summary
3/23/2018 TNC Interfacing Tutorial 2
VHF/UHF
Antennas
4.5m Dish
3.0m Dish
Deployable
1.2m Dish
Space@VT Ops Center
(students preparing for
2016 RockSat Launch)
GNU Radio at work
Students assembling
4.5m Dish
Primary Ground Station - UPEC
Host Computer
Software TNC
HOST OS NETWORK
Spacecraft
C&DH
Comput
er
RADIO
Client
TC SW
AX.25
KISS
IP
TCP
KISS
AFSK
AX.25
HDLC
Audio
AFSK
FM
RF
AX.25
HDLC
SERIAL
KISS
TTL Serial
SERIAL
AX.25
KISS
TC SW
Audio
TNC SW
FIRMWARE
RADIO
DATA
IN
FM
RF
SoundCard
Interface
D to A
IP IP
TCP
Localhost
LOOPBACK
IP
Remote Ground Station - VTGS
Host Computer
Software TNC
HOST
OS
NET
KISS
AFSK
AX.25
HDLC
Audio
Telecommand
(TC)
Audio
TNC SW
RADIO
DATA
IN
FM
RF
SoundCard
Interface
D to A
IP
TCP
Radio
INTERNET
MAC
MAC
VPN CONNECTION
Preview of the Finale……………
3/23/2018 TNC Interfacing Tutorial 3
TNC Connection Overview
TNC Implementation Types
Hardware Radio DATA Jack
Specific Interface Examples
3/23/2018 TNC Interfacing Tutorial 4
TNC Implementation Summary
• Multiple implementation options exist
• Hardware TNC Ground Station
• Software TNC + Sound Card
• Software Defined Radio Receiver
• Software Defined Radio Transceiver
• Hybrid SDR RX / HW Radio TX implementations
3/23/2018 TNC Interfacing Tutorial 5
Hardware Radios – Common for Satellite
3/23/2018 TNC Interfacing Tutorial 6
Hardware TNCs
3/23/2018 TNC Interfacing Tutorial 7
Radio Sound Card Interfaces
• Good ones offer optical isolation (optocouplers).
• Appear as a soundcard to host computer OS.
• HW control of TX/RX volume.
• Also used for non-packet modes. Make sure one with the proper
capabilities is selected.
• Different non-sound related options available (such as PTT control,
and CW keying). Again, make sure one with the proper features is
selected.
3/23/2018 TNC Interfacing Tutorial 8
Software Defined Radios
Receive Only Transceivers (TX & RX)
3/23/2018 TNC Interfacing Tutorial 9
X-Series USRP
B-Series USRP
E-Series
USRP
SDRPlay
Red
Pitaya
Blade
RF
B-Series
Mini
USRP
LimeSDR
N-Series USRP
SideKiq
See for more: https://www.rtl-sdr.com/roundup-software-defined-radios/
The ‘S’ in SDR?...here are a few…
3/23/2018 TNC Interfacing Tutorial 10
SDR#
HDSDR gqrx
GNU Radio
GNU Radio
gr-fosphor
(GNU Radio)
Putting it all together
LOTS of options exist……..
….and combinations of options…
….how to decide?!?!?!…..
….Lets go over some fundamentals……..
3/23/2018 TNC Interfacing Tutorial 11
Hardware TNC Ground Station
3/23/2018 TNC Interfacing Tutorial 12
Host Computer
Hardware TNC Hardware Radio
SERIAL Audio/NRZ/DIO
VHF RF Chain
UHF RF Chain
DATA
VHF
UHF RF
COM
PORT
RADIO
PORT
SERIAL
Host Computer HW TNC HW Radio Antennas
Serial
AX.25/KISS
Audio/NRZ
PTT
RF
Client
Software
Software TNC + Sound Card Ground Station
3/23/2018 TNC Interfacing Tutorial 13
Host Computer
Sound Card Interface
Hardware Radio
USB
TX DATA
VHF
UHF
Sound
Card
Driver
SPKR
USB
HUB
Host Computer SoundCard
Interface
HW Radio Antennas
FTDI
IC
Sound
Card IC
(ADC/DAC) MIC
PTT
DTR
RX
PTT
TCP/IP
AX.25/KISS
Audio/NRZ
PTT
COM
PORT
(PTT)
USB
Port
Client
Software
Software
TNC
VHF RF Chain
UHF RF Chain
RF
RF
USB / Serial
‘audio’ samples
Software Defined Radio Receiver
3/23/2018 TNC Interfacing Tutorial 14
Host Computer
SDR
Driver
Host Computer Antennas
TCP/IP
AX.25/KISS
USB
Port
Client
Software
Software
TNC
RF Chain RF
USB
Digitized RF Samples (IQ)
RF
USB
SDR
Signal
Processing
IQ
Audio
Samples
Software Radio
Dongle
Software Radio Receiver
I RF
IF
LO
RF
IF
LO
Q
2
1
0°
90°
D A
D A
RF
IF
LO
RX
USB
PHY
Software Defined Radio Transceiver
3/23/2018 TNC Interfacing Tutorial 15
Host Computer
Host Computer Antennas
TCP/IP
AX.25/KISS
Ethernet
Client
Software
RF
Ethernet (UDP/VITA-49)
Digitized RF Samples (IQ)
RF
Ethernet
Software Radio
Signal Processing
(Link and Physical Layer)
IQ
SDR Transceiver
SDR
Driver
Software Radio Transceiver
I RF
IF
LO
RF
IF
LO
Q
2
1
0°
90°
D A
D A
I RF
IF
LO
RF
IF
LO
Q
2
1
0°
90°
D A
D A
RF
IF
LO
RF
IF
LO
RX
TX
Ethernet
PHY
RF
CHAIN
TX
RX VHF
UHF
RF RF
NOTE: This is basically the chosen VTGS architecture
N-Series
USRP
TNC Connection Overview
TNC Implementation Types
Hardware Radio DATA Jack
Specific Interface Examples
3/23/2018 TNC Interfacing Tutorial 16
Hardware Radio DATA Jack
ICOM-9100 Example What is it for?
• Used for packet operations.
• Bypasses audio filtering (which can distort
digital communications).
• Standardized PS-2 Connector and pinouts
across vendors.
• High speed (9600 baud) and low speed
(1200 baud) packet access.
• Connects to ‘Radio Port’ on TNC.
3/23/2018 TNC Interfacing Tutorial 17
RF IF
LO
Pos(+ )
IF AUD
LO
TX
RX
C
RF IF
LO
2
1
FM Transceiver (simplified)
3/23/2018 TNC Interfacing Tutorial 18
RF Stage IF Stage Audio Stage
Demodulator
(FM Discriminator)
Audio
Filtering
Volume
Control
AGC
FM
Modulator ALC
Speaker
Microphone
TX PWR
Control
Tuning Control
(the BIG knob)
RX Channel
Filter
TX Filter
TX/RX
Control
De-Emphasis
Pre-Emphasis
RF IF
LO
Pos(+ )
IF AUD
LO
TX
RX
C
RF IF
LO
2
1
FM Transceiver – DATA Jack Tap Points
3/23/2018 TNC Interfacing Tutorial 19
2
3
4
5
6
*NOTE:
• Selecting 1200 Baud packet mode on radio menu connects 1a tap point
• Selecting 9600 Baud packet mode on radio menu connects 1b tap point
• Unsure if pins 4 and 5 are affected by this menu selection. (TEST!)
1a*
1b*
Hardware Radio DATA Jack
3/23/2018 TNC Interfacing Tutorial 20
Probably want MAIN assigned to uplink so
that when PTT is triggered, the radio transmits
on the Uplink Frequency. SUB would then be
assigned to Downlink noting the comments
below. Could be totally wrong about this,
especially if IC-9100 has a ‘satellite mode’ of
operation that overrides these settings.
From IC-9100 Manual
Hardware Radio DATA Jack
DATA Jack to TNC Pinout/Cabling TNC or Soundcard Notes
3/23/2018 TNC Interfacing Tutorial 21
• Each vendor is different.
• Different connector styles, different
pinouts, different settings.
• Must consult the manufacturer
documentation to properly configure and
fabricate interface cable.
• Some TNC/Soundcard vendors sell pre-
fabricated radio specific interface cables.
• MUST pay attention to signal levels
(volume control) on DATA IN (1), DATA
OUT (4), and AF OUT (5) pins to avoid
signal distortion (lost packets).
DATA Jack Signal
TNC or Soundcard
Interface Equivalent
Signal
Hardware Radio DATA Jack – Additional Notes
Volume Control Squelch Pin (6)
3/23/2018 TNC Interfacing Tutorial 22
• SQL (6) connection is optional. Purpose is to
inhibit Transmit when open (signal detected).
For satellite work, recommend leaving
disconnected so that the squelch can be
completely opened on the radio. This will
allow a human operator to listen to signals too
weak to decode (like near AOS/LOS) to
monitor system performance without
inhibiting transmit (uplink) capability.
• This pin is most useful for Terrestrial APRS use
when in a cluttered RF environment (many
transmitters on same frequency and bursty).
This pin is usually connected to a ‘Data Carrier
Detect’ Pin on the TNC to inhibit TX when
signals are detected on the channel in order
to avoid packet collisions.
• The AF OUT (5) and DATA OUT (4) Pins bypass
the majority of the audio conditioning
circuitry. This is to avoid distortion. This
means that the VOLUME control knob on the
radio has no effect on the voltages output on
these pins. The human operator can set the
volume of the radio speaker to a comfortable
level for monitoring without affecting the
voltages output on these pins. Most TNCs
have a configurable ‘input gain control’ (or
similar) setting to set this at an optimal input
level for the TNC. Most sound card interfaces
have an ‘RX knob’ which is essentially a
volume control for the same purpose.
Hardware Radio DATA Jack – Additional Notes
Push To Talk (PTT)
3/23/2018 TNC Interfacing Tutorial 23
• The PTT (3) pin is used to enable transmit on the radio.
• It is tempting to connect directly to the TNC (that’s what
the manual says to do right!?!?).
• For satellite work, usually this is not actually desirable
because there are multiple devices that need to ‘see’ the
PTT signal to switch the entire system (not just the radio)
into a transmit state.
• Devices that need to see the PTT pin include the Low Noise
Amplifiers, The High Power Amplifiers, the Radio and
sometimes additional devices (such as coax relays)
depending on the specifics of the ground station design.
• Normally, this pin out of the TNC is used to trigger a device
called a ‘sequencer’ that has multiple PTT output channels
with configurable delays between each channel. The radio
PTT signal on the DATA jack is usually the LAST PTT signal to
be enabled.
• More on Sequencing later……..its important!
TNC Connection Overview
TNC Implementation Types
Hardware Radio DATA Jack
Specific Interface Examples
3/23/2018 TNC Interfacing Tutorial 24
Some Examples
• Hardware TNC And Radio: KPC-9612+ TNC & ICOM-9100
• Sound Card Interface and ICOM-9100
• Software TNC Examples (for sound card interfaces)
• Software Radio Receiver Example
• ‘Client Software’ Examples
3/23/2018 TNC Interfacing Tutorial 25
HW TNC To HW Radio Example
KPC-9612+
• Port 1 – Low Speed (AFSK1200)
• Port 2 – High Speed (FSK9600)
• Computer = Serial
ICOM-9100
3/23/2018 TNC Interfacing Tutorial 26
FRONT
REAR
HW TNC To HW Radio Example
3/23/2018 TNC Interfacing Tutorial 27
Cable Fabrication Time!
KPC-9612+ TNC to ICOM-9100 DATA Cable
3/23/2018 TNC Interfacing Tutorial 28
NOTES
1. Port 1 (AFSK1200) Controls Transmit (PTT) Since this is the uplink rate.
2. Port 1 (AFSK1200) Can also Receive (not needed, but useful for testing, related to KISS Protocol).
3. Recommend NOT Connecting Squelch (SQL/XCD) Lines to Data Jack (used For TX inhibit).
4. Dashed Lines are optional (SQL to DATA and Calibration equipment).
KPC-9612+
ICOM-9100
Eye Diagram
Monitor
RX SNR
Monitor
1
6
2
7
3
8
4
9
5
1
9
2
10
3
11
4
12
5
6
7
8
14
15
13
TXA
PTT
GND
RXA
XCD
RXA
GND
LOW SPEED DATA CABLE
GND
DATA IN
SQL
AF OUT (1200bps)
PTTP
SHIELD
SHIELD
GND
SHIELD
HIGH SPEED DATA CABLE
SHIELD
2
2
1
1 4
4
3
3
----
----
----
----
----
----
----
----
----
----
Oscilloscope
On/Off
§Ù
V
μA
~
mA
A
~
mV
~
V
~
O
F
F
COM
A
m
A/
μA
V§
Ù
123.456
Ha
n
d
h
e
l
d
DMM
GND
CALIBRATION CABLE
(OPTIONAL)
RXC
RX S/N
RXA
SHIELD
GND
GND
RX S/N
RXA
RXC
DATA OUT
(9600bps)
XCD
SQL
Port 1
Port 2
DATA2
(PS-2 Male)
DB-15 Male
(NOT HD version!)
DB-9 Male
KPC-9612+ TNC to HOST Computer Cable
1
14
2
15
3
16
4
17
5
6
7
8
19
20
18
9
22
10
11
12
13
24
25
23
21
1
6
2
7
3
8
4
9
5
DB-25 Male
RS-232 - DCE
DB-9
FEMALE
DCD
TXD
RXD
RTS
CTS
DSR
SG
DTR
SHIELD
3/23/2018 TNC Interfacing Tutorial 29
USB To
Serial
Adapter**
NOTES:
1. SG/TXD/RXD/Shield Are Required!
2. Other Signals are optional.
3. FTDI Converters can cause EMI/RFI and ‘splatter’ receiver front ends.
**Keyspan USA-19HS USB to Serial to converter is a recommended ‘known quiet’ device.
SoundCard Interface To HW Radio Example
DIGIBOX2 ICOM-9100
3/23/2018 TNC Interfacing Tutorial 30
FRONT
REAR
Digibox2 Interface To HW Radio Example
3/23/2018 TNC Interfacing Tutorial 31
1
6
2
7
3
8
4
9
5
TRANSMIT = LOW SPEED (AFSK1200)
RECEIVE = HIGH SPEED (FSK9600)
DATA CABLE
GND
SHIELD
MOD
AUDIO IN
PTT
DATA IN
DATA OUT
PTTP
GND
SHIELD
1
6
2
7
3
8
4
9
5
LOW SPEED DATA CABLE
TX/RX = LOW SPEED (AFSK1200)
GND
SHIELD
MOD
AUDIO IN
PTT
DATA IN
AF OUT
PTTP
GND
SHIELD
DB-9 Male
DB-9 Male
DATA2
(PS-2 Male)
DATA2
(PS-2 Male)
NOTE: In order to test this connection you need an FSK9600 Transmit reference signal. CANNOT use this cable with local APRS transmissions for testing.
NOTE: Can test this configuration with local Terrestrial APRS signals (useful for testing higher layer AX.25/KISS interfaces).
THIS IS WHAT YOU NEED
(minimum) FOR OGMS-SA
THIS IS WHAT YOU HAVE
Digibox2 Interface To HW Radio Example - Hybrid
3/23/2018 TNC Interfacing Tutorial 32
• Option for switchable low speed or high speed connection
• Can select RX1 (AFSK1200) for low speed testing with terrestrial APRS signals. Can also use to test other system
functionality against satellites (doppler control, antenna pointing, etc.).
• Once confident with higher level AX.25/KISS processing and satellite tracking (Doppler, pointing) can then switch
to RX2 (FSK9600) for testing against 9600 baud satellites.
• NOTE: This is a logical diagram, fabrication details are left to the experimenter to decide.
1
6
2
7
3
8
4
9
5
TX = LOW SPEED (AFSK1200)
RX1 = LOW SPEED (AFSK1200)
RX2 = HIGH SPEED (FSK9600)
GND
SHIELD
MOD
AUDIO IN
PTT
DATA IN
AF OUT
PTTP
GND
SHIELD
DB-9 Male DATA2
(PS-2 Male)
DATA OUT
AUDIO
2
1
C
HYBRID DATA CABLE
Dual Digibox2 Interface To HW Radio Example
3/23/2018 TNC Interfacing Tutorial 33
1
6
2
7
3
8
4
9
5
LOW SPEED DATA CABLE
TRANSMIT = LOW SPEED (AFSK1200)
RECEIVE = LOW SPEED (AFSK1200)
GND
SHIELD
MOD
AUDIO IN
PTT
DATA IN
DATA OUT
PTTP
GND
SHIELD
1
6
2
7
3
8
4
9
5
HIGH SPEED DATA CABLE
RECEIVE = HIGH SPEED (FSK9600)
GND
SHIELD
AUDIO IN
GND
SHIELD
DB-9 Male
DB-9 Male
DATA2
(PS-2 Male)
AF OUT
Digibox2 COM Ports (Not Soundcards!)
3/23/2018 TNC Interfacing Tutorial 34
Jumper positions for this Example:
COM A = PTT/CW Key Control (Transmit Signal)
COM B = Yaesu’s Computer Aided Transceiver (CAT) = ICOM’s CI-V = Computer Tuning Control
LVLCTRL
MIC
SPKR
OptoCoupler
MIC
USB
HUB
FTDI
COMA
(PTT/CW)
SoundCard IC
(ADC/DAC) SPKR
CW
1
6
2
7
3
8
4
9
5
AUDIO IN
MOD
RXD
TXD
DTR
RTS
RXD
TXD TXD-B
TXD-A
RXD-A
RXD-B
PTT
RTS-A
DTR-A
DTR-B
RTS-B
GND
FTDI
COMB
(CAT)
DTR
RTS
RXD
TXD
K4
K3
K1
K2
DIGIBOX2
Sound Card Interface
Software TNCs (for soundcard interfaces)
SoundModem (AFSK1200) High Speed Soundmodem (FSK 9600)
3/23/2018 TNC Interfacing Tutorial 35
Software TNC - AGW Packet Engine
3/23/2018 TNC Interfacing Tutorial 36
Software Defined Radio Receiver - Example
3/23/2018 TNC Interfacing Tutorial 37
Host Computer
SDR
Driver
TCP/IP
AX.25/KISS
USB
Port
Client
Software
Software
TNC
RF Chain RF
RF
USB
SDR
Signal
Processing
IQ
Audio
Samples
Software Radio Receiver
I RF
IF
LO
RF
IF
LO
Q
2
1
0°
90°
D A
D A
RF
IF
LO
RX
USB
PHY
Client Software Examples – AMSAT FOX Software
3/23/2018 TNC Interfacing Tutorial 38
Client Software Examples – COSMOS!
3/23/2018 TNC Interfacing Tutorial 39
****Client Software – The Point!****
3/23/2018 TNC Interfacing Tutorial 40
Satellite
XYZ
Telecommand (TC)
And
Telemetry (TM)
Software
AX.25/KISS Frames
Come Out (TX/Uplink) and
Go In (RX/Downlink)
KISS Protocol
3/23/2018 TNC Interfacing Tutorial 41
Keep It Simple, Stupid (KISS) Protocol
• “KISS (keep it simple, stupid) is a protocol for communicating with a serial terminal node
controller (TNC) device used for amateur radio. This allows the TNC to combine more
features into a single device and standardizes communications. KISS was developed by
Mike Chepponis and Phil Karn to allow transmission of AX.25 packet radio frames
containing IP packets over an asynchronous serial link, for use with the KA9Q NOS
program.” -- https://en.wikipedia.org/wiki/KISS_(TNC)
3/23/2018 TNC Interfacing Tutorial 42
KISS
BYTES
AX.25
Frame
KISS
BYTES
Host Computer HW TNC HW Radio
AX.25
Frame
Asynchronous Serial
(RS-232)
AFSK1200 Audio
Or
FSK9600 NRZ
Bi-directional Link
Bi-directional Link
KISS Protocol – Only 3 Extra Bytes!
Special KISS Characters
Hex value Abbreviation Description
0xC0 FEND Frame End
0xDB FESC Frame Escape
0xDC TFEND Transposed Frame End
0xDD TFESC Transposed Frame Escape
3/23/2018 TNC Interfacing Tutorial 43
FEND
(1 Byte)
COMMAND
(1 Byte)
DATA
(0-N Bytes)
FEND
(1 Byte)
DATA for over the Air TX (AX.25 Frame)
STOP Control Character
KISS COMMAND Character
START Control Character
Why Special Characters?:
• FEND Used to Mark Start/Stop of a KISS Frame
(kind of like HDLC Flag bytes)
• If the FEND or FESC codes appear in the data to be
transferred, they need to be escaped.
• If DATA contains:
• FEND  FESC, TFEND replaces in byte stream
• FESC  FESC, TFESC replaces in byte stream
• (kind of like HDLC bit stuffing, but at the byte level)
KISS Protocol – FEND Byte
3/23/2018 TNC Interfacing Tutorial 44
DATA
(0-N Bytes)
FEND
(1 Byte)
COMMAND
(1 Byte)
0xC0
FEND
(1 Byte)
0xC0
FEND (0xC0) is used to mark the start and stop of a FRAME
KISS Protocol – COMMAND Byte
3/23/2018 TNC Interfacing Tutorial 45
KISS Command Codes
Hex
value
Name Bytes Description
0x00 Data frame Varies
This frame contains data that should be sent out of the
TNC. The maximum number of bytes is determined by
the amount of memory in the TNC.
This is the only allowed command code for a RECEIVED
frame
0x01 TX DELAY 1
The amount of time to wait between keying the
transmitter and beginning to send data (in 10 ms units).
0x02 P 1
The persistence parameter. Persistence=Data*256-1.
Used for CSMA.
0x03 SlotTime 1 Slot time in 10 ms units. Used for CSMA.
0x04 TXtail 1
The length of time to keep the transmitter keyed after
sending the data (in 10 ms units).
0x05 FullDuplex 1 0 means half duplex, anything else means full duplex.
0x06 SetHardware Varies Device dependent.
0xFF Return 1
Exit KISS mode. This applies to all ports and requires a
port code of 0xF.
FEND
(1 Byte)
DATA
(0-N Bytes)
FEND
(1 Byte)
COMMAND
(1 Byte)
CMD
(Lo Nibble*)
Port Index
(Hi Nibble*)
*NOTE:
1 Nibble = 4 bits
1 Byte = 2 Nibbles = 8 bits
Commands for control of TNC
Port Index of TNC
0
1
Remember this guy?
0
1
KISS Protocol – DATA Byte
3/23/2018 TNC Interfacing Tutorial 46
FEND
(1 Byte)
FEND
(1 Byte)
COMMAND
(1 Byte)
DATA
(0-N Bytes)
FLAG DESTINATION
ADDRESS
8 56
SOURCE
ADDRESS
56
Control
Bits
8
Protocol
Identifier
8
AX.25 Transfer Frame Header (128 bits)
Information
Field
0-2048
Frame
Check
Sequence
16
FLAG
8
Client Software Outputs/Inputs The AX.25 Frame inside the KISS DATA Field
Note ONLY the AX.25 Frame, NOT the HDLC pieces, are inside the KISS Frame
AX.25/HDLC Protocol
3/23/2018 TNC Interfacing Tutorial 47
• The ‘A’ means ‘Amateur’
• Layer 2 (Link Layer) Specification.
• Derived from HDLC (flags, framing, bit stuffing, NRZ-I encoding)
• Most common amateur radio packet protocol
• Relatively large protocol, with only a small subset of details relevant to satellite
• References:
• https://www.tapr.org/pdf/AX25.2.2.pdf  Full AX.25 specification (July 1998, almost 20 years old!)
• https://www.qb50.eu/index.php/tech-docs/category/17-up-to-date-docs
• 11- QB50-EPFL-SSC-SCS-ICD-AX.25-TFF-3-1.pdf  This one describes the relevant pieces of AX.25 for satellite work
• http://destevez.net/2016/06/kiss-hdlc-ax-25-and-friends/  additional useful details and mapping
to Physical layer (AFSK, GMSK, etc.)
AX.25 Protocol - Overview
3/23/2018 TNC Interfacing Tutorial 48
• Octets (Bytes) are sent Least Significant Bit (LSB) first:
• Frames are sent Most Significant Byte First (Flag, then Dest, then Src, …. One exception!)
• All fields in between flags are subject to HDLC bit stuffing (more later)
• Satellites use AX.25 Unnumbered Information Frame (UI-Frame)
• UI-Frames are Connectionless
• AX.25 UI-Frame Structure:
AX.25 Protocol – Initial Details
3/23/2018 TNC Interfacing Tutorial 49
FLAG DESTINATION
ADDRESS
8 56
SOURCE
ADDRESS
56
Control
Bits
8
Protocol
Identifier
8
AX.25 Transfer Frame Header (128 bits)
Information
Field
0-2048
Frame
Check
Sequence
0-2048
FLAG
8
7
MSB LSB
6 5 4 3 2 1 0
FLAG DESTINATION
ADDRESS
8 56
SOURCE
ADDRESS
56
Control
Bits
8
Protocol
Identifier
8
AX.25 Transfer Frame Header (128 bits)
Information
Field
0-2048
Frame
Check
Sequence
16
FLAG
8
AX.25 Protocol – Flag Field
• Used to mark beginning and end of frame
• Helps receiver synchronize
• Usually many are sent before and after frame
• Not subject to HDLC Bit Stuffing (more later)
• Fixed Value: 01111110 (0x7E)
• Technically this is NOT part of the AX.25 Frame, its part of the HDLC encapsulation (a detail but
important for implementers)!
3/23/2018 TNC Interfacing Tutorial 50
0
Flag (8 bits)
1 1 1 1 1 1 0 0
Flag (8 bits)
1 1 1 1 1 1 0
FLAG DESTINATION
ADDRESS
8 56
SOURCE
ADDRESS
56
Control
Bits
8
Protocol
Identifier
8
AX.25 Transfer Frame Header (128 bits)
Information
Field
0-2048
Frame
Check
Sequence
16
FLAG
8
AX.25 Protocol – Destination & Source Addresses
• 6 Callsign octets + 1 SSID Octet
• 6 Callsign octets are 7 bit ASCII, but left shifted one bit.
• Last bit of each octet indicates whether there is more data or not:
• 0 = More Address Data
• 1 = End of Address Data
• SSID[7:5] fixed bits  011
• SSID[4:1]  16 bit integer value, usually 0000
• NOTE: 2 to 4 addresses are allowed in AX.25; Destination and Source are required with up to 2 additional ‘paths.’ Usually,
for satellites, only the source and destination fields are present. A notable exception to this are the APRS repeater satellites
(ISS, PSAT, NO-44, etc.) that include additional ‘digipeat paths’ (According to the APRS protocol).
3/23/2018 TNC Interfacing Tutorial 51
X
C1 (8 bits)
X X X X X X 0 X
C6 (8 bits)
X X X X X X 0
...
SSID (8 bits)
0 1 1 S S I D 0
DESTINATION ADDRESS
X
C1 (8 bits)
X X X X X X 0 X
C6 (8 bits)
X X X X X X 0
...
SSID (8 bits)
0 1 1 S S I D 1
SOURCE ADDRESS
This is the only last bit with a value of 1
FLAG DESTINATION
ADDRESS
8 56
SOURCE
ADDRESS
56
Control
Bits
8
Protocol
Identifier
8
AX.25 Transfer Frame Header (128 bits)
Information
Field
0-2048
Frame
Check
Sequence
16
FLAG
8
AX.25 Protocol – Control and Protocol ID
Control Bits:
• Indicates what type of AX.25 Frame is being sent
• Unnumbered Information Frame  Shall be fixed: 00000011 (0x03)
Protocol Identifier:
• Indicates what type of layer 3 protocol
• No layer 3 protocol implemented  Shall be fixed: 11110000 (0xF0)
3/23/2018 TNC Interfacing Tutorial 52
0
Control (8 bits)
0 0 0 0 0 1 1 1
Protocol ID (8 bits)
1 1 1 0 0 0 0
FLAG DESTINATION
ADDRESS
8 56
SOURCE
ADDRESS
56
Control
Bits
8
Protocol
Identifier
8
AX.25 Transfer Frame Header (128 bits)
Information
Field
0-2048
Frame
Check
Sequence
16
FLAG
8
AX.25 Protocol – Information Field
• Integer multiple of octets
• Maximum Length of 256 octets
• Contains the DATA!!!
• Telecommand (TC)
• Telemetry (TM or TLM)
• Mission Data
• This is where higher layer definitions come into play. QB50 for example elected to use
CCSDS packet formats within the Information Field. APRS is an ASCII based protocol that
defines this field for APRS messages. This can be completely custom, but MUST be
defined (ICDs recommended)!
3/23/2018 TNC Interfacing Tutorial 53
FLAG DESTINATION
ADDRESS
8 56
SOURCE
ADDRESS
56
Control
Bits
8
Protocol
Identifier
8
AX.25 Transfer Frame Header (128 bits)
Information
Field
0-2048
Frame
Check
Sequence
16
FLAG
8
AX.25 Protocol – Frame Check Sequence
• 16-CCITT based CRC (Cyclic Redundancy Check)
• Used to detect bit errors (doesn’t correct them!, some limited tricks are possible)
• Usually if errors are detected packet is discarded and not passed up the OSI stack for
higher level processing.
• NOTE: The FCS is sent least significant byte FIRST!!!! This can be confusing for
implementers.
• Technically this is NOT part of the AX.25 Frame, its part of the HDLC encapsulation (a
detail but important for implementers)!
3/23/2018 TNC Interfacing Tutorial 54
HDLC (AX.25) Protocol – Bit Stuffing
• Flags are special…its how the receiver detects an AX.25 frame in the bit stream.
• It is entirely possible (likely) that 6 consecutive 1s will appear in the data stream of an AX.25
frame. If nothing is done about this, then a false flag detection will occur, resulting in a failed CRC
check, resulting in a discarded frame.
• Bit Stuffing to the rescue!
• As the AX.25 frame is being sent into the modulator, the number of consecutive 1s is monitored.
• If 5 consecutive 1s are detected in the bit stream, a 0 is inserted.
• On the receiver side, if 5 consecutive 1s are detected and then the next bit is a 0, the 0 is discarded from the
bit stream (‘un-stuffed’). If the next bit is a 1, the receiver should expect a following 0, indicate a FLAG has
been received.
3/23/2018 TNC Interfacing Tutorial 55
FLAG DESTINATION
ADDRESS
8 56
SOURCE
ADDRESS
56
Control
Bits
8
Protocol
Identifier
8
AX.25 Transfer Frame Header (128 bits)
Information
Field
0-2048
Frame
Check
Sequence
16
FLAG
8
Subject to bit stuffing
0
Flag (8 bits)
1 1 1 1 1 1 0 0
Flag (8 bits)
1 1 1 1 1 1 0
HDLC (AX.25) Protocol – NRZ-I Line Encoding
• The Use of Non Return to Zero Inverted (NRZ-I) means that modulations don’t care about the actual symbol state (say a
positive or negative frequency). What matters is the change or lack of change of a symbol to represent the bit value.
• NOTE: HDLC/AX.25 uses an inverted form of NRZ-I.
• 0  Transition
• 1  No Transition
3/23/2018 TNC Interfacing Tutorial 56
0 1 0 0 1 1 0 0 0 1 1
NRZ-L
Traditional
NRZ-I
HDLC
NRZ-I
+V
-V
0
+V
-V
0
+V
-V
0
AFSK & FSK/GMSK Modulation
3/23/2018 TNC Interfacing Tutorial 57
AFSK and FM Modulation
• AFSK = Audio Frequency Shift Keying
• Uses audio tones at 1200 Hz (Space) and 2200 Hz (Mark).
• Derived from Bell 202 dialup modem standard, which is why a
‘burst’ sounds like an old modem.
• NRZ-I bits are used to alternate (or not) between the
tones.
• Continuous Phase Frequency Modulation used to
generate AFSK
• No instantaneous phase change  reduced signal bandwidth.
• Audio is then piped into an FM transmitter.
3/23/2018 TNC Interfacing Tutorial 58
Client TNC Radio
CPFSK
AX.25 Frame
Bit Stream
HDLC Bit
Stuffing
(NOT Flags)
NRZ-I Line
Encoding
(HDLC)
CPFSK
Modulation
(AFSK)
FM
Pre-emphasis
Frequency
Modulator
G3RUH FSK/GMSK Modulation
• FSK = Frequency Shift Keying
• GMSK = Gaussian Minimum Shift Keying
• Modulating signal (the ‘message’) bypasses the
FM pre-emphasis/de-emphasis circuitry of
hardware radio and is applied directly to the FM
Modulator (varactor) to produce FSK.
• If the NRZ-I signal is passed through a Gaussian
pulse shaping filter before it is sent to the radio
then GMSK is produced.
• More on next slide for pulse shaping
3/23/2018 TNC Interfacing Tutorial 59
Client TNC Radio
FSK
PSD
GMSK
PSD
AX.25 Frame
Bit Stream
HDLC Bit
Stuffing
(NOT Flags)
G3RUH
Scrambler
(1+𝑥12
+ 𝑥17
)
NRZ-I Line
Encoding
(HDLC)
Gaussian
Pulse Shaping
Filter
Frequency
Modulator
GMSK and Pulse Shaping Filter – more details
3/23/2018 TNC Interfacing Tutorial 60
• Pulse shaping smooths out instantaneous
transitions, which reduces side lobes in the
produced signal.
• Rolloff factor of pulse shaping filter controls
‘smoothness’ of curves. Is between 0 and 1
where 0 is a rectangular filter (i.e. no different
than no filtering). Sometimes called β,
sometimes α, sometimes BT.
• For Amateur Satellites, BT = 0.5 is common.
Gaussian Pulse Shaping filter
GMSK Power Spectral Density
FM
Modulator
1
2
3
4
Summary of process so far……
Uplink Only Scenario (for simplicity)
Agnostic to what type of TNC/Radio interface is used
3/23/2018 TNC Interfacing Tutorial 61
Client Software (Satellite TC/TM Software)
1. Client Software generates a properly formatted AX.25 Frame with Telecommand in Information Field.
2. Client Software encapsulates the AX.25 Frame inside the DATA field of a KISS Frame
3. Client Software writes the KISS Frame to the TNC via Serial or TCP/IP
3/23/2018 TNC Interfacing Tutorial 62
FLAG DESTINATION
ADDRESS
8 56
SOURCE
ADDRESS
56
Control
Bits
8
Protocol
Identifier
8
AX.25 Transfer Frame Header (128 bits)
Information
Field
0-2048
S
FEND
(1 Byte)
FEND
(1 Byte)
COMMAND
(1 Byte)
DATA
(0-N Bytes)
Serial
Port
TCP
Socket
1
2
OR
3
TNC KISS Processing
4. TNC Receives the KISS FRAME (Serial or TCP), removes/replaces escaped bytes if necessary, discards the FEND Bytes
5. The command byte is passed off for TNC parameter control and port routing. It is REMOVED from the byte stream.
6. The DATA field, which contains an AX.25 frame, is extracted and passed off to HDLC steps
3/23/2018 TNC Interfacing Tutorial 63
G DESTINATION
ADDRESS
56
SOURCE
ADDRESS
56
Control
Bits
8
Protocol
Identifier
8
AX.25 Transfer Frame Header (128 bits)
Information
Field
0-2048
Frame
Check
Sequence
16
FLAG
8
FEND
(1 Byte)
FEND
(1 Byte)
COMMAND
(1 Byte)
DATA
(0-N Bytes)
4
5
TNC Parameter
Control Functions
& Port Routing
HDLC Processing
6
FLAG DESTINATION
ADDRESS
8 56
SOURCE
ADDRESS
56
Control
Bits
8
Protocol
Identifier
8
AX.25 Transfer Frame Header (128 bits)
Information
Field
0-2048
Frame
Check
Sequence
16
FLAG
8
TNC HDLC Processing
7. HDLC Processing receives the AX.25 Frame
8. Frame Check Sequence is computed and appended to the Frame, Bit stuffing occurs (not depicted)
9. FLAGs are appended and prepended to the Frame (usually many flags on both ends)
10. Bit stream of frame is line encoded (HDLC NRZ-I), Most significant byte first (except FCS, flipped), LSB first
3/23/2018 TNC Interfacing Tutorial 64
FLAG DESTINATION
ADDRESS
8 56
SOURCE
ADDRESS
56
Control
Bits
8
Protocol
Identifier
8
AX.25 Transfer Frame Header (128 bits)
Information
Field
0-2048
Frame
Check
Sequence
16
FLAG
8
8
7
FLAG DESTINATION
ADDRESS
8 56
SOURCE
ADDRESS
56
Control
Bits
8
Protocol
Identifier
8
AX.25 Transfer Frame Header (128 bits)
Information
Field
0-2048
Frame
Check
Sequence
16
FLAG
8
9
9
10
AFSK Modulation
11. HDLC NRZ-I encoded bit stream is input to the AFSK Modulator; CPFSK modulation is used to produce an output AFSK
signal
12. TNC triggers push to talk (PTT) line to place radio in transmit mode; AFSK Signal is passed into the DATA IN port of the
radio on the DATA JACK (packet mode 1200 tap point)
13. AFSK signal is sent through the FM Modulation process and radiated out of the radio.
3/23/2018 TNC Interfacing Tutorial 65
11
RF IF
LO
Pos(+ )
IF AUD
LO
TX
RX
C
RF IF
LO
2
1
12
13
Open Systems Interconnect
Model
3/23/2018 TNC Interfacing Tutorial 66
Open Systems Interconnect (OSI) Stack
3/23/2018 TNC Interfacing Tutorial 67
• Devices logically communicate at the
relevant layers
• Encapsulation
• Headers
• Standards (for interchangeable layers)
OSI Stack – Simple Web Browsing Example
3/23/2018 TNC Interfacing Tutorial 68
HTTP (Web Browser)
TCP
IP
MAC
SWITCHES
COPPER
FIBER
RF
ROUTERS
Physical
Data Link
Network
Transport
Session
Presentation
Application
Data
Data
Data
Segments
Packets
Frames
Bits
Data Layer
OSI Model
1
2
3
4
5
6
7
Host
Layers
Media
Layers
Before We Proceed—a simplification
Physical
Data Link
Network
Transport
Session
Presentation
Application
Data
Data
Data
Segments
Packets
Frames
Bits
Data Layer
OSI Model
1
2
3
4
5
6
7
Host
Layers
Media
Layers
Physical
Data Link
Network
Transport
Application
Data
Segments
Packets
Frames
Bits
Data Layer
OSI Model
3/23/2018 TNC Interfacing Tutorial 69
This is a common simplification which we will use for the rest of this presentation
OSI Stack Logical Communication
Physical
Data Link
Network
Transport
Application
Application
Data
L3
Header
L2
Header
Data Layer
Physical
Data Link
Network
Transport
Application
Layer
L4
HDR
Segmented
Application Data
L4
Header
Segmented
Application Data
L3
Header
L4
Header
Segmented
Application Data
Physical Medium
3/23/2018 TNC Interfacing Tutorial 70
OSI Stack – Smallsat Comms Example
Physical
Data Link
Network
Transport
Application
Data
Segments
Packets
Frames
Bits
Data Layer
3/23/2018 TNC Interfacing Tutorial 71
Client Application
TCP
IP
MAC /KISS/AX.25/HDLC
RS-232/AFSK/FSK/GMSK
TNC
RADIO
Satellite TC/TM Software
VPN
Remote Connection
Bring it all together!
3/23/2018 TNC Interfacing Tutorial 72
Information overload---what’s the point?
• TCP
• IP
• VPN
• KISS
• HDLC
• AX.25
• AFSK
• OSI
• G3RUH GSMK/FSK
3/23/2018 TNC Interfacing Tutorial 73
Once again………….
Ground Station Spacecraft
C&DH Computer
RADIO
RADIO
TNC
Host Computer
Client Application
RS-232
TC SW
SERIAL
AX.25/KISS
SERIAL
KISS
AFSK
AX.25/HDLC
DATA IN FM / RF
Audio
RF/FM/AFSK
HDLC/AX.25
Radio
Telecommand
(TC)
SERIAL
KISS
TTL Serial
SERIAL
KISS/AX.25
TC SW
Host Computer HW TNC HW Radio Antennas
Serial
AX.25/KISS
Audio/NRZ
PTT
TNC FIRMWARE RADIO FIRMWARE
OSI Stack for AFSK Uplink – Hardware TNC
3/23/2018 TNC Interfacing Tutorial 74
Ground Station Spacecraft
C&DH Computer
RADIO
RADIO
TNC
Host Computer
Client Application
RS-232 to TTL converter
TC SW
SERIAL
AX.25/KISS
SERIAL
KISS
AFSK
AX.25/HDLC
DATA IN FM / RF
Audio
RF/FM/AFSK
HDLC/AX.25
Radio
Telecommand
(TC)
SERIAL
KISS
SERIAL
KISS/AX.25
TC SW
Host Computer HW TNC HW Radio Antennas
Serial
AX.25/KISS
Audio/NRZ
PTT
TNC FIRMWARE RADIO FIRMWARE
Slight tangent - If you are still developing/testing
3/23/2018 TNC Interfacing Tutorial 75
This is the power of adhering to the OSI Model!
Ground Station
Host Computer
Software TNC
HOST OS NETWORK
Spacecraft
C&DH
Comput
er
RADIO
Client
TC SW
AX.25
KISS
IP
TCP
KISS
AFSK
AX.25
HDLC
Audio
AFSK
FM
RF
AX.25
HDLC
Radio
Telecommand
(TC)
SERIAL
KISS
TTL Serial
SERIAL
AX.25
KISS
TC SW
Host Computer SoundCard
Interface
HW Radio Antennas
Audio/NRZ
PTT
USB / Serial
‘audio’ samples
Audio
TNC SW FIRMWARE
RADIO
DATA
IN
FM
RF
SoundCard
Interface
D to A
IP IP
TCP
Localhost
LOOPBACK
IP
OSI Stack for AFSK Uplink – Software TNC
3/23/2018 TNC Interfacing Tutorial 76
Primary Ground Station
Host Computer
Software TNC
HOST OS NETWORK
Spacecraft
C&DH
Comput
er
RADIO
Client
TC SW
AX.25
KISS
IP
TCP
KISS
AFSK
AX.25
HDLC
Audio
AFSK
FM
RF
AX.25
HDLC
SERIAL
KISS
TTL Serial
SERIAL
AX.25
KISS
TC SW
Audio
TNC SW
FIRMWARE
RADIO
DATA
IN
FM
RF
SoundCard
Interface
D to A
IP IP
TCP
Localhost
LOOPBACK
IP
Remote Ground Station
Host Computer
Software TNC
HOST
OS
NET
KISS
AFSK
AX.25
HDLC
Audio
Telecommand
(TC)
Audio
TNC SW
RADIO
DATA
IN
FM
RF
SoundCard
Interface
D to A
IP
TCP
Radio
INTERNET
OSI Stack for AFSK Uplink – Remote Connection
3/23/2018 TNC Interfacing Tutorial 77
Primary Ground Station - UPEC
Host Computer
Software TNC
HOST OS NETWORK
Spacecraft
C&DH
Comput
er
RADIO
Client
TC SW
AX.25
KISS
IP
TCP
KISS
AFSK
AX.25
HDLC
Audio
AFSK
FM
RF
AX.25
HDLC
SERIAL
KISS
TTL Serial
SERIAL
AX.25
KISS
TC SW
Audio
TNC SW
FIRMWARE
RADIO
DATA
IN
FM
RF
SoundCard
Interface
D to A
IP IP
TCP
Localhost
LOOPBACK
IP
Remote Ground Station - VTGS
Host Computer
Software TNC
HOST
OS
NET
KISS
AFSK
AX.25
HDLC
Audio
Telecommand
(TC)
Audio
TNC SW
RADIO
DATA
IN
FM
RF
SoundCard
Interface
D to A
IP
TCP
Radio
INTERNET
MAC
MAC
VPN CONNECTION
OSI Stack for AFSK Uplink – VTGS Connection
3/23/2018 TNC Interfacing Tutorial 78
NOTE: the VTGS is actually a bit more
complicated than shown below. For
simplicity related to OSI stack, copy of SW
TNC + Soundcard GS is shown.
Summary
The Key things to remember
3/23/2018 TNC Interfacing Tutorial 79
Summary – Key points to remember
• Telemetry (TM) processing and Telecommand (TC) generation software specific to the satellite
must be written if it does not already exist.
• The structure of the of the Information Field for TC/TM must be defined (ICDs).
• The TC/TM Software must output an AX.25 Frame encapsulated in a KISS
Frame for uplink and expect to receive a KISS Frame containing an AX.25
Frame from downlink.
• It is HIGHLY recommended that the TC/TM software utilize TCP/IP sockets for transport of KISS
Frame. This interface is common with software TNCs and is necessary for the Internet based
remote connection to the VTGS.
• I am NOT an expert on the IC-9100. I’ve given some pointers on the cable fabrication and testing
process…..but double checking functionality and configurations specific to the IC-9100 (Menu
settings) need to be done at UPEC.
• This presentation is pretty specific to TNC Interfacing (with relevant deviations). Topics not
addressed for full ground station design and implementation would have resulted in at least
double the slide deck length...(link analysis, antenna design, noise characterization, amp design,
tracking, sequencing, message passing, data storage, metadata generation, etc. etc.)……..
3/23/2018 TNC Interfacing Tutorial 80
Thank You!
3/23/2018 TNC Interfacing Tutorial 81
And remember…..Don’t Panic!.....It’s all gonna work!

More Related Content

Similar to TNC tutorial ground station tnc interfacinc tutorial

Chap 3. e nb hardware description stc_ed01_0901
Chap 3. e nb hardware description stc_ed01_0901Chap 3. e nb hardware description stc_ed01_0901
Chap 3. e nb hardware description stc_ed01_0901sivakumar D
 
D Belver FEE for Trasgos
D Belver  FEE for TrasgosD Belver  FEE for Trasgos
D Belver FEE for TrasgosMiguel Morales
 
Voice Over U M T S Evolution From W C D M A, H S P A To L T E
Voice Over  U M T S Evolution From  W C D M A, H S P A To  L T EVoice Over  U M T S Evolution From  W C D M A, H S P A To  L T E
Voice Over U M T S Evolution From W C D M A, H S P A To L T EPengpeng Song
 
An introduction of 3 gpp long term evolution (lte)
An introduction of 3 gpp long term evolution (lte)An introduction of 3 gpp long term evolution (lte)
An introduction of 3 gpp long term evolution (lte)mojtaba_gh
 
Chap.1 ethernet introduction
Chap.1 ethernet introductionChap.1 ethernet introduction
Chap.1 ethernet introduction東原 李
 
Wimax 802.16d
Wimax 802.16dWimax 802.16d
Wimax 802.16dmehulmite
 
Concepts of 3GPP LTE.ppt
Concepts of 3GPP LTE.pptConcepts of 3GPP LTE.ppt
Concepts of 3GPP LTE.pptStefan Oprea
 
UHF/VHFEnergy Harvesting Radio System Physical and MAC Layer Consideration
UHF/VHFEnergy Harvesting Radio System Physical and MAC Layer ConsiderationUHF/VHFEnergy Harvesting Radio System Physical and MAC Layer Consideration
UHF/VHFEnergy Harvesting Radio System Physical and MAC Layer Considerationxiaohuzhang
 
Code Division Multiple Access- CDMA
Code Division Multiple Access- CDMA Code Division Multiple Access- CDMA
Code Division Multiple Access- CDMA ViVek Patel
 
Webinar Keysight: Soluções de Teste para Tecnologias Emergentes 5G-NR e IoT-L...
Webinar Keysight: Soluções de Teste para Tecnologias Emergentes 5G-NR e IoT-L...Webinar Keysight: Soluções de Teste para Tecnologias Emergentes 5G-NR e IoT-L...
Webinar Keysight: Soluções de Teste para Tecnologias Emergentes 5G-NR e IoT-L...Embarcados
 
Introduction to OFDM.ppt
Introduction to OFDM.pptIntroduction to OFDM.ppt
Introduction to OFDM.pptStefan Oprea
 
Power Line Carrier Communication
Power Line Carrier CommunicationPower Line Carrier Communication
Power Line Carrier CommunicationNeha Gethe
 
03 6420 e-utra layer 1 key aspects and ofdm(a) principles_e05
03 6420 e-utra layer 1 key aspects and ofdm(a) principles_e0503 6420 e-utra layer 1 key aspects and ofdm(a) principles_e05
03 6420 e-utra layer 1 key aspects and ofdm(a) principles_e05ElhamTagharobi
 
tooway_installer_manual.pdf
tooway_installer_manual.pdftooway_installer_manual.pdf
tooway_installer_manual.pdfmiguelpelicano
 

Similar to TNC tutorial ground station tnc interfacinc tutorial (20)

Chap 3. e nb hardware description stc_ed01_0901
Chap 3. e nb hardware description stc_ed01_0901Chap 3. e nb hardware description stc_ed01_0901
Chap 3. e nb hardware description stc_ed01_0901
 
D Belver FEE for Trasgos
D Belver  FEE for TrasgosD Belver  FEE for Trasgos
D Belver FEE for Trasgos
 
Voice Over U M T S Evolution From W C D M A, H S P A To L T E
Voice Over  U M T S Evolution From  W C D M A, H S P A To  L T EVoice Over  U M T S Evolution From  W C D M A, H S P A To  L T E
Voice Over U M T S Evolution From W C D M A, H S P A To L T E
 
OFDM
OFDMOFDM
OFDM
 
An introduction of 3 gpp long term evolution (lte)
An introduction of 3 gpp long term evolution (lte)An introduction of 3 gpp long term evolution (lte)
An introduction of 3 gpp long term evolution (lte)
 
Chap.1 ethernet introduction
Chap.1 ethernet introductionChap.1 ethernet introduction
Chap.1 ethernet introduction
 
Wimax 802.16d
Wimax 802.16dWimax 802.16d
Wimax 802.16d
 
Concepts of 3GPP LTE.ppt
Concepts of 3GPP LTE.pptConcepts of 3GPP LTE.ppt
Concepts of 3GPP LTE.ppt
 
UHF/VHFEnergy Harvesting Radio System Physical and MAC Layer Consideration
UHF/VHFEnergy Harvesting Radio System Physical and MAC Layer ConsiderationUHF/VHFEnergy Harvesting Radio System Physical and MAC Layer Consideration
UHF/VHFEnergy Harvesting Radio System Physical and MAC Layer Consideration
 
Code Division Multiple Access- CDMA
Code Division Multiple Access- CDMA Code Division Multiple Access- CDMA
Code Division Multiple Access- CDMA
 
Webinar Keysight: Soluções de Teste para Tecnologias Emergentes 5G-NR e IoT-L...
Webinar Keysight: Soluções de Teste para Tecnologias Emergentes 5G-NR e IoT-L...Webinar Keysight: Soluções de Teste para Tecnologias Emergentes 5G-NR e IoT-L...
Webinar Keysight: Soluções de Teste para Tecnologias Emergentes 5G-NR e IoT-L...
 
Pansat
PansatPansat
Pansat
 
Introduction to OFDM.ppt
Introduction to OFDM.pptIntroduction to OFDM.ppt
Introduction to OFDM.ppt
 
Lte tutorial
Lte tutorialLte tutorial
Lte tutorial
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
 
Part 2 planning of 3G
Part 2  planning of 3GPart 2  planning of 3G
Part 2 planning of 3G
 
Power Line Carrier Communication
Power Line Carrier CommunicationPower Line Carrier Communication
Power Line Carrier Communication
 
03 6420 e-utra layer 1 key aspects and ofdm(a) principles_e05
03 6420 e-utra layer 1 key aspects and ofdm(a) principles_e0503 6420 e-utra layer 1 key aspects and ofdm(a) principles_e05
03 6420 e-utra layer 1 key aspects and ofdm(a) principles_e05
 
tooway_installer_manual.pdf
tooway_installer_manual.pdftooway_installer_manual.pdf
tooway_installer_manual.pdf
 
HSR_Datasheet
HSR_DatasheetHSR_Datasheet
HSR_Datasheet
 

Recently uploaded

VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacingjaychoudhary37
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 

Recently uploaded (20)

VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacing
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 

TNC tutorial ground station tnc interfacinc tutorial

  • 1. Virginia Tech Ground Station TNC Interfacing Tutorial Zach Leffke, MSEE (zleffke@vt.edu) Research Associate Aerospace Systems Lab Ted & Karyn Hume Center for National Security and Technology 3/23/2018
  • 2. Agenda • TNC Connection Overview • KISS Protocol • AX.25/HDLC Protocol • AFSK/FSK/GMSK Modulation • ….System Review…. • OSI Stack • Remote Connection • VTGS Remote Interface • Summary 3/23/2018 TNC Interfacing Tutorial 2 VHF/UHF Antennas 4.5m Dish 3.0m Dish Deployable 1.2m Dish Space@VT Ops Center (students preparing for 2016 RockSat Launch) GNU Radio at work Students assembling 4.5m Dish
  • 3. Primary Ground Station - UPEC Host Computer Software TNC HOST OS NETWORK Spacecraft C&DH Comput er RADIO Client TC SW AX.25 KISS IP TCP KISS AFSK AX.25 HDLC Audio AFSK FM RF AX.25 HDLC SERIAL KISS TTL Serial SERIAL AX.25 KISS TC SW Audio TNC SW FIRMWARE RADIO DATA IN FM RF SoundCard Interface D to A IP IP TCP Localhost LOOPBACK IP Remote Ground Station - VTGS Host Computer Software TNC HOST OS NET KISS AFSK AX.25 HDLC Audio Telecommand (TC) Audio TNC SW RADIO DATA IN FM RF SoundCard Interface D to A IP TCP Radio INTERNET MAC MAC VPN CONNECTION Preview of the Finale…………… 3/23/2018 TNC Interfacing Tutorial 3
  • 4. TNC Connection Overview TNC Implementation Types Hardware Radio DATA Jack Specific Interface Examples 3/23/2018 TNC Interfacing Tutorial 4
  • 5. TNC Implementation Summary • Multiple implementation options exist • Hardware TNC Ground Station • Software TNC + Sound Card • Software Defined Radio Receiver • Software Defined Radio Transceiver • Hybrid SDR RX / HW Radio TX implementations 3/23/2018 TNC Interfacing Tutorial 5
  • 6. Hardware Radios – Common for Satellite 3/23/2018 TNC Interfacing Tutorial 6
  • 7. Hardware TNCs 3/23/2018 TNC Interfacing Tutorial 7
  • 8. Radio Sound Card Interfaces • Good ones offer optical isolation (optocouplers). • Appear as a soundcard to host computer OS. • HW control of TX/RX volume. • Also used for non-packet modes. Make sure one with the proper capabilities is selected. • Different non-sound related options available (such as PTT control, and CW keying). Again, make sure one with the proper features is selected. 3/23/2018 TNC Interfacing Tutorial 8
  • 9. Software Defined Radios Receive Only Transceivers (TX & RX) 3/23/2018 TNC Interfacing Tutorial 9 X-Series USRP B-Series USRP E-Series USRP SDRPlay Red Pitaya Blade RF B-Series Mini USRP LimeSDR N-Series USRP SideKiq See for more: https://www.rtl-sdr.com/roundup-software-defined-radios/
  • 10. The ‘S’ in SDR?...here are a few… 3/23/2018 TNC Interfacing Tutorial 10 SDR# HDSDR gqrx GNU Radio GNU Radio gr-fosphor (GNU Radio)
  • 11. Putting it all together LOTS of options exist…….. ….and combinations of options… ….how to decide?!?!?!….. ….Lets go over some fundamentals…….. 3/23/2018 TNC Interfacing Tutorial 11
  • 12. Hardware TNC Ground Station 3/23/2018 TNC Interfacing Tutorial 12 Host Computer Hardware TNC Hardware Radio SERIAL Audio/NRZ/DIO VHF RF Chain UHF RF Chain DATA VHF UHF RF COM PORT RADIO PORT SERIAL Host Computer HW TNC HW Radio Antennas Serial AX.25/KISS Audio/NRZ PTT RF Client Software
  • 13. Software TNC + Sound Card Ground Station 3/23/2018 TNC Interfacing Tutorial 13 Host Computer Sound Card Interface Hardware Radio USB TX DATA VHF UHF Sound Card Driver SPKR USB HUB Host Computer SoundCard Interface HW Radio Antennas FTDI IC Sound Card IC (ADC/DAC) MIC PTT DTR RX PTT TCP/IP AX.25/KISS Audio/NRZ PTT COM PORT (PTT) USB Port Client Software Software TNC VHF RF Chain UHF RF Chain RF RF USB / Serial ‘audio’ samples
  • 14. Software Defined Radio Receiver 3/23/2018 TNC Interfacing Tutorial 14 Host Computer SDR Driver Host Computer Antennas TCP/IP AX.25/KISS USB Port Client Software Software TNC RF Chain RF USB Digitized RF Samples (IQ) RF USB SDR Signal Processing IQ Audio Samples Software Radio Dongle Software Radio Receiver I RF IF LO RF IF LO Q 2 1 0° 90° D A D A RF IF LO RX USB PHY
  • 15. Software Defined Radio Transceiver 3/23/2018 TNC Interfacing Tutorial 15 Host Computer Host Computer Antennas TCP/IP AX.25/KISS Ethernet Client Software RF Ethernet (UDP/VITA-49) Digitized RF Samples (IQ) RF Ethernet Software Radio Signal Processing (Link and Physical Layer) IQ SDR Transceiver SDR Driver Software Radio Transceiver I RF IF LO RF IF LO Q 2 1 0° 90° D A D A I RF IF LO RF IF LO Q 2 1 0° 90° D A D A RF IF LO RF IF LO RX TX Ethernet PHY RF CHAIN TX RX VHF UHF RF RF NOTE: This is basically the chosen VTGS architecture N-Series USRP
  • 16. TNC Connection Overview TNC Implementation Types Hardware Radio DATA Jack Specific Interface Examples 3/23/2018 TNC Interfacing Tutorial 16
  • 17. Hardware Radio DATA Jack ICOM-9100 Example What is it for? • Used for packet operations. • Bypasses audio filtering (which can distort digital communications). • Standardized PS-2 Connector and pinouts across vendors. • High speed (9600 baud) and low speed (1200 baud) packet access. • Connects to ‘Radio Port’ on TNC. 3/23/2018 TNC Interfacing Tutorial 17
  • 18. RF IF LO Pos(+ ) IF AUD LO TX RX C RF IF LO 2 1 FM Transceiver (simplified) 3/23/2018 TNC Interfacing Tutorial 18 RF Stage IF Stage Audio Stage Demodulator (FM Discriminator) Audio Filtering Volume Control AGC FM Modulator ALC Speaker Microphone TX PWR Control Tuning Control (the BIG knob) RX Channel Filter TX Filter TX/RX Control De-Emphasis Pre-Emphasis
  • 19. RF IF LO Pos(+ ) IF AUD LO TX RX C RF IF LO 2 1 FM Transceiver – DATA Jack Tap Points 3/23/2018 TNC Interfacing Tutorial 19 2 3 4 5 6 *NOTE: • Selecting 1200 Baud packet mode on radio menu connects 1a tap point • Selecting 9600 Baud packet mode on radio menu connects 1b tap point • Unsure if pins 4 and 5 are affected by this menu selection. (TEST!) 1a* 1b*
  • 20. Hardware Radio DATA Jack 3/23/2018 TNC Interfacing Tutorial 20 Probably want MAIN assigned to uplink so that when PTT is triggered, the radio transmits on the Uplink Frequency. SUB would then be assigned to Downlink noting the comments below. Could be totally wrong about this, especially if IC-9100 has a ‘satellite mode’ of operation that overrides these settings. From IC-9100 Manual
  • 21. Hardware Radio DATA Jack DATA Jack to TNC Pinout/Cabling TNC or Soundcard Notes 3/23/2018 TNC Interfacing Tutorial 21 • Each vendor is different. • Different connector styles, different pinouts, different settings. • Must consult the manufacturer documentation to properly configure and fabricate interface cable. • Some TNC/Soundcard vendors sell pre- fabricated radio specific interface cables. • MUST pay attention to signal levels (volume control) on DATA IN (1), DATA OUT (4), and AF OUT (5) pins to avoid signal distortion (lost packets). DATA Jack Signal TNC or Soundcard Interface Equivalent Signal
  • 22. Hardware Radio DATA Jack – Additional Notes Volume Control Squelch Pin (6) 3/23/2018 TNC Interfacing Tutorial 22 • SQL (6) connection is optional. Purpose is to inhibit Transmit when open (signal detected). For satellite work, recommend leaving disconnected so that the squelch can be completely opened on the radio. This will allow a human operator to listen to signals too weak to decode (like near AOS/LOS) to monitor system performance without inhibiting transmit (uplink) capability. • This pin is most useful for Terrestrial APRS use when in a cluttered RF environment (many transmitters on same frequency and bursty). This pin is usually connected to a ‘Data Carrier Detect’ Pin on the TNC to inhibit TX when signals are detected on the channel in order to avoid packet collisions. • The AF OUT (5) and DATA OUT (4) Pins bypass the majority of the audio conditioning circuitry. This is to avoid distortion. This means that the VOLUME control knob on the radio has no effect on the voltages output on these pins. The human operator can set the volume of the radio speaker to a comfortable level for monitoring without affecting the voltages output on these pins. Most TNCs have a configurable ‘input gain control’ (or similar) setting to set this at an optimal input level for the TNC. Most sound card interfaces have an ‘RX knob’ which is essentially a volume control for the same purpose.
  • 23. Hardware Radio DATA Jack – Additional Notes Push To Talk (PTT) 3/23/2018 TNC Interfacing Tutorial 23 • The PTT (3) pin is used to enable transmit on the radio. • It is tempting to connect directly to the TNC (that’s what the manual says to do right!?!?). • For satellite work, usually this is not actually desirable because there are multiple devices that need to ‘see’ the PTT signal to switch the entire system (not just the radio) into a transmit state. • Devices that need to see the PTT pin include the Low Noise Amplifiers, The High Power Amplifiers, the Radio and sometimes additional devices (such as coax relays) depending on the specifics of the ground station design. • Normally, this pin out of the TNC is used to trigger a device called a ‘sequencer’ that has multiple PTT output channels with configurable delays between each channel. The radio PTT signal on the DATA jack is usually the LAST PTT signal to be enabled. • More on Sequencing later……..its important!
  • 24. TNC Connection Overview TNC Implementation Types Hardware Radio DATA Jack Specific Interface Examples 3/23/2018 TNC Interfacing Tutorial 24
  • 25. Some Examples • Hardware TNC And Radio: KPC-9612+ TNC & ICOM-9100 • Sound Card Interface and ICOM-9100 • Software TNC Examples (for sound card interfaces) • Software Radio Receiver Example • ‘Client Software’ Examples 3/23/2018 TNC Interfacing Tutorial 25
  • 26. HW TNC To HW Radio Example KPC-9612+ • Port 1 – Low Speed (AFSK1200) • Port 2 – High Speed (FSK9600) • Computer = Serial ICOM-9100 3/23/2018 TNC Interfacing Tutorial 26 FRONT REAR
  • 27. HW TNC To HW Radio Example 3/23/2018 TNC Interfacing Tutorial 27 Cable Fabrication Time!
  • 28. KPC-9612+ TNC to ICOM-9100 DATA Cable 3/23/2018 TNC Interfacing Tutorial 28 NOTES 1. Port 1 (AFSK1200) Controls Transmit (PTT) Since this is the uplink rate. 2. Port 1 (AFSK1200) Can also Receive (not needed, but useful for testing, related to KISS Protocol). 3. Recommend NOT Connecting Squelch (SQL/XCD) Lines to Data Jack (used For TX inhibit). 4. Dashed Lines are optional (SQL to DATA and Calibration equipment). KPC-9612+ ICOM-9100 Eye Diagram Monitor RX SNR Monitor 1 6 2 7 3 8 4 9 5 1 9 2 10 3 11 4 12 5 6 7 8 14 15 13 TXA PTT GND RXA XCD RXA GND LOW SPEED DATA CABLE GND DATA IN SQL AF OUT (1200bps) PTTP SHIELD SHIELD GND SHIELD HIGH SPEED DATA CABLE SHIELD 2 2 1 1 4 4 3 3 ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- Oscilloscope On/Off §Ù V μA ~ mA A ~ mV ~ V ~ O F F COM A m A/ μA V§ Ù 123.456 Ha n d h e l d DMM GND CALIBRATION CABLE (OPTIONAL) RXC RX S/N RXA SHIELD GND GND RX S/N RXA RXC DATA OUT (9600bps) XCD SQL Port 1 Port 2 DATA2 (PS-2 Male) DB-15 Male (NOT HD version!) DB-9 Male
  • 29. KPC-9612+ TNC to HOST Computer Cable 1 14 2 15 3 16 4 17 5 6 7 8 19 20 18 9 22 10 11 12 13 24 25 23 21 1 6 2 7 3 8 4 9 5 DB-25 Male RS-232 - DCE DB-9 FEMALE DCD TXD RXD RTS CTS DSR SG DTR SHIELD 3/23/2018 TNC Interfacing Tutorial 29 USB To Serial Adapter** NOTES: 1. SG/TXD/RXD/Shield Are Required! 2. Other Signals are optional. 3. FTDI Converters can cause EMI/RFI and ‘splatter’ receiver front ends. **Keyspan USA-19HS USB to Serial to converter is a recommended ‘known quiet’ device.
  • 30. SoundCard Interface To HW Radio Example DIGIBOX2 ICOM-9100 3/23/2018 TNC Interfacing Tutorial 30 FRONT REAR
  • 31. Digibox2 Interface To HW Radio Example 3/23/2018 TNC Interfacing Tutorial 31 1 6 2 7 3 8 4 9 5 TRANSMIT = LOW SPEED (AFSK1200) RECEIVE = HIGH SPEED (FSK9600) DATA CABLE GND SHIELD MOD AUDIO IN PTT DATA IN DATA OUT PTTP GND SHIELD 1 6 2 7 3 8 4 9 5 LOW SPEED DATA CABLE TX/RX = LOW SPEED (AFSK1200) GND SHIELD MOD AUDIO IN PTT DATA IN AF OUT PTTP GND SHIELD DB-9 Male DB-9 Male DATA2 (PS-2 Male) DATA2 (PS-2 Male) NOTE: In order to test this connection you need an FSK9600 Transmit reference signal. CANNOT use this cable with local APRS transmissions for testing. NOTE: Can test this configuration with local Terrestrial APRS signals (useful for testing higher layer AX.25/KISS interfaces). THIS IS WHAT YOU NEED (minimum) FOR OGMS-SA THIS IS WHAT YOU HAVE
  • 32. Digibox2 Interface To HW Radio Example - Hybrid 3/23/2018 TNC Interfacing Tutorial 32 • Option for switchable low speed or high speed connection • Can select RX1 (AFSK1200) for low speed testing with terrestrial APRS signals. Can also use to test other system functionality against satellites (doppler control, antenna pointing, etc.). • Once confident with higher level AX.25/KISS processing and satellite tracking (Doppler, pointing) can then switch to RX2 (FSK9600) for testing against 9600 baud satellites. • NOTE: This is a logical diagram, fabrication details are left to the experimenter to decide. 1 6 2 7 3 8 4 9 5 TX = LOW SPEED (AFSK1200) RX1 = LOW SPEED (AFSK1200) RX2 = HIGH SPEED (FSK9600) GND SHIELD MOD AUDIO IN PTT DATA IN AF OUT PTTP GND SHIELD DB-9 Male DATA2 (PS-2 Male) DATA OUT AUDIO 2 1 C HYBRID DATA CABLE
  • 33. Dual Digibox2 Interface To HW Radio Example 3/23/2018 TNC Interfacing Tutorial 33 1 6 2 7 3 8 4 9 5 LOW SPEED DATA CABLE TRANSMIT = LOW SPEED (AFSK1200) RECEIVE = LOW SPEED (AFSK1200) GND SHIELD MOD AUDIO IN PTT DATA IN DATA OUT PTTP GND SHIELD 1 6 2 7 3 8 4 9 5 HIGH SPEED DATA CABLE RECEIVE = HIGH SPEED (FSK9600) GND SHIELD AUDIO IN GND SHIELD DB-9 Male DB-9 Male DATA2 (PS-2 Male) AF OUT
  • 34. Digibox2 COM Ports (Not Soundcards!) 3/23/2018 TNC Interfacing Tutorial 34 Jumper positions for this Example: COM A = PTT/CW Key Control (Transmit Signal) COM B = Yaesu’s Computer Aided Transceiver (CAT) = ICOM’s CI-V = Computer Tuning Control LVLCTRL MIC SPKR OptoCoupler MIC USB HUB FTDI COMA (PTT/CW) SoundCard IC (ADC/DAC) SPKR CW 1 6 2 7 3 8 4 9 5 AUDIO IN MOD RXD TXD DTR RTS RXD TXD TXD-B TXD-A RXD-A RXD-B PTT RTS-A DTR-A DTR-B RTS-B GND FTDI COMB (CAT) DTR RTS RXD TXD K4 K3 K1 K2 DIGIBOX2 Sound Card Interface
  • 35. Software TNCs (for soundcard interfaces) SoundModem (AFSK1200) High Speed Soundmodem (FSK 9600) 3/23/2018 TNC Interfacing Tutorial 35
  • 36. Software TNC - AGW Packet Engine 3/23/2018 TNC Interfacing Tutorial 36
  • 37. Software Defined Radio Receiver - Example 3/23/2018 TNC Interfacing Tutorial 37 Host Computer SDR Driver TCP/IP AX.25/KISS USB Port Client Software Software TNC RF Chain RF RF USB SDR Signal Processing IQ Audio Samples Software Radio Receiver I RF IF LO RF IF LO Q 2 1 0° 90° D A D A RF IF LO RX USB PHY
  • 38. Client Software Examples – AMSAT FOX Software 3/23/2018 TNC Interfacing Tutorial 38
  • 39. Client Software Examples – COSMOS! 3/23/2018 TNC Interfacing Tutorial 39
  • 40. ****Client Software – The Point!**** 3/23/2018 TNC Interfacing Tutorial 40 Satellite XYZ Telecommand (TC) And Telemetry (TM) Software AX.25/KISS Frames Come Out (TX/Uplink) and Go In (RX/Downlink)
  • 41. KISS Protocol 3/23/2018 TNC Interfacing Tutorial 41
  • 42. Keep It Simple, Stupid (KISS) Protocol • “KISS (keep it simple, stupid) is a protocol for communicating with a serial terminal node controller (TNC) device used for amateur radio. This allows the TNC to combine more features into a single device and standardizes communications. KISS was developed by Mike Chepponis and Phil Karn to allow transmission of AX.25 packet radio frames containing IP packets over an asynchronous serial link, for use with the KA9Q NOS program.” -- https://en.wikipedia.org/wiki/KISS_(TNC) 3/23/2018 TNC Interfacing Tutorial 42 KISS BYTES AX.25 Frame KISS BYTES Host Computer HW TNC HW Radio AX.25 Frame Asynchronous Serial (RS-232) AFSK1200 Audio Or FSK9600 NRZ Bi-directional Link Bi-directional Link
  • 43. KISS Protocol – Only 3 Extra Bytes! Special KISS Characters Hex value Abbreviation Description 0xC0 FEND Frame End 0xDB FESC Frame Escape 0xDC TFEND Transposed Frame End 0xDD TFESC Transposed Frame Escape 3/23/2018 TNC Interfacing Tutorial 43 FEND (1 Byte) COMMAND (1 Byte) DATA (0-N Bytes) FEND (1 Byte) DATA for over the Air TX (AX.25 Frame) STOP Control Character KISS COMMAND Character START Control Character Why Special Characters?: • FEND Used to Mark Start/Stop of a KISS Frame (kind of like HDLC Flag bytes) • If the FEND or FESC codes appear in the data to be transferred, they need to be escaped. • If DATA contains: • FEND  FESC, TFEND replaces in byte stream • FESC  FESC, TFESC replaces in byte stream • (kind of like HDLC bit stuffing, but at the byte level)
  • 44. KISS Protocol – FEND Byte 3/23/2018 TNC Interfacing Tutorial 44 DATA (0-N Bytes) FEND (1 Byte) COMMAND (1 Byte) 0xC0 FEND (1 Byte) 0xC0 FEND (0xC0) is used to mark the start and stop of a FRAME
  • 45. KISS Protocol – COMMAND Byte 3/23/2018 TNC Interfacing Tutorial 45 KISS Command Codes Hex value Name Bytes Description 0x00 Data frame Varies This frame contains data that should be sent out of the TNC. The maximum number of bytes is determined by the amount of memory in the TNC. This is the only allowed command code for a RECEIVED frame 0x01 TX DELAY 1 The amount of time to wait between keying the transmitter and beginning to send data (in 10 ms units). 0x02 P 1 The persistence parameter. Persistence=Data*256-1. Used for CSMA. 0x03 SlotTime 1 Slot time in 10 ms units. Used for CSMA. 0x04 TXtail 1 The length of time to keep the transmitter keyed after sending the data (in 10 ms units). 0x05 FullDuplex 1 0 means half duplex, anything else means full duplex. 0x06 SetHardware Varies Device dependent. 0xFF Return 1 Exit KISS mode. This applies to all ports and requires a port code of 0xF. FEND (1 Byte) DATA (0-N Bytes) FEND (1 Byte) COMMAND (1 Byte) CMD (Lo Nibble*) Port Index (Hi Nibble*) *NOTE: 1 Nibble = 4 bits 1 Byte = 2 Nibbles = 8 bits Commands for control of TNC Port Index of TNC 0 1 Remember this guy? 0 1
  • 46. KISS Protocol – DATA Byte 3/23/2018 TNC Interfacing Tutorial 46 FEND (1 Byte) FEND (1 Byte) COMMAND (1 Byte) DATA (0-N Bytes) FLAG DESTINATION ADDRESS 8 56 SOURCE ADDRESS 56 Control Bits 8 Protocol Identifier 8 AX.25 Transfer Frame Header (128 bits) Information Field 0-2048 Frame Check Sequence 16 FLAG 8 Client Software Outputs/Inputs The AX.25 Frame inside the KISS DATA Field Note ONLY the AX.25 Frame, NOT the HDLC pieces, are inside the KISS Frame
  • 47. AX.25/HDLC Protocol 3/23/2018 TNC Interfacing Tutorial 47
  • 48. • The ‘A’ means ‘Amateur’ • Layer 2 (Link Layer) Specification. • Derived from HDLC (flags, framing, bit stuffing, NRZ-I encoding) • Most common amateur radio packet protocol • Relatively large protocol, with only a small subset of details relevant to satellite • References: • https://www.tapr.org/pdf/AX25.2.2.pdf  Full AX.25 specification (July 1998, almost 20 years old!) • https://www.qb50.eu/index.php/tech-docs/category/17-up-to-date-docs • 11- QB50-EPFL-SSC-SCS-ICD-AX.25-TFF-3-1.pdf  This one describes the relevant pieces of AX.25 for satellite work • http://destevez.net/2016/06/kiss-hdlc-ax-25-and-friends/  additional useful details and mapping to Physical layer (AFSK, GMSK, etc.) AX.25 Protocol - Overview 3/23/2018 TNC Interfacing Tutorial 48
  • 49. • Octets (Bytes) are sent Least Significant Bit (LSB) first: • Frames are sent Most Significant Byte First (Flag, then Dest, then Src, …. One exception!) • All fields in between flags are subject to HDLC bit stuffing (more later) • Satellites use AX.25 Unnumbered Information Frame (UI-Frame) • UI-Frames are Connectionless • AX.25 UI-Frame Structure: AX.25 Protocol – Initial Details 3/23/2018 TNC Interfacing Tutorial 49 FLAG DESTINATION ADDRESS 8 56 SOURCE ADDRESS 56 Control Bits 8 Protocol Identifier 8 AX.25 Transfer Frame Header (128 bits) Information Field 0-2048 Frame Check Sequence 0-2048 FLAG 8 7 MSB LSB 6 5 4 3 2 1 0
  • 50. FLAG DESTINATION ADDRESS 8 56 SOURCE ADDRESS 56 Control Bits 8 Protocol Identifier 8 AX.25 Transfer Frame Header (128 bits) Information Field 0-2048 Frame Check Sequence 16 FLAG 8 AX.25 Protocol – Flag Field • Used to mark beginning and end of frame • Helps receiver synchronize • Usually many are sent before and after frame • Not subject to HDLC Bit Stuffing (more later) • Fixed Value: 01111110 (0x7E) • Technically this is NOT part of the AX.25 Frame, its part of the HDLC encapsulation (a detail but important for implementers)! 3/23/2018 TNC Interfacing Tutorial 50 0 Flag (8 bits) 1 1 1 1 1 1 0 0 Flag (8 bits) 1 1 1 1 1 1 0
  • 51. FLAG DESTINATION ADDRESS 8 56 SOURCE ADDRESS 56 Control Bits 8 Protocol Identifier 8 AX.25 Transfer Frame Header (128 bits) Information Field 0-2048 Frame Check Sequence 16 FLAG 8 AX.25 Protocol – Destination & Source Addresses • 6 Callsign octets + 1 SSID Octet • 6 Callsign octets are 7 bit ASCII, but left shifted one bit. • Last bit of each octet indicates whether there is more data or not: • 0 = More Address Data • 1 = End of Address Data • SSID[7:5] fixed bits  011 • SSID[4:1]  16 bit integer value, usually 0000 • NOTE: 2 to 4 addresses are allowed in AX.25; Destination and Source are required with up to 2 additional ‘paths.’ Usually, for satellites, only the source and destination fields are present. A notable exception to this are the APRS repeater satellites (ISS, PSAT, NO-44, etc.) that include additional ‘digipeat paths’ (According to the APRS protocol). 3/23/2018 TNC Interfacing Tutorial 51 X C1 (8 bits) X X X X X X 0 X C6 (8 bits) X X X X X X 0 ... SSID (8 bits) 0 1 1 S S I D 0 DESTINATION ADDRESS X C1 (8 bits) X X X X X X 0 X C6 (8 bits) X X X X X X 0 ... SSID (8 bits) 0 1 1 S S I D 1 SOURCE ADDRESS This is the only last bit with a value of 1
  • 52. FLAG DESTINATION ADDRESS 8 56 SOURCE ADDRESS 56 Control Bits 8 Protocol Identifier 8 AX.25 Transfer Frame Header (128 bits) Information Field 0-2048 Frame Check Sequence 16 FLAG 8 AX.25 Protocol – Control and Protocol ID Control Bits: • Indicates what type of AX.25 Frame is being sent • Unnumbered Information Frame  Shall be fixed: 00000011 (0x03) Protocol Identifier: • Indicates what type of layer 3 protocol • No layer 3 protocol implemented  Shall be fixed: 11110000 (0xF0) 3/23/2018 TNC Interfacing Tutorial 52 0 Control (8 bits) 0 0 0 0 0 1 1 1 Protocol ID (8 bits) 1 1 1 0 0 0 0
  • 53. FLAG DESTINATION ADDRESS 8 56 SOURCE ADDRESS 56 Control Bits 8 Protocol Identifier 8 AX.25 Transfer Frame Header (128 bits) Information Field 0-2048 Frame Check Sequence 16 FLAG 8 AX.25 Protocol – Information Field • Integer multiple of octets • Maximum Length of 256 octets • Contains the DATA!!! • Telecommand (TC) • Telemetry (TM or TLM) • Mission Data • This is where higher layer definitions come into play. QB50 for example elected to use CCSDS packet formats within the Information Field. APRS is an ASCII based protocol that defines this field for APRS messages. This can be completely custom, but MUST be defined (ICDs recommended)! 3/23/2018 TNC Interfacing Tutorial 53
  • 54. FLAG DESTINATION ADDRESS 8 56 SOURCE ADDRESS 56 Control Bits 8 Protocol Identifier 8 AX.25 Transfer Frame Header (128 bits) Information Field 0-2048 Frame Check Sequence 16 FLAG 8 AX.25 Protocol – Frame Check Sequence • 16-CCITT based CRC (Cyclic Redundancy Check) • Used to detect bit errors (doesn’t correct them!, some limited tricks are possible) • Usually if errors are detected packet is discarded and not passed up the OSI stack for higher level processing. • NOTE: The FCS is sent least significant byte FIRST!!!! This can be confusing for implementers. • Technically this is NOT part of the AX.25 Frame, its part of the HDLC encapsulation (a detail but important for implementers)! 3/23/2018 TNC Interfacing Tutorial 54
  • 55. HDLC (AX.25) Protocol – Bit Stuffing • Flags are special…its how the receiver detects an AX.25 frame in the bit stream. • It is entirely possible (likely) that 6 consecutive 1s will appear in the data stream of an AX.25 frame. If nothing is done about this, then a false flag detection will occur, resulting in a failed CRC check, resulting in a discarded frame. • Bit Stuffing to the rescue! • As the AX.25 frame is being sent into the modulator, the number of consecutive 1s is monitored. • If 5 consecutive 1s are detected in the bit stream, a 0 is inserted. • On the receiver side, if 5 consecutive 1s are detected and then the next bit is a 0, the 0 is discarded from the bit stream (‘un-stuffed’). If the next bit is a 1, the receiver should expect a following 0, indicate a FLAG has been received. 3/23/2018 TNC Interfacing Tutorial 55 FLAG DESTINATION ADDRESS 8 56 SOURCE ADDRESS 56 Control Bits 8 Protocol Identifier 8 AX.25 Transfer Frame Header (128 bits) Information Field 0-2048 Frame Check Sequence 16 FLAG 8 Subject to bit stuffing 0 Flag (8 bits) 1 1 1 1 1 1 0 0 Flag (8 bits) 1 1 1 1 1 1 0
  • 56. HDLC (AX.25) Protocol – NRZ-I Line Encoding • The Use of Non Return to Zero Inverted (NRZ-I) means that modulations don’t care about the actual symbol state (say a positive or negative frequency). What matters is the change or lack of change of a symbol to represent the bit value. • NOTE: HDLC/AX.25 uses an inverted form of NRZ-I. • 0  Transition • 1  No Transition 3/23/2018 TNC Interfacing Tutorial 56 0 1 0 0 1 1 0 0 0 1 1 NRZ-L Traditional NRZ-I HDLC NRZ-I +V -V 0 +V -V 0 +V -V 0
  • 57. AFSK & FSK/GMSK Modulation 3/23/2018 TNC Interfacing Tutorial 57
  • 58. AFSK and FM Modulation • AFSK = Audio Frequency Shift Keying • Uses audio tones at 1200 Hz (Space) and 2200 Hz (Mark). • Derived from Bell 202 dialup modem standard, which is why a ‘burst’ sounds like an old modem. • NRZ-I bits are used to alternate (or not) between the tones. • Continuous Phase Frequency Modulation used to generate AFSK • No instantaneous phase change  reduced signal bandwidth. • Audio is then piped into an FM transmitter. 3/23/2018 TNC Interfacing Tutorial 58 Client TNC Radio CPFSK AX.25 Frame Bit Stream HDLC Bit Stuffing (NOT Flags) NRZ-I Line Encoding (HDLC) CPFSK Modulation (AFSK) FM Pre-emphasis Frequency Modulator
  • 59. G3RUH FSK/GMSK Modulation • FSK = Frequency Shift Keying • GMSK = Gaussian Minimum Shift Keying • Modulating signal (the ‘message’) bypasses the FM pre-emphasis/de-emphasis circuitry of hardware radio and is applied directly to the FM Modulator (varactor) to produce FSK. • If the NRZ-I signal is passed through a Gaussian pulse shaping filter before it is sent to the radio then GMSK is produced. • More on next slide for pulse shaping 3/23/2018 TNC Interfacing Tutorial 59 Client TNC Radio FSK PSD GMSK PSD AX.25 Frame Bit Stream HDLC Bit Stuffing (NOT Flags) G3RUH Scrambler (1+𝑥12 + 𝑥17 ) NRZ-I Line Encoding (HDLC) Gaussian Pulse Shaping Filter Frequency Modulator
  • 60. GMSK and Pulse Shaping Filter – more details 3/23/2018 TNC Interfacing Tutorial 60 • Pulse shaping smooths out instantaneous transitions, which reduces side lobes in the produced signal. • Rolloff factor of pulse shaping filter controls ‘smoothness’ of curves. Is between 0 and 1 where 0 is a rectangular filter (i.e. no different than no filtering). Sometimes called β, sometimes α, sometimes BT. • For Amateur Satellites, BT = 0.5 is common. Gaussian Pulse Shaping filter GMSK Power Spectral Density FM Modulator 1 2 3 4
  • 61. Summary of process so far…… Uplink Only Scenario (for simplicity) Agnostic to what type of TNC/Radio interface is used 3/23/2018 TNC Interfacing Tutorial 61
  • 62. Client Software (Satellite TC/TM Software) 1. Client Software generates a properly formatted AX.25 Frame with Telecommand in Information Field. 2. Client Software encapsulates the AX.25 Frame inside the DATA field of a KISS Frame 3. Client Software writes the KISS Frame to the TNC via Serial or TCP/IP 3/23/2018 TNC Interfacing Tutorial 62 FLAG DESTINATION ADDRESS 8 56 SOURCE ADDRESS 56 Control Bits 8 Protocol Identifier 8 AX.25 Transfer Frame Header (128 bits) Information Field 0-2048 S FEND (1 Byte) FEND (1 Byte) COMMAND (1 Byte) DATA (0-N Bytes) Serial Port TCP Socket 1 2 OR 3
  • 63. TNC KISS Processing 4. TNC Receives the KISS FRAME (Serial or TCP), removes/replaces escaped bytes if necessary, discards the FEND Bytes 5. The command byte is passed off for TNC parameter control and port routing. It is REMOVED from the byte stream. 6. The DATA field, which contains an AX.25 frame, is extracted and passed off to HDLC steps 3/23/2018 TNC Interfacing Tutorial 63 G DESTINATION ADDRESS 56 SOURCE ADDRESS 56 Control Bits 8 Protocol Identifier 8 AX.25 Transfer Frame Header (128 bits) Information Field 0-2048 Frame Check Sequence 16 FLAG 8 FEND (1 Byte) FEND (1 Byte) COMMAND (1 Byte) DATA (0-N Bytes) 4 5 TNC Parameter Control Functions & Port Routing HDLC Processing 6
  • 64. FLAG DESTINATION ADDRESS 8 56 SOURCE ADDRESS 56 Control Bits 8 Protocol Identifier 8 AX.25 Transfer Frame Header (128 bits) Information Field 0-2048 Frame Check Sequence 16 FLAG 8 TNC HDLC Processing 7. HDLC Processing receives the AX.25 Frame 8. Frame Check Sequence is computed and appended to the Frame, Bit stuffing occurs (not depicted) 9. FLAGs are appended and prepended to the Frame (usually many flags on both ends) 10. Bit stream of frame is line encoded (HDLC NRZ-I), Most significant byte first (except FCS, flipped), LSB first 3/23/2018 TNC Interfacing Tutorial 64 FLAG DESTINATION ADDRESS 8 56 SOURCE ADDRESS 56 Control Bits 8 Protocol Identifier 8 AX.25 Transfer Frame Header (128 bits) Information Field 0-2048 Frame Check Sequence 16 FLAG 8 8 7 FLAG DESTINATION ADDRESS 8 56 SOURCE ADDRESS 56 Control Bits 8 Protocol Identifier 8 AX.25 Transfer Frame Header (128 bits) Information Field 0-2048 Frame Check Sequence 16 FLAG 8 9 9 10
  • 65. AFSK Modulation 11. HDLC NRZ-I encoded bit stream is input to the AFSK Modulator; CPFSK modulation is used to produce an output AFSK signal 12. TNC triggers push to talk (PTT) line to place radio in transmit mode; AFSK Signal is passed into the DATA IN port of the radio on the DATA JACK (packet mode 1200 tap point) 13. AFSK signal is sent through the FM Modulation process and radiated out of the radio. 3/23/2018 TNC Interfacing Tutorial 65 11 RF IF LO Pos(+ ) IF AUD LO TX RX C RF IF LO 2 1 12 13
  • 66. Open Systems Interconnect Model 3/23/2018 TNC Interfacing Tutorial 66
  • 67. Open Systems Interconnect (OSI) Stack 3/23/2018 TNC Interfacing Tutorial 67 • Devices logically communicate at the relevant layers • Encapsulation • Headers • Standards (for interchangeable layers)
  • 68. OSI Stack – Simple Web Browsing Example 3/23/2018 TNC Interfacing Tutorial 68 HTTP (Web Browser) TCP IP MAC SWITCHES COPPER FIBER RF ROUTERS Physical Data Link Network Transport Session Presentation Application Data Data Data Segments Packets Frames Bits Data Layer OSI Model 1 2 3 4 5 6 7 Host Layers Media Layers
  • 69. Before We Proceed—a simplification Physical Data Link Network Transport Session Presentation Application Data Data Data Segments Packets Frames Bits Data Layer OSI Model 1 2 3 4 5 6 7 Host Layers Media Layers Physical Data Link Network Transport Application Data Segments Packets Frames Bits Data Layer OSI Model 3/23/2018 TNC Interfacing Tutorial 69 This is a common simplification which we will use for the rest of this presentation
  • 70. OSI Stack Logical Communication Physical Data Link Network Transport Application Application Data L3 Header L2 Header Data Layer Physical Data Link Network Transport Application Layer L4 HDR Segmented Application Data L4 Header Segmented Application Data L3 Header L4 Header Segmented Application Data Physical Medium 3/23/2018 TNC Interfacing Tutorial 70
  • 71. OSI Stack – Smallsat Comms Example Physical Data Link Network Transport Application Data Segments Packets Frames Bits Data Layer 3/23/2018 TNC Interfacing Tutorial 71 Client Application TCP IP MAC /KISS/AX.25/HDLC RS-232/AFSK/FSK/GMSK TNC RADIO Satellite TC/TM Software VPN
  • 72. Remote Connection Bring it all together! 3/23/2018 TNC Interfacing Tutorial 72
  • 73. Information overload---what’s the point? • TCP • IP • VPN • KISS • HDLC • AX.25 • AFSK • OSI • G3RUH GSMK/FSK 3/23/2018 TNC Interfacing Tutorial 73 Once again………….
  • 74. Ground Station Spacecraft C&DH Computer RADIO RADIO TNC Host Computer Client Application RS-232 TC SW SERIAL AX.25/KISS SERIAL KISS AFSK AX.25/HDLC DATA IN FM / RF Audio RF/FM/AFSK HDLC/AX.25 Radio Telecommand (TC) SERIAL KISS TTL Serial SERIAL KISS/AX.25 TC SW Host Computer HW TNC HW Radio Antennas Serial AX.25/KISS Audio/NRZ PTT TNC FIRMWARE RADIO FIRMWARE OSI Stack for AFSK Uplink – Hardware TNC 3/23/2018 TNC Interfacing Tutorial 74
  • 75. Ground Station Spacecraft C&DH Computer RADIO RADIO TNC Host Computer Client Application RS-232 to TTL converter TC SW SERIAL AX.25/KISS SERIAL KISS AFSK AX.25/HDLC DATA IN FM / RF Audio RF/FM/AFSK HDLC/AX.25 Radio Telecommand (TC) SERIAL KISS SERIAL KISS/AX.25 TC SW Host Computer HW TNC HW Radio Antennas Serial AX.25/KISS Audio/NRZ PTT TNC FIRMWARE RADIO FIRMWARE Slight tangent - If you are still developing/testing 3/23/2018 TNC Interfacing Tutorial 75 This is the power of adhering to the OSI Model!
  • 76. Ground Station Host Computer Software TNC HOST OS NETWORK Spacecraft C&DH Comput er RADIO Client TC SW AX.25 KISS IP TCP KISS AFSK AX.25 HDLC Audio AFSK FM RF AX.25 HDLC Radio Telecommand (TC) SERIAL KISS TTL Serial SERIAL AX.25 KISS TC SW Host Computer SoundCard Interface HW Radio Antennas Audio/NRZ PTT USB / Serial ‘audio’ samples Audio TNC SW FIRMWARE RADIO DATA IN FM RF SoundCard Interface D to A IP IP TCP Localhost LOOPBACK IP OSI Stack for AFSK Uplink – Software TNC 3/23/2018 TNC Interfacing Tutorial 76
  • 77. Primary Ground Station Host Computer Software TNC HOST OS NETWORK Spacecraft C&DH Comput er RADIO Client TC SW AX.25 KISS IP TCP KISS AFSK AX.25 HDLC Audio AFSK FM RF AX.25 HDLC SERIAL KISS TTL Serial SERIAL AX.25 KISS TC SW Audio TNC SW FIRMWARE RADIO DATA IN FM RF SoundCard Interface D to A IP IP TCP Localhost LOOPBACK IP Remote Ground Station Host Computer Software TNC HOST OS NET KISS AFSK AX.25 HDLC Audio Telecommand (TC) Audio TNC SW RADIO DATA IN FM RF SoundCard Interface D to A IP TCP Radio INTERNET OSI Stack for AFSK Uplink – Remote Connection 3/23/2018 TNC Interfacing Tutorial 77
  • 78. Primary Ground Station - UPEC Host Computer Software TNC HOST OS NETWORK Spacecraft C&DH Comput er RADIO Client TC SW AX.25 KISS IP TCP KISS AFSK AX.25 HDLC Audio AFSK FM RF AX.25 HDLC SERIAL KISS TTL Serial SERIAL AX.25 KISS TC SW Audio TNC SW FIRMWARE RADIO DATA IN FM RF SoundCard Interface D to A IP IP TCP Localhost LOOPBACK IP Remote Ground Station - VTGS Host Computer Software TNC HOST OS NET KISS AFSK AX.25 HDLC Audio Telecommand (TC) Audio TNC SW RADIO DATA IN FM RF SoundCard Interface D to A IP TCP Radio INTERNET MAC MAC VPN CONNECTION OSI Stack for AFSK Uplink – VTGS Connection 3/23/2018 TNC Interfacing Tutorial 78 NOTE: the VTGS is actually a bit more complicated than shown below. For simplicity related to OSI stack, copy of SW TNC + Soundcard GS is shown.
  • 79. Summary The Key things to remember 3/23/2018 TNC Interfacing Tutorial 79
  • 80. Summary – Key points to remember • Telemetry (TM) processing and Telecommand (TC) generation software specific to the satellite must be written if it does not already exist. • The structure of the of the Information Field for TC/TM must be defined (ICDs). • The TC/TM Software must output an AX.25 Frame encapsulated in a KISS Frame for uplink and expect to receive a KISS Frame containing an AX.25 Frame from downlink. • It is HIGHLY recommended that the TC/TM software utilize TCP/IP sockets for transport of KISS Frame. This interface is common with software TNCs and is necessary for the Internet based remote connection to the VTGS. • I am NOT an expert on the IC-9100. I’ve given some pointers on the cable fabrication and testing process…..but double checking functionality and configurations specific to the IC-9100 (Menu settings) need to be done at UPEC. • This presentation is pretty specific to TNC Interfacing (with relevant deviations). Topics not addressed for full ground station design and implementation would have resulted in at least double the slide deck length...(link analysis, antenna design, noise characterization, amp design, tracking, sequencing, message passing, data storage, metadata generation, etc. etc.)…….. 3/23/2018 TNC Interfacing Tutorial 80
  • 81. Thank You! 3/23/2018 TNC Interfacing Tutorial 81 And remember…..Don’t Panic!.....It’s all gonna work!