My favorites | Sign in
Logo
                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
========================================================================
DYNAMIC LINK LIBRARY : intelbth.dll and bluecove.dll
========================================================================


intelbth.vcproj
This is the project file for VC 2005 project.

There are four Configurations: Winsock, WIDCOMM, BlueSoleil, All and Release

Release Configuration on Win32 will incorporated Winsock and BlueSoleil Configurations and should be used for distribution!

N.B. We can't use the same DLL on windows for all implemenations. Since WIDCOMM need to be compile /MD using VC6 and winsock and BlueSoleil /MT using VC2005
intelbth.dll build by VC2005 Configuration "Win32 Release"
bluecove.dll build by VC6 Configuration "Win32 Release"

"Pocket PC 2003 (ARMV4)" is Platform we use to build DLL for WindowsCE
Build for Windows Mobile will use Winsock and WIDCOMM Configurations
intelbth_ce.dll build by VC2005 Configuration "Pocket PC 2003 (ARMV4) Winsock"
bluecove_ce.dll build by VC2005 Configuration "Pocket PC 2003 (ARMV4) WIDCOMM"


There are three working Configurations: Winsock, WIDCOMM and Release TODO

A precompiled header (StdAfx.h, StdAfx.cpp) can't be used because BlueSoleil redefine some Microsoft definitions from BluetoothAPIs.h

Runtime Library Multi-threaded static (/MT) used for intelbth.dll to avoid dependancy on MSVCR80.DLL

Runtime Library Multi-threaded DLL (/MD) used for bluecove.dll and build by VC6.


WIDCOMM: bluecove.dll
Get Broadcom development kits from: http://www.broadcom.com/products/bluetooth_sdk.php
You have to register at the Broadcom site to gain access to the downloads.
We are using BTW-6_1_0_1502 for destribution.
Install it to default directory. e.g. "$(ProgramFiles)\Widcomm\BTW DK" for Win32
Make all the files read only if you will ever uninstall WIDCOMM drivers the SDK files should remain.
You don't need to have bluetooth WIDCOMM drivers installed to build the dll.

WIDCOMM Windows Mobile: bluecove_ce.dll
Get Broadcom development kits from: http://www.broadcom.com/products/bluetooth_sdk.php
BTW-CE SDK Version 1.7.1.5201
Install it to default directory. e.g. "$(ProgramFiles)\Widcomm\WIDCOMM BTW-CE SDK"

BlueSoleil: intelbth.dll
Get BlueSoleil™ PC Platform Software Development Kit (SDK), 0.83 free version from this location:
http://www.bluesoleil.com/download/index.asp?topic=bluesoleil_sdk

The BlueSoleil API should be installed in directory: $(ProgramFiles)\IVT Corporation\BlueSoleil\api
Make all the files read only if you will ever uninstall BlueSoleil the SDK files should remain.

Four files should be there: a DLL file btfunc.dll, a library file btfunc.lib and two header file bt_ui.h, bt_def.h.

You don't need to have bluetooth BlueSoleil drivers installed to build the dll.

Toshiba:
The Toshiba Bluetooth Stack SDK is free of charge, but requires a NDA with Toshiba. http://aps2.toshiba-tro.de/bluetooth/pages/faq/sdk.html
The Toshiba Bluetooth SDK should be installed in directory: $(ProgramFiles)\Toshiba\Bluetooth Toshiba Stack\SDK

common.h
Used instead of StdAfx.h

common.cpp
This is the main DLL source file.

intelbth.cpp
This is the source file for Winsock Stack.

WIDCOMMStack.cpp and WIDCOMMStack.h
This is the source file for WIDCOMM Stack.

BlueSoleilStack.cpp and BlueSoleilStack.h
This is the source file for BlueSoleil Stack.

/////////////////////////////////////////////////////////////////////////////
Other notes:

1)
Q. Why so many if (stack == NULL) in the code?
A. This is the case of JVM shutdown that can happen any time (User just close the boring app). We don't want to have coredum.

/////////////////////////////////////////////////////////////////////////////


Show details Hide details

Change log

r2626 by skarzhevskyy on Dec 19, 2008   Diff
Drop dual stack support on Windows XP in
favor of Broadcom BTW Stack 5.5 and 6.1
Go to: 
Project members, sign in to write a code review

Older revisions

r2523 by skarzhevskyy on Dec 08, 2008   Diff
Started TCK for JSR 82 1.1.1
r2408 by skarzhevskyy on Oct 09, 2008   Diff
organize product to modules
r2129 by skarzhevskyy on Apr 30, 2008   Diff
correction for Build for Windows
Mobile readMe
All revisions of this file

File info

Size: 3932 bytes, 84 lines

File properties

svn:eol-style
CRLF
Hosted by Google Code