PC Review


Reply
Thread Tools Rate Thread

bluetooth-communication

 
 
Marcus Gylling
Guest
Posts: n/a
 
      17th Sep 2003
Hello
I'm writing an application on an IPAQ 3970 that uses the bluetooth module to
communicate with a serial port adapter on another unit.
The application is written in Visual Basic .NET 2003. I'm using a com port
component, that works like the component in VB6, for this.

The two units are configured to always be connected. Is there any way to
check if they are connected from my VB application? For example by
contacting the Bluetooth manager.

/Marcus Gylling


 
Reply With Quote
 
 
 
 
Michael Daniels
Guest
Posts: n/a
 
      17th Sep 2003
I dont have a answer for your question,

but i would be intrested in that com port component waht you are using.

could you send it to me? (E-Mail Removed)

Regards Michael


"Marcus Gylling" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed)...
> Hello
> I'm writing an application on an IPAQ 3970 that uses the bluetooth module

to
> communicate with a serial port adapter on another unit.
> The application is written in Visual Basic .NET 2003. I'm using a com port
> component, that works like the component in VB6, for this.
>
> The two units are configured to always be connected. Is there any way to
> check if they are connected from my VB application? For example by
> contacting the Bluetooth manager.
>
> /Marcus Gylling
>
>



 
Reply With Quote
 
Dick Grier
Guest
Posts: n/a
 
      17th Sep 2003
Hi,

Have you tried the CFSerialIO dll that you can download from my homepage?

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.


 
Reply With Quote
 
Ronald Armas
Guest
Posts: n/a
 
      18th Sep 2003
Perform a general Bluetooth device inquiry ("page scan")
to identify Bluetooth-enabled devices within proximity:
Only devices that are monitoring for paging will respond
Devices provide their address, name, type
Connect to a particular device and perform a service
discovery
Using SDP (Service Discovery Protocol)

Connect to a Bluetooth service using a profile:
SPP (Serial Port Profile) can be used be legacy
applications that (used to) rely on a COMx port, only the
COM port is controlled by Bluetooth and is virtual.
Connection to a Bluetooth service using a protocol:
RFCOMM
Custom application


Creating a SPP Connection

void CMyApp::bar()
{
// Create an SPP connection to a device whose
address and
// a specific service name have been previously
retrieved.
SPP_CLIENT_RETURN_CODE rc;

rc = CSppClient::CreateConnection(bd_addr,
service_name);
// rc is either SUCCESS or a BTW-CE DK error code

// A COM/SPP port (vport) is now available and
connected
// to the remove device bd_addr.
// NOTE: COM8 is preconfigured as an "outgoing
port" when
// installing BTW-CE
HANDLE hFile = CreateFile(_T("COM8:"), ...);

// Use regular WIN32 API to open the port,
transmit data, etc.
WriteFile(hFile, _T("Hello Bluetooth"), ...);
...

CloseHandle(hFile);

// Release the COM/SPP port for other apps to use
it.
CSppClient::RemoveConnection();
}

FOR MORE INFORMATION VISIT: http://www.widcomm.org

bluetooth devices built-in ipaqs are from WIDCOMM.

regards
Ronald Armas
MCSD

>-----Original Message-----
>Hello
>I'm writing an application on an IPAQ 3970 that uses the

bluetooth module to
>communicate with a serial port adapter on another unit.
>The application is written in Visual Basic .NET 2003.

I'm using a com port
>component, that works like the component in VB6, for

this.
>
>The two units are configured to always be connected. Is

there any way to
>check if they are connected from my VB application? For

example by
>contacting the Bluetooth manager.
>
>/Marcus Gylling
>
>
>.
>

 
Reply With Quote
 
Michael Daniels
Guest
Posts: n/a
 
      18th Sep 2003
Yes i tried it,

but you know that i have the problem with the parity setting

Regards

Michael Daniels aka Michael Brockhoff
"Dick Grier" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed)...
> Hi,
>
> Have you tried the CFSerialIO dll that you can download from my homepage?
>
> Dick
>
> --
> Richard Grier (Microsoft Visual Basic MVP)
>
> See www.hardandsoftware.net for contact information.
>
> Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
> Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
>
>



 
Reply With Quote
 
Dick Grier
Guest
Posts: n/a
 
      18th Sep 2003
Hi Michael,

Sorry, I didn't look at your name closely enough.

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.


 
Reply With Quote
 
Mike Gannaway
Guest
Posts: n/a
 
      19th Sep 2003
Hi Marcus, I am just starting to learn how to develop
using the compact framework using bluetooth.... would it
be too much to ask if you could send me any information
you have on sources of good information regarding
bluetooth and the compact framework. I would love to see
the source code, just to understand the concepts. Thanks
in advance anyway

Mike

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET 3.5 and Bluetooth Communication =?Utf-8?B?TWVlbGFy?= Microsoft Dot NET Framework 0 15th Oct 2007 12:41 PM
Pocket PC C# Bluetooth Communication =?Utf-8?B?YW1icm8=?= Microsoft Dot NET Compact Framework 1 8th Feb 2005 06:23 PM
bluetooth communication jeroen Microsoft Dot NET Compact Framework 0 20th Mar 2004 01:53 PM
bluetooth communication in compact .NET Tim Microsoft Dot NET Compact Framework 1 27th Jan 2004 12:41 PM
Bluetooth communication using CF Heath Frankel Microsoft Dot NET Compact Framework 0 12th Nov 2003 07:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:29 AM.