Hi there,

I am wondering if there is any method to check for the status of a
particular remote bluetooth device programmatically? I need something similar
to "BthGetHardwareStatus" but is for checking the status of the remote
bluetooth device. It is because I wish to write a simple program to always
establish connection to a specific bluetooth device without going through the
inquiry process. But before establish the connection, I need the program to
check out the status of that bluetooth device first.

Thanks...

Best Regards,
Chen

RE: Checking remote bluetooth device status? by fegonzal

fegonzal
Sat Nov 20 04:25:56 CST 2004

If you know the address of the remote device, just connect to it. An
inquiry is needed only when you want a list of devices in range.

fernando

___________________________________________________________________________
This posting is provided "AS IS" with no warranties, and confers no rights.
___________________________________________________________________________
--------------------
| Thread-Topic: Checking remote bluetooth device status?
| thread-index: AcTN6idIZKN/CmonTZOcG3ZpvFvI+A==
| X-WBNR-Posting-Host: 219.94.76.69
| From: "=?Utf-8?B?Q2hlbg==?=" <Chen@discussions.microsoft.com>
| Subject: Checking remote bluetooth device status?
| Date: Thu, 18 Nov 2004 19:45:03 -0800
| Lines: 14
| Message-ID: <BCF5F094-BA33-44CB-B9FB-6C9F1C4C5496@microsoft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.windowsce.platbuilder
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
| Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.windowsce.platbuilder:58051
| X-Tomcat-NG: microsoft.public.windowsce.platbuilder
|
| Hi there,
|
| I am wondering if there is any method to check for the status of a
| particular remote bluetooth device programmatically? I need something
similar
| to "BthGetHardwareStatus" but is for checking the status of the remote
| bluetooth device. It is because I wish to write a simple program to
always
| establish connection to a specific bluetooth device without going through
the
| inquiry process. But before establish the connection, I need the program
to
| check out the status of that bluetooth device first.
|
| Thanks...
|
| Best Regards,
| Chen
|


RE: Checking remote bluetooth device status? by Chen

Chen
Sun Nov 21 18:15:03 CST 2004

Hi Fernando,

Thanks for your reply. I know the address of the remote device. But I want
to use the program to check out the remote device to see if it is turned on
first before I connect to it. If I establish the connection directly without
checking out its status, it may return failure during CreateFile. That's why
would like to check out if there is any function that is similar to
"BthGetHardwareStatus" which is used for checking out the status of the
remote device. Any possibility of doing this?

Thanks...

Best Regards,
Chen

""Fernando Gonzalez [MS]"" wrote:

> If you know the address of the remote device, just connect to it. An
> inquiry is needed only when you want a list of devices in range.
>
> fernando
>
> ___________________________________________________________________________
> This posting is provided "AS IS" with no warranties, and confers no rights.
> ___________________________________________________________________________
> --------------------
> | Thread-Topic: Checking remote bluetooth device status?
> | thread-index: AcTN6idIZKN/CmonTZOcG3ZpvFvI+A==
> | X-WBNR-Posting-Host: 219.94.76.69
> | From: "=?Utf-8?B?Q2hlbg==?=" <Chen@discussions.microsoft.com>
> | Subject: Checking remote bluetooth device status?
> | Date: Thu, 18 Nov 2004 19:45:03 -0800
> | Lines: 14
> | Message-ID: <BCF5F094-BA33-44CB-B9FB-6C9F1C4C5496@microsoft.com>
> | MIME-Version: 1.0
> | Content-Type: text/plain;
> | charset="Utf-8"
> | Content-Transfer-Encoding: 7bit
> | X-Newsreader: Microsoft CDO for Windows 2000
> | Content-Class: urn:content-classes:message
> | Importance: normal
> | Priority: normal
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> | Newsgroups: microsoft.public.windowsce.platbuilder
> | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
> | Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
> | Xref: cpmsftngxa10.phx.gbl microsoft.public.windowsce.platbuilder:58051
> | X-Tomcat-NG: microsoft.public.windowsce.platbuilder
> |
> | Hi there,
> |
> | I am wondering if there is any method to check for the status of a
> | particular remote bluetooth device programmatically? I need something
> similar
> | to "BthGetHardwareStatus" but is for checking the status of the remote
> | bluetooth device. It is because I wish to write a simple program to
> always
> | establish connection to a specific bluetooth device without going through
> the
> | inquiry process. But before establish the connection, I need the program
> to
> | check out the status of that bluetooth device first.
> |
> | Thanks...
> |
> | Best Regards,
> | Chen
> |
>
>

RE: Checking remote bluetooth device status? by fegonzal

fegonzal
Mon Nov 22 16:59:20 CST 2004

If CreateFile() returns INVALID_HANDLE_VALUE, your device is out of range
or turned off.
There is no other way to check its status without an inquiry or trying to
connect.

fernando

___________________________________________________________________________
This posting is provided "AS IS" with no warranties, and confers no rights.
___________________________________________________________________________
--------------------
| Thread-Topic: Checking remote bluetooth device status?
| thread-index: AcTQKE/tygTIyk4GRSuaCuJSMoGg1Q==
| X-WBNR-Posting-Host: 219.94.76.69
| From: "=?Utf-8?B?Q2hlbg==?=" <Chen@discussions.microsoft.com>
| References: <BCF