Pocket PC Networking >> MS / widcomm bluetooth programming

by S2V2aW4gQnVzdXR0aWw » Wed, 20 Apr 2005 22:37:07 GMT

Hi I'm rather new to Bluetooth programming.

Is there a way to make one program using VC++ CE 4.2 that works both with
Widcomm and Microsoft Bluetooth stack? Does programming with OBEX or Serial
Connectivity works?

I couldn't find a simple up-to-date answer of this issue on the internet.

Please help


Pocket PC Networking >> RE: MS / widcomm bluetooth programming

by gregsco » Fri, 22 Apr 2005 01:53:03 GMT


Microsoft and Widcomm have completely different SDKs. If you are creating
a simple enough application you might be able to get away with just using
virtual COM ports (Serial Port Profile). Virtual COM ports use standard
Windows CE APIs which wrap Microsoft and Widcomm BT stacks.

I hope this helps.

Greg Scott
Software Design Engineer, Windows CE
Microsoft Corporation
_____________________________________________________________
This posting is provided "AS IS" with no warranties, and confers no rights.
_____________________________________________________________

--------------------
Thread-Topic: MS / widcomm bluetooth programming
thread-index: AcVFtm3PpBU9KVMQTGOvX2dvIU97pg==
X-WBNR-Posting-Host: 217.15.96.17
From: "=?Utf-8?B?S2V2aW4gQnVzdXR0aWw=?="
< XXXX@XXXXX.COM >
Subject: MS / widcomm bluetooth programming
Date: Wed, 20 Apr 2005 07:37:07 -0700
Lines: 9
Message-ID: < XXXX@XXXXX.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.pocketpc.developer.networking
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.pocketpc.developer.networking:4224
X-Tomcat-NG: microsoft.public.pocketpc.developer.networking

Hi I'm rather new to Bluetooth programming.

Is there a way to make one program using VC++ CE 4.2 that works both with
Widcomm and Microsoft Bluetooth stack? Does programming with OBEX or Serial
Connectivity works?

I couldn't find a simple up-to-date answer of this issue on the internet.

Please help

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20 Microsoft and Widcomm have completely different SDKs. If you are creating a simple enough application you might be able to get away with just using virtual COM ports (Serial Port Profile). Virtual COM ports use standard Windows CE APIs which wrap Microsoft and Widcomm BT stacks.
\par
\par I hope this helps.
\par
\par Greg Scott
\par Software Design Engineer, Windows CE
\par Microsoft Corporation
\par _____________________________________________________________
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par _____________________________________________________________
\par
\par \pard\li720 --------------------
\par Thread-Topic: MS / widcomm bluetooth programming
\par thread-index: AcVFtm3PpBU9KVMQTGOvX2dvIU97pg==
\par X-WBNR-Posting-Host: 217.15.96.17
\par From: "=?Utf-8?B?S2V2aW4gQnVzdXR0aWw=?=" < XXXX@XXXXX.COM >
\par Subject: MS / widcomm bluetooth programming
\par Date: Wed, 20 Apr 2005 07:37:07 -0700
\par Lines: 9
\par Message-ID: < XXXX@XXXXX.COM >
\par MIME-Version: 1.0
\par Content-Type: text/plain;
\par \tab charset="Utf-8"
\par Content-Transfer-Encoding: 7bit
\par X-Newsreader: Microsoft CDO for Windows 2000
\par Content-Class: urn:content-classes:message
\par Importance: normal
\par Priority: normal
\par X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
\par Newsgroups: microsoft.public.pocketpc.developer.networking
\par NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
\


Pocket PC Networking >> MS / widcomm bluetooth programming

by dave » Mon, 25 Apr 2005 16:59:40 GMT

Hi Greg,

Can you point us at more info on using "virtual com ports (Serial Port
Profile)" ?

bye
Dave



rights.
Serial




MS / widcomm bluetooth programming

by gregsco » Wed, 27 Apr 2005 00:40:47 GMT

There is a lot of info on MSDN. The following page actually shows you how
to register the virtual COM port with BT (most devices have some UI to do
this). So you probably won't need to call RegisterDevice as described here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcecomm5/ht
ml/wce50concomportemulationfacility.asp

Here are some links to the general purpose APIs for using COM ports (this
will be applicable for both MS & Widcomm stacks):

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceobjst/ht
ml/cerefCreateFile.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceobjst/ht
ml/cerefreadfile.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceobjst/ht
ml/cerefwritefile.asp

If you install Windows CE Platform Builder (evaluation edition) you can
find some samples here:

public\common\oak\drivers\bluetooth\sample
public\common\sdk\samples\bluetooth

Good luck!

Greg Scott
Software Design Engineer, Windows CE
Microsoft Corporation
_____________________________________________________________
This posting is provided "AS IS" with no warranties, and confers no rights.
_____________________________________________________________

--------------------
From: "dave" < XXXX@XXXXX.COM >
Newsgroups: microsoft.public.pocketpc.developer.networking
Subject: Re: MS / widcomm bluetooth programming
Date: Mon, 25 Apr 2005 09:59:40 +0100
Lines: 64
Message-ID: <d4ic2r$gdp$1$ XXXX@XXXXX.COM >
References: < XXXX@XXXXX.COM >
< XXXX@XXXXX.COM >
NNTP-Posting-Host: parystec.demon.co.uk
X-Trace: news.demon.co.uk 1114420125 16825 80.176.87.116 (25 Apr 2005
09:08:45 GMT)
X-Complaints-To: XXXX@XXXXX.COM
NNTP-Posting-Date: Mon, 25 Apr 2005 09:08:45 +0000 (UTC)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MSMail-Priority: Normal
Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onli
ne.de!newsfeed.icl.net!newsfeed.fjserv.net!peer-uk.news.demon.net!kibo.news.
demon.net!news.demon.co.uk!demon!not-for-mail
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.pocketpc.developer.networking:1281
X-Tomcat-NG: microsoft.public.pocketpc.developer.networking

Hi Greg,

Can you point us at more info on using "virtual com ports (Serial Port
Profile)" ?

bye
Dave

"Greg Scott [MS]" < XXXX@XXXXX.COM > wrote in message
news: XXXX@XXXXX.COM ...
rights.
Serial



{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20 There is a lot of info on MSDN. The following page actually shows you how to register the virtual COM port with BT (most devices have some UI to do this). So you probably won't need to call RegisterDevice as described here:
\par
\par http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcecomm5/html/wce50concomportemulationfacility.asp
\par
\par Here are some links to the general purpose APIs for using COM ports (this will be applicable for both MS & Widcomm stacks):
\par
\par http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceobjst/html/cerefCreateFile.asp
\par
\par http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceobjst/html/cerefreadfile.asp
\par
\par http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceobjst/html/cerefwritef

Similar Threads

1. WidComm bluetooth stack / MS bluetooth stack - Pocketpc Developer

2. WIDCOMM Bluetooth

Anyone played with the WIDCOMM bluetooth stack yet? I'm struggling to get 
bluetooth set up and working on Vista at the moment. 

3. Bluetooth SDK compatible with WIDCOMM stack . - Pocket PC

4. Widcomm 1.5 Bluetooth Software

5. Is treo 700w bluetooth widcomm or Microsoft stack ? - Pocket PC

6. WIDCOMM Bluetooth SDK and PocketPC 2003

Hi all,

I have purchased WIDCOMM SDK and currently develop Bluetooth-enabled
application for PocketPC platform.
PocketPC 2003 has built-in Bluetooth stack.
Will my code work without changes under PocketPC 2003?


7. Widcomm Bluetooth Stack - Pocketpc Developer

8. Bluetooth WidComm

Hello.
I am developing a Bluetooth component for Windows Mobile and for Widcomm 
stack, in C# and C++.
I'm having many problems, with the connections. However, I can make a 
discover process and it works, but when I try to connect to a device it 
doesn't work.
Does anybody have any code? Any help?

Thanks.