View Single Post
  #54 (permalink)  
Old 02-25-2007, 06:51 PM
evans's Avatar
evans
PPCGeeks Regular
Offline
Location: Boston, MA
 
Join Date: Feb 2007
Posts: 54
Reputation: 0
evans is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via AIM to evans
grep'ing through the WM5 platform builder stuff....

I have yet to install the more recent platform updates, but the registry entries related to BTPAN are at the end of this post.

based on reading, btpan is implemented by btd.dll - which I cannot find on my device - I know it is there someplace.

BTPAN support is only present if the btd.dll has the export named "DriverEntry" (this is from the .def file for btd.dll).

If the btd.dll we have here has "DriverEntry" as an export, then I think it is "simply" a matter of getting the registry entries to "add" a BTPAN connection type.

If that export is not there, then we need a btd.dll with it (or I or someone needs to figure out the platform builder stuff enough to build a new one).


...tom



; @CESYSGEN IF BTD_BTPAN

;
; Global settings
; MediaDelay (DWORD) - period between inquiries, in ms. 2 min is the default, 30 sec minimum.
; InquiryLength (DWORD) - Bluetooth inquiry length, 1..255
; Authenticate (dw) - require authentication on connection. 0 or 1, default 1.
; Encrypt (dw) - require encryption on connection. 0 or 1, default 1.
;

[HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\pa n]
"MediaDelay"=dword:493e0 ; 300000 = 5 min
"InquiryLength"=dword:8
"Authenticate"=dword:1
"Encrypt"=dword:1

[HKEY_LOCAL_MACHINE\Comm\BTPAN]
"DisplayName"="Bluetooth PAN Driver"
"Group"="NDIS"
"ImagePath"="btd.dll"

[HKEY_LOCAL_MACHINE\Comm\BTPAN\Linkage]
"Route"=multi_sz:"BTPAN1"

[HKEY_LOCAL_MACHINE\Comm\BTPAN1]
"DisplayName"="Bluetooth PAN Driver"
"Group"="NDIS"
"ImagePath"="btd.dll"

[HKEY_LOCAL_MACHINE\Comm\BTPAN1\Parms]
"BusNumber"=dword:0
"BusType"=dword:0
; "NetworkAddress"="00-50-F2-00-00-00"

;
; Pan parameters
;
; AdapterType (sz) - Type of adapter. "PANU", "GN" or "NAP".
; ServiceId (sz) - service GUID. Standard string representation of GUID, including {}.
; ConnectionTimeout (dw) - if configuration is not complete within this interval, connection
; is closed. In ms, from 1000 to 30000
; AcceptConnections (dw, PANU and GN) - allow acceptiong connections. 0 or 1, default 0.
; MaxConnections (dw, GN and NAP) - maximum simultaneous connections
; FriendlyName (sz) - friendly name of the service, used to build SDP record
; Description (sz) - description of the service, used to build SDP record
; SDP (bin) - SDP record blob. If absent but required, will be built.
;
IF PRJ_BTH_PAN_BRIDGE !
IF PRJ_BTH_PAN_ROUTER !
IF PRJ_BTH_PAN_GN !
"AdapterType"="PANU"
"ServiceId"="{00001115-0000-1000-8000-00805f9b34fb}" ; PANU
"FriendlyName"="Personal Ad-hoc Network"
"Description"="Bluetooth PANU service"
ENDIF
ENDIF
ENDIF
IF PRJ_BTH_PAN_BRIDGE
"AdapterType"="NAP"
"ServiceId"="{00001116-0000-1000-8000-00805f9b34fb}" ; NAP
"FriendlyName"="Network Access Point"
"Description"="Bluetooth NAP service"
ENDIF
IF PRJ_BTH_PAN_ROUTER
"AdapterType"="NAP"
"ServiceId"="{00001116-0000-1000-8000-00805f9b34fb}" ; NAP
"FriendlyName"="Network Access Point"
"Description"="Bluetooth NAP service"
ENDIF
IF PRJ_BTH_PAN_GN
"AdapterType"="GN"
"ServiceId"="{00001117-0000-1000-8000-00805f9b34fb}" ; GN
"FriendlyName"="Group Ad-hoc Network"
"Description"="Bluetooth GN service"
ENDIF
"ConnectionTimeout"=dword:7530 ; 30000
"AcceptConnections"=dword:1
"MaxConnections"=dword:10

;
; Non-zero-config connections are controlled by association list.
; For every network, a key like below is created
;
;[HKEY_LOCAL_MACHINE\Comm\BTPAN1\Associations\device 1]
; "Address"=hex:00,00,00,00,00,00
; "ServiceId"="{00001115-0000-1000-8000-00805f9b34fb}"
; "SSID"="FriendlyDevice"
; "Priority"=dword:1
;
;
; @CESYSGEN IF CE_MODULES_BTSVC || CE_MODULES_NETUI
[HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\De vice\pan]
"DefaultAuth"=dword:1
"DefaultEncrypt"=dword:1
"AdapterName"="BTPAN1"

; @CESYSGEN ENDIF


IF PRJ_BTH_PAN_BRIDGE
[HKEY_LOCAL_MACHINE\Comm\MBRIDGE]
"Bind"=multi_sz:"BTPAN1", "$(PRJ_NET_LAN1D)"

[HKEY_LOCAL_MACHINE\Comm\BTPAN1\Parms]
"ProtocolsToBindTo"=multi_sz:"MBRIDGE"

[HKEY_LOCAL_MACHINE\Comm\$(PRJ_NET_LAN1)\Parms]
"ProtocolsToBindTo"=multi_sz:"MBRIDGE"

ENDIF
; @CESYSGEN ENDIF
Reply With Quote