Share via


Stack Registry Settings (Windows Embedded CE 6.0)

1/6/2010

You can configure the layers in the Bluetooth Protocol Stack by using the registry.

The Bluetooth registry settings are defined in Common.reg, which is located in the %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 name 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. The default value is 0x3C (60 seconds).

ERTX

REG_DWORD

Sets the Extended Response Timeout eXpired (ERTX) 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 when the remote device is performing additional processing of a request signal. The default value is 0x12C (300 seconds).

IdlePhys

REG_DWORD

Sets the maximum amount of time, in seconds, that the L2Cap layer waits before closing a baseband connection after the logical link has been disconnected. The 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. The 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. The default value is 0x78 (120 seconds).

LinkPolicy

REG_DWORD

Sets the default link policy for the new connection. The default value is 0xF.

PicoCapable

REG_DWORD

Determines whether piconet is enabled. Setting this value to 1 does not close the idle physical connection. The default value is 0.

ConnectPacketType

REG_DWORD

Determines the default packet type on the L2CAP connection. The default value is 0, which allows all SCO and ACL packet types.

ScanModeControl

REG_DWORD

Determines the default scan mode for the Bluetooth adapter. The default value is 0x3, which ensures that inquiry mode and page scan mode are enabled.

NoRoleSwitch

REG_DWORD

0 - Enables the stack to request a role-switch with the peer device for an incoming connection.

1 - Disables role switching. This is the default value.

Note

For more information about the RTX and ERTX timers, see "Bluetooth Core Specification" on the o.

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 name Type Description

timeout

REG_DWORD

Sets the timeout value, in seconds, that the RFCOMM layer must wait when the configuration process is in progress. The 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 name Type Description

COD

REG_DWORD

Sets the class of device for the Bluetooth device. Potential values are defined in the document "Bluetooth Assigned Numbers" that is available on the o.

DisableAutoSuspend

REG_DWORD

Determines whether 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 that 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

Concepts

Bluetooth Registry Settings

Other Resources