--------------------------------------------------------------------------
Setup hints for using BGFAX, PC Board 15.22, Class 1 fax modems   07-14-95
B.J. Guillot                                              bgfax@blkbox.com
FidoNet 1:106/400                            http://www.blkbox.com/~bgfax/
--------------------------------------------------------------------------

If you are using a US Robotics modem, please see "PCB-USR.TXT" instead.
If you are using a Class 2 fax modem, please see "PCB1522.TXT" instead.

Please make sure the following two items are true before proceeding...
(1) Your modem is NOT set to "Auto Answer" mode (REGISTER S0 MUST EQUAL 0)
(2) You have already put all relevant DATA commands for the BBS into NVRAM

Note that, generally, fax (AT+F) commands CANNOT be stored in NVRAM.

Run PCBSETUP.EXE and make the following changes in the modem section...
(Do not use PCBMODEM.)

Make the following changes...

Init-1      ATHZ
Init-2      AT+FCLASS=1^M~~AT+FAE=1
Offhook     ATH1M0
Answer      ATA
Dialout     AT+FCLASS=0;DT

If your BOARD.BAT file (or, whatever the file is that starts up your BBS),
after the PCB.EXE line...

  pcb.exe
  if errorlevel 7 rcvfax.bat

(If you have any other "if errorlevel" lines in your BOARD.BAT, remember
that errorlevel numbers must be in DESCENDING order: 9,8,7,6,5, etc.)

Make a new file called RCVFAX.BAT that says the following:
  @echo off
  bgfax /fhay:713_555_1212 c:\bgfax 1 z
  board.bat

The "1" is for COM1.  The "713_555_1212" will be replaced by your BBS tele-
phone number.  (Use underscores in place of spaces or dashes.)  If this
fails to work, try using a /FAX: parameter instead of a /FHAY: parameter.

If you are using PC Board/2 and BGFAX/2 (OS/2 executables), instead of the
"1" for COM1, you might need "H%pcbhandle%" or "V1" depending upon what
version of PC Board/2 you are using.  The "H" tells BGFAX that instead of
a port number, a port handle follows.  The "V" tells BGFAX to open the
port followed by the "V" in VBBS-compatability mode, which is needed on
some of the newer versions of PC Board/2.  Example:
  bgfax2 /fhay:713_555_1212 c:\bgfax v1 z

Regards,
bgfax author
