[net.micro] Need info on MODEM EOF

kbb@faron.UUCP (Kenneth B. Bass) (04/10/85)

I need information on how MODEM (specifically on a PC) handles
a file that is not an even multiple of the record size (128 bytes).
I have written send and receive routines that implement MODEM's
protocol.  The transfer goes without any problem.  When I look at
the received file though (assuming it was a text file) there is a lot
of garbage at the end.  How is the sending routine supposed to tell
the receiving routine that there isn't a full record of data being
sent (ie, where to put an EOF).

Also, does anyone know the protocol used by MODEM for sending/receiving
in batch mode?


	Thanks in advance,


					ken bass
					linus!faron!kbb

rb@houxn.UUCP (R.BOTWIN) (04/12/85)

[]
EOF is indicated by position x of the packet containing ASCII character x.
Example:   3 data bytes, so positions 0,1 & 2 have data, and position
3 contains an ASCII 3, and this character is repeated for the remainder
of the packet. This condition sets the receiver to expect this to be the last
packet.  If the sender then terminates, the receiver knows this WAS the last
packet, if not it just happened to occur that way!