******************************************************** * * * X.25 Protocol Interface for CP/M-80 * * * * USER MANUAL * * * * (C) 1985 Ed Elizondo * * 6 Cypress Court * * East Windsor, NJ 08520 * * * * NOTICE: All Rights Reserved - These programs and * * accompanying documentation may be used freely for * * non-commercial applications. They may not be sold * * or used for commercial applications without the * * written permission of the author. * * * ******************************************************** 1. Description of System Thå  softwarå  systeí  describeä hereiî enableó á  Z8°  CP/Í baseä   microcomputeò   tï  communicatå  witè  á   networë   datá communicationó equipmenô (DCE© porô usinç thå X.2µ  internationaì packeô   communicationó  protocol®   Thå  systeí  implementó  thå functionó oæ á singlå logicaì channeì datá terminatinç  equipmenô (DTE© anä ió capablå oæ operatinç eitheò iî á terminaì modå oò iî á   filå  transfeò  modå  independentlù  foò  eacè  directioî  oæ transmission. Iî  terminaì  mode¬  messageó  typeä aô  thå  locaì  consolå keyboarä  arå transmitteä tï thå networë aó datá packetó aó  sooî aó  á carriagå returî ió entered®  Incominç packeô messageó  arå displayeä oî thå locaì consolå aó accepted. Iî  thå  filå  transfeò mode¬  thå systeí wilì  transmiô  oò receivå  fileó  oæ  datá tï oò  froí  thå  network®  sincå  eacè directioî  oæ  transmissioî  ió  handleä  independently¬   iô  ió possiblå  tï transmiô á filå whilå receivinç iî terminaì modå  oò viceversa®  Iô  ió  alsï  possiblå  tï  utilizå  thå  systeí  iî bidirectional file transfer mode. 2. Installation Thå  currenô versioî oæ thió softwarå packagå ió  customizeä tï  ruî  oî thå Digitaì Researcè Computer'ó  "Biç  Board¢  singlå boarä  computer®  Thå  minimuí  hardwarå requirementó arå  á  Z8° microprocessor¬  á  Ziloç  SIÏ seriaì communicationó porô  anä  á Ziloç  CTà counter/timer¬   alì  interfaceä  usinç  Z8°  modå  ² interrupts® Installatioî  oæ thå systeí oî thå Digitaì  Research'ó  "Biç ŠBoard¢ microcomputeò systeí consistó oæ a© cuttinç á tracå oî thå Pà boarä  tï  permiô SIO-Á tï operatå correctlù  iî  synchronouó mode¬ b© installinç thå appropriatå jumperó tï configurå thå SIO- Á  porô  tï  properlù  interfacå tï  thå  externaì  networë  porô connection¬ anä c© generatinç thå executalbå X25.COÍ file. 2.1 Sync Jumper Removal Aó  receiveä  froí thå manufacturer¬  pinó 1± (sync© anä  1² (receiveä  data©  oæ  SIO-Á  (U113©  arå  connecteä  togetheò  tï facilitatå  automatiã determinatioî oæ bauä ratå wheî á  standarä (asynchronous©   terminaì  ió  connecteä  tï   thió   port®   Iî synchronouó  mode¬  thå  synã terminaì oæ thå SIÏ operateó aó  aî outpuô  and¬  iæ lefô connected¬  generateó undesireä transitionó whicè arå superimposeä oî thå inpuô data®  Foò propeò  operatioî this printed circuit board trace must be cut. 2.2 SIO-A I/O Jumper Configuration Figurå  2-±  showó  thå I/Ï strappinç  jumperó  requireä  oî connectoò  JB´ oæ thå "Biç Board¢ tï configurå SIO-Á tï interfacå witè á typicaì maiî framå X.2µ port®  Thå jumperó configurå  thå "Biç  Board¢ aó aî RS232à "modem¢ usinç alì RS232à statuó signaló (CTS¬  RTS¬  DCÄ anä DTR© anä witè thå "Biç Board¢ supplyinç  thå bauä ratå clocë tï thå "terminal¢ (main frame)® Otheò hardwarå configurationó maù requirå á differenô jumpeò arrangement®  Notå thaô  thå  samå  clocë sourcå musô bå useä foò thå  SIÏ  anä  thå externaì  device¬  whetheò supplieä bù thå "Biç Board¢ oò bù  thå externaì device. 2.3 Generating the X25.COM File Tï  generatå  thå  X25.COÍ filå foò  thå  "Biç  Board"¬  thå followinç stepó arå necessary: a©  Assemblå thå followinç fileó usinç thå Digitaì Researcè RMAà assembleò anä thå Digitaì Researcè standarä  SEQIO.LI  anä Z80.LI macrï libraries: X25.ASM LEVEL1.ASM LEVEL2.ASM LEVEL3.ASM FILES.ASM BUFFERS.ASM XUTIL.ASM b©  Generatå  thå  X25.COÍ filå bù linkinç thå  .REÌ  fileó resultinç froí steð a© usinç thå Digitaì Researcè LINK-8°  linkeò Šusing the following command sequence: LINK x25,xutil,level1,level2,level3,buffers,files{a,nr] Notå  thaô  thå  X2µ modulå musô bå linkeä  firsô  sincå  iô containó thå prograí entrù point® Thå ordeò oæ linkinç thå otheò moduleó ió immaterial. Foò otheò hardwarå configurations¬  á ne÷ LEVEL1.ASÍ  modulå musô bå generateä witè thå appropriatå hardwarå interfaceó (refeò to Section 6). .pa Š /------------baud rate generator supplies modem with tx clock | | /----------modem supplies SIO with TX clock | | | | /--------baud rate generator supplies SIO with TX clock | | | | | | /------modem supplies SIO with RX clock | | | | | | | | /----baud rate generator supplies SIO with RX clock | | | | | | | | | | /--baud rate generator supplies modem with RX clock | | | | | | | | | | | | 39 o o o o o o o o o o o o o o o o o o o o 1 | | | | | | | | | | 40 o o o o o o o o o o o o o o o o o o o o 2 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | \----(M) RXD to pin 3 | | | | | | | | | | | | | | | | | | | | | \------(T) TXD to pin 2 | | | | | | | | | | | | | | | | | | | \--------(M) TXD from pin 3 | | | | | | | | | | | | | | | | | \----------(T) RXD from pin 3 | | | | | | | | | | | | | | | \------------(M) CTS to pin 5 | | | | | | | | | | | | | \--------------(T) RTS to pin 4 | | | | | | | | | | | \----------------(M) RTS from pin 4 | | | | | | | | | \------------------(T) CTS from pin 5 | | | | | | | \--------------------(M) DCD to pin 8 | | | | | \----------------------(T) DTR to pin 20 | | | \------------------------(M) DTR from pin 20 | \--------------------------(T) DCD from pin 8 LEGEND (M) indicates RS232C modem configuration of the "Big Board" (T) indicates RS232C terminal configuration of the "Big Board" RXD = received data TXD = transmitted data RTS = request to send CTS = clear to send DTR = data terminal ready DCD = data carrier detect Figure 2-1 - SIO-A I-O Strapping Options .pa Š3. Initialization Executinç  thå  X25.COÍ transienô commanä shoulä  causå  thå prograí  tï bå loadeä froí disk¬  sigî on¬  anä displaù thå  maiî menu shown in Figure 3-1. Aô thió point¬  thå X2µ systeí ió readù foò operatioî and/oò initialization of the default parameters. ------------------------------------------------------------------ X.25 packet communications program (06/28/84) (c© 198´ Eä Elizondï - alì rightó reserved X.25 main menu: normal operation: diagnostics: 1. initialize link 10. display system parameters 2. transmit restart packet 11. display status flags 3. transmit file 12. display L1 and L2 statistics 4. abort file transmission 13. display L3 statistics 5. receive file 14. set flow control ready flags 6. abort file reception 15. transmit bad frame 7. transmit clear req. packet 16. change frame sequence 8. query link status 17. start frame logging 9. disconnect link 18. stop frame logging miscellaneous: 19. change default parameters 21. exit to monitor 20. change remote DTE address 22. exit to CP/M option (cr to exit)= ------------------------------------------------------------------ Figure 3-1 - System Main Menu .pa Š3.1 Initialization of System Default Parameters Aô   systeí  startup¬   alì  communicatioî  parameteró   arå initializeä  tï  theiò defaulô values®  Thå defaulô  valueó  arå obtaineä froí thå disë filå X25.PAR¬  iæ sucè á filå  exists¬  oò froí  thå  optionó  selecteä aô assemblù time¬  iæ nï  sucè  filå exists® Tï initializå thå defaulô valueó anä generatå thå X25.PAÒ filå  foò  á giveî installation¬  selecô optioî £ 1¹ aô thå  maiî menõ  prompt®  Thå systeí wilì theî prompô thå operatoò foò  thå desireä communicatioî parameteró aó follows: baud rates: 1. 300 baud 2. 600 baud 3. 1200 baud 4. 2400 baud 5. 4800 baud 6. 9600 baud 7. 19200 baud option (cr to exit)= 3 Enteò   thå  desireä  bauä  ratå  optioî  desireä  foò   thå particulaò  installation®  Notå thaô thå maximuí erroò freå ratå maù varù witè particulaò installations®  Iô ió recommendeä  thaô thå  lowesô ratå (optioî 1© bå useä untiì thå maximuí  error-freå ratå supporteä bù thå systeí haó beeî determined® Notå thaô thió optioî ió onlù meaningfuì iæ thå "Biç  Board¢ systeí  ió  supplyinç thå clocë tï thå externaì devicå (refeò  tï Sectioî 2.2)® Iæ thå externaì devicå ió supplyinç thå clock¬ anù optioî maù bå selecteä sincå iô wilì havå nï effect®  Á carriagå returî   wilì  leavå  thå  optioî  unchangeä  froí  thå  previouó selection® level 2 mode: 1. DTE (normal mode) 2. DCE (test mode) 3. self-test mode (with loopback connector) option (cr to exit)= 1 Thió  optioî  determineó thå assignmenô oæ  framå  addresseó useä  foò linë leveì commanä anä responså frames¬  iî  accordancå witè thå X.2µ standard® Foò  normaì  operatioî  optioî ± (DTE© shoulä  bå  selected® Optioî  ² ió foò uså wheî twï similaò DTÅ unitó musô  communicatå Šwithouô  thå intermediarù oæ á networë DCÅ (foò examplå wheî  twï "Biç  Board¢  systemó  arå connecteä togetheò  foò  debugginç  oæ softwarå  modifications®  Optioî  ³  ió foò uså  onlù  iî  debuç operationó  usinç  á singlå DTÅ systeí iî á  loopbacë  connectioî arrangemenô  wherå transmitteä datá ió feä bacë tï  thå  receiveä datá terminal® Á carriagå returî wilì leavå thå optioî unchangeä from the previous selection. level 3 mode: 1. Virtual Call circuit (VC) 2. Permanent Virtual Circuit (PVC) option (cr to exit)= 1 Thió   optioî   determineó   whetheò   thå   packeô    leveì communicationó  modå wilì corresponä tï thå Virtuaì Calì (VC©  oò Permanenô  Virtuaì Circuiô (PVC© servicå clasó oæ  operation¬  aó defineä iî thå X.2µ standard®  Iî simplifieä terms¬  thå Và modå requireó  calì  setuð packetó beforå datá caî bå transferreä  anä calì clearinç packetó afteò datá transmissioî ió complete¬  whilå PVà circuitó caî transfeò datá packetó aô anù time®  Mosô  maiî framå   implementationó  supporô  onlù  Và (optioî  1©  modå  oæ operation®  Á  carriagå returî wilì leavå thió  optioî  unchangeä froí thå lasô selection® local DTE address (0-15 hex digits) = Thió optioî determineó thå locaì DTÅ addresó oæ thå  system® Aî  addresó  maù  bå entereä bù typinç froí ° tï  1µ  heø  digitó (withouô anù interveninç spaces)® Iæ aî addresó ió selected¬ onlù calì  requesô packetó havinç sucè aî addresó wilì bå accepteä  bù thå system®  Á carriagå returî wilì seô thå addresó lengtè tï 0® remote DTE address (0-15 hex digits) =  Thió optioî determineó thå initiaì DTÅ addresó oæ thå remotå systeí beinç accessed®  Aó before¬  aî addresó maù bå entereä bù typinç  froí ° tï 1µ heø digitó (withouô anù interveninç spaces)® Iæ aî addresó ió selected¬  thå addresó wilì bå incorporateä intï alì  calì  requesô packetó senô bù thå system®  Notå  thaô  somå main-framå  implementationó  accepô onlù ´ heø digitó foò  á  DTÅ addresó  anä thaô thió addresó ió useä tï selecô thå  destinatioî procesó oæ thå packeô communications® Notå alsï thaô optioî £ 2° oæ  thå maiî menõ caî bå useä tï changå thió addresó aô anù time® Usinç  optioî  £ 1¹ selectó thå initiaì defaulô  valuå  foò  thió address¬ whicè remainó unchangeä wheî optioî £ 2° ió selected® Š Afteò selectioî oæ thå abovå option¬ á ne÷ defaulô parameteò filå  X25.PAÒ ió generateä oî thå currentlù loggeä disk¬  anä thå systeí ió readù foò operation®  Thå selecteä parameteró maù  bå verifieä bù meanó oæ maiî menõ optioî £ 10. 4. Using the System Assuminç  thaô thå systeí ió connecteä tï aî activå  networë porô anä thaô thå systeí defaulô parameteró havå beeî initializeä aó describeä iî Sectioî 3.1¬ tï uså thå systeí iî packeô terminaì modå  requireó  simplù thaô thå linë connectioî  bå  established® Oncå thå linë connectioî ió established¬  establishinç thå packeô leveì  calì  occuró  automaticallù  wheî  thå  firsô  messagå  ió transmitted®  Thå  followinç sectionó describå iî greateò detaiì thå operatioî oæ thå systeí anä variouó optionó availablå  durinç normaì  operation®  Á summarù oæ thå optionó availablå froí  thå main menu is included in Appendix I. 4.1 Special Command Characters Wheî  thå  systeí ió iî control¬  thå followinç  characters¬ wheî  typeä  locallù aô thå systeí console¬  arå  interpreteä  aó speciaì commands:  escape        - thió  characteò  makeó thå systeí returî  tï  thå               maiî menu.  control-B     - thió characteò commandó thå systeí tï transmiô aî               interrupô packet® Thå interrupô packeô wilì onlù bå               transmitteä  iæ thå packeô channeì ió iî  thå  flo÷               controì  readù  statå  (p± oò d1© anä iæ  nï  otheò               interruptó arå pendinç confirmation¬  otherwiså  aî               erroò messagå results®  control-P     - thió  commanä turnó thå harä copù printeò oî  anä               off¬  similaò  tï thå samå functioî iî  CP/M®  Thå               consolå bell¬  iæ installed¬ ió soundeä tï indicatå               wheî  thå printeò ió turneä oî iî á manneò  similaò               tï CP/Í 3.0.  control-U     - thió  commanä deleteó thå lasô (incomplete© typeä               line¬ similaò tï thå samå functioî iî CP/M®  delete‚ - thió commanä deleteó thå lasô typeä character. Š.cp3  carriagå return   - thió  commanä transmitó thå previouslù typeä linå               aó  á  datá  packet¬  provideä thå  linë  haó  beeî               initializeä anä thå packeô channeì ió iî thå  readù               (r1© oò flo÷ controì readù (p± oò d1© state. 4.2 Connecting the Link Thå  firsô steð afteò initializinç thå defaulô parameteró ió tï  establisè  thå  linë  leveì  connection®   Thå  linë   leveì connectioî  maù bå originateä eitheò locallù bù thå DTÅ  (system© oò remotely bù thå DCE (network)® Assuminç  thaô  thå  systeí seriaì  communicationó  porô  ió connecteä tï aî activå networë port¬  thå systeí aô thió poinô ió transmittinç  continuouó flagó tï thå networë anä hopefullù  alsï receivinç flagó froí thå network® Iæ  iô  ió desireä tï originatå thå linë connectioî  (oò  tï reseô aî existinç connection© aô thå DTE¬ simplù selecô maiî menõ optioî  #±  (initializå  link)®  Thió wilì causå thå  systeí  tï transmiô  á SABÍ framå tï thå network®  Aî activå  networë  wilì replù witè á UÁ frame¬ aô whicè poinô thå linë ió establisheä anä thå  messagå  "L2º  rø  UÁ - linë connected¢ wilì appeaò  oî  thå system console. Iæ  nï UÁ framå ió receiveä froí thå DCÅ withiî 1°  seconds¬ thå  SABÍ framå ió retransmitted®  Thió procesó ió  repeateä  1° times¬ aô whicè point¬ iæ nï replù haó beeî received¬ thå networë ió  declareä  non-operatinç anä thå messagå "L2º  tø retrù  counô exhausted - no reply from dce" will appear on the system console. Iæ desired¬  thå systeí maù awaiô initializatioî oæ thå linë bù  thå  DCÅ (network)®  Thió ió accomplisheä  bù  selectinç  nï optioî  (bù typinç á carriagå return© aô thå maiî menu®  Iî  thió mode¬  thå  systeí wilì awaiô receptioî oæ á SABÍ framå froí  thå DCÅ  and¬  wheî sucè á framå ió received¬  thå systeí wilì  replù witè  á UÁ frame¬  causinç thå linë connectioî tï bå established® Thió  wilì bå indicateä tï thå operatoò bù thå  messagå  "L2º  rø SABM - link connected by dce" appearing on the system console. Notå thaô beforå thå SABÍ framå ió received¬ thå systeí wilì replù  witè  á disconnecô modå (DM© framå tï anù receiveä  frameó havinç thå polì biô ½ 1® Aî activå networë wilì replù tï thió DÍ framå bù transmittinç á SABÍ frame¬  thuó establishinç thå  link® Aô  typicaì  main-framå  implementations¬  wheî  nï  activitù  ió detecteä  afteò á perioä oæ time¬  thå networë porô  periodicallù transmitó RÒ frameó witè thå polì biô seô tï 1®  Wheî thå systeí ió  connecteä tï sucè á port¬  thió wilì causå thå  RR-DM-SABM-UÁ handshakå  tï  occur¬  thuó automaticallù establishinç  thå  linë connection. Š Thå  statå oæ thå linë connectioî maù bå determineä  aô  anù timå  bù  selectinç  optioî £ ¸ (querù linë status© aô  thå  maiî systeí menu® Iæ thå linë ió connecteä anä botè endó arå readù tï accepô transmitteä frames¬  thå messageó "L2º dtå ready¢ anä "L2º dcå ready¢ wilì appeaò oî thå systeí console. 4.3 Remote DTE Address Selection Thå  currentlù selecteä remotå DTÅ addresó maù bå  displayeä bù meanó oæ optioî £ 1° oæ thå systeí maiî menu®  Tï changå  thå remotå DTE address¬ foò examplå tï accesó á differenô destinatioî procesó througè thå network, option # 20 may be selected. Wheî  optioî £ 2° ió selected¬  á ne÷ remotå DTÅ addresó maù bå  entereä  bù  typinç  froí ° tï 1µ  heø  digitó  (withouô  anù interveninç  spaces)®  Á  carriagå returî wilì seô  thå  addresó lengtè tï 0® Aî invaliä addresó wilì repeaô thå prompô foò á ne÷ address. Thå  addresó sï selecteä wilì bå incorporateä intï anù  calì requesô packetó transmitteä bù thå systeí untiì modifieä agaiî bù meanó  oæ optioî £ 2° (oò reinitializinç thå systeí  parameters)® Notå  thaô  selectioî oæ aî addresó bù meanó oæ optioî £ 2°  doeó noô changå thå defaulô addresó initializeä aô systeí startup® Tï changå thå initiaì addresó selectioî yoõ musô uså optioî £ 1¹  tï change the default parameters. 4.4 Packet Level Initialization Iæ thå linë ió establisheä bù thå DTÅ (system)¬  thå  systeí automaticallù  transmitó á RESTARÔ REQUESÔ packeô tï thå network® Aî activå networë wilì replù witè á RESTARÔ CONFIRMATIOΠ packet¬ whicè  indicateó thaô thå packeô leveì ió iî thå readù (p1© state awaitinç  á calì setup®  Thió wilì bå indicateä bù  thå  messagå "L3º  rø restart¢ displayeä oî thå operatoò console®  Iæ nï replù packeô ió receiveä withiî 18° seconds¬ thå RESTARÔ REQUESÔ packeô ió retransmitted®  Iæ nï replù ió receiveä thå seconä time¬  thå networë  ió declareä ouô oæ ordeò anä thå messagå "L3º  tø  retrù counô exhausteä - nï replù froí DCE¢ ió displayed. Iæ thå linë ió establisheä bù thå networë (DCE)¬  thå systeí awaitó á RESTARÔ INDICATIOÎ packeô froí thå networë anä wheî sucè á  packeô  ió  received¬  thå systeí wilì  relù  witè  á  RESTARÔ CONFIRMATIOΠ packet¬  thuó causinç thå packeô leveì tï enteò thå ready (p1) state and await a call setup. Iæ necessary¬ á RESTARÔ REQUESÔ packeô caî bå transmitteä bù the system by use of option # 2 on the main menu. Š4.5 Establishing the Call Iæ thå Permanenô Virtuaì Circuiô (PVC© modå oæ operatioî haó beeî  selecteä aô systeí initialization¬  anä iæ thå DCÅ supportó thió  clasó oæ operation¬  nï calì setuð ió necessarù anä  packeô transmissioî anä receptioî maù begiî aô anù time® (notå thaô most main-framå implementationó dï noô supporô PVà modå oæ operation). Iæ  thå  Virtuaì  Calì  (VC©  modå  oæ  operatioî  haó  beeî selected¬ á packeô leveì calì musô bå establisheä beforå anù datá packetó  maù  bå transmitteä oò  received®  Establishmenô  oæ  á packeô  leveì  calì ió automaticallù accomplisheä bù  thå  systeí when the first console data packet is transmitted. Tï  establisè thå packeô leveì call¬  iô ió merelù necessarù tï transmiô á datá packet®  Thió ió mosô easilù donå bù typinç á carriagå returî aô thå systeí console®  Thå systeí automaticallù transmitó  á  CALÌ  REQUESÔ  packeô  containinç  thå   previouslù selecteä  DTÅ  addresses®  Aî activå networë iî thå  readù  (p1© statå  wilì replù witè á CALÌ ACCEPTEÄ packet¬  iæ iô caî  accepô thå call¬  oò á CALÌ REJECTEÄ packeô iæ iô cannot®  Thió wilì bå indicateä  bù thå messagå "L3º  rø calì connected¢ oò  "L3º  calì refuseä - tø cleaò request¢ displayeä aô thå systeí console®  Aó indicateä  iî  thå  latteò message¬  á rejecteä calì  causeó  thå system to transmit a CLEAR REQUEST packet in confirmation. Wheî thå CALÌ ACCEPTEÄ packeô ió receiveä bù thå system¬ thå channeì  ió theî placeä iî thå flo÷ controì readù (d1© statå  anä thå systeí proceedó tï transmiô thå outstandinç datá  packet¬  iî this case, a packet containing a carriage return-line feed pair. Thå calì setuð maù bå originateä bù thå DCE®  Iî thió case¬ thå  systeí  receiveó aî INCOMINÇ CALÌ packet¬  indicateä bù  thå messagå "L3º  rø incominç call¢ displayeä aô thå systeí  console® Thå systeí verifieó thaô thå incominç calì packeô haó thå correcô locaì  DTÅ  addresó  and¬  iæ so¬  replieó witè á  CALÌ  ACCEPTEÄ packet¬  aô whicè poinô thå systeí enteró thå flo÷ controì  readù (d1) state. Iæ  thå  incominç calì packeô haó aî  invaliä  address¬  thå systeí  replieó  witè á CLEAÒ REQUESÔ packet¬  indicateä  bù  thå messagå  "L3º  baä addresó - tø cleaò request"®  Thå systeí theî awaits another call. 4.6 Operation in Packet Terminal Mode Afteò  thå packeô calì ió establisheä anä thå systeí  ió  iî thå  flo÷  controì readù (d1© state¬  anù messageó typeä  aô  thå systeí  consolå  arå transmitteä aó datá packets¬  aó sooî  aó  á carriagå returî ió typed® Notå  thaô thå systeí automaticallù addó á linå  feeä  afteò Šeacè  carriagå  returî thaô ió typed®  Notå alsï thaô sincå  thå maximuí  packeô  sizå handleä bù thå systeí ió  12¸  datá  bytes¬ longeò  messageó  typeä aô thå systeí consolå wilì bå  brokeî  uð intï  morå  thaî  onå  packeô (thå maximuí  consolå  buffeò  sizå currentlù implementeä iî thå systeí ió 25¶ bytes¬ longeò messageó thaî thió wilì bå truncateä tï 25¶ bytes.© Thå systeí promptó thå operatoò witè á '>>§ wheî iô ió readù to accept the next message for transmission. Thå  contentó oæ anù datá packetó receiveä afteò thå  packeô calì  ió  establisheä  arå  displayeä  unchangeä  aô  thå  systeí console¬  excepô  thaô  alì  controì characteró  otheò  thaî  thå following are replaced by a period ('.'): carriage return line feed form feed bell horizontal tab back space 4.7 Transmitting Interrupt Packets Oncå  thå packeô calì haó beeî establisheä aó  describeä  iî Sectioî 4.5¬  INTERRUPÔ packetó maù bå transmitteä aô anù timå bù typinç  control-  (break© aô thå systeí console®  Thå DCÅ  wilì replù  tï  thió interrupô packeô witè aî  INTERRUPÔ  CONFIRMATIOÎ packeô  anä  takå whateveò locaì actioî haó  beeî  programmeä  iî responså  tï interruptó (thió ió á networë option)®  Receipô  oæ thå  interrupô  confirmatioî  wilì  bå indicateä  aô  thå  systeí consolå bù thå messagå "L3º rø interrupô confirmatioî packet". Onlù   onå  INTERRUPÔ  packeô  maù  bå   transmitteä   untiì confirmed®  Attempô  bù thå operatoò tï senä á seconä  INTERRUPÔ packeô  beforå thå INTERRUPÔ CONFIRMATIOÎ packeô haó beå receiveä wilì resulô iî aî erroò message. 4.8 Transmitting File Data Beforå transmittinç anù filå data¬  thå packeô calì musô  bå establisheä  aó  describeä  iî Sectioî  4.5®  Oncå  thå  calì  ió established¬  filå  datá  maù  bå  transmitteä  aô  anù  timå  bù selectinç maiî menõ optioî £ 3® Wheî  optioî £ ³ ió selecteä aô thå maiî  menu¬  thå  systeí wilì  asë foò á filå name¬  provideä á filå transmissioî  ió  noô alreadù iî process®  Typinç á carriagå returî aô thió poinô wilì aborô thå filå transmissioî request® Typinç aî invaliä filå namå Šwilì  causå thå filå namå questioî tï bå repeated®  Á valiä  filå namå maù contaiî onlù alphanumeriã characteró anä maù contaiî  aî optionaì  drivå  namå  anä filå  typå  specifier¬  followinç  thå standarä CP/Í convention¬ foò examplå B:test.dat. Oncå á valiä filå namå haó beeî entered¬  thå systeí  checkó tï  seå  iæ thå filå existó oî thå specifieä disk®  Iæ thå  filå doeó noô exist¬  thå filå transmissioî requesô ió aborteä anä thå message "L4: file not found" is displayed. Iæ  thå  filå exists¬  transmissioî oæ thå  filå  datá  wilì proceeä automaticallù untiì thå enä oæ filå unlesó aborted® Filå transmissioî  maù bå aborteä aô anù timå bù selectinç optioî £  ´ aô thå maiî menu® Durinç filå transmission¬  anù messageó typeä aô thå consolå wilì  noô  bå  transmitteä  tï  thå  DCÅ  untiì  afteò  thå  filå transmissioî ió complete®  Notå thaô thå maximuí consolå messagå sizå oæ 25¶ byteó applieó alsï iî thió case® 4.9 Receiving File Data Beforå  receivinç filå data¬  thå packeô leveì calì musô  bå establisheä  aó  describeä  iî sectioî 4.5®  Oncå thå  calì  ió established¬  filå datá maù bå receiveä aô anù timå bù  selectinç option # 5 from the main menu. Wheî  optioî  £ µ ió selecteä aô thå maiî menu¬  thå  systeí askó foò á filå name¬ provideä filå datá receptioî ió noô alreadù iî  process®  Typinç á carriagå returî aô thió poinô wilì  aborô thå  filå receptioî request®  Typinç aî invaliä filå  namå  wilì causå thå filå namå questioî tï bå repeated® Again¬ á valiä filå namå  maù contaiî onlù alphanumeriã characters¬  witè aî optionaì filå  typå anä disë drivå specifieò iî accordancå  witè  standarä CP/M convention. Oncå  á valiä filå namå haó beeî entered¬  thå systeí checkó foò  thå  existencå oæ á filå bù thå samå namå oî  thå  specifieä disk®  Iæ  sucè á filå ió found¬  thå systeí askó  "filå  alreadù exists¬ deletå iô (y/n)?"® Answerinç anythinç otheò thaî "y¢ (oò "Y"©  wilì aborô thå filå receptioî request®  Answerinç "y¢  (oò "Y") will erase the previous file of the same name. Oncå  thå  receivå filå haó beeî  successfullù  opened¬  alì receiveä  datá  wilì  bå writteî ontï thió filå  untiì  thå  filå receptioî  modå  ió aborteä bù meanó oæ optioî £ ¶ froí thå  maiî menu® Durinç  filå datá receptioî á pluó sigî '+§ ió displayeä  oî thå  screeî  aó á progresó signaì foò everù datá packeô  receiveä anä writteî tï thå file® Thå receiveä datá ió unchangeä aó iô ió writteî tï thå file® Š 4.10 Terminating the Call Terminatinç thå packeô leveì calì maù bå donå aô anù timå bù selectinç  maiî menõ optioî £ 7®  Iæ thå linë ió connecteä  thió wilì  resulô iî thå transmissioî oæ á CLEAÒ REQUESÔ packet®  Thå DCÅ  wilì  normallù replù witè á DCÅ CLEAÒ  CONFIRMATIOΠ oò  DCÅ CLEAÒ  INDICATIOΠ packet¬  aô whicè poinô thå packeô leveì  wilì closå  anù transmiô oò receivå fileó thaô maù bå opeî  anä  enteò thå readù (p1© statå to awaiô anotheò call. Thå  calì maù alsï bå terminateä bù thå DCÅ bù  transmissioî oæ  á CLEAÒ INDICATIOÎ packet®  Wheî thió packeô ió receiveä  aô thå  DTE¬  thió wilì bå indicateä aô thå consolå bù  thå  messagå "L3º  rø  cleaò indicatioî packet¬  causå ½ xx"¬  wherå xø ió thå causå foò thå calì termination®  Thå DTÅ wilì replù witè á CLEAÒ CONFIRMATIOÎ packet¬ closå anù transmiô oò receivå fileó thaô maù bå opeî anä enteò thå readù (p1© statå tï awaiô anotheò call® 4.11 Disconnecting the Link Thå  linë  connectioî  maù bå disconnecteä aô  anù  timå  bù selectinç optioî £ ¹ froí thå maiî menu®  Thió optioî wilì causå thå  transmissioî oæ á DISà frame®  Aî activå networë wilì replù witè  á  UÁ  frame¬  aô  whicè poinô  thå  framå  leveì  linë  ió disconnected® Thió wilì bå indicateä aô thå systeí consolå bù tè message "L2: rx UA - link disconnected'. Iæ nï replù ió receiveä withiî 1° secondó thå DISà framå  ió retransmitted®  Thió  procesó  ió repeateä 1°  times¬  aô  whicè point¬  iæ  nï replù haó beeî received¬  thå networë ió  declareä non-operationaì  anä thå messagå 'L2º  tø retrù counô exhausteä - nï replù froí DCE¢ ió displayeä aô thå console. Thå linë maù alsï bå disconnecteä bù thå DCÅ bù transmissioî oæ  á DISà frame®  Wheî á DISà framå ió received¬  thió wilì  bå indicateä bù thå messagå "L2º rø DISà - linë disconnecteä bù dce¢ aô thå systeí console®  Thå systeí wilì replù witè á UÁ frame¬ aô which point the link will be disconnected. 5. Diagnostic Facilities 5.1 Link Query Function Thå linë querù function¬ requesteä bù optioî £ ¸ oæ thå maiî systeí  menu¬  provideó  thå currenô linë statuó aó perceiveä  bù both ends of the link. Wheî  thió optioî ió selected¬  thå systeí  interrogateó  iô Šinternaì  linë  statå flags®  Iæ thå linë ió  disconnected¬  thå messagå "L2º dtå linë ió disconnected¢ ió displayed® Iæ thå linë ió connected¬  thå systeí checkó tï seå iæ thå DTÅ ió iî á  framå reject¬  receivå  busy¬  oò  receivå readù conditioî anä iæ  so¬ displayó thå appropriatå status® Thå  systeí theî transmitó thå appropriatå RR¬  RNÒ  oò  REÊ frame¬  witè thå polì biô seô tï 1¬  tï thå DCE® Thå systeí theî awaitó  á  replù framå froí thå DCÅ witè thå correspondinç  finaì biô  seô tï 1®  Wheî sucè á framå ió received¬  thå systeí  theî displayó thå correspondinç DCÅ status® Iî normaì conditions¬ thå messagå displayeä wilì bå "L2º  dcå ready"¬  denotinç thaô aî  RÒ frame with the final bit set to 1 has been received from the DCE. Iæ  nï replù framå (witè thå finaì biô seô tï 1© ió receiveä withiî  1° seconds¬  thå RR¬  RNÒ oò REÊ framå  ió  retransmitteä (witè  thå polì biô seô tï 1)®  Thió procesó ió repeateä á totaì oæ 1° times®  Iæ nï replù ió receiveä afteò thå tentè time¬  thå link is automatically disconnected. 5.2 Diagnostic Display Screens Fouò  diagnostiã  displaù  screenó  arå  availablå  tï   thå operatoò  iî responså tï maiî menõ optionó £ 10¬  11¬  1² anä 13® Á brieæ descriptioî oæ thå informatioî availablå oî theså screenó ió aó followsº System Parameters (option # 10) Thió  screeî  displayó  thå currenô  statuó  oæ  alì  systeí parameteró and flow control variables. System Status Flags (option # 11) Thió screeî displayó thå currenô statå oæ alì systeí controì flags®  Thå  definitioî oæ theså flagó maù bå founä iî  Appendiø II®  Iî  normaì  packeô terminaì modå oæ  operation¬  afteò  thå packeô  calì haó beeî established¬  thå statå oæ alì flagó shoulä bå ° excepô foò leveì ² linë statuó biô £ ² (linë connected©  anä level 3 channel status bit # 0 (flow control ready state d1). L1 and L2 System Statistics (option # 12) Thió  screeî  displayó thå accumulateä totaló oæ thå  systeí diagnostiã  counteró  tï bå displayeä foò thå leveì  ±  (hardwarå level) and level 2 (link level) functions. L3 System Statistics (option # 13) Š Thió  screeî displayó thå accumulateä totaló oæ  thå  systeí diagnostiã  counteró  tï  bå displayeä foò thå  leveì  ³  (packeô level) functions. 5.3 Special Debug Functions Asidå froí thå linë querù functioî describeä iî Sectioî 5.1¬ three speciaì debuç functionó arå availablå tï thå systeí operatoò iî  responså  tï  maiî  menõ optionó £  14¬  1µ  anä  16®  Theså functions¬  intendeä mainlù tï checë ouô specifiã systeí softwarå desigî areas¬ are: Set Flow Control Ready Flags (option # 14) Thió  diagnostiã  functioî wilì causå thå  locaì  systeí  tï behavå aó iæ thå leveì ² linë haä beeî successfullù connecteä anä thå leveì ³ linë ió iî flo÷ controì readù state®  Thió  functioî ió  intendeä  foò  uså mainlù durinç softwarå  checkouô  wheî  aî activå networë ió noô availablå anä serveó nï usefuì purposå wheî thå systeí ió connecteä tï aî activå network® Transmit Bad Frame (option # 15) Thió  diagnostiã  functioî  wilì causå á transmissioî  oæ  á framå witè aî invaliä controì fielä (0ffh)®  Thió wilì forcå thå DCÅ  tï  replù  witè á  CMDÒ  (commanä  reject©  response®  Thió functioî  ió  intendeä  foò uså durinç softwarå checkouô  oæ  thå systeí  exceptioî  conditionó  anä serveó nï  purposå  iî  normaì operation. Change Frame Sequence (option # 16) Thió diagnostiã functioî wilì decremenô (modå 7© thå currenô valuå  oæ thå framå leveì senä statå variablå  V(s)®  Thió  wilì causå  thå DTE tï detecô á receiveä sequencå erroò anä replù witè á REÊ (reject© responså framå bacë tï thå DTE®  This¬  iî  turn¬ shoulä  causå á retransmissioî oæ thå "missed¢ framå bù thå  DTE® Thió functioî ió intendeä foò softwarå checkouô oæ thió exceptioî condition and serves no useful purpose during normal operation. 5.4 Session Logging Thió  usefuì diagnostiã functioî ió enableä anä disableä  bù maiî menõ optionó £ 1· anä 1¸ respectively® Wheî thió functioî ió enabled¬  alì transmitteä anä receiveä Šframeó  arå  loggeä  iî  á  speciaì  disë  filå  (X25.LOG)®  Thå informatioî loggeä consistó oæ a© thå directioî oæ  transmission¬ b©  thå framå addresó fielä anä c© thå framå controì  field®  Aî auxiliarù  diagnostiã  prograí (PLOG.COM© haó beeî  developeä  tï prinô  ouô  thió informatioî iî tabulaò forí anä tï identifù  thå addresó anä framå typå iî X.2µ notation¬  aó welì aó extracô  thå sequencå   numberó  N(s©  anä  N(r)¬   anä  thå  poll/finaì   biô informatioî froí thå controì fielä oæ thå frame. Notå thaô enablinç thå logginç functioî bù meanó oæ optioî £ 1· eraseó anù previouslù existinç X25.LOÇ file® Iæ iô ió desireä tï loç morå thaî onå session¬  erasurå oæ thå earlieò sessioî loç maù  bå  preventeä  bù renaminç thå existinç X25.LOÇ  filå  tï  á differenô namå (foò examplå X25.L1). Sessioî logginç maù bå starteä aô anù time¬  eveî beforå thå link connection has been established. 5.5 Assembly Time Debug Options Speciaì  assemblù  timå debuç optionó havå beeî provideä  iî thå  moduleó X25.ASM¬  LEVEL2.ASÍ anä  LEVEL3.ASM®  Theså  debuç optionó arå enableä bù settinç thå modulå locaì variablå  "debug¢ equaì  tï "true¢ prioò tï assemblù time®  Wheî thå debuç optionó are set to "true", the following functions are enabled: X25.ASM debug option Settinç thå "debug¢ parameteò equaì tï "true¢ iî thå X25.ASÍ modulå causeó alì receiveä consolå datá packetó tï bå taggeä witè thå  symboì