--------------------------------------------------------------------------
Setup hints for using BGFAX with USR Class 2.0/Intermail 2.28     06-11-94
B.J. Guillot
FidoNet 106/400                              InterNet: st1r8@jetson.uh.edu
--------------------------------------------------------------------------

NOTE: USR Class 1 _only_ modems cannot be used with BGFAX.  You must be
      using one of the Class 2.0 versions of the USR (the v.32terbo, V.FC,
      and/or V.34 models).  Sportsters and non-terbo modems will not work.

NOTE: If you want to use a 09/20/93 v.32terbo model USR modem with BGFAX,
      you will need to use the /OU switch on the command line.  The 09/20
      firmware has a bug which will cause the USR to lockup on incoming HST
      datacalls (9600/14400/16800 HST, _not_ v.32/v.32bis/v.32terbo).
      BGFAX defaults to 12/08/93 firmware.  The 12/08/93 firmware, if run
      at a locked speed of 38400, will require a 19200 shift in fax mode.
      BGFAX will do this by itself.  This 38400 bug is corrected in the
      V.FC model, and you will need to put an exclamation point (!) after
      com port on the BGFAX command line to alert BGFAX to NOT go to 19200.
      THE EASIEST THING TO DO: LOCK AT 57600 OR 115200 AND FORGET ALL THAT.

Keep in mind that fax commands CANNOT be stored in NVRAM.  Be sure that
your modem is NOT set to "Auto Answer" mode.  REGISTER S0 MUST EQUAL 0.
This is a data register and CAN be set in NVRAM.

Here is the relevant information from IMSETUP ...

[IMSETUP] Modem -> Advanced Setup -> Command Strings
  Dial ..... AT
   Prefix .. +FCLASS=0DT
  Init-1 ... ATZ|~AT+FCLASS=2.0|
  Init-2 ... AT+FAA=1;+FNR=1,1,1,1|
  Init-3 ... AT+FLI="713 555 1212"|

  +fclass=0dt              enables data mode operation on outgoing calls
  +fclass=2.0              enables fax mode operation
  +faa=1                   enables adaptive answering (data/fax operation)
  +fnr=1,1,1,1             tells modem to let BGFAX know connect speed
  +fli="713 555 1212"      sets your FAX ID, up to 20 characters

[IMSETUP] Modem -> Advanced Setup -> Answer Control
  Manual answer    Yes
  Force answer ... ATA|
  Answer delay ... 2

The answer delay may need to be modified if you are using an external
Caller ID box.

Please note that you will MISS any incoming fax calls if you were
attempting to make an outbound data call ("NO DIALTONE") at that time.
This could be corrected if Intermail would offer a larger answer string,
about 40 or 50 characters would be nice.

[IMSETUP] Modem -> Advanced Setup -> Connect Strings

You will see a list of 14 or so preconfigured connect strings, press
<INSERT> to add one.  The USR modem will report "+FCO" on when an incoming
fax call is detected when in Class 2.0 adaptive answering mode.

  Connect Message                          Speed  EC  BBSexit  Terminate

  +FCO                                     19200  N   0        255

-------------------------------------------------------------------------

Notice that "BBSexit" is equal to ZERO.  "Terminate" instructs IM to exit
IMMEDIATELY as it receives the fax response.  ("BBSexit" tells the user
to press <Esc>, and obviously, a fax machine cannot do that.)

IMRUN.BAT should contain something similar to ...

@echo off
c:
cd\im
im
if errorlevel 255 goto fax
if errorlevel 103 maint.bat
if errorlevel 102 toss.bat
if errorlevel 101 local.bat
if errorlevel 100 dobbs.bat
goto end
:fax
  rem ---1 is for com1, and z is for zfax format
  bgfax /fco c:\bgfax 1 z
  rem ---if /fco gives you problems, try using /fcos instead
  imrun.bat
:end

==========================================================================

Regards,
B.J. Guillot

