background image
C H A P T E R 2 5
Modem Setup Service
25-6
Defining a Modem Setup
about the modem preferences option, see "Modem Preferences Option"
(page 21-34) in Newton Programmer's Reference.
Setting the Modem Profile Option
25
This modem profile option describes the modem characteristics, to be used by the
modem controller. Here is an example:
constant kSupportsEC
:= true;
constant kSupportsLCS
:= nil;
constant kDirectConnectOnly:= nil;
constant kConnectSpeeds
:= '[300, 1200, 2400, 4800,
7200, 9600, 12000, 14400];
constant kConfigSpeed
:= 38400;
constant kCommandTimeout
:= 2000;
constant kMaxCharsPerLine
:= 40;
constant kInterCmdDelay
:= 25;
constant kModemIDString
:= "unknown";
constant kConfigStrNoEC
:=
"ATE0&A0&B1&C1&H1&M0S12=12 ";
constant kConfigStrECOnly
:=
"ATE0&A0&B1&C1&H1&M5S12=12 ";
constant kConfigStrECAndFallbac
:=
"ATE0&A0&B1&C1&H1&M4S12=12 ";
constant kConfigStrDirectConnec
:=
"ATE0&A0&B0&C1&H0&M0S12=12 ";
For detailed descriptions of these constants, see "Modem Setup Profile Constants"
(page 22-4) in Newton Programmer's Reference. For more information about the
modem preferences option, see "Modem Profile Option" (page 21-38) in Newton
Programmer's Reference
.
When the modem tool establishes communication with a modem through an
endpoint, the tool normally sends a configuration string to the modem (as long as
kUseConfigString
is
true
). Several configuration strings are defined in a
typical modem profile; the one that is sent depends on the type of connection
requested and other parameters set in the modem profile. Table 25-1 summarizes
when each kind of configuration string is used:
© 2007-2024, o7 studio » при воспроизведении материала сайта ссылка обязательна