\draft,lm0,rm80,pl66,tm3,bm3,ssb{,ssa}
\head 2
Propriatary to Magnolia Microsystems - Preliminary - Page \%page\

\np
; January 6, 1983  09:45  drm  "77422.   "

77422 - Host (Z89) Communications Protocal.

NOTE: this does not apply to Printer-Servers and NOS applications, which do not connect to Hosts or to Z89-Servers which execute NETWRKIF on the 77422.

The Host has the responsibility of syncronizing transfers with the 77422.  The first packet transfered is a 7 byte header (Command Packet) which may be followed by a variable length packet (Data Packet, length specified in header).

Command Packet format:
	byte 1		Function code (may imply data packet)
	bytes 2,3	Param-1 (lo byte first)
	bytes 4,5	Param-2 ('')
	bytes 6,7	Param-3 ('')


Command Packet definitions:

		Sent: (by Z89)			(None returned)
  Func: 	A1 Enter monitor mode
  Param-1:	xx
  Param-2:	xx
  Param-3:	xx

  Data: 	(none sent)


		Sent: (by Z89)			Returned:
  Func: 	B1 Boot through network 	B0
  Param-1:	xx				Code length
  Param-2:	Unit # : Server #		Error code
  Param-3:	xx				Code Address

  Data: 	(none sent)			Code


		Sent: (by Z89)			Returned:
  Func: 	C1 CP/NET message (to NET)	D6 status of send
  Param-1:	Message length			error code
  Param-2:	xx				xx
  Param-3:	xx				xx

  Data: 	Message 			(none returned)

error code:	LO = 00 - message ACK'ed
		     01 - timeout on response
		     02 - message NAK'ed
		     03 - response CRC error
		     04 - response was not addressed to us.
		     05 - response was neither ACK nor NAK


		Sent: (by Z89)			(No frame returned)
  Func: 	C7 CP/NET mail to network (unsolicited)
  Param-1:	Message length
  Param-2:	xx
  Param-3:	xx

  Data: 	Message


		Sent: (by Z89)			Returned:
  Func: 	D1 Request Network status	D0
  Param-1:	xx				status
  Param-2:	xx				xx
  Param-3:	xx				xx

status: LO = node address
	HI = bit 7
	     bit 6
	     bit 5
	     bit 4 1=on-line
	     bit 3
	     bit 2
	     bit 1
	     bit 0


		Sent: (by Z89)			Returned:
  Func: 	D3 Request Network table	D2
  Param-1:	xx				65  (table is always
  Param-2:	xx				xx    65 bytes)
  Param-3:	xx				xx

		(none sent)			NET.TABLE

Format of NET.TABLE:

byte   0	Next node to Poll
       1-64	Fn = node on-line, n=fault count (contiguous faults).
		0n = node currently off-line, n=Poll pass number.


		Sent: (by Z89)			(No frame returned)
  Func: 	E1 Execute Program
  Param-1:	Program length
  Param-2:	xx
  Param-3:	Program address

  Data: 	Program




		Sent: (by 77422)		(No frame returned)
  Func: 	C0 CP/NET response message (from NET)
  Param-1:	Message length
  Param-2:	xx
  Param-3:	xx

  Data: 	Message


		Sent: (by 77422)		(No frame returned)
  Func: 	C6 CP/NET mail from network (unsolicited)
  Param-1:	Message length
  Param-2:	xx
  Param-3:	xx

  Data: 	Message


		Sent: (by 77422)		(No frame returned)
  Func: 	E0 Execute program (to Z89)
  Param-1:	Program length
  Param-2:	xx
  Param-3:	Program address

  Data: 	Program





Network Communications Protocal.

Frames are transmitted on the media using SDLC format structured as follows:

  -----------------------------------------------------------------
... flag | Dest | Ctrl | Source |  ...data...  | crc | crc | flag ...
  -----------------------------------------------------------------

Where each item is 8 bits in length.

flag	standard SDLC flag (01111110)
Dest	Destination address (or "FF" for global)
Source	Source address (senders address)
Ctrl	network function number
data	multiple (0-n) 8 bits characters
crc	CRC characters

Time between frames is characterized by an idle line, logic "1" data (both data and clock are tri-state, data is "pulled-up").


The "Ctrl" item dictates the action taken with the data by the '422 board.

 Ctrl	 Data			      Comments
-------------------------------------------------------------------------
  00	Standard CP/NET frame, data = FMT/DID/SID/FNC/SIZ/MSG
  01	Standard CP/NET repsonse, ('')
  02	CP/NET mail, (''), FNC=42 (hex) set to 43 at receiving node.

  0C	-none-		Poll.
  0D	 Table		TOKEN. Establishes Buss Master.
  10	-none-		Acknowledge message  (ACK).
  11	-none-		Negative Acknowledge (NAK).
  1F	-none-		Restart - Claiming TOKEN. Always global (no ACK).



\np
