Compartir a través de


Stack Registry Settings (Windows CE 5.0)

Send Feedback

You can configure the layers in the Bluetooth Protocol Stack through the registry. The Bluetooth registry settings are defined in common.reg located in %WINCEROOT%\Public\Common\Oak\Files directory.

Note   The default registry values vary depending on which Catalog items are included in your OS design. For more information, see Default Registry Settings.

The L2CAP layer registry settings are located under the HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\l2cap key.

The following table shows the named values for the l2cap registry key.

Value : type Description
RTX: REG_DWORD Sets the Response Timout eXpired (RTX) timer value. This timer determines the time in seconds that the L2CAP layer must wait before the channel is terminated due to an unresponsive remote device. Default value is 0x3C (60 seconds).
ERTX: REG_DWORD Sets the Extended Response Timeout eXpired (ERTX) timer value. This timer is used when the remote device is performing additional processing of a request signal. Default value is 0x12C (300 seconds).
IdlePhys :REG_DWORD Sets the maximum amount of time that the L2Cap layer waits before closing a baseband connection after the logical link has been disconnected. Default value is 0xA (10 seconds).
IdleConnect :REG_DWORD Sets the timeout value, in seconds, that the L2CAP layer must wait for incoming data on a new connection. Default value is 0xA (10 seconds).
ConfigTimeout :REG_DWORD Sets the timeout value, in seconds, that the L2CAP layer must wait when the configuration process is in progress. Default value is 0x78 (120 seconds).
LinkPolicy :REG_DWORD Sets the default link policy for the new connection. Default value is 0xF.
PicoCapable :REG_DWORD Determines if piconet is enabled. Setting this value to 1 does not close the idle physical connection. Default value is 0.
ConnectPacketType :REG_DWORD Determines the default packet type on the L2CAP connection. The default value is 0. That allows all SCO and ACL packet types.
ScanModeControl :REG_DWORD Determines the default scan mode for the Bluetooth adapter. The default value is 0x3 and ensures inquiry mode and page scan mode are enabled.

Note   For more information about the RTX and ERTX timers, see the Bluetooth Core Specification at this see this Official Bluetooth Wireless Info Web site.

The RFCOMM layer registry settings are located under the HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\rfcomm key.

The following table shows the named values for the rfcomm registry key.

Value : type Description
timeout: REG_DWORD Sets the timeout value, in seconds that the RFCOMM layer must wait when the configuration process is in progress. Default value is 0.

The system settings are located under the HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\sys key. These keys are not set by default.

The following table shows the named values for the sys registry key.

Value : type Description
COD: REG_DWORD Sets the class of device for the Bluetooth device. Potential values are defined in the Bluetooth Assigned Numbers document that is available on the Official Bluetooth Web site.
DisableAutoSuspend: REG_DWORD Determines whether or not suspend mode is enabled on the device.

1: AutoSuspend is disabled. If the Bluetooth device is currently connected the stack calls SystemIdleTimerReset periodically to ensure the device does not go to sleep.

0: AutoSuspend is not be disabled by the stack.

PostPairSleep: REG_DWORD Sets the time to wait in milliseconds after pairing and before an SDP search.

See Also

Bluetooth Registry Settings

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.