US Robotics fax, new infos and questions

Gert Doering (gert@greenie.muc.de)
Thu, 8 Apr 1999 16:16:16 +0200


Hi,

On Thu, Apr 08, 1999 at 03:21:41PM +0200, Norbert Preining wrote:
> On Fri, 19 Mar 1999, Gert Döring wrote:
> > Bad :( - back to square one.
> 
> Ok, the situation is like this: The commands sent to the modem are
> more or less the same with efax and sendfax, also the tty-settings.
> The same with the PPM (or so) codes at the end of page/transmission.

I still assume the problem lies in the RTC code (6 consecutive EOLs at the
end of the page).  I'm sure sendfax does send RTCs, don't have any idea
about efax.

The G3 data itself is unlikely to be the problem, because "bad" data
usually isn't printed at all at the receiving end.

I'll attach a patch to g3cat.c that will add a new option ("-R") that
will make g3cat omit the RTC code at the end of the page.  Please try
this (patch g3cat.c, "make", "g3cat -R old.g3 >new.g3", "sendfax new.g3")
and report whether it helps.

[*] Note: I think I said this before, but anyway: the standard is pretty 
unclear whether the client software should send the RTC code or not -
mgetty does, because it works with all other modems.  AFAIK, Hylafax
doesn't, so maybe efax doesn't do it either, and this is what makes 
the difference here.  Let's see...

gert

Index: g3/g3cat.c
===================================================================
RCS file: /u2/cvs/mgetty/g3/g3cat.c,v
retrieving revision 4.2
diff -u -r4.2 g3cat.c
--- g3cat.c	1998/05/07 10:37:37	4.2
+++ g3cat.c	1999/04/08 14:13:41
@@ -192,6 +192,7 @@
 				/* starting the first g3 file */
     int empty_lines = 0;	/* blank lines at top of page */
     int line_width = 1728;	/* "force perfect" G3 file */
+    int opt_R = 0;		/* suppress generation of RTC */
 
     /* initialize lookup trees */
     build_tree( &white, t_white );
@@ -205,7 +206,7 @@
     /* process the command line
      */
 
-    while ( (i = getopt(argc, argv, "lah:p:w:")) != EOF )
+    while ( (i = getopt(argc, argv, "lah:p:w:R")) != EOF )
     {
 	switch (i)
 	{
@@ -214,6 +215,7 @@
 	  case 'h': empty_lines = atoi( optarg ); break;
 	  case 'p': padding = atoi( optarg ); break;
 	  case 'w': line_width = atoi( optarg ); break;
+	  case 'R': opt_R = 1; break;
 	  case '?': exit_usage(argv[0]); break;
 	}
     }
@@ -469,8 +471,11 @@
 
     }	/* end for (all arguments) */
 
-    /* output final RTC */
-    for ( i=0; i<6; i++ ) puteol();
+    if ( ! opt_R )
+    {
+	/* output final RTC */
+	for ( i=0; i<6; i++ ) puteol();
+    }
 
     /* flush buffer */
     if ( out_hibit != 0 )
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert@greenie.muc.de
fax: +49-89-35655025                        gert.doering@physik.tu-muenchen.de