阅读:1727回复:2
5.0版本中蓝牙驱动程序问题
HANDLE WINAPI CSR_Open(HANDLE pContext, DWORD AccessCode, DWORD ShareMode)
{ // return pContext; RETAILMSG(1,(_T("++++ start CSR_Open++\r\n"))); if (g_hPort) return (HANDLE)FALSE; RETAILMSG(1,(_T("++++++++++++++++++++CSR_Open++\r\n"))); g_hPort = CreateFile(REAL_UART, GENERIC_READ|GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); if (g_hPort == (HANDLE)-1) { RETAILMSG(1, (TEXT("CSR_Open: Unable to CreateFile %s, %d\r\n"), REAL_UART, GetLastError())); //GetLastError() = 55; goto OPRN_FAIL; } } 注册表设置: [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SerialCSR] "Prefix"="CSR" "Dll"="SerialCSR.Dll" "Order"=dword:1 ; Must be > then actual COM's order value "Index"=dword:1 [HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\HCI] "Driver"="bthcsr.dll" "Name"="CSR1:" "baud"=dword:1c200 "flags"=dword:4 "resetdelay"=dword:1388 请问一下各位大侠,这可能会是什么原因呢? 急需要解决这个问题,请各位高手帮帮忙呀。 本贴来自天极网群乐社区--http://q.yesky.com/group/review-17627879.html |
|
沙发#
发布于:2008-12-12 13:27
你用什么芯片?
|
|
板凳#
发布于:2008-12-13 15:10
他用的CSR的芯片。
|
|