home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / rfc / 700s / rfc769.txt < prev    next >
Text File  |  1992-10-14  |  4KB  |  116 lines

  1.  
  2.  
  3. Network Working Group                                          J. Postel
  4. Request for Comments: 769                                            ISI
  5.                                                        26 September 1980
  6.  
  7.  
  8.  
  9.                    Rapicom 450 Facsimile File Format
  10.                    ---------------------------------
  11.  
  12. Introduction:
  13.  
  14. Several  organizations  in the ARPA Internet  community have RAPICOM 450
  15. facsimile   machines   interfaced   to  computers.   This  allows  these
  16. organizations  to enter a facsimile  representation  of a  page  into  a
  17. computer  file, and to produce a page from stored facsimile data.  These
  18. organizations  can exchange  stored facsimile data via file transfer and
  19. other protocols.   The purpose  of this note is to document  the  format
  20. used for  these  files  so  that  other  organizations  with  compatible
  21. facsimile devices can join in this information exchange procedure.
  22.  
  23. The Rapicom 450:
  24.  
  25. The Rapicom  450 has a built in encoding/decoding  scheme.   It produces
  26. data blocks  of 585 bits.   There are "set up" blocks and "data" blocks.
  27. The machine sends/receives several copies of the set up block, but since
  28. they are identical only one set up block is stored in the file.
  29.  
  30. Records:
  31.  
  32. Each 585 bit block  is placed  in a record  of 8-bit  bytes.  The record
  33. format is a length byte, a command byte and the data bytes.  Each record
  34. is an integral  number  of bytes.   The length value includes the length
  35. byte and the command  byte.   The command describes the data in the data
  36. field.
  37.  
  38.                                     
  39.    0        1        2        3                              length 
  40.    +--------+--------+--------+--------+---//---+--------+--------+ 
  41.    | length | command|   data                                     | 
  42.    +--------+--------+--------+--------+---//---+--------+--------+ 
  43.  
  44.                       Rapicom 450 Facsimile Record
  45.  
  46. Commands:
  47.  
  48. 56 - SET-UP
  49.  
  50.   The command code 56 (70 octal) indicates the following data field is a
  51.   set up block.
  52.  
  53.  
  54.  
  55.  
  56.  
  57. Postel                                                          [page 1]
  58.  
  59.  
  60.                                                        26 September 1980
  61. Rapicom 450 Facsimile File Format                                RFC 769
  62.  
  63.  
  64.  
  65. 57 - DATA
  66.  
  67.   The command code 57 (71 octal) indicates the following data field is a
  68.   data block.
  69.  
  70. 58 - END
  71.  
  72.   The command  code 58 (72 octal) indicates that this is the last record
  73.   in the file.   In this case the length may be 2, indicating that there
  74.   is no data in this record.
  75.  
  76. Conventions:
  77.  
  78. In the files exchanged  to date,  each record  contains one block.  This
  79. means the data field is 74 bytes long  (585/8=73.125),  and  the  length
  80. field  has the value  76 (114 octal),  except  the last record which may
  81. carry no data and have a length of 2.
  82.  
  83. The first  record  of a file is always  a SET UP record,  the  following
  84. records are DATA records, until the last record which is an END record.
  85.  
  86. Details:
  87.  
  88. The 585 bit data  block  is encoded by the Rapicom 450 and so can not be
  89. used a bit map unless the encoding/decoding procedure is known and used.
  90.  
  91. The first 24 bits of the block is always a synchronization mark with the
  92. value 271 141 344 in octal or 101110010110000111100100 in binary.
  93.  
  94. The low order  two bits of the  next  byte  contain  a  sequence  number
  95. (modulo 4).  The sequence number bits cycle in the order 11, 01, 10, 00,
  96. starting with the first DATA record (not the SET UP record).
  97.  
  98. The line below represents  a DATA record,  where L represents  a  length
  99. bit,  C represents a command bit, M represents the synchronization mark,
  100. S represents  a  sequence  bit,  F  represents  a  fill  bit,  the  dash
  101. represents 68 other data octets, and an D represents a data bit.
  102.  
  103. LLLLLLLLCCCCCCCCMMMMMMMMMMMMMMMMMMMMMMMMDDDDDDSSDDDDDDDD-DFFFFFFF
  104.  
  105. In the line below  the normal values have been filled in for the length,
  106. the command, the synchronization mark and fill bits.
  107.  
  108. 0100110000111001101110010110000111100100DDDDDDSSDDDDDDDD-D0000000
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115. [page 2]                                                          Postel
  116.