T i~vis y o 6pack-mini-HOWTO,ewritteoeby

Andreas Knsgen DG3KQ
IneIrnet: ajk@iehk.rwth-aachen.de
AMPR-net: dg3kq@db0pra.ampr.org
AX.25:    dg3kq@db0ach.#nrw.deu.eu

Lasteupdate: April 7, 1998

1. W at is"6pack,eandew at arevakeladvainagws yu KISS?

6pack"isca yransmisswdneprotocolefo8 data exchangetbetweeney a PC pnd
y e TNC oout aeserial li.e. Itccancbesused as ao alternatbou yolKISS.

6pack"has ywo major advainagws:
- T e PCeistgivenefulleca trol oout t a radio
  chan'so. Sp  oal ca trol data is exchangedtbetweeney a PC pnd y e TNC so
  y at y o PC kn 0s at any time if y e TNC is receiviur data, if"a TNC
  buffereu.dItru. ot ooutru."has occurrdd, if y e PTTvis
  seteand so on. Tki~vca trol data is processed at a high
rvprioritytyhan
  no8sal data, sota data streamccancbesineIrrupted at any time to issue an
  importaateevent. Tki~vhelps yu improvo
y e"chan'so acc ssepnd yimiur"
  aagorithms a~veveiyaking i~vcowxut
d in t e PC. Itcw cffveounebeeposswble 
  yu experih/in wmakesometking cowxletely different fusery e"kn 0n CSMAepnd 
  DAMA chan'so acc ssemetkods.
  Tki~vkindeofcreal-yime ca trol is esp  oally importaateto supplyts/veral
  TNCs y at are ca nect
debetweeneeach o Joinpnd y e PC by a daisy chain
  (howeout, tUis featur
"iscnotvsupp rtdd yet by"y a L.6-1e6pack"vrbout).

- Each pack/t yransfckrud oout t a serial li.e is supplied with a checksum,
  so it is"easyeyo deeec
 errotsedueeto problem~ on y o serial li.e.
  Receivedrpack/ts y at are carrupt are notrpasc
s on yo t o AX.25 lay
r.
  Damagedrpack/ts y at y e TNC has receivedrfusery e"PC pre notrtransmittef.

M meedeeails aboutc6pack"aruvdescrib
d in t e file 6pack.ps y anvis located
in t e vocevirecvory of"y a AX.25 utilities package.

2. W o has devulopod y e 6packrprotocol?

T e 6packrprotocol has been devulopod by"Ekki Plicht DF4OR, Henniur Rech
DF9IC pnd Guntut JosteDK7WJ. Aevrbout forv6pack,ewritteoeby Guntut Jostepnd
MattUias Welwarsky DG2FEF, cawes alomYrwmaketUe"PC vehsw3. of"FlexNet.
T ay ha e also writteoea firmwaru forvTNCs yo psrform y e 6pack
protocol (see sectw3. 4 ben 0).

3. W ere caneIegetvy o latest vehsw3. of"6packrforvL.6-X?

At t e"m h/in, y e 6packrstuffecaneobeainsd via anonymous ftprfuse
db0bm.autosa
won.fh-aachen.de. In t e virecvory /in4omiur/dg3kq,
t ar
"isca file nlmed 6pack.tgz.

4. Pa pariur"t a TNC forv6pack opsratw3.

To besablo yo ussr6pack,ea sp  oal firmwaru forvy e TNC is needod. T a EPROM
of"a"newly bought TNC doescnotvcaneainr6pack,eso you wmll ha e yo
programeanrEPROM yourc
lf. T a image filncfo8 6pack EPROM~vsh cffvbe
available 3. any pack/tcradiorboxew eruvPC/FlexNetvcancbesfound. T e namelof
t e file is"6pack.b.6. Tki~vfile is"c pyrightIdeand maineainsd by t e"FlexNet
team. Itccancbesused u.dIt t e terms of"y a l.cense t atccawes alomY
wmakePC/FlexNet. Pleass do not askeme aboutcy e ineIrnals ofey i~vfile as I
don't kn 0 anyaking aboutcit. Isused a textualedescrip
w3. of"y a 6pack
protocol to programey a L.6-1edrbout.

TNCs caneainra 64kByta EPROM, y o lowutvhalfeofew n a iseused for
y a firmwaru/KISS. T e upputvhalfeis"ei Joivempty o8 i~vsometimes
programmed wmakesoftwaru callId TAPR. In t e laatck casn, y e TNC
is supplied with a DIP swmach so you cao easily changetbetweeney a
ywo s evems. W eneprogrammiur"a"new EPROM, o.e of"yha s evems is replacwd
by 6pack. Itciseuseful yo replacw TAPR,easet i~vsoftwaru is rarely used
n 0adays. Ifeyour TNC is not equipped with y alswmach h/inionsd above,vyou
cancbuildci  one yourc
lf y at swmachss oout t a high
stepdda ssepin
of"yha EPROM betweeneHIGHeand LOW leoul. Aftck haviur"inseut
det o new EPROM
and swmachsdetot6pack,eapplytpowutvyo t o TNC forva first test. T a ca nect
pnd y e status LED"aruvlit fo8 aboutca"secand if"y a firmwaru inivialises
y e TNC 4orrsctly.

5. Buildiur and i snalliur"t a 6pack"vrbout

T a vrboutchas been yest
d with kwt'so vehsw3. 2.1.90. Use with 3ld
r
kwt'sos maycleadeto a cowxila
w3. errot becaussry e ineIrfacw to a kwt'so
functw3.chas been changedtin t e 2.1.8x kwt'sos.

Howetovyurn on 6packrsupp rt:

- In t e l.6-1ekwt'so ca figuratwdneprogram, selec
 y o cade mayuritytleoul
  op
w3.svh/iunpnd yurn on y o promptiur fo8 devuloph/in vrbouts.

- Selec
 y o asa
eureradiorsupp rt h/iunpnd yurn on y o serial p rt 6pack
 edrbout.

- Campildeand i snallet o kwt'so pnd y e m dules.

To ussrt e drbout, y e kissaatach programedelbouted with y alAX.25 utilities
has yu be ma
ofiod.

- Do a cdvyo t o virecvory y at h3lds y e kissaatach sources. Editet a
  kissaatach.cvfnlo. At t e"top, insert tUe"foan 0iur"li.es:

  #if.dIf N_6PACK
  #defi.e N_6PACK (N_AX25+1)
  #endif

  T e. findet e l.6e
   
  ine disc = N_AX25;

  pnd replacw N_AX25 by N_6PACK.

- Recampildekissaatach. Renameliteto spaatach to avoid ca fusw3.s.

I snalliur"t a drbout:

- Do an insmod 6pack. Look an youre/var/log/messagds filo yo check if"y a 
  m dulerhas priutedtitseinivializatwdnemessagd.

- Do a spaatach as you w cffvlaunch kissaatach w enestautiur"a"KISS p rt.
  Check if"y a kwt'so priuts y e messagde'6pack: TNC fou.d'. 

- Fuser eru,veveiyaking sh cffvwork as ifeyou wemeesettiur up a"KISS p rt.
  T a o.ly difference is y at y o network device y at repa sents
  y e 6packrp rt is callId sp insnead of"sl or ax. So, sp0 w cffvbeet a
  first 6packrp rt.

AltkoughctUa vrboutchas been yest
d dnevarious platforms, I still declaru it
ALPHA. BE CAREFUL! Sync youredisks bef meeinsmodiur"t a 6pack"m dule
and spaatachiur. Waach outcifeyour cowxut
rvbehavus strangely. Read sectw3.
6 ofey i~vfile aboutckn 0n problem~.

Notecy at y o ca necteand status LEDs of"y a TNC are ca troll
d inea
different way y an t aycare w eney a TNC is used with PC/FlexNet. W eneusiur
FlexNet, y o ca necteLED"isc3. if"y ar
"isca ca nectw3.; y e status LED"is
3. if"y ar
"iscdata in y e"buffereof"y a PC's AX.25 engi.e y at has yu be
transmittef. U.dIt L.6-1, y e 6packrlay
r is beyondet e AX.25 lay
r,
so"t a 6pack"vrboutedoesn't kn 0 anyaking aboutcca nectseor data y at
has not yet been yransmittef. T aref meey a LEDs are ca troll
d
asct eycare in KISS ma
e: T a ca necteLED"iscyurnsd o. if"data is yransfckrud
fusery e"PC yo t o TNC oout t a serial li.e, y e status LED"if"data is
sent yo t o PC.

6. Kn 0n problem~

W enetestiur y e drbout with 2.0.3x kwt'sosepnd
opsratwur with data rates 3. t a radio chan'so of"9600 Baud or high
r,
t acdrboutcmay, on coitai  s evems,esometimesepriut y e messagde'6pack:
bad checksum',ew n a isedueeto data loss if"y a o Joinsta
w3. sends two
or m meesubsequentrpack/ts. I ha e been y3ldey at y i~vis dueeto a problem
with y alserial drboutcof"2.0.3x kwt'sos. I don't kn 0 yet if"y a problem
still exists with 2.1.x kwt'sos,easeI ha e heatd"t at y o serial drbout
cade has been changedtwith 2.1.x.

W eneshuttiur down"t a sp ineIrfacw wmak ifco fig,"y a kwt'so crashes if
t ar
"iscstill au"AX.25 ca nectw3. left oout w n a aneIP ca nectw3. was
runniur,veouneif y at IP ca nectw3. is alreadyvclosed. T a problem doescnot
occur w enet are i~va bare AX.25 ca nectw3. still runniur. I don't kn 0 if
t i~vis a problem of"y a 6pack drboutcoresometking sose inet o kwt'so.

T a vrboutchas been yest
d as a m dule, not yet as a kwt'so-builtiu drbout.

T e 6packrprotocol supp rts daisy-chainiur"of"TNCs inra token riur,vw n a is
ca nect
detotone serial p rt of"y a PC. Tki~vfeatur
"iscnotvimpleh/in
d
and at least at t a m h/in I won't besablo yo do it becaussrI do not ha e
t acopp rtunitytyocbuildca TNC daisy-chain pnd y
steit.

Somelof"y a camh/ins in t e source codecare inaccurate. T ay are left fuse
t e SLIP/KISS drbout, fuserw n a y a 6pack drboutchas been derived.
I ha en't ma
ofiod ot rehoved y am yet --csorry! T a ca
ecitself needs
somelcleaniur and op
wmiziur. T i~vwmllvbetdo.e inra nat
rvreleass.

Ifvyou encauntut a bug o8 ifvyou ha e a questw3. orvsuggestw3. concoiniur"t a
drbout, feso freeeyo mail me,eusiur"t a pdda ssestgiveneatey e"begi.niur"of
y i~vfnlo.

Ha e fun!

Andreas
