USR Courier
Kurt Garloff (garloff@kg1.ping.de)
Thu, 1 Oct 1998 21:08:02 +0200
--NzB8fVQJ5HfG6fxh
Content-Type: text/plain; charset=us-ascii
On Thu, Oct 01, 1998 at 10:24:48AM +0200, Gert Doering wrote:
> Hi,
> > a) Had to send an AT to it, before it accepted incoming voice calls
> > b) Changed to +FCC=1,5,0,2,0,0,0,0,5
> > c) changed faxspool to adjust the page size (1728x2196)
> >
> > Patches against 1.1.18-Sep1 are appended.
> >
> > a) It is documented that some USR need AT to adjust speed properly and to
> > prevent noise from the line. I didn't figure out a setting to fix this. So I
> > patched vgetty instead.
>
> Is that still necessary with 1.1.18? Marc has done some work on this, so
> I thought that it's fixed. In any case, you should be able to achieve
> this with a proper "post-init-chat".
I used mgetty-1.1.18-Sep11 and my modem definitely didn't answer any call. I
had this patch from an earlier revision of mgetty, so I applied it and it
did work.
I agree that using an option is a much better solution. Gonna try that.
> > Patching sendfax to use +FCC=1,5,0,2,0,0,0,5 fixes it:
> > +FIS:1,3,0,2,1,0,1,2
> > +FCS:1,3,0,2,0,0,0,2
> > and the fax is successfully sent.
> >
> > I sent a report to 3Com, but I doubt they will answer ...
>
> I sent a report concerning this as well, and I agree with you that it's a
> firmware bug. Setting +FCC=,,,,,5 unconditionally is a BAD idea, because
> that would mean a large slowdown for all other modems.
I should not have called it fix but workaround.
> (Sounds a bit like they got it wrong AGAIN, using the +FCC setting as an
> [numerically] upper limit, not as a *lower* limit -- same problem as with
> he max. transmission speed in earlier firmware versions. Someone should
> teach them to read).
Good software engineers are expensive to pay ... unless you develop free
software.
> I did get a (pretty useless) response already, but I think they definitely
> think they will forward it to engineering.
>
> What about your item "c)" above? Some explanation, some patch?
c)
Oh, forgot it. Some fax machines have problems, if the page is too long.
There is an error after the first page then, so I cannot send more than one
page faxes. I adjusted the pagesize to the value I like: -g1728x2196.
I can add two header lines (cour25.pbm) and I get 1728x2289 which is what
most machines still accept.
I append the patch. Too bad, I also added an option to have a logo in the
upper right corner, so what you get is a combination of two patches. Sorry.
Anyway, the logo patch doesn't cause any problems, so you can also include
it, if you want to ...
I could have added a d)
d) I had to set dial-prefix ATX2D (sendfax.config) to disable BUSY detection.
My modem otherwise detects a BUSY(NO ANSWER, when an answering machine
starts in the first place and the fax machine is not fast enough to take
over the call.
--
Kurt Garloff, Dortmund
<K.Garloff@ping.de>
PGP key on http://student.physik.uni-dortmund.de/homepages/garloff
--NzB8fVQJ5HfG6fxh
Content-Type: text/plain; charset=us-ascii
Content-Description: mgetty-1.1.18-spool-diff
Content-Disposition: attachment; filename="mgetty-1.1.18-spool-diff"
--- faxspool.orig Wed Sep 23 21:21:25 1998
+++ faxspool Wed Sep 30 07:53:43 1998
@@ -26,6 +26,8 @@
# 3.10.93: use "hp2hig3" for hp-pcl4-files (cl)
# 19.10.93: phone directories (caz)
+WD=`pwd`
+
FAX_SPOOL=/var/spool/fax
FAX_SPOOL_OUT=/var/spool/fax/outgoing
FAX_SEQ=$FAX_SPOOL_OUT/.Sequence
@@ -61,8 +63,8 @@
# these are the drivers used in Ghostscript - choose dfaxhig/low or faxg3
#GS_DRIVER_HI="-sDEVICE=dfaxhigh"
#GS_DRIVER_LO="-sDEVICE=dfaxlow"
-GS_DRIVER_HI="-sDEVICE=faxg3 -r204x196"
-GS_DRIVER_LO="-sDEVICE=faxg3 -r204x98"
+GS_DRIVER_HI="-sDEVICE=faxg3 -r204x196 -g1728x2196"
+GS_DRIVER_LO="-sDEVICE=faxg3 -r204x98 -g1728x1098"
#
# program that will generate fax coverpage (see "man coverpg")
@@ -143,7 +145,7 @@
test X$3 = X-n && REDUCE="pnmscale -yscale 0.5"
xwdtopnm $1 |\
- pnmscale -xysize 1728 2000 |\
+ pnmscale -xysize 1728 2196 |\
$REDUCE |\
ppmtopgm |\
pgmtopbm |\
@@ -161,7 +163,7 @@
test X$3 = X-n && REDUCE="pnmscale -yscale 0.5"
giftoppm $1 |\
- pnmscale -xysize 1728 2000 |\
+ pnmscale -xysize 1728 2196 |\
$REDUCE |\
ppmtopgm |\
pgmtopbm |\
@@ -179,7 +181,7 @@
test X$3 = X-n && REDUCE="pnmscale -yscale 0.5"
tifftopnm $1 |\
- pnmscale -xysize 1728 2000 |\
+ pnmscale -xysize 1728 2196 |\
$REDUCE |\
ppmtopgm |\
pgmtopbm |\
@@ -353,11 +355,20 @@
\t-t <hh:mm>\tset earliest possible send time
\t-t <hh:mm-hh:mm> set time range for sending fax
\t-A <txt>\tspecify free-form accounting information
-\t-q\t\tshut up"
+\t-q\t\tshut up
+\t-l <pbm>\tadd logo to faxheader"
while :
do
case "$1" in
+# add logo
+ -l) LOGO="$2"; if test ! -z ${LOGO%%/*}; then LOGO="$WD/$LOGO"; fi;
+ shift; shift;
+ if test ! -f "$LOGO"; then
+ echo "faxspool: Warning: Could not open $LOGO" >&2;
+ unset LOGO;
+ fi
+ ;;
# enable polling
-p) poll_req=true ; shift
;;
@@ -808,6 +819,8 @@
nr=0
maxnr=`echo $pages | wc -w | tr -d " "`
+#maxnr=`ls | wc -l | tr -d " "`
+
#
# generate cover page
@@ -858,7 +871,7 @@
-e "s;@D@;$verbose_to;g" \
-e "s;@ID@;$FAX_STATION_ID;g" \
-e "s;@DATE@;`date`;g" \
- | pbmtext -font $hdrfont | pbm2g3 \
+ | pbmtext -font $hdrfont | pnmcat -lr -jtop - $LOGO | pbm2g3 \
| g3cat - $f > f$nr.g3 \
&& rm $f
finalpg="$finalpg f$nr.g3"
--NzB8fVQJ5HfG6fxh--