[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

WIndows PocketPC Bluetooth registerdevice com port question

Asked by ronlep in Bluetooth, Windows ATL / WTL / COM Programming, C++ Programming Language

Tags: bluetooth registerdevice pin com port

I have a bluetooth device which came with a dll. The dll requires a com port (0-9) to initate a connection. It aslo requires a pin. I'm trying to create a port which I can use to connect to device. I can lookup and discover the device no problem (using WSALookupServiceBegin...).  I'm setting the channel of my PORTEMUPPortParams to
      pp.channel = RFCOMM_CHANNEL_MULTIPLE & 0xff;
My call to RegisterDevice does return a port but my call to CreateFile fails.
My question is what is the best way to create the port for my device and what (or how) do I deal with the pin. I'm new to bluetooth and can't seem to find complete examples as to what to do.

Thanks in advance,

Ron
[+][-]10/13/09 10:26 AM, ID: 25562123Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/13/09 10:29 AM, ID: 25562158Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/13/09 10:32 AM, ID: 25562192Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/13/09 10:37 AM, ID: 25562237Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625