From Lee's work:
| commit
de0cb2e47f327cea2e639773505f30c46f142cdb
| Author: Lee Howard <faxguy@howardsilvan.com>
| Date: Mon Jun 5 19:12:55 2006 +0000
|
| this adds Class1PageLengthSupport so that Class 1 modems can configure
| the LN settings that they want for send+receive
|
| faxsend wasn't checking modem page length support and therefore sending
| would always use LN_INF - this buglet should apply to Class 2 as
| well ... it should be fixed now
Changelog since HylaFAX 4.3.3
+* Add Class1PageLengthSupport config option (12 Mar 2007)
* Simplify Class1SwitchingCmd code and prevent duplication of the
command in session (12 Mar 2007)
* Replace Class1TrainingRecovery with Class1SwitchingCmd
modemParams.br |= BIT(primaryV34Rate) - 1;
}
modemParams.wd = BIT(WD_A4) | BIT(WD_B4) | BIT(WD_A3);
- modemParams.ln = LN_ALL;
+ modemParams.ln = conf.class1PageLengthSupport;
modemParams.df = BIT(DF_1DMH) | BIT(DF_2DMR);
modemParams.bf = BF_DISABLE;
modemParams.st = ST_ALL;
* to take into account sloppy coding practice (e.g.
* using 200 dpi for high-res facsimile.
*/
- if (clientInfo.getMaxPageLengthInMM() != (u_short)-1) {
+ if (clientInfo.getMaxPageLengthInMM() != (u_short) -1 || !modem->supportsPageLength((u_int) -1)) {
u_long h = 0;
(void) TIFFGetField(tif, TIFFTAG_IMAGELENGTH, &h);
float len = h / yres; // page length in mm
{ "class1tcfminrun", &ModemConfig::class1TCFMinRun, (2*TCF_DURATION)/3 },
{ "class1tmconnectdelay", &ModemConfig::class1TMConnectDelay, 0 },
{ "class1ecmframesize", &ModemConfig::class1ECMFrameSize, 256 },
+{ "class1pagelengthsupport", &ModemConfig::class1PageLengthSupport, LN_ALL },
};
static struct {
const char* name;
u_int class1TCFMinRun; // min length of zero run for TCF check
u_int class1TMConnectDelay; // delay (ms) after +FTM CONNECT
u_int class1ECMFrameSize; // ECM frame size for transmission
+ u_int class1PageLengthSupport;// page length support
bool class1GreyJPEGSupport; // Greyscale JPEG support
bool class1ColorJPEGSupport; // Full-color JPEG support
bool class1ECMSupport; // support T.30-A ECM
Class1GreyJPEGSupport boolean \s-1No\s+1 Class 1/1.0: to enable grey JPEG fax support
Class1JBIGSupport string \s-1\fIsee below\fP\s+1 Class 1/1.0: to enable monochrome JBIG fax support
Class1NFLOCmd string \- Class 1/1.0: command to set no flow control
+Class1PageLengthSupport integer \s-17\s+1 Class 1/1.0: coded value for modem page length support
Class1RecvAbortOK integer \s-1200\s+1 Class 1/1.0: max wait (ms) for ``\s-1OK\s+1'' after recv abort
Class1RecvIdentTimer integer \s-140000\s+1 Class 1/1.0: max wait (ms) for initial ident frame
Class1RMPersistence integer \s-12\s+1 Class 1/1.0: times to attempt high-speed carrier recv
.B Class1Cmd
to switch the modem to Class 1 operation.
.TP
+.B Class1PageLengthSupport
+The coded value for page lengths supported by the modem. The only
+correct values and meanings are these: ``1'', A4 page length; ``3'', both
+A4 and B4 page length; ``7'', unlimited page length.
+.TP
.B Class1PPMWaitCmd
The command used to stop and wait before sending the post page message,
except before sending EOP, when