Microsoft KB Archive/246773

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 13:50, 21 July 2020 by X010 (talk | contribs) (Text replacement - """ to """)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base


HOWTO: Specify Modem Initialization Commands

PSS ID Number: 246773

Article Last Modified on 10/2/2003



The information in this article applies to:

  • Microsoft Windows CE Platform Builder 2.11
  • Microsoft Windows CE Platform Builder 2.12



This article was previously published under Q246773

IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry


SUMMARY

This article describes how to specify modem initialization commands by using the registry.

MORE INFORMATION

The location of the modem initialization commands depends on whether the modem is built-in, external, or on a PC card (PCMCIA). The initialization commands are listed in the Init subkey of the driver key. These commands have numeric value names, and are listed in the sequence in which the commands need to be issued.

For a built-in modem, the best place to put the initialization settings is in the driver key for the comm device:

HKEY_LOCAL_MACHINE\Drivers\Builtin\OEMSerial1
   "Dll"="serial.dll"
   "Tsp"="unimodem.dll"
   .......

HKEY_LOCAL_MACHINE\Drivers\Builtin\OEMSerial1\Init
   "1"="AT"
   "2"="ATE0V1&C1&D2"
   ......
                    

You can also override the standard Hayes commands by changing the values in the modem Settings key. The default initializations commands are as follows:

[HKEY_LOCAL_MACHINE\Drivers\Unimodem\Init]
   "1"="AT<cr>"
   "2"="ATE0V1&C1&D2<cr>"

[HKEY_LOCAL_MACHINE\Drivers\Unimodem\Settings]
   "Prefix"="AT"
   "Terminator"="<cr>"
   "DialPrefix"="D"
   "DialSuffix"=";"
   "Pulse"="P"
   "Tone"="T"
   "Blind_Off"="X4"
   "Blind_On"="X3"
   "CallSetupFailTimeout"="ATS7=<#><cr>"
   "Reset"="ATZ<cr>"
                    

Microsoft does not recommend that you change the default values because it will affect other modems (external as well as PCMCIA).

Keywords: kbhowto KB246773
Technology: kbAudDeveloper kbSDKSearch kbWinCESDK211 kbWinCESDK212 kbWinCESDKSearch kbWinCESearch