Hi,
My goal is to write an application, similar to BlueProximity
http://blueproximity.sourceforge.net/index.html, but using Windows XP
and Widcomm stack.
"This software helps you add a little more security to your desktop.
It does so by detecting one of your bluetooth devices, most likely
your mobile phone, and keeping track of its distance. If you move away
from your computer and the distance is above a certain level (no
measurement in meters is possible) for a given time, it automatically
locks your desktop (or starts any other shell command you want)."
I'm familiar with Java and Eclipse, but I'm newbie in bluetooth and C+
+ world and that is why I need help. I've found that with Widcomm
bluetooth stack we can get the RSSI value for given connection (see
GetConnectionStats in "Bluetooth for Windows. DK API Reference
Guide."). That was good start :)
I've downloaded following applications:
1. Apache Maven 2.0 -
http://maven.apache.org/download.html
2. Visual C++ 2005 Express Edition -
http://msdn2.microsoft.com/en-us/express/aa975050.aspx
3. Windows SDK Update for Windows Vista and .NET Framework 3.0 -
http://www.microsoft.com/downloads/details.aspx?familyid=4377F86D-C913-4B5C-B87E-EF72E5B4E065&displaylang=en
4. Broadcom BTW Development Kit for Windows PC -
http://www.broadcom.com/products/bluetooth_sdk.php
First questions, do I need also Visual C++ 6.0? Can I get it for free?
Where?
Second step - configuration:
1. Download bluecove from SVN
2. Prepare eclipse project: mvn eclipse:clean eclipse:eclipse -
DdownloadSources=true
3. In VC2005: Tools -> Options -> VC++ Directories ->
"Include files" %ProgramFiles%\Microsoft SDKs\Windows
\v6.0\Include
"Library files" %ProgramFiles%\Microsoft SDKs\Windows\v6.0\lib
4. Is that all?
It is not working. If I try to execute build-native-intelbth.cmd I get
error. First:
"Starting build at 19:28:20.85, Fri 04/18/2008
Found Visual Studio C:\Program Files\Microsoft Visual Studio 8\VC\bin
[C:\Program Files\Microsoft Visual Studio 8\VC\bin\VCVARS32.BAT]
c:\lukasz\eclipse\workspace\BlueCove>call "C:\Program Files\Microsoft
Visual Studio 8\VC\bin\VCVARS32.BAT"
c:\lukasz\eclipse\workspace\BlueCove>"C:\Program Files\Microsoft
Visual Studio 8\Common7\Tools\vsvars32.bat"
Setting environment for using Microsoft Visual Studio 2005 x86 tools.
Microsoft SDKs Found [C:\Program Files\Microsoft SDKs\Windows\v6.0]
WARNING: Some Supported SDK not found!"
and then:
"Compiling...
WIDCOMMStackL2CAP.cpp
c:\lukasz\eclipse\workspace\bluecove\src\main\c\intelbth
\common.h(94) : fatal error C1083: Cannot open include file:
'windows.h': No such file or directory"
The file is of course in "%ProgramFiles%\Microsoft SDKs\Windows
\v6.0\Include" directory. This is propably problem with paths, but I
don't know how to solve it. Any advices or tips?
I understand, that the next step is to add my methods to C++ and java
files (propably: WIDOMMStack*.cpp, WIDOMMStack*.h,
com_intel_bluetooth_BluetoothStackWIDCOMM.h and
BluetoothStackWIDCOMM.java) Am I on the right path?
Thanks for help.
Cheers
Lukasz