home *** CD-ROM | disk | FTP | other *** search
-
- Appendix D
- ZFAX 3.12 API Function List
-
- Programers can use two kind of API to call the ZFAX inside his program, the
- first one is use DOS shell to call the command line ZFAX, the other one is use
- the int 2fh to call ZFAX by software interrupt.
-
- D.1 Command Line ZFAX
- You can call the ZFAX function from DOS command line, the usage is as follow :
-
- Syntax: zfax [cmdtype] [parameters] [options]
- cmdtype:
- TSR ZFAX : zfax ts
- Send fax : zfax sf filename faxnum
- Print fax : zfax pf filename
- Convert faxfile : zfax cf filename dest-filename fcnvtype*
- Viewfax : zfax vf filename
- Rcvfax for BBS : zfax rf
- Pollfax : zfax lf faxnum
- Send voice, : zfax sv filename phonenum
- Convert vocfile : zfax cv filename dest-filename vcnvtype*
- Record voice : zfax rv filename channel* vcmptype*
- Play voice : zfax pv filename channel*
- Manual answer : zfax ma
- Dial phnumber : zfax dp phonenum
- In Terminal : zfax tm
- Send data : zfax sd filename phonenum
- Receive data : zfax rd
-
- * fcnvtype : 0=FAX, 1=PCX, 2=TIFF, 3=PRN
- * vcnvtype : 0=2bit-ADPCM, 1=3bit-ADPCM, 2=VOC
- * vcmptype : 0=CELP, 1=2bit-ADPCM, 2=3bit-ADPCM
- * channel : 0=Teleco Line, 1=MIC/SPEAKER
-
- options:
- /? = Display help screen
- /u = Remove the TSR
- /z:# = Page size (0-2), 0=A4, 1=B4, 2=A3
- /s:# = Page resolution (0-1), 0=Normal, 1=High
- /r:# = Retry counter (0-99)
- /p:# = Printer port (0-2), 0=LPT1, 1=LPT2, 2=LPT3
- /g:# = Graphic device (0-4), 0=AutoDetect, 1=VGA, 2=EGA, 3=CGA, 4=Hercules
- /c:# = COM port number (0-6)
- 0=IRQ4-3F8, 1=IRQ3-3E8, 2=IRQ4-3E8, 3=IRQ3-2E8
- 4=IRQ5-3E8, 5=IRQ2-2E8, 6=User-Defined
- /t:# = Printer type (0-7)
- 0=EPSON FX (8 pins), 1=EPSON LQ (24 pins),
- 2=LaserJet II letter, 3=LaserJet II legal, 4=LaserJet II A4
- 5=LaserJet III letter, 6=LaserJet III legal, 7=LaserJet III A4
- /n:addr,irq /w:TmpDir
-
-
- D.2 API of INT 2fh
- This section describes the API function of ZFAX driver by using the software
- interrupt int 2fh. If you want to use the ZFAX function from your program,
- load the zfax to TSR first and then use int 2fh to execute zfax.
-
- The signature of ZFAX is : 'Z'+081h = DBh.
- The procedure to use this API is as follow :
-
- mov ah,DBh ;the signature
- mov al,FUNC_TYPE ;the function number
- mov bx,Parameter0 ;the first parameter
- mov cx,Parameter1 ;the second parameter
- mov dx,Parameter2 ;the third parameter
- mov si,Parameter3 ;the forth parameter
- int 2fh ;
-
- ;----------------------------------------------------------------
- Function 0 Check if the ZFAX has been resident
-
- Entry : AX = DB00h
- Exit : if ZFAX is installed
- AX = 00DBh
- ES:BX = pointer to ZFAX Configure Table (Table D.1)
- otherwise
- unknown
-
- ;----------------------------------------------------------------
- Function 1 Uninstall the ZFAX
-
- Entry : AX = DB01h
- Exit : AX = 0, successful
- AX = 1, fail to uninstall, ZFAX is busy right now.
- AX = 2, fail to uninstall, other program above.
-
- ;----------------------------------------------------------------
- Function 10h Execute the ZFAX MainMenu
-
- Entry : AX = DB10h
-
- ;----------------------------------------------------------------
- Function 11h SendFax
-
- Entry : AX = DB11h
- DS:SI = pointer to the file name, (include path,
- maximum sting length is 128).
- DS:BX = pointer to the remote fax number.
- Exit : AX = ErrCode (see Table D.2)
-
- ;----------------------------------------------------------------
- Function 12h PrintFax
-
- Entry : AX = DB12h
- DS:SI = pointer to the file name, (include path,
- maximum sting length is 128).
- Exit : AX = ErrCode (see Table D.2)
-
-
- ;----------------------------------------------------------------
- Function 13h ConvertFax
-
- Entry : AX = DB13h
- DS:SI = pointer to the source file name, (include
- path, maximum sting length is 128).
- DS:BX = pointer to the dest file name, (include
- path, maximum sting length is 80).
- CX = dest file format.
- 0=FAX, 1=PCX, 2=TIFF, 3=PRN
- Exit : AX = ErrCode (see Table D.2)
-
- ;----------------------------------------------------------------
- Function 14h ViewFax
-
- Entry : AX = DB14h
- DS:SI = pointer to the file name, (include path,
- maximum sting length is 128).
- Exit : AX = ErrCode (see Table D.2)
-
- ;----------------------------------------------------------------
- Function 20h PollFax
-
- Entry : AX = DB20h
- DS:SI = pointer to the remote fax number.
- Exit : AX = ErrCode (see Table D.2)
-
- ;----------------------------------------------------------------
- Function 21h SendVoice
-
- Entry : AX = DB21h
- DS:SI = pointer to the source file name, (include
- path, maximum sting length is 128).
- DS:BX = pointer to the remote phone number.
- Exit : AX = ErrCode (see Table D.2)
-
- ;----------------------------------------------------------------
- Function 22h Convert Voice File
-
- Entry : AX = DB22h
- DS:SI = pointer to the source file name, (include
- path, maximum sting length is 128).
- DS:BX = pointer to the dest file name, (include
- path, maximum sting length is 80).
- CX = dest file format.
- 0=2bit-ADPCM, 1=3bit-ADPCM, 2=VOC
- Exit : AX = ErrCode (see Table D.2)
-
- ;----------------------------------------------------------------
- Function 23h Record Voice File
-
- Entry : AX = DB23h
- DS:SI = pointer to the dest file name, (include
- path, maximum sting length is 128).
- CX = record channel
- 0=Teleco Line, 1=MIC/SPEAKER
- DX = voice file format
- 0=CELP, 1=2bit-ADPCM, 2=3bit-ADPCM
- Exit : AX = ErrCode (see Table D.2)
-
-
- ;----------------------------------------------------------------
- Function 24h Play Voice File
-
- Entry : AX = DB24h
- DS:SI = pointer to the voice file name, (include
- path, maximum sting length is 128).
- CX = play channel
- 0=Teleco Line, 1=MIC/SPEAKER
- Exit : AX = ErrCode (see Table D.2)
-
- ;----------------------------------------------------------------
- Function 25h Voice System, Answer the modem by Voice system.
-
- Entry : AX = DB25h
- Exit : AX = ErrCode (see Table D.2)
-
- ;----------------------------------------------------------------
- Function 26h DialPhone
-
- Entry : AX = DB26h
- DS:SI = pointer to the remote phone number
- Exit : AX = ErrCode (see Table D.2)
-
- ;----------------------------------------------------------------
- Function 27h RcvFax, Answer by setting the modem to fax mode.
-
- Entry : AX = DB27h
- Exit : AX = ErrCode (see Table D.2)
-
- ;----------------------------------------------------------------
- Function 28h RcvFaxData, Answer by setting the modem to Multi-Auto mode
-
- Entry : AX = DB28h
- Exit : AX = ErrCode (see Table D.2)
-
- ;----------------------------------------------------------------
- Function 40h Internal Terminal
-
- Entry : AX = DB40h
- Exit : AX = ErrCode (see Table D.2)
-
- ;----------------------------------------------------------------
- Function 31h SendData, dial a number and use ZMODEM to upload a file
-
- Entry : AX = DB41h
- DS:SI = pointer to the source file name, (include
- path, maximum sting length is 128).
- DS:BX = pointer to the remote data number.
- Exit : AX = ErrCode (see Table D.2)
-
-
-
- Table D.1 ZFAX Configuartion Table
- ┌──────────────┬─────┬─────┬─────────────────────────────────────────────────┐
- │ Field ID │ Pos │ Len │ Field ID description │
- ├──────────────┼─────┼─────┼─────────────────────────────────────────────────┤
- │ Version │ 0 │ 2 │ Version Number, it is 300h now │
- │ Reserved │ 2 │ 1 │ │
- │ WorkFpth │ 3 │ 70 │ ZFAX working path │
- │ EditorShell │ 73 │ 128 │ External Editor Path │
- │ ExTermShell │ 201 │ 128 │ External Terminal Path │
- │ RingShell │ 329 │ 128 │ Ring Shell Path │
- │ DosShell │ 457 │ 128 │ Dos Shell Path │
- │ DataShell │ 585 │ 128 │ Data Shell Path │
- │ ChFpth │ 713 │ 70 │ Chinese Font Path │
- │ prn_type │ 783 │ 1 │ Printer Type (*see PrinterType) │
- │ prn_port │ 784 │ 1 │ Printer Port (*see PrnPort) │
- │ GraphType │ 785 │ 1 │ Graphics Adapter Type (*see GraphType) │
- │ DsplyType │ 786 │ 1 │ Disply Type (*see DsplyType) │
- │ HotScan │ 787 │ 1 │ ZFAX Hot-Key Scan Key │
- │ ShiftMsk │ 788 │ 1 │ ZFAX Hot-Key Mask Key │
- │ TonePulse │ 789 │ 1 │ Tone/Pulse, 0->Tone, 1->Pulse │
- │ CallerID │ 790 │ 1 │ Caller ID, 0->Disable, 1->Enable │
- │ DistincRing │ 791 │ 1 │ Distinctive Ring, 0->Disable, 1->Enable │
- │ Ring1Type │ 792 │ 1 │ Normal Ring Answer Type (*see RingType) │
- │ Ring2Type │ 793 │ 1 │ Ring 1 Answer Type (*see RingType) │
- │ Ring3Type │ 794 │ 1 │ Ring 2 Answer Type (*see RingType) │
- │ Ring4Type │ 795 │ 1 │ Ring 3 Answer Type (*see RingType) │
- │ com_port │ 796 │ 1 │ Modem Com Port (*see ComPort) │
- │ com_volume │ 797 │ 1 │ Modem Speaker Volume (0-7) │
- │ com_timer │ 798 │ 1 │ Modem Dial Timer (0-255, unit:sec) │
- │ UserIO │ 799 │ 2 │ User Defined ComPort I/O Address │
- │ UserIrq │ 801 │ 1 │ User Defined ComPort IRQ Number │
- │ InitStr │ 802 │ 81 │ Dial Prefix String │
- │ EndStr │ 883 │ 79 │ Dial PostFix String │
- │ RingCount │ 962 │ 1 │ AutoAnswer Ring Counter (0-255) │
- │ RetryCount │ 963 │ 1 │ Dial Busy Retry Counter (0-255) │
- │ RetryTimer │ 964 │ 1 │ Redial Timer (0-255, unit:sec) │
- │ SysPassword │ 965 │ 2 │ System Password │
- │ Reserved │ 967 │ 1 │ │
- │ VocCompCfg │ 968 │ 1 │ Voice File Compression Format (*see VocComp) │
- │ Voc_DTMF0 │ 969 │ 1 │ DTMF 0 Action in Voice System (*see DTMFType) │
- │ Voc_DTMF1 │ 970 │ 1 │ DTMF 1 Action in Voice System (*see DTMFType) │
- │ Voc_DTMF2 │ 971 │ 1 │ DTMF 2 Action in Voice System (*see DTMFType) │
- │ Voc_DTMF3 │ 972 │ 1 │ DTMF 3 Action in Voice System (*see DTMFType) │
- │ Voc_DTMF4 │ 973 │ 1 │ DTMF 4 Action in Voice System (*see DTMFType) │
- │ Voc_DTMF5 │ 974 │ 1 │ DTMF 5 Action in Voice System (*see DTMFType) │
- │ Voc_DTMF6 │ 975 │ 1 │ DTMF 6 Action in Voice System (*see DTMFType) │
- │ Voc_DTMF7 │ 976 │ 1 │ DTMF 7 Action in Voice System (*see DTMFType) │
- │ Voc_DTMF8 │ 977 │ 1 │ DTMF 8 Action in Voice System (*see DTMFType) │
- │ Voc_DTMF9 │ 978 │ 1 │ DTMF 9 Action in Voice System (*see DTMFType) │
- │ Reserved │ 979 │ 2 │ │
- │ FaxID │ 981 │ 25 │ Local Fax ID showed on the page header │
- │ FaxDIS │1006 │ 20 │ Local Fax ID sent to remote fax │
- │ dest_psize │1026 │ 1 │ Fax Page Size (*see PageSize) │
- │ dest_res │1027 │ 1 │ Fax Resolution (*see PageRes) │
- │ dest_scheme │1028 │ 1 │ Fax Coding Scheme (*see PageCode) │
- │ text_margin │1029 │ 1 │ Text Left Margin, (0-255, unit:mm) │
- │ text_insvcnt │1030 │ 1 │ Text vertical insertion, (0-20, unit:mm) │
- │ text_inshcnt │1031 │ 1 │ Text horizontal insertion, (0-20, unit:mm) │
- │ text_max_line│1032 │ 1 │ Text Maximum lines per page, (0-255, unit:line)│
- │ text_type │1033 │ 1 │ Text Type to read, 0->ASCII, 1->WordStar │
- │ ImgBit │1034 │ 1 │ PCX Image Resize, 0->disable, 1->enable │
- │ AutoPrint │1035 │ 1 │ AutoPrint, 0->disable, 1->enable │
- │ CoverPage │1036 │ 1 │ CoverPage, 0->disable, 1->enable │
- │ ZpagFname │1037 │ 81 │ Coverpage Logo file name │
- │ Zsender │1118 │ 65 │ Coverpage Sender Name │
- │ zcap_enable │1183 │ 1 │ Printer Capture, 0->disable, 1->enable │
- │ send_imm │1184 │ 1 │ Send Immediately, 0->disable, 1->enable │
- │ cap_prnport │1185 │ 1 │ Printer port of Printer Capture (*see PrnPort) │
- │ ZcapTimer │1186 │ 1 │ Printer Capture Timer (0-255, unit:sec) │
- │ HotScan2 │1187 │ 1 │ Printer Capture Hot-Key Scan Key │
- │ ShiftMsk2 │1188 │ 1 │ Printer Capture Hot-Key Mask Key │
- │ DataShellType│1189 │ 1 │ DataShell Type (*see DshellType) │
- │ VideoIOType │1190 │ 1 │ Video I/O Type (*see VdoType) │
- │ CtransDigits │1191 │ 1 │ Call Transfer Digits (0-9) │
- │ RecordTimer │1192 │ 2 │ Voice Recorder Maximum Timer (0-999, unit:sec) │
- ├──────────────┼─────┴─────┴─────────────────────────────────────────────────┤
- │ PrinterType │ 0 -> EPSON FX (9 pins) │
- │ │ 1 -> EPSON LQ (24 pins) │
- │ │ 2 -> HP Laser Jet II, Letter size │
- │ │ 3 -> HP Laser Jet II, Legal size │
- │ │ 4 -> HP Laser Jet II, A4 size │
- │ │ 5 -> HP Laser Jet III, Letter size │
- │ │ 6 -> HP Laser Jet III, Legal size │
- │ │ 7 -> HP Laser Jet III, A4 size │
- │ PrnPort │ 0 -> LPT1 │
- │ │ 1 -> LPT2 │
- │ │ 2 -> LPT3 │
- │ GraphType │ 0 -> AutoDetect │
- │ │ 1 -> VGA │
- │ │ 2 -> EGA │
- │ │ 3 -> CGA │
- │ │ 4 -> Hercules │
- │ DsplyType │ 0 -> AutoDetect │
- │ │ 1 -> LCD │
- │ │ 2 -> Color │
- │ │ 3 -> Mono │
- │ RingType │ 0 -> Voice System │
- │ │ 1 -> Fax only │
- │ │ 2 -> Data Shell │
- │ │ 3 -> Ring Shell │
- │ │ 4 -> DOS Shell │
- │ │ 5 -> Ignore │
- │ VocComp │ 0 -> CELP, 9600bps (Plus only) │
- │ │ 1 -> 2-Bit ADPCM, 19200bps │
- │ │ 2 -> 3-Bit ADPCM, 28800bps │
- │ DTMFType │ 0 -> No Function │
- │ │ 1 -> Page Operator │
- │ │ 2 -> FaxBack │
- │ │ 3 -> Announcement │
- │ │ 4 -> Call Transfer │
- │ │ 5 -> Receive Fax │
- │ │ 6 -> Receive Data │
- │ │ 7 -> Voice MailBox │
- │ │ 8 -> DOS Shell Out │
- │ │ 9 -> Data Shell Out │
- │ PageSize │ 0 -> A4 ( 210 X 297mm ) │
- │ │ 1 -> B4 ( 250 X 353mm ) │
- │ │ 2 -> A3 ( 297 X 420mm ) │
- │ PageRes │ 0 -> Normal Res.(3.85 pixels/mm) │
- │ │ 1 -> High Res.(7.7 pixels/mm) │
- │ PageCode │ 0 -> 1-D, Modified Huffman Coding │
- │ │ 1 -> 2-D, Modified READ Coding │
- │ DshellType │ 0 -> Internal Zmodem │
- │ │ 1 -> Data Shell │
- │ │ 2 -> Disable │
- │ VdoType │ 0 -> AutoDetect │
- │ │ 1 -> Use BIOS │
- │ │ 2 -> Direct Access │
- └──────────────┴─────────────────────────────────────────────────────────────┘
-
-
- Table D.2 ZFAX Error Code
- ┌───────────────┬─────┬───────────────────────────┐
- │ Error Code │ EQU │ Remark │
- ├───────────────┼─────┼───────────────────────────┤
- │ ERR_NONE │ 0 │ OK │
- │ ERR_DOSFUNC │ 1 │ Invalid dos function │
- │ ERR_NOFILE │ 2 │ file not found │
- │ ERR_NOPATH │ 3 │ path not found │
- │ ERR_NOHANDLE │ 4 │ no handle available │
- │ ERR_DOSACCESS │ 5 │ access denied by dos │
- │ ERR_HANDLE │ 6 │ invalid handle │
- │ ERR_DISKFULL │ 7 │ disk full │
- │ ERR_PRINTER │ 10h │ printer error │
- │ ERR_NOGRAFONT │ 11h │ no graph font │
- │ ERR_FAXFONT │ 12h │ no zfax font │
- │ ERR_DCDOFF │ 20h │ DCD drop while sending │
- │ ERR_NOTZYXEL │ 21h │ not zyxel modem │
- │ ERR_BUSY │ 22h │ busy │
- │ ERR_COMERR │ 23h │ no response from com port │
- │ ERR_CARRIER │ 24h │ no carrier │
- │ ERR_DIALTONE │ 25h │ no dial tone │
- │ ERR_NOANSWER │ 26h │ no answerer │
- │ ERR_NORESP │ 27h │ no response │
- │ ERR_SENDFAIL │ 28h │ fail to send fax │
- │ ERR_USRABT │ 30h │ user abort │
- │ ERR_CRITDISK │ 40h │ critical error on disk │
- │ ERR_ARGUMENT │ 50h │ argument error │
- └───────────────┴─────┴───────────────────────────┘
-
-
- Appendix E
- ZFAX 3.12 File Format List
-
- E.1 .FAX file format
- -------------------------
- For the .FAX format, the *.fax file contains a file header and
- a CCITT T.4 compressed fax data. The header is a 16-byte data, they are
- Bytes 0 - 4 : title -> "ZyXEL"
- Byte 5 : 0
- Byte 6 - 7 : version number
- Byte 8 - 9 : reserved
- Bytes 10-11 : Page scan width, A4=1728, B4=2048, A3=2432.
- Bytes 12-13 : page count, pages number in this file, the page is
- seperated by the RTC code.
- Bytes 14-15 : Resolution and coding scheme,
- 0 - 1-D Normal
- 1 - 1-D High
- 2 - 2-D Normal
- 3 - 2-D High
-
- The T.4 fax data is just the data received from U1496 Modem/Fax.
- You can get the compress/decompress scheme from the CCITT blue book, or
- you can obtain some information from the TIFF standard documents.
-
- Table E.1 FAX File Format
- ┌───────────────┬────────────┬────────┬────────┬──────┬──────────────────┐
- │ Record ID │ Field ID │ name │ length │ pos │ remark │
- ├───────────────┼────────────┼────────┼────────┼──────┼──────────────────┤
- │ header │ title │ TITLE │ 5 │ 0 │ "ZyXEL" │
- │ │ │ │ 1 │ 5 │ 0 │
- │ │ Version │ │ 2 │ 6 │ 0300H │
- │ │ reserved │ │ 2 │ 8 │ 0 │
- │ │ page width │ PGWIDTH│ 2 │ 10 │ │
- │ │ page count │ PAGECNT│ 2 │ 12 │ │
- │ │ coding │ CODING │ 2 │ 14 │ 0 : 1-DN │
- │ │ │ │ │ │ 1 : 1-DH │
- │ │ │ │ │ │ 2 : 2-DN │
- │ │ │ │ │ │ 3 : 2-DH │
- │ │ │ │───── │ │ │
- │ │ │ FH │ 16 │ │ │
- ├───────────────┼────────────┴────────┴────────┴──────┴──────────────────┤
- │ Fax data │ The data format of the following data is for │
- │ │ CCITT T.4 compression scheme. │
- └───────────────┴────────────────────────────────────────────────────────┘
-
-
- E.2 ZFAX Voice file format
- --------------------------------
-
- The ZFAX voice file contains a file header and compressed voice data,
- The header is a 16-byte data, they are
-
- Bytes 0 - 4 : title -> "ZyXEL"
- Byte 5 : 2
- Byte 6 - 7 : version number
- Byte 8 - 9 : reserved
- Bytes 10-11 : compressed voice format, 0->CELP, 1->2-Bit, 2->3-Bit
- Bytes 12-15 : reserved
-
- Table E.2 ZFAX Voice File Format
- ┌───────────────┬────────────┬────────┬────────┬──────┬──────────────────┐
- │ Record ID │ Field ID │ name │ length │ pos │ remark │
- ├───────────────┼────────────┼────────┼────────┼──────┼──────────────────┤
- │ header │ title │ TITLE │ 5 │ 0 │ "ZyXEL" │
- │ offset:0 │ │ │ 1 │ 5 │ 2 │
- │ │ Version │ │ 2 │ 6 │ 0300H │
- │ │ reserved │ │ 2 │ 8 │ │
- │ │ Compressed │ │ 2 │ 10 │ │
- │ │ reserved │ │ 4 │ 12 │ │
- │ │ │ │───── │ │ │
- │ │ │ FH │ 16 │ │ │
- ├───────────────┼────────────┴────────┴────────┴──────┴──────────────────┤
- │ voc data │ The data format of the following data is for │
- │ │ ZyXEL Voice Compression Scheme. │
- └───────────────┴────────────────────────────────────────────────────────┘
-
-
-
- E.3 ZFAX LOG file format
- ------------------------
- Zfax log file contains a file header and the fax log data. The header
- is a 16-byte data, they are :
-
- Table E.3 ZFAX Log File Format
- ┌───────────────┬──────┬──────┬──────────────────────────────────────────┐
- │ Record ID │ pos │ len │ Remark │
- ├───────────────┼──────┼──────┼──────────────────────────────────────────┤
- │ header │ 0 │ 5 │ "ZyXEL" │
- │ │ 5 │ 1 │ 4 │
- │ │ 6 │ 2 │ 0300H │
- │ │ 8 │ 2 │ reserved │
- │ │ 10 │ 2 │ RecCnt │
- │ │ 12 │ 4 │ Reserved │
- │ logbuf_year │ 16 │ 2 │ │
- │ logbuf_date │ 18 │ 2 │ │
- │ logbuf_time │ 20 │ 2 │ │
- │ logbuf_ext │ 22 │ 2 │ extension number │
- │ logbuf_type │ 24 │ 2 │ 0->faxin, 1->faxout, 2->vocmsg │
- │ logbuf_status │ 26 │ 2 │ 0->normal, 1->remote delete │
- │ logbuf_fname │ 28 │ 129 │ file name │
- │ logbuf_cid │ 157 │ 20 │ caller ID │
- │ logbuf_faxnum │ 177 │ 50 │ faxnumber │
- │ logbuf_faxcid │ 227 │ 20 │ remote fax ID │
- │ ErrLvl │ 247 │ 2 │ error code │
- │ ConnDir │ 249 │ 2 │ │
- │ ConnMin │ 251 │ 1 │ Connection Minutes │
- │ ConnSec │ 252 │ 1 │ Connection Seconds │
- │ ConnSpeed │ 253 │ 2 │ Connection Speed │
- │ ConnPage │ 255 │ 2 │ Connection Page Number │
- │ ConnCode │ 257 │ 2 │ Connection Coding scheme │
- │ ConnPageCnt │ 259 │ 2 │ │
- └───────────────┴──────┴──────┴──────────────────────────────────────────┘
-
-
- E.4 ZFAX Schedule file format
- -----------------------------
- Zfax schedule file contains a file header and the fax log data. The
- header is a 16-byte data, they are :
-
- Table E.3 ZFAX Log File Format
- ┌───────────────┬──────┬──────┬──────────────────────────────────────────┐
- │ Record ID │ pos │ len │ Remark │
- ├───────────────┼──────┼──────┼──────────────────────────────────────────┤
- │ header │ 0 │ 5 │ "ZyXEL" │
- │ │ 5 │ 1 │ 3 │
- │ │ 6 │ 2 │ 0300H │
- │ │ 8 │ 2 │ 0 │
- │ │ 10 │ 2 │ Record Count │
- │ │ 12 │ 4 │ Reserved │
- │ schbuf_year │ 16 │ 2 │ │
- │ schbuf_date │ 18 │ 2 │ │
- │ schbuf_time │ 20 │ 2 │ │
- │ schbuf_type │ 22 │ 1 │ │
- │ schbuf_fname │ 23 │ 129 │ │
- │ schbuf_faxnum │ 152 │ 51 │ │
- │ schbuf_cpage │ 203 │ 1 │ │
- │ schbuf_from │ 204 │ 65 │ │
- │ schbuf_to │ 269 │ 65 │ │
- │ schbuf_cc │ 334 │ 65 │ │
- │ schbuf_sb │ 399 │ 65 │ │
- └───────────────┴──────┴──────┴──────────────────────────────────────────┘
-
- Appendix F
- ZFAX 3.12 Text script command
- -----------------------------
-
- ZFAX text decoder accepts the following command which start with a
- ~ character. Make sure the ~ char begins at the first char of each line.
-
- ~Xn : horizontal character space, n=1,2,...9.
-
- ~Ln : Vertical line space, n=1,2,...99.
-
- ~Wn : Horizontal magnification, n=1,2..., magnify ratio.
-
- ~Zn : Vertical magnification, n=1,2..., magnify ratio.
-
- ~Fpath : include file name, this command makes you to insert logo, image
- file, signature, or another text in a text file. For instance,
- you can have a signature when ending a letter as :
-
- Sincerely,
- ~FTomsig.fax
- Tom Chen.
-
- Where "path" is the file name with path and "Tomsig.fax" is a file
- name of a signature.
-
- ~P : ZFAX will start another page after this command.
-