Partager via


Bluetooth Stack Registry Settings (Compact 2013)

3/26/2014

You can configure the layers in the Bluetooth protocol stack by using 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.

You can configure the L2CAP layer by using these registry entries, located in the key HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\l2cap.

Name

Type

Description

Default

RTX

REG_DWORD

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.

0x3C (60 seconds)

ERTX

REG_DWORD

Extended Response Timeout eXpired (ERTX) timer value. This timer is used when the remote device is performing additional processing of a request signal.

0x12C (300 seconds)

IdlePhys

REG_DWORD

Maximum time, in seconds, that the L2Cap layer waits before closing a baseband connection after the logical link has been disconnected.

0xA (10 seconds)

IdleConnect

REG_DWORD

Timeout value, in seconds that the L2CAP layer must wait for incoming data on a new connection.

0xA (10 seconds)

ConfigTimeout

REG_DWORD

Time in seconds that the L2CAP layer must wait when the configuration process is in progress.

0x78 (120 seconds)

LinkPolicy

REG_DWORD

Sets the default link policy for the new connection.

0xF

PicoCapable

REG_DWORD

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

0 (zero)

ConnectPacketType

REG_DWORD

Default packet type on the L2CAP connection. The default value is 0. That allows all SCO and ACL packet types.

0 (zero)

ScanModeControl

REG_DWORD

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

0x3

NoRoleSwitch

REG_DWORD

Whether the stack can request a role-switch with the peer device.

0 = Enables role switching.

1 = Disables role switching.

1

Note

For more information about the RTX and ERTX timers, see "Timers Events" in the Core Specification v2.1 + EDR, Bluetooth web site.

You can configure the RFCOMM layer by using these registry entries, located in the key HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\rfcomm.

Name

Type

Description

Default

timeout

REG_DWORD

Time in seconds that the RFCOMM layer must wait when configuration is in progress.

0 (zero)

You can configure the Bluetooth system settings by using these registry entries, located in the key HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\sys. These entries are not set by default.

Name

Type

Description

Default

COD

REG_DWORD

Class Of 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 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 disabled by the stack.

PostPairSleep

REG_DWORD

Sets the time to wait in milliseconds after pairing and before a Service discovery Protocol (SDP) search.

See Also

Reference

Bluetooth Registry Settings