
    Since I'm not really sure how to write something up on BGFAX, I've
 decided just to include the tread that was going on in TriBBS support on
 how to set it up. If you should have questions about the set up, you
 should contact Norm Smith on the TriBBS Support Echo on WME, FIDO,
 Intelect, or Yankee Net.


==============================================================================
 BBS: IMAGINE
  To: All			  Date: 10-05-93 (05:56)
From: Norm Smith		 Number: 11826  [27] TriBBS Sup
Subj: Bgfax With Tribbs	  Status: Public (Rcvd)
------------------------------------------------------------------------------
To All,

     The following is my setup for the BGFAX used as a frontend with
TriBBS 5.0.

͵ BGFAX.CNF 
;------------------------- generic setup ------------------------
po=1
ft=Q
sp=38400
rp=C:\QL2FAX\RECFAX
tc=ATHMH0
;------------------ front end and /INIT strings -----------------
in=AT&FW2&C1&D2X4
in=ATW2&C1&D2X4S95=3
in=ATL1M1+FCR=1;+FLID="513 274 8118";+FDCC=1,3,0,2,0,0,0,0
;-------------------- front end mode strings --------------------
ri=2
an=AT+FAA=1;A
do=Please press the [Esc] key to load BBS.
lo=Now loading Hank's Corner BBS.  Please wait.
ec=<echo>
sl=300
ts=Calls are not accepted below 300 bps.  Sorry.
cm=CQ,30
ky=P,174
ky=X,0
;ev=19:05,50

     In the BGFAX.CNF file the line  tc=ATHMH1 needs to be changed to
tc=ATHMH0, otherwise the modem goes off hook when you start BGFAX.

     The rest of the config file is self explanatory.

͵ FBBS.BAT 
@echo off
SET BGFAX=C:\BGFAX
:RESTART
rem [this is an example batch file for frontend mode operation]
c:
cd\bgfax
bgfax
if errorlevel 50 GOTO EVENT1
if errorlevel 4 goto faxrcvd
if errorlevel 3 goto datacall
if errorlevel 2 goto datacall
if errorlevel 1 fbbs.bat
goto end
:faxrcvd
rem [you can put a printing batch here if you want]
REM  CALL %bgfax%\doprint.bat
REM  del %bgfax%\doprint.bat
GOTO RESTART
:datacall
  rem [ errorlevel 2=data,  errorlevel 3=local logon
  rem [ the following line executes the DOBBS.BAT file created by BGFAX
  rem [ which runs EXEBBS.BAT which should load your bbs software
  CALL %bgfax%\dobbs.bat
GOTO RESTART
:EVENT1
REM EVENT COMMANDS GO HERE
GOTO RESTART
:end

     All of the changes I made to FBBS.BAT are in CAPS.
     The two main changes are the restart loop and calling the BAT files.

͵ EXEBBS.BAT 
@ECHO OFF
CLS
ECHO ATH1 > COM1
C:
CD\TRIBBS
IF EXIST C:\TRIBBS\NWORK\DOORS.TMP DEL C:\TRIBBS\NWORK\DOORS.TMP
rem CALL BOARD /F%1%4 /T%3
CALL BOARD /F%1%4

     EXEBBS.BAT is a batch file you write to start the BBS. This BAT
must be in your BGFAX directory.
     Since BGFAX doesn't take the modem off hook during local logons
line 3 will do that for you, IF, you are using standard comports.
     See the section dealing with frontends in the TriBBS docs for
more details about line 6.
     Use line 7 if BGFAX is running events and line 8 if it isn't.

͵ BOARD.BAT 
@echo off
c:
cd\tribbs
if exist door.bat del door.bat
if exist event.bat del event.bat
if exist endbbs del endbbs
bbs %1 %2 /H
if exist door.bat door
if exist event.bat event
if exist endbbs goto end
board
:end

     You will also need to modifiy line 7 of BOARD.BAT.
     The /H switch is needed because BGFAX does hangup the modem.

---
  SLMR 2.1a  I'm awake.  I'm dressed.  What more do you want from me.
  TriNet: WME: The Lobster Buoy * Home of TriBBS * 207-941-0805
==============================================================================
 BBS: IMAGINE
  To: Steve Sears		  Date: 10-12-93 (01:24)
From: Norm Smith		 Number: 12477  [Per]
Subj: The Fax		    Status: Public
------------------------------------------------------------------------------
Steve-

SS> NS John-
SS> NS JZ>    Yes I am settinig it up with TriBBS ... and I really would
SS> NS JZ>appreciate a copy of your BATs ... Pat Driscoll made up a BAT
SS> NS	 See my other message to you.
SS>       Norm, I saved a copy of your message on setting up this program. I
SS>was wondering if you would mind me adding it to the next TriBBS Newsletter.
SS>Also, if you would like to go into more detail or redo it for the
SS>newsletter, that would be great too.

     I made up a more detailed explanation of the Batch files, which I
     included in my reply to John's (Zuchowshy) last message to me.

     It will be in the same packet as this one, but if you miss it,
     let me know and I'll send it again.

     I'll try to give you a little more info.

     The author is:  B. J. Guillot of Houston, TX
	    BBS is:  Tranquility Base
	    BBS No:  713-893-9124
	  Voice No:  713-893-9320

     Included with the program is a file called HELPME.ARJ, which contains
     several text files for setting up with other programs like FD220, GT18,
     D'BRIDGE, BINKLEY, etc. (Maybe you could get Joe to check this program
     out with Binkley. You're suppose to be able to run it in Rearend with
     these programs.)

     The program gives you a choice of either ZFAX or Quick Link II type
     FAX file formats.

     It also supports non-standard IRQ's and ports.

     European Sysops can get the file from The Owl's Nest. I think it is
     in Soest, Holland. The author list the phone no. as 31-0-2155-10921,
     but I'm about 99% sure the 0 goes in front of the 31 not after.

     The program was written for Supra modems, but it will work with
     most modems that support Class 2 Fax. Twincom is one of the modems
     I know it WON'T work with. I'm currently using it with a BOCA 14400
     and a PPI 14400 with no problems. Yet..<G>..

     I think I've tried about six of these Fax Frontends and this is
     the first one I found that worked.

     I don't know if you can get all these bits and pieces patched
     together to make an article or not..<g>..

     But, if you can, go ahead. It might help someone.

     I'm including my config file for this, but I don't think it will
     be very helpful. The one that comes with the program is well
     commented and you can just type your own info over what's in it.

     If you need anything else just drop me a line.

	       Norm


͵ BGFAX.CNF 

;------------------------- generic setup ------------------------
po=1
ft=Q
sp=38400
rp=C:\QL2FAX\RECFAX
tc=ATHMH0
;------------------ front end and /INIT strings -----------------
in=AT&FW2&C1&D2X4
in=ATW2&C1&D2X4S95=3
in=ATL1M1+FCR=1;+FLID="513 274 8118";+FDCC=1,3,0,2,0,0,0,0
;-------------------- front end mode strings --------------------
ri=2
an=AT+FAA=1;A
do=Please press the [Esc] key to load BBS.
lo=Now loading Hank's Corner BBS.  Please wait.
ec=<echo>
sl=300
ts=Calls are not accepted below 300 bps.  Sorry.
cm=CQ,30
ky=P,174
ky=X,0
;ev=19:05,50

     In the BGFAX.CNF file the line  tc=ATHMH1 needs to be changed to
tc=ATHMH0, otherwise the modem goes off hook when you start BGFAX.

     The rest of the config file is self explanatory.
---
  SLMR 2.1a  Brain damage?  No thanks, I already have some.
  TriNet: WME: The Lobster Buoy * Home of TriBBS * 207-941-0805
==============================================================================
 BBS: IMAGINE
  To: John Zuchowsky	       Date: 10-11-93 (23:57)
From: Norm Smith		 Number: 12475  [27] TriBBS Sup
Subj: The Fax	       1/2  Status: Public
------------------------------------------------------------------------------
John-

JZ>will keep hacking at it ... and will be looking for the other message
JZ>you mentioned.

     I think your main problem is in your batch files.

     Steve Sears, the publisher and/or editor of the TriBBS Newsletter,
     sent me a message asking to use that message with the config file
     and bats in the newsletter. So I'm sending him a more detailed
     copy of the batch files.

     I'm including that with this message so you will be sure to get it.

     I know its got a lot more detail then you probably need, but this
     way I only have to write it up once. I know I'm lazy..<G>..

     Hope this helps.

			 Norm

	       * * * * * *   Part  1   * * * * * *


͵ FBBS.BAT 

@echo off
     Turns ECHO off.

SET BGFAX=C:\BGFAX
     Sets BGFAX enviroment variable.

:RESTART
     This label is need to restart BGFAX after a FAX or DATA call
     or after an event.

rem [this is an example batch file for frontend mode operation]
     Simple comment.

c:
     Drive where BGFAX is located.

cd\bgfax
     Change directory to the BGFAX directory.

bgfax
     Start BGFAX program

if errorlevel 50 GOTO EVENT1
     Test for an errorlevel of 50 when BGFAX exits, and if found
     the Batch program goes to the label EVENT1 and continues.

if errorlevel 4 goto faxrcvd
     Test for an errorlevel of 4 when BGFAX exits, and if found
     the Batch program goes to the label FAXRCVD and continues.

if errorlevel 3 goto datacall
if errorlevel 2 goto datacall
     Test for an errorlevel of 2 or 3 when BGFAX exits, and if found
     the Batch program goes to the label DATACALL and continues.

if errorlevel 1 GOTO RESTART
     Restarts the program if an errorlevel of 1 is found.

goto end
     Goes to the END label if an errorlevel of 0 is found.

:faxrcvd
     This is where the Batch program continues after BGFAX exits
     with and errorlevel of 4, which means it received a FAX.

rem [you can put a printing batch here if you want]
     Comment.

  CALL %bgfax%\doprint.bat
     Runs doprint.bat, which, BGFAX creates. CALL was added to this
     line so that control would return to FBBS.BAT after doprint has
     finished printing the FAX.

  del %bgfax%\doprint.bat
     Deletes DOPRINT.BAT.

GOTO RESTART
     Goes to the RESTART label and restarts BGFAX.

:datacall
     This is where the Batch program continues after BGFAX exits
     with and errorlevel of 2 or 3, which means either incoming
     data call or local logon.

  rem [ errorlevel 2=data,  errorlevel 3=local logon
  rem [ the following line executes the DOBBS.BAT file created by BGFAX
  rem [ which runs EXEBBS.BAT which should load your bbs software
     Comments.

  CALL %bgfax%\dobbs.bat
     Runs dobbs.bat, which, BGFAX creates. CALL was added to this
     line so that control would return to FBBS.BAT after dobbs has
     finished. (DOBBS.BAT runs EXEBBS.BAT which in turn runs the
     BBS or, in the case of TriBBS BOARD.BAT.)

GOTO RESTART
     Goes to the RESTART label and restarts BGFAX after the caller
     logs off the BBS.

:EVENT1
     This is where the Batch program continues if the errorlevel
     was for this event.

  CALL event1.bat
     Batch file to run the event.

GOTO RESTART
     Restarts BGFAX when the event is finished.

:end
     When you press the ESC key exit BGFAX, it exits with an
     errorlevel of 0, which brings the Batch program to the
     END label and ends the program.


     All of the changes I made to FBBS.BAT are in CAPS.
     The two main changes are the restart loop and calling the BAT files.





















>>> Continued to next message
---
  SLMR 2.1a  I'm awake.  I'm dressed.  What more do you want from me.
  TriNet: WME: The Lobster Buoy * Home of TriBBS * 207-941-0805
==============================================================================
 BBS: IMAGINE
  To: John Zuchowsky	       Date: 10-11-93 (23:57)
From: Norm Smith		 Number: 12476  [27] TriBBS Sup
Subj: The Fax	       2/2  Status: Public
------------------------------------------------------------------------------
>>> Continued from previous message

	       * * * * * *   Part  2   * * * * * *


     This next Batch file (EXEBBS.BAT), you have to write yourself,
     and it must be located in the BGFAX directory.


͵ EXEBBS.BAT 

@ECHO OFF
     Turns ECHO off.

C:
     The drive were the TriBBS node you are going to run with BGFAX
     is located at.

CD\TRIBBS
     Change directory to that node's main directory.
IF EXIST C:\TRIBBS\NWORK\DOORS.TMP DEL C:\TRIBBS\NWORK\DOORS.TMP
     Check for the existence of DOORS.TMP and delete it if it exist.
     This is needed in case the last caller dropped carrier while in
     a door. (See the TRIBBS  manual, page 117, I think.)

rem CALL BOARD /F%1%4 /T%3
CALL BOARD /F%1%4
     These two lines call BOARD.BAT to start TriBBS. You would use the
     first line if you running events with BGFAX or the second line if
     your not.

	 NOTE:
	       If, for example, you had a data call at 14400 with
	       an error correcting connection, /F%1%4 would be
	       /F14400/ARQ when passed to BOARD.BAT, which would be
	       BOARD.BAT's %1.

     Go to the "Waiting for Caller" screen of the TriBBS node that
     BGFAX will be running with and select "Configure Node".

     Then set the comport to the same setting as BGFAX and make sure
     that the data part of modem string is the same as you are using
     with BGFAX.


	       * * * * * *   Part  3   * * * * * *


͵ BOARD.BAT 

@echo off
c:
cd\tribbs
if exist door.bat del door.bat
if exist event.bat del event.bat
if exist endbbs del endbbs
     The above line should all be OK if you had you BBS up and
     running to begin with.

bbs %1 %2 /H
     This is the only line you need to change. You need %1 %2 and /H.
     %1 will be the Connection info passed by EXEBBS, %2 will be the
     Time info passed by EXEBBS, and /H tells TriBBS to hangup when
     the caller logs off.
      NOTE: %2 will be Nul if your not passing the Time info, so it
	    won't hurt anything to include it.

if exist door.bat door
if exist event.bat event
if exist endbbs goto end
board
:end

     You shouldn't need to change anything else in BOARD.BAT.

     You will also need to modifiy line 7 of BOARD.BAT.
     The /H switch is needed because BGFAX does hangup the modem.


	       * * * * * *   tHE eND   * * * * * *
---
  SLMR 2.1a  I'm awake.  I'm dressed.  What more do you want from me.
  TriNet: WME: The Lobster Buoy * Home of TriBBS * 207-941-0805
==============================================================================
 BBS: IMAGINE
  To: John Zuchowsky	       Date: 10-11-93 (23:57)
From: Norm Smith		 Number: 12476  [27] TriBBS Sup
Subj: The Fax	       2/2  Status: Public
------------------------------------------------------------------------------
>>> Continued from previous message

	       * * * * * *   Part  2   * * * * * *


     This next Batch file (EXEBBS.BAT), you have to write yourself,
     and it must be located in the BGFAX directory.


͵ EXEBBS.BAT 

@ECHO OFF
     Turns ECHO off.

C:
     The drive were the TriBBS node you are going to run with BGFAX
     is located at.

CD\TRIBBS
     Change directory to that node's main directory.
IF EXIST C:\TRIBBS\NWORK\DOORS.TMP DEL C:\TRIBBS\NWORK\DOORS.TMP
     Check for the existence of DOORS.TMP and delete it if it exist.
     This is needed in case the last caller dropped carrier while in
     a door. (See the TRIBBS  manual, page 117, I think.)

rem CALL BOARD /F%1%4 /T%3
CALL BOARD /F%1%4
     These two lines call BOARD.BAT to start TriBBS. You would use the
     first line if you running events with BGFAX or the second line if
     your not.

	 NOTE:
	       If, for example, you had a data call at 14400 with
	       an error correcting connection, /F%1%4 would be
	       /F14400/ARQ when passed to BOARD.BAT, which would be
	       BOARD.BAT's %1.

     Go to the "Waiting for Caller" screen of the TriBBS node that
     BGFAX will be running with and select "Configure Node".

     Then set the comport to the same setting as BGFAX and make sure
     that the data part of modem string is the same as you are using
     with BGFAX.


	       * * * * * *   Part  3   * * * * * *


͵ BOARD.BAT 

@echo off
c:
cd\tribbs
if exist door.bat del door.bat
if exist event.bat del event.bat
if exist endbbs del endbbs
     The above line should all be OK if you had you BBS up and
     running to begin with.

bbs %1 %2 /H
     This is the only line you need to change. You need %1 %2 and /H.
     %1 will be the Connection info passed by EXEBBS, %2 will be the
     Time info passed by EXEBBS, and /H tells TriBBS to hangup when
     the caller logs off.
      NOTE: %2 will be Nul if your not passing the Time info, so it
	    won't hurt anything to include it.

if exist door.bat door
if exist event.bat event
if exist endbbs goto end
board
:end

     You shouldn't need to change anything else in BOARD.BAT.

     You will also need to modifiy line 7 of BOARD.BAT.
     The /H switch is needed because BGFAX does hangup the modem.


	       * * * * * *   tHE eND   * * * * * *
---
  SLMR 2.1a  I'm awake.  I'm dressed.  What more do you want from me.
  TriNet: WME: The Lobster Buoy * Home of TriBBS * 207-941-0805
==============================================================================
 BBS: IMAGINE
  To: John Zuchowsky	       Date: 10-18-93 (21:43)
From: Norm Smith		 Number: 13097  [27] TriBBS Sup
Subj: Bgfax		      Status: Public
------------------------------------------------------------------------------
John-

JZ>	If I initialize bgfax to run front end ... and hit enter to
JZ>logon locally shouldn't it take me into TriBBS at this point it just
JZ>shows a error [3] which is a local logon but it drops to DOS and gives
JZ>me the C:\ prompt which I thought you would get if you hit the ESC key.
JZ>	Could you post your command line in the EXEBBS.BAT .. the one
JZ>I'm playing with now is BOARD.BAT /F/ARQ /H,  I also have another I'm
JZ>plaing with that goes BOARD.BAT /F57600/ARQ%1%4 /H /T%3, I figure the
JZ>%3 is for running events but cannot figure the /H ... am I even close

	Should be:  CALL BOARD /F%1%4 /T%3 /H

	Also, check page 117 in the TriBBS Manual for more info
	on these switchs.

Hope this helps.<g>.

		Norm
---
  SLMR 2.1a  --T-A+G-L-I+N-E--+M-E-A+S-U-R+I-N-G+--G-A+U-G-E--
  TriNet: WME: The Lobster Buoy * Home of TriBBS * 207-941-0805
==============================================================================
 BBS: IMAGINE
  To: Steve Sears		  Date: 10-28-93 (11:18)
From: Norm Smith		 Number: 344    [Per]
Subj: Re: The Fax		Status: Public
------------------------------------------------------------------------------
Steve-

	This is some follow up reguarding that BGFAX article.

	Have you been able to put anything together from the other
	info I sent you??

	The following is a copy of a message I just sent to
	Tom Mortimer about Voice call problems.
......................................................................
Tom-

TM>	Tried to get BGFAX running on my system, The BBS runs fine. Looks
TM>like our batch files are close to identical. But,,,,,, I have some trouble
TM>with the FAX calls. Seems like a voice call (wrong number) is treated as a
TM>fax. Also, getting a lot of aborted faxes and BGFAX will not hang up the
TM>modem! Keeps sending me "UNABLE TO INITIONALIZE MODEM"  messages. Only way
TM>to remedy this is to kill the power to the system. Warm re-boot or reset

	I had the same or similar problem and did the following:

	1. In the FBBS.BAT, I inserted the command ECHO ATH0 > COMn,
	   however, this probably won't work if you are using a FOSSIL
	   or a non-standard IRQ.

	2. In BGFAX.CFG, I changed the ATHMH1 to ATHMH0.

	3. In the BGFAX.CFG, I change &S1 to &S0. This is a must do
	   if you are using a PPI modem and be needed for other modems
	   as well. If &Sn is set to 1, BGFAX can't seem to get the
	   modem back into command mode after a voice call or an aborted
	   FAX call.

TM>	I also seemed to have triggered BGFAX's time lock too. got some nast
TM>looking screens with some stupid message about pounding a turkey the other d
TM>when FBBS.BAT was envoked. I shut down and scanned the whole system after
TM>that!

	The author put a time related cripple in the program. If you
	set your computer date back or if you set it beyond 1993 the
	cripple kicks in and writes silly stuff to the screen, but it
	DOESN'T do any harm to the system.

TM>	Any suggestions? I'm running a 386SX/16 with a ZOOM v.32bis internal

	That's about all I can suggest. I'm running a 386SX/25 with a
	PPI V.32bis internal.

	Hope this is helpful..<G>..

		Norm

c.c. Steve Sears
........................................................................

	If you need any additional info, let me know..

	When is the next newsletter due out?

Later,
		Norm
---
  SLMR 2.1a  On a clear disk you can seek forever



  TriNet: WME: The Lobster Buoy * Home of TriBBS * 207-941-0805
