From: zben@ni.umd.edu (Charles B. Cranston)
Subject: Fax TR29 command set
Followup-To: comp.dcom.fax
Organization: UM Home for the Terminally Analytical
Date: Fri, 14 Aug 1992 20:33:31 GMT

I dunno, guys.  This list is verbatim from the zoom vfx manual,
but the fax chapter consists entirely of these data tables plus
a list of fax software packages that work, on mac and pc machines.
In particular, there is no documentation to explain what this
data actually means.

In the meantime I bought one of the ZyXEL 14.4 fax modems with
mac specific fax software.  The software, FAXstf, has settings
for the vfx and works well with it, as well as different settings
for the ZyXEL it was supplied with.

But in the ZyXEL modem manual there is a set of FAX commands
that is COMPLETELY different from these commands!  Maybe I will
get motivated to type those in too sometime...



Class 1 AT Fax commands
=======================

+FAEn
  Data/Fax auto-answer: Allow DTE to either restrict answering
  to Class 1, or to automatically detect whether the caller is a
  Class 1 fax or a modem, and answer accordingly.
  
  n=0  Disable data/fax auto-answer, faxmodem answers as fax (default)
  n=1  Enable data/fax auto-answer mode.

+FCLASS=n
  Select service class
  
  n=0  Data mode (default)
  n=1  Fax class 1
  n=2  Fax class 2

+FRH=n
  Receive data with HDLC framing and modulation defined below.
  Off-hook only.
  
  n=3   V.21 Channel 2 300 bps
  n=24  V.27ter  2400 bps
  n=48  V.27ter  4800 bps
  n=72  V.29     7200 bps
  n=73  V.17     7200 bps long
  n=74  V.17     7200 bps short
  n=96  V.29     9600 bps
  n=97  V.17     9600 bps long
  n=98  V.17     9600 bps short
  n=121 V.17     12000 bps long
  n=122 V.17     12000 bps short
  n=145 V.17     14400 bps long
  n=146 V.17     14400 bps short

+FRM=n
  Receive data using the modulation defined below.  Off-hook only.
    
  n=3   V.21 Channel 2 300 bps
  n=24  V.27ter  2400 bps
  n=48  V.27ter  4800 bps
  n=72  V.29     7200 bps
  n=73  V.17     7200 bps long
  n=74  V.17     7200 bps short
  n=96  V.29     9600 bps
  n=97  V.17     9600 bps long
  n=98  V.17     9600 bps short
  n=121 V.17     12000 bps long
  n=122 V.17     12000 bps short
  n=145 V.17     14400 bps long
  n=146 V.17     14400 bps short

+FRS=n
  Receive silence: Off-hook use only.  Causes faxmodem to respond
  with OK after n 10ms intervals of silence have been detected on
  the line.

+FTH=n
  Transmit data with HDLC framing and the modulation defined below.
  Off-hook only.
    
  n=3   V.21 Channel 2 300 bps
  n=24  V.27ter  2400 bps
  n=48  V.27ter  4800 bps
  n=72  V.29     7200 bps
  n=73  V.17     7200 bps long
  n=74  V.17     7200 bps short
  n=96  V.29     9600 bps
  n=97  V.17     9600 bps long
  n=98  V.17     9600 bps short
  n=121 V.17     12000 bps long
  n=122 V.17     12000 bps short
  n=145 V.17     14400 bps long
  n=146 V.17     14400 bps short

+FTM=n
  Transmit data using the modulation defined below.  Off-hook only.
  
  n=3   V.21 Channel 2 300 bps
  n=24  V.27ter  2400 bps
  n=48  V.27ter  4800 bps
  n=72  V.29     7200 bps
  n=73  V.17     7200 bps long
  n=74  V.17     7200 bps short
  n=96  V.29     9600 bps
  n=97  V.17     9600 bps long
  n=98  V.17     9600 bps short
  n=121 V.17     12000 bps long
  n=122 V.17     12000 bps short
  n=145 V.17     14400 bps long
  n=146 V.17     14400 bps short

+FTS=n
  Stop transmission and wait: Off-hook use only.  After n 10ms intervals,
  modem responds with OK.

+F<command>?
  Report active configuration.  Typical responses are:

  +FAE?      0=auto-answer disabled
             1=auto-answer enabled
  +FCLASS?   0=data mode
             1=fax class 1
             2=fax class 2

+F<command>=?
  Report operating capabilities for given command.  Typical responses are:
  +FAE=?     0, 1
  +FCLASS=?  0, 1, 2


Class 2 AT Fax commands
=======================

A
  Answer a call

D
  Originate a call

+FCLASS=n
  Select service class
  n=0  Data mode (default)
  n=1  Fax class 1
  n=2  Fax class 2

+FDR=
  Begin or continue Phase C receive data.

+FDT
  Transmit Phase C data.

+FET=n
  Transmit page punctuation.

+FK
  Terminate session.


Class 2 Fax responses
=====================

+FCFR
  Indicate confirmation to receive

+FCON
  Facsimile connection response

+FCSI
  Report the called station ID

+FDCS
  Report current session.

+FDIS
  Report remote identification.

+FET
  Post page message response

+FHNG
  Call termination with status

+FPTS
  Page transfer status

+FTSI
  Reports the transmit station ID


Class 2 fax session parameters
==============================

+FMFR?
  Identify manufacturer.

+FMDL?
  Identify model.

+FREV?
  Identify revision.

+FDCC=
  DCE capabilities parameters

+FDIS=
  Current session parameters

+FDCS=
  Current session results

+FLID=
  Local ID string

+FCR
  Capability to receive

+FPTS=
  Page transfer status

+FCR=
  Capability to receive

+FAA
  Adaptive answer

+FBUF?
  Buffer size (read only)

+FPHCTO
  Phase C time out

+FAXERR
  Fax error value

+FBOR
  Phase C data bit order


Class 2 Fax T.30 Session Subparameter Codes
===========================================

Label Function                       Value    Description

VR    Vertical Resolution              0      Normal, 98 dpi
                                       1      Fine, 198 dpi

BR    Bit Rate *                       0      2400 bps, V.27ter
                                       1      4800 bps, V.27ter
                                       2      7200 bps, V.29 or V.17
                                       3      9600 bps, V.29 or V.17
                                       4 **   12000 bps, V.33 or V.17
                                       5 **   14400 bps, V.33 or V.17

WD    Page Width                       0      1728 pixels in 215 mm
                                       1      2048 pixels in 255 mm
                                       2      2432 pixels in 303 mm

LN    Page Length                      0      A4, 297 mm

DF    Data Compression Format          0      1-D modified Huffman
                                       1      2-D modified Read

EC    Error correction (Annex A/T.30)  0      Disable ECM

BF    Binary file transfer             0      Disable BFT

ST    Scan time/line                          VR=normal    VR=fine
                                       0         0 ms        0 ms
                                       1         5 ms        5 ms
                                       2        10 ms        5 ms
                                       3        10 ms       10 ms
                                       4        20 ms       10 ms
                                       5        20 ms       20 ms
                                       6        40 ms       20 ms
                                       7        40 ms       40 ms

*  CCITT T.30 does not provide for the answering station to specify all
   speeds exactly using the DIS frame.  Implementation of some BR codes
   (e.g., code 2) by an answering DCE is manufacturer-specific.

** V.32bis modem only

Class 2 Fax Hangup Status Codes
===============================

Code               Cause Description

0-9      Call Placement and Termination
0        Normal and proper end of connection
1        Ring detect without successful handshake
2        Call aborted, from +FK or AN
3        No loop current

10-19    Transmit Phase A and Misc Errors
10       Unspecified Phase A Error
11       No answer (T.30 T1 timeout)

20-39    Transmit Phase B Hangup Codes
20       Unspecified Phase B Error
21       Remote cannot receive or send
22       COMREC error in transmit Phase B
23       COMREC invalid command received
24       RSPEC error
25       DCS send three times without response
26       DIS/DTC received three times; DCS not recognized
27       Failure to train
28       RSPREC invalid response received

40-49    Transmit Phase C Hangup Codes
40       Unspecified Phase C Error
43       DTE to DCE data underflow

50-69    Transmit Phase D Hangup Codes
50       Unspecified transmit Phase D error
51       RSPREC error
52       No response to MPS repeated three times
53       Invalid response to MPS
54       No response to EOP repeated three times
55       Invalid response to EOP
56       No response to EOM repeated three times
57       Invalid response to EOM
58       Unable to continue after PIN or PIP

70-89    Receive Phase B Hangup Codes
70       Unspecified receive Phase B error
71       RSPREC error
72       COMREC error
73       T.30 T2 timeout, expected page not received
74       T.30 T1 timeout after EOM received

90-99    Receive Phase C Hangup Codes
90       Unspecified receive Phase C error
91       Missing EOL after file seconds
92       Unused code
93       DCE to DTE buffer overflow
94       Bad CRC or frame (ECM or BFT modes)

110-119  Receive Phase D Hangup Codes
100      Unspecified receive Phase D error
101      RSPREC invalid response received
102      COMREC invalid response received
103      Unable to continue after PIN or PIP

120-255  Reserved Codes



I fixed all the typos I was reasonably sure about, but there are
quite likely to be errors in the above.

Good luck!

zben@ni.umd.edu     -KA3ZDF
Xref: sparky comp.dcom.fax:1555 comp.dcom.modems:12374