Documentation  |   Table of Contents   |  < Previous   |  Next >   |  Index

65    Modem Manager

Palm OS® Programmer's API Reference

Palm OS® 68K SDK

     

This chapter provides reference material for the modem manager API. The header file ModemMgr.h declares the modem manager API.

Modem Manager Functions ^TOP^

MdmDial Function ^TOP^

Purpose

Initialize the modem, dial the phone number and wait for result.

Declared In

ModemMgr.h

Prototype

Err MdmDial (
   MdmInfoPtrmodemP,
   Char*okDialP,
   Char*userInitP,
   Char*phoneNumP
)

Parameters

modemP
Pointer to modem info structure (filled in by caller)
okDialP
(NOT IMPLEMENTED) Pointer to string of chars allowed in dial string
userInitP
Pointer to modem setup string without the AT prefix.
phoneNumP
Pointer to phone number string

Returns

0 if successful; otherwise mdmErrNoTone, mdmErrNoDCD, mdmErrBusy, mdmErrUserCan, mdmErrCmdError

Comments

When executing this function, the system performs these steps:

  • Switch to the requested initial baud rate.
  • If HW hand-shake is requested, enable CTS/RTS hand-shaking; otherwise, disable it.
  • Reset the modem.
  • Execute the setup string (if any).
  • Configure the modem with required settings.
  • Dial the phone number.
  • Wait for CONNECT XXXXX or other response.
  • If auto-baud is requested, switch to the connected baud rate.

MdmHangUp Function ^TOP^

Purpose

Hang up the modem.

Declared In

ModemMgr.h

Prototype

Err MdmHangUp (
   MdmInfoPtrmodemP
)

Parameters

modemP
Pointer to modem info structure (filled in by caller)

Returns

0 if successful.


WARNING! This function alters configuration of the serial port (without restoring it).