WINCE5.O对USB蓝牙适配器服务的支持
<1>添加蓝牙协议栈
蓝牙组件位置:Communication Services and Networking/Networking - Personal Area Network (PAN)/Bluetooth/
Bluetooth Protocol Stack with Transport Driver Support/Bluetooth Stack with Integrated USB Driver
Bluetooth Protocol Stack with Transport Driver Support/Bluetooth Stack with Universal Loadable Driver
Bluetooth Profiles Support/Bluetooth DUN Gateway
Bluetooth Profiles Support/Bluetooth HS/HF and Audio Gateway Service
Bluetooth Profiles Support/Bluetooth LAP and Configuration Utility
Bluetooth Profiles Support/Bluetooth PAN
<2>添加对象交换协议
Applications and Services Development/OBEX Client
Applications and Services Development/OBEX Server/OBEX File Browser
Applications and Services Development/OBEX Server/OBEX Inbox
<3>修改注册表
修改注册表文件内容:C:/WINCE500/PUBLIC/SERVERS/OAK/FILES/servers.reg
查找下面内容,并添加
"CanWrite" = dword:1
"Authenticate" = dword:0
"Password" = "0000 "
"Transport Authenticate"=dword:0
修改前:
; @CESYSGEN IF SERVERS_MODULES_OBEXFILE
[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Obex/Services/{f9ec7bc4-953c-11d2-984e-525400dc9e09}]
"BaseDir"="//Temp//Ftp"
"Server"="obexfile.dll"
; @CESYSGEN IF CE_MODULES_BTD
"BluetoothSdpRecord"=hex:35,41,09,00,01,35,03,19,11,06,09,00,04,35,11,35,/
03,19,01,00,35,05,19,00,03,08,0a,35,03,19,00,08,/
09,00,06,35,09,09,65,6e,09,00,6a,09,01,00,09,00,/
09,35,08,35,06,19,11,06,09,01,00,09,01,00,25,03,/
46,54,50
; @CESYSGEN ENDIF CE_MODULES_BTD
; @CESYSGEN ENDIF SERVERS_MODULES_OBEXFILE
; @CESYSGEN IF SERVERS_MODULES_OBEXEXEC
;[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Obex/Services/{f9ec7bc4-953c-11d2-984e-525400dc9e09}]
; "Server"="obexexec.dll"
; @CESYSGEN ENDIF SERVERS_MODULES_OBEXEXEC
修改后:
; @CESYSGEN IF SERVERS_MODULES_OBEXFILE
[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Obex/Services/{f9ec7bc4-953c-11d2-984e-525400dc9e09}]
"BaseDir"="//Temp//Ftp"
"Server"="obexfile.dll"
; @CESYSGEN IF CE_MODULES_BTD
"BluetoothSdpRecord"=hex:35,41,09,00,01,35,03,19,11,06,09,00,04,35,11,35,/
03,19,01,00,35,05,19,00,03,08,0a,35,03,19,00,08,/
09,00,06,35,09,09,65,6e,09,00,6a,09,01,00,09,00,/
09,35,08,35,06,19,11,06,09,01,00,09,01,00,25,03,/
46,54,50
;下面要添加的
"CanWrite" = dword:1
"Authenticate" = dword:0
"Password" = "0000 "
"Transport Authenticate"=dword:0
; @CESYSGEN ENDIF CE_MODULES_BTD
; @CESYSGEN ENDIF SERVERS_MODULES_OBEXFILE
<4>重新编译工程