次の方法で共有


Personal Area Network (PAN) Profile Registry Settings (Compact 2013)

3/26/2014

This topic describes the registry setting for the PAN profile.

You can configure the global registry settings for the PAN profile by using these registry entries, located in the key HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\pan.

Name

Type

Description

Default

ActivateOnBoot

REG_DWORD

Determines whether Bluetooth PAN is automatically activated when the device starts up.

  • 0 = Bluetooth PAN is not automatically activated.
  • 1 = Bluetooth PAN is automatically activated.

0

Authenticate

REG_DWORD

Determines whether the connection is authenticated.

  • 0 = Disables authentication.
  • 1 = Enables authentication. Default.

This setting is optional.

Ee495442.Caution(en-us,WinEmbedded.80).gifCaution:
Setting this value to 0 disables authentication. This may result in potential security risks.

1

Encrypt

REG_DWORD

Determines whether the connection is encrypted.

  • 0 = Disables encryption.
  • 1 = Enables encryption. Default.

This setting is optional.

Ee495442.Caution(en-us,WinEmbedded.80).gifCaution:
Setting this value to 0 disables encryption. This may result in potential security risks.

1

InquiryLength

REG_DWORD

Specifies the length of the Bluetooth inquiry within the range of 1 through 255.

8

MediaDelay

REG_DWORD

Specifies the total length of time, in milliseconds, between two Bluetooth inquiries. Minimum value is 30000 milliseconds (30 seconds).

300000 milliseconds (5 minutes)

PublishSdpOnBoot

REG_DWORD

Specifies whether to publish Service Discovery Protocol (SDP) when the device boots.

  • 0 = Disables publishing SDP.
  • 1 = Enables publishing SDP.

0

You can configure additional PAN registry settings by using these registry entries, located in the key HKEY_LOCAL_MACHINE\Comm\BTPAN1\Parms.

Name

Type

Description

Default

AcceptConnections

REG_DWORD

Determines whether new connections are allowed for PANU and Group Ad hoc Network (GN) roles.

  • 0 = Disables new connections.
  • 1 = Enables new connections.

0

AdapterType

REG_SZ

Specifies the type of adapters. Possible string values are:

  • "PANU"
  • "NAP"
  • "GN"

ConnectionTimeout

REG_DWORD

Specifies the total length of time, in milliseconds, that the device waits for a connection to complete. If the specified time elapses before connection completes, the connection is closed. The value can be set in the range of 1000 through 30000 milliseconds.

Description

REG_SZ

Specifies the service description to use in SDP records.

FriendlyName

REG_SZ

Specifies the friendly name of the service to use in Service Discovery Protocol (SDP) records.

MaxConnections

REG_DWORD

Specifies the maximum number of simultaneous connections for GN and Network Access Point (NAP) roles.

SecurityLevel

REG_SZ

Specifies the security level within a range of 1 through 3. Default setting depends on the application. For more information, see BTSecurityLevel.

SDP

REG_BINARY

Specifies a BLOB that contains the SDP record for the service. If this is not provided, then the record is implicitly built.

ServiceId

REG_SZ

Specifies the global service identifier as a standard GUID string.

Remarks

For the Network Access Point (NAP) role, configure the HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\l2cap\NoRoleSwitch entry to enable the Bluetooth stack to request a role switch with the peer device. For more information on the L2cap registry settings, see Bluetooth Stack Registry Settings.

You can also add the network associations for the PAN profile. The following code shows the registry values that are created for every network.

[HKEY_LOCAL_MACHINE\Comm\BTPAN1\Associations\device1]
  "Address"=hex:00,00,00,00,00,00
  "ServiceId"="{00001115-0000-1000-8000-00805f9b34fb}"
  "SSID"="FriendlyDevice"
  "Priority"=dword:1

See Also

Reference

Bluetooth Registry Settings