1 $Id: INTERFACE.fax,v 1.2 2000/08/06 09:22:50 armin Exp $
4 Description of the fax-subinterface between linklevel and hardwarelevel of
7 The communication between linklevel (LL) and hardwarelevel (HL) for fax
8 is based on the struct T30_s (defined in isdnif.h).
9 This struct is allocated in the LL.
10 In order to use fax, the LL provides the pointer to this struct with the
11 command ISDN_CMD_SETL3 (parm.fax). This pointer expires in case of hangup
12 and when a new channel to a new connection is assigned.
16 In send-mode the HL-driver has to handle the <DLE> codes and the bit-order
18 In receive-mode the LL-driver takes care of the bit-order conversion
21 Structure T30_s description:
23 This structure stores the values (set by AT-commands), the remote-
24 capability-values and the command-codes between LL and HL.
26 If the HL-driver receives ISDN_CMD_FAXCMD, all needed information
27 is in this struct set by the LL.
28 To signal information to the LL, the HL-driver has to set the
29 the parameters and use ISDN_STAT_FAXIND.
30 (Please refer to INTERFACE)
34 All members are 8-bit unsigned (__u8)
45 Local faxmachine's parameters, set by +FDIS, +FDCS, +FLID, ...
56 Remote faxmachine's parameters. To be set by HL-driver.
59 Defines the actual state of fax connection. Set by HL or LL
60 depending on progress and type of connection.
61 If the phase changes because of an AT command, the LL driver
62 changes this value. Otherwise the HL-driver takes care of it, but
63 only necessary on call establishment (from IDLE to PHASE_A).
64 (one of the constants ISDN_FAX_PHASE_[IDLE,A,B,C,D,E])
67 Defines outgoing/send or incoming/receive connection.
68 (ISDN_TTY_FAX_CONN_[IN,OUT])
71 Commands from LL to HL; possible constants :
72 ISDN_TTY_FAX_DR signals +FDR command to HL
74 ISDN_TTY_FAX_DT signals +FDT command to HL
76 ISDN_TTY_FAX_ET signals +FET command to HL
79 Other than that the "code" is set with the hangup-code value at
80 the end of connection for the +FHNG message.
83 Commands from HL to LL; possible constants :
84 ISDN_TTY_FAX_CFR output of +FCFR message.
86 ISDN_TTY_FAX_RID output of remote ID set in r_id[]
87 (+FCSI/+FTSI on send/receive)
89 ISDN_TTY_FAX_DCS output of +FDCS and CONNECT message,
92 ISDN_TTY_FAX_ET signals end of data,
95 ISDN_TTY_FAX_FCON signals the established, outgoing connection,
98 ISDN_TTY_FAX_FCON_I signals the established, incoming connection,
101 ISDN_TTY_FAX_DIS output of +FDIS message and values.
103 ISDN_TTY_FAX_SENT signals that all data has been sent
104 and <DLE><ETX> is acknowledged,
105 OK message will be sent.
107 ISDN_TTY_FAX_PTS signals a msg-confirmation (page sent successful),
108 depending on fet value:
109 0: output OK message (more pages follow)
110 1: switching to phase B (next document)
112 ISDN_TTY_FAX_TRAIN_OK output of +FDCS and OK message (for receive mode).
114 ISDN_TTY_FAX_EOP signals end of data in receive mode,
115 switching to phase D.
117 ISDN_TTY_FAX_HNG output of the +FHNG and value set by code and
118 OK message, switching to phase E.
131 Value of +FET command in send-mode.
132 Set by HL in receive-mode for +FET message.
135 ID-string, set by +FCIG
157 (+FNBC is not a known class 2 fax command, I added this to change the
158 automatic "best capabilities" connection in the eicon HL-driver)