Visual C++ & Bluetooth Serial Comm

R

rich.poum

I have a bluetooth device sending ASCII at 9600 baud. From my PC
device manager my "Bluetooth Communication Port" is (COM5). The
bluetooth device wizard created the "Serial over Bluetooth link" for
outgoing and incoming as COM14 and COM15 respective. Using hypterminal
and using COM14 (I'm surprised I don't even need to set the baud rate
and handingshaking for this port), I'm able to receive the data from
bluetooth device fine. In the code of my MFC program I can't open
neither COM14 nor COM15. I can only open COM5 which doesn't appear to
be receiving the data. Why is this? What is the difference b/w
"Bluetooth Communication Port" and "Serial over Bluetooth link" in the
Device manager? Thanks in advance.
 
M

Michael DOUBEZ

I have a bluetooth device sending ASCII at 9600 baud. From my PC
device manager my "Bluetooth Communication Port" is (COM5). The
bluetooth device wizard created the "Serial over Bluetooth link" for
outgoing and incoming as COM14 and COM15 respective. Using hypterminal
and using COM14 (I'm surprised I don't even need to set the baud rate
and handingshaking for this port), I'm able to receive the data from
bluetooth device fine. In the code of my MFC program I can't open
neither COM14 nor COM15. I can only open COM5 which doesn't appear to
be receiving the data. Why is this? What is the difference b/w
"Bluetooth Communication Port" and "Serial over Bluetooth link" in the
Device manager?

This is a C++ only group and your question is OT here. You should try a
group specific to your OS: comp.os.ms-windows.*

Concerning your problem, a guess is that Windows doesn't handle COM port
with 2 digits in the name.
You should try the syntax \\.\COMXX or in C++: "\\\\.\\COM14" :).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top