Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Faxual II for CA-Clipper - faxinitstring http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FaxInitString
 Get/set modem init string
------------------------------------------------------------------------------
 Syntax

    FaxInitString(<nDev>, [<cNewInit>]) -> cOldInit

 Parameters

    <nDev> is a fax device number.

    <cNewInit> is the new modem init string.

 Returns

    Old modem init string.

 Description

    The init string is the first command sent to the modem on starting a fax
    transmission.  It can set up any special modem parameters you require.
    It should be a single, complete modem command, including leading AT.

    The default init string is "ATZ".  This has the effect of resetting the
    modem to its initial power-on state.  Fax modems do not usually require
    complicated initializations the way data modems often do, so the default
    setting works pretty often.  You may want to change it to turn the modem
    speaker on or off, or to enable hardware flow control with some modems.
    (See FaxOptions() for more on hardware flow control.)

    If for some reason you need more than one initialization command, send
    all but the last before calling FaxSend(), and let FaxInitString() send
    the last one.  You can send commands to the modem with SerSend().  If
    you do not want an init string, set it to the null command "AT".

 Example

    // This turns off the speaker and enables hardware flow control for a
    // U.S. Robotics modem.

    FaxInitString(1, "ATM0&H1&R2")

    // This does the same thing for a Practical Peripherals modem.

    FaxInitString(1, "ATM0&K3")

See Also: FaxOptions

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson