Google Groups Home
Help | Sign in
Compile/build bluecove - How to get RSSI value with WIDCOMM stack
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Lukasz Radziwonowicz  
View profile
 More options Apr 18, 1:59 pm
From: Lukasz Radziwonowicz <lukasz.radziwonow...@gmail.com>
Date: Fri, 18 Apr 2008 10:59:03 -0700 (PDT)
Local: Fri, Apr 18 2008 1:59 pm
Subject: Compile/build bluecove - How to get RSSI value with WIDCOMM stack
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-C91...
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vlad Skarzhevskyy  
View profile
 More options Apr 18, 2:16 pm
From: "Vlad Skarzhevskyy" <skarzhevs...@gmail.com>
Date: Fri, 18 Apr 2008 14:16:55 -0400
Local: Fri, Apr 18 2008 2:16 pm
Subject: Re: [BlueCove-users] Compile/build bluecove - How to get RSSI value with WIDCOMM stack

Hi Lukasz
 I received a Visual C++ 6.0 for free from Microsoft when I passed a
certification exams in 1999...
 Where you can get it for free I don't know, sorry.

 For your particular problem you can use VC 2005 to build bluecove.dll for
widcomm but it would require the Microsoft runtime libraries installed on
computer to run...

 As to why windows.h now found. Try to open Microsoft GUI and configure it
to build the project using gui mode. There are some dialogs where you should
add the path to Microsoft SDK. It is part of SDK installation instruction I
think..

 If you run build-native-intelbth.cmd
 Then message "Some Supported SDK not found" is about IVT
Corporation\BlueSoleil\api

 build-native-intelbth.cmd does not build blucove.dll for widcomm library.
it only builds intelbth.dll for ms stack.

 The best I can offer for you is to open VC2005 switch project target to
widcomm win32 and build from gui.

Regards,
Vlad

On 4/18/08, Lukasz Radziwonowicz <lukasz.radziwonow...@gmail.com> wrote:

--
Vlad

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lukasz Radziwonowicz  
View profile
 More options Apr 30, 5:41 am
From: Lukasz Radziwonowicz <lukasz.radziwonow...@gmail.com>
Date: Wed, 30 Apr 2008 02:41:40 -0700 (PDT)
Local: Wed, Apr 30 2008 5:41 am
Subject: Re: Compile/build bluecove - How to get RSSI value with WIDCOMM stack
Hi Vlad,

Thanks for quick replay and thanks for tips :) I was on short holiday.

I make a few steps forward. I have configured VC++ 2005 Express
Edition ( Using Visual C++ 2005 Express Edition with the Microsoft
Platform SDK http://msdn.microsoft.com/en-us/express/aa700755.aspx )
and I can build from the GUI ( build log: http://freetexthost.com/npytitlc5d
). But what now? It did not created any bluecove.dll file only
intelbth.lib and intelbth.exp. Any tips?

>  For your particular problem you can use VC 2005 to build bluecove.dll for
> widcomm but it would require the Microsoft runtime libraries installed on
> computer to run...

What do you mean? Do I need VC++ 6.0 if I want to use it without
runtimes libraries? If I am using a widcomm bluetooth usb dongle on
Win XP that should not be the problem?

Thanks,
Lukasz

On Apr 18, 8:16 pm, "Vlad Skarzhevskyy" <skarzhevs...@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lukasz Radziwonowicz  
View profile
 More options Apr 30, 9:00 am
From: Lukasz Radziwonowicz <lukasz.radziwonow...@gmail.com>
Date: Wed, 30 Apr 2008 06:00:50 -0700 (PDT)
Local: Wed, Apr 30 2008 9:00 am
Subject: Re: Compile/build bluecove - How to get RSSI value with WIDCOMM stack
Hi Vlad,

I've found VC++ 6.0 at my department and I can build bluecove.dll
now :)

Few remarks, if I want to use maven, I still get path error (windows.h
not found, I have to search more in internet) but I can build
bluecove.dll with "build-native-bluecove.cmd" and that is great! I had
small problem with Ant, as I want to create blucove jar I get this
error:

BUILD FAILED
C:\lukasz\eclipse\workspace\BlueCove\build.xml:54: class
org.apache.tools.ant.types.PatternSet$NameEntry doesn't support nested
text data

Solution: http://wiki.apache.org/ant/AntNewbies Answer 4 (maybe this
is because we have diffrent Ant versions, not important)

Thank you again and I am sure I will have more questions :)
Lukasz

On Apr 18, 8:16 pm, "Vlad Skarzhevskyy" <skarzhevs...@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vlad Skarzhevskyy  
View profile
 More options Apr 30, 11:14 am
From: "Vlad Skarzhevskyy" <skarzhevs...@gmail.com>
Date: Wed, 30 Apr 2008 11:14:04 -0400
Local: Wed, Apr 30 2008 11:14 am
Subject: Re: [BlueCove-users] Re: Compile/build bluecove - How to get RSSI value with WIDCOMM stack
I don't know how you install Microsoft Visual Studio 6 but there was
question in instalation "Register environment variables"...  It
creates the file  Microsoft Visual Studio\VC98\Bin\VCVARS32.BAT

make sure that the file VCVARS32.BAT has "set INCLUDE" and it point to
Microsoft Visual Studio\VC98\Include  ......

 Also the VC6 is old application and windows.h is in capital letters.
If you install VC6 and compile on XP make sure that legacy file names
are supported in NTFS.. See NtfsDisable8dot3NameCreation in Registry

And I fixed build.xml for ant in svn...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vlad Skarzhevskyy  
View profile
 More options Apr 30, 11:25 am
From: "Vlad Skarzhevskyy" <skarzhevs...@gmail.com>
Date: Wed, 30 Apr 2008 11:25:56 -0400
Local: Wed, Apr 30 2008 11:25 am
Subject: Re: [BlueCove-users] Re: Compile/build bluecove - How to get RSSI value with WIDCOMM stack
If you build bluecove.dll using VC 2005 then you will see (using
dependency walker) that the dll will require MSVCR80.DLL this dll may
not be available on Windows systems....

Also I had some problems with stability of application when compiling
WIDCOMM dll using  VC 2005... It may be gone since I changed the way
API is used, but may be not. If you see the JVM crush after hundred or
so connection then it is not gone.

Also when you use VC 2005 open the project file intelbth.vcproj
It has all predefined build configurations. See src\main\c\intelbth\ReadMe.txt


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google